update to v0.23.1

+ package version bump to 0.22.0
+ support for PB v0.23.1 collections
This commit is contained in:
michal-kapala
2024-11-26 17:39:41 +01:00
parent ce03fd9991
commit df56216609
6 changed files with 131 additions and 120 deletions

View File

@ -48,21 +48,20 @@ async function importJson() {
const _authResponse = await pb.admins.authWithPassword(adminName, adminPass);
// collection schema object
const schema = createSchema(data, options.id, "json");
const fields = createSchema(data, options.id, "json");
// the new collection
const collection: Collection = {
name: collectName,
type: "base",
system: false,
schema,
fields,
indexes: [],
listRule: null,
viewRule: null,
createRule: null,
updateRule: null,
deleteRule: null,
options: {},
};
// show the submitted collection