@sequenceholdings/orm 0.1.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -38
- package/dist/authoring.cjs +6 -1
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +2 -2
- package/dist/authoring.d.ts +2 -2
- package/dist/authoring.js +6 -1
- package/dist/authoring.js.map +1 -1
- package/dist/cli.cjs +96 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +96 -3
- package/dist/cli.js.map +1 -1
- package/dist/compiler.cjs +6 -0
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.js +6 -0
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/predicate-v2.cjs +6 -0
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.d.cts +3 -0
- package/dist/predicate-v2.d.ts +3 -0
- package/dist/predicate-v2.js +6 -0
- package/dist/predicate-v2.js.map +1 -1
- package/package.json +5 -3
- package/src/codegen-gql/preset.cjs +64 -0
- package/src/codegen-gql/server-fns.cjs +11 -6
- package/templates/orm-namespace/codegen.preset.cjs +17 -0
- package/templates/orm-namespace/codegen.ts +1 -1
- package/templates/orm-namespace/package.json +3 -0
- package/templates/orm-namespace/schema/tables.ts +1 -1
- package/templates/orm-namespace/sequence.config.ts +1 -1
package/dist/predicate-v2.d.cts
CHANGED
package/dist/predicate-v2.d.ts
CHANGED
package/dist/predicate-v2.js
CHANGED
|
@@ -748,6 +748,10 @@ var Parser = class {
|
|
|
748
748
|
this.expect("rparen", "')'");
|
|
749
749
|
return inner;
|
|
750
750
|
}
|
|
751
|
+
if (this.peekKeyword("true") || this.peekKeyword("false")) {
|
|
752
|
+
const token = this.advance();
|
|
753
|
+
return { kind: "literal", value: token.value === "true" };
|
|
754
|
+
}
|
|
751
755
|
if (this.peekKeyword("capability") || this.peekKeyword("role")) {
|
|
752
756
|
const fn = this.peek().value;
|
|
753
757
|
const node = this.parseBooleanCall(fn);
|
|
@@ -931,6 +935,8 @@ var PolicyCompiler = class {
|
|
|
931
935
|
}
|
|
932
936
|
compile(node, table, depth) {
|
|
933
937
|
switch (node.kind) {
|
|
938
|
+
case "literal":
|
|
939
|
+
return { kind: "const", value: node.value };
|
|
934
940
|
case "and":
|
|
935
941
|
case "or":
|
|
936
942
|
return { kind: node.kind, operands: node.operands.map((operand) => this.compile(operand, table, depth)) };
|