@contember/schema 2.1.0-alpha.30 → 2.1.0-alpha.36

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.
Files changed (91) hide show
  1. package/package.json +7 -2
  2. package/src/index.ts +1 -1
  3. package/src/schema/acl.ts +4 -8
  4. package/src/schema/actions.ts +1 -2
  5. package/src/schema/actionsPayload.ts +0 -1
  6. package/src/schema/input.ts +19 -17
  7. package/src/schema/model.ts +87 -8
  8. package/src/schema/validation.ts +2 -2
  9. package/dist/development/index.cjs +0 -30
  10. package/dist/development/index.cjs.map +0 -1
  11. package/dist/development/index.js +0 -15
  12. package/dist/development/index.js.map +0 -1
  13. package/dist/development/src/ProjectRole.cjs +0 -10
  14. package/dist/development/src/ProjectRole.cjs.map +0 -1
  15. package/dist/development/src/ProjectRole.js +0 -10
  16. package/dist/development/src/ProjectRole.js.map +0 -1
  17. package/dist/development/src/schema/acl.cjs +0 -22
  18. package/dist/development/src/schema/acl.cjs.map +0 -1
  19. package/dist/development/src/schema/acl.js +0 -23
  20. package/dist/development/src/schema/acl.js.map +0 -1
  21. package/dist/development/src/schema/input.cjs +0 -31
  22. package/dist/development/src/schema/input.cjs.map +0 -1
  23. package/dist/development/src/schema/input.js +0 -32
  24. package/dist/development/src/schema/input.js.map +0 -1
  25. package/dist/development/src/schema/model.cjs +0 -31
  26. package/dist/development/src/schema/model.cjs.map +0 -1
  27. package/dist/development/src/schema/model.js +0 -32
  28. package/dist/development/src/schema/model.js.map +0 -1
  29. package/dist/development/src/schema/result.cjs +0 -15
  30. package/dist/development/src/schema/result.cjs.map +0 -1
  31. package/dist/development/src/schema/result.js +0 -16
  32. package/dist/development/src/schema/result.js.map +0 -1
  33. package/dist/development/src/schema/validation.cjs +0 -11
  34. package/dist/development/src/schema/validation.cjs.map +0 -1
  35. package/dist/development/src/schema/validation.js +0 -12
  36. package/dist/development/src/schema/validation.js.map +0 -1
  37. package/dist/production/index.cjs +0 -30
  38. package/dist/production/index.cjs.map +0 -1
  39. package/dist/production/index.js +0 -15
  40. package/dist/production/index.js.map +0 -1
  41. package/dist/production/src/ProjectRole.cjs +0 -10
  42. package/dist/production/src/ProjectRole.cjs.map +0 -1
  43. package/dist/production/src/ProjectRole.js +0 -10
  44. package/dist/production/src/ProjectRole.js.map +0 -1
  45. package/dist/production/src/schema/acl.cjs +0 -22
  46. package/dist/production/src/schema/acl.cjs.map +0 -1
  47. package/dist/production/src/schema/acl.js +0 -23
  48. package/dist/production/src/schema/acl.js.map +0 -1
  49. package/dist/production/src/schema/input.cjs +0 -31
  50. package/dist/production/src/schema/input.cjs.map +0 -1
  51. package/dist/production/src/schema/input.js +0 -32
  52. package/dist/production/src/schema/input.js.map +0 -1
  53. package/dist/production/src/schema/model.cjs +0 -31
  54. package/dist/production/src/schema/model.cjs.map +0 -1
  55. package/dist/production/src/schema/model.js +0 -32
  56. package/dist/production/src/schema/model.js.map +0 -1
  57. package/dist/production/src/schema/result.cjs +0 -15
  58. package/dist/production/src/schema/result.cjs.map +0 -1
  59. package/dist/production/src/schema/result.js +0 -16
  60. package/dist/production/src/schema/result.js.map +0 -1
  61. package/dist/production/src/schema/validation.cjs +0 -11
  62. package/dist/production/src/schema/validation.cjs.map +0 -1
  63. package/dist/production/src/schema/validation.js +0 -12
  64. package/dist/production/src/schema/validation.js.map +0 -1
  65. package/dist/types/ProjectRole.d.ts +0 -6
  66. package/dist/types/ProjectRole.d.ts.map +0 -1
  67. package/dist/types/index.d.ts +0 -14
  68. package/dist/types/index.d.ts.map +0 -1
  69. package/dist/types/schema/acl.d.ts +0 -132
  70. package/dist/types/schema/acl.d.ts.map +0 -1
  71. package/dist/types/schema/actions.d.ts +0 -49
  72. package/dist/types/schema/actions.d.ts.map +0 -1
  73. package/dist/types/schema/actionsPayload.d.ts +0 -95
  74. package/dist/types/schema/actionsPayload.d.ts.map +0 -1
  75. package/dist/types/schema/index.d.ts +0 -11
  76. package/dist/types/schema/index.d.ts.map +0 -1
  77. package/dist/types/schema/input.d.ts +0 -178
  78. package/dist/types/schema/input.d.ts.map +0 -1
  79. package/dist/types/schema/json.d.ts +0 -7
  80. package/dist/types/schema/json.d.ts.map +0 -1
  81. package/dist/types/schema/model.d.ts +0 -237
  82. package/dist/types/schema/model.d.ts.map +0 -1
  83. package/dist/types/schema/result.d.ts +0 -71
  84. package/dist/types/schema/result.d.ts.map +0 -1
  85. package/dist/types/schema/settings.d.ts +0 -20
  86. package/dist/types/schema/settings.d.ts.map +0 -1
  87. package/dist/types/schema/validation.d.ts +0 -59
  88. package/dist/types/schema/validation.d.ts.map +0 -1
  89. package/dist/types/schema/value.d.ts +0 -10
  90. package/dist/types/schema/value.d.ts.map +0 -1
  91. package/dist/types/tsconfig.tsbuildinfo +0 -1
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- exports.Result = void 0;
4
- ((Result2) => {
5
- ((ExecutionErrorType2) => {
6
- ExecutionErrorType2["NotNullConstraintViolation"] = "NotNullConstraintViolation";
7
- ExecutionErrorType2["UniqueConstraintViolation"] = "UniqueConstraintViolation";
8
- ExecutionErrorType2["ForeignKeyConstraintViolation"] = "ForeignKeyConstraintViolation";
9
- ExecutionErrorType2["NotFoundOrDenied"] = "NotFoundOrDenied";
10
- ExecutionErrorType2["NonUniqueWhereInput"] = "NonUniqueWhereInput";
11
- ExecutionErrorType2["InvalidDataInput"] = "InvalidDataInput";
12
- ExecutionErrorType2["SqlError"] = "SqlError";
13
- })(Result2.ExecutionErrorType || (Result2.ExecutionErrorType = {}));
14
- })(exports.Result || (exports.Result = {}));
15
- //# sourceMappingURL=result.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"result.cjs","sources":["../../../../../packages/schema/src/schema/result.ts"],"sourcesContent":["import { Value } from './value'\n\nexport namespace Result {\n\texport type MutationFieldResult = CreateResult | UpdateResult | DeleteResult | UpsertResult\n\n\texport interface CreateResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface UpsertResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface UpdateResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface DeleteResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface TransactionResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t}\n\n\texport interface ValidationResult {\n\t\tvalid: boolean\n\t\terrors: ValidationError[]\n\t}\n\n\texport interface ValidationError {\n\t\tpath: PathFragment[]\n\t\tmessage: ValidationMessage\n\t}\n\n\texport enum ExecutionErrorType {\n\t\tNotNullConstraintViolation = 'NotNullConstraintViolation',\n\t\tUniqueConstraintViolation = 'UniqueConstraintViolation',\n\t\tForeignKeyConstraintViolation = 'ForeignKeyConstraintViolation',\n\t\tNotFoundOrDenied = 'NotFoundOrDenied',\n\t\tNonUniqueWhereInput = 'NonUniqueWhereInput',\n\t\tInvalidDataInput = 'InvalidDataInput',\n\t\tSqlError = 'SqlError',\n\t}\n\n\texport interface ExecutionError {\n\t\t/** @deprecated */\n\t\tpath: PathFragment[]\n\t\tpaths: PathFragment[][]\n\t\ttype: ExecutionErrorType\n\t\tmessage?: string\n\t}\n\n\texport type PathFragment = { field: string } | { index: number; alias?: string }\n\n\texport interface ValidationMessage {\n\t\ttext: string\n\t}\n}\n"],"names":["Result","ExecutionErrorType"],"mappings":";;AAEiBA,QAAAA,SAAAA;AAAAA,CAAV,CAAUA,YAAV;AAmDC,GAAA,CAAKC,wBAAL;AACNA,wBAAA,4BAA6B,IAAA;AAC7BA,wBAAA,2BAA4B,IAAA;AAC5BA,wBAAA,+BAAgC,IAAA;AAChCA,wBAAA,kBAAmB,IAAA;AACnBA,wBAAA,qBAAsB,IAAA;AACtBA,wBAAA,kBAAmB,IAAA;AACnBA,wBAAA,UAAW,IAAA;AAAA,EAPA,GAAAD,QAAA,uBAAAA,QAAA,qBAAA,CAAA,EAAA;AAAA,GAnDIA,QAAA,WAAAA,iBAAA,CAAA,EAAA;"}
@@ -1,16 +0,0 @@
1
- var Result;
2
- ((Result2) => {
3
- ((ExecutionErrorType2) => {
4
- ExecutionErrorType2["NotNullConstraintViolation"] = "NotNullConstraintViolation";
5
- ExecutionErrorType2["UniqueConstraintViolation"] = "UniqueConstraintViolation";
6
- ExecutionErrorType2["ForeignKeyConstraintViolation"] = "ForeignKeyConstraintViolation";
7
- ExecutionErrorType2["NotFoundOrDenied"] = "NotFoundOrDenied";
8
- ExecutionErrorType2["NonUniqueWhereInput"] = "NonUniqueWhereInput";
9
- ExecutionErrorType2["InvalidDataInput"] = "InvalidDataInput";
10
- ExecutionErrorType2["SqlError"] = "SqlError";
11
- })(Result2.ExecutionErrorType || (Result2.ExecutionErrorType = {}));
12
- })(Result || (Result = {}));
13
- export {
14
- Result
15
- };
16
- //# sourceMappingURL=result.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"result.js","sources":["../../../../../packages/schema/src/schema/result.ts"],"sourcesContent":["import { Value } from './value'\n\nexport namespace Result {\n\texport type MutationFieldResult = CreateResult | UpdateResult | DeleteResult | UpsertResult\n\n\texport interface CreateResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface UpsertResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface UpdateResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface DeleteResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tnode: Value.Object | null\n\t}\n\n\texport interface TransactionResult {\n\t\tok: boolean\n\t\terrorMessage?: string\n\t\terrors: ExecutionError[]\n\t\tvalidation: ValidationResult\n\t}\n\n\texport interface ValidationResult {\n\t\tvalid: boolean\n\t\terrors: ValidationError[]\n\t}\n\n\texport interface ValidationError {\n\t\tpath: PathFragment[]\n\t\tmessage: ValidationMessage\n\t}\n\n\texport enum ExecutionErrorType {\n\t\tNotNullConstraintViolation = 'NotNullConstraintViolation',\n\t\tUniqueConstraintViolation = 'UniqueConstraintViolation',\n\t\tForeignKeyConstraintViolation = 'ForeignKeyConstraintViolation',\n\t\tNotFoundOrDenied = 'NotFoundOrDenied',\n\t\tNonUniqueWhereInput = 'NonUniqueWhereInput',\n\t\tInvalidDataInput = 'InvalidDataInput',\n\t\tSqlError = 'SqlError',\n\t}\n\n\texport interface ExecutionError {\n\t\t/** @deprecated */\n\t\tpath: PathFragment[]\n\t\tpaths: PathFragment[][]\n\t\ttype: ExecutionErrorType\n\t\tmessage?: string\n\t}\n\n\texport type PathFragment = { field: string } | { index: number; alias?: string }\n\n\texport interface ValidationMessage {\n\t\ttext: string\n\t}\n}\n"],"names":["Result","ExecutionErrorType"],"mappings":"AAEiB,IAAA;AAAA,CAAV,CAAUA,YAAV;AAmDC,GAAA,CAAKC,wBAAL;AACNA,wBAAA,4BAA6B,IAAA;AAC7BA,wBAAA,2BAA4B,IAAA;AAC5BA,wBAAA,+BAAgC,IAAA;AAChCA,wBAAA,kBAAmB,IAAA;AACnBA,wBAAA,qBAAsB,IAAA;AACtBA,wBAAA,kBAAmB,IAAA;AACnBA,wBAAA,UAAW,IAAA;AAAA,EAPA,GAAAD,QAAA,uBAAAA,QAAA,qBAAA,CAAA,EAAA;AAAA,GAnDI,WAAA,SAAA,CAAA,EAAA;"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- exports.Validation = void 0;
4
- ((Validation2) => {
5
- ((ArgumentType2) => {
6
- ArgumentType2["validator"] = "validator";
7
- ArgumentType2["path"] = "path";
8
- ArgumentType2["literal"] = "literal";
9
- })(Validation2.ArgumentType || (Validation2.ArgumentType = {}));
10
- })(exports.Validation || (exports.Validation = {}));
11
- //# sourceMappingURL=validation.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation.cjs","sources":["../../../../../packages/schema/src/schema/validation.ts"],"sourcesContent":["import { JSONValue } from './json'\n\nexport namespace Validation {\n\texport type ContextPath = readonly string[]\n\n\texport enum ArgumentType {\n\t\tvalidator = 'validator',\n\t\tpath = 'path',\n\t\tliteral = 'literal',\n\t}\n\n\texport type ValidatorArgument = {\n\t\treadonly type: ArgumentType.validator\n\t\treadonly validator: Validator\n\t}\n\texport type PathArgument = {\n\t\treadonly type: ArgumentType.path\n\t\treadonly path: ContextPath\n\t}\n\texport type LiteralArgument<V = JSONValue> = {\n\t\treadonly type: ArgumentType.literal\n\t\treadonly value: V\n\t}\n\n\texport type ValidatorArguments = {\n\t\treadonly and: readonly ValidatorArgument[]\n\t\treadonly or: readonly ValidatorArgument[]\n\t\treadonly conditional: readonly [ValidatorArgument, ValidatorArgument]\n\t\treadonly pattern: readonly [LiteralArgument<readonly [string, string]>]\n\t\treadonly lengthRange: readonly [LiteralArgument<number | null>, LiteralArgument<number | null>]\n\t\treadonly range: readonly [LiteralArgument<number | null>, LiteralArgument<number | null>]\n\t\treadonly equals: readonly [LiteralArgument<JSONValue>]\n\t\treadonly not: readonly [ValidatorArgument]\n\t\treadonly empty: readonly[]\n\t\treadonly defined: readonly[]\n\t\treadonly inContext: readonly [PathArgument, ValidatorArgument]\n\t\treadonly every: readonly [ValidatorArgument]\n\t\treadonly any: readonly [ValidatorArgument]\n\t\treadonly filter: readonly [ValidatorArgument, ValidatorArgument]\n\t}\n\n\texport type SpecificValidator<N extends keyof ValidatorArguments> = {\n\t\treadonly operation: N\n\t\treadonly args: ValidatorArguments[N]\n\t}\n\n\texport type Validator = {\n\t\treadonly [N in keyof ValidatorArguments]: SpecificValidator<N>\n\t}[keyof ValidatorArguments]\n\n\texport type Message = {\n\t\treadonly text: string\n\t\treadonly parameters?: readonly (string | number)[]\n\t}\n\n\texport type ValidationRule = {\n\t\treadonly validator: Validator\n\t\treadonly message: Message\n\t}\n\n\texport type EntityRules = {\n\t\treadonly [field: string]: readonly ValidationRule[]\n\t}\n\n\texport type Schema = {\n\t\treadonly [entity: string]: EntityRules\n\t}\n}\n"],"names":["Validation","ArgumentType"],"mappings":";;AAEiBA,QAAAA,aAAAA;AAAAA,CAAV,CAAUA,gBAAV;AAGC,GAAA,CAAKC,kBAAL;AACNA,kBAAA,WAAY,IAAA;AACZA,kBAAA,MAAO,IAAA;AACPA,kBAAA,SAAU,IAAA;AAAA,EAHC,GAAAD,YAAA,iBAAAA,YAAA,eAAA,CAAA,EAAA;AAAA,GAHIA,QAAA,eAAAA,qBAAA,CAAA,EAAA;"}
@@ -1,12 +0,0 @@
1
- var Validation;
2
- ((Validation2) => {
3
- ((ArgumentType2) => {
4
- ArgumentType2["validator"] = "validator";
5
- ArgumentType2["path"] = "path";
6
- ArgumentType2["literal"] = "literal";
7
- })(Validation2.ArgumentType || (Validation2.ArgumentType = {}));
8
- })(Validation || (Validation = {}));
9
- export {
10
- Validation
11
- };
12
- //# sourceMappingURL=validation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation.js","sources":["../../../../../packages/schema/src/schema/validation.ts"],"sourcesContent":["import { JSONValue } from './json'\n\nexport namespace Validation {\n\texport type ContextPath = readonly string[]\n\n\texport enum ArgumentType {\n\t\tvalidator = 'validator',\n\t\tpath = 'path',\n\t\tliteral = 'literal',\n\t}\n\n\texport type ValidatorArgument = {\n\t\treadonly type: ArgumentType.validator\n\t\treadonly validator: Validator\n\t}\n\texport type PathArgument = {\n\t\treadonly type: ArgumentType.path\n\t\treadonly path: ContextPath\n\t}\n\texport type LiteralArgument<V = JSONValue> = {\n\t\treadonly type: ArgumentType.literal\n\t\treadonly value: V\n\t}\n\n\texport type ValidatorArguments = {\n\t\treadonly and: readonly ValidatorArgument[]\n\t\treadonly or: readonly ValidatorArgument[]\n\t\treadonly conditional: readonly [ValidatorArgument, ValidatorArgument]\n\t\treadonly pattern: readonly [LiteralArgument<readonly [string, string]>]\n\t\treadonly lengthRange: readonly [LiteralArgument<number | null>, LiteralArgument<number | null>]\n\t\treadonly range: readonly [LiteralArgument<number | null>, LiteralArgument<number | null>]\n\t\treadonly equals: readonly [LiteralArgument<JSONValue>]\n\t\treadonly not: readonly [ValidatorArgument]\n\t\treadonly empty: readonly[]\n\t\treadonly defined: readonly[]\n\t\treadonly inContext: readonly [PathArgument, ValidatorArgument]\n\t\treadonly every: readonly [ValidatorArgument]\n\t\treadonly any: readonly [ValidatorArgument]\n\t\treadonly filter: readonly [ValidatorArgument, ValidatorArgument]\n\t}\n\n\texport type SpecificValidator<N extends keyof ValidatorArguments> = {\n\t\treadonly operation: N\n\t\treadonly args: ValidatorArguments[N]\n\t}\n\n\texport type Validator = {\n\t\treadonly [N in keyof ValidatorArguments]: SpecificValidator<N>\n\t}[keyof ValidatorArguments]\n\n\texport type Message = {\n\t\treadonly text: string\n\t\treadonly parameters?: readonly (string | number)[]\n\t}\n\n\texport type ValidationRule = {\n\t\treadonly validator: Validator\n\t\treadonly message: Message\n\t}\n\n\texport type EntityRules = {\n\t\treadonly [field: string]: readonly ValidationRule[]\n\t}\n\n\texport type Schema = {\n\t\treadonly [entity: string]: EntityRules\n\t}\n}\n"],"names":["Validation","ArgumentType"],"mappings":"AAEiB,IAAA;AAAA,CAAV,CAAUA,gBAAV;AAGC,GAAA,CAAKC,kBAAL;AACNA,kBAAA,WAAY,IAAA;AACZA,kBAAA,MAAO,IAAA;AACPA,kBAAA,SAAU,IAAA;AAAA,EAHC,GAAAD,YAAA,iBAAAA,YAAA,eAAA,CAAA,EAAA;AAAA,GAHI,eAAA,aAAA,CAAA,EAAA;"}
@@ -1,6 +0,0 @@
1
- export declare enum ProjectRole {
2
- ADMIN = "admin",
3
- CONTENT_ADMIN = "content_admin",
4
- DEPLOYER = "deployer"
5
- }
6
- //# sourceMappingURL=ProjectRole.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProjectRole.d.ts","sourceRoot":"","sources":["../../src/ProjectRole.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACtB,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;CACrB"}
@@ -1,14 +0,0 @@
1
- import { Acl, Actions, Model, Settings, Validation } from './schema';
2
- export * from './ProjectRole';
3
- export type Schema = {
4
- readonly model: Model.Schema;
5
- readonly acl: Acl.Schema;
6
- readonly validation: Validation.Schema;
7
- readonly actions: Actions.Schema;
8
- readonly settings: Settings.Schema;
9
- };
10
- export type Writable<V> = {
11
- -readonly [K in keyof V]: V[K];
12
- };
13
- export * from './schema';
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAEpE,cAAc,eAAe,CAAA;AAE7B,MAAM,MAAM,MAAM,GAAG;IACpB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAA;IAC5B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAA;IACxB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAA;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAA;IAChC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;IAAC,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAC,CAAA;AAE1D,cAAc,UAAU,CAAA"}
@@ -1,132 +0,0 @@
1
- import { Input } from './input';
2
- import { JSONValue } from './json';
3
- export declare namespace Acl {
4
- enum VariableType {
5
- entity = "entity",
6
- predefined = "predefined",
7
- condition = "condition"
8
- }
9
- type Variable = EntityVariable | PredefinedVariable | ConditionVariable;
10
- type EntityVariable = {
11
- readonly type: VariableType.entity;
12
- readonly entityName: string;
13
- readonly fallback?: Input.Condition;
14
- };
15
- type PredefinedVariableValue = 'identityID' | 'personID';
16
- type PredefinedVariable = {
17
- readonly type: VariableType.predefined;
18
- readonly value: PredefinedVariableValue;
19
- };
20
- type ConditionVariable = {
21
- readonly type: VariableType.condition;
22
- readonly fallback?: Input.Condition;
23
- };
24
- type PredicateVariable = string;
25
- type PredicateDefinition<E = never> = Input.Where<PredicateVariable | Input.Condition | E>;
26
- type PredicateMap = {
27
- readonly [name: string]: PredicateDefinition;
28
- };
29
- type EntityPermissions = {
30
- readonly predicates: PredicateMap;
31
- readonly operations: EntityOperations;
32
- };
33
- enum Operation {
34
- read = "read",
35
- create = "create",
36
- update = "update",
37
- delete = "delete"
38
- }
39
- type EntityOperations = {
40
- readonly read?: FieldPermissions;
41
- readonly create?: FieldPermissions;
42
- readonly update?: FieldPermissions;
43
- readonly delete?: Predicate;
44
- readonly noRoot?: readonly `${Operation}`[];
45
- readonly customPrimary?: boolean;
46
- readonly refreshMaterializedView?: boolean;
47
- };
48
- type FieldPermissions = {
49
- readonly [field: string]: Predicate;
50
- };
51
- type PredicateReference = string;
52
- type Predicate = PredicateReference | boolean;
53
- type AnyStage = '*';
54
- type StagesDefinition = AnyStage | readonly string[];
55
- type MembershipVariableMatchRule = true | string;
56
- type MembershipVariablesMatchRule = true | {
57
- readonly [targetVariable: string]: MembershipVariableMatchRule;
58
- };
59
- type MembershipRoleMatchRule = true | {
60
- readonly variables?: MembershipVariablesMatchRule;
61
- };
62
- type MembershipMatchRule = boolean | {
63
- readonly [role: string]: MembershipRoleMatchRule;
64
- };
65
- type TenantPermissions = {
66
- readonly invite?: MembershipMatchRule;
67
- readonly unmanagedInvite?: MembershipMatchRule;
68
- readonly view?: MembershipMatchRule;
69
- readonly manage?: MembershipMatchRule;
70
- };
71
- enum SystemPermissionsLevel {
72
- none = "none",
73
- any = "any",
74
- some = "some"
75
- }
76
- /**
77
- * @deprecated
78
- */
79
- type LimitedSystemPermissionsLevel = 'any' | 'none';
80
- type SystemPermissions = {
81
- readonly history?: boolean | LimitedSystemPermissionsLevel;
82
- readonly migrate?: boolean;
83
- readonly assumeIdentity?: boolean;
84
- readonly export?: boolean;
85
- readonly import?: boolean;
86
- };
87
- type ContentPermissions = {
88
- readonly assumeMembership?: MembershipMatchRule;
89
- readonly export?: boolean;
90
- readonly import?: boolean;
91
- readonly refreshMaterializedView?: boolean;
92
- };
93
- interface BaseRolePermissions {
94
- readonly inherits?: readonly string[];
95
- readonly implicit?: boolean;
96
- readonly tenant?: TenantPermissions;
97
- readonly system?: SystemPermissions;
98
- readonly content?: ContentPermissions;
99
- readonly variables: Acl.Variables;
100
- readonly stages?: StagesDefinition;
101
- readonly entities: Permissions;
102
- readonly debug?: boolean;
103
- }
104
- type RolePermissions = BaseRolePermissions & {
105
- readonly [key: string]: JSONValue;
106
- };
107
- type Permissions = {
108
- readonly [entity: string]: EntityPermissions;
109
- };
110
- type Roles = {
111
- readonly [role: string]: RolePermissions;
112
- };
113
- type Variables = {
114
- readonly [name: string]: Variable;
115
- };
116
- type Schema = {
117
- readonly customPrimary?: boolean;
118
- readonly roles: Acl.Roles;
119
- };
120
- type VariablesMap = {
121
- readonly [name: string]: Input.Condition;
122
- };
123
- interface MembershipVariable {
124
- readonly name: string;
125
- readonly values: readonly string[];
126
- }
127
- interface Membership {
128
- readonly role: string;
129
- readonly variables: readonly Memb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ject, fields: SelectionNode];
4
- type SelectionNode = readonly (string | SelectionNodeSub)[];
5
- type AnyTarget = WebhookTarget;
6
- type WebhookTarget = {
7
- readonly type: 'webhook';
8
- readonly name: string;
9
- readonly url: string;
10
- readonly headers?: {
11
- readonly [key: string]: string;
12
- };
13
- readonly body?: JSONObject;
14
- readonly payloadPath?: readonly string[];
15
- readonly timeoutMs?: number;
16
- readonly maxAttempts?: number;
17
- readonly initialRepeatIntervalMs?: number;
18
- readonly batchSize?: number;
19
- };
20
- type AnyTrigger = BasicTrigger | WatchTrigger;
21
- type TriggerCommon = {
22
- readonly name: string;
23
- readonly selection?: SelectionNode;
24
- readonly target: string;
25
- readonly priority?: number;
26
- };
27
- type BasicTrigger = TriggerCommon & {
28
- readonly type: 'basic';
29
- readonly entity: string;
30
- readonly create: boolean;
31
- readonly delete: boolean;
32
- readonly update: boolean | readonly string[];
33
- };
34
- type WatchTrigger = TriggerCommon & {
35
- readonly type: 'watch';
36
- readonly entity: string;
37
- readonly watch: SelectionNode;
38
- readonly withNodes?: boolean;
39
- };
40
- type Schema = {
41
- readonly triggers: {
42
- readonly [name: string]: AnyTrigger;
43
- };
44
- readonly targets: {
45
- readonly [name: string]: AnyTarget;
46
- };
47
- };
48
- }
49
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/schema/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEnC,yBAAiB,OAAO,CAAC;IACxB,KAAY,gBAAgB,GAAG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,CAAA;IAC/F,KAAY,aAAa,GAAG,SAAS,CAAC,MAAM,GAAG,gBAAgB,CAAC,EAAE,CAAA;IAElE,KAAY,SAAS,GAClB,aAAa,CAAA;IAEhB,KAAY,aAAa,GAAG;QAC3B,QAAQ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B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;QAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAC5B,CAAA;IAEF,KAAY,MAAM,GAAG;QACpB,QAAQ,CAAC,QAAQ,EAAE;YAClB,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;SACnC,CAAA;QACD,QAAQ,CAAC,OAAO,EAAE;YACjB,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;SAClC,CAAA;KACD,CAAA;CACD"}
@@ -1,95 +0,0 @@
1
- import { Input } from './input';
2
- import { JSONObject } from './json';
3
- export declare namespace ActionsPayload {
4
- type EntityEventPathNode = {
5
- readonly relation: string;
6
- readonly entity: string;
7
- readonly id: Input.PrimaryValue;
8
- };
9
- type UpdateEvent = {
10
- readonly operation: 'update';
11
- readonly entity: string;
12
- readonly id: Input.PrimaryValue;
13
- readonly values: JSONObject;
14
- readonly old?: JSONObject;
15
- readonly selection?: JSONObject;
16
- readonly path?: readonly string[];
17
- readonly nodes?: readonly EntityEventPathNode[];
18
- };
19
- type CreateEvent = {
20
- readonly operation: 'create';
21
- readonly entity: string;
22
- readonly id: Input.PrimaryValue;
23
- readonly values: JSONObject;
24
- readonly selection?: JSONObject;
25
- readonly path?: readonly string[];
26
- readonly nodes?: readonly EntityEventPathNode[];
27
- };
28
- type DeleteEvent = {
29
- readonly operation: 'delete';
30
- readonly entity: string;
31
- readonly id: Input.PrimaryValue;
32
- readonly selection?: JSONObject;
33
- readonly path?: readonly string[];
34
- readonly nodes?: readonly EntityEventPathNode[];
35
- };
36
- type JunctionConnectEvent = {
37
- readonly operation: 'junction_connect';
38
- readonly entity: string;
39
- readonly id: Input.PrimaryValue;
40
- readonly relation: string;
41
- readonly inverseId: Input.PrimaryValue;
42
- readonly selection?: JSONObject;
43
- readonly path?: readonly string[];
44
- readonly nodes?: readonly EntityEventPathNode[];
45
- };
46
- type JunctionDisconnectEvent = {
47
- readonly operation: 'junction_disconnect';
48
- readonly entity: string;
49
- readonly id: Input.PrimaryValue;
50
- readonly relation: string;
51
- readonly inverseId: Input.PrimaryValue;
52
- readonly selection?: JSONObject;
53
- readonly path?: readonly string[];
54
- readonly nodes?: readonly EntityEventPathNode[];
55
- };
56
- type WatchEventPayload = {
57
- readonly operation: 'watch';
58
- readonly trigger: string;
59
- readonly entity: string;
60
- readonly id: Input.PrimaryValue;
61
- readonly events: readonly BaseEventPayload[];
62
- readonly selection?: JSONObject;
63
- };
64
- type BaseEventPayload = CreateEvent | UpdateEvent | DeleteEvent | JunctionConnectEvent | JunctionDisconnectEvent;
65
- type BasicEventPayload = BaseEventPayload & {
66
- readonly trigger: string;
67
- };
68
- type AnyEventPayload = BasicEventPayload | WatchEventPayload;
69
- type WebhookMeta = {
70
- readonly eventId: string;
71
- readonly transactionId: string;
72
- readonly identityId: string | null;
73
- readonly ipAddress: string | null;
74
- readonly userAgent: string | null;
75
- readonly createdAt: string;
76
- readonly lastStateChange: string;
77
- readonly numRetries: number;
78
- readonly trigger: string;
79
- readonly target: string;
80
- };
81
- type WebhookEvent = AnyEventPayload & {
82
- readonly meta: WebhookMeta;
83
- };
84
- type WebhookRequestPayload = {
85
- readonly events: readonly WebhookEvent[];
86
- };
87
- type WebhookResponseFailure = {
88
- readonly eventId: string;
89
- readonly error?: string;
90
- };
91
- type WebhookResponsePayload = {
92
- readonly failures: readonly WebhookResponseFailure[];
93
- };
94
- }
95
- //# sourceMappingURL=actionsPayload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actionsPayload.d.ts","sourceRoot":"","sources":["../../../src/schema/actionsPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEnC,yBAAiB,cAAc,CAAC;IAC/B,KAAY,mBAAmB,GAAG;QACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;QAC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S,sBAAsB,EAAE,CAAA;KACpD,CAAA;CACD"}
@@ -1,11 +0,0 @@
1
- export * from './acl';
2
- export * from './actions';
3
- export * from './actionsPayload';
4
- export * from './input';
5
- export * from './json';
6
- export * from './model';
7
- export * from './result';
8
- export * from './settings';
9
- export * from './validation';
10
- export * from './value';
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -1,178 +0,0 @@
1
- import { Value } from './value';
2
- export declare namespace Input {
3
- type PrimaryValue<E = never> = Value.PrimaryValue<E>;
4
- type ColumnValue<E = never> = Value.FieldValue<E>;
5
- enum UpdateRelationOperation {
6
- connect = "connect",
7
- disconnect = "disconnect",
8
- create = "create",
9
- connectOrCreate = "connectOrCreate",
10
- update = "update",
11
- upsert = "upsert",
12
- delete = "delete"
13
- }
14
- enum CreateRelationOperation {
15
- connect = "connect",
16
- create = "create",
17
- connectOrCreate = "connectOrCreate"
18
- }
19
- interface ConnectRelationInput<E = never> {
20
- connect: UniqueWhere<E>;
21
- }
22
- interface CreateRelationInput<E = never> {
23
- create: CreateDataInput<E>;
24
- }
25
- interface ConnectOrCreateInput<E = never> {
26
- connect: UniqueWhere<E>;
27
- create: CreateDataInput<E>;
28
- }
29
- interface ConnectOrCreateRelationInput<E = never> {
30
- connectOrCreate: ConnectOrCreateInput<E>;
31
- }
32
- interface DisconnectSpecifiedRelationInput<E = never> {
33
- disconnect: UniqueWhere<E>;
34
- }
35
- interface DeleteSpecifiedRelationInput<E = never> {
36
- delete: UniqueWhere<E>;
37
- }
38
- interface UpdateSpecifiedRelationInput<E = never> {
39
- update: {
40
- by: UniqueWhere<E>;
41
- data: UpdateDataInput<E>;
42
- };
43
- }
44
- interface UpsertSpecifiedRelationInput<E = never> {
45
- upsert: {
46
- by: UniqueWhere<E>;
47
- update: UpdateDataInput<E>;
48
- create: CreateDataInput<E>;
49
- };
50
- }
51
- interface DisconnectRelationInput {
52
- disconnect: true;
53
- }
54
- interface UpdateRelationInput<E = never> {
55
- update: UpdateDataInput<E>;
56
- }
57
- interface DeleteRelationInput {
58
- delete: true;
59
- }
60
- interface UpsertRelationInput<E = never> {
61
- upsert: {
62
- update: UpdateDataInput<E>;
63
- create: CreateDataInput<E>;
64
- };
65
- }
66
- interface CreateDataInput<E = never> {
67
- [column: string]: Value.FieldValue<E> | CreateOneRelationInput<E> | CreateManyRelationInput<E>;
68
- }
69
- type CreateOneRelationInput<E = never> = {
70
- alias?: string;
71
- } & (ConnectRelationInput<E> | CreateRelationInput<E> | ConnectOrCreateRelationInput<E>);
72
- type CreateManyRelationInput<E = never> = Array<CreateOneRelationInput<E>>;
73
- interface UpdateDataInput<E = never> {
74
- [column: string]: Value.FieldValue<E> | UpdateOneRelationInput<E> | UpdateManyRelationInput<E>;
75
- }
76
- interface UpdateInput<E = never> {
77
- by: UniqueWhere<E>;
78
- filter?: OptionalWhere<E>;
79
- data: UpdateDataInput<E>;
80
- }
81
- interface UpsertInput<E = never> {
82
- by: UniqueWhere<E>;
83
- filter?: OptionalWhere<E>;
84
- update: UpdateDataInput<E>;
85
- create: CreateDataInput<E>;
86
- }
87
- interface CreateInput<E = never> {
88
- data: CreateDataInput<E>;
89
- }
90
- interface DeleteInput<E = never> {
91
- by: UniqueWhere<E>;
92
- filter?: OptionalWhere<E>;
93
- }
94
- interface UniqueQueryInput<E = never> {
95
- by: UniqueWhere<E>;
96
- filter?: OptionalWhere<E>;
97
- }
98
- interface ListQueryInput<E = never> {
99
- filter?: OptionalWhere<E>;
100
- orderBy?: OrderBy[];
101
- offset?: number;
102
- limit?: number;
103
- }
104
- interface PaginationQueryInput<E = never> {
105
- filter?: OptionalWhere<E>;
106
- orderBy?: OrderBy[];
107
- skip?: number;
108
- first?: number;
109
- }
110
- /** @deprecated */
111
- type SelectQueryInput<E = never> = PaginationQueryInput<E>;
112
- type UpdateOneRelationInput<E = never> = CreateRelationInput<E> | ConnectRelationInput<E> | ConnectOrCreateRelationInput<E> | DeleteRelationInput | DisconnectRelationInput | UpdateRelationInput<E> | UpsertRelationInput<E>;
113
- type UpdateManyRelationInputItem<E = never> = {
114
- alias?: string;
115
- } & (CreateRelationInput<E> | ConnectRelationInput<E> | ConnectOrCreateRelationInput<E> | DeleteSpecifiedRelationInput<E> | DisconnectSpecifiedRelationInput<E> | UpdateSpecifiedRelationInput<E> | UpsertSpecifiedRelationInput<E>);
116
- type UpdateManyRelationInput<E = never> = Array<UpdateManyRelationInputItem<E>>;
117
- enum OrderDirection {
118
- asc = "asc",
119
- ascNullsFirst = "ascNullsFirst",
120
- desc = "desc",
121
- descNullsLast = "descNullsLast",
122
- /** @deprecated use ascNullsFirst*/
123
- ascNullFirst = "ascNullsFirst"
124
- }
125
- type FieldOrderBy<T = OrderDirection> = T | OrderBy<T>;
126
- interface OrderByFields<T = OrderDirection> {
127
- [fieldName: string]: FieldOrderBy<T>;
128
- }
129
- type OrderBy<T = OrderDirection> = OrderByFields<T> & {
130
- _random?: boolean;
131
- _randomSeeded?: number;
132
- };
133
- type Condition<T = Value.FieldValue> = {
134
- readonly and?: readonly Condition<T>[];
135
- readonly or?: readonly Condition<T>[];
136
- readonly not?: Condition<T>;
137
- readonly isNull?: boolean;
138
- readonly eq?: T;
139
- readonly notEq?: T;
140
- readonly in?: readonly T[];
141
- readonly notIn?: readonly T[];
142
- readonly lt?: T;
143
- readonly lte?: T;
144
- readonly gt?: T;
145
- readonly gte?: T;
146
- readonly minLength?: number;
147
- readonly maxLength?: number;
148
- readonly includes?: T extends (infer U)[] ? U : never;
149
- readonly contains?: string;
150
- readonly startsWith?: string;
151
- readonly endsWith?: string;
152
- readonly containsCI?: string;
153
- readonly startsWithCI?: string;
154
- readonly endsWithCI?: string;
155
- readonly never?: true;
156
- readonly always?: true;
157
- readonly null?: boolean;
158
- };
159
- type UniqueWhere<E = never> = {
160
- readonly [field: string]: Value.PrimaryValue<E> | UniqueWhere<E>;
161
- };
162
- type ComposedWhere<C, Opt = never> = {
163
- readonly and?: (readonly (Where<C, Opt> | Opt)[]) | Opt;
164
- readonly or?: (readonly (Where<C, Opt> | Opt)[]) | Opt;
165
- readonly not?: Where<C, Opt> | Opt;
166
- };
167
- interface FieldWhere<C = Condition, Opt = never> {
168
- readonly [name: string]: Opt | C | Where<C, Opt> | readonly (Where<C, Opt> | Opt)[];
169
- }
170
- type Where<C = Condition, Opt = never> = ComposedWhere<C, Opt> & FieldWhere<C, Opt>;
171
- type OptionalWhere<E = never> = Where<Condition<Value.FieldValue<E>>, null | undefined>;
172
- type OptionalFieldWhere<E = never> = FieldWhere<Condition<Value.FieldValue<E>>, null | undefined>;
173
- enum FieldMeta {
174
- readable = "readable",
175
- updatable = "updatable"
176
- }
177
- }
178
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/schema/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,yBAAiB,KAAK,CAAC;IACtB,KAAY,YAAY,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;IAC3D,KAAY,WAAW,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;IAExD,KAAY,uBAAuB;QAClC,OAAO,YAAY;QACnB,UAAU,eAAe;QACzB,MAAM,WAAW;QACjB,eAAe,oBAAoB;QACnC,MAAM,WAAW;QACjB,MAAM,WAAW;QACjB,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AAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAAA;IAC9F,KAAY,kBAAkB,CAAC,CAAC,GAAG,KAAK,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC,CAAA;IAExG,KAAY,SAAS;QACpB,QAAQ,aAAa;QACrB,SAAS,cAAc;KACvB;CACD"}
@@ -1,7 +0,0 @@
1
- export type JSONPrimitive = string | number | boolean | null;
2
- export type JSONValue = JSONPrimitive | JSONObject | JSONArray;
3
- export type JSONObject = {
4
- readonly [K in string]?: JSONValue;
5
- };
6
- export type JSONArray = readonly JSONValue[];
7
- //# sourceMappingURL=json.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/schema/json.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AAC5D,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,CAAA;AAC9D,MAAM,MAAM,UAAU,GAAG;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,SAAS;CAAE,CAAA;AAC/D,MAAM,MAAM,SAAS,GAAG,SAAS,SAAS,EAAE,CAAA"}