@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,5 +1,5 @@
1
1
  /**
2
- * CLI commands for ConnectedAccount
2
+ * CLI commands for DevicesModule
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -8,15 +8,14 @@ import { getClient } from '../executor';
8
8
  import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
9
  const fieldSchema = {
10
10
  id: 'uuid',
11
- ownerId: 'uuid',
12
- service: 'string',
13
- identifier: 'string',
14
- details: 'json',
15
- isVerified: 'boolean',
16
- createdAt: 'string',
17
- updatedAt: 'string',
11
+ databaseId: 'uuid',
12
+ schemaId: 'uuid',
13
+ userDevicesTableId: 'uuid',
14
+ deviceSettingsTableId: 'uuid',
15
+ userDevicesTable: 'string',
16
+ deviceSettingsTable: 'string',
18
17
  };
19
- const usage = '\nconnected-account <command>\n\nCommands:\n list List connectedAccount records\n find-first Find first matching connectedAccount record\n get Get a connectedAccount by ID\n create Create a new connectedAccount\n update Update an existing connectedAccount\n delete Delete a connectedAccount\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
18
+ const usage = '\ndevices-module <command>\n\nCommands:\n list List devicesModule records\n find-first Find first matching devicesModule record\n get Get a devicesModule by ID\n create Create a new devicesModule\n update Update an existing devicesModule\n delete Delete a devicesModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
20
19
  export default async (argv, prompter, _options) => {
21
20
  if (argv.help || argv.h) {
22
21
  console.log(usage);
@@ -59,17 +58,16 @@ async function handleList(argv, _prompter) {
59
58
  try {
60
59
  const defaultSelect = {
61
60
  id: true,
62
- ownerId: true,
63
- service: true,
64
- identifier: true,
65
- details: true,
66
- isVerified: true,
67
- createdAt: true,
68
- updatedAt: true,
61
+ databaseId: true,
62
+ schemaId: true,
63
+ userDevicesTableId: true,
64
+ deviceSettingsTableId: true,
65
+ userDevicesTable: true,
66
+ deviceSettingsTable: true,
69
67
  };
70
68
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
71
69
  const client = getClient();
72
- const result = await client.connectedAccount.findMany(findManyArgs).execute();
70
+ const result = await client.devicesModule.findMany(findManyArgs).execute();
73
71
  console.log(JSON.stringify(result, null, 2));
74
72
  }
75
73
  catch (error) {
@@ -84,17 +82,16 @@ async function handleFindFirst(argv, _prompter) {
84
82
  try {
85
83
  const defaultSelect = {
86
84
  id: true,
87
- ownerId: true,
88
- service: true,
89
- identifier: true,
90
- details: true,
91
- isVerified: true,
92
- createdAt: true,
93
- updatedAt: true,
85
+ databaseId: true,
86
+ schemaId: true,
87
+ userDevicesTableId: true,
88
+ deviceSettingsTableId: true,
89
+ userDevicesTable: true,
90
+ deviceSettingsTable: true,
94
91
  };
95
92
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
96
93
  const client = getClient();
97
- const result = await client.connectedAccount.findFirst(findFirstArgs).execute();
94
+ const result = await client.devicesModule.findFirst(findFirstArgs).execute();
98
95
  console.log(JSON.stringify(result, null, 2));
99
96
  }
100
97
  catch (error) {
@@ -116,18 +113,17 @@ async function handleGet(argv, prompter) {
116
113
  },
117
114
  ]);
118
115
  const client = getClient();
119
- const result = await client.connectedAccount
116
+ const result = await client.devicesModule
120
117
  .findOne({
121
118
  id: answers.id,
122
119
  select: {
123
120
  id: true,
124
- ownerId: true,
125
- service: true,
126
- identifier: true,
127
- details: true,
128
- isVerified: true,
129
- createdAt: true,
130
- updatedAt: true,
121
+ databaseId: true,
122
+ schemaId: true,
123
+ userDevicesTableId: true,
124
+ deviceSettingsTableId: true,
125
+ userDevicesTable: true,
126
+ deviceSettingsTable: true,
131
127
  },
132
128
  })
133
129
  .execute();
@@ -146,33 +142,42 @@ async function handleCreate(argv, prompter) {
146
142
  const rawAnswers = await prompter.prompt(argv, [
147
143
  {
148
144
  type: 'text',
149
- name: 'ownerId',
150
- message: 'ownerId',
145
+ name: 'databaseId',
146
+ message: 'databaseId',
147
+ required: true,
148
+ },
149
+ {
150
+ type: 'text',
151
+ name: 'schemaId',
152
+ message: 'schemaId',
151
153
  required: false,
152
154
  skipPrompt: true,
153
155
  },
154
156
  {
155
157
  type: 'text',
156
- name: 'service',
157
- message: 'service',
158
- required: true,
158
+ name: 'userDevicesTableId',
159
+ message: 'userDevicesTableId',
160
+ required: false,
161
+ skipPrompt: true,
159
162
  },
160
163
  {
161
164
  type: 'text',
162
- name: 'identifier',
163
- message: 'identifier',
164
- required: true,
165
+ name: 'deviceSettingsTableId',
166
+ message: 'deviceSettingsTableId',
167
+ required: false,
168
+ skipPrompt: true,
165
169
  },
166
170
  {
167
- type: 'json',
168
- name: 'details',
169
- message: 'details',
170
- required: true,
171
+ type: 'text',
172
+ name: 'userDevicesTable',
173
+ message: 'userDevicesTable',
174
+ required: false,
175
+ skipPrompt: true,
171
176
  },
172
177
  {
173
- type: 'boolean',
174
- name: 'isVerified',
175
- message: 'isVerified',
178
+ type: 'text',
179
+ name: 'deviceSettingsTable',
180
+ message: 'deviceSettingsTable',
176
181
  required: false,
177
182
  skipPrompt: true,
178
183
  },
@@ -180,24 +185,24 @@ async function handleCreate(argv, prompter) {
180
185
  const answers = coerceAnswers(rawAnswers, fieldSchema);
181
186
  const cleanedData = stripUndefined(answers, fieldSchema);
182
187
  const client = getClient();
183
- const result = await client.connectedAccount
188
+ const result = await client.devicesModule
184
189
  .create({
185
190
  data: {
186
- ownerId: cleanedData.ownerId,
187
- service: cleanedData.service,
188
- identifier: cleanedData.identifier,
189
- details: cleanedData.details,
190
- isVerified: cleanedData.isVerified,
191
+ databaseId: cleanedData.databaseId,
192
+ schemaId: cleanedData.schemaId,
193
+ userDevicesTableId: cleanedData.userDevicesTableId,
194
+ deviceSettingsTableId: cleanedData.deviceSettingsTableId,
195
+ userDevicesTable: cleanedData.userDevicesTable,
196
+ deviceSettingsTable: cleanedData.deviceSettingsTable,
191
197
  },
192
198
  select: {
193
199
  id: true,
194
- ownerId: true,
195
- service: true,
196
- identifier: true,
197
- details: true,
198
- isVerified: true,
199
- createdAt: true,
200
- updatedAt: true,
200
+ databaseId: true,
201
+ schemaId: true,
202
+ userDevicesTableId: true,
203
+ deviceSettingsTableId: true,
204
+ userDevicesTable: true,
205
+ deviceSettingsTable: true,
201
206
  },
202
207
  })
203
208
  .execute();
@@ -222,33 +227,42 @@ async function handleUpdate(argv, prompter) {
222
227
  },
223
228
  {
224
229
  type: 'text',
225
- name: 'ownerId',
226
- message: 'ownerId',
230
+ name: 'databaseId',
231
+ message: 'databaseId',
232
+ required: false,
233
+ },
234
+ {
235
+ type: 'text',
236
+ name: 'schemaId',
237
+ message: 'schemaId',
227
238
  required: false,
228
239
  skipPrompt: true,
229
240
  },
230
241
  {
231
242
  type: 'text',
232
- name: 'service',
233
- message: 'service',
243
+ name: 'userDevicesTableId',
244
+ message: 'userDevicesTableId',
234
245
  required: false,
246
+ skipPrompt: true,
235
247
  },
236
248
  {
237
249
  type: 'text',
238
- name: 'identifier',
239
- message: 'identifier',
250
+ name: 'deviceSettingsTableId',
251
+ message: 'deviceSettingsTableId',
240
252
  required: false,
253
+ skipPrompt: true,
241
254
  },
242
255
  {
243
- type: 'json',
244
- name: 'details',
245
- message: 'details',
256
+ type: 'text',
257
+ name: 'userDevicesTable',
258
+ message: 'userDevicesTable',
246
259
  required: false,
260
+ skipPrompt: true,
247
261
  },
248
262
  {
249
- type: 'boolean',
250
- name: 'isVerified',
251
- message: 'isVerified',
263
+ type: 'text',
264
+ name: 'deviceSettingsTable',
265
+ message: 'deviceSettingsTable',
252
266
  required: false,
253
267
  skipPrompt: true,
254
268
  },
@@ -256,27 +270,27 @@ async function handleUpdate(argv, prompter) {
256
270
  const answers = coerceAnswers(rawAnswers, fieldSchema);
257
271
  const cleanedData = stripUndefined(answers, fieldSchema);
258
272
  const client = getClient();
259
- const result = await client.connectedAccount
273
+ const result = await client.devicesModule
260
274
  .update({
261
275
  where: {
262
276
  id: answers.id,
263
277
  },
264
278
  data: {
265
- ownerId: cleanedData.ownerId,
266
- service: cleanedData.service,
267
- identifier: cleanedData.identifier,
268
- details: cleanedData.details,
269
- isVerified: cleanedData.isVerified,
279
+ databaseId: cleanedData.databaseId,
280
+ schemaId: cleanedData.schemaId,
281
+ userDevicesTableId: cleanedData.userDevicesTableId,
282
+ deviceSettingsTableId: cleanedData.deviceSettingsTableId,
283
+ userDevicesTable: cleanedData.userDevicesTable,
284
+ deviceSettingsTable: cleanedData.deviceSettingsTable,
270
285
  },
271
286
  select: {
272
287
  id: true,
273
- ownerId: true,
274
- service: true,
275
- identifier: true,
276
- details: true,
277
- isVerified: true,
278
- createdAt: true,
279
- updatedAt: true,
288
+ databaseId: true,
289
+ schemaId: true,
290
+ userDevicesTableId: true,
291
+ deviceSettingsTableId: true,
292
+ userDevicesTable: true,
293
+ deviceSettingsTable: true,
280
294
  },
281
295
  })
282
296
  .execute();
@@ -302,7 +316,7 @@ async function handleDelete(argv, prompter) {
302
316
  ]);
303
317
  const answers = coerceAnswers(rawAnswers, fieldSchema);
304
318
  const client = getClient();
305
- const result = await client.connectedAccount
319
+ const result = await client.devicesModule
306
320
  .delete({
307
321
  where: {
308
322
  id: answers.id,
@@ -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;
@@ -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('disconnect-account - disconnectAccount\n\nUsage: disconnect-account [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
+ .disconnectAccount(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: disconnectAccount');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for TableTemplateModule
2
+ * CLI commands for EntityTypeProvision
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */