@constructive-sdk/cli 0.3.0 → 0.7.0

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