@constructive-io/graphql-server 2.14.8 → 2.15.1

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 (219) hide show
  1. package/codegen/orm/client.d.ts +55 -0
  2. package/codegen/orm/client.js +75 -0
  3. package/codegen/orm/index.d.ts +632 -0
  4. package/codegen/orm/index.js +182 -0
  5. package/codegen/orm/input-types.d.ts +13248 -0
  6. package/codegen/orm/input-types.js +7 -0
  7. package/codegen/orm/models/api.d.ts +42 -0
  8. package/codegen/orm/models/api.js +77 -0
  9. package/codegen/orm/models/apiExtension.d.ts +42 -0
  10. package/codegen/orm/models/apiExtension.js +77 -0
  11. package/codegen/orm/models/apiModule.d.ts +42 -0
  12. package/codegen/orm/models/apiModule.js +77 -0
  13. package/codegen/orm/models/apiSchema.d.ts +42 -0
  14. package/codegen/orm/models/apiSchema.js +77 -0
  15. package/codegen/orm/models/app.d.ts +42 -0
  16. package/codegen/orm/models/app.js +77 -0
  17. package/codegen/orm/models/checkConstraint.d.ts +42 -0
  18. package/codegen/orm/models/checkConstraint.js +77 -0
  19. package/codegen/orm/models/connectedAccountsModule.d.ts +42 -0
  20. package/codegen/orm/models/connectedAccountsModule.js +77 -0
  21. package/codegen/orm/models/cryptoAddressesModule.d.ts +42 -0
  22. package/codegen/orm/models/cryptoAddressesModule.js +77 -0
  23. package/codegen/orm/models/cryptoAuthModule.d.ts +42 -0
  24. package/codegen/orm/models/cryptoAuthModule.js +77 -0
  25. package/codegen/orm/models/database.d.ts +42 -0
  26. package/codegen/orm/models/database.js +77 -0
  27. package/codegen/orm/models/databaseExtension.d.ts +42 -0
  28. package/codegen/orm/models/databaseExtension.js +77 -0
  29. package/codegen/orm/models/databaseProvision.d.ts +42 -0
  30. package/codegen/orm/models/databaseProvision.js +77 -0
  31. package/codegen/orm/models/defaultIdsModule.d.ts +42 -0
  32. package/codegen/orm/models/defaultIdsModule.js +77 -0
  33. package/codegen/orm/models/denormalizedTableField.d.ts +42 -0
  34. package/codegen/orm/models/denormalizedTableField.js +77 -0
  35. package/codegen/orm/models/domain.d.ts +42 -0
  36. package/codegen/orm/models/domain.js +77 -0
  37. package/codegen/orm/models/emailsModule.d.ts +42 -0
  38. package/codegen/orm/models/emailsModule.js +77 -0
  39. package/codegen/orm/models/encryptedSecretsModule.d.ts +42 -0
  40. package/codegen/orm/models/encryptedSecretsModule.js +77 -0
  41. package/codegen/orm/models/extension.d.ts +42 -0
  42. package/codegen/orm/models/extension.js +77 -0
  43. package/codegen/orm/models/field.d.ts +42 -0
  44. package/codegen/orm/models/field.js +77 -0
  45. package/codegen/orm/models/fieldModule.d.ts +42 -0
  46. package/codegen/orm/models/fieldModule.js +77 -0
  47. package/codegen/orm/models/foreignKeyConstraint.d.ts +42 -0
  48. package/codegen/orm/models/foreignKeyConstraint.js +77 -0
  49. package/codegen/orm/models/fullTextSearch.d.ts +42 -0
  50. package/codegen/orm/models/fullTextSearch.js +77 -0
  51. package/codegen/orm/models/hierarchyModule.d.ts +42 -0
  52. package/codegen/orm/models/hierarchyModule.js +77 -0
  53. package/codegen/orm/models/index.d.ts +64 -0
  54. package/codegen/orm/models/index.js +127 -0
  55. package/codegen/orm/models/indexModel.d.ts +42 -0
  56. package/codegen/orm/models/indexModel.js +77 -0
  57. package/codegen/orm/models/invitesModule.d.ts +42 -0
  58. package/codegen/orm/models/invitesModule.js +77 -0
  59. package/codegen/orm/models/levelsModule.d.ts +42 -0
  60. package/codegen/orm/models/levelsModule.js +77 -0
  61. package/codegen/orm/models/limitFunction.d.ts +42 -0
  62. package/codegen/orm/models/limitFunction.js +77 -0
  63. package/codegen/orm/models/limitsModule.d.ts +42 -0
  64. package/codegen/orm/models/limitsModule.js +77 -0
  65. package/codegen/orm/models/membershipTypesModule.d.ts +42 -0
  66. package/codegen/orm/models/membershipTypesModule.js +77 -0
  67. package/codegen/orm/models/membershipsModule.d.ts +42 -0
  68. package/codegen/orm/models/membershipsModule.js +77 -0
  69. package/codegen/orm/models/module.d.ts +42 -0
  70. package/codegen/orm/models/module.js +77 -0
  71. package/codegen/orm/models/moduleDefinition.d.ts +42 -0
  72. package/codegen/orm/models/moduleDefinition.js +77 -0
  73. package/codegen/orm/models/moduleField.d.ts +42 -0
  74. package/codegen/orm/models/moduleField.js +77 -0
  75. package/codegen/orm/models/moduleInputRecord.d.ts +42 -0
  76. package/codegen/orm/models/moduleInputRecord.js +77 -0
  77. package/codegen/orm/models/moduleOutput.d.ts +42 -0
  78. package/codegen/orm/models/moduleOutput.js +77 -0
  79. package/codegen/orm/models/permissionsModule.d.ts +42 -0
  80. package/codegen/orm/models/permissionsModule.js +77 -0
  81. package/codegen/orm/models/phoneNumbersModule.d.ts +42 -0
  82. package/codegen/orm/models/phoneNumbersModule.js +77 -0
  83. package/codegen/orm/models/policy.d.ts +42 -0
  84. package/codegen/orm/models/policy.js +77 -0
  85. package/codegen/orm/models/primaryKeyConstraint.d.ts +42 -0
  86. package/codegen/orm/models/primaryKeyConstraint.js +77 -0
  87. package/codegen/orm/models/procedure.d.ts +42 -0
  88. package/codegen/orm/models/procedure.js +77 -0
  89. package/codegen/orm/models/profilesModule.d.ts +42 -0
  90. package/codegen/orm/models/profilesModule.js +77 -0
  91. package/codegen/orm/models/rlsFunction.d.ts +42 -0
  92. package/codegen/orm/models/rlsFunction.js +77 -0
  93. package/codegen/orm/models/rlsModule.d.ts +42 -0
  94. package/codegen/orm/models/rlsModule.js +77 -0
  95. package/codegen/orm/models/schema.d.ts +42 -0
  96. package/codegen/orm/models/schema.js +77 -0
  97. package/codegen/orm/models/schemaGrant.d.ts +42 -0
  98. package/codegen/orm/models/schemaGrant.js +77 -0
  99. package/codegen/orm/models/secretsModule.d.ts +42 -0
  100. package/codegen/orm/models/secretsModule.js +77 -0
  101. package/codegen/orm/models/site.d.ts +42 -0
  102. package/codegen/orm/models/site.js +77 -0
  103. package/codegen/orm/models/siteMetadatum.d.ts +42 -0
  104. package/codegen/orm/models/siteMetadatum.js +77 -0
  105. package/codegen/orm/models/siteModule.d.ts +42 -0
  106. package/codegen/orm/models/siteModule.js +77 -0
  107. package/codegen/orm/models/siteTheme.d.ts +42 -0
  108. package/codegen/orm/models/siteTheme.js +77 -0
  109. package/codegen/orm/models/table.d.ts +42 -0
  110. package/codegen/orm/models/table.js +77 -0
  111. package/codegen/orm/models/tableGrant.d.ts +42 -0
  112. package/codegen/orm/models/tableGrant.js +77 -0
  113. package/codegen/orm/models/tokensModule.d.ts +42 -0
  114. package/codegen/orm/models/tokensModule.js +77 -0
  115. package/codegen/orm/models/trigger.d.ts +42 -0
  116. package/codegen/orm/models/trigger.js +77 -0
  117. package/codegen/orm/models/triggerFunction.d.ts +42 -0
  118. package/codegen/orm/models/triggerFunction.js +77 -0
  119. package/codegen/orm/models/uniqueConstraint.d.ts +42 -0
  120. package/codegen/orm/models/uniqueConstraint.js +77 -0
  121. package/codegen/orm/models/userAuthModule.d.ts +42 -0
  122. package/codegen/orm/models/userAuthModule.js +77 -0
  123. package/codegen/orm/models/usersModule.d.ts +42 -0
  124. package/codegen/orm/models/usersModule.js +77 -0
  125. package/codegen/orm/models/uuidModule.d.ts +42 -0
  126. package/codegen/orm/models/uuidModule.js +77 -0
  127. package/codegen/orm/mutation/index.d.ts +531 -0
  128. package/codegen/orm/mutation/index.js +596 -0
  129. package/codegen/orm/query/index.d.ts +274 -0
  130. package/codegen/orm/query/index.js +290 -0
  131. package/codegen/orm/query-builder.d.ts +80 -0
  132. package/codegen/orm/query-builder.js +249 -0
  133. package/codegen/orm/select-types.d.ts +50 -0
  134. package/codegen/orm/select-types.js +7 -0
  135. package/codegen/orm/types.d.ts +6 -0
  136. package/codegen/orm/types.js +23 -0
  137. package/esm/codegen/orm/client.js +70 -0
  138. package/esm/codegen/orm/index.js +162 -0
  139. package/esm/codegen/orm/input-types.js +6 -0
  140. package/esm/codegen/orm/models/api.js +73 -0
  141. package/esm/codegen/orm/models/apiExtension.js +73 -0
  142. package/esm/codegen/orm/models/apiModule.js +73 -0
  143. package/esm/codegen/orm/models/apiSchema.js +73 -0
  144. package/esm/codegen/orm/models/app.js +73 -0
  145. package/esm/codegen/orm/models/checkConstraint.js +73 -0
  146. package/esm/codegen/orm/models/connectedAccountsModule.js +73 -0
  147. package/esm/codegen/orm/models/cryptoAddressesModule.js +73 -0
  148. package/esm/codegen/orm/models/cryptoAuthModule.js +73 -0
  149. package/esm/codegen/orm/models/database.js +73 -0
  150. package/esm/codegen/orm/models/databaseExtension.js +73 -0
  151. package/esm/codegen/orm/models/databaseProvision.js +73 -0
  152. package/esm/codegen/orm/models/defaultIdsModule.js +73 -0
  153. package/esm/codegen/orm/models/denormalizedTableField.js +73 -0
  154. package/esm/codegen/orm/models/domain.js +73 -0
  155. package/esm/codegen/orm/models/emailsModule.js +73 -0
  156. package/esm/codegen/orm/models/encryptedSecretsModule.js +73 -0
  157. package/esm/codegen/orm/models/extension.js +73 -0
  158. package/esm/codegen/orm/models/field.js +73 -0
  159. package/esm/codegen/orm/models/fieldModule.js +73 -0
  160. package/esm/codegen/orm/models/foreignKeyConstraint.js +73 -0
  161. package/esm/codegen/orm/models/fullTextSearch.js +73 -0
  162. package/esm/codegen/orm/models/hierarchyModule.js +73 -0
  163. package/esm/codegen/orm/models/index.js +64 -0
  164. package/esm/codegen/orm/models/indexModel.js +73 -0
  165. package/esm/codegen/orm/models/invitesModule.js +73 -0
  166. package/esm/codegen/orm/models/levelsModule.js +73 -0
  167. package/esm/codegen/orm/models/limitFunction.js +73 -0
  168. package/esm/codegen/orm/models/limitsModule.js +73 -0
  169. package/esm/codegen/orm/models/membershipTypesModule.js +73 -0
  170. package/esm/codegen/orm/models/membershipsModule.js +73 -0
  171. package/esm/codegen/orm/models/module.js +73 -0
  172. package/esm/codegen/orm/models/moduleDefinition.js +73 -0
  173. package/esm/codegen/orm/models/moduleField.js +73 -0
  174. package/esm/codegen/orm/models/moduleInputRecord.js +73 -0
  175. package/esm/codegen/orm/models/moduleOutput.js +73 -0
  176. package/esm/codegen/orm/models/permissionsModule.js +73 -0
  177. package/esm/codegen/orm/models/phoneNumbersModule.js +73 -0
  178. package/esm/codegen/orm/models/policy.js +73 -0
  179. package/esm/codegen/orm/models/primaryKeyConstraint.js +73 -0
  180. package/esm/codegen/orm/models/procedure.js +73 -0
  181. package/esm/codegen/orm/models/profilesModule.js +73 -0
  182. package/esm/codegen/orm/models/rlsFunction.js +73 -0
  183. package/esm/codegen/orm/models/rlsModule.js +73 -0
  184. package/esm/codegen/orm/models/schema.js +73 -0
  185. package/esm/codegen/orm/models/schemaGrant.js +73 -0
  186. package/esm/codegen/orm/models/secretsModule.js +73 -0
  187. package/esm/codegen/orm/models/site.js +73 -0
  188. package/esm/codegen/orm/models/siteMetadatum.js +73 -0
  189. package/esm/codegen/orm/models/siteModule.js +73 -0
  190. package/esm/codegen/orm/models/siteTheme.js +73 -0
  191. package/esm/codegen/orm/models/table.js +73 -0
  192. package/esm/codegen/orm/models/tableGrant.js +73 -0
  193. package/esm/codegen/orm/models/tokensModule.js +73 -0
  194. package/esm/codegen/orm/models/trigger.js +73 -0
  195. package/esm/codegen/orm/models/triggerFunction.js +73 -0
  196. package/esm/codegen/orm/models/uniqueConstraint.js +73 -0
  197. package/esm/codegen/orm/models/userAuthModule.js +73 -0
  198. package/esm/codegen/orm/models/usersModule.js +73 -0
  199. package/esm/codegen/orm/models/uuidModule.js +73 -0
  200. package/esm/codegen/orm/mutation/index.js +593 -0
  201. package/esm/codegen/orm/query/index.js +287 -0
  202. package/esm/codegen/orm/query-builder.js +238 -0
  203. package/esm/codegen/orm/select-types.js +6 -0
  204. package/esm/codegen/orm/types.js +7 -0
  205. package/esm/middleware/api.js +10 -9
  206. package/esm/middleware/gql.js +118 -123
  207. package/esm/middleware/graphile.js +19 -3
  208. package/esm/scripts/codegen-schema.js +71 -0
  209. package/esm/server.js +21 -0
  210. package/middleware/api.js +9 -8
  211. package/middleware/gql.d.ts +25 -5
  212. package/middleware/gql.js +122 -127
  213. package/middleware/graphile.js +19 -3
  214. package/middleware/types.d.ts +1 -0
  215. package/package.json +15 -11
  216. package/scripts/codegen-schema.d.ts +1 -0
  217. package/scripts/codegen-schema.js +76 -0
  218. package/server.js +21 -0
  219. package/types.d.ts +2 -2
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class PhoneNumbersModuleModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('PhoneNumbersModule', 'phoneNumbersModules', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'PhoneNumbersModuleFilter', 'PhoneNumbersModulesOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'PhoneNumbersModule',
24
+ fieldName: 'phoneNumbersModules',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('PhoneNumbersModule', 'phoneNumbersModules', args?.select, { where: args?.where }, 'PhoneNumbersModuleFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'PhoneNumbersModule',
35
+ fieldName: 'phoneNumbersModules',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('PhoneNumbersModule', 'createPhoneNumbersModule', 'phoneNumbersModule', args.select, args.data, 'CreatePhoneNumbersModuleInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'PhoneNumbersModule',
46
+ fieldName: 'createPhoneNumbersModule',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('PhoneNumbersModule', 'updatePhoneNumbersModule', 'phoneNumbersModule', args.select, args.where, args.data, 'UpdatePhoneNumbersModuleInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'PhoneNumbersModule',
57
+ fieldName: 'updatePhoneNumbersModule',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('PhoneNumbersModule', 'deletePhoneNumbersModule', 'phoneNumbersModule', args.where, 'DeletePhoneNumbersModuleInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'PhoneNumbersModule',
68
+ fieldName: 'deletePhoneNumbersModule',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class PolicyModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('Policy', 'policies', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'PolicyFilter', 'PoliciesOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'Policy',
24
+ fieldName: 'policies',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('Policy', 'policies', args?.select, { where: args?.where }, 'PolicyFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'Policy',
35
+ fieldName: 'policies',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('Policy', 'createPolicy', 'policy', args.select, args.data, 'CreatePolicyInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'Policy',
46
+ fieldName: 'createPolicy',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('Policy', 'updatePolicy', 'policy', args.select, args.where, args.data, 'UpdatePolicyInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'Policy',
57
+ fieldName: 'updatePolicy',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('Policy', 'deletePolicy', 'policy', args.where, 'DeletePolicyInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'Policy',
68
+ fieldName: 'deletePolicy',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class PrimaryKeyConstraintModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('PrimaryKeyConstraint', 'primaryKeyConstraints', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'PrimaryKeyConstraintFilter', 'PrimaryKeyConstraintsOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'PrimaryKeyConstraint',
24
+ fieldName: 'primaryKeyConstraints',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('PrimaryKeyConstraint', 'primaryKeyConstraints', args?.select, { where: args?.where }, 'PrimaryKeyConstraintFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'PrimaryKeyConstraint',
35
+ fieldName: 'primaryKeyConstraints',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('PrimaryKeyConstraint', 'createPrimaryKeyConstraint', 'primaryKeyConstraint', args.select, args.data, 'CreatePrimaryKeyConstraintInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'PrimaryKeyConstraint',
46
+ fieldName: 'createPrimaryKeyConstraint',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('PrimaryKeyConstraint', 'updatePrimaryKeyConstraint', 'primaryKeyConstraint', args.select, args.where, args.data, 'UpdatePrimaryKeyConstraintInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'PrimaryKeyConstraint',
57
+ fieldName: 'updatePrimaryKeyConstraint',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('PrimaryKeyConstraint', 'deletePrimaryKeyConstraint', 'primaryKeyConstraint', args.where, 'DeletePrimaryKeyConstraintInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'PrimaryKeyConstraint',
68
+ fieldName: 'deletePrimaryKeyConstraint',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class ProcedureModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('Procedure', 'procedures', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'ProcedureFilter', 'ProceduresOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'Procedure',
24
+ fieldName: 'procedures',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('Procedure', 'procedures', args?.select, { where: args?.where }, 'ProcedureFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'Procedure',
35
+ fieldName: 'procedures',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('Procedure', 'createProcedure', 'procedure', args.select, args.data, 'CreateProcedureInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'Procedure',
46
+ fieldName: 'createProcedure',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('Procedure', 'updateProcedure', 'procedure', args.select, args.where, args.data, 'UpdateProcedureInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'Procedure',
57
+ fieldName: 'updateProcedure',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('Procedure', 'deleteProcedure', 'procedure', args.where, 'DeleteProcedureInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'Procedure',
68
+ fieldName: 'deleteProcedure',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class ProfilesModuleModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('ProfilesModule', 'profilesModules', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'ProfilesModuleFilter', 'ProfilesModulesOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'ProfilesModule',
24
+ fieldName: 'profilesModules',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('ProfilesModule', 'profilesModules', args?.select, { where: args?.where }, 'ProfilesModuleFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'ProfilesModule',
35
+ fieldName: 'profilesModules',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('ProfilesModule', 'createProfilesModule', 'profilesModule', args.select, args.data, 'CreateProfilesModuleInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'ProfilesModule',
46
+ fieldName: 'createProfilesModule',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('ProfilesModule', 'updateProfilesModule', 'profilesModule', args.select, args.where, args.data, 'UpdateProfilesModuleInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'ProfilesModule',
57
+ fieldName: 'updateProfilesModule',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('ProfilesModule', 'deleteProfilesModule', 'profilesModule', args.where, 'DeleteProfilesModuleInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'ProfilesModule',
68
+ fieldName: 'deleteProfilesModule',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class RlsFunctionModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('RlsFunction', 'rlsFunctions', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'RlsFunctionFilter', 'RlsFunctionsOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'RlsFunction',
24
+ fieldName: 'rlsFunctions',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('RlsFunction', 'rlsFunctions', args?.select, { where: args?.where }, 'RlsFunctionFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'RlsFunction',
35
+ fieldName: 'rlsFunctions',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('RlsFunction', 'createRlsFunction', 'rlsFunction', args.select, args.data, 'CreateRlsFunctionInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'RlsFunction',
46
+ fieldName: 'createRlsFunction',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('RlsFunction', 'updateRlsFunction', 'rlsFunction', args.select, args.where, args.data, 'UpdateRlsFunctionInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'RlsFunction',
57
+ fieldName: 'updateRlsFunction',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('RlsFunction', 'deleteRlsFunction', 'rlsFunction', args.where, 'DeleteRlsFunctionInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'RlsFunction',
68
+ fieldName: 'deleteRlsFunction',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class RlsModuleModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('RlsModule', 'rlsModules', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'RlsModuleFilter', 'RlsModulesOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'RlsModule',
24
+ fieldName: 'rlsModules',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('RlsModule', 'rlsModules', args?.select, { where: args?.where }, 'RlsModuleFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'RlsModule',
35
+ fieldName: 'rlsModules',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('RlsModule', 'createRlsModule', 'rlsModule', args.select, args.data, 'CreateRlsModuleInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'RlsModule',
46
+ fieldName: 'createRlsModule',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('RlsModule', 'updateRlsModule', 'rlsModule', args.select, args.where, args.data, 'UpdateRlsModuleInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'RlsModule',
57
+ fieldName: 'updateRlsModule',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('RlsModule', 'deleteRlsModule', 'rlsModule', args.where, 'DeleteRlsModuleInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'RlsModule',
68
+ fieldName: 'deleteRlsModule',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class SchemaModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('Schema', 'schemas', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'SchemaFilter', 'SchemasOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'Schema',
24
+ fieldName: 'schemas',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('Schema', 'schemas', args?.select, { where: args?.where }, 'SchemaFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'Schema',
35
+ fieldName: 'schemas',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('Schema', 'createSchema', 'schema', args.select, args.data, 'CreateSchemaInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'Schema',
46
+ fieldName: 'createSchema',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('Schema', 'updateSchema', 'schema', args.select, args.where, args.data, 'UpdateSchemaInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'Schema',
57
+ fieldName: 'updateSchema',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('Schema', 'deleteSchema', 'schema', args.where, 'DeleteSchemaInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'Schema',
68
+ fieldName: 'deleteSchema',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }
@@ -0,0 +1,73 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateDocument, buildDeleteDocument, } from '../query-builder';
2
+ // ============================================================================
3
+ // Model Class
4
+ // ============================================================================
5
+ export class SchemaGrantModel {
6
+ client;
7
+ constructor(client) {
8
+ this.client = client;
9
+ }
10
+ findMany(args) {
11
+ const { document, variables } = buildFindManyDocument('SchemaGrant', 'schemaGrants', args?.select, {
12
+ where: args?.where,
13
+ orderBy: args?.orderBy,
14
+ first: args?.first,
15
+ last: args?.last,
16
+ after: args?.after,
17
+ before: args?.before,
18
+ offset: args?.offset,
19
+ }, 'SchemaGrantFilter', 'SchemaGrantsOrderBy');
20
+ return new QueryBuilder({
21
+ client: this.client,
22
+ operation: 'query',
23
+ operationName: 'SchemaGrant',
24
+ fieldName: 'schemaGrants',
25
+ document,
26
+ variables,
27
+ });
28
+ }
29
+ findFirst(args) {
30
+ const { document, variables } = buildFindFirstDocument('SchemaGrant', 'schemaGrants', args?.select, { where: args?.where }, 'SchemaGrantFilter');
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'SchemaGrant',
35
+ fieldName: 'schemaGrants',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('SchemaGrant', 'createSchemaGrant', 'schemaGrant', args.select, args.data, 'CreateSchemaGrantInput');
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'SchemaGrant',
46
+ fieldName: 'createSchemaGrant',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ update(args) {
52
+ const { document, variables } = buildUpdateDocument('SchemaGrant', 'updateSchemaGrant', 'schemaGrant', args.select, args.where, args.data, 'UpdateSchemaGrantInput');
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'mutation',
56
+ operationName: 'SchemaGrant',
57
+ fieldName: 'updateSchemaGrant',
58
+ document,
59
+ variables,
60
+ });
61
+ }
62
+ delete(args) {
63
+ const { document, variables } = buildDeleteDocument('SchemaGrant', 'deleteSchemaGrant', 'schemaGrant', args.where, 'DeleteSchemaGrantInput');
64
+ return new QueryBuilder({
65
+ client: this.client,
66
+ operation: 'mutation',
67
+ operationName: 'SchemaGrant',
68
+ fieldName: 'deleteSchemaGrant',
69
+ document,
70
+ variables,
71
+ });
72
+ }
73
+ }