@constructive-sdk/cli 0.13.4 → 0.14.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 (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 +5 -5
  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
@@ -17,21 +17,22 @@ export { AppLimitDefaultModel } from './appLimitDefault';
17
17
  export { OrgLimitDefaultModel } from './orgLimitDefault';
18
18
  export { OrgAdminGrantModel } from './orgAdminGrant';
19
19
  export { OrgOwnerGrantModel } from './orgOwnerGrant';
20
- export { MembershipTypeModel } from './membershipType';
21
20
  export { AppLimitModel } from './appLimit';
22
21
  export { AppAchievementModel } from './appAchievement';
23
22
  export { AppStepModel } from './appStep';
24
23
  export { AppClaimedInviteModel } from './appClaimedInvite';
25
24
  export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
26
25
  export { OrgLimitModel } from './orgLimit';
26
+ export { MembershipTypeModel } from './membershipType';
27
27
  export { AppGrantModel } from './appGrant';
28
28
  export { AppMembershipDefaultModel } from './appMembershipDefault';
29
29
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
30
30
  export { OrgGrantModel } from './orgGrant';
31
31
  export { OrgChartEdgeModel } from './orgChartEdge';
32
32
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
33
+ export { OrgMemberProfileModel } from './orgMemberProfile';
33
34
  export { AppLevelModel } from './appLevel';
34
35
  export { AppInviteModel } from './appInvite';
36
+ export { OrgInviteModel } from './orgInvite';
35
37
  export { AppMembershipModel } from './appMembership';
36
38
  export { OrgMembershipModel } from './orgMembership';
37
- export { OrgInviteModel } from './orgInvite';
@@ -17,21 +17,22 @@ export { AppLimitDefaultModel } from './appLimitDefault';
17
17
  export { OrgLimitDefaultModel } from './orgLimitDefault';
18
18
  export { OrgAdminGrantModel } from './orgAdminGrant';
19
19
  export { OrgOwnerGrantModel } from './orgOwnerGrant';
20
- export { MembershipTypeModel } from './membershipType';
21
20
  export { AppLimitModel } from './appLimit';
22
21
  export { AppAchievementModel } from './appAchievement';
23
22
  export { AppStepModel } from './appStep';
24
23
  export { AppClaimedInviteModel } from './appClaimedInvite';
25
24
  export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
26
25
  export { OrgLimitModel } from './orgLimit';
26
+ export { MembershipTypeModel } from './membershipType';
27
27
  export { AppGrantModel } from './appGrant';
28
28
  export { AppMembershipDefaultModel } from './appMembershipDefault';
29
29
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
30
30
  export { OrgGrantModel } from './orgGrant';
31
31
  export { OrgChartEdgeModel } from './orgChartEdge';
32
32
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
33
+ export { OrgMemberProfileModel } from './orgMemberProfile';
33
34
  export { AppLevelModel } from './appLevel';
34
35
  export { AppInviteModel } from './appInvite';
36
+ export { OrgInviteModel } from './orgInvite';
35
37
  export { AppMembershipModel } from './appMembership';
36
38
  export { OrgMembershipModel } from './orgMembership';
37
- export { OrgInviteModel } from './orgInvite';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * OrgMemberProfile 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 { OrgMemberProfileWithRelations, OrgMemberProfileSelect, OrgMemberProfileFilter, OrgMemberProfileOrderBy, CreateOrgMemberProfileInput, OrgMemberProfilePatch } from '../input-types';
10
+ export declare class OrgMemberProfileModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgMemberProfileSelect>(args: FindManyArgs<S, OrgMemberProfileFilter, OrgMemberProfileOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgMemberProfileSelect>): QueryBuilder<{
16
+ orgMemberProfiles: ConnectionResult<InferSelectResult<OrgMemberProfileWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgMemberProfileSelect>(args: FindFirstArgs<S, OrgMemberProfileFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgMemberProfileSelect>): QueryBuilder<{
21
+ orgMemberProfiles: {
22
+ nodes: InferSelectResult<OrgMemberProfileWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends OrgMemberProfileSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, OrgMemberProfileSelect>): QueryBuilder<{
29
+ orgMemberProfile: InferSelectResult<OrgMemberProfileWithRelations, S> | null;
30
+ }>;
31
+ create<S extends OrgMemberProfileSelect>(args: CreateArgs<S, CreateOrgMemberProfileInput['orgMemberProfile']> & {
32
+ select: S;
33
+ } & StrictSelect<S, OrgMemberProfileSelect>): QueryBuilder<{
34
+ createOrgMemberProfile: {
35
+ orgMemberProfile: InferSelectResult<OrgMemberProfileWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends OrgMemberProfileSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, OrgMemberProfilePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, OrgMemberProfileSelect>): QueryBuilder<{
43
+ updateOrgMemberProfile: {
44
+ orgMemberProfile: InferSelectResult<OrgMemberProfileWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends OrgMemberProfileSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, OrgMemberProfileSelect>): QueryBuilder<{
52
+ deleteOrgMemberProfile: {
53
+ orgMemberProfile: InferSelectResult<OrgMemberProfileWithRelations, S>;
54
+ };
55
+ }>;
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,8 @@
1
+ /**
2
+ * CLI command for mutation createApiKey
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
6
- console.log('one-time-token - oneTimeToken\n\nUsage: one-time-token [OPTIONS]\n');
6
+ console.log('create-api-key - createApiKey\n\nUsage: create-api-key [OPTIONS]\n');
7
7
  process.exit(0);
8
8
  }
9
9
  const answers = await prompter.prompt(argv, [
@@ -18,14 +18,14 @@ export default async (argv, prompter, _options) => {
18
18
  const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
- .oneTimeToken(parsedAnswers, {
21
+ .createApiKey(parsedAnswers, {
22
22
  select: selectFields,
23
23
  })
24
24
  .execute();
25
25
  console.log(JSON.stringify(result, null, 2));
26
26
  }
27
27
  catch (error) {
28
- console.error('Failed: oneTimeToken');
28
+ console.error('Failed: createApiKey');
29
29
  if (error instanceof Error) {
30
30
  console.error(error.message);
31
31
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation disconnectAccount
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
6
- console.log('sign-in-one-time-token - signInOneTimeToken\n\nUsage: sign-in-one-time-token [OPTIONS]\n');
6
+ console.log('disconnect-account - disconnectAccount\n\nUsage: disconnect-account [OPTIONS]\n');
7
7
  process.exit(0);
8
8
  }
9
9
  const answers = await prompter.prompt(argv, [
@@ -18,14 +18,14 @@ export default async (argv, prompter, _options) => {
18
18
  const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
- .signInOneTimeToken(parsedAnswers, {
21
+ .disconnectAccount(parsedAnswers, {
22
22
  select: selectFields,
23
23
  })
24
24
  .execute();
25
25
  console.log(JSON.stringify(result, null, 2));
26
26
  }
27
27
  catch (error) {
28
- console.error('Failed: signInOneTimeToken');
28
+ console.error('Failed: disconnectAccount');
29
29
  if (error instanceof Error) {
30
30
  console.error(error.message);
31
31
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation provisionNewUser
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
6
- console.log('sign-in-one-time-token - signInOneTimeToken\n\nUsage: sign-in-one-time-token [OPTIONS]\n');
6
+ console.log('provision-new-user - provisionNewUser\n\nUsage: provision-new-user [OPTIONS]\n');
7
7
  process.exit(0);
8
8
  }
9
9
  const answers = await prompter.prompt(argv, [
@@ -18,14 +18,14 @@ export default async (argv, prompter, _options) => {
18
18
  const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
- .signInOneTimeToken(parsedAnswers, {
21
+ .provisionNewUser(parsedAnswers, {
22
22
  select: selectFields,
23
23
  })
24
24
  .execute();
25
25
  console.log(JSON.stringify(result, null, 2));
26
26
  }
27
27
  catch (error) {
28
- console.error('Failed: signInOneTimeToken');
28
+ console.error('Failed: provisionNewUser');
29
29
  if (error instanceof Error) {
30
30
  console.error(error.message);
31
31
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation requestCrossOriginToken
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('request-cross-origin-token - requestCrossOriginToken\n\nUsage: request-cross-origin-token [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .requestCrossOriginToken(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: requestCrossOriginToken');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for query requireStepUp
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { getClient } from '../executor';
2
+ export default async (argv, prompter, _options) => {
3
+ try {
4
+ if (argv.help || argv.h) {
5
+ console.log('require-step-up - requireStepUp\n\nUsage: require-step-up [OPTIONS]\n');
6
+ process.exit(0);
7
+ }
8
+ const answers = await prompter.prompt(argv, [
9
+ {
10
+ type: 'text',
11
+ name: 'stepUpType',
12
+ message: 'stepUpType',
13
+ },
14
+ ]);
15
+ const client = getClient();
16
+ const result = await client.query
17
+ .requireStepUp(answers)
18
+ .execute();
19
+ console.log(JSON.stringify(result, null, 2));
20
+ }
21
+ catch (error) {
22
+ console.error('Failed: requireStepUp');
23
+ if (error instanceof Error) {
24
+ console.error(error.message);
25
+ }
26
+ process.exit(1);
27
+ }
28
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation revokeApiKey
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -3,7 +3,7 @@ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
6
- console.log('one-time-token - oneTimeToken\n\nUsage: one-time-token [OPTIONS]\n');
6
+ console.log('revoke-api-key - revokeApiKey\n\nUsage: revoke-api-key [OPTIONS]\n');
7
7
  process.exit(0);
8
8
  }
9
9
  const answers = await prompter.prompt(argv, [
@@ -18,14 +18,14 @@ export default async (argv, prompter, _options) => {
18
18
  const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
- .oneTimeToken(parsedAnswers, {
21
+ .revokeApiKey(parsedAnswers, {
22
22
  select: selectFields,
23
23
  })
24
24
  .execute();
25
25
  console.log(JSON.stringify(result, null, 2));
26
26
  }
27
27
  catch (error) {
28
- console.error('Failed: oneTimeToken');
28
+ console.error('Failed: revokeApiKey');
29
29
  if (error instanceof Error) {
30
30
  console.error(error.message);
31
31
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation revokeSession
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('revoke-session - revokeSession\n\nUsage: revoke-session [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .revokeSession(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: revokeSession');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation signInCrossOrigin
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('sign-in-cross-origin - signInCrossOrigin\n\nUsage: sign-in-cross-origin [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .signInCrossOrigin(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: signInCrossOrigin');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for UserConnectedAccount
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;