@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
@@ -0,0 +1,100 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class ForeignKeyConstraintBehaviorModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('ForeignKeyConstraintBehavior', 'foreignKeyConstraintBehaviors', 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
+ }, 'ForeignKeyConstraintBehaviorFilter', 'ForeignKeyConstraintBehaviorOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'ForeignKeyConstraintBehavior',
22
+ fieldName: 'foreignKeyConstraintBehaviors',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('ForeignKeyConstraintBehavior', 'foreignKeyConstraintBehaviors', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'ForeignKeyConstraintBehaviorFilter', 'ForeignKeyConstraintBehaviorOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'ForeignKeyConstraintBehavior',
36
+ fieldName: 'foreignKeyConstraintBehavior',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ foreignKeyConstraintBehavior: data.foreignKeyConstraintBehaviors?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('ForeignKeyConstraintBehavior', 'foreignKeyConstraintBehaviors', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'ForeignKeyConstraintBehaviorFilter', 'ForeignKeyConstraintBehaviorOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'ForeignKeyConstraintBehavior',
57
+ fieldName: 'foreignKeyConstraintBehavior',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ foreignKeyConstraintBehavior: data.foreignKeyConstraintBehaviors?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('ForeignKeyConstraintBehavior', 'createForeignKeyConstraintBehavior', 'foreignKeyConstraintBehavior', args.select, args.data, 'CreateForeignKeyConstraintBehaviorInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'ForeignKeyConstraintBehavior',
71
+ fieldName: 'createForeignKeyConstraintBehavior',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('ForeignKeyConstraintBehavior', 'updateForeignKeyConstraintBehavior', 'foreignKeyConstraintBehavior', args.select, args.where.id, args.data, 'UpdateForeignKeyConstraintBehaviorInput', 'id', 'foreignKeyConstraintBehaviorPatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'ForeignKeyConstraintBehavior',
82
+ fieldName: 'updateForeignKeyConstraintBehavior',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('ForeignKeyConstraintBehavior', 'deleteForeignKeyConstraintBehavior', 'foreignKeyConstraintBehavior', {
89
+ id: args.where.id,
90
+ }, 'DeleteForeignKeyConstraintBehaviorInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'ForeignKeyConstraintBehavior',
95
+ fieldName: 'deleteForeignKeyConstraintBehavior',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -3,9 +3,9 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- export { ApiModel } from './api';
7
6
  export { ApiSchemaModel } from './apiSchema';
8
7
  export { ApiSettingModel } from './apiSetting';
8
+ export { ApisModel } from './apis';
9
9
  export { AstMigrationModel } from './astMigration';
10
10
  export { CheckConstraintModel } from './checkConstraint';
11
11
  export { CompositeTypeModel } from './compositeType';
@@ -14,6 +14,7 @@ export { DatabaseModel } from './database';
14
14
  export { DatabaseSettingModel } from './databaseSetting';
15
15
  export { DatabaseTransferModel } from './databaseTransfer';
16
16
  export { DefaultPrivilegeModel } from './defaultPrivilege';
17
+ export { DeriveModel } from './derive';
17
18
  export { DomainModel } from './domain';
18
19
  export { DomainEventModel } from './domainEvent';
19
20
  export { DomainTypeModel } from './domainType';
@@ -21,7 +22,9 @@ export { DomainVerificationModel } from './domainVerification';
21
22
  export { EmbeddingChunkModel } from './embeddingChunk';
22
23
  export { EnumModel } from './enum';
23
24
  export { ExclusionConstraintModel } from './exclusionConstraint';
25
+ export { FieldBehaviorModel } from './fieldBehavior';
24
26
  export { FieldModel } from './field';
27
+ export { ForeignKeyConstraintBehaviorModel } from './foreignKeyConstraintBehavior';
25
28
  export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
26
29
  export { FullTextSearchModel } from './fullTextSearch';
27
30
  export { FunctionModel } from './function';
@@ -30,19 +33,25 @@ export { HttpRouteModel } from './httpRoute';
30
33
  export { IndexModel } from './indexModel';
31
34
  export { ManagedDomainModel } from './managedDomain';
32
35
  export { NodeTypeRegistryModel } from './nodeTypeRegistry';
36
+ export { PageModel } from './page';
33
37
  export { PartitionModel } from './partition';
34
- export { PlatformApiModel } from './platformApi';
35
38
  export { PlatformApiSchemaModel } from './platformApiSchema';
36
39
  export { PlatformApiSettingModel } from './platformApiSetting';
40
+ export { PlatformApisModel } from './platformApis';
37
41
  export { PlatformCorsSettingModel } from './platformCorsSetting';
38
42
  export { PlatformDomainModel } from './platformDomain';
39
43
  export { PlatformDomainEventModel } from './platformDomainEvent';
40
44
  export { PlatformDomainVerificationModel } from './platformDomainVerification';
41
45
  export { PlatformManagedDomainModel } from './platformManagedDomain';
46
+ export { PlatformPageModel } from './platformPage';
47
+ export { PlatformSiteAppLinkModel } from './platformSiteAppLink';
42
48
  export { PlatformSiteModel } from './platformSite';
49
+ export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink';
50
+ export { PlatformSiteErrorPageModel } from './platformSiteErrorPage';
43
51
  export { PlatformSiteMetadatumModel } from './platformSiteMetadatum';
44
52
  export { PlatformSiteModuleModel } from './platformSiteModule';
45
53
  export { PlatformSiteThemeModel } from './platformSiteTheme';
54
+ export { PlatformSiteWebConfigModel } from './platformSiteWebConfig';
46
55
  export { PolicyModel } from './policy';
47
56
  export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
48
57
  export { PubkeySettingModel } from './pubkeySetting';
@@ -51,17 +60,24 @@ export { RouteBindingModel } from './routeBinding';
51
60
  export { RouteModel } from './route';
52
61
  export { SchemaModel } from './schema';
53
62
  export { SchemaGrantModel } from './schemaGrant';
63
+ export { SiteAppLinkModel } from './siteAppLink';
54
64
  export { SiteModel } from './site';
65
+ export { SiteDeepLinkModel } from './siteDeepLink';
66
+ export { SiteErrorPageModel } from './siteErrorPage';
55
67
  export { SiteMetadatumModel } from './siteMetadatum';
56
68
  export { SiteModuleModel } from './siteModule';
57
69
  export { SiteThemeModel } from './siteTheme';
70
+ export { SiteWebConfigModel } from './siteWebConfig';
58
71
  export { SpatialRelationModel } from './spatialRelation';
59
72
  export { SqlActionModel } from './sqlAction';
73
+ export { TableBehaviorModel } from './tableBehavior';
60
74
  export { TableModel } from './table';
61
75
  export { TableGrantModel } from './tableGrant';
62
76
  export { TriggerModel } from './trigger';
63
77
  export { TriggerFunctionModel } from './triggerFunction';
78
+ export { UniqueConstraintBehaviorModel } from './uniqueConstraintBehavior';
64
79
  export { UniqueConstraintModel } from './uniqueConstraint';
80
+ export { ViewBehaviorModel } from './viewBehavior';
65
81
  export { ViewModel } from './view';
66
82
  export { ViewGrantModel } from './viewGrant';
67
83
  export { ViewRuleModel } from './viewRule';
@@ -3,9 +3,9 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- export { ApiModel } from './api';
7
6
  export { ApiSchemaModel } from './apiSchema';
8
7
  export { ApiSettingModel } from './apiSetting';
8
+ export { ApisModel } from './apis';
9
9
  export { AstMigrationModel } from './astMigration';
10
10
  export { CheckConstraintModel } from './checkConstraint';
11
11
  export { CompositeTypeModel } from './compositeType';
@@ -14,6 +14,7 @@ export { DatabaseModel } from './database';
14
14
  export { DatabaseSettingModel } from './databaseSetting';
15
15
  export { DatabaseTransferModel } from './databaseTransfer';
16
16
  export { DefaultPrivilegeModel } from './defaultPrivilege';
17
+ export { DeriveModel } from './derive';
17
18
  export { DomainModel } from './domain';
18
19
  export { DomainEventModel } from './domainEvent';
19
20
  export { DomainTypeModel } from './domainType';
@@ -21,7 +22,9 @@ export { DomainVerificationModel } from './domainVerification';
21
22
  export { EmbeddingChunkModel } from './embeddingChunk';
22
23
  export { EnumModel } from './enum';
23
24
  export { ExclusionConstraintModel } from './exclusionConstraint';
25
+ export { FieldBehaviorModel } from './fieldBehavior';
24
26
  export { FieldModel } from './field';
27
+ export { ForeignKeyConstraintBehaviorModel } from './foreignKeyConstraintBehavior';
25
28
  export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
26
29
  export { FullTextSearchModel } from './fullTextSearch';
27
30
  export { FunctionModel } from './function';
@@ -30,19 +33,25 @@ export { HttpRouteModel } from './httpRoute';
30
33
  export { IndexModel } from './indexModel';
31
34
  export { ManagedDomainModel } from './managedDomain';
32
35
  export { NodeTypeRegistryModel } from './nodeTypeRegistry';
36
+ export { PageModel } from './page';
33
37
  export { PartitionModel } from './partition';
34
- export { PlatformApiModel } from './platformApi';
35
38
  export { PlatformApiSchemaModel } from './platformApiSchema';
36
39
  export { PlatformApiSettingModel } from './platformApiSetting';
40
+ export { PlatformApisModel } from './platformApis';
37
41
  export { PlatformCorsSettingModel } from './platformCorsSetting';
38
42
  export { PlatformDomainModel } from './platformDomain';
39
43
  export { PlatformDomainEventModel } from './platformDomainEvent';
40
44
  export { PlatformDomainVerificationModel } from './platformDomainVerification';
41
45
  export { PlatformManagedDomainModel } from './platformManagedDomain';
46
+ export { PlatformPageModel } from './platformPage';
47
+ export { PlatformSiteAppLinkModel } from './platformSiteAppLink';
42
48
  export { PlatformSiteModel } from './platformSite';
49
+ export { PlatformSiteDeepLinkModel } from './platformSiteDeepLink';
50
+ export { PlatformSiteErrorPageModel } from './platformSiteErrorPage';
43
51
  export { PlatformSiteMetadatumModel } from './platformSiteMetadatum';
44
52
  export { PlatformSiteModuleModel } from './platformSiteModule';
45
53
  export { PlatformSiteThemeModel } from './platformSiteTheme';
54
+ export { PlatformSiteWebConfigModel } from './platformSiteWebConfig';
46
55
  export { PolicyModel } from './policy';
47
56
  export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
48
57
  export { PubkeySettingModel } from './pubkeySetting';
@@ -51,17 +60,24 @@ export { RouteBindingModel } from './routeBinding';
51
60
  export { RouteModel } from './route';
52
61
  export { SchemaModel } from './schema';
53
62
  export { SchemaGrantModel } from './schemaGrant';
63
+ export { SiteAppLinkModel } from './siteAppLink';
54
64
  export { SiteModel } from './site';
65
+ export { SiteDeepLinkModel } from './siteDeepLink';
66
+ export { SiteErrorPageModel } from './siteErrorPage';
55
67
  export { SiteMetadatumModel } from './siteMetadatum';
56
68
  export { SiteModuleModel } from './siteModule';
57
69
  export { SiteThemeModel } from './siteTheme';
70
+ export { SiteWebConfigModel } from './siteWebConfig';
58
71
  export { SpatialRelationModel } from './spatialRelation';
59
72
  export { SqlActionModel } from './sqlAction';
73
+ export { TableBehaviorModel } from './tableBehavior';
60
74
  export { TableModel } from './table';
61
75
  export { TableGrantModel } from './tableGrant';
62
76
  export { TriggerModel } from './trigger';
63
77
  export { TriggerFunctionModel } from './triggerFunction';
78
+ export { UniqueConstraintBehaviorModel } from './uniqueConstraintBehavior';
64
79
  export { UniqueConstraintModel } from './uniqueConstraint';
80
+ export { ViewBehaviorModel } from './viewBehavior';
65
81
  export { ViewModel } from './view';
66
82
  export { ViewGrantModel } from './viewGrant';
67
83
  export { ViewRuleModel } from './viewRule';
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Page 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 { PageWithRelations, PageSelect, PageFilter, PageOrderBy, CreatePageInput, PagePatch } from '../input-types';
10
+ export declare class PageModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PageSelect>(args: FindManyArgs<S, PageFilter, PageOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PageSelect>): QueryBuilder<{
16
+ pages: ConnectionResult<InferSelectResult<PageWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PageSelect>(args: FindFirstArgs<S, PageFilter, PageOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PageSelect>): QueryBuilder<{
21
+ page: InferSelectResult<PageWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PageSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PageSelect>): QueryBuilder<{
27
+ page: InferSelectResult<PageWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PageSelect>(args: CreateArgs<S, CreatePageInput['page']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PageSelect>): QueryBuilder<{
32
+ createPage: {
33
+ page: InferSelectResult<PageWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PageSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PagePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PageSelect>): QueryBuilder<{
41
+ updatePage: {
42
+ page: InferSelectResult<PageWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PageSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PageSelect>): QueryBuilder<{
50
+ deletePage: {
51
+ page: InferSelectResult<PageWithRelations, 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 PageModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('Page', 'pages', 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
+ }, 'PageFilter', 'PageOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'Page',
22
+ fieldName: 'pages',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('Page', 'pages', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'PageFilter', 'PageOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'Page',
36
+ fieldName: 'page',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ page: data.pages?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('Page', 'pages', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'PageFilter', 'PageOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'Page',
57
+ fieldName: 'page',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ page: data.pages?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('Page', 'createPage', 'page', args.select, args.data, 'CreatePageInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'Page',
71
+ fieldName: 'createPage',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('Page', 'updatePage', 'page', args.select, args.where.id, args.data, 'UpdatePageInput', 'id', 'pagePatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'Page',
82
+ fieldName: 'updatePage',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('Page', 'deletePage', 'page', {
89
+ id: args.where.id,
90
+ }, 'DeletePageInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'Page',
95
+ fieldName: 'deletePage',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * PlatformApis 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 { PlatformApisWithRelations, PlatformApisSelect, PlatformApisFilter, PlatformApisOrderBy, CreatePlatformApisInput, PlatformApisPatch } from '../input-types';
10
+ export declare class PlatformApisModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformApisSelect>(args: FindManyArgs<S, PlatformApisFilter, PlatformApisOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformApisSelect>): QueryBuilder<{
16
+ platformApises: ConnectionResult<InferSelectResult<PlatformApisWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformApisSelect>(args: FindFirstArgs<S, PlatformApisFilter, PlatformApisOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformApisSelect>): QueryBuilder<{
21
+ platformApis: InferSelectResult<PlatformApisWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformApisSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformApisSelect>): QueryBuilder<{
27
+ platformApis: InferSelectResult<PlatformApisWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformApisSelect>(args: CreateArgs<S, CreatePlatformApisInput['platformApis']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformApisSelect>): QueryBuilder<{
32
+ createPlatformApis: {
33
+ platformApis: InferSelectResult<PlatformApisWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PlatformApisSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PlatformApisPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PlatformApisSelect>): QueryBuilder<{
41
+ updatePlatformApis: {
42
+ platformApis: InferSelectResult<PlatformApisWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PlatformApisSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PlatformApisSelect>): QueryBuilder<{
50
+ deletePlatformApis: {
51
+ platformApis: InferSelectResult<PlatformApisWithRelations, 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 PlatformApiModel {
3
+ export class PlatformApisModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('PlatformApi', 'platformApis', args.select, {
9
+ const { document, variables } = buildFindManyDocument('PlatformApis', 'platformApises', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,85 +14,85 @@ export class PlatformApiModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'PlatformApiFilter', 'PlatformApiOrderBy', connectionFieldsMap);
17
+ }, 'PlatformApisFilter', 'PlatformApisOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'PlatformApi',
22
- fieldName: 'platformApis',
21
+ operationName: 'PlatformApis',
22
+ fieldName: 'platformApises',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('PlatformApi', 'platformApis', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('PlatformApis', 'platformApises', args.select, {
29
29
  where: args?.where,
30
30
  orderBy: args?.orderBy,
31
- }, 'PlatformApiFilter', 'PlatformApiOrderBy', connectionFieldsMap);
31
+ }, 'PlatformApisFilter', 'PlatformApisOrderBy', connectionFieldsMap);
32
32
  return new QueryBuilder({
33
33
  client: this.client,
34
34
  operation: 'query',
35
- operationName: 'PlatformApi',
36
- fieldName: 'platformApi',
35
+ operationName: 'PlatformApis',
36
+ fieldName: 'platformApis',
37
37
  document,
38
38
  variables,
39
39
  transform: (data) => ({
40
- platformApi: data.platformApis?.nodes?.[0] ?? null,
40
+ platformApis: data.platformApises?.nodes?.[0] ?? null,
41
41
  }),
42
42
  });
43
43
  }
44
44
  findOne(args) {
45
- const { document, variables } = buildFindManyDocument('PlatformApi', 'platformApis', args.select, {
45
+ const { document, variables } = buildFindManyDocument('PlatformApis', 'platformApises', args.select, {
46
46
  where: {
47
47
  id: {
48
48
  equalTo: args.id,
49
49
  },
50
50
  },
51
51
  first: 1,
52
- }, 'PlatformApiFilter', 'PlatformApiOrderBy', connectionFieldsMap);
52
+ }, 'PlatformApisFilter', 'PlatformApisOrderBy', connectionFieldsMap);
53
53
  return new QueryBuilder({
54
54
  client: this.client,
55
55
  operation: 'query',
56
- operationName: 'PlatformApi',
57
- fieldName: 'platformApi',
56
+ operationName: 'PlatformApis',
57
+ fieldName: 'platformApis',
58
58
  document,
59
59
  variables,
60
60
  transform: (data) => ({
61
- platformApi: data.platformApis?.nodes?.[0] ?? null,
61
+ platformApis: data.platformApises?.nodes?.[0] ?? null,
62
62
  }),
63
63
  });
64
64
  }
65
65
  create(args) {
66
- const { document, variables } = buildCreateDocument('PlatformApi', 'createPlatformApi', 'platformApi', args.select, args.data, 'CreatePlatformApiInput', connectionFieldsMap);
66
+ const { document, variables } = buildCreateDocument('PlatformApis', 'createPlatformApis', 'platformApis', args.select, args.data, 'CreatePlatformApisInput', connectionFieldsMap);
67
67
  return new QueryBuilder({
68
68
  client: this.client,
69
69
  operation: 'mutation',
70
- operationName: 'PlatformApi',
71
- fieldName: 'createPlatformApi',
70
+ operationName: 'PlatformApis',
71
+ fieldName: 'createPlatformApis',
72
72
  document,
73
73
  variables,
74
74
  });
75
75
  }
76
76
  update(args) {
77
- const { document, variables } = buildUpdateByPkDocument('PlatformApi', 'updatePlatformApi', 'platformApi', args.select, args.where.id, args.data, 'UpdatePlatformApiInput', 'id', 'platformApiPatch', connectionFieldsMap, undefined);
77
+ const { document, variables } = buildUpdateByPkDocument('PlatformApis', 'updatePlatformApis', 'platformApis', args.select, args.where.id, args.data, 'UpdatePlatformApisInput', 'id', 'platformApisPatch', connectionFieldsMap, undefined);
78
78
  return new QueryBuilder({
79
79
  client: this.client,
80
80
  operation: 'mutation',
81
- operationName: 'PlatformApi',
82
- fieldName: 'updatePlatformApi',
81
+ operationName: 'PlatformApis',
82
+ fieldName: 'updatePlatformApis',
83
83
  document,
84
84
  variables,
85
85
  });
86
86
  }
87
87
  delete(args) {
88
- const { document, variables } = buildDeleteByPkDocument('PlatformApi', 'deletePlatformApi', 'platformApi', {
88
+ const { document, variables } = buildDeleteByPkDocument('PlatformApis', 'deletePlatformApis', 'platformApis', {
89
89
  id: args.where.id,
90
- }, 'DeletePlatformApiInput', args.select, connectionFieldsMap);
90
+ }, 'DeletePlatformApisInput', args.select, connectionFieldsMap);
91
91
  return new QueryBuilder({
92
92
  client: this.client,
93
93
  operation: 'mutation',
94
- operationName: 'PlatformApi',
95
- fieldName: 'deletePlatformApi',
94
+ operationName: 'PlatformApis',
95
+ fieldName: 'deletePlatformApis',
96
96
  document,
97
97
  variables,
98
98
  });
@@ -0,0 +1,54 @@
1
+ /**
2
+ * PlatformPage 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 { PlatformPageWithRelations, PlatformPageSelect, PlatformPageFilter, PlatformPageOrderBy, CreatePlatformPageInput, PlatformPagePatch } from '../input-types';
10
+ export declare class PlatformPageModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformPageSelect>(args: FindManyArgs<S, PlatformPageFilter, PlatformPageOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformPageSelect>): QueryBuilder<{
16
+ platformPages: ConnectionResult<InferSelectResult<PlatformPageWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformPageSelect>(args: FindFirstArgs<S, PlatformPageFilter, PlatformPageOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformPageSelect>): QueryBuilder<{
21
+ platformPage: InferSelectResult<PlatformPageWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformPageSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformPageSelect>): QueryBuilder<{
27
+ platformPage: InferSelectResult<PlatformPageWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformPageSelect>(args: CreateArgs<S, CreatePlatformPageInput['platformPage']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformPageSelect>): QueryBuilder<{
32
+ createPlatformPage: {
33
+ platformPage: InferSelectResult<PlatformPageWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PlatformPageSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PlatformPagePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PlatformPageSelect>): QueryBuilder<{
41
+ updatePlatformPage: {
42
+ platformPage: InferSelectResult<PlatformPageWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PlatformPageSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PlatformPageSelect>): QueryBuilder<{
50
+ deletePlatformPage: {
51
+ platformPage: InferSelectResult<PlatformPageWithRelations, S>;
52
+ };
53
+ }>;
54
+ }