@constructive-sdk/cli 0.3.0 → 0.6.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 (287) hide show
  1. package/admin/cli/commands/app-admin-grant.js +2 -2
  2. package/admin/cli/commands/app-grant.js +2 -2
  3. package/admin/cli/commands/app-membership-default.js +4 -4
  4. package/admin/cli/commands/app-membership.js +14 -14
  5. package/admin/cli/commands/app-owner-grant.js +2 -2
  6. package/admin/cli/commands/claimed-invite.js +2 -2
  7. package/admin/cli/commands/invite.js +6 -6
  8. package/admin/cli/commands/org-admin-grant.js +2 -2
  9. package/admin/cli/commands/org-chart-edge-grant.js +2 -2
  10. package/admin/cli/commands/org-claimed-invite.js +2 -2
  11. package/admin/cli/commands/org-grant.js +2 -2
  12. package/admin/cli/commands/org-invite.js +6 -6
  13. package/admin/cli/commands/org-member.js +2 -2
  14. package/admin/cli/commands/org-membership-default.js +6 -6
  15. package/admin/cli/commands/org-membership.js +12 -12
  16. package/admin/cli/commands/org-owner-grant.js +2 -2
  17. package/admin/cli/commands/submit-invite-code.js +1 -1
  18. package/admin/cli/commands/submit-org-invite-code.js +1 -1
  19. package/admin/cli/index.js +2 -2
  20. package/admin/cli/utils.d.ts +13 -0
  21. package/admin/cli/utils.js +25 -0
  22. package/auth/cli/commands/audit-log.js +2 -2
  23. package/auth/cli/commands/check-password.js +1 -1
  24. package/auth/cli/commands/confirm-delete-account.js +1 -1
  25. package/auth/cli/commands/connected-account.js +4 -4
  26. package/auth/cli/commands/crypto-address.js +4 -4
  27. package/auth/cli/commands/email.js +4 -4
  28. package/auth/cli/commands/extend-token-expires.js +1 -1
  29. package/auth/cli/commands/forgot-password.js +1 -1
  30. package/auth/cli/commands/one-time-token.js +1 -1
  31. package/auth/cli/commands/phone-number.js +4 -4
  32. package/auth/cli/commands/reset-password.js +1 -1
  33. package/auth/cli/commands/send-account-deletion-email.js +1 -1
  34. package/auth/cli/commands/send-verification-email.js +1 -1
  35. package/auth/cli/commands/set-password.js +1 -1
  36. package/auth/cli/commands/sign-in-one-time-token.js +1 -1
  37. package/auth/cli/commands/sign-in.js +1 -1
  38. package/auth/cli/commands/sign-out.js +1 -1
  39. package/auth/cli/commands/sign-up.js +1 -1
  40. package/auth/cli/commands/verify-email.js +1 -1
  41. package/auth/cli/commands/verify-password.js +1 -1
  42. package/auth/cli/commands/verify-totp.js +1 -1
  43. package/auth/cli/index.js +2 -2
  44. package/auth/cli/utils.d.ts +13 -0
  45. package/auth/cli/utils.js +25 -0
  46. package/esm/admin/cli/commands/app-admin-grant.js +2 -2
  47. package/esm/admin/cli/commands/app-grant.js +2 -2
  48. package/esm/admin/cli/commands/app-membership-default.js +4 -4
  49. package/esm/admin/cli/commands/app-membership.js +14 -14
  50. package/esm/admin/cli/commands/app-owner-grant.js +2 -2
  51. package/esm/admin/cli/commands/claimed-invite.js +2 -2
  52. package/esm/admin/cli/commands/invite.js +6 -6
  53. package/esm/admin/cli/commands/org-admin-grant.js +2 -2
  54. package/esm/admin/cli/commands/org-chart-edge-grant.js +2 -2
  55. package/esm/admin/cli/commands/org-claimed-invite.js +2 -2
  56. package/esm/admin/cli/commands/org-grant.js +2 -2
  57. package/esm/admin/cli/commands/org-invite.js +6 -6
  58. package/esm/admin/cli/commands/org-member.js +2 -2
  59. package/esm/admin/cli/commands/org-membership-default.js +6 -6
  60. package/esm/admin/cli/commands/org-membership.js +12 -12
  61. package/esm/admin/cli/commands/org-owner-grant.js +2 -2
  62. package/esm/admin/cli/commands/submit-invite-code.js +2 -2
  63. package/esm/admin/cli/commands/submit-org-invite-code.js +2 -2
  64. package/esm/admin/cli/index.js +2 -2
  65. package/esm/admin/cli/utils.d.ts +13 -0
  66. package/esm/admin/cli/utils.js +24 -0
  67. package/esm/auth/cli/commands/audit-log.js +2 -2
  68. package/esm/auth/cli/commands/check-password.js +2 -2
  69. package/esm/auth/cli/commands/confirm-delete-account.js +2 -2
  70. package/esm/auth/cli/commands/connected-account.js +4 -4
  71. package/esm/auth/cli/commands/crypto-address.js +4 -4
  72. package/esm/auth/cli/commands/email.js +4 -4
  73. package/esm/auth/cli/commands/extend-token-expires.js +2 -2
  74. package/esm/auth/cli/commands/forgot-password.js +2 -2
  75. package/esm/auth/cli/commands/one-time-token.js +2 -2
  76. package/esm/auth/cli/commands/phone-number.js +4 -4
  77. package/esm/auth/cli/commands/reset-password.js +2 -2
  78. package/esm/auth/cli/commands/send-account-deletion-email.js +2 -2
  79. package/esm/auth/cli/commands/send-verification-email.js +2 -2
  80. package/esm/auth/cli/commands/set-password.js +2 -2
  81. package/esm/auth/cli/commands/sign-in-one-time-token.js +2 -2
  82. package/esm/auth/cli/commands/sign-in.js +2 -2
  83. package/esm/auth/cli/commands/sign-out.js +2 -2
  84. package/esm/auth/cli/commands/sign-up.js +2 -2
  85. package/esm/auth/cli/commands/verify-email.js +2 -2
  86. package/esm/auth/cli/commands/verify-password.js +2 -2
  87. package/esm/auth/cli/commands/verify-totp.js +2 -2
  88. package/esm/auth/cli/index.js +2 -2
  89. package/esm/auth/cli/utils.d.ts +13 -0
  90. package/esm/auth/cli/utils.js +24 -0
  91. package/esm/objects/cli/commands/freeze-objects.js +2 -2
  92. package/esm/objects/cli/commands/get-all-record.js +1 -1
  93. package/esm/objects/cli/commands/init-empty-repo.js +2 -2
  94. package/esm/objects/cli/commands/insert-node-at-path.js +2 -2
  95. package/esm/objects/cli/commands/object.js +4 -4
  96. package/esm/objects/cli/commands/remove-node-at-path.js +2 -2
  97. package/esm/objects/cli/commands/set-and-commit.js +2 -2
  98. package/esm/objects/cli/commands/set-data-at-path.js +2 -2
  99. package/esm/objects/cli/commands/set-props-and-commit.js +2 -2
  100. package/esm/objects/cli/commands/update-node-at-path.js +2 -2
  101. package/esm/objects/cli/index.js +2 -2
  102. package/esm/objects/cli/utils.d.ts +13 -0
  103. package/esm/objects/cli/utils.js +24 -0
  104. package/esm/public/cli/commands/api-module.js +2 -2
  105. package/esm/public/cli/commands/api.js +2 -2
  106. package/esm/public/cli/commands/app-admin-grant.js +2 -2
  107. package/esm/public/cli/commands/app-grant.js +2 -2
  108. package/esm/public/cli/commands/app-membership-default.js +4 -4
  109. package/esm/public/cli/commands/app-membership.js +14 -14
  110. package/esm/public/cli/commands/app-owner-grant.js +2 -2
  111. package/esm/public/cli/commands/apply-rls.js +2 -2
  112. package/esm/public/cli/commands/ast-migration.js +4 -4
  113. package/esm/public/cli/commands/audit-log.js +2 -2
  114. package/esm/public/cli/commands/bootstrap-user.js +2 -2
  115. package/esm/public/cli/commands/check-constraint.js +4 -4
  116. package/esm/public/cli/commands/check-password.js +2 -2
  117. package/esm/public/cli/commands/claimed-invite.js +2 -2
  118. package/esm/public/cli/commands/confirm-delete-account.js +2 -2
  119. package/esm/public/cli/commands/connected-account.js +4 -4
  120. package/esm/public/cli/commands/create-user-database.js +2 -2
  121. package/esm/public/cli/commands/crypto-address.js +4 -4
  122. package/esm/public/cli/commands/database-provision-module.js +4 -4
  123. package/esm/public/cli/commands/default-privilege.js +2 -2
  124. package/esm/public/cli/commands/denormalized-table-field.js +4 -4
  125. package/esm/public/cli/commands/email.js +4 -4
  126. package/esm/public/cli/commands/extend-token-expires.js +2 -2
  127. package/esm/public/cli/commands/field-module.js +2 -2
  128. package/esm/public/cli/commands/field.js +12 -12
  129. package/esm/public/cli/commands/foreign-key-constraint.js +2 -2
  130. package/esm/public/cli/commands/forgot-password.js +2 -2
  131. package/esm/public/cli/commands/freeze-objects.js +2 -2
  132. package/esm/public/cli/commands/get-all-record.js +1 -1
  133. package/esm/public/cli/commands/index.js +8 -8
  134. package/esm/public/cli/commands/init-empty-repo.js +2 -2
  135. package/esm/public/cli/commands/insert-node-at-path.js +2 -2
  136. package/esm/public/cli/commands/invite.js +6 -6
  137. package/esm/public/cli/commands/node-type-registry.js +2 -2
  138. package/esm/public/cli/commands/object.js +4 -4
  139. package/esm/public/cli/commands/one-time-token.js +2 -2
  140. package/esm/public/cli/commands/org-admin-grant.js +2 -2
  141. package/esm/public/cli/commands/org-chart-edge-grant.js +2 -2
  142. package/esm/public/cli/commands/org-claimed-invite.js +2 -2
  143. package/esm/public/cli/commands/org-grant.js +2 -2
  144. package/esm/public/cli/commands/org-invite.js +6 -6
  145. package/esm/public/cli/commands/org-member.js +2 -2
  146. package/esm/public/cli/commands/org-membership-default.js +6 -6
  147. package/esm/public/cli/commands/org-membership.js +12 -12
  148. package/esm/public/cli/commands/org-owner-grant.js +2 -2
  149. package/esm/public/cli/commands/phone-number.js +4 -4
  150. package/esm/public/cli/commands/policy.js +8 -8
  151. package/esm/public/cli/commands/primary-key-constraint.js +2 -2
  152. package/esm/public/cli/commands/provision-database-with-user.js +2 -2
  153. package/esm/public/cli/commands/relation-provision.js +12 -12
  154. package/esm/public/cli/commands/remove-node-at-path.js +2 -2
  155. package/esm/public/cli/commands/reset-password.js +2 -2
  156. package/esm/public/cli/commands/schema.js +4 -4
  157. package/esm/public/cli/commands/secure-table-provision.js +10 -10
  158. package/esm/public/cli/commands/send-account-deletion-email.js +2 -2
  159. package/esm/public/cli/commands/send-verification-email.js +2 -2
  160. package/esm/public/cli/commands/set-and-commit.js +2 -2
  161. package/esm/public/cli/commands/set-data-at-path.js +2 -2
  162. package/esm/public/cli/commands/set-field-order.js +2 -2
  163. package/esm/public/cli/commands/set-password.js +2 -2
  164. package/esm/public/cli/commands/set-props-and-commit.js +2 -2
  165. package/esm/public/cli/commands/sign-in-one-time-token.js +2 -2
  166. package/esm/public/cli/commands/sign-in.js +2 -2
  167. package/esm/public/cli/commands/sign-out.js +2 -2
  168. package/esm/public/cli/commands/sign-up.js +2 -2
  169. package/esm/public/cli/commands/site-module.js +2 -2
  170. package/esm/public/cli/commands/site-theme.js +2 -2
  171. package/esm/public/cli/commands/sql-migration.js +1 -1
  172. package/esm/public/cli/commands/submit-invite-code.js +2 -2
  173. package/esm/public/cli/commands/submit-org-invite-code.js +2 -2
  174. package/esm/public/cli/commands/table-grant.js +2 -2
  175. package/esm/public/cli/commands/table-module.js +4 -4
  176. package/esm/public/cli/commands/table-template-module.js +2 -2
  177. package/esm/public/cli/commands/table.js +8 -8
  178. package/esm/public/cli/commands/trigger.js +2 -2
  179. package/esm/public/cli/commands/unique-constraint.js +2 -2
  180. package/esm/public/cli/commands/update-node-at-path.js +2 -2
  181. package/esm/public/cli/commands/verify-email.js +2 -2
  182. package/esm/public/cli/commands/verify-password.js +2 -2
  183. package/esm/public/cli/commands/verify-totp.js +2 -2
  184. package/esm/public/cli/commands/view-grant.js +4 -4
  185. package/esm/public/cli/commands/view.js +10 -10
  186. package/esm/public/cli/index.js +2 -2
  187. package/esm/public/cli/utils.d.ts +13 -0
  188. package/esm/public/cli/utils.js +24 -0
  189. package/objects/cli/commands/freeze-objects.js +1 -1
  190. package/objects/cli/commands/get-all-record.js +1 -1
  191. package/objects/cli/commands/init-empty-repo.js +1 -1
  192. package/objects/cli/commands/insert-node-at-path.js +1 -1
  193. package/objects/cli/commands/object.js +4 -4
  194. package/objects/cli/commands/remove-node-at-path.js +1 -1
  195. package/objects/cli/commands/set-and-commit.js +1 -1
  196. package/objects/cli/commands/set-data-at-path.js +1 -1
  197. package/objects/cli/commands/set-props-and-commit.js +1 -1
  198. package/objects/cli/commands/update-node-at-path.js +1 -1
  199. package/objects/cli/index.js +2 -2
  200. package/objects/cli/utils.d.ts +13 -0
  201. package/objects/cli/utils.js +25 -0
  202. package/package.json +6 -6
  203. package/public/cli/commands/api-module.js +2 -2
  204. package/public/cli/commands/api.js +2 -2
  205. package/public/cli/commands/app-admin-grant.js +2 -2
  206. package/public/cli/commands/app-grant.js +2 -2
  207. package/public/cli/commands/app-membership-default.js +4 -4
  208. package/public/cli/commands/app-membership.js +14 -14
  209. package/public/cli/commands/app-owner-grant.js +2 -2
  210. package/public/cli/commands/apply-rls.js +1 -1
  211. package/public/cli/commands/ast-migration.js +4 -4
  212. package/public/cli/commands/audit-log.js +2 -2
  213. package/public/cli/commands/bootstrap-user.js +1 -1
  214. package/public/cli/commands/check-constraint.js +4 -4
  215. package/public/cli/commands/check-password.js +1 -1
  216. package/public/cli/commands/claimed-invite.js +2 -2
  217. package/public/cli/commands/confirm-delete-account.js +1 -1
  218. package/public/cli/commands/connected-account.js +4 -4
  219. package/public/cli/commands/create-user-database.js +1 -1
  220. package/public/cli/commands/crypto-address.js +4 -4
  221. package/public/cli/commands/database-provision-module.js +4 -4
  222. package/public/cli/commands/default-privilege.js +2 -2
  223. package/public/cli/commands/denormalized-table-field.js +4 -4
  224. package/public/cli/commands/email.js +4 -4
  225. package/public/cli/commands/extend-token-expires.js +1 -1
  226. package/public/cli/commands/field-module.js +2 -2
  227. package/public/cli/commands/field.js +12 -12
  228. package/public/cli/commands/foreign-key-constraint.js +2 -2
  229. package/public/cli/commands/forgot-password.js +1 -1
  230. package/public/cli/commands/freeze-objects.js +1 -1
  231. package/public/cli/commands/get-all-record.js +1 -1
  232. package/public/cli/commands/index.js +8 -8
  233. package/public/cli/commands/init-empty-repo.js +1 -1
  234. package/public/cli/commands/insert-node-at-path.js +1 -1
  235. package/public/cli/commands/invite.js +6 -6
  236. package/public/cli/commands/node-type-registry.js +2 -2
  237. package/public/cli/commands/object.js +4 -4
  238. package/public/cli/commands/one-time-token.js +1 -1
  239. package/public/cli/commands/org-admin-grant.js +2 -2
  240. package/public/cli/commands/org-chart-edge-grant.js +2 -2
  241. package/public/cli/commands/org-claimed-invite.js +2 -2
  242. package/public/cli/commands/org-grant.js +2 -2
  243. package/public/cli/commands/org-invite.js +6 -6
  244. package/public/cli/commands/org-member.js +2 -2
  245. package/public/cli/commands/org-membership-default.js +6 -6
  246. package/public/cli/commands/org-membership.js +12 -12
  247. package/public/cli/commands/org-owner-grant.js +2 -2
  248. package/public/cli/commands/phone-number.js +4 -4
  249. package/public/cli/commands/policy.js +8 -8
  250. package/public/cli/commands/primary-key-constraint.js +2 -2
  251. package/public/cli/commands/provision-database-with-user.js +1 -1
  252. package/public/cli/commands/relation-provision.js +12 -12
  253. package/public/cli/commands/remove-node-at-path.js +1 -1
  254. package/public/cli/commands/reset-password.js +1 -1
  255. package/public/cli/commands/schema.js +4 -4
  256. package/public/cli/commands/secure-table-provision.js +10 -10
  257. package/public/cli/commands/send-account-deletion-email.js +1 -1
  258. package/public/cli/commands/send-verification-email.js +1 -1
  259. package/public/cli/commands/set-and-commit.js +1 -1
  260. package/public/cli/commands/set-data-at-path.js +1 -1
  261. package/public/cli/commands/set-field-order.js +1 -1
  262. package/public/cli/commands/set-password.js +1 -1
  263. package/public/cli/commands/set-props-and-commit.js +1 -1
  264. package/public/cli/commands/sign-in-one-time-token.js +1 -1
  265. package/public/cli/commands/sign-in.js +1 -1
  266. package/public/cli/commands/sign-out.js +1 -1
  267. package/public/cli/commands/sign-up.js +1 -1
  268. package/public/cli/commands/site-module.js +2 -2
  269. package/public/cli/commands/site-theme.js +2 -2
  270. package/public/cli/commands/sql-migration.js +1 -1
  271. package/public/cli/commands/submit-invite-code.js +1 -1
  272. package/public/cli/commands/submit-org-invite-code.js +1 -1
  273. package/public/cli/commands/table-grant.js +2 -2
  274. package/public/cli/commands/table-module.js +4 -4
  275. package/public/cli/commands/table-template-module.js +2 -2
  276. package/public/cli/commands/table.js +8 -8
  277. package/public/cli/commands/trigger.js +2 -2
  278. package/public/cli/commands/unique-constraint.js +2 -2
  279. package/public/cli/commands/update-node-at-path.js +1 -1
  280. package/public/cli/commands/verify-email.js +1 -1
  281. package/public/cli/commands/verify-password.js +1 -1
  282. package/public/cli/commands/verify-totp.js +1 -1
  283. package/public/cli/commands/view-grant.js +4 -4
  284. package/public/cli/commands/view.js +10 -10
  285. package/public/cli/index.js +2 -2
  286. package/public/cli/utils.d.ts +13 -0
  287. package/public/cli/utils.js +25 -0
