@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
@@ -131,14 +131,14 @@ async function handleCreate(argv, prompter) {
131
131
  skipPrompt: true,
132
132
  },
133
133
  {
134
- type: 'text',
134
+ type: 'boolean',
135
135
  name: 'isApproved',
136
136
  message: 'isApproved',
137
137
  required: false,
138
138
  skipPrompt: true,
139
139
  },
140
140
  {
141
- type: 'text',
141
+ type: 'boolean',
142
142
  name: 'isVerified',
143
143
  message: 'isVerified',
144
144
  required: false,
@@ -201,14 +201,14 @@ async function handleUpdate(argv, prompter) {
201
201
  skipPrompt: true,
202
202
  },
203
203
  {
204
- type: 'text',
204
+ type: 'boolean',
205
205
  name: 'isApproved',
206
206
  message: 'isApproved',
207
207
  required: false,
208
208
  skipPrompt: true,
209
209
  },
210
210
  {
211
- type: 'text',
211
+ type: 'boolean',
212
212
  name: 'isVerified',
213
213
  message: 'isVerified',
214
214
  required: false,
@@ -158,49 +158,49 @@ 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: 'isVerified',
184
184
  message: 'isVerified',
185
185
  required: false,
186
186
  skipPrompt: true,
187
187
  },
188
188
  {
189
- type: 'text',
189
+ type: 'boolean',
190
190
  name: 'isActive',
191
191
  message: 'isActive',
192
192
  required: false,
193
193
  skipPrompt: true,
194
194
  },
195
195
  {
196
- type: 'text',
196
+ type: 'boolean',
197
197
  name: 'isOwner',
198
198
  message: 'isOwner',
199
199
  required: false,
200
200
  skipPrompt: true,
201
201
  },
202
202
  {
203
- type: 'text',
203
+ type: 'boolean',
204
204
  name: 'isAdmin',
205
205
  message: 'isAdmin',
206
206
  required: false,
@@ -308,49 +308,49 @@ async function handleUpdate(argv, prompter) {
308
308
  skipPrompt: true,
309
309
  },
310
310
  {
311
- type: 'text',
311
+ type: 'boolean',
312
312
  name: 'isApproved',
313
313
  message: 'isApproved',
314
314
  required: false,
315
315
  skipPrompt: true,
316
316
  },
317
317
  {
318
- type: 'text',
318
+ type: 'boolean',
319
319
  name: 'isBanned',
320
320
  message: 'isBanned',
321
321
  required: false,
322
322
  skipPrompt: true,
323
323
  },
324
324
  {
325
- type: 'text',
325
+ type: 'boolean',
326
326
  name: 'isDisabled',
327
327
  message: 'isDisabled',
328
328
  required: false,
329
329
  skipPrompt: true,
330
330
  },
331
331
  {
332
- type: 'text',
332
+ type: 'boolean',
333
333
  name: 'isVerified',
334
334
  message: 'isVerified',
335
335
  required: false,
336
336
  skipPrompt: true,
337
337
  },
338
338
  {
339
- type: 'text',
339
+ type: 'boolean',
340
340
  name: 'isActive',
341
341
  message: 'isActive',
342
342
  required: false,
343
343
  skipPrompt: true,
344
344
  },
345
345
  {
346
- type: 'text',
346
+ type: 'boolean',
347
347
  name: 'isOwner',
348
348
  message: 'isOwner',
349
349
  required: false,
350
350
  skipPrompt: true,
351
351
  },
352
352
  {
353
- type: 'text',
353
+ type: 'boolean',
354
354
  name: 'isAdmin',
355
355
  message: 'isAdmin',
356
356
  required: false,
@@ -114,7 +114,7 @@ async function handleCreate(argv, prompter) {
114
114
  try {
115
115
  const rawAnswers = await prompter.prompt(argv, [
116
116
  {
117
- type: 'text',
117
+ type: 'boolean',
118
118
  name: 'isGrant',
119
119
  message: 'isGrant',
120
120
  required: false,
@@ -174,7 +174,7 @@ async function handleUpdate(argv, prompter) {
174
174
  required: true,
175
175
  },
176
176
  {
177
- type: 'text',
177
+ type: 'boolean',
178
178
  name: 'isGrant',
179
179
  message: 'isGrant',
180
180
  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
  .applyRls(parsedAnswers, {
@@ -109,7 +109,7 @@ async function handleCreate(argv, prompter) {
109
109
  skipPrompt: true,
110
110
  },
111
111
  {
112
- type: 'text',
112
+ type: 'json',
113
113
  name: 'payload',
114
114
  message: 'payload',
115
115
  required: false,
@@ -123,21 +123,21 @@ async function handleCreate(argv, prompter) {
123
123
  skipPrompt: true,
124
124
  },
125
125
  {
126
- type: 'text',
126
+ type: 'json',
127
127
  name: 'deploy',
128
128
  message: 'deploy',
129
129
  required: false,
130
130
  skipPrompt: true,
131
131
  },
132
132
  {
133
- type: 'text',
133
+ type: 'json',
134
134
  name: 'revert',
135
135
  message: 'revert',
136
136
  required: false,
137
137
  skipPrompt: true,
138
138
  },
139
139
  {
140
- type: 'text',
140
+ type: 'json',
141
141
  name: 'verify',
142
142
  message: 'verify',
143
143
  required: false,
@@ -154,7 +154,7 @@ async function handleCreate(argv, prompter) {
154
154
  skipPrompt: true,
155
155
  },
156
156
  {
157
- type: 'text',
157
+ type: 'boolean',
158
158
  name: 'success',
159
159
  message: 'success',
160
160
  required: true,
@@ -239,7 +239,7 @@ async function handleUpdate(argv, prompter) {
239
239
  skipPrompt: true,
240
240
  },
241
241
  {
242
- type: 'text',
242
+ type: 'boolean',
243
243
  name: 'success',
244
244
  message: 'success',
245
245
  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
  .bootstrapUser(parsedAnswers, {
@@ -171,14 +171,14 @@ async function handleCreate(argv, prompter) {
171
171
  required: true,
172
172
  },
173
173
  {
174
- type: 'text',
174
+ type: 'json',
175
175
  name: 'expr',
176
176
  message: 'expr',
177
177
  required: false,
178
178
  skipPrompt: true,
179
179
  },
180
180
  {
181
- type: 'text',
181
+ type: 'json',
182
182
  name: 'smartTags',
183
183
  message: 'smartTags',
184
184
  required: false,
@@ -302,14 +302,14 @@ async function handleUpdate(argv, prompter) {
302
302
  required: false,
303
303
  },
304
304
  {
305
- type: 'text',
305
+ type: 'json',
306
306
  name: 'expr',
307
307
  message: 'expr',
308
308
  required: false,
309
309
  skipPrompt: true,
310
310
  },
311
311
  {
312
- type: 'text',
312
+ type: 'json',
313
313
  name: 'smartTags',
314
314
  message: 'smartTags',
315
315
  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
  .checkPassword(parsedAnswers, {
@@ -114,7 +114,7 @@ async function handleCreate(argv, prompter) {
114
114
  try {
115
115
  const rawAnswers = await prompter.prompt(argv, [
116
116
  {
117
- type: 'text',
117
+ type: 'json',
118
118
  name: 'data',
119
119
  message: 'data',
120
120
  required: false,
@@ -175,7 +175,7 @@ async function handleUpdate(argv, prompter) {
175
175
  required: true,
176
176
  },
177
177
  {
178
- type: 'text',
178
+ type: 'json',
179
179
  name: 'data',
180
180
  message: 'data',
181
181
  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
  .confirmDeleteAccount(parsedAnswers, {
@@ -139,13 +139,13 @@ async function handleCreate(argv, prompter) {
139
139
  required: true,
140
140
  },
141
141
  {
142
- type: 'text',
142
+ type: 'json',
143
143
  name: 'details',
144
144
  message: 'details',
145
145
  required: true,
146
146
  },
147
147
  {
148
- type: 'text',
148
+ type: 'boolean',
149
149
  name: 'isVerified',
150
150
  message: 'isVerified',
151
151
  required: false,
@@ -215,13 +215,13 @@ async function handleUpdate(argv, prompter) {
215
215
  required: false,
216
216
  },
217
217
  {
218
- type: 'text',
218
+ type: 'json',
219
219
  name: 'details',
220
220
  message: 'details',
221
221
  required: false,
222
222
  },
223
223
  {
224
- type: 'text',
224
+ type: 'boolean',
225
225
  name: 'isVerified',
226
226
  message: 'isVerified',
227
227
  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
  .createUserDatabase(parsedAnswers, {
@@ -130,14 +130,14 @@ async function handleCreate(argv, prompter) {
130
130
  required: true,
131
131
  },
132
132
  {
133
- type: 'text',
133
+ type: 'boolean',
134
134
  name: 'isVerified',
135
135
  message: 'isVerified',
136
136
  required: false,
137
137
  skipPrompt: true,
138
138
  },
139
139
  {
140
- type: 'text',
140
+ type: 'boolean',
141
141
  name: 'isPrimary',
142
142
  message: 'isPrimary',
143
143
  required: false,
@@ -199,14 +199,14 @@ async function handleUpdate(argv, prompter) {
199
199
  required: false,
200
200
  },
201
201
  {
202
- type: 'text',
202
+ type: 'boolean',
203
203
  name: 'isVerified',
204
204
  message: 'isVerified',
205
205
  required: false,
206
206
  skipPrompt: true,
207
207
  },
208
208
  {
209
- type: 'text',
209
+ type: 'boolean',
210
210
  name: 'isPrimary',
211
211
  message: 'isPrimary',
212
212
  required: false,
@@ -170,14 +170,14 @@ async function handleCreate(argv, prompter) {
170
170
  skipPrompt: true,
171
171
  },
172
172
  {
173
- type: 'text',
173
+ type: 'json',
174
174
  name: 'options',
175
175
  message: 'options',
176
176
  required: false,
177
177
  skipPrompt: true,
178
178
  },
179
179
  {
180
- type: 'text',
180
+ type: 'boolean',
181
181
  name: 'bootstrapUser',
182
182
  message: 'bootstrapUser',
183
183
  required: false,
@@ -300,14 +300,14 @@ async function handleUpdate(argv, prompter) {
300
300
  skipPrompt: true,
301
301
  },
302
302
  {
303
- type: 'text',
303
+ type: 'json',
304
304
  name: 'options',
305
305
  message: 'options',
306
306
  required: false,
307
307
  skipPrompt: true,
308
308
  },
309
309
  {
310
- type: 'text',
310
+ type: 'boolean',
311
311
  name: 'bootstrapUser',
312
312
  message: 'bootstrapUser',
313
313
  required: false,
@@ -148,7 +148,7 @@ async function handleCreate(argv, prompter) {
148
148
  required: true,
149
149
  },
150
150
  {
151
- type: 'text',
151
+ type: 'boolean',
152
152
  name: 'isGrant',
153
153
  message: 'isGrant',
154
154
  required: false,
@@ -230,7 +230,7 @@ async function handleUpdate(argv, prompter) {
230
230
  required: false,
231
231
  },
232
232
  {
233
- type: 'text',
233
+ type: 'boolean',
234
234
  name: 'isGrant',
235
235
  message: 'isGrant',
236
236
  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: 'useUpdates',
181
181
  message: 'useUpdates',
182
182
  required: false,
183
183
  skipPrompt: true,
184
184
  },
185
185
  {
186
- type: 'text',
186
+ type: 'boolean',
187
187
  name: 'updateDefaults',
188
188
  message: 'updateDefaults',
189
189
  required: false,
@@ -302,14 +302,14 @@ async function handleUpdate(argv, prompter) {
302
302
  skipPrompt: true,
303
303
  },
304
304
  {
305
- type: 'text',
305
+ type: 'boolean',
306
306
  name: 'useUpdates',
307
307
  message: 'useUpdates',
308
308
  required: false,
309
309
  skipPrompt: true,
310
310
  },
311
311
  {
312
- type: 'text',
312
+ type: 'boolean',
313
313
  name: 'updateDefaults',
314
314
  message: 'updateDefaults',
315
315
  required: false,
@@ -130,14 +130,14 @@ async function handleCreate(argv, prompter) {
130
130
  required: true,
131
131
  },
132
132
  {
133
- type: 'text',
133
+ type: 'boolean',
134
134
  name: 'isVerified',
135
135
  message: 'isVerified',
136
136
  required: false,
137
137
  skipPrompt: true,
138
138
  },
139
139
  {
140
- type: 'text',
140
+ type: 'boolean',
141
141
  name: 'isPrimary',
142
142
  message: 'isPrimary',
143
143
  required: false,
@@ -199,14 +199,14 @@ async function handleUpdate(argv, prompter) {
199
199
  required: false,
200
200
  },
201
201
  {
202
- type: 'text',
202
+ type: 'boolean',
203
203
  name: 'isVerified',
204
204
  message: 'isVerified',
205
205
  required: false,
206
206
  skipPrompt: true,
207
207
  },
208
208
  {
209
- type: 'text',
209
+ type: 'boolean',
210
210
  name: 'isPrimary',
211
211
  message: 'isPrimary',
212
212
  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
  .extendTokenExpires(parsedAnswers, {
@@ -156,7 +156,7 @@ async function handleCreate(argv, prompter) {
156
156
  required: true,
157
157
  },
158
158
  {
159
- type: 'text',
159
+ type: 'json',
160
160
  name: 'data',
161
161
  message: 'data',
162
162
  required: false,
@@ -258,7 +258,7 @@ async function handleUpdate(argv, prompter) {
258
258
  required: false,
259
259
  },
260
260
  {
261
- type: 'text',
261
+ type: 'json',
262
262
  name: 'data',
263
263
  message: 'data',
264
264
  required: false,