@constructive-sdk/cli 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/admin/cli/commands/app-membership.js +22 -0
  2. package/admin/cli/commands/membership-type.js +44 -0
  3. package/{auth/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
  4. package/admin/cli/commands/org-member-profile.js +392 -0
  5. package/admin/cli/commands/org-membership.js +44 -0
  6. package/admin/cli/commands.js +7 -5
  7. package/admin/cli/executor.d.ts +3 -2
  8. package/admin/orm/index.d.ts +6 -4
  9. package/admin/orm/index.js +6 -4
  10. package/admin/orm/input-types.d.ts +503 -295
  11. package/admin/orm/models/index.d.ts +3 -2
  12. package/admin/orm/models/index.js +7 -5
  13. package/admin/orm/models/orgMemberProfile.d.ts +56 -0
  14. package/{auth/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +26 -26
  15. package/{esm/auth/cli/commands/one-time-token.d.ts → auth/cli/commands/create-api-key.d.ts} +1 -1
  16. package/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
  17. package/auth/cli/commands/disconnect-account.d.ts +8 -0
  18. package/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
  19. package/auth/cli/commands/provision-new-user.d.ts +8 -0
  20. package/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
  21. package/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
  22. package/auth/cli/commands/request-cross-origin-token.js +36 -0
  23. package/auth/cli/commands/require-step-up.d.ts +8 -0
  24. package/auth/cli/commands/require-step-up.js +30 -0
  25. package/auth/cli/commands/{one-time-token.d.ts → revoke-api-key.d.ts} +1 -1
  26. package/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
  27. package/auth/cli/commands/revoke-session.d.ts +8 -0
  28. package/auth/cli/commands/revoke-session.js +36 -0
  29. package/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
  30. package/auth/cli/commands/sign-in-cross-origin.js +36 -0
  31. package/auth/cli/commands/user-connected-account.d.ts +8 -0
  32. package/auth/cli/commands/user-connected-account.js +176 -0
  33. package/auth/cli/commands.js +23 -11
  34. package/auth/cli/executor.d.ts +44 -14
  35. package/auth/orm/index.d.ts +45 -15
  36. package/auth/orm/index.js +2 -2
  37. package/auth/orm/input-types.d.ts +186 -251
  38. package/auth/orm/input-types.js +0 -1
  39. package/auth/orm/models/index.d.ts +1 -1
  40. package/auth/orm/models/index.js +3 -3
  41. package/auth/orm/models/userConnectedAccount.d.ts +38 -0
  42. package/auth/orm/models/userConnectedAccount.js +76 -0
  43. package/auth/orm/mutation/index.d.ts +56 -16
  44. package/auth/orm/mutation/index.js +78 -18
  45. package/auth/orm/query/index.d.ts +12 -4
  46. package/auth/orm/query/index.js +19 -7
  47. package/esm/admin/cli/commands/app-membership.js +22 -0
  48. package/esm/admin/cli/commands/membership-type.js +44 -0
  49. package/esm/{public/cli/commands/connected-account.d.ts → admin/cli/commands/org-member-profile.d.ts} +1 -1
  50. package/esm/admin/cli/commands/org-member-profile.js +390 -0
  51. package/esm/admin/cli/commands/org-membership.js +44 -0
  52. package/esm/admin/cli/commands.js +7 -5
  53. package/esm/admin/cli/executor.d.ts +3 -2
  54. package/esm/admin/orm/index.d.ts +6 -4
  55. package/esm/admin/orm/index.js +6 -4
  56. package/esm/admin/orm/input-types.d.ts +503 -295
  57. package/esm/admin/orm/models/index.d.ts +3 -2
  58. package/esm/admin/orm/models/index.js +3 -2
  59. package/esm/admin/orm/models/orgMemberProfile.d.ts +56 -0
  60. package/esm/{public/orm/models/connectedAccount.js → admin/orm/models/orgMemberProfile.js} +24 -24
  61. package/esm/auth/cli/commands/create-api-key.d.ts +8 -0
  62. package/esm/{public/cli/commands/one-time-token.js → auth/cli/commands/create-api-key.js} +3 -3
  63. package/esm/auth/cli/commands/disconnect-account.d.ts +8 -0
  64. package/esm/auth/cli/commands/{sign-in-one-time-token.js → disconnect-account.js} +3 -3
  65. package/esm/auth/cli/commands/provision-new-user.d.ts +8 -0
  66. package/esm/{public/cli/commands/sign-in-one-time-token.js → auth/cli/commands/provision-new-user.js} +3 -3
  67. package/esm/auth/cli/commands/request-cross-origin-token.d.ts +8 -0
  68. package/esm/auth/cli/commands/request-cross-origin-token.js +34 -0
  69. package/esm/auth/cli/commands/require-step-up.d.ts +8 -0
  70. package/esm/auth/cli/commands/require-step-up.js +28 -0
  71. package/esm/auth/cli/commands/revoke-api-key.d.ts +8 -0
  72. package/esm/auth/cli/commands/{one-time-token.js → revoke-api-key.js} +3 -3
  73. package/esm/auth/cli/commands/revoke-session.d.ts +8 -0
  74. package/esm/auth/cli/commands/revoke-session.js +34 -0
  75. package/esm/auth/cli/commands/sign-in-cross-origin.d.ts +8 -0
  76. package/esm/auth/cli/commands/sign-in-cross-origin.js +34 -0
  77. package/esm/auth/cli/commands/user-connected-account.d.ts +8 -0
  78. package/esm/auth/cli/commands/user-connected-account.js +174 -0
  79. package/esm/auth/cli/commands.js +23 -11
  80. package/esm/auth/cli/executor.d.ts +44 -14
  81. package/esm/auth/orm/index.d.ts +45 -15
  82. package/esm/auth/orm/index.js +2 -2
  83. package/esm/auth/orm/input-types.d.ts +186 -251
  84. package/esm/auth/orm/input-types.js +0 -1
  85. package/esm/auth/orm/models/index.d.ts +1 -1
  86. package/esm/auth/orm/models/index.js +1 -1
  87. package/esm/auth/orm/models/userConnectedAccount.d.ts +38 -0
  88. package/esm/auth/orm/models/userConnectedAccount.js +72 -0
  89. package/esm/auth/orm/mutation/index.d.ts +56 -16
  90. package/esm/auth/orm/mutation/index.js +78 -18
  91. package/esm/auth/orm/query/index.d.ts +12 -4
  92. package/esm/auth/orm/query/index.js +19 -7
  93. package/esm/public/cli/commands/app-membership.js +22 -0
  94. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  95. package/esm/public/cli/commands/create-api-key.d.ts +8 -0
  96. package/esm/public/cli/commands/create-api-key.js +34 -0
  97. package/{public/cli/commands/connected-account.d.ts → esm/public/cli/commands/devices-module.d.ts} +1 -1
  98. package/esm/public/cli/commands/{connected-account.js → devices-module.js} +101 -87
  99. package/esm/public/cli/commands/disconnect-account.d.ts +8 -0
  100. package/esm/public/cli/commands/disconnect-account.js +34 -0
  101. package/esm/public/cli/commands/{table-template-module.d.ts → entity-type-provision.d.ts} +1 -1
  102. package/esm/public/cli/commands/entity-type-provision.js +554 -0
  103. package/esm/public/cli/commands/membership-type.js +44 -0
  104. package/esm/public/cli/commands/memberships-module.js +22 -0
  105. package/esm/{auth/cli/commands/connected-account.d.ts → public/cli/commands/org-member-profile.d.ts} +1 -1
  106. package/esm/public/cli/commands/org-member-profile.js +390 -0
  107. package/esm/public/cli/commands/org-membership.js +44 -0
  108. package/esm/public/cli/commands/provision-new-user.d.ts +8 -0
  109. package/esm/public/cli/commands/provision-new-user.js +34 -0
  110. package/esm/public/cli/commands/provision-spatial-relation.d.ts +8 -0
  111. package/esm/public/cli/commands/provision-spatial-relation.js +34 -0
  112. package/esm/public/cli/commands/request-cross-origin-token.d.ts +8 -0
  113. package/esm/public/cli/commands/request-cross-origin-token.js +34 -0
  114. package/esm/public/cli/commands/require-step-up.d.ts +8 -0
  115. package/esm/public/cli/commands/require-step-up.js +28 -0
  116. package/{auth/cli/commands/sign-in-one-time-token.d.ts → esm/public/cli/commands/resolve-blueprint-field.d.ts} +1 -1
  117. package/esm/public/cli/commands/resolve-blueprint-field.js +38 -0
  118. package/esm/public/cli/commands/revoke-api-key.d.ts +8 -0
  119. package/esm/public/cli/commands/revoke-api-key.js +34 -0
  120. package/esm/public/cli/commands/revoke-session.d.ts +8 -0
  121. package/esm/public/cli/commands/revoke-session.js +34 -0
  122. package/esm/public/cli/commands/session-secrets-module.d.ts +8 -0
  123. package/esm/{auth/cli/commands/connected-account.js → public/cli/commands/session-secrets-module.js} +82 -90
  124. package/esm/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
  125. package/esm/public/cli/commands/sign-in-cross-origin.js +34 -0
  126. package/esm/public/cli/commands/spatial-relation.d.ts +8 -0
  127. package/esm/public/cli/commands/spatial-relation.js +472 -0
  128. package/esm/public/cli/commands/user-auth-module.js +24 -24
  129. package/esm/public/cli/commands/user-connected-account.d.ts +8 -0
  130. package/esm/public/cli/commands/user-connected-account.js +174 -0
  131. package/esm/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
  132. package/esm/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
  133. package/esm/public/cli/commands.js +41 -15
  134. package/esm/public/cli/executor.d.ts +61 -16
  135. package/esm/public/orm/index.d.ts +69 -19
  136. package/esm/public/orm/index.js +16 -6
  137. package/esm/public/orm/input-types.d.ts +2047 -640
  138. package/esm/public/orm/input-types.js +15 -6
  139. package/esm/public/orm/models/devicesModule.d.ts +56 -0
  140. package/esm/public/orm/models/devicesModule.js +96 -0
  141. package/esm/public/orm/models/entityTypeProvision.d.ts +56 -0
  142. package/esm/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +24 -24
  143. package/esm/public/orm/models/index.d.ts +8 -3
  144. package/esm/public/orm/models/index.js +8 -3
  145. package/esm/public/orm/models/orgMemberProfile.d.ts +56 -0
  146. package/esm/{auth/orm/models/connectedAccount.js → public/orm/models/orgMemberProfile.js} +24 -24
  147. package/esm/public/orm/models/sessionSecretsModule.d.ts +56 -0
  148. package/esm/public/orm/models/sessionSecretsModule.js +96 -0
  149. package/esm/public/orm/models/spatialRelation.d.ts +56 -0
  150. package/esm/public/orm/models/spatialRelation.js +96 -0
  151. package/esm/public/orm/models/userConnectedAccount.d.ts +38 -0
  152. package/esm/public/orm/models/userConnectedAccount.js +72 -0
  153. package/esm/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
  154. package/esm/public/orm/models/webauthnCredentialsModule.js +96 -0
  155. package/esm/public/orm/mutation/index.d.ts +72 -20
  156. package/esm/public/orm/mutation/index.js +96 -24
  157. package/esm/public/orm/query/index.d.ts +24 -2
  158. package/esm/public/orm/query/index.js +36 -4
  159. package/package.json +3 -3
  160. package/public/cli/commands/app-membership.js +22 -0
  161. package/public/cli/commands/construct-blueprint.js +1 -1
  162. package/public/cli/commands/create-api-key.d.ts +8 -0
  163. package/public/cli/commands/create-api-key.js +36 -0
  164. package/public/cli/commands/devices-module.d.ts +8 -0
  165. package/{auth/cli/commands/connected-account.js → public/cli/commands/devices-module.js} +101 -87
  166. package/public/cli/commands/disconnect-account.d.ts +8 -0
  167. package/public/cli/commands/disconnect-account.js +36 -0
  168. package/public/cli/commands/entity-type-provision.d.ts +8 -0
  169. package/public/cli/commands/entity-type-provision.js +556 -0
  170. package/public/cli/commands/membership-type.js +44 -0
  171. package/public/cli/commands/memberships-module.js +22 -0
  172. package/public/cli/commands/org-member-profile.d.ts +8 -0
  173. package/public/cli/commands/org-member-profile.js +392 -0
  174. package/public/cli/commands/org-membership.js +44 -0
  175. package/public/cli/commands/provision-new-user.d.ts +8 -0
  176. package/public/cli/commands/provision-new-user.js +36 -0
  177. package/public/cli/commands/provision-spatial-relation.d.ts +8 -0
  178. package/public/cli/commands/provision-spatial-relation.js +36 -0
  179. package/public/cli/commands/request-cross-origin-token.d.ts +8 -0
  180. package/public/cli/commands/request-cross-origin-token.js +36 -0
  181. package/public/cli/commands/require-step-up.d.ts +8 -0
  182. package/public/cli/commands/require-step-up.js +30 -0
  183. package/public/cli/commands/resolve-blueprint-field.d.ts +8 -0
  184. package/public/cli/commands/resolve-blueprint-field.js +40 -0
  185. package/public/cli/commands/revoke-api-key.d.ts +8 -0
  186. package/public/cli/commands/revoke-api-key.js +36 -0
  187. package/public/cli/commands/revoke-session.d.ts +8 -0
  188. package/public/cli/commands/revoke-session.js +36 -0
  189. package/public/cli/commands/session-secrets-module.d.ts +8 -0
  190. package/public/cli/commands/{connected-account.js → session-secrets-module.js} +82 -90
  191. package/public/cli/commands/sign-in-cross-origin.d.ts +8 -0
  192. package/public/cli/commands/sign-in-cross-origin.js +36 -0
  193. package/public/cli/commands/spatial-relation.d.ts +8 -0
  194. package/public/cli/commands/spatial-relation.js +474 -0
  195. package/public/cli/commands/user-auth-module.js +24 -24
  196. package/public/cli/commands/user-connected-account.d.ts +8 -0
  197. package/public/cli/commands/user-connected-account.js +176 -0
  198. package/public/cli/commands/webauthn-credentials-module.d.ts +8 -0
  199. package/public/cli/commands/{table-template-module.js → webauthn-credentials-module.js} +8 -48
  200. package/public/cli/commands.js +41 -15
  201. package/public/cli/executor.d.ts +61 -16
  202. package/public/orm/index.d.ts +69 -19
  203. package/public/orm/index.js +16 -6
  204. package/public/orm/input-types.d.ts +2047 -640
  205. package/public/orm/input-types.js +15 -6
  206. package/public/orm/models/devicesModule.d.ts +56 -0
  207. package/public/orm/models/devicesModule.js +100 -0
  208. package/public/orm/models/entityTypeProvision.d.ts +56 -0
  209. package/public/orm/models/{tableTemplateModule.js → entityTypeProvision.js} +26 -26
  210. package/public/orm/models/index.d.ts +8 -3
  211. package/public/orm/models/index.js +19 -9
  212. package/public/orm/models/orgMemberProfile.d.ts +56 -0
  213. package/public/orm/models/{connectedAccount.js → orgMemberProfile.js} +26 -26
  214. package/public/orm/models/sessionSecretsModule.d.ts +56 -0
  215. package/public/orm/models/sessionSecretsModule.js +100 -0
  216. package/public/orm/models/spatialRelation.d.ts +56 -0
  217. package/public/orm/models/spatialRelation.js +100 -0
  218. package/public/orm/models/userConnectedAccount.d.ts +38 -0
  219. package/public/orm/models/userConnectedAccount.js +76 -0
  220. package/public/orm/models/webauthnCredentialsModule.d.ts +56 -0
  221. package/public/orm/models/webauthnCredentialsModule.js +100 -0
  222. package/public/orm/mutation/index.d.ts +72 -20
  223. package/public/orm/mutation/index.js +96 -24
  224. package/public/orm/query/index.d.ts +24 -2
  225. package/public/orm/query/index.js +36 -4
  226. package/auth/orm/models/connectedAccount.d.ts +0 -56
  227. package/esm/auth/cli/commands/sign-in-one-time-token.d.ts +0 -8
  228. package/esm/auth/orm/models/connectedAccount.d.ts +0 -56
  229. package/esm/public/cli/commands/one-time-token.d.ts +0 -8
  230. package/esm/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
  231. package/esm/public/orm/models/connectedAccount.d.ts +0 -56
  232. package/esm/public/orm/models/tableTemplateModule.d.ts +0 -56
  233. package/public/cli/commands/one-time-token.d.ts +0 -8
  234. package/public/cli/commands/sign-in-one-time-token.d.ts +0 -8
  235. package/public/cli/commands/table-template-module.d.ts +0 -8
  236. package/public/orm/models/connectedAccount.d.ts +0 -56
  237. package/public/orm/models/tableTemplateModule.d.ts +0 -56
@@ -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 ConnectedAccountModel {
3
+ export class OrgMemberProfileModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument('ConnectedAccount', 'connectedAccounts', args.select, {
9
+ const { document, variables } = buildFindManyDocument('OrgMemberProfile', 'orgMemberProfiles', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
@@ -14,81 +14,81 @@ export class ConnectedAccountModel {
14
14
  after: args?.after,
15
15
  before: args?.before,
16
16
  offset: args?.offset,
17
- }, 'ConnectedAccountFilter', 'ConnectedAccountOrderBy', connectionFieldsMap);
17
+ }, 'OrgMemberProfileFilter', 'OrgMemberProfileOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
20
  operation: 'query',
21
- operationName: 'ConnectedAccount',
22
- fieldName: 'connectedAccounts',
21
+ operationName: 'OrgMemberProfile',
22
+ fieldName: 'orgMemberProfiles',
23
23
  document,
24
24
  variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('ConnectedAccount', 'connectedAccounts', args.select, {
28
+ const { document, variables } = buildFindFirstDocument('OrgMemberProfile', 'orgMemberProfiles', args.select, {
29
29
  where: args?.where,
30
- }, 'ConnectedAccountFilter', connectionFieldsMap);
30
+ }, 'OrgMemberProfileFilter', connectionFieldsMap);
31
31
  return new QueryBuilder({
32
32
  client: this.client,
33
33
  operation: 'query',
34
- operationName: 'ConnectedAccount',
35
- fieldName: 'connectedAccounts',
34
+ operationName: 'OrgMemberProfile',
35
+ fieldName: 'orgMemberProfiles',
36
36
  document,
37
37
  variables,
38
38
  });
39
39
  }
40
40
  findOne(args) {
41
- const { document, variables } = buildFindManyDocument('ConnectedAccount', 'connectedAccounts', args.select, {
41
+ const { document, variables } = buildFindManyDocument('OrgMemberProfile', 'orgMemberProfiles', args.select, {
42
42
  where: {
43
43
  id: {
44
44
  equalTo: args.id,
45
45
  },
46
46
  },
47
47
  first: 1,
48
- }, 'ConnectedAccountFilter', 'ConnectedAccountOrderBy', connectionFieldsMap);
48
+ }, 'OrgMemberProfileFilter', 'OrgMemberProfileOrderBy', connectionFieldsMap);
49
49
  return new QueryBuilder({
50
50
  client: this.client,
51
51
  operation: 'query',
52
- operationName: 'ConnectedAccount',
53
- fieldName: 'connectedAccount',
52
+ operationName: 'OrgMemberProfile',
53
+ fieldName: 'orgMemberProfile',
54
54
  document,
55
55
  variables,
56
56
  transform: (data) => ({
57
- connectedAccount: data.connectedAccounts?.nodes?.[0] ?? null,
57
+ orgMemberProfile: data.orgMemberProfiles?.nodes?.[0] ?? null,
58
58
  }),
59
59
  });
60
60
  }
61
61
  create(args) {
62
- const { document, variables } = buildCreateDocument('ConnectedAccount', 'createConnectedAccount', 'connectedAccount', args.select, args.data, 'CreateConnectedAccountInput', connectionFieldsMap);
62
+ const { document, variables } = buildCreateDocument('OrgMemberProfile', 'createOrgMemberProfile', 'orgMemberProfile', args.select, args.data, 'CreateOrgMemberProfileInput', connectionFieldsMap);
63
63
  return new QueryBuilder({
64
64
  client: this.client,
65
65
  operation: 'mutation',
66
- operationName: 'ConnectedAccount',
67
- fieldName: 'createConnectedAccount',
66
+ operationName: 'OrgMemberProfile',
67
+ fieldName: 'createOrgMemberProfile',
68
68
  document,
69
69
  variables,
70
70
  });
71
71
  }
72
72
  update(args) {
73
- const { document, variables } = buildUpdateByPkDocument('ConnectedAccount', 'updateConnectedAccount', 'connectedAccount', args.select, args.where.id, args.data, 'UpdateConnectedAccountInput', 'id', 'connectedAccountPatch', connectionFieldsMap);
73
+ const { document, variables } = buildUpdateByPkDocument('OrgMemberProfile', 'updateOrgMemberProfile', 'orgMemberProfile', args.select, args.where.id, args.data, 'UpdateOrgMemberProfileInput', 'id', 'orgMemberProfilePatch', connectionFieldsMap);
74
74
  return new QueryBuilder({
75
75
  client: this.client,
76
76
  operation: 'mutation',
77
- operationName: 'ConnectedAccount',
78
- fieldName: 'updateConnectedAccount',
77
+ operationName: 'OrgMemberProfile',
78
+ fieldName: 'updateOrgMemberProfile',
79
79
  document,
80
80
  variables,
81
81
  });
82
82
  }
83
83
  delete(args) {
84
- const { document, variables } = buildDeleteByPkDocument('ConnectedAccount', 'deleteConnectedAccount', 'connectedAccount', {
84
+ const { document, variables } = buildDeleteByPkDocument('OrgMemberProfile', 'deleteOrgMemberProfile', 'orgMemberProfile', {
85
85
  id: args.where.id,
86
- }, 'DeleteConnectedAccountInput', args.select, connectionFieldsMap);
86
+ }, 'DeleteOrgMemberProfileInput', args.select, connectionFieldsMap);
87
87
  return new QueryBuilder({
88
88
  client: this.client,
89
89
  operation: 'mutation',
90
- operationName: 'ConnectedAccount',
91
- fieldName: 'deleteConnectedAccount',
90
+ operationName: 'OrgMemberProfile',
91
+ fieldName: 'deleteOrgMemberProfile',
92
92
  document,
93
93
  variables,
94
94
  });
@@ -0,0 +1,56 @@
1
+ /**
2
+ * SessionSecretsModule 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 { SessionSecretsModuleWithRelations, SessionSecretsModuleSelect, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy, CreateSessionSecretsModuleInput, SessionSecretsModulePatch } from '../input-types';
10
+ export declare class SessionSecretsModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends SessionSecretsModuleSelect>(args: FindManyArgs<S, SessionSecretsModuleFilter, SessionSecretsModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
16
+ sessionSecretsModules: ConnectionResult<InferSelectResult<SessionSecretsModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends SessionSecretsModuleSelect>(args: FindFirstArgs<S, SessionSecretsModuleFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
21
+ sessionSecretsModules: {
22
+ nodes: InferSelectResult<SessionSecretsModuleWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends SessionSecretsModuleSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
29
+ sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S> | null;
30
+ }>;
31
+ create<S extends SessionSecretsModuleSelect>(args: CreateArgs<S, CreateSessionSecretsModuleInput['sessionSecretsModule']> & {
32
+ select: S;
33
+ } & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
34
+ createSessionSecretsModule: {
35
+ sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends SessionSecretsModuleSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, SessionSecretsModulePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
43
+ updateSessionSecretsModule: {
44
+ sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends SessionSecretsModuleSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, SessionSecretsModuleSelect>): QueryBuilder<{
52
+ deleteSessionSecretsModule: {
53
+ sessionSecretsModule: InferSelectResult<SessionSecretsModuleWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,96 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class SessionSecretsModuleModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('SessionSecretsModule', 'sessionSecretsModules', 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
+ }, 'SessionSecretsModuleFilter', 'SessionSecretsModuleOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'SessionSecretsModule',
22
+ fieldName: 'sessionSecretsModules',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('SessionSecretsModule', 'sessionSecretsModules', args.select, {
29
+ where: args?.where,
30
+ }, 'SessionSecretsModuleFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'SessionSecretsModule',
35
+ fieldName: 'sessionSecretsModules',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('SessionSecretsModule', 'sessionSecretsModules', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'SessionSecretsModuleFilter', 'SessionSecretsModuleOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'SessionSecretsModule',
53
+ fieldName: 'sessionSecretsModule',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ sessionSecretsModule: data.sessionSecretsModules?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('SessionSecretsModule', 'createSessionSecretsModule', 'sessionSecretsModule', args.select, args.data, 'CreateSessionSecretsModuleInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'SessionSecretsModule',
67
+ fieldName: 'createSessionSecretsModule',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('SessionSecretsModule', 'updateSessionSecretsModule', 'sessionSecretsModule', args.select, args.where.id, args.data, 'UpdateSessionSecretsModuleInput', 'id', 'sessionSecretsModulePatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'SessionSecretsModule',
78
+ fieldName: 'updateSessionSecretsModule',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('SessionSecretsModule', 'deleteSessionSecretsModule', 'sessionSecretsModule', {
85
+ id: args.where.id,
86
+ }, 'DeleteSessionSecretsModuleInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'SessionSecretsModule',
91
+ fieldName: 'deleteSessionSecretsModule',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * SpatialRelation 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 { SpatialRelationWithRelations, SpatialRelationSelect, SpatialRelationFilter, SpatialRelationOrderBy, CreateSpatialRelationInput, SpatialRelationPatch } from '../input-types';
10
+ export declare class SpatialRelationModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends SpatialRelationSelect>(args: FindManyArgs<S, SpatialRelationFilter, SpatialRelationOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
16
+ spatialRelations: ConnectionResult<InferSelectResult<SpatialRelationWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends SpatialRelationSelect>(args: FindFirstArgs<S, SpatialRelationFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
21
+ spatialRelations: {
22
+ nodes: InferSelectResult<SpatialRelationWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends SpatialRelationSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
29
+ spatialRelation: InferSelectResult<SpatialRelationWithRelations, S> | null;
30
+ }>;
31
+ create<S extends SpatialRelationSelect>(args: CreateArgs<S, CreateSpatialRelationInput['spatialRelation']> & {
32
+ select: S;
33
+ } & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
34
+ createSpatialRelation: {
35
+ spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends SpatialRelationSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, SpatialRelationPatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
43
+ updateSpatialRelation: {
44
+ spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends SpatialRelationSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, SpatialRelationSelect>): QueryBuilder<{
52
+ deleteSpatialRelation: {
53
+ spatialRelation: InferSelectResult<SpatialRelationWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,96 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class SpatialRelationModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('SpatialRelation', 'spatialRelations', 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
+ }, 'SpatialRelationFilter', 'SpatialRelationOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'SpatialRelation',
22
+ fieldName: 'spatialRelations',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('SpatialRelation', 'spatialRelations', args.select, {
29
+ where: args?.where,
30
+ }, 'SpatialRelationFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'SpatialRelation',
35
+ fieldName: 'spatialRelations',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('SpatialRelation', 'spatialRelations', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'SpatialRelationFilter', 'SpatialRelationOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'SpatialRelation',
53
+ fieldName: 'spatialRelation',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ spatialRelation: data.spatialRelations?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('SpatialRelation', 'createSpatialRelation', 'spatialRelation', args.select, args.data, 'CreateSpatialRelationInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'SpatialRelation',
67
+ fieldName: 'createSpatialRelation',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('SpatialRelation', 'updateSpatialRelation', 'spatialRelation', args.select, args.where.id, args.data, 'UpdateSpatialRelationInput', 'id', 'spatialRelationPatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'SpatialRelation',
78
+ fieldName: 'updateSpatialRelation',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('SpatialRelation', 'deleteSpatialRelation', 'spatialRelation', {
85
+ id: args.where.id,
86
+ }, 'DeleteSpatialRelationInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'SpatialRelation',
91
+ fieldName: 'deleteSpatialRelation',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * UserConnectedAccount 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, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { UserConnectedAccountWithRelations, UserConnectedAccountSelect, UserConnectedAccountFilter, UserConnectedAccountOrderBy, CreateUserConnectedAccountInput } from '../input-types';
10
+ export declare class UserConnectedAccountModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends UserConnectedAccountSelect>(args: FindManyArgs<S, UserConnectedAccountFilter, UserConnectedAccountOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
16
+ userConnectedAccounts: ConnectionResult<InferSelectResult<UserConnectedAccountWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends UserConnectedAccountSelect>(args: FindFirstArgs<S, UserConnectedAccountFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
21
+ userConnectedAccounts: {
22
+ nodes: InferSelectResult<UserConnectedAccountWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends UserConnectedAccountSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
29
+ userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S> | null;
30
+ }>;
31
+ create<S extends UserConnectedAccountSelect>(args: CreateArgs<S, CreateUserConnectedAccountInput['userConnectedAccount']> & {
32
+ select: S;
33
+ } & StrictSelect<S, UserConnectedAccountSelect>): QueryBuilder<{
34
+ createUserConnectedAccount: {
35
+ userConnectedAccount: InferSelectResult<UserConnectedAccountWithRelations, S>;
36
+ };
37
+ }>;
38
+ }
@@ -0,0 +1,72 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class UserConnectedAccountModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('UserConnectedAccount', 'userConnectedAccounts', 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
+ }, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'UserConnectedAccount',
22
+ fieldName: 'userConnectedAccounts',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('UserConnectedAccount', 'userConnectedAccounts', args.select, {
29
+ where: args?.where,
30
+ }, 'UserConnectedAccountFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'UserConnectedAccount',
35
+ fieldName: 'userConnectedAccounts',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('UserConnectedAccount', 'userConnectedAccounts', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'UserConnectedAccountFilter', 'UserConnectedAccountOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'UserConnectedAccount',
53
+ fieldName: 'userConnectedAccount',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ userConnectedAccount: data.userConnectedAccounts?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('UserConnectedAccount', 'createUserConnectedAccount', 'userConnectedAccount', args.select, args.data, 'CreateUserConnectedAccountInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'UserConnectedAccount',
67
+ fieldName: 'createUserConnectedAccount',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * WebauthnCredentialsModule 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 { WebauthnCredentialsModuleWithRelations, WebauthnCredentialsModuleSelect, WebauthnCredentialsModuleFilter, WebauthnCredentialsModuleOrderBy, CreateWebauthnCredentialsModuleInput, WebauthnCredentialsModulePatch } from '../input-types';
10
+ export declare class WebauthnCredentialsModuleModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends WebauthnCredentialsModuleSelect>(args: FindManyArgs<S, WebauthnCredentialsModuleFilter, WebauthnCredentialsModuleOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
16
+ webauthnCredentialsModules: ConnectionResult<InferSelectResult<WebauthnCredentialsModuleWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends WebauthnCredentialsModuleSelect>(args: FindFirstArgs<S, WebauthnCredentialsModuleFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
21
+ webauthnCredentialsModules: {
22
+ nodes: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends WebauthnCredentialsModuleSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
29
+ webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S> | null;
30
+ }>;
31
+ create<S extends WebauthnCredentialsModuleSelect>(args: CreateArgs<S, CreateWebauthnCredentialsModuleInput['webauthnCredentialsModule']> & {
32
+ select: S;
33
+ } & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
34
+ createWebauthnCredentialsModule: {
35
+ webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends WebauthnCredentialsModuleSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, WebauthnCredentialsModulePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
43
+ updateWebauthnCredentialsModule: {
44
+ webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends WebauthnCredentialsModuleSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, WebauthnCredentialsModuleSelect>): QueryBuilder<{
52
+ deleteWebauthnCredentialsModule: {
53
+ webauthnCredentialsModule: InferSelectResult<WebauthnCredentialsModuleWithRelations, S>;
54
+ };
55
+ }>;
56
+ }