@@ -158,42 +158,42 @@ async function handleCreate(argv, prompter) {
158
158
  skipPrompt: true,
159
159
  },
160
160
  {
161
- type: 'text',
161
+ type: 'boolean',
162
162
  name: 'isApproved',
163
163
  message: 'isApproved',
164
164
  required: false,
165
165
  skipPrompt: true,
166
166
  },
167
167
  {
168
- type: 'text',
168
+ type: 'boolean',
169
169
  name: 'isBanned',
170
170
  message: 'isBanned',
171
171
  required: false,
172
172
  skipPrompt: true,
173
173
  },
174
174
  {
175
- type: 'text',
175
+ type: 'boolean',
176
176
  name: 'isDisabled',
177
177
  message: 'isDisabled',
178
178
  required: false,
179
179
  skipPrompt: true,
180
180
  },
181
181
  {
182
- type: 'text',
182
+ type: 'boolean',
183
183
  name: 'isActive',
184
184
  message: 'isActive',
185
185
  required: false,
186
186
  skipPrompt: true,
187
187
  },
188
188
  {
189
- type: 'text',
189
+ type: 'boolean',
190
190
  name: 'isOwner',
191
191
  message: 'isOwner',
192
192
  required: false,
193
193
  skipPrompt: true,
194
194
  },
