@constructive-io/sdk 1.11.2 → 1.11.3

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 (161) hide show
  1. package/admin/orm/client.js +11 -1
  2. package/agent/orm/client.js +11 -1
  3. package/agent/orm/input-types.d.ts +0 -3
  4. package/api/orm/client.js +11 -1
  5. package/api/orm/index.d.ts +66 -4
  6. package/api/orm/index.js +36 -4
  7. package/api/orm/input-types.d.ts +4946 -630
  8. package/api/orm/input-types.js +34 -6
  9. package/api/orm/models/apis.d.ts +54 -0
  10. package/api/orm/models/{api.js → apis.js} +27 -27
  11. package/api/orm/models/derive.d.ts +54 -0
  12. package/api/orm/models/derive.js +104 -0
  13. package/api/orm/models/fieldBehavior.d.ts +54 -0
  14. package/api/orm/models/fieldBehavior.js +104 -0
  15. package/api/orm/models/foreignKeyConstraintBehavior.d.ts +54 -0
  16. package/api/orm/models/foreignKeyConstraintBehavior.js +104 -0
  17. package/api/orm/models/index.d.ts +18 -2
  18. package/api/orm/models/index.js +38 -6
  19. package/api/orm/models/page.d.ts +54 -0
  20. package/api/orm/models/page.js +104 -0
  21. package/api/orm/models/platformApis.d.ts +54 -0
  22. package/api/orm/models/platformApis.js +104 -0
  23. package/api/orm/models/platformPage.d.ts +54 -0
  24. package/api/orm/models/platformPage.js +104 -0
  25. package/api/orm/models/platformSiteAppLink.d.ts +54 -0
  26. package/api/orm/models/platformSiteAppLink.js +104 -0
  27. package/api/orm/models/platformSiteDeepLink.d.ts +54 -0
  28. package/api/orm/models/platformSiteDeepLink.js +104 -0
  29. package/api/orm/models/platformSiteErrorPage.d.ts +54 -0
  30. package/api/orm/models/platformSiteErrorPage.js +104 -0
  31. package/api/orm/models/platformSiteWebConfig.d.ts +54 -0
  32. package/api/orm/models/platformSiteWebConfig.js +104 -0
  33. package/api/orm/models/siteAppLink.d.ts +54 -0
  34. package/api/orm/models/{platformApi.js → siteAppLink.js} +27 -27
  35. package/api/orm/models/siteDeepLink.d.ts +54 -0
  36. package/api/orm/models/siteDeepLink.js +104 -0
  37. package/api/orm/models/siteErrorPage.d.ts +54 -0
  38. package/api/orm/models/siteErrorPage.js +104 -0
  39. package/api/orm/models/siteWebConfig.d.ts +54 -0
  40. package/api/orm/models/siteWebConfig.js +104 -0
  41. package/api/orm/models/tableBehavior.d.ts +54 -0
  42. package/api/orm/models/tableBehavior.js +104 -0
  43. package/api/orm/models/uniqueConstraintBehavior.d.ts +54 -0
  44. package/api/orm/models/uniqueConstraintBehavior.js +104 -0
  45. package/api/orm/models/viewBehavior.d.ts +54 -0
  46. package/api/orm/models/viewBehavior.js +104 -0
  47. package/api/orm/mutation/index.d.ts +33 -1
  48. package/api/orm/mutation/index.js +48 -0
  49. package/api/orm/query/index.d.ts +17 -0
  50. package/api/orm/query/index.js +28 -0
  51. package/auth/orm/client.js +11 -1
  52. package/auth/orm/input-types.d.ts +166 -220
  53. package/auth/orm/input-types.js +6 -11
  54. package/compute/orm/client.js +11 -1
  55. package/compute/orm/index.d.ts +4 -0
  56. package/compute/orm/index.js +4 -0
  57. package/compute/orm/input-types.d.ts +539 -8
  58. package/compute/orm/input-types.js +2 -0
  59. package/compute/orm/models/functionCapabilityBinding.d.ts +54 -0
  60. package/compute/orm/models/functionCapabilityBinding.js +104 -0
  61. package/compute/orm/models/index.d.ts +2 -0
  62. package/compute/orm/models/index.js +6 -2
  63. package/compute/orm/models/platformFunctionCapabilityBinding.d.ts +54 -0
  64. package/compute/orm/models/platformFunctionCapabilityBinding.js +104 -0
  65. package/config/orm/client.js +11 -1
  66. package/config/orm/input-types.d.ts +53 -5
  67. package/esm/admin/orm/client.js +11 -1
  68. package/esm/agent/orm/client.js +11 -1
  69. package/esm/agent/orm/input-types.d.ts +0 -3
  70. package/esm/api/orm/client.js +11 -1
  71. package/esm/api/orm/index.d.ts +66 -4
  72. package/esm/api/orm/index.js +36 -4
  73. package/esm/api/orm/input-types.d.ts +4946 -630
  74. package/esm/api/orm/input-types.js +34 -6
  75. package/esm/api/orm/models/apis.d.ts +54 -0
  76. package/esm/api/orm/models/{api.js → apis.js} +25 -25
  77. package/esm/api/orm/models/derive.d.ts +54 -0
  78. package/esm/api/orm/models/derive.js +100 -0
  79. package/esm/api/orm/models/fieldBehavior.d.ts +54 -0
  80. package/esm/api/orm/models/fieldBehavior.js +100 -0
  81. package/esm/api/orm/models/foreignKeyConstraintBehavior.d.ts +54 -0
  82. package/esm/api/orm/models/foreignKeyConstraintBehavior.js +100 -0
  83. package/esm/api/orm/models/index.d.ts +18 -2
  84. package/esm/api/orm/models/index.js +18 -2
  85. package/esm/api/orm/models/page.d.ts +54 -0
  86. package/esm/api/orm/models/page.js +100 -0
  87. package/esm/api/orm/models/platformApis.d.ts +54 -0
  88. package/esm/api/orm/models/{platformApi.js → platformApis.js} +25 -25
  89. package/esm/api/orm/models/platformPage.d.ts +54 -0
  90. package/esm/api/orm/models/platformPage.js +100 -0
  91. package/esm/api/orm/models/platformSiteAppLink.d.ts +54 -0
  92. package/esm/api/orm/models/platformSiteAppLink.js +100 -0
  93. package/esm/api/orm/models/platformSiteDeepLink.d.ts +54 -0
  94. package/esm/api/orm/models/platformSiteDeepLink.js +100 -0
  95. package/esm/api/orm/models/platformSiteErrorPage.d.ts +54 -0
  96. package/esm/api/orm/models/platformSiteErrorPage.js +100 -0
  97. package/esm/api/orm/models/platformSiteWebConfig.d.ts +54 -0
  98. package/esm/api/orm/models/platformSiteWebConfig.js +100 -0
  99. package/esm/api/orm/models/siteAppLink.d.ts +54 -0
  100. package/esm/api/orm/models/siteAppLink.js +100 -0
  101. package/esm/api/orm/models/siteDeepLink.d.ts +54 -0
  102. package/esm/api/orm/models/siteDeepLink.js +100 -0
  103. package/esm/api/orm/models/siteErrorPage.d.ts +54 -0
  104. package/esm/api/orm/models/siteErrorPage.js +100 -0
  105. package/esm/api/orm/models/siteWebConfig.d.ts +54 -0
  106. package/esm/api/orm/models/siteWebConfig.js +100 -0
  107. package/esm/api/orm/models/tableBehavior.d.ts +54 -0
  108. package/esm/api/orm/models/tableBehavior.js +100 -0
  109. package/esm/api/orm/models/uniqueConstraintBehavior.d.ts +54 -0
  110. package/esm/api/orm/models/uniqueConstraintBehavior.js +100 -0
  111. package/esm/api/orm/models/viewBehavior.d.ts +54 -0
  112. package/esm/api/orm/models/viewBehavior.js +100 -0
  113. package/esm/api/orm/mutation/index.d.ts +33 -1
  114. package/esm/api/orm/mutation/index.js +48 -0
  115. package/esm/api/orm/query/index.d.ts +17 -0
  116. package/esm/api/orm/query/index.js +28 -0
  117. package/esm/auth/orm/client.js +11 -1
  118. package/esm/auth/orm/input-types.d.ts +166 -220
  119. package/esm/auth/orm/input-types.js +6 -11
  120. package/esm/compute/orm/client.js +11 -1
  121. package/esm/compute/orm/index.d.ts +4 -0
  122. package/esm/compute/orm/index.js +4 -0
  123. package/esm/compute/orm/input-types.d.ts +539 -8
  124. package/esm/compute/orm/input-types.js +2 -0
  125. package/esm/compute/orm/models/functionCapabilityBinding.d.ts +54 -0
  126. package/esm/compute/orm/models/functionCapabilityBinding.js +100 -0
  127. package/esm/compute/orm/models/index.d.ts +2 -0
  128. package/esm/compute/orm/models/index.js +2 -0
  129. package/esm/compute/orm/models/platformFunctionCapabilityBinding.d.ts +54 -0
  130. package/esm/compute/orm/models/platformFunctionCapabilityBinding.js +100 -0
  131. package/esm/config/orm/client.js +11 -1
  132. package/esm/config/orm/input-types.d.ts +53 -5
  133. package/esm/infra/orm/client.js +11 -1
  134. package/esm/modules/orm/client.js +11 -1
  135. package/esm/modules/orm/index.d.ts +2 -0
  136. package/esm/modules/orm/index.js +2 -0
  137. package/esm/modules/orm/input-types.d.ts +2116 -122
  138. package/esm/modules/orm/input-types.js +40 -0
  139. package/esm/modules/orm/models/index.d.ts +1 -0
  140. package/esm/modules/orm/models/index.js +1 -0
  141. package/esm/modules/orm/models/pagesModule.d.ts +54 -0
  142. package/esm/modules/orm/models/pagesModule.js +100 -0
  143. package/esm/objects/orm/client.js +11 -1
  144. package/esm/usage/orm/client.js +11 -1
  145. package/infra/orm/client.js +11 -1
  146. package/modules/orm/client.js +11 -1
  147. package/modules/orm/index.d.ts +2 -0
  148. package/modules/orm/index.js +2 -0
  149. package/modules/orm/input-types.d.ts +2116 -122
  150. package/modules/orm/input-types.js +40 -0
  151. package/modules/orm/models/index.d.ts +1 -0
  152. package/modules/orm/models/index.js +4 -2
  153. package/modules/orm/models/pagesModule.d.ts +54 -0
  154. package/modules/orm/models/pagesModule.js +104 -0
  155. package/objects/orm/client.js +11 -1
  156. package/package.json +5 -5
  157. package/usage/orm/client.js +11 -1
  158. package/api/orm/models/api.d.ts +0 -54
  159. package/api/orm/models/platformApi.d.ts +0 -54
  160. package/esm/api/orm/models/api.d.ts +0 -54
  161. package/esm/api/orm/models/platformApi.d.ts +0 -54
