@contember/schema 2.1.0-alpha.9 → 2.1.0-beta.2
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/CLAUDE.md +25 -0
- package/dist/development/src/ProjectRole.cjs.map +1 -1
- package/dist/development/src/ProjectRole.js.map +1 -1
- package/dist/development/src/schema/acl.cjs.map +1 -1
- package/dist/development/src/schema/acl.js.map +1 -1
- package/dist/development/src/schema/input.cjs.map +1 -1
- package/dist/development/src/schema/input.js.map +1 -1
- package/dist/development/src/schema/model.cjs.map +1 -1
- package/dist/development/src/schema/model.js.map +1 -1
- package/dist/development/src/schema/result.cjs.map +1 -1
- package/dist/development/src/schema/result.js.map +1 -1
- package/dist/development/src/schema/validation.cjs.map +1 -1
- package/dist/development/src/schema/validation.js.map +1 -1
- package/dist/production/src/ProjectRole.cjs.map +1 -1
- package/dist/production/src/ProjectRole.js.map +1 -1
- package/dist/production/src/schema/acl.cjs.map +1 -1
- package/dist/production/src/schema/acl.js.map +1 -1
- package/dist/production/src/schema/input.cjs.map +1 -1
- package/dist/production/src/schema/input.js.map +1 -1
- package/dist/production/src/schema/model.cjs.map +1 -1
- package/dist/production/src/schema/model.js.map +1 -1
- package/dist/production/src/schema/result.cjs.map +1 -1
- package/dist/production/src/schema/result.js.map +1 -1
- package/dist/production/src/schema/validation.cjs.map +1 -1
- package/dist/production/src/schema/validation.js.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/schema/acl.d.ts +3 -3
- package/dist/types/schema/acl.d.ts.map +1 -1
- package/dist/types/schema/actions.d.ts +1 -0
- package/dist/types/schema/actions.d.ts.map +1 -1
- package/dist/types/schema/actionsPayload.d.ts +13 -0
- package/dist/types/schema/actionsPayload.d.ts.map +1 -1
- package/dist/types/schema/input.d.ts +1 -1
- package/dist/types/schema/input.d.ts.map +1 -1
- package/dist/types/schema/model.d.ts +5 -2
- package/dist/types/schema/model.d.ts.map +1 -1
- package/dist/types/schema/settings.d.ts +4 -0
- package/dist/types/schema/settings.d.ts.map +1 -1
- package/dist/types/schema/validation.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -2
- package/src/index.ts +1 -1
- package/src/schema/acl.ts +10 -12
- package/src/schema/actions.ts +2 -2
- package/src/schema/actionsPayload.ts +14 -1
- package/src/schema/input.ts +20 -18
- package/src/schema/model.ts +93 -10
- package/src/schema/settings.ts +5 -0
- package/src/schema/validation.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.cjs","sources":["../../../../../packages/schema/src/schema/model.ts"],"sourcesContent":["import { Input } from './input'\nimport { JSONValue } from './json'\n\nexport namespace Model {\n\n\texport type Entity = {\n\t\treadonly name: string\n\t\treadonly primary: string\n\t\treadonly primaryColumn: string\n\t\treadonly tableName: string\n\t\treadonly fields: { readonly [name: string]: AnyField }\n\t\treadonly unique: Uniques\n\t\treadonly indexes: Indexes\n\t\treadonly view?: View\n\t\treadonly eventLog: EventLogConfig\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type View = {\n\t\treadonly sql: string\n\t\treadonly dependencies?: readonly string[]\n\t\treadonly idSource?: readonly string[]\n\t\treadonly materialized?: boolean\n\t}\n\n\texport type EventLogConfig = {\n\t\treadonly enabled: boolean\n\t}\n\n\texport type FieldType = RelationType | ColumnType\n\texport type Field<T extends FieldType> = {\n\t\treadonly type: T\n\t}\n\n\texport type AnyField = AnyColumn | AnyRelation\n\texport type AnyColumn<T extends ColumnType = ColumnType> = Column<T>\n\n\texport enum ColumnType {\n\t\tUuid = 'Uuid',\n\t\tString = 'String',\n\t\tInt = 'Integer',\n\t\tDouble = 'Double',\n\t\tBool = 'Bool',\n\t\tEnum = 'Enum',\n\t\tDateTime = 'DateTime',\n\t\tDate = 'Date',\n\t\tTime = 'Time',\n\t\tJson = 'Json',\n\t}\n\n\texport type Column<T extends ColumnType> = ColumnTypeDefinition<T> & {\n\t\treadonly name: string\n\t\treadonly columnName: string\n\t}\n\n\texport type ColumnTypeDefinition<T extends ColumnType = ColumnType> =\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly columnType: string\n\t\t\treadonly list?: boolean\n\t\t\treadonly typeAlias?: string\n\t\t\treadonly nullable: boolean\n\t\t\treadonly default?: JSONValue\n\t\t\treadonly sequence?: {\n\t\t\t\treadonly precedence: 'ALWAYS' | 'BY DEFAULT'\n\t\t\t\treadonly start?: number\n\t\t\t}\n\t\t\treadonly collation?: Collation\n\t\t}\n\n\texport type Collation =\n\t\t// generic\n\t\t| 'und-x-icu' | 'C' | 'ucs_basic' | 'unicode' | 'POSIX' | 'default'\n\t\t// some languages\n\t\t| 'cs-x-icu' | 'sk-x-icu' | 'da-x-icu' | 'de-x-icu' | 'en-x-icu' | 'es-x-icu' | 'fr-x-icu' | 'it-x-icu' | 'ja-x-icu' | 'ko-x-icu' | 'nl-x-icu' | 'pl-x-icu' | 'pt-x-icu' | 'ru-x-icu' | 'sv-x-icu' | 'tr-x-icu' | 'zh-x-icu' | 'hu-x-icu' | 'fi-x-icu' | 'el-x-icu' | 'bg-x-icu' | 'hr-x-icu' | 'ro-x-icu' | 'sl-x-icu' | 'sr-x-icu' | 'uk-x-icu' | 'vi-x-icu' | 'th-x-icu' | 'ar-x-icu' | 'he-x-icu' | 'hi-x-icu' | 'id-x-icu' | 'ms-x-icu' | 'fil-x-icu' | 'sw-x-icu' | 'ta-x-icu' | 'te-x-icu' | 'ml-x-icu' | 'bn-x-icu' | 'gu-x-icu' | 'kn-x-icu' | 'mr-x-icu' | 'pa-x-icu' | 'ur-x-icu' | 'or-x-icu' | 'si-x-icu' | 'th-x-icu' | 'lo-x-icu' | 'my-x-icu' | 'ka-x-icu' | 'am-x-icu' | 'ti-x-icu' | 'ne-x-icu' | 'dz-x-icu' | 'kok-x-icu' | 'syr-x-icu' | 'sd-x-icu' | 'bo-x-icu' | 'km-x-icu' | 'mn-x-icu' | 'lo-x-icu' | 'gl-x-icu' | 'eu-x-icu' | 'ca-x-icu' | 'af-x-icu' | 'is-x-icu' | 'mk-x-icu' | 'sq-x-icu' | 'hy-x-icu' | 'mt-x-icu' | 'cy-x-icu' | 'et-x-icu' | 'lv-x-icu' | 'lt-x-icu' | 'tg-x-icu' | 'fa-x-icu' | 'ps-x-icu' | 'ks-x-icu' | 'sd-x'\n\t\t// fallback\n\t\t| string & {}\n\n\n\texport enum RelationType {\n\t\tOneHasOne = 'OneHasOne',\n\t\tOneHasMany = 'OneHasMany',\n\t\tManyHasOne = 'ManyHasOne',\n\t\tManyHasMany = 'ManyHasMany',\n\t}\n\n\texport type AnyInverseRelation =\n\t\t| OneHasManyRelation\n\t\t| OneHasOneInverseRelation\n\t\t| ManyHasManyInverseRelation\n\n\t/** @deprecated */\n\texport type AnyInversedRelation = AnyInverseRelation\n\n\texport type AnyOwningRelation =\n\t\t| ManyHasOneRelation\n\t\t| OneHasOneOwningRelation\n\t\t| ManyHasManyOwningRelation\n\n\texport type AnyRelation = AnyInverseRelation | AnyOwningRelation\n\n\texport type Relation<T extends RelationType = RelationType>=\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly name: string\n\t\t\treadonly type: T\n\t\t\treadonly target: string\n\t\t}\n\n\texport type InverseRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly ownedBy: string\n\t\t}\n\n\t/** @deprecated */\n\texport type InversedRelation = InverseRelation\n\n\texport type OwningRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly inversedBy?: string\n\t\t}\n\n\t/** @deprecated */\n\texport type OwnerRelation = OwningRelation\n\n\texport enum OnDelete {\n\t\tcascade = 'cascade',\n\t\trestrict = 'restrict',\n\t\tsetNull = 'set null',\n\t}\n\n\texport type JoiningColumn = {\n\t\treadonly columnName: string\n\t\treadonly onDelete: OnDelete\n\t}\n\n\texport type JoiningColumnRelation = {\n\t\treadonly joiningColumn: JoiningColumn\n\t}\n\n\texport type NullableRelation = {\n\t\treadonly nullable: boolean\n\t}\n\n\texport type JoiningTable = {\n\t\treadonly tableName: string\n\t\treadonly joiningColumn: JoiningColumn\n\t\treadonly inverseJoiningColumn: JoiningColumn\n\t\treadonly eventLog: EventLogConfig\n\t}\n\n\texport type JoiningTableRelation = {\n\t\treadonly joiningTable: JoiningTable\n\t}\n\n\texport import OrderDirection = Input.OrderDirection\n\texport type OrderBy = {\n\t\treadonly path: readonly string[]\n\t\treadonly direction: OrderDirection\n\t}\n\n\texport type OrderableRelation = {\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type OneHasManyRelation =\n\t\t& Relation<RelationType.OneHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\n\texport type ManyHasOneRelation =\n\t\t& Relation<RelationType.ManyHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\n\texport type OneHasOneInverseRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& InverseRelation\n\t\t& NullableRelation\n\t/** @deprecated */\n\texport type OneHasOneInversedRelation = OneHasOneInverseRelation\n\n\texport type OneHasOneOwningRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\t\t& {\n\t\t\treadonly orphanRemoval?: true\n\t\t}\n\t/** @deprecated */\n\texport type OneHasOneOwnerRelation = OneHasOneOwningRelation\n\n\texport type ManyHasManyInverseRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyInversedRelation = ManyHasManyInverseRelation\n\n\texport type ManyHasManyOwningRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& OwningRelation\n\t\t& JoiningTableRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyOwnerRelation = ManyHasManyOwningRelation\n\n\texport type Schema = {\n\t\treadonly enums: { readonly [name: string]: readonly string[] }\n\t\treadonly entities: { readonly [name: string]: Entity }\n\t}\n\n\texport type Unique = UniqueIndex | UniqueConstraint\n\texport type Uniques = readonly (Unique)[]\n\n\texport type ConstraintTiming = 'deferrable' | 'deferred'\n\n\texport type UniqueConstraint = {\n\t\treadonly fields: readonly string[]\n\t\treadonly timing?: ConstraintTiming // empty means not deferrable\n\t\treadonly name?: string\n\t\treadonly index?: false\n\t}\n\texport type NullsDistinctBehaviour = 'distinct' | 'not distinct'\n\texport type UniqueIndex = {\n\t\treadonly fields: readonly string[]\n\t\treadonly index: true\n\t\treadonly nulls?: NullsDistinctBehaviour // empty means distinct\n\t}\n\n\texport type Indexes = readonly Index[]\n\n\texport type Index = {\n\t\treadonly fields: readonly string[]\n\t\treadonly name?: string\n\t}\n\n\n\texport interface ColumnContext {\n\t\tentity: Model.Entity\n\t\tcolumn: Model.AnyColumn\n\t}\n\n\texport type AnyHasManyRelationContext =\n\t\t| ManyHasManyInverseContext\n\t\t| ManyHasManyOwningContext\n\t\t| OneHasManyContext\n\n\texport type AnyHasOneRelationContext =\n\t\t| ManyHasOneContext\n\t\t| OneHasOneOwningContext\n\t\t| OneHasOneInverseContext\n\n\texport type AnyRelationContext =\n\t\t| AnyHasManyRelationContext\n\t\t| AnyHasOneRelationContext\n\n\texport type AnyFieldContext =\n\t\t| ColumnContext\n\t\t| AnyRelationContext\n\n\texport interface ManyHasManyInverseContext {\n\t\ttype: 'manyHasManyInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyOwningRelation\n\t}\n\n\texport interface ManyHasManyOwningContext {\n\t\ttype: 'manyHasManyOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyInverseRelation | null\n\t}\n\n\texport interface ManyHasOneContext {\n\t\ttype: 'manyHasOne'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasOneRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasManyRelation | null\n\t}\n\n\texport interface OneHasManyContext {\n\t\ttype: 'oneHasMany'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasManyRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasOneRelation\n\t}\n\n\texport interface OneHasOneInverseContext {\n\t\ttype: 'oneHasOneInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneOwningRelation\n\t}\n\n\texport interface OneHasOneOwningContext {\n\t\ttype: 'oneHasOneOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneInverseRelation | null\n\t}\n\n\n\texport interface ColumnVisitor<T> {\n\t\tvisitColumn(context: ColumnContext): T\n\t}\n\n\texport interface RelationVisitor<T> {\n\t\tvisitRelation(context: AnyRelationContext): T\n\t}\n\n\texport type FieldVisitor<T> =\n\t\t& ColumnVisitor<T>\n\t\t& (\n\t\t\t| RelationVisitor<T>\n\t\t\t| RelationByTypeVisitor<T>\n\t\t\t| RelationByGenericTypeVisitor<T>\n\t\t)\n\n\texport interface RelationByTypeVisitor<T> {\n\t\tvisitManyHasOne(context: ManyHasOneContext): T\n\n\t\tvisitOneHasMany(context: OneHasManyContext): T\n\n\t\tvisitOneHasOneOwning(context: OneHasOneOwningContext): T\n\n\t\tvisitOneHasOneInverse(context: OneHasOneInverseContext): T\n\n\t\tvisitManyHasManyOwning(context: ManyHasManyOwningContext): T\n\n\t\tvisitManyHasManyInverse(context: ManyHasManyInverseContext): T\n\t}\n\n\texport interface RelationByGenericTypeVisitor<T> {\n\t\tvisitHasMany(context: AnyHasManyRelationContext): T\n\n\t\tvisitHasOne(context: AnyHasOneRelationContext): T\n\t}\n}\n"],"names":["Model","ColumnType","RelationType","OnDelete","Input"],"mappings":";;;AAGiBA,QAAAA,QAAAA;AAAAA,CAAV,CAAUA,WAAV;AAkCC,GAAA,CAAKC,gBAAL;AACNA,gBAAA,MAAO,IAAA;AACPA,gBAAA,QAAS,IAAA;AACTA,gBAAA,KAAM,IAAA;AACNA,gBAAA,QAAS,IAAA;AACTA,gBAAA,MAAO,IAAA;AACPA,gBAAA,MAAO,IAAA;AACPA,gBAAA,UAAW,IAAA;AACXA,gBAAA,MAAO,IAAA;AACPA,gBAAA,MAAO,IAAA;AACPA,gBAAA,MAAO,IAAA;AAAA,EAVI,GAAAD,OAAA,eAAAA,OAAA,aAAA,CAAA,EAAA;AA0CL,GAAA,CAAKE,kBAAL;AACNA,kBAAA,WAAY,IAAA;AACZA,kBAAA,YAAa,IAAA;AACbA,kBAAA,YAAa,IAAA;AACbA,kBAAA,aAAc,IAAA;AAAA,EAJH,GAAAF,OAAA,iBAAAA,OAAA,eAAA,CAAA,EAAA;AAgDL,GAAA,CAAKG,cAAL;AACNA,cAAA,SAAU,IAAA;AACVA,cAAA,UAAW,IAAA;AACXA,cAAA,SAAU,IAAA;AAAA,EAHC,GAAAH,OAAA,aAAAA,OAAA,WAAA,CAAA,EAAA;AA8BEA,SAAA,iBAAiBI,MAAAA,MAAM;AAAA,GA1JrBJ,QAAA,UAAAA,gBAAA,CAAA,EAAA;"}
|
|
1
|
+
{"version":3,"file":"model.cjs","sources":["../../../../../packages/schema/src/schema/model.ts"],"sourcesContent":["import { Input } from './input'\nimport { JSONValue } from './json'\n\nexport namespace Model {\n\texport type Entity<Fields extends string = string> = {\n\t\treadonly name: string\n\t\treadonly primary: string\n\t\treadonly primaryColumn: string\n\t\treadonly tableName: string\n\t\treadonly fields: { readonly [name in Fields]: AnyField }\n\t\treadonly unique: Uniques\n\t\treadonly indexes: Indexes\n\t\treadonly view?: View\n\t\treadonly eventLog: EventLogConfig\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type View = {\n\t\treadonly sql: string\n\t\treadonly dependencies?: readonly string[]\n\t\treadonly idSource?: readonly string[]\n\t\treadonly materialized?: boolean\n\t}\n\n\texport type EventLogConfig = {\n\t\treadonly enabled: boolean\n\t}\n\n\texport type FieldType = RelationType | ColumnType\n\texport type Field<T extends FieldType> = {\n\t\treadonly type: T\n\t}\n\n\texport type AnyField = AnyColumn | AnyRelation\n\texport type AnyColumn<T extends ColumnType = ColumnType> = Column<T>\n\n\texport enum ColumnType {\n\t\tUuid = 'Uuid',\n\t\tString = 'String',\n\t\tInt = 'Integer',\n\t\tDouble = 'Double',\n\t\tBool = 'Bool',\n\t\tEnum = 'Enum',\n\t\tDateTime = 'DateTime',\n\t\tDate = 'Date',\n\t\tTime = 'Time',\n\t\tJson = 'Json',\n\t}\n\n\texport type Column<T extends ColumnType> = ColumnTypeDefinition<T> & {\n\t\treadonly name: string\n\t\treadonly columnName: string\n\t}\n\n\texport type ColumnTypeDefinition<T extends ColumnType = ColumnType> =\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly columnType: string\n\t\t\treadonly list?: boolean\n\t\t\treadonly typeAlias?: string\n\t\t\treadonly nullable: boolean\n\t\t\treadonly default?: JSONValue\n\t\t\treadonly sequence?: {\n\t\t\t\treadonly precedence: 'ALWAYS' | 'BY DEFAULT'\n\t\t\t\treadonly start?: number\n\t\t\t}\n\t\t\treadonly collation?: Collation\n\t\t}\n\n\texport type Collation =\n\t\t// generic\n\t\t| 'und-x-icu'\n\t\t| 'C'\n\t\t| 'ucs_basic'\n\t\t| 'unicode'\n\t\t| 'POSIX'\n\t\t| 'default'\n\t\t// some languages\n\t\t| 'cs-x-icu'\n\t\t| 'sk-x-icu'\n\t\t| 'da-x-icu'\n\t\t| 'de-x-icu'\n\t\t| 'en-x-icu'\n\t\t| 'es-x-icu'\n\t\t| 'fr-x-icu'\n\t\t| 'it-x-icu'\n\t\t| 'ja-x-icu'\n\t\t| 'ko-x-icu'\n\t\t| 'nl-x-icu'\n\t\t| 'pl-x-icu'\n\t\t| 'pt-x-icu'\n\t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t| 'tg-x-icu'\n\t\t| 'fa-x-icu'\n\t\t| 'ps-x-icu'\n\t\t| 'ks-x-icu'\n\t\t| 'sd-x'\n\t\t// fallback\n\t\t| string & {}\n\n\texport enum RelationType {\n\t\tOneHasOne = 'OneHasOne',\n\t\tOneHasMany = 'OneHasMany',\n\t\tManyHasOne = 'ManyHasOne',\n\t\tManyHasMany = 'ManyHasMany',\n\t}\n\n\texport type AnyInverseRelation =\n\t\t| OneHasManyRelation\n\t\t| OneHasOneInverseRelation\n\t\t| ManyHasManyInverseRelation\n\n\t/** @deprecated */\n\texport type AnyInversedRelation = AnyInverseRelation\n\n\texport type AnyOwningRelation =\n\t\t| ManyHasOneRelation\n\t\t| OneHasOneOwningRelation\n\t\t| ManyHasManyOwningRelation\n\n\texport type AnyRelation = AnyInverseRelation | AnyOwningRelation\n\n\texport type Relation<T extends RelationType = RelationType> =\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly name: string\n\t\t\treadonly type: T\n\t\t\treadonly target: string\n\t\t}\n\n\texport type InverseRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly ownedBy: string\n\t\t}\n\n\t/** @deprecated */\n\texport type InversedRelation = InverseRelation\n\n\texport type OwningRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly inversedBy?: string\n\t\t}\n\n\t/** @deprecated */\n\texport type OwnerRelation = OwningRelation\n\n\texport enum OnDelete {\n\t\tcascade = 'cascade',\n\t\trestrict = 'restrict',\n\t\tsetNull = 'set null',\n\t}\n\n\texport type JoiningColumn = {\n\t\treadonly columnName: string\n\t\treadonly onDelete: OnDelete\n\t}\n\n\texport type JoiningColumnRelation = {\n\t\treadonly joiningColumn: JoiningColumn\n\t}\n\n\texport type NullableRelation = {\n\t\treadonly nullable: boolean\n\t}\n\n\texport type JoiningTable = {\n\t\treadonly tableName: string\n\t\treadonly joiningColumn: JoiningColumn\n\t\treadonly inverseJoiningColumn: JoiningColumn\n\t\treadonly eventLog: EventLogConfig\n\t}\n\n\texport type JoiningTableRelation = {\n\t\treadonly joiningTable: JoiningTable\n\t}\n\n\texport import OrderDirection = Input.OrderDirection\n\texport type OrderBy = {\n\t\treadonly path: readonly string[]\n\t\treadonly direction: OrderDirection\n\t}\n\n\texport type OrderableRelation = {\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type OneHasManyRelation =\n\t\t& Relation<RelationType.OneHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\n\texport type ManyHasOneRelation =\n\t\t& Relation<RelationType.ManyHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\n\texport type OneHasOneInverseRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& InverseRelation\n\t\t& NullableRelation\n\t/** @deprecated */\n\texport type OneHasOneInversedRelation = OneHasOneInverseRelation\n\n\texport type OneHasOneOwningRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\t\t& {\n\t\t\treadonly orphanRemoval?: true\n\t\t}\n\t/** @deprecated */\n\texport type OneHasOneOwnerRelation = OneHasOneOwningRelation\n\n\texport type ManyHasManyInverseRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyInversedRelation = ManyHasManyInverseRelation\n\n\texport type ManyHasManyOwningRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& OwningRelation\n\t\t& JoiningTableRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyOwnerRelation = ManyHasManyOwningRelation\n\n\texport type Schema = {\n\t\treadonly enums: { readonly [name: string]: readonly string[] }\n\t\treadonly entities: { readonly [name: string]: Entity }\n\t}\n\n\texport type Unique = UniqueIndex | UniqueConstraint\n\texport type Uniques = readonly (Unique)[]\n\n\texport type ConstraintTiming = 'deferrable' | 'deferred'\n\n\texport type UniqueConstraint = {\n\t\treadonly fields: readonly string[]\n\t\treadonly timing?: ConstraintTiming // empty means not deferrable\n\t\treadonly name?: string\n\t\treadonly index?: false\n\t}\n\texport type NullsDistinctBehaviour = 'distinct' | 'not distinct'\n\texport type UniqueIndex = {\n\t\treadonly fields: readonly string[]\n\t\treadonly index: true\n\t\treadonly nulls?: NullsDistinctBehaviour // empty means distinct\n\t\treadonly method?: IndexMethod\n\t}\n\n\texport type Indexes = readonly Index[]\n\n\texport type IndexMethod = 'btree' | 'gin' | 'gist' | 'hash' | 'brin' | 'spgist'\n\n\texport type Index = {\n\t\treadonly fields: readonly string[]\n\t\treadonly name?: string\n\t\treadonly method?: IndexMethod\n\t}\n\n\texport interface ColumnContext {\n\t\tentity: Model.Entity\n\t\tcolumn: Model.AnyColumn\n\t}\n\n\texport type AnyHasManyRelationContext =\n\t\t| ManyHasManyInverseContext\n\t\t| ManyHasManyOwningContext\n\t\t| OneHasManyContext\n\n\texport type AnyHasOneRelationContext =\n\t\t| ManyHasOneContext\n\t\t| OneHasOneOwningContext\n\t\t| OneHasOneInverseContext\n\n\texport type AnyRelationContext =\n\t\t| AnyHasManyRelationContext\n\t\t| AnyHasOneRelationContext\n\n\texport type AnyFieldContext =\n\t\t| ColumnContext\n\t\t| AnyRelationContext\n\n\texport interface ManyHasManyInverseContext {\n\t\ttype: 'manyHasManyInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyOwningRelation\n\t}\n\n\texport interface ManyHasManyOwningContext {\n\t\ttype: 'manyHasManyOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyInverseRelation | null\n\t}\n\n\texport interface ManyHasOneContext {\n\t\ttype: 'manyHasOne'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasOneRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasManyRelation | null\n\t}\n\n\texport interface OneHasManyContext {\n\t\ttype: 'oneHasMany'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasManyRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasOneRelation\n\t}\n\n\texport interface OneHasOneInverseContext {\n\t\ttype: 'oneHasOneInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneOwningRelation\n\t}\n\n\texport interface OneHasOneOwningContext {\n\t\ttype: 'oneHasOneOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneInverseRelation | null\n\t}\n\n\texport interface ColumnVisitor<T> {\n\t\tvisitColumn(context: ColumnContext): T\n\t}\n\n\texport interface RelationVisitor<T> {\n\t\tvisitRelation(context: AnyRelationContext): T\n\t}\n\n\texport type FieldVisitor<T> =\n\t\t& ColumnVisitor<T>\n\t\t& (\n\t\t\t| RelationVisitor<T>\n\t\t\t| RelationByTypeVisitor<T>\n\t\t\t| RelationByGenericTypeVisitor<T>\n\t\t)\n\n\texport interface RelationByTypeVisitor<T> {\n\t\tvisitManyHasOne(context: ManyHasOneContext): T\n\n\t\tvisitOneHasMany(context: OneHasManyContext): T\n\n\t\tvisitOneHasOneOwning(context: OneHasOneOwningContext): T\n\n\t\tvisitOneHasOneInverse(context: OneHasOneInverseContext): T\n\n\t\tvisitManyHasManyOwning(context: ManyHasManyOwningContext): T\n\n\t\tvisitManyHasManyInverse(context: ManyHasManyInverseContext): T\n\t}\n\n\texport interface RelationByGenericTypeVisitor<T> {\n\t\tvisitHasMany(context: AnyHasManyRelationContext): T\n\n\t\tvisitHasOne(context: AnyHasOneRelationContext): T\n\t}\n}\n"],"names":["Model","ColumnType","RelationType","OnDelete","Input"],"mappings":";;;AAGiBA,QAAAA,QAAAA;AAAAA,CAAV,CAAUA,WAAV;AAiCC,GAAA,CAAKC,gBAAL;AACNA,gBAAA,MAAA,IAAO;AACPA,gBAAA,QAAA,IAAS;AACTA,gBAAA,KAAA,IAAM;AACNA,gBAAA,QAAA,IAAS;AACTA,gBAAA,MAAA,IAAO;AACPA,gBAAA,MAAA,IAAO;AACPA,gBAAA,UAAA,IAAW;AACXA,gBAAA,MAAA,IAAO;AACPA,gBAAA,MAAA,IAAO;AACPA,gBAAA,MAAA,IAAO;AAAA,EAAA,GAVID,OAAA,eAAAA,OAAA,aAAA,CAAA,EAAA;AA4HL,GAAA,CAAKE,kBAAL;AACNA,kBAAA,WAAA,IAAY;AACZA,kBAAA,YAAA,IAAa;AACbA,kBAAA,YAAA,IAAa;AACbA,kBAAA,aAAA,IAAc;AAAA,EAAA,GAJHF,OAAA,iBAAAA,OAAA,eAAA,CAAA,EAAA;AAgDL,GAAA,CAAKG,cAAL;AACNA,cAAA,SAAA,IAAU;AACVA,cAAA,UAAA,IAAW;AACXA,cAAA,SAAA,IAAU;AAAA,EAAA,GAHCH,OAAA,aAAAA,OAAA,WAAA,CAAA,EAAA;AA8BEA,SAAA,iBAAiBI,MAAAA,MAAM;AAAA,GA3OrBJ,QAAAA,UAAAA,gBAAA,CAAA,EAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sources":["../../../../../packages/schema/src/schema/model.ts"],"sourcesContent":["import { Input } from './input'\nimport { JSONValue } from './json'\n\nexport namespace Model {\n\n\texport type Entity = {\n\t\treadonly name: string\n\t\treadonly primary: string\n\t\treadonly primaryColumn: string\n\t\treadonly tableName: string\n\t\treadonly fields: { readonly [name: string]: AnyField }\n\t\treadonly unique: Uniques\n\t\treadonly indexes: Indexes\n\t\treadonly view?: View\n\t\treadonly eventLog: EventLogConfig\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type View = {\n\t\treadonly sql: string\n\t\treadonly dependencies?: readonly string[]\n\t\treadonly idSource?: readonly string[]\n\t\treadonly materialized?: boolean\n\t}\n\n\texport type EventLogConfig = {\n\t\treadonly enabled: boolean\n\t}\n\n\texport type FieldType = RelationType | ColumnType\n\texport type Field<T extends FieldType> = {\n\t\treadonly type: T\n\t}\n\n\texport type AnyField = AnyColumn | AnyRelation\n\texport type AnyColumn<T extends ColumnType = ColumnType> = Column<T>\n\n\texport enum ColumnType {\n\t\tUuid = 'Uuid',\n\t\tString = 'String',\n\t\tInt = 'Integer',\n\t\tDouble = 'Double',\n\t\tBool = 'Bool',\n\t\tEnum = 'Enum',\n\t\tDateTime = 'DateTime',\n\t\tDate = 'Date',\n\t\tTime = 'Time',\n\t\tJson = 'Json',\n\t}\n\n\texport type Column<T extends ColumnType> = ColumnTypeDefinition<T> & {\n\t\treadonly name: string\n\t\treadonly columnName: string\n\t}\n\n\texport type ColumnTypeDefinition<T extends ColumnType = ColumnType> =\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly columnType: string\n\t\t\treadonly list?: boolean\n\t\t\treadonly typeAlias?: string\n\t\t\treadonly nullable: boolean\n\t\t\treadonly default?: JSONValue\n\t\t\treadonly sequence?: {\n\t\t\t\treadonly precedence: 'ALWAYS' | 'BY DEFAULT'\n\t\t\t\treadonly start?: number\n\t\t\t}\n\t\t\treadonly collation?: Collation\n\t\t}\n\n\texport type Collation =\n\t\t// generic\n\t\t| 'und-x-icu' | 'C' | 'ucs_basic' | 'unicode' | 'POSIX' | 'default'\n\t\t// some languages\n\t\t| 'cs-x-icu' | 'sk-x-icu' | 'da-x-icu' | 'de-x-icu' | 'en-x-icu' | 'es-x-icu' | 'fr-x-icu' | 'it-x-icu' | 'ja-x-icu' | 'ko-x-icu' | 'nl-x-icu' | 'pl-x-icu' | 'pt-x-icu' | 'ru-x-icu' | 'sv-x-icu' | 'tr-x-icu' | 'zh-x-icu' | 'hu-x-icu' | 'fi-x-icu' | 'el-x-icu' | 'bg-x-icu' | 'hr-x-icu' | 'ro-x-icu' | 'sl-x-icu' | 'sr-x-icu' | 'uk-x-icu' | 'vi-x-icu' | 'th-x-icu' | 'ar-x-icu' | 'he-x-icu' | 'hi-x-icu' | 'id-x-icu' | 'ms-x-icu' | 'fil-x-icu' | 'sw-x-icu' | 'ta-x-icu' | 'te-x-icu' | 'ml-x-icu' | 'bn-x-icu' | 'gu-x-icu' | 'kn-x-icu' | 'mr-x-icu' | 'pa-x-icu' | 'ur-x-icu' | 'or-x-icu' | 'si-x-icu' | 'th-x-icu' | 'lo-x-icu' | 'my-x-icu' | 'ka-x-icu' | 'am-x-icu' | 'ti-x-icu' | 'ne-x-icu' | 'dz-x-icu' | 'kok-x-icu' | 'syr-x-icu' | 'sd-x-icu' | 'bo-x-icu' | 'km-x-icu' | 'mn-x-icu' | 'lo-x-icu' | 'gl-x-icu' | 'eu-x-icu' | 'ca-x-icu' | 'af-x-icu' | 'is-x-icu' | 'mk-x-icu' | 'sq-x-icu' | 'hy-x-icu' | 'mt-x-icu' | 'cy-x-icu' | 'et-x-icu' | 'lv-x-icu' | 'lt-x-icu' | 'tg-x-icu' | 'fa-x-icu' | 'ps-x-icu' | 'ks-x-icu' | 'sd-x'\n\t\t// fallback\n\t\t| string & {}\n\n\n\texport enum RelationType {\n\t\tOneHasOne = 'OneHasOne',\n\t\tOneHasMany = 'OneHasMany',\n\t\tManyHasOne = 'ManyHasOne',\n\t\tManyHasMany = 'ManyHasMany',\n\t}\n\n\texport type AnyInverseRelation =\n\t\t| OneHasManyRelation\n\t\t| OneHasOneInverseRelation\n\t\t| ManyHasManyInverseRelation\n\n\t/** @deprecated */\n\texport type AnyInversedRelation = AnyInverseRelation\n\n\texport type AnyOwningRelation =\n\t\t| ManyHasOneRelation\n\t\t| OneHasOneOwningRelation\n\t\t| ManyHasManyOwningRelation\n\n\texport type AnyRelation = AnyInverseRelation | AnyOwningRelation\n\n\texport type Relation<T extends RelationType = RelationType>=\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly name: string\n\t\t\treadonly type: T\n\t\t\treadonly target: string\n\t\t}\n\n\texport type InverseRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly ownedBy: string\n\t\t}\n\n\t/** @deprecated */\n\texport type InversedRelation = InverseRelation\n\n\texport type OwningRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly inversedBy?: string\n\t\t}\n\n\t/** @deprecated */\n\texport type OwnerRelation = OwningRelation\n\n\texport enum OnDelete {\n\t\tcascade = 'cascade',\n\t\trestrict = 'restrict',\n\t\tsetNull = 'set null',\n\t}\n\n\texport type JoiningColumn = {\n\t\treadonly columnName: string\n\t\treadonly onDelete: OnDelete\n\t}\n\n\texport type JoiningColumnRelation = {\n\t\treadonly joiningColumn: JoiningColumn\n\t}\n\n\texport type NullableRelation = {\n\t\treadonly nullable: boolean\n\t}\n\n\texport type JoiningTable = {\n\t\treadonly tableName: string\n\t\treadonly joiningColumn: JoiningColumn\n\t\treadonly inverseJoiningColumn: JoiningColumn\n\t\treadonly eventLog: EventLogConfig\n\t}\n\n\texport type JoiningTableRelation = {\n\t\treadonly joiningTable: JoiningTable\n\t}\n\n\texport import OrderDirection = Input.OrderDirection\n\texport type OrderBy = {\n\t\treadonly path: readonly string[]\n\t\treadonly direction: OrderDirection\n\t}\n\n\texport type OrderableRelation = {\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type OneHasManyRelation =\n\t\t& Relation<RelationType.OneHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\n\texport type ManyHasOneRelation =\n\t\t& Relation<RelationType.ManyHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\n\texport type OneHasOneInverseRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& InverseRelation\n\t\t& NullableRelation\n\t/** @deprecated */\n\texport type OneHasOneInversedRelation = OneHasOneInverseRelation\n\n\texport type OneHasOneOwningRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\t\t& {\n\t\t\treadonly orphanRemoval?: true\n\t\t}\n\t/** @deprecated */\n\texport type OneHasOneOwnerRelation = OneHasOneOwningRelation\n\n\texport type ManyHasManyInverseRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyInversedRelation = ManyHasManyInverseRelation\n\n\texport type ManyHasManyOwningRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& OwningRelation\n\t\t& JoiningTableRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyOwnerRelation = ManyHasManyOwningRelation\n\n\texport type Schema = {\n\t\treadonly enums: { readonly [name: string]: readonly string[] }\n\t\treadonly entities: { readonly [name: string]: Entity }\n\t}\n\n\texport type Unique = UniqueIndex | UniqueConstraint\n\texport type Uniques = readonly (Unique)[]\n\n\texport type ConstraintTiming = 'deferrable' | 'deferred'\n\n\texport type UniqueConstraint = {\n\t\treadonly fields: readonly string[]\n\t\treadonly timing?: ConstraintTiming // empty means not deferrable\n\t\treadonly name?: string\n\t\treadonly index?: false\n\t}\n\texport type NullsDistinctBehaviour = 'distinct' | 'not distinct'\n\texport type UniqueIndex = {\n\t\treadonly fields: readonly string[]\n\t\treadonly index: true\n\t\treadonly nulls?: NullsDistinctBehaviour // empty means distinct\n\t}\n\n\texport type Indexes = readonly Index[]\n\n\texport type Index = {\n\t\treadonly fields: readonly string[]\n\t\treadonly name?: string\n\t}\n\n\n\texport interface ColumnContext {\n\t\tentity: Model.Entity\n\t\tcolumn: Model.AnyColumn\n\t}\n\n\texport type AnyHasManyRelationContext =\n\t\t| ManyHasManyInverseContext\n\t\t| ManyHasManyOwningContext\n\t\t| OneHasManyContext\n\n\texport type AnyHasOneRelationContext =\n\t\t| ManyHasOneContext\n\t\t| OneHasOneOwningContext\n\t\t| OneHasOneInverseContext\n\n\texport type AnyRelationContext =\n\t\t| AnyHasManyRelationContext\n\t\t| AnyHasOneRelationContext\n\n\texport type AnyFieldContext =\n\t\t| ColumnContext\n\t\t| AnyRelationContext\n\n\texport interface ManyHasManyInverseContext {\n\t\ttype: 'manyHasManyInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyOwningRelation\n\t}\n\n\texport interface ManyHasManyOwningContext {\n\t\ttype: 'manyHasManyOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyInverseRelation | null\n\t}\n\n\texport interface ManyHasOneContext {\n\t\ttype: 'manyHasOne'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasOneRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasManyRelation | null\n\t}\n\n\texport interface OneHasManyContext {\n\t\ttype: 'oneHasMany'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasManyRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasOneRelation\n\t}\n\n\texport interface OneHasOneInverseContext {\n\t\ttype: 'oneHasOneInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneOwningRelation\n\t}\n\n\texport interface OneHasOneOwningContext {\n\t\ttype: 'oneHasOneOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneInverseRelation | null\n\t}\n\n\n\texport interface ColumnVisitor<T> {\n\t\tvisitColumn(context: ColumnContext): T\n\t}\n\n\texport interface RelationVisitor<T> {\n\t\tvisitRelation(context: AnyRelationContext): T\n\t}\n\n\texport type FieldVisitor<T> =\n\t\t& ColumnVisitor<T>\n\t\t& (\n\t\t\t| RelationVisitor<T>\n\t\t\t| RelationByTypeVisitor<T>\n\t\t\t| RelationByGenericTypeVisitor<T>\n\t\t)\n\n\texport interface RelationByTypeVisitor<T> {\n\t\tvisitManyHasOne(context: ManyHasOneContext): T\n\n\t\tvisitOneHasMany(context: OneHasManyContext): T\n\n\t\tvisitOneHasOneOwning(context: OneHasOneOwningContext): T\n\n\t\tvisitOneHasOneInverse(context: OneHasOneInverseContext): T\n\n\t\tvisitManyHasManyOwning(context: ManyHasManyOwningContext): T\n\n\t\tvisitManyHasManyInverse(context: ManyHasManyInverseContext): T\n\t}\n\n\texport interface RelationByGenericTypeVisitor<T> {\n\t\tvisitHasMany(context: AnyHasManyRelationContext): T\n\n\t\tvisitHasOne(context: AnyHasOneRelationContext): T\n\t}\n}\n"],"names":["Model","ColumnType","RelationType","OnDelete"],"mappings":";AAGiB,IAAA;AAAA,CAAV,CAAUA,WAAV;AAkCC,GAAA,CAAKC,gBAAL;AACNA,gBAAA,MAAO,IAAA;AACPA,gBAAA,QAAS,IAAA;AACTA,gBAAA,KAAM,IAAA;AACNA,gBAAA,QAAS,IAAA;AACTA,gBAAA,MAAO,IAAA;AACPA,gBAAA,MAAO,IAAA;AACPA,gBAAA,UAAW,IAAA;AACXA,gBAAA,MAAO,IAAA;AACPA,gBAAA,MAAO,IAAA;AACPA,gBAAA,MAAO,IAAA;AAAA,EAVI,GAAAD,OAAA,eAAAA,OAAA,aAAA,CAAA,EAAA;AA0CL,GAAA,CAAKE,kBAAL;AACNA,kBAAA,WAAY,IAAA;AACZA,kBAAA,YAAa,IAAA;AACbA,kBAAA,YAAa,IAAA;AACbA,kBAAA,aAAc,IAAA;AAAA,EAJH,GAAAF,OAAA,iBAAAA,OAAA,eAAA,CAAA,EAAA;AAgDL,GAAA,CAAKG,cAAL;AACNA,cAAA,SAAU,IAAA;AACVA,cAAA,UAAW,IAAA;AACXA,cAAA,SAAU,IAAA;AAAA,EAHC,GAAAH,OAAA,aAAAA,OAAA,WAAA,CAAA,EAAA;AA8BEA,SAAA,iBAAiB,MAAM;AAAA,GA1JrB,UAAA,QAAA,CAAA,EAAA;"}
|
|
1
|
+
{"version":3,"file":"model.js","sources":["../../../../../packages/schema/src/schema/model.ts"],"sourcesContent":["import { Input } from './input'\nimport { JSONValue } from './json'\n\nexport namespace Model {\n\texport type Entity<Fields extends string = string> = {\n\t\treadonly name: string\n\t\treadonly primary: string\n\t\treadonly primaryColumn: string\n\t\treadonly tableName: string\n\t\treadonly fields: { readonly [name in Fields]: AnyField }\n\t\treadonly unique: Uniques\n\t\treadonly indexes: Indexes\n\t\treadonly view?: View\n\t\treadonly eventLog: EventLogConfig\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type View = {\n\t\treadonly sql: string\n\t\treadonly dependencies?: readonly string[]\n\t\treadonly idSource?: readonly string[]\n\t\treadonly materialized?: boolean\n\t}\n\n\texport type EventLogConfig = {\n\t\treadonly enabled: boolean\n\t}\n\n\texport type FieldType = RelationType | ColumnType\n\texport type Field<T extends FieldType> = {\n\t\treadonly type: T\n\t}\n\n\texport type AnyField = AnyColumn | AnyRelation\n\texport type AnyColumn<T extends ColumnType = ColumnType> = Column<T>\n\n\texport enum ColumnType {\n\t\tUuid = 'Uuid',\n\t\tString = 'String',\n\t\tInt = 'Integer',\n\t\tDouble = 'Double',\n\t\tBool = 'Bool',\n\t\tEnum = 'Enum',\n\t\tDateTime = 'DateTime',\n\t\tDate = 'Date',\n\t\tTime = 'Time',\n\t\tJson = 'Json',\n\t}\n\n\texport type Column<T extends ColumnType> = ColumnTypeDefinition<T> & {\n\t\treadonly name: string\n\t\treadonly columnName: string\n\t}\n\n\texport type ColumnTypeDefinition<T extends ColumnType = ColumnType> =\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly columnType: string\n\t\t\treadonly list?: boolean\n\t\t\treadonly typeAlias?: string\n\t\t\treadonly nullable: boolean\n\t\t\treadonly default?: JSONValue\n\t\t\treadonly sequence?: {\n\t\t\t\treadonly precedence: 'ALWAYS' | 'BY DEFAULT'\n\t\t\t\treadonly start?: number\n\t\t\t}\n\t\t\treadonly collation?: Collation\n\t\t}\n\n\texport type Collation =\n\t\t// generic\n\t\t| 'und-x-icu'\n\t\t| 'C'\n\t\t| 'ucs_basic'\n\t\t| 'unicode'\n\t\t| 'POSIX'\n\t\t| 'default'\n\t\t// some languages\n\t\t| 'cs-x-icu'\n\t\t| 'sk-x-icu'\n\t\t| 'da-x-icu'\n\t\t| 'de-x-icu'\n\t\t| 'en-x-icu'\n\t\t| 'es-x-icu'\n\t\t| 'fr-x-icu'\n\t\t| 'it-x-icu'\n\t\t| 'ja-x-icu'\n\t\t| 'ko-x-icu'\n\t\t| 'nl-x-icu'\n\t\t| 'pl-x-icu'\n\t\t| 'pt-x-icu'\n\t\t| 'ru-x-icu'\n\t\t| 'sv-x-icu'\n\t\t| 'tr-x-icu'\n\t\t| 'zh-x-icu'\n\t\t| 'hu-x-icu'\n\t\t| 'fi-x-icu'\n\t\t| 'el-x-icu'\n\t\t| 'bg-x-icu'\n\t\t| 'hr-x-icu'\n\t\t| 'ro-x-icu'\n\t\t| 'sl-x-icu'\n\t\t| 'sr-x-icu'\n\t\t| 'uk-x-icu'\n\t\t| 'vi-x-icu'\n\t\t| 'th-x-icu'\n\t\t| 'ar-x-icu'\n\t\t| 'he-x-icu'\n\t\t| 'hi-x-icu'\n\t\t| 'id-x-icu'\n\t\t| 'ms-x-icu'\n\t\t| 'fil-x-icu'\n\t\t| 'sw-x-icu'\n\t\t| 'ta-x-icu'\n\t\t| 'te-x-icu'\n\t\t| 'ml-x-icu'\n\t\t| 'bn-x-icu'\n\t\t| 'gu-x-icu'\n\t\t| 'kn-x-icu'\n\t\t| 'mr-x-icu'\n\t\t| 'pa-x-icu'\n\t\t| 'ur-x-icu'\n\t\t| 'or-x-icu'\n\t\t| 'si-x-icu'\n\t\t| 'th-x-icu'\n\t\t| 'lo-x-icu'\n\t\t| 'my-x-icu'\n\t\t| 'ka-x-icu'\n\t\t| 'am-x-icu'\n\t\t| 'ti-x-icu'\n\t\t| 'ne-x-icu'\n\t\t| 'dz-x-icu'\n\t\t| 'kok-x-icu'\n\t\t| 'syr-x-icu'\n\t\t| 'sd-x-icu'\n\t\t| 'bo-x-icu'\n\t\t| 'km-x-icu'\n\t\t| 'mn-x-icu'\n\t\t| 'lo-x-icu'\n\t\t| 'gl-x-icu'\n\t\t| 'eu-x-icu'\n\t\t| 'ca-x-icu'\n\t\t| 'af-x-icu'\n\t\t| 'is-x-icu'\n\t\t| 'mk-x-icu'\n\t\t| 'sq-x-icu'\n\t\t| 'hy-x-icu'\n\t\t| 'mt-x-icu'\n\t\t| 'cy-x-icu'\n\t\t| 'et-x-icu'\n\t\t| 'lv-x-icu'\n\t\t| 'lt-x-icu'\n\t\t| 'tg-x-icu'\n\t\t| 'fa-x-icu'\n\t\t| 'ps-x-icu'\n\t\t| 'ks-x-icu'\n\t\t| 'sd-x'\n\t\t// fallback\n\t\t| string & {}\n\n\texport enum RelationType {\n\t\tOneHasOne = 'OneHasOne',\n\t\tOneHasMany = 'OneHasMany',\n\t\tManyHasOne = 'ManyHasOne',\n\t\tManyHasMany = 'ManyHasMany',\n\t}\n\n\texport type AnyInverseRelation =\n\t\t| OneHasManyRelation\n\t\t| OneHasOneInverseRelation\n\t\t| ManyHasManyInverseRelation\n\n\t/** @deprecated */\n\texport type AnyInversedRelation = AnyInverseRelation\n\n\texport type AnyOwningRelation =\n\t\t| ManyHasOneRelation\n\t\t| OneHasOneOwningRelation\n\t\t| ManyHasManyOwningRelation\n\n\texport type AnyRelation = AnyInverseRelation | AnyOwningRelation\n\n\texport type Relation<T extends RelationType = RelationType> =\n\t\t& Field<T>\n\t\t& {\n\t\t\treadonly name: string\n\t\t\treadonly type: T\n\t\t\treadonly target: string\n\t\t}\n\n\texport type InverseRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly ownedBy: string\n\t\t}\n\n\t/** @deprecated */\n\texport type InversedRelation = InverseRelation\n\n\texport type OwningRelation =\n\t\t& Relation\n\t\t& {\n\t\t\treadonly inversedBy?: string\n\t\t}\n\n\t/** @deprecated */\n\texport type OwnerRelation = OwningRelation\n\n\texport enum OnDelete {\n\t\tcascade = 'cascade',\n\t\trestrict = 'restrict',\n\t\tsetNull = 'set null',\n\t}\n\n\texport type JoiningColumn = {\n\t\treadonly columnName: string\n\t\treadonly onDelete: OnDelete\n\t}\n\n\texport type JoiningColumnRelation = {\n\t\treadonly joiningColumn: JoiningColumn\n\t}\n\n\texport type NullableRelation = {\n\t\treadonly nullable: boolean\n\t}\n\n\texport type JoiningTable = {\n\t\treadonly tableName: string\n\t\treadonly joiningColumn: JoiningColumn\n\t\treadonly inverseJoiningColumn: JoiningColumn\n\t\treadonly eventLog: EventLogConfig\n\t}\n\n\texport type JoiningTableRelation = {\n\t\treadonly joiningTable: JoiningTable\n\t}\n\n\texport import OrderDirection = Input.OrderDirection\n\texport type OrderBy = {\n\t\treadonly path: readonly string[]\n\t\treadonly direction: OrderDirection\n\t}\n\n\texport type OrderableRelation = {\n\t\treadonly orderBy?: readonly OrderBy[]\n\t}\n\n\texport type OneHasManyRelation =\n\t\t& Relation<RelationType.OneHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\n\texport type ManyHasOneRelation =\n\t\t& Relation<RelationType.ManyHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\n\texport type OneHasOneInverseRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& InverseRelation\n\t\t& NullableRelation\n\t/** @deprecated */\n\texport type OneHasOneInversedRelation = OneHasOneInverseRelation\n\n\texport type OneHasOneOwningRelation =\n\t\t& Relation<RelationType.OneHasOne>\n\t\t& OwningRelation\n\t\t& JoiningColumnRelation\n\t\t& NullableRelation\n\t\t& {\n\t\t\treadonly orphanRemoval?: true\n\t\t}\n\t/** @deprecated */\n\texport type OneHasOneOwnerRelation = OneHasOneOwningRelation\n\n\texport type ManyHasManyInverseRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& InverseRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyInversedRelation = ManyHasManyInverseRelation\n\n\texport type ManyHasManyOwningRelation =\n\t\t& Relation<RelationType.ManyHasMany>\n\t\t& OwningRelation\n\t\t& JoiningTableRelation\n\t\t& OrderableRelation\n\t/** @deprecated */\n\texport type ManyHasManyOwnerRelation = ManyHasManyOwningRelation\n\n\texport type Schema = {\n\t\treadonly enums: { readonly [name: string]: readonly string[] }\n\t\treadonly entities: { readonly [name: string]: Entity }\n\t}\n\n\texport type Unique = UniqueIndex | UniqueConstraint\n\texport type Uniques = readonly (Unique)[]\n\n\texport type ConstraintTiming = 'deferrable' | 'deferred'\n\n\texport type UniqueConstraint = {\n\t\treadonly fields: readonly string[]\n\t\treadonly timing?: ConstraintTiming // empty means not deferrable\n\t\treadonly name?: string\n\t\treadonly index?: false\n\t}\n\texport type NullsDistinctBehaviour = 'distinct' | 'not distinct'\n\texport type UniqueIndex = {\n\t\treadonly fields: readonly string[]\n\t\treadonly index: true\n\t\treadonly nulls?: NullsDistinctBehaviour // empty means distinct\n\t\treadonly method?: IndexMethod\n\t}\n\n\texport type Indexes = readonly Index[]\n\n\texport type IndexMethod = 'btree' | 'gin' | 'gist' | 'hash' | 'brin' | 'spgist'\n\n\texport type Index = {\n\t\treadonly fields: readonly string[]\n\t\treadonly name?: string\n\t\treadonly method?: IndexMethod\n\t}\n\n\texport interface ColumnContext {\n\t\tentity: Model.Entity\n\t\tcolumn: Model.AnyColumn\n\t}\n\n\texport type AnyHasManyRelationContext =\n\t\t| ManyHasManyInverseContext\n\t\t| ManyHasManyOwningContext\n\t\t| OneHasManyContext\n\n\texport type AnyHasOneRelationContext =\n\t\t| ManyHasOneContext\n\t\t| OneHasOneOwningContext\n\t\t| OneHasOneInverseContext\n\n\texport type AnyRelationContext =\n\t\t| AnyHasManyRelationContext\n\t\t| AnyHasOneRelationContext\n\n\texport type AnyFieldContext =\n\t\t| ColumnContext\n\t\t| AnyRelationContext\n\n\texport interface ManyHasManyInverseContext {\n\t\ttype: 'manyHasManyInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyOwningRelation\n\t}\n\n\texport interface ManyHasManyOwningContext {\n\t\ttype: 'manyHasManyOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasManyOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasManyInverseRelation | null\n\t}\n\n\texport interface ManyHasOneContext {\n\t\ttype: 'manyHasOne'\n\t\tentity: Model.Entity\n\t\trelation: Model.ManyHasOneRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasManyRelation | null\n\t}\n\n\texport interface OneHasManyContext {\n\t\ttype: 'oneHasMany'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasManyRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.ManyHasOneRelation\n\t}\n\n\texport interface OneHasOneInverseContext {\n\t\ttype: 'oneHasOneInverse'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneInverseRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneOwningRelation\n\t}\n\n\texport interface OneHasOneOwningContext {\n\t\ttype: 'oneHasOneOwning'\n\t\tentity: Model.Entity\n\t\trelation: Model.OneHasOneOwningRelation\n\t\ttargetEntity: Model.Entity\n\t\ttargetRelation: Model.OneHasOneInverseRelation | null\n\t}\n\n\texport interface ColumnVisitor<T> {\n\t\tvisitColumn(context: ColumnContext): T\n\t}\n\n\texport interface RelationVisitor<T> {\n\t\tvisitRelation(context: AnyRelationContext): T\n\t}\n\n\texport type FieldVisitor<T> =\n\t\t& ColumnVisitor<T>\n\t\t& (\n\t\t\t| RelationVisitor<T>\n\t\t\t| RelationByTypeVisitor<T>\n\t\t\t| RelationByGenericTypeVisitor<T>\n\t\t)\n\n\texport interface RelationByTypeVisitor<T> {\n\t\tvisitManyHasOne(context: ManyHasOneContext): T\n\n\t\tvisitOneHasMany(context: OneHasManyContext): T\n\n\t\tvisitOneHasOneOwning(context: OneHasOneOwningContext): T\n\n\t\tvisitOneHasOneInverse(context: OneHasOneInverseContext): T\n\n\t\tvisitManyHasManyOwning(context: ManyHasManyOwningContext): T\n\n\t\tvisitManyHasManyInverse(context: ManyHasManyInverseContext): T\n\t}\n\n\texport interface RelationByGenericTypeVisitor<T> {\n\t\tvisitHasMany(context: AnyHasManyRelationContext): T\n\n\t\tvisitHasOne(context: AnyHasOneRelationContext): T\n\t}\n}\n"],"names":["Model","ColumnType","RelationType","OnDelete"],"mappings":";AAGO,IAAU;AAAA,CAAV,CAAUA,WAAV;AAiCC,GAAA,CAAKC,gBAAL;AACNA,gBAAA,MAAA,IAAO;AACPA,gBAAA,QAAA,IAAS;AACTA,gBAAA,KAAA,IAAM;AACNA,gBAAA,QAAA,IAAS;AACTA,gBAAA,MAAA,IAAO;AACPA,gBAAA,MAAA,IAAO;AACPA,gBAAA,UAAA,IAAW;AACXA,gBAAA,MAAA,IAAO;AACPA,gBAAA,MAAA,IAAO;AACPA,gBAAA,MAAA,IAAO;AAAA,EAAA,GAVID,OAAA,eAAAA,OAAA,aAAA,CAAA,EAAA;AA4HL,GAAA,CAAKE,kBAAL;AACNA,kBAAA,WAAA,IAAY;AACZA,kBAAA,YAAA,IAAa;AACbA,kBAAA,YAAA,IAAa;AACbA,kBAAA,aAAA,IAAc;AAAA,EAAA,GAJHF,OAAA,iBAAAA,OAAA,eAAA,CAAA,EAAA;AAgDL,GAAA,CAAKG,cAAL;AACNA,cAAA,SAAA,IAAU;AACVA,cAAA,UAAA,IAAW;AACXA,cAAA,SAAA,IAAU;AAAA,EAAA,GAHCH,OAAA,aAAAA,OAAA,WAAA,CAAA,EAAA;AA8BEA,SAAA,iBAAiB,MAAM;AAAA,GA3OrB,UAAA,QAAA,CAAA,EAAA;"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,4BAAA,IAA6B;AAC7BA,wBAAA,2BAAA,IAA4B;AAC5BA,wBAAA,+BAAA,IAAgC;AAChCA,wBAAA,kBAAA,IAAmB;AACnBA,wBAAA,qBAAA,IAAsB;AACtBA,wBAAA,kBAAA,IAAmB;AACnBA,wBAAA,UAAA,IAAW;AAAA,EAAA,GAPAD,QAAA,uBAAAA,QAAA,qBAAA,CAAA,EAAA;AAAA,GAnDIA,QAAAA,WAAAA,iBAAA,CAAA,EAAA;"}
|
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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":"AAEO,IAAU;AAAA,CAAV,CAAUA,YAAV;AAmDC,GAAA,CAAKC,wBAAL;AACNA,wBAAA,4BAAA,IAA6B;AAC7BA,wBAAA,2BAAA,IAA4B;AAC5BA,wBAAA,+BAAA,IAAgC;AAChCA,wBAAA,kBAAA,IAAmB;AACnBA,wBAAA,qBAAA,IAAsB;AACtBA,wBAAA,kBAAA,IAAmB;AACnBA,wBAAA,UAAA,IAAW;AAAA,EAAA,GAPAD,QAAA,uBAAAA,QAAA,qBAAA,CAAA,EAAA;AAAA,GAnDI,WAAA,SAAA,CAAA,EAAA;"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,WAAA,IAAY;AACZA,kBAAA,MAAA,IAAO;AACPA,kBAAA,SAAA,IAAU;AAAA,EAAA,GAHCD,YAAA,iBAAAA,YAAA,eAAA,CAAA,EAAA;AAAA,GAHIA,QAAAA,eAAAA,qBAAA,CAAA,EAAA;"}
|
|
@@ -1 +1 @@
|
|
|
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":"
|
|
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":"AAEO,IAAU;AAAA,CAAV,CAAUA,gBAAV;AAGC,GAAA,CAAKC,kBAAL;AACNA,kBAAA,WAAA,IAAY;AACZA,kBAAA,MAAA,IAAO;AACPA,kBAAA,SAAA,IAAU;AAAA,EAAA,GAHCD,YAAA,iBAAAA,YAAA,eAAA,CAAA,EAAA;AAAA,GAHI,eAAA,aAAA,CAAA,EAAA;"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;IAAE,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAA;AAE5D,cAAc,UAAU,CAAA"}
|
|
@@ -59,12 +59,12 @@ export declare namespace Acl {
|
|
|
59
59
|
type MembershipRoleMatchRule = true | {
|
|
60
60
|
readonly variables?: MembershipVariablesMatchRule;
|
|
61
61
|
};
|
|
62
|
-
type MembershipMatchRule = {
|
|
62
|
+
type MembershipMatchRule = boolean | {
|
|
63
63
|
readonly [role: string]: MembershipRoleMatchRule;
|
|
64
64
|
};
|
|
65
65
|
type TenantPermissions = {
|
|
66
|
-
readonly invite?:
|
|
67
|
-
readonly unmanagedInvite?:
|
|
66
|
+
readonly invite?: MembershipMatchRule;
|
|
67
|
+
readonly unmanagedInvite?: MembershipMatchRule;
|
|
68
68
|
readonly view?: MembershipMatchRule;
|
|
69
69
|
readonly manage?: MembershipMatchRule;
|
|
70
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acl.d.ts","sourceRoot":"","sources":["../../../src/schema/acl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,yBAAiB,GAAG,CAAC;IACpB,KAAY,YAAY;QACvB,MAAM,WAAW;QACjB,UAAU,eAAe;QACzB,SAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"acl.d.ts","sourceRoot":"","sources":["../../../src/schema/acl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,yBAAiB,GAAG,CAAC;IACpB,KAAY,YAAY;QACvB,MAAM,WAAW;QACjB,UAAU,eAAe;QACzB,SAAS,cAAc;KAIvB;IAED,KAAY,QAAQ,GACjB,cAAc,GACd,kBAAkB,GAClB,iBAAiB,CAAA;IAGpB,KAAY,cAAc,GAAG;QAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAA;QAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;QAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KACnC,CAAA;I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G,QAAQ,CAAA;KAAE,CAAA;IAE7D,KAAY,MAAM,GAAG;QACpB,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;QAChC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAA;KACzB,CAAA;IAED,KAAY,YAAY,GAAG;QAC1B,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;KACxC,CAAA;IAED,UAAiB,kBAAkB;QAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;KAClC;IAED,UAAiB,UAAU;QAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,SAAS,EAAE,SAAS,kBAAkB,EAAE,CAAA;KACjD;CACD"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,CAA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Y,YAAY,GACrB,aAAa,GACb;QACD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;QACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,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,6 +1,11 @@
|
|
|
1
1
|
import { Input } from './input';
|
|
2
2
|
import { JSONObject } from './json';
|
|
3
3
|
export declare namespace ActionsPayload {
|
|
4
|
+
type EntityEventPathNode = {
|
|
5
|
+
readonly relation: string;
|
|
6
|
+
readonly entity: string;
|
|
7
|
+
readonly id: Input.PrimaryValue;
|
|
8
|
+
};
|
|
4
9
|
type UpdateEvent = {
|
|
5
10
|
readonly operation: 'update';
|
|
6
11
|
readonly entity: string;
|
|
@@ -9,6 +14,7 @@ export declare namespace ActionsPayload {
|
|
|
9
14
|
readonly old?: JSONObject;
|
|
10
15
|
readonly selection?: JSONObject;
|
|
11
16
|
readonly path?: readonly string[];
|
|
17
|
+
readonly nodes?: readonly EntityEventPathNode[];
|
|
12
18
|
};
|
|
13
19
|
type CreateEvent = {
|
|
14
20
|
readonly operation: 'create';
|
|
@@ -17,6 +23,7 @@ export declare namespace ActionsPayload {
|
|
|
17
23
|
readonly values: JSONObject;
|
|
18
24
|
readonly selection?: JSONObject;
|
|
19
25
|
readonly path?: readonly string[];
|
|
26
|
+
readonly nodes?: readonly EntityEventPathNode[];
|
|
20
27
|
};
|
|
21
28
|
type DeleteEvent = {
|
|
22
29
|
readonly operation: 'delete';
|
|
@@ -24,6 +31,7 @@ export declare namespace ActionsPayload {
|
|
|
24
31
|
readonly id: Input.PrimaryValue;
|
|
25
32
|
readonly selection?: JSONObject;
|
|
26
33
|
readonly path?: readonly string[];
|
|
34
|
+
readonly nodes?: readonly EntityEventPathNode[];
|
|
27
35
|
};
|
|
28
36
|
type JunctionConnectEvent = {
|
|
29
37
|
readonly operation: 'junction_connect';
|
|
@@ -33,6 +41,7 @@ export declare namespace ActionsPayload {
|
|
|
33
41
|
readonly inverseId: Input.PrimaryValue;
|
|
34
42
|
readonly selection?: JSONObject;
|
|
35
43
|
readonly path?: readonly string[];
|
|
44
|
+
readonly nodes?: readonly EntityEventPathNode[];
|
|
36
45
|
};
|
|
37
46
|
type JunctionDisconnectEvent = {
|
|
38
47
|
readonly operation: 'junction_disconnect';
|
|
@@ -42,6 +51,7 @@ export declare namespace ActionsPayload {
|
|
|
42
51
|
readonly inverseId: Input.PrimaryValue;
|
|
43
52
|
readonly selection?: JSONObject;
|
|
44
53
|
readonly path?: readonly string[];
|
|
54
|
+
readonly nodes?: readonly EntityEventPathNode[];
|
|
45
55
|
};
|
|
46
56
|
type WatchEventPayload = {
|
|
47
57
|
readonly operation: 'watch';
|
|
@@ -59,6 +69,9 @@ export declare namespace ActionsPayload {
|
|
|
59
69
|
type WebhookMeta = {
|
|
60
70
|
readonly eventId: string;
|
|
61
71
|
readonly transactionId: string;
|
|
72
|
+
readonly identityId: string | null;
|
|
73
|
+
readonly ipAddress: string | null;
|
|
74
|
+
readonly userAgent: string | null;
|
|
62
75
|
readonly createdAt: string;
|
|
63
76
|
readonly lastStateChange: string;
|
|
64
77
|
readonly numRetries: number;
|
|
@@ -1 +1 @@
|
|
|
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;AA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AS,EAAE,MAAM,GAAG,IAAI,CAAA;QACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;QACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;QAChC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;QAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KACvB,CAAA;IAED,KAAY,YAAY,GACrB,eAAe,GACf;QACD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;KAC1B,CAAA;IAEF,KAAY,qBAAqB,GAAG;QACnC,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAA;KACxC,CAAA;IAED,KAAY,sBAAsB,GAAG;QACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;IAED,KAAY,sBAAsB,GAAG;QACpC,QAAQ,CAAC,QAAQ,EAAE,SAAS,sBAAsB,EAAE,CAAA;KACpD,CAAA;CACD"}
|
|
@@ -145,7 +145,7 @@ export declare namespace Input {
|
|
|
145
145
|
readonly gte?: T;
|
|
146
146
|
readonly minLength?: number;
|
|
147
147
|
readonly maxLength?: number;
|
|
148
|
-
readonly includes?: T;
|
|
148
|
+
readonly includes?: T extends (infer U)[] ? U : never;
|
|
149
149
|
readonly contains?: string;
|
|
150
150
|
readonly startsWith?: string;
|
|
151
151
|
readonly endsWith?: string;
|
|
@@ -1 +1 @@
|
|
|
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,YAA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AS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,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,13 +1,13 @@
|
|
|
1
1
|
import { Input } from './input';
|
|
2
2
|
import { JSONValue } from './json';
|
|
3
3
|
export declare namespace Model {
|
|
4
|
-
type Entity = {
|
|
4
|
+
type Entity<Fields extends string = string> = {
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly primary: string;
|
|
7
7
|
readonly primaryColumn: string;
|
|
8
8
|
readonly tableName: string;
|
|
9
9
|
readonly fields: {
|
|
10
|
-
readonly [name
|
|
10
|
+
readonly [name in Fields]: AnyField;
|
|
11
11
|
};
|
|
12
12
|
readonly unique: Uniques;
|
|
13
13
|
readonly indexes: Indexes;
|
|
@@ -155,11 +155,14 @@ export declare namespace Model {
|
|
|
155
155
|
readonly fields: readonly string[];
|
|
156
156
|
readonly index: true;
|
|
157
157
|
readonly nulls?: NullsDistinctBehaviour;
|
|
158
|
+
readonly method?: IndexMethod;
|
|
158
159
|
};
|
|
159
160
|
type Indexes = readonly Index[];
|
|
161
|
+
type IndexMethod = 'btree' | 'gin' | 'gist' | 'hash' | 'brin' | 'spgist';
|
|
160
162
|
type Index = {
|
|
161
163
|
readonly fields: readonly string[];
|
|
162
164
|
readonly name?: string;
|
|
165
|
+
readonly method?: IndexMethod;
|
|
163
166
|
};
|
|
164
167
|
interface ColumnContext {
|
|
165
168
|
entity: Model.Entity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/schema/model.ts"],"names":[],"mappings":"A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B,GAAG,CAAC,CAAA;QAE1D,sBAAsB,CAAC,OAAO,EAAE,wBAAwB,GAAG,CAAC,CAAA;QAE5D,uBAAuB,CAAC,OAAO,EAAE,yBAAyB,GAAG,CAAC,CAAA;KAC9D;IAED,UAAiB,4BAA4B,CAAC,CAAC;QAC9C,YAAY,CAAC,OAAO,EAAE,yBAAyB,GAAG,CAAC,CAAA;QAEnD,WAAW,CAAC,OAAO,EAAE,wBAAwB,GAAG,CAAC,CAAA;KACjD;CACD"}
|
|
@@ -8,9 +8,13 @@ export declare namespace Settings {
|
|
|
8
8
|
readonly useExistsInHasManyFilter?: boolean;
|
|
9
9
|
readonly uuidVersion?: 4 | 7;
|
|
10
10
|
};
|
|
11
|
+
type ActionsSettings = {
|
|
12
|
+
readonly returnTriggeredActions?: boolean;
|
|
13
|
+
};
|
|
11
14
|
type Schema = {
|
|
12
15
|
readonly tenant?: TenantSettings;
|
|
13
16
|
readonly content?: ContentSettings;
|
|
17
|
+
readonly actions?: ActionsSettings;
|
|
14
18
|
/**
|
|
15
19
|
* @deprecated
|
|
16
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schema/settings.ts"],"names":[],"mappings":"AAAA,yBAAiB,QAAQ,CAAC;IACzB,KAAY,cAAc,GAAG;QAC5B,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAA;KACzC,CAAA;IAED,KAAY,eAAe,GAAG;QAC7B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;QACpC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAA;QACvC,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAA;QAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;KAC5B,CAAA;IAED,KAAY,MAAM,GAAG;QACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;QAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;QAElC;;WAEG;QACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAA;KAC3C,CAAA;CACD"}
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schema/settings.ts"],"names":[],"mappings":"AAAA,yBAAiB,QAAQ,CAAC;IACzB,KAAY,cAAc,GAAG;QAC5B,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAA;KACzC,CAAA;IAED,KAAY,eAAe,GAAG;QAC7B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;QACpC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAA;QACvC,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAA;QAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;KAC5B,CAAA;IAED,KAAY,eAAe,GAAG;QAC7B,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;KACzC,CAAA;IAED,KAAY,MAAM,GAAG;QACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;QAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;QAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;QAElC;;WAEG;QACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAA;KAC3C,CAAA;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/schema/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,yBAAiB,UAAU,CAAC;IAC3B,KAAY,WAAW,GAAG,SAAS,MAAM,EAAE,CAAA;IAE3C,KAAY,YAAY;QACvB,SAAS,cAAc;QACvB,IAAI,SAAS;QACb,OAAO,YAAY;KACnB;IAED,KAA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