195
195
  {
196
- type: 'text',
196
+ type: 'boolean',
197
197
  name: 'isAdmin',
198
198
  message: 'isAdmin',
199
199
  required: false,
@@ -307,42 +307,42 @@ async function handleUpdate(argv, prompter) {
307
307
  skipPrompt: true,
308
308
  },
309
309
  {
310
- type: 'text',
310
+ type: 'boolean',
311
311
  name: 'isApproved',
312
312
  message: 'isApproved',
313
313
  required: false,
314
314
  skipPrompt: true,
315
315
  },
316
316
  {
317
- type: 'text',
317
+ type: 'boolean',
318
318
  name: 'isBanned',
319
319
  message: 'isBanned',
320
320
  required: false,
321
321
  skipPrompt: true,
322
322
  },
323
323
  {
324
- type: 'text',
324
+ type: 'boolean',
325
325
  name: 'isDisabled',
326
326
  message: 'isDisabled',
327
327
  required: false,
328
328
  skipPrompt: true,
329
329
  },
330
330
  {
331
- type: 'text',
331
+ type: 'boolean',
332
332
  name: 'isActive',
333
333
  message: 'isActive',
334
334
  required: false,
335
335
  skipPrompt: true,
336
336
  },
337
337
  {
338
- type: 'text',
338
+ type: 'boolean',
339
339
  name: 'isOwner',
340
340
  message: 'isOwner',
341
341
  required: false,
342
342
  skipPrompt: true,
343
343
  },
344
344
  {
345
- type: 'text',
345
+ type: 'boolean',
346
346
  name: 'isAdmin',
347
347
  message: 'isAdmin',
348
348
  required: false,
@@ -117,7 +117,7 @@ async function handleCreate(argv, prompter) {
117
117
  try {
118
118
  const rawAnswers = await prompter.prompt(argv, [
119
119
  {
120
- type: 'text',
120
+ type: 'boolean',
121
121
  name: 'isGrant',
122
122
  message: 'isGrant',
123
123
  required: false,
@@ -185,7 +185,7 @@ async function handleUpdate(argv, prompter) {
185
185
  required: true,
186
186
  },
187
187
  {
188
- type: 'text',
188
+ type: 'boolean',
189
189
  name: 'isGrant',
190
190
  message: 'isGrant',
191
191
  required: false,
@@ -139,14 +139,14 @@ async function handleCreate(argv, prompter) {
139
139
  required: true,
140
140
  },
141
141
  {
142
- type: 'text',
142
+ type: 'boolean',
143
143
  name: 'isVerified',
144
144
  message: 'isVerified',
145
145
  required: false,
146
146
  skipPrompt: true,
147
147
  },
148
148
  {
149
- type: 'text',
149
+ type: 'boolean',
150
150
  name: 'isPrimary',
151
151
  message: 'isPrimary',
152
152
  required: false,
@@ -216,14 +216,14 @@ async function handleUpdate(argv, prompter) {
216
216
  required: false,
217
217
  },
218
218
  {
219
- type: 'text',
219
+ type: 'boolean',
220
220
  name: 'isVerified',
221
221
  message: 'isVerified',
222
222
  required: false,
223
223
  skipPrompt: true,
224
224
  },
225
225
  {
226
- type: 'text',
226
+ type: 'boolean',
227
227
  name: 'isPrimary',
228
228
  message: 'isPrimary',
229
229
  required: false,
@@ -181,14 +181,14 @@ async function handleCreate(argv, prompter) {
181
181
  skipPrompt: true,
182
182
  },
183
183
  {
184
- type: 'text',
184
+ type: 'boolean',
185
185
  name: 'permissive',
186
186
  message: 'permissive',
187
187
  required: false,
188
188
  skipPrompt: true,
189
189
  },
190
190
  {
191
- type: 'text',
191
+ type: 'boolean',
192
192
  name: 'disabled',
193
193
  message: 'disabled',
194
194
  required: false,
@@ -202,14 +202,14 @@ async function handleCreate(argv, prompter) {
202
202
  skipPrompt: true,
203
203
  },
204
204
  {
205
- type: 'text',
205
+ type: 'json',
206
206
  name: 'data',
207
207
  message: 'data',
208
208
  required: false,
209
209
  skipPrompt: true,
210
210
  },
211
211
  {
212
- type: 'text',
212
+ type: 'json',
213
213
  name: 'smartTags',
214
214
  message: 'smartTags',
215
215
  required: false,
@@ -340,14 +340,14 @@ async function handleUpdate(argv, prompter) {
340
340
  skipPrompt: true,
341
341
  },
342
342
  {
343
- type: 'text',
343
+ type: 'boolean',
344
344
  name: 'permissive',
345
345
  message: 'permissive',
346
346
  required: false,
347
347
  skipPrompt: true,
348
348
  },
349
349
  {
350
- type: 'text',
350
+ type: 'boolean',
351
351
  name: 'disabled',
352
352
  message: 'disabled',
353
353
  required: false,
@@ -361,14 +361,14 @@ async function handleUpdate(argv, prompter) {
361
361
  skipPrompt: true,
362
362
  },
363
363
  {
364
- type: 'text',
364
+ type: 'json',
365
365
  name: 'data',
366
366
  message: 'data',
367
367
  required: false,
368
368
  skipPrompt: true,
369
369
  },
370
370
  {
371
- type: 'text',
371
+ type: 'json',
372
372
  name: 'smartTags',
373
373
  message: 'smartTags',
374
374
  required: false,
@@ -168,7 +168,7 @@ async function handleCreate(argv, prompter) {
168
168
  required: true,
169
169
  },
170
170
  {
171
- type: 'text',
171
+ type: 'json',
172
172
  name: 'smartTags',
173
173
  message: 'smartTags',
174
174
  required: false,
@@ -290,7 +290,7 @@ async function handleUpdate(argv, prompter) {
290
290
  required: false,
291
291
  },
292
292
  {
293
- type: 'text',
293
+ type: 'json',
294
294
  name: 'smartTags',
295
295
  message: 'smartTags',
296
296
  required: false,
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .provisionDatabaseWithUser(parsedAnswers, {
@@ -218,7 +218,7 @@ async function handleCreate(argv, prompter) {
218
218
  skipPrompt: true,
219
219
  },
220
220
  {
221
- type: 'text',
221
+ type: 'boolean',
222
222
  name: 'isRequired',
223
223
  message: 'isRequired',
224
224
  required: false,
@@ -260,7 +260,7 @@ async function handleCreate(argv, prompter) {
260
260
  skipPrompt: true,
261
261
  },
262
262
  {
263
- type: 'text',
263
+ type: 'boolean',
264
264
  name: 'useCompositeKey',
265
265
  message: 'useCompositeKey',
266
266
  required: false,
@@ -274,7 +274,7 @@ async function handleCreate(argv, prompter) {
274
274
  skipPrompt: true,
275
275
  },
276
276
  {
277
- type: 'text',
277
+ type: 'json',
278
278
  name: 'nodeData',
279
279
  message: 'nodeData',
280
280
  required: false,
@@ -288,7 +288,7 @@ async function handleCreate(argv, prompter) {
288
288
  skipPrompt: true,
289
289
  },
290
290
  {
291
- type: 'text',
291
+ type: 'json',
292
292
  name: 'grantPrivileges',
293
293
  message: 'grantPrivileges',
294
294
  required: false,
@@ -316,7 +316,7 @@ async function handleCreate(argv, prompter) {
316
316
  skipPrompt: true,
317
317
  },
318
318
  {
319
- type: 'text',
319
+ type: 'boolean',
320
320
  name: 'policyPermissive',
321
321
  message: 'policyPermissive',
322
322
  required: false,
@@ -330,7 +330,7 @@ async function handleCreate(argv, prompter) {
330
330
  skipPrompt: true,
331
331
  },
332
332
  {
333
- type: 'text',
333
+ type: 'json',
334
334
  name: 'policyData',
335
335
  message: 'policyData',
336
336
  required: false,
@@ -489,7 +489,7 @@ async function handleUpdate(argv, prompter) {
489
489
  skipPrompt: true,
490
490
  },
491
491
  {
492
- type: 'text',
492
+ type: 'boolean',
493
493
  name: 'isRequired',
494
494
  message: 'isRequired',
495
495
  required: false,
@@ -531,7 +531,7 @@ async function handleUpdate(argv, prompter) {
531
531
  skipPrompt: true,
532
532
  },
533
533
  {
534
- type: 'text',
534
+ type: 'boolean',
535
535
  name: 'useCompositeKey',
536
536
  message: 'useCompositeKey',
537
537
  required: false,
@@ -545,7 +545,7 @@ async function handleUpdate(argv, prompter) {
545
545
  skipPrompt: true,
546
546
  },
547
547
  {
548
- type: 'text',
548
+ type: 'json',
549
549
  name: 'nodeData',
550
550
  message: 'nodeData',
551
551
  required: false,
@@ -559,7 +559,7 @@ async function handleUpdate(argv, prompter) {
559
559
  skipPrompt: true,
560
560
  },
561
561
  {
562
- type: 'text',
562
+ type: 'json',
563
563
  name: 'grantPrivileges',
564
564
  message: 'grantPrivileges',
565
565
  required: false,
@@ -587,7 +587,7 @@ async function handleUpdate(argv, prompter) {
587
587
  skipPrompt: true,
588
588
  },
589
589
  {
590
- type: 'text',
590
+ type: 'boolean',
591
591
  name: 'policyPermissive',
592
592
  message: 'policyPermissive',
593
593
  required: false,
@@ -601,7 +601,7 @@ async function handleUpdate(argv, prompter) {
601
601
  skipPrompt: true,
602
602
  },
603
603
  {
604
- type: 'text',
604
+ type: 'json',
605
605
  name: 'policyData',
606
606
  message: 'policyData',
607
607
  required: false,
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .removeNodeAtPath(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .resetPassword(parsedAnswers, {
@@ -170,7 +170,7 @@ async function handleCreate(argv, prompter) {
170
170
  skipPrompt: true,
171
171
  },
172
172
  {
173
- type: 'text',
173
+ type: 'json',
174
174
  name: 'smartTags',
175
175
  message: 'smartTags',
176
176
  required: false,
@@ -205,7 +205,7 @@ async function handleCreate(argv, prompter) {
205
205
  skipPrompt: true,
206
206
  },
207
207
  {
208
- type: 'text',
208
+ type: 'boolean',
209
209
  name: 'isPublic',
210
210
  message: 'isPublic',
211
211
  required: false,
@@ -300,7 +300,7 @@ async function handleUpdate(argv, prompter) {
300
300
  skipPrompt: true,
301
301
  },
302
302
  {
303
- type: 'text',
303
+ type: 'json',
304
304
  name: 'smartTags',
305
305
  message: 'smartTags',
306
306
  required: false,
@@ -335,7 +335,7 @@ async function handleUpdate(argv, prompter) {
335
335
  skipPrompt: true,
336
336
  },
337
337
  {
338
- type: 'text',
338
+ type: 'boolean',
339
339
  name: 'isPublic',
340
340
  message: 'isPublic',
341
341
  required: false,
@@ -181,14 +181,14 @@ async function handleCreate(argv, prompter) {
181
181
  skipPrompt: true,
182
182
  },
183
183
  {
184
- type: 'text',
184
+ type: 'boolean',
185
185
  name: 'useRls',
186
186
  message: 'useRls',
187
187
  required: false,
188
188
  skipPrompt: true,
189
189
  },
190
190
  {
191
- type: 'text',
191
+ type: 'json',
192
192
  name: 'nodeData',
193
193
  message: 'nodeData',
194
194
  required: false,
@@ -202,7 +202,7 @@ async function handleCreate(argv, prompter) {
202
202
  skipPrompt: true,
203
203
  },
204
204
  {
205
- type: 'text',
205
+ type: 'json',
206
206
  name: 'grantPrivileges',
207
207
  message: 'grantPrivileges',
208
208
  required: false,
@@ -230,7 +230,7 @@ async function handleCreate(argv, prompter) {
230
230
  skipPrompt: true,
231
231
  },
232
232
  {
233
- type: 'text',
233
+ type: 'boolean',
234
234
  name: 'policyPermissive',
235
235
  message: 'policyPermissive',
236
236
  required: false,
@@ -244,7 +244,7 @@ async function handleCreate(argv, prompter) {
244
244
  skipPrompt: true,
245
245
  },
246
246
  {
247
- type: 'text',
247
+ type: 'json',
248
248
  name: 'policyData',
249
249
  message: 'policyData',
250
250
  required: false,
@@ -356,14 +356,14 @@ async function handleUpdate(argv, prompter) {
356
356
  skipPrompt: true,
357
357
  },
358
358
  {
359
- type: 'text',
359
+ type: 'boolean',
360
360
  name: 'useRls',
361
361
  message: 'useRls',
362
362
  required: false,
363
363
  skipPrompt: true,
364
364
  },
365
365
  {
366
- type: 'text',
366
+ type: 'json',
367
367
  name: 'nodeData',
368
368
  message: 'nodeData',
369
369
  required: false,
@@ -377,7 +377,7 @@ async function handleUpdate(argv, prompter) {
377
377
  skipPrompt: true,
378
378
  },
379
379
  {
380
- type: 'text',
380
+ type: 'json',
381
381
  name: 'grantPrivileges',
382
382
  message: 'grantPrivileges',
383
383
  required: false,
@@ -405,7 +405,7 @@ async function handleUpdate(argv, prompter) {
405
405
  skipPrompt: true,
406
406
  },
407
407
  {
408
- type: 'text',
408
+ type: 'boolean',
409
409
  name: 'policyPermissive',
410
410
  message: 'policyPermissive',
411
411
  required: false,
@@ -419,7 +419,7 @@ async function handleUpdate(argv, prompter) {
419
419
  skipPrompt: true,
420
420
  },
421
421
  {
422
- type: 'text',
422
+ type: 'json',
423
423
  name: 'policyData',
424
424
  message: 'policyData',
425
425
  required: false,
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .sendAccountDeletionEmail(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .sendVerificationEmail(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .setAndCommit(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .setDataAtPath(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .setFieldOrder(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .setPassword(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .setPropsAndCommit(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .signInOneTimeToken(parsedAnswers, {
@@ -1,5 +1,5 @@
1
1
  import { getClient } from '../executor';
2
- import { parseMutationInput, buildSelectFromPaths } from '../utils';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
3
  export default async (argv, prompter, _options) => {
4
4
  try {
5
5
  if (argv.help || argv.h) {
@@ -15,7 +15,7 @@ export default async (argv, prompter, _options) => {
15
15
  },
16
16
  ]);
17
17
  const client = getClient();
18
- const parsedAnswers = parseMutationInput(answers);
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
19
  const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
20
  const result = await client.mutation
21
21
  .signIn(parsedAnswers, {