Skip to content

Commit

Permalink
0.0.558
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 22, 2024
1 parent 93bf13d commit 909dd3c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions migrations/1726413155878-jsonschema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const root = new DeepClient({
apolloClient: rootClient,
});

const dc = '@deep-foundation/core';
const du = '@deep-foundation/unsafe';

export const up = async () => {
log('up');
const packageName = '@deep-foundation/jsonschema';
Expand All @@ -30,6 +33,54 @@ export const up = async () => {
const packageId = await root.id('@deep-foundation/jsonschema');
await sharePermissions(adminId, packageId);
await containWithin(adminId, packageId);
await deep.insert({
containerId: adminId,
type_id: deep.idLocal(dc, 'Rule'),
out: { data: [
{
type_id: deep.idLocal(dc, 'RuleObject'),
to: {
type_id: deep.idLocal(dc, 'Selector'),
out: {
type_id: deep.idLocal(dc, 'SelectorInclude'),
to_id: await deep.id(packageName),
out: {
type_id: deep.idLocal(dc, 'SelectorTree'),
to_id: deep.idLocal(dc, 'joinTree'),
},
},
},
},
{
type_id: deep.idLocal(dc, 'RuleSubject'),
to: {
type_id: deep.idLocal(dc, 'Selector'),
out: {
type_id: deep.idLocal(dc, 'SelectorInclude'),
to_id: await deep.id(packageName),
out: {
type_id: deep.idLocal(dc, 'SelectorTree'),
to_id: deep.idLocal(dc, 'joinTree'),
},
},
},
},
{
type_id: deep.idLocal(dc, 'RuleAction'),
to: {
type_id: deep.idLocal(dc, 'Selector'),
out: {
type_id: deep.idLocal(dc, 'SelectorInclude'),
to_id: await deep.id(du, 'AllowUnsafe'),
out: {
type_id: deep.idLocal(dc, 'SelectorTree'),
to_id: deep.idLocal(dc, 'typesTree'),
},
},
},
},
] },
});
}
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.557",
"version": "0.0.558",
"license": "Unlicense",
"type": "module",
"main": "import.js",
Expand Down

0 comments on commit 909dd3c

Please sign in to comment.