@constructive-io/sdk 1.11.2 → 1.11.4

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 +6 -6
  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 PlatformPageModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('PlatformPage', 'platformPages', 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
+ }, 'PlatformPageFilter', 'PlatformPageOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'PlatformPage',
22
+ fieldName: 'platformPages',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('PlatformPage', 'platformPages', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'PlatformPageFilter', 'PlatformPageOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'PlatformPage',
36
+ fieldName: 'platformPage',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ platformPage: data.platformPages?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('PlatformPage', 'platformPages', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'PlatformPageFilter', 'PlatformPageOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'PlatformPage',
57
+ fieldName: 'platformPage',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ platformPage: data.platformPages?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('PlatformPage', 'createPlatformPage', 'platformPage', args.select, args.data, 'CreatePlatformPageInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'PlatformPage',
71
+ fieldName: 'createPlatformPage',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('PlatformPage', 'updatePlatformPage', 'platformPage', args.select, args.where.id, args.data, 'UpdatePlatformPageInput', 'id', 'platformPagePatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'PlatformPage',
82
+ fieldName: 'updatePlatformPage',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('PlatformPage', 'deletePlatformPage', 'platformPage', {
89
+ id: args.where.id,
90
+ }, 'DeletePlatformPageInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'PlatformPage',
95
+ fieldName: 'deletePlatformPage',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * PlatformSiteAppLink 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 { PlatformSiteAppLinkWithRelations, PlatformSiteAppLinkSelect, PlatformSiteAppLinkFilter, PlatformSiteAppLinkOrderBy, CreatePlatformSiteAppLinkInput, PlatformSiteAppLinkPatch } from '../input-types';
10
+ export declare class PlatformSiteAppLinkModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformSiteAppLinkSelect>(args: FindManyArgs<S, PlatformSiteAppLinkFilter, PlatformSiteAppLinkOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformSiteAppLinkSelect>): QueryBuilder<{
16
+ platformSiteAppLinks: ConnectionResult<InferSelectResult<PlatformSiteAppLinkWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformSiteAppLinkSelect>(args: FindFirstArgs<S, PlatformSiteAppLinkFilter, PlatformSiteAppLinkOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformSiteAppLinkSelect>): QueryBuilder<{
21
+ platformSiteAppLink: InferSelectResult<PlatformSiteAppLinkWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformSiteAppLinkSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformSiteAppLinkSelect>): QueryBuilder<{
27
+ platformSiteAppLink: InferSelectResult<PlatformSiteAppLinkWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformSiteAppLinkSelect>(args: CreateArgs<S, CreatePlatformSiteAppLinkInput['platformSiteAppLink']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformSiteAppLinkSelect>): QueryBuilder<{
32
+ createPlatformSiteAppLink: {
33
+ platformSiteAppLink: InferSelectResult<PlatformSiteAppLinkWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PlatformSiteAppLinkSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PlatformSiteAppLinkPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PlatformSiteAppLinkSelect>): QueryBuilder<{
41
+ updatePlatformSiteAppLink: {
42
+ platformSiteAppLink: InferSelectResult<PlatformSiteAppLinkWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PlatformSiteAppLinkSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PlatformSiteAppLinkSelect>): QueryBuilder<{
50
+ deletePlatformSiteAppLink: {
51
+ platformSiteAppLink: InferSelectResult<PlatformSiteAppLinkWithRelations, 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 PlatformSiteAppLinkModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('PlatformSiteAppLink', 'platformSiteAppLinks', 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
+ }, 'PlatformSiteAppLinkFilter', 'PlatformSiteAppLinkOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'PlatformSiteAppLink',
22
+ fieldName: 'platformSiteAppLinks',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('PlatformSiteAppLink', 'platformSiteAppLinks', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'PlatformSiteAppLinkFilter', 'PlatformSiteAppLinkOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'PlatformSiteAppLink',
36
+ fieldName: 'platformSiteAppLink',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ platformSiteAppLink: data.platformSiteAppLinks?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('PlatformSiteAppLink', 'platformSiteAppLinks', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'PlatformSiteAppLinkFilter', 'PlatformSiteAppLinkOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'PlatformSiteAppLink',
57
+ fieldName: 'platformSiteAppLink',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ platformSiteAppLink: data.platformSiteAppLinks?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('PlatformSiteAppLink', 'createPlatformSiteAppLink', 'platformSiteAppLink', args.select, args.data, 'CreatePlatformSiteAppLinkInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'PlatformSiteAppLink',
71
+ fieldName: 'createPlatformSiteAppLink',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('PlatformSiteAppLink', 'updatePlatformSiteAppLink', 'platformSiteAppLink', args.select, args.where.id, args.data, 'UpdatePlatformSiteAppLinkInput', 'id', 'platformSiteAppLinkPatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'PlatformSiteAppLink',
82
+ fieldName: 'updatePlatformSiteAppLink',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('PlatformSiteAppLink', 'deletePlatformSiteAppLink', 'platformSiteAppLink', {
89
+ id: args.where.id,
90
+ }, 'DeletePlatformSiteAppLinkInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'PlatformSiteAppLink',
95
+ fieldName: 'deletePlatformSiteAppLink',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * PlatformSiteDeepLink 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 { PlatformSiteDeepLinkWithRelations, PlatformSiteDeepLinkSelect, PlatformSiteDeepLinkFilter, PlatformSiteDeepLinkOrderBy, CreatePlatformSiteDeepLinkInput, PlatformSiteDeepLinkPatch } from '../input-types';
10
+ export declare class PlatformSiteDeepLinkModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformSiteDeepLinkSelect>(args: FindManyArgs<S, PlatformSiteDeepLinkFilter, PlatformSiteDeepLinkOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformSiteDeepLinkSelect>): QueryBuilder<{
16
+ platformSiteDeepLinks: ConnectionResult<InferSelectResult<PlatformSiteDeepLinkWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformSiteDeepLinkSelect>(args: FindFirstArgs<S, PlatformSiteDeepLinkFilter, PlatformSiteDeepLinkOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformSiteDeepLinkSelect>): QueryBuilder<{
21
+ platformSiteDeepLink: InferSelectResult<PlatformSiteDeepLinkWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformSiteDeepLinkSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformSiteDeepLinkSelect>): QueryBuilder<{
27
+ platformSiteDeepLink: InferSelectResult<PlatformSiteDeepLinkWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformSiteDeepLinkSelect>(args: CreateArgs<S, CreatePlatformSiteDeepLinkInput['platformSiteDeepLink']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformSiteDeepLinkSelect>): QueryBuilder<{
32
+ createPlatformSiteDeepLink: {
33
+ platformSiteDeepLink: InferSelectResult<PlatformSiteDeepLinkWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PlatformSiteDeepLinkSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PlatformSiteDeepLinkPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PlatformSiteDeepLinkSelect>): QueryBuilder<{
41
+ updatePlatformSiteDeepLink: {
42
+ platformSiteDeepLink: InferSelectResult<PlatformSiteDeepLinkWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PlatformSiteDeepLinkSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PlatformSiteDeepLinkSelect>): QueryBuilder<{
50
+ deletePlatformSiteDeepLink: {
51
+ platformSiteDeepLink: InferSelectResult<PlatformSiteDeepLinkWithRelations, 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 PlatformSiteDeepLinkModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('PlatformSiteDeepLink', 'platformSiteDeepLinks', 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
+ }, 'PlatformSiteDeepLinkFilter', 'PlatformSiteDeepLinkOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'PlatformSiteDeepLink',
22
+ fieldName: 'platformSiteDeepLinks',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('PlatformSiteDeepLink', 'platformSiteDeepLinks', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'PlatformSiteDeepLinkFilter', 'PlatformSiteDeepLinkOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'PlatformSiteDeepLink',
36
+ fieldName: 'platformSiteDeepLink',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ platformSiteDeepLink: data.platformSiteDeepLinks?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('PlatformSiteDeepLink', 'platformSiteDeepLinks', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'PlatformSiteDeepLinkFilter', 'PlatformSiteDeepLinkOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'PlatformSiteDeepLink',
57
+ fieldName: 'platformSiteDeepLink',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ platformSiteDeepLink: data.platformSiteDeepLinks?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('PlatformSiteDeepLink', 'createPlatformSiteDeepLink', 'platformSiteDeepLink', args.select, args.data, 'CreatePlatformSiteDeepLinkInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'PlatformSiteDeepLink',
71
+ fieldName: 'createPlatformSiteDeepLink',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('PlatformSiteDeepLink', 'updatePlatformSiteDeepLink', 'platformSiteDeepLink', args.select, args.where.id, args.data, 'UpdatePlatformSiteDeepLinkInput', 'id', 'platformSiteDeepLinkPatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'PlatformSiteDeepLink',
82
+ fieldName: 'updatePlatformSiteDeepLink',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('PlatformSiteDeepLink', 'deletePlatformSiteDeepLink', 'platformSiteDeepLink', {
89
+ id: args.where.id,
90
+ }, 'DeletePlatformSiteDeepLinkInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'PlatformSiteDeepLink',
95
+ fieldName: 'deletePlatformSiteDeepLink',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * PlatformSiteErrorPage 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 { PlatformSiteErrorPageWithRelations, PlatformSiteErrorPageSelect, PlatformSiteErrorPageFilter, PlatformSiteErrorPageOrderBy, CreatePlatformSiteErrorPageInput, PlatformSiteErrorPagePatch } from '../input-types';
10
+ export declare class PlatformSiteErrorPageModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformSiteErrorPageSelect>(args: FindManyArgs<S, PlatformSiteErrorPageFilter, PlatformSiteErrorPageOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformSiteErrorPageSelect>): QueryBuilder<{
16
+ platformSiteErrorPages: ConnectionResult<InferSelectResult<PlatformSiteErrorPageWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformSiteErrorPageSelect>(args: FindFirstArgs<S, PlatformSiteErrorPageFilter, PlatformSiteErrorPageOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformSiteErrorPageSelect>): QueryBuilder<{
21
+ platformSiteErrorPage: InferSelectResult<PlatformSiteErrorPageWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformSiteErrorPageSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformSiteErrorPageSelect>): QueryBuilder<{
27
+ platformSiteErrorPage: InferSelectResult<PlatformSiteErrorPageWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformSiteErrorPageSelect>(args: CreateArgs<S, CreatePlatformSiteErrorPageInput['platformSiteErrorPage']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformSiteErrorPageSelect>): QueryBuilder<{
32
+ createPlatformSiteErrorPage: {
33
+ platformSiteErrorPage: InferSelectResult<PlatformSiteErrorPageWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PlatformSiteErrorPageSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PlatformSiteErrorPagePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PlatformSiteErrorPageSelect>): QueryBuilder<{
41
+ updatePlatformSiteErrorPage: {
42
+ platformSiteErrorPage: InferSelectResult<PlatformSiteErrorPageWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PlatformSiteErrorPageSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PlatformSiteErrorPageSelect>): QueryBuilder<{
50
+ deletePlatformSiteErrorPage: {
51
+ platformSiteErrorPage: InferSelectResult<PlatformSiteErrorPageWithRelations, 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 PlatformSiteErrorPageModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('PlatformSiteErrorPage', 'platformSiteErrorPages', 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
+ }, 'PlatformSiteErrorPageFilter', 'PlatformSiteErrorPageOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'PlatformSiteErrorPage',
22
+ fieldName: 'platformSiteErrorPages',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('PlatformSiteErrorPage', 'platformSiteErrorPages', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'PlatformSiteErrorPageFilter', 'PlatformSiteErrorPageOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'PlatformSiteErrorPage',
36
+ fieldName: 'platformSiteErrorPage',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ platformSiteErrorPage: data.platformSiteErrorPages?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('PlatformSiteErrorPage', 'platformSiteErrorPages', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'PlatformSiteErrorPageFilter', 'PlatformSiteErrorPageOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'PlatformSiteErrorPage',
57
+ fieldName: 'platformSiteErrorPage',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ platformSiteErrorPage: data.platformSiteErrorPages?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('PlatformSiteErrorPage', 'createPlatformSiteErrorPage', 'platformSiteErrorPage', args.select, args.data, 'CreatePlatformSiteErrorPageInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'PlatformSiteErrorPage',
71
+ fieldName: 'createPlatformSiteErrorPage',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('PlatformSiteErrorPage', 'updatePlatformSiteErrorPage', 'platformSiteErrorPage', args.select, args.where.id, args.data, 'UpdatePlatformSiteErrorPageInput', 'id', 'platformSiteErrorPagePatch', connectionFieldsMap, undefined);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'PlatformSiteErrorPage',
82
+ fieldName: 'updatePlatformSiteErrorPage',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('PlatformSiteErrorPage', 'deletePlatformSiteErrorPage', 'platformSiteErrorPage', {
89
+ id: args.where.id,
90
+ }, 'DeletePlatformSiteErrorPageInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'PlatformSiteErrorPage',
95
+ fieldName: 'deletePlatformSiteErrorPage',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * PlatformSiteWebConfig 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 { PlatformSiteWebConfigWithRelations, PlatformSiteWebConfigSelect, PlatformSiteWebConfigFilter, PlatformSiteWebConfigOrderBy, CreatePlatformSiteWebConfigInput, PlatformSiteWebConfigPatch } from '../input-types';
10
+ export declare class PlatformSiteWebConfigModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends PlatformSiteWebConfigSelect>(args: FindManyArgs<S, PlatformSiteWebConfigFilter, PlatformSiteWebConfigOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, PlatformSiteWebConfigSelect>): QueryBuilder<{
16
+ platformSiteWebConfigs: ConnectionResult<InferSelectResult<PlatformSiteWebConfigWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends PlatformSiteWebConfigSelect>(args: FindFirstArgs<S, PlatformSiteWebConfigFilter, PlatformSiteWebConfigOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, PlatformSiteWebConfigSelect>): QueryBuilder<{
21
+ platformSiteWebConfig: InferSelectResult<PlatformSiteWebConfigWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends PlatformSiteWebConfigSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, PlatformSiteWebConfigSelect>): QueryBuilder<{
27
+ platformSiteWebConfig: InferSelectResult<PlatformSiteWebConfigWithRelations, S> | null;
28
+ }>;
29
+ create<S extends PlatformSiteWebConfigSelect>(args: CreateArgs<S, CreatePlatformSiteWebConfigInput['platformSiteWebConfig']> & {
30
+ select: S;
31
+ } & StrictSelect<S, PlatformSiteWebConfigSelect>): QueryBuilder<{
32
+ createPlatformSiteWebConfig: {
33
+ platformSiteWebConfig: InferSelectResult<PlatformSiteWebConfigWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends PlatformSiteWebConfigSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, PlatformSiteWebConfigPatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, PlatformSiteWebConfigSelect>): QueryBuilder<{
41
+ updatePlatformSiteWebConfig: {
42
+ platformSiteWebConfig: InferSelectResult<PlatformSiteWebConfigWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends PlatformSiteWebConfigSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, PlatformSiteWebConfigSelect>): QueryBuilder<{
50
+ deletePlatformSiteWebConfig: {
51
+ platformSiteWebConfig: InferSelectResult<PlatformSiteWebConfigWithRelations, S>;
52
+ };
53
+ }>;
54
+ }