@@ -1,19 +1,22 @@
1
1
  // ============ Connection Fields Map ============
2
2
  export const connectionFieldsMap = {
3
- Api: {
4
- apiSchemas: 'ApiSchema',
5
- corsSettings: 'CorsSetting',
3
+ Apis: {
4
+ apiSchemasByApiId: 'ApiSchema',
5
+ corsSettingsByApiId: 'CorsSetting',
6
6
  },
7
7
  Database: {
8
8
  checkConstraints: 'CheckConstraint',
9
9
  compositeTypes: 'CompositeType',
10
10
  databaseTransfers: 'DatabaseTransfer',
11
11
  defaultPrivileges: 'DefaultPrivilege',
12
+ derives: 'Derive',
12
13
  domainTypes: 'DomainType',
13
14
  embeddingChunks: 'EmbeddingChunk',
14
15
  enums: 'Enum',
15
16
  exclusionConstraints: 'ExclusionConstraint',
17
+ fieldBehaviors: 'FieldBehavior',
16
18
  fields: 'Field',
19
+ foreignKeyConstraintBehaviors: 'ForeignKeyConstraintBehavior',
17
20
  foreignKeyConstraints: 'ForeignKeyConstraint',
18
21
  fullTextSearches: 'FullTextSearch',
19
22
  functions: 'Function',
@@ -24,11 +27,14 @@ export const connectionFieldsMap = {
24
27
  schemaGrants: 'SchemaGrant',
25
28
  schemas: 'Schema',
26
29
  spatialRelations: 'SpatialRelation',
30
+ tableBehaviors: 'TableBehavior',
27
31
  tableGrants: 'TableGrant',
28
32
  tables: 'Table',
29
33
  triggerFunctions: 'TriggerFunction',
30
34
  triggers: 'Trigger',
35
+ uniqueConstraintBehaviors: 'UniqueConstraintBehavior',
31
36
  uniqueConstraints: 'UniqueConstraint',
37
+ viewBehaviors: 'ViewBehavior',
32
38
  viewGrants: 'ViewGrant',
33
39
  viewRules: 'ViewRule',
34
40
  viewTables: 'ViewTable',
@@ -41,14 +47,21 @@ export const connectionFieldsMap = {
41
47
  routes: 'Route',
42
48
  },
43
49
  Field: {
50
+ embeddingChunksByEmbeddingFieldId: 'EmbeddingChunk',
51
+ embeddingChunksByParentFkFieldId: 'EmbeddingChunk',
52
+ fieldBehaviors: 'FieldBehavior',
53
+ partitionsByPartitionKeyId: 'Partition',
44
54
  spatialRelations: 'SpatialRelation',
45
55
  spatialRelationsByRefFieldId: 'SpatialRelation',
46
56
  },
57
+ ForeignKeyConstraint: {
58
+ foreignKeyConstraintBehaviors: 'ForeignKeyConstraintBehavior',
59
+ },
47
60
  ManagedDomain: {
48
61
  domainEvents: 'DomainEvent',
49
62
  domainVerifications: 'DomainVerification',
50
63
  },
51
- PlatformApi: {
64
+ PlatformApis: {
52
65
  platformApiSchemasByApiId: 'PlatformApiSchema',
53
66
  },
54
67
  PlatformDomain: {
@@ -60,7 +73,10 @@ export const connectionFieldsMap = {
60
73
  platformDomainVerificationsByManagedDomainId: 'PlatformDomainVerification',
61
74
  },
62
75
  PlatformSite: {
63
- platformSiteMetadataBySiteId: 'PlatformSiteMetadatum',
76
+ platformPagesBySiteId: 'PlatformPage',
77
+ platformSiteAppLinksBySiteId: 'PlatformSiteAppLink',
78
+ platformSiteDeepLinksBySiteId: 'PlatformSiteDeepLink',
79
+ platformSiteErrorPagesBySiteId: 'PlatformSiteErrorPage',
64
80
  platformSiteModulesBySiteId: 'PlatformSiteModule',
65
81
  platformSiteThemesBySiteId: 'PlatformSiteTheme',
66
82
  },
@@ -77,30 +93,42 @@ export const connectionFieldsMap = {
77
93
  views: 'View',
78
94
  },
79
95
  Site: {
80
- siteMetadata: 'SiteMetadatum',
96
+ pages: 'Page',
97
+ siteAppLinks: 'SiteAppLink',
98
+ siteDeepLinks: 'SiteDeepLink',
99
+ siteErrorPages: 'SiteErrorPage',
81
100
  siteModules: 'SiteModule',
82
101
  siteThemes: 'SiteTheme',
83
102
  },
84
103
  Table: {
85
104
  checkConstraints: 'CheckConstraint',
105
+ derives: 'Derive',
106
+ derivesBySourceTableId: 'Derive',
86
107
  embeddingChunks: 'EmbeddingChunk',
87
108
  embeddingChunksByChunksTableId: 'EmbeddingChunk',
88
109
  exclusionConstraints: 'ExclusionConstraint',
89
110
  fields: 'Field',
90
111
  foreignKeyConstraints: 'ForeignKeyConstraint',
112
+ foreignKeyConstraintsByRefTableId: 'ForeignKeyConstraint',
91
113
  fullTextSearches: 'FullTextSearch',
92
114
  indices: 'Index',
93
115
  policies: 'Policy',
94
116
  primaryKeyConstraints: 'PrimaryKeyConstraint',
95
117
  spatialRelations: 'SpatialRelation',
96
118
  spatialRelationsByRefTableId: 'SpatialRelation',
119
+ tableBehaviors: 'TableBehavior',
97
120
  tableGrants: 'TableGrant',
121
+ tablesByInheritsId: 'Table',
98
122
  triggers: 'Trigger',
99
123
  uniqueConstraints: 'UniqueConstraint',
100
124
  viewTables: 'ViewTable',
101
125
  views: 'View',
102
126
  },
127
+ UniqueConstraint: {
128
+ uniqueConstraintBehaviors: 'UniqueConstraintBehavior',
129
+ },
103
130
  View: {
131
+ viewBehaviors: 'ViewBehavior',
104
132
  viewGrants: 'ViewGrant',
105
133
  viewRules: 'ViewRule',
106
134
  viewTables: 'ViewTable',
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Apis model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { ApisWithRelations, ApisSelect, ApisFilter, ApisOrderBy, CreateApisInput, ApisPatch } from '../input-types';
10
+ export declare class ApisModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends ApisSelect>(args: FindManyArgs<S, ApisFilter, ApisOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, ApisSelect>): QueryBuilder<{
16
+ apises: ConnectionResult<InferSelectResult<ApisWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends ApisSelect>(args: FindFirstArgs<S, ApisFilter, ApisOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, ApisSelect>): QueryBuilder<{
21
+ apis: InferSelectResult<ApisWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends ApisSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, ApisSelect>): QueryBuilder<{
27
+ apis: InferSelectResult<ApisWithRelations, S> | null;
28
+ }>;
29
+ create<S extends ApisSelect>(args: CreateArgs<S, CreateApisInput['apis']> & {
30
+ select: S;
31
+ } & StrictSelect<S, ApisSelect>): QueryBuilder<{
32
+ createApis: {
33
+ apis: InferSelectResult<ApisWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends ApisSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, ApisPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, ApisSelect>): QueryBuilder<{
41
+ updateApis: {
42
+ apis: InferSelectResult<ApisWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends ApisSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, ApisSelect>): QueryBuilder<{
50
+ deleteApis: {
51
+ apis: InferSelectResult<ApisWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -1,12 +1,12 @@
1
1
  import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
- export class ApiModel {
3
+ export class ApisModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('Api', 'apis', args.select, {
9
+ const { document, variables } = buildFindManyDocument('Apis', 'apises', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,85 +14,85 @@ export class ApiModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'ApiFilter', 'ApiOrderBy', connectionFieldsMap);
17
+ }, 'ApisFilter', 'ApisOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'Api',
22
- fieldName: 'apis',
21
+ operationName: 'Apis',
22
+ fieldName: 'apises',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('Api', 'apis', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('Apis', 'apises', args.select, {
29
29
  where: args?.where,
30
30
  orderBy: args?.orderBy,
31
- }, 'ApiFilter', 'ApiOrderBy', connectionFieldsMap);
31
+ }, 'ApisFilter', 'ApisOrderBy', connectionFieldsMap);
32
32
  return new QueryBuilder({
33
33
  client: this.client,
34
34
  operation: 'query',
35
- operationName: 'Api',
36
- fieldName: 'api',
35
+ operationName: 'Apis',
36
+ fieldName: 'apis',
37
37
  document,
38
38
  variables,
39
39
  transform: (data) => ({
40
- api: data.apis?.nodes?.[0] ?? null,
40
+ apis: data.apises?.nodes?.[0] ?? null,
41
41
  }),
42
42
  });
43
43
  }
44
44
  findOne(args) {
45
- const { document, variables } = buildFindManyDocument('Api', 'apis', args.select, {
45
+ const { document, variables } = buildFindManyDocument('Apis', 'apises', args.select, {
46
46
  where: {
47
47
  id: {
48
48
  equalTo: args.id,
49
49
  },
50
50
  },
51
51
  first: 1,
52
- }, 'ApiFilter', 'ApiOrderBy', connectionFieldsMap);
52
+ }, 'ApisFilter', 'ApisOrderBy', connectionFieldsMap);
53
53
  return new QueryBuilder({
54
54
  client: this.client,
55
55
  operation: 'query',
56
- operationName: 'Api',
57
- fieldName: 'api',
56
+ operationName: 'Apis',
57
+ fieldName: 'apis',
58
58
  document,
59
59
  variables,
60
60
  transform: (data) => ({
61
- api: data.apis?.nodes?.[0] ?? null,
61
+ apis: data.apises?.nodes?.[0] ?? null,
62
62
  }),
63
63
  });
64
64
  }
65
65
  create(args) {
66
- const { document, variables } = buildCreateDocument('Api', 'createApi', 'api', args.select, args.data, 'CreateApiInput', connectionFieldsMap);
66
+ const { document, variables } = buildCreateDocument('Apis', 'createApis', 'apis', args.select, args.data, 'CreateApisInput', connectionFieldsMap);
67
67
  return new QueryBuilder({
68
68
  client: this.client,
69
69
  operation: 'mutation',
70
- operationName: 'Api',
71
- fieldName: 'createApi',
70
+ operationName: 'Apis',
71
+ fieldName: 'createApis',
72
72
  document,
73
73
  variables,
74
74
  });
75
75
  }
76
76
  update(args) {
77
- const { document, variables } = buildUpdateByPkDocument('Api', 'updateApi', 'api', args.select, args.where.id, args.data, 'UpdateApiInput', 'id', 'apiPatch', connectionFieldsMap, undefined);
77
+ const { document, variables } = buildUpdateByPkDocument('Apis', 'updateApis', 'apis', args.select, args.where.id, args.data, 'UpdateApisInput', 'id', 'apisPatch', connectionFieldsMap, undefined);
78
78
  return new QueryBuilder({
79
79
  client: this.client,
80
80
  operation: 'mutation',
81
- operationName: 'Api',
82
- fieldName: 'updateApi',
81
+ operationName: 'Apis',
82
+ fieldName: 'updateApis',
83
83
  document,
84
84
  variables,
85
85
  });
86
86
  }
87
87
  delete(args) {
88
- const { document, variables } = buildDeleteByPkDocument('Api', 'deleteApi', 'api', {
88
+ const { document, variables } = buildDeleteByPkDocument('Apis', 'deleteApis', 'apis', {
89
89
  id: args.where.id,
90
- }, 'DeleteApiInput', args.select, connectionFieldsMap);
90
+ }, 'DeleteApisInput', args.select, connectionFieldsMap);
91
91
  return new QueryBuilder({
92
92
  client: this.client,
93
93
  operation: 'mutation',
94
- operationName: 'Api',
95
- fieldName: 'deleteApi',
94
+ operationName: 'Apis',
95
+ fieldName: 'deleteApis',
96
96
  document,
97
97
  variables,
98
98
  });
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Derive model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { DeriveWithRelations, DeriveSelect, DeriveFilter, DeriveOrderBy, CreateDeriveInput, DerivePatch } from '../input-types';
10
+ export declare class DeriveModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends DeriveSelect>(args: FindManyArgs<S, DeriveFilter, DeriveOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, DeriveSelect>): QueryBuilder<{
16
+ derives: ConnectionResult<InferSelectResult<DeriveWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends DeriveSelect>(args: FindFirstArgs<S, DeriveFilter, DeriveOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, DeriveSelect>): QueryBuilder<{
21
+ derive: InferSelectResult<DeriveWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends DeriveSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, DeriveSelect>): QueryBuilder<{
27
+ derive: InferSelectResult<DeriveWithRelations, S> | null;
28
+ }>;
29
+ create<S extends DeriveSelect>(args: CreateArgs<S, CreateDeriveInput['derive']> & {
30
+ select: S;
31
+ } & StrictSelect<S, DeriveSelect>): QueryBuilder<{
32
+ createDerive: {
33
+ derive: InferSelectResult<DeriveWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends DeriveSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, DerivePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, DeriveSelect>): QueryBuilder<{
41
+ updateDerive: {
42
+ derive: InferSelectResult<DeriveWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends DeriveSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, DeriveSelect>): QueryBuilder<{
50
+ deleteDerive: {
51
+ derive: InferSelectResult<DeriveWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,100 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class DeriveModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('Derive', 'derives', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'DeriveFilter', 'DeriveOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'Derive',
22
+ fieldName: 'derives',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('Derive', 'derives', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'DeriveFilter', 'DeriveOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'Derive',
36
+ fieldName: 'derive',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ derive: data.derives?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('Derive', 'derives', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'DeriveFilter', 'DeriveOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'Derive',
57
+ fieldName: 'derive',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ derive: data.derives?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('Derive', 'createDerive', 'derive', args.select, args.data, 'CreateDeriveInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'Derive',
71
+ fieldName: 'createDerive',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('Derive', 'updateDerive', 'derive', args.select, args.where.id, args.data, 'UpdateDeriveInput', 'id', 'derivePatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'Derive',
82
+ fieldName: 'updateDerive',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('Derive', 'deleteDerive', 'derive', {
89
+ id: args.where.id,
90
+ }, 'DeleteDeriveInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'Derive',
95
+ fieldName: 'deleteDerive',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * FieldBehavior model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { FieldBehaviorWithRelations, FieldBehaviorSelect, FieldBehaviorFilter, FieldBehaviorOrderBy, CreateFieldBehaviorInput, FieldBehaviorPatch } from '../input-types';
10
+ export declare class FieldBehaviorModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends FieldBehaviorSelect>(args: FindManyArgs<S, FieldBehaviorFilter, FieldBehaviorOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
16
+ fieldBehaviors: ConnectionResult<InferSelectResult<FieldBehaviorWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends FieldBehaviorSelect>(args: FindFirstArgs<S, FieldBehaviorFilter, FieldBehaviorOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
21
+ fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends FieldBehaviorSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
27
+ fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S> | null;
28
+ }>;
29
+ create<S extends FieldBehaviorSelect>(args: CreateArgs<S, CreateFieldBehaviorInput['fieldBehavior']> & {
30
+ select: S;
31
+ } & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
32
+ createFieldBehavior: {
33
+ fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends FieldBehaviorSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, FieldBehaviorPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
41
+ updateFieldBehavior: {
42
+ fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends FieldBehaviorSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, FieldBehaviorSelect>): QueryBuilder<{
50
+ deleteFieldBehavior: {
51
+ fieldBehavior: InferSelectResult<FieldBehaviorWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,100 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class FieldBehaviorModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('FieldBehavior', 'fieldBehaviors', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'FieldBehaviorFilter', 'FieldBehaviorOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'FieldBehavior',
22
+ fieldName: 'fieldBehaviors',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('FieldBehavior', 'fieldBehaviors', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'FieldBehaviorFilter', 'FieldBehaviorOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'FieldBehavior',
36
+ fieldName: 'fieldBehavior',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ fieldBehavior: data.fieldBehaviors?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('FieldBehavior', 'fieldBehaviors', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'FieldBehaviorFilter', 'FieldBehaviorOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'FieldBehavior',
57
+ fieldName: 'fieldBehavior',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ fieldBehavior: data.fieldBehaviors?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('FieldBehavior', 'createFieldBehavior', 'fieldBehavior', args.select, args.data, 'CreateFieldBehaviorInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'FieldBehavior',
71
+ fieldName: 'createFieldBehavior',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('FieldBehavior', 'updateFieldBehavior', 'fieldBehavior', args.select, args.where.id, args.data, 'UpdateFieldBehaviorInput', 'id', 'fieldBehaviorPatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'FieldBehavior',
82
+ fieldName: 'updateFieldBehavior',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('FieldBehavior', 'deleteFieldBehavior', 'fieldBehavior', {
89
+ id: args.where.id,
90
+ }, 'DeleteFieldBehaviorInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'FieldBehavior',
95
+ fieldName: 'deleteFieldBehavior',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * ForeignKeyConstraintBehavior model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { ForeignKeyConstraintBehaviorWithRelations, ForeignKeyConstraintBehaviorSelect, ForeignKeyConstraintBehaviorFilter, ForeignKeyConstraintBehaviorOrderBy, CreateForeignKeyConstraintBehaviorInput, ForeignKeyConstraintBehaviorPatch } from '../input-types';
10
+ export declare class ForeignKeyConstraintBehaviorModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends ForeignKeyConstraintBehaviorSelect>(args: FindManyArgs<S, ForeignKeyConstraintBehaviorFilter, ForeignKeyConstraintBehaviorOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, ForeignKeyConstraintBehaviorSelect>): QueryBuilder<{
16
+ foreignKeyConstraintBehaviors: ConnectionResult<InferSelectResult<ForeignKeyConstraintBehaviorWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends ForeignKeyConstraintBehaviorSelect>(args: FindFirstArgs<S, ForeignKeyConstraintBehaviorFilter, ForeignKeyConstraintBehaviorOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, ForeignKeyConstraintBehaviorSelect>): QueryBuilder<{
21
+ foreignKeyConstraintBehavior: InferSelectResult<ForeignKeyConstraintBehaviorWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends ForeignKeyConstraintBehaviorSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, ForeignKeyConstraintBehaviorSelect>): QueryBuilder<{
27
+ foreignKeyConstraintBehavior: InferSelectResult<ForeignKeyConstraintBehaviorWithRelations, S> | null;
28
+ }>;
29
+ create<S extends ForeignKeyConstraintBehaviorSelect>(args: CreateArgs<S, CreateForeignKeyConstraintBehaviorInput['foreignKeyConstraintBehavior']> & {
30
+ select: S;
31
+ } & StrictSelect<S, ForeignKeyConstraintBehaviorSelect>): QueryBuilder<{
32
+ createForeignKeyConstraintBehavior: {
33
+ foreignKeyConstraintBehavior: InferSelectResult<ForeignKeyConstraintBehaviorWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends ForeignKeyConstraintBehaviorSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, ForeignKeyConstraintBehaviorPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, ForeignKeyConstraintBehaviorSelect>): QueryBuilder<{
41
+ updateForeignKeyConstraintBehavior: {
42
+ foreignKeyConstraintBehavior: InferSelectResult<ForeignKeyConstraintBehaviorWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends ForeignKeyConstraintBehaviorSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, ForeignKeyConstraintBehaviorSelect>): QueryBuilder<{
50
+ deleteForeignKeyConstraintBehavior: {
51
+ foreignKeyConstraintBehavior: InferSelectResult<ForeignKeyConstraintBehaviorWithRelations, S>;
52
+ };
53
+ }>;
54
+ }