@constructive-sdk/cli 0.8.2 → 0.8.4

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 (539) hide show
  1. package/admin/cli/commands/app-level-requirement.js +2 -0
  2. package/admin/cli/commands/app-level.js +2 -0
  3. package/admin/cli/commands/app-permission.js +2 -0
  4. package/admin/cli/commands/invite.js +2 -0
  5. package/admin/cli/commands/membership-type.js +3 -0
  6. package/admin/cli/commands/org-chart-edge-grant.js +2 -0
  7. package/admin/cli/commands/org-chart-edge.js +2 -0
  8. package/admin/cli/commands/org-invite.js +2 -0
  9. package/admin/cli/commands/org-permission.js +2 -0
  10. package/admin/cli/commands.js +7 -7
  11. package/admin/cli/executor.d.ts +3 -3
  12. package/admin/orm/index.d.ts +6 -6
  13. package/admin/orm/index.js +6 -6
  14. package/admin/orm/input-types.d.ts +481 -386
  15. package/admin/orm/models/appAchievement.d.ts +1 -1
  16. package/admin/orm/models/appAdminGrant.d.ts +1 -1
  17. package/admin/orm/models/appGrant.d.ts +1 -1
  18. package/admin/orm/models/appLevel.d.ts +1 -1
  19. package/admin/orm/models/appLevelRequirement.d.ts +1 -1
  20. package/admin/orm/models/appLimit.d.ts +1 -1
  21. package/admin/orm/models/appLimitDefault.d.ts +1 -1
  22. package/admin/orm/models/appMembership.d.ts +1 -1
  23. package/admin/orm/models/appMembershipDefault.d.ts +1 -1
  24. package/admin/orm/models/appOwnerGrant.d.ts +1 -1
  25. package/admin/orm/models/appPermission.d.ts +1 -1
  26. package/admin/orm/models/appPermissionDefault.d.ts +1 -1
  27. package/admin/orm/models/appStep.d.ts +1 -1
  28. package/admin/orm/models/claimedInvite.d.ts +1 -1
  29. package/admin/orm/models/index.d.ts +3 -3
  30. package/admin/orm/models/index.js +7 -7
  31. package/admin/orm/models/invite.d.ts +1 -1
  32. package/admin/orm/models/membershipType.d.ts +1 -1
  33. package/admin/orm/models/orgAdminGrant.d.ts +1 -1
  34. package/admin/orm/models/orgChartEdge.d.ts +1 -1
  35. package/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
  36. package/admin/orm/models/orgClaimedInvite.d.ts +1 -1
  37. package/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
  38. package/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  39. package/admin/orm/models/orgGrant.d.ts +1 -1
  40. package/admin/orm/models/orgInvite.d.ts +1 -1
  41. package/admin/orm/models/orgLimit.d.ts +1 -1
  42. package/admin/orm/models/orgLimitDefault.d.ts +1 -1
  43. package/admin/orm/models/orgMember.d.ts +1 -1
  44. package/admin/orm/models/orgMembership.d.ts +1 -1
  45. package/admin/orm/models/orgMembershipDefault.d.ts +1 -1
  46. package/admin/orm/models/orgOwnerGrant.d.ts +1 -1
  47. package/admin/orm/models/orgPermission.d.ts +1 -1
  48. package/admin/orm/models/orgPermissionDefault.d.ts +1 -1
  49. package/admin/orm/query-builder.js +0 -2
  50. package/auth/cli/commands/audit-log.js +2 -0
  51. package/auth/cli/commands/connected-account.js +3 -0
  52. package/auth/cli/commands/crypto-address.js +2 -0
  53. package/auth/cli/commands/phone-number.js +3 -0
  54. package/auth/cli/commands/user.js +2 -4
  55. package/auth/cli/commands.js +3 -3
  56. package/auth/cli/executor.d.ts +1 -1
  57. package/auth/orm/index.d.ts +2 -2
  58. package/auth/orm/index.js +2 -2
  59. package/auth/orm/input-types.d.ts +189 -99
  60. package/auth/orm/models/auditLog.d.ts +1 -1
  61. package/auth/orm/models/connectedAccount.d.ts +1 -1
  62. package/auth/orm/models/cryptoAddress.d.ts +1 -1
  63. package/auth/orm/models/email.d.ts +1 -1
  64. package/auth/orm/models/index.d.ts +1 -1
  65. package/auth/orm/models/index.js +3 -3
  66. package/auth/orm/models/phoneNumber.d.ts +1 -1
  67. package/auth/orm/models/roleType.d.ts +1 -1
  68. package/auth/orm/models/user.d.ts +1 -1
  69. package/auth/orm/query-builder.js +0 -2
  70. package/esm/admin/cli/commands/app-level-requirement.js +2 -0
  71. package/esm/admin/cli/commands/app-level.js +2 -0
  72. package/esm/admin/cli/commands/app-permission.js +2 -0
  73. package/esm/admin/cli/commands/invite.js +2 -0
  74. package/esm/admin/cli/commands/membership-type.js +3 -0
  75. package/esm/admin/cli/commands/org-chart-edge-grant.js +2 -0
  76. package/esm/admin/cli/commands/org-chart-edge.js +2 -0
  77. package/esm/admin/cli/commands/org-invite.js +2 -0
  78. package/esm/admin/cli/commands/org-permission.js +2 -0
  79. package/esm/admin/cli/commands.js +7 -7
  80. package/esm/admin/cli/executor.d.ts +3 -3
  81. package/esm/admin/orm/index.d.ts +6 -6
  82. package/esm/admin/orm/index.js +6 -6
  83. package/esm/admin/orm/input-types.d.ts +481 -386
  84. package/esm/admin/orm/models/appAchievement.d.ts +1 -1
  85. package/esm/admin/orm/models/appAdminGrant.d.ts +1 -1
  86. package/esm/admin/orm/models/appGrant.d.ts +1 -1
  87. package/esm/admin/orm/models/appLevel.d.ts +1 -1
  88. package/esm/admin/orm/models/appLevelRequirement.d.ts +1 -1
  89. package/esm/admin/orm/models/appLimit.d.ts +1 -1
  90. package/esm/admin/orm/models/appLimitDefault.d.ts +1 -1
  91. package/esm/admin/orm/models/appMembership.d.ts +1 -1
  92. package/esm/admin/orm/models/appMembershipDefault.d.ts +1 -1
  93. package/esm/admin/orm/models/appOwnerGrant.d.ts +1 -1
  94. package/esm/admin/orm/models/appPermission.d.ts +1 -1
  95. package/esm/admin/orm/models/appPermissionDefault.d.ts +1 -1
  96. package/esm/admin/orm/models/appStep.d.ts +1 -1
  97. package/esm/admin/orm/models/claimedInvite.d.ts +1 -1
  98. package/esm/admin/orm/models/index.d.ts +3 -3
  99. package/esm/admin/orm/models/index.js +3 -3
  100. package/esm/admin/orm/models/invite.d.ts +1 -1
  101. package/esm/admin/orm/models/membershipType.d.ts +1 -1
  102. package/esm/admin/orm/models/orgAdminGrant.d.ts +1 -1
  103. package/esm/admin/orm/models/orgChartEdge.d.ts +1 -1
  104. package/esm/admin/orm/models/orgChartEdgeGrant.d.ts +1 -1
  105. package/esm/admin/orm/models/orgClaimedInvite.d.ts +1 -1
  106. package/esm/admin/orm/models/orgGetManagersRecord.d.ts +1 -1
  107. package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  108. package/esm/admin/orm/models/orgGrant.d.ts +1 -1
  109. package/esm/admin/orm/models/orgInvite.d.ts +1 -1
  110. package/esm/admin/orm/models/orgLimit.d.ts +1 -1
  111. package/esm/admin/orm/models/orgLimitDefault.d.ts +1 -1
  112. package/esm/admin/orm/models/orgMember.d.ts +1 -1
  113. package/esm/admin/orm/models/orgMembership.d.ts +1 -1
  114. package/esm/admin/orm/models/orgMembershipDefault.d.ts +1 -1
  115. package/esm/admin/orm/models/orgOwnerGrant.d.ts +1 -1
  116. package/esm/admin/orm/models/orgPermission.d.ts +1 -1
  117. package/esm/admin/orm/models/orgPermissionDefault.d.ts +1 -1
  118. package/esm/admin/orm/query-builder.js +0 -2
  119. package/esm/auth/cli/commands/audit-log.js +2 -0
  120. package/esm/auth/cli/commands/connected-account.js +3 -0
  121. package/esm/auth/cli/commands/crypto-address.js +2 -0
  122. package/esm/auth/cli/commands/phone-number.js +3 -0
  123. package/esm/auth/cli/commands/user.js +2 -4
  124. package/esm/auth/cli/commands.js +3 -3
  125. package/esm/auth/cli/executor.d.ts +1 -1
  126. package/esm/auth/orm/index.d.ts +2 -2
  127. package/esm/auth/orm/index.js +2 -2
  128. package/esm/auth/orm/input-types.d.ts +189 -99
  129. package/esm/auth/orm/models/auditLog.d.ts +1 -1
  130. package/esm/auth/orm/models/connectedAccount.d.ts +1 -1
  131. package/esm/auth/orm/models/cryptoAddress.d.ts +1 -1
  132. package/esm/auth/orm/models/email.d.ts +1 -1
  133. package/esm/auth/orm/models/index.d.ts +1 -1
  134. package/esm/auth/orm/models/index.js +1 -1
  135. package/esm/auth/orm/models/phoneNumber.d.ts +1 -1
  136. package/esm/auth/orm/models/roleType.d.ts +1 -1
  137. package/esm/auth/orm/models/user.d.ts +1 -1
  138. package/esm/auth/orm/query-builder.js +0 -2
  139. package/esm/objects/cli/commands/commit.js +2 -0
  140. package/esm/objects/cli/commands/object.js +0 -4
  141. package/esm/objects/cli/commands/ref.js +2 -0
  142. package/esm/objects/cli/commands/store.js +2 -0
  143. package/esm/objects/orm/input-types.d.ts +33 -3
  144. package/esm/objects/orm/models/commit.d.ts +1 -1
  145. package/esm/objects/orm/models/getAllRecord.d.ts +1 -1
  146. package/esm/objects/orm/models/object.d.ts +1 -1
  147. package/esm/objects/orm/models/ref.d.ts +1 -1
  148. package/esm/objects/orm/models/store.d.ts +1 -1
  149. package/esm/objects/orm/query-builder.js +0 -2
  150. package/esm/public/cli/commands/api-module.js +2 -0
  151. package/esm/public/cli/commands/api.js +5 -0
  152. package/esm/public/cli/commands/app-level-requirement.js +2 -0
  153. package/esm/public/cli/commands/app-level.js +2 -0
  154. package/esm/public/cli/commands/app-permission.js +2 -0
  155. package/esm/public/cli/commands/app.js +4 -0
  156. package/esm/public/cli/commands/ast-migration.js +2 -0
  157. package/esm/public/cli/commands/audit-log.js +2 -0
  158. package/esm/public/cli/commands/check-constraint.js +4 -0
  159. package/esm/public/cli/commands/commit.js +2 -0
  160. package/esm/public/cli/commands/connected-account.js +3 -0
  161. package/esm/public/cli/commands/connected-accounts-module.js +2 -0
  162. package/esm/public/cli/commands/crypto-address.js +2 -0
  163. package/esm/public/cli/commands/crypto-addresses-module.js +3 -0
  164. package/esm/public/cli/commands/crypto-auth-module.js +7 -0
  165. package/esm/public/cli/commands/database-provision-module.js +6 -0
  166. package/esm/public/cli/commands/database.js +4 -0
  167. package/esm/public/cli/commands/default-privilege.js +4 -0
  168. package/esm/public/cli/commands/denormalized-table-field.js +2 -0
  169. package/esm/public/cli/commands/emails-module.js +2 -0
  170. package/esm/public/cli/commands/encrypted-secrets-module.js +2 -0
  171. package/esm/public/cli/commands/field-module.js +2 -0
  172. package/esm/public/cli/commands/field.js +7 -0
  173. package/esm/public/cli/commands/foreign-key-constraint.js +7 -0
  174. package/esm/public/cli/commands/hierarchy-module.js +11 -0
  175. package/esm/public/cli/commands/index.js +46 -0
  176. package/esm/public/cli/commands/invite.js +2 -0
  177. package/esm/public/cli/commands/invites-module.js +5 -0
  178. package/esm/public/cli/commands/levels-module.js +16 -0
  179. package/esm/public/cli/commands/limits-module.js +10 -0
  180. package/esm/public/cli/commands/membership-type.js +3 -0
  181. package/esm/public/cli/commands/membership-types-module.js +2 -0
  182. package/esm/public/cli/commands/memberships-module.js +13 -0
  183. package/esm/public/cli/commands/node-type-registry.js +6 -0
  184. package/esm/public/cli/commands/object.js +0 -4
  185. package/esm/public/cli/commands/org-chart-edge-grant.js +2 -0
  186. package/esm/public/cli/commands/org-chart-edge.js +2 -0
  187. package/esm/public/cli/commands/org-invite.js +2 -0
  188. package/esm/public/cli/commands/org-permission.js +2 -0
  189. package/esm/public/cli/commands/permissions-module.js +8 -0
  190. package/esm/public/cli/commands/phone-number.js +3 -0
  191. package/esm/public/cli/commands/phone-numbers-module.js +2 -0
  192. package/esm/public/cli/commands/policy.js +6 -0
  193. package/esm/public/cli/commands/primary-key-constraint.js +4 -0
  194. package/esm/public/cli/commands/profiles-module.js +6 -0
  195. package/esm/public/cli/commands/ref.js +2 -0
  196. package/esm/public/cli/commands/relation-provision.js +11 -0
  197. package/esm/public/cli/commands/rls-module.js +5 -21
  198. package/esm/public/cli/commands/schema-grant.js +2 -0
  199. package/esm/public/cli/commands/schema.js +6 -0
  200. package/esm/public/cli/commands/secrets-module.js +2 -0
  201. package/esm/public/cli/commands/secure-table-provision.js +27 -0
  202. package/esm/public/cli/commands/sessions-module.js +4 -0
  203. package/esm/public/cli/commands/site-metadatum.js +3 -0
  204. package/esm/public/cli/commands/site-module.js +2 -0
  205. package/esm/public/cli/commands/site.js +4 -0
  206. package/esm/public/cli/commands/sql-migration.js +7 -0
  207. package/esm/public/cli/commands/store.js +2 -0
  208. package/esm/public/cli/commands/table-grant.js +3 -0
  209. package/esm/public/cli/commands/table-template-module.js +3 -0
  210. package/esm/public/cli/commands/table.js +7 -0
  211. package/esm/public/cli/commands/trigger-function.js +3 -0
  212. package/esm/public/cli/commands/trigger.js +5 -0
  213. package/esm/public/cli/commands/unique-constraint.js +5 -0
  214. package/esm/public/cli/commands/user-auth-module.js +17 -0
  215. package/esm/public/cli/commands/user.js +2 -4
  216. package/esm/public/cli/commands/users-module.js +3 -0
  217. package/esm/public/cli/commands/uuid-module.js +3 -0
  218. package/esm/public/cli/commands/view-grant.js +3 -0
  219. package/esm/public/cli/commands/view-rule.js +4 -0
  220. package/esm/public/cli/commands/view.js +5 -0
  221. package/esm/public/cli/commands.js +15 -17
  222. package/esm/public/cli/executor.d.ts +11 -12
  223. package/esm/public/orm/index.d.ts +17 -19
  224. package/esm/public/orm/index.js +12 -14
  225. package/esm/public/orm/input-types.d.ts +2363 -927
  226. package/esm/public/orm/input-types.js +0 -3
  227. package/esm/public/orm/models/api.d.ts +1 -1
  228. package/esm/public/orm/models/apiModule.d.ts +1 -1
  229. package/esm/public/orm/models/apiSchema.d.ts +1 -1
  230. package/esm/public/orm/models/app.d.ts +1 -1
  231. package/esm/public/orm/models/appAchievement.d.ts +1 -1
  232. package/esm/public/orm/models/appAdminGrant.d.ts +1 -1
  233. package/esm/public/orm/models/appGrant.d.ts +1 -1
  234. package/esm/public/orm/models/appLevel.d.ts +1 -1
  235. package/esm/public/orm/models/appLevelRequirement.d.ts +1 -1
  236. package/esm/public/orm/models/appLimit.d.ts +1 -1
  237. package/esm/public/orm/models/appLimitDefault.d.ts +1 -1
  238. package/esm/public/orm/models/appMembership.d.ts +1 -1
  239. package/esm/public/orm/models/appMembershipDefault.d.ts +1 -1
  240. package/esm/public/orm/models/appOwnerGrant.d.ts +1 -1
  241. package/esm/public/orm/models/appPermission.d.ts +1 -1
  242. package/esm/public/orm/models/appPermissionDefault.d.ts +1 -1
  243. package/esm/public/orm/models/appStep.d.ts +1 -1
  244. package/esm/public/orm/models/astMigration.d.ts +1 -1
  245. package/esm/public/orm/models/auditLog.d.ts +1 -1
  246. package/esm/public/orm/models/checkConstraint.d.ts +1 -1
  247. package/esm/public/orm/models/claimedInvite.d.ts +1 -1
  248. package/esm/public/orm/models/commit.d.ts +1 -1
  249. package/esm/public/orm/models/connectedAccount.d.ts +1 -1
  250. package/esm/public/orm/models/connectedAccountsModule.d.ts +1 -1
  251. package/esm/public/orm/models/cryptoAddress.d.ts +1 -1
  252. package/esm/public/orm/models/cryptoAddressesModule.d.ts +1 -1
  253. package/esm/public/orm/models/cryptoAuthModule.d.ts +1 -1
  254. package/esm/public/orm/models/database.d.ts +1 -1
  255. package/esm/public/orm/models/databaseProvisionModule.d.ts +1 -1
  256. package/esm/public/orm/models/defaultIdsModule.d.ts +1 -1
  257. package/esm/public/orm/models/defaultPrivilege.d.ts +1 -1
  258. package/esm/public/orm/models/denormalizedTableField.d.ts +1 -1
  259. package/esm/public/orm/models/domain.d.ts +1 -1
  260. package/esm/public/orm/models/email.d.ts +1 -1
  261. package/esm/public/orm/models/emailsModule.d.ts +1 -1
  262. package/esm/public/orm/models/encryptedSecretsModule.d.ts +1 -1
  263. package/esm/public/orm/models/field.d.ts +1 -1
  264. package/esm/public/orm/models/fieldModule.d.ts +1 -1
  265. package/esm/public/orm/models/foreignKeyConstraint.d.ts +1 -1
  266. package/esm/public/orm/models/fullTextSearch.d.ts +1 -1
  267. package/esm/public/orm/models/getAllRecord.d.ts +1 -1
  268. package/esm/public/orm/models/hierarchyModule.d.ts +1 -1
  269. package/esm/public/orm/models/index.d.ts +6 -7
  270. package/esm/public/orm/models/index.js +6 -7
  271. package/esm/public/orm/models/indexModel.d.ts +1 -1
  272. package/esm/public/orm/models/invite.d.ts +1 -1
  273. package/esm/public/orm/models/invitesModule.d.ts +1 -1
  274. package/esm/public/orm/models/levelsModule.d.ts +1 -1
  275. package/esm/public/orm/models/limitsModule.d.ts +1 -1
  276. package/esm/public/orm/models/membershipType.d.ts +1 -1
  277. package/esm/public/orm/models/membershipTypesModule.d.ts +1 -1
  278. package/esm/public/orm/models/membershipsModule.d.ts +1 -1
  279. package/esm/public/orm/models/nodeTypeRegistry.d.ts +1 -1
  280. package/esm/public/orm/models/object.d.ts +1 -1
  281. package/esm/public/orm/models/orgAdminGrant.d.ts +1 -1
  282. package/esm/public/orm/models/orgChartEdge.d.ts +1 -1
  283. package/esm/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
  284. package/esm/public/orm/models/orgClaimedInvite.d.ts +1 -1
  285. package/esm/public/orm/models/orgGetManagersRecord.d.ts +1 -1
  286. package/esm/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  287. package/esm/public/orm/models/orgGrant.d.ts +1 -1
  288. package/esm/public/orm/models/orgInvite.d.ts +1 -1
  289. package/esm/public/orm/models/orgLimit.d.ts +1 -1
  290. package/esm/public/orm/models/orgLimitDefault.d.ts +1 -1
  291. package/esm/public/orm/models/orgMember.d.ts +1 -1
  292. package/esm/public/orm/models/orgMembership.d.ts +1 -1
  293. package/esm/public/orm/models/orgMembershipDefault.d.ts +1 -1
  294. package/esm/public/orm/models/orgOwnerGrant.d.ts +1 -1
  295. package/esm/public/orm/models/orgPermission.d.ts +1 -1
  296. package/esm/public/orm/models/orgPermissionDefault.d.ts +1 -1
  297. package/esm/public/orm/models/permissionsModule.d.ts +1 -1
  298. package/esm/public/orm/models/phoneNumber.d.ts +1 -1
  299. package/esm/public/orm/models/phoneNumbersModule.d.ts +1 -1
  300. package/esm/public/orm/models/policy.d.ts +1 -1
  301. package/esm/public/orm/models/primaryKeyConstraint.d.ts +1 -1
  302. package/esm/public/orm/models/profilesModule.d.ts +1 -1
  303. package/esm/public/orm/models/ref.d.ts +1 -1
  304. package/esm/public/orm/models/relationProvision.d.ts +1 -1
  305. package/esm/public/orm/models/rlsModule.d.ts +1 -1
  306. package/esm/public/orm/models/roleType.d.ts +1 -1
  307. package/esm/public/orm/models/schema.d.ts +1 -1
  308. package/esm/public/orm/models/schemaGrant.d.ts +1 -1
  309. package/esm/public/orm/models/secretsModule.d.ts +1 -1
  310. package/esm/public/orm/models/secureTableProvision.d.ts +1 -1
  311. package/esm/public/orm/models/sessionsModule.d.ts +1 -1
  312. package/esm/public/orm/models/site.d.ts +1 -1
  313. package/esm/public/orm/models/siteMetadatum.d.ts +1 -1
  314. package/esm/public/orm/models/siteModule.d.ts +1 -1
  315. package/esm/public/orm/models/siteTheme.d.ts +1 -1
  316. package/esm/public/orm/models/sqlMigration.d.ts +1 -1
  317. package/esm/public/orm/models/store.d.ts +1 -1
  318. package/esm/public/orm/models/table.d.ts +1 -1
  319. package/esm/public/orm/models/tableGrant.d.ts +1 -1
  320. package/esm/public/orm/models/tableTemplateModule.d.ts +1 -1
  321. package/esm/public/orm/models/trigger.d.ts +1 -1
  322. package/esm/public/orm/models/triggerFunction.d.ts +1 -1
  323. package/esm/public/orm/models/uniqueConstraint.d.ts +1 -1
  324. package/esm/public/orm/models/user.d.ts +1 -1
  325. package/esm/public/orm/models/userAuthModule.d.ts +1 -1
  326. package/esm/public/orm/models/usersModule.d.ts +1 -1
  327. package/esm/public/orm/models/uuidModule.d.ts +1 -1
  328. package/esm/public/orm/models/view.d.ts +1 -1
  329. package/esm/public/orm/models/viewGrant.d.ts +1 -1
  330. package/esm/public/orm/models/viewRule.d.ts +1 -1
  331. package/esm/public/orm/models/viewTable.d.ts +1 -1
  332. package/esm/public/orm/mutation/index.d.ts +9 -9
  333. package/esm/public/orm/mutation/index.js +12 -12
  334. package/esm/public/orm/query-builder.js +0 -2
  335. package/objects/cli/commands/commit.js +2 -0
  336. package/objects/cli/commands/object.js +0 -4
  337. package/objects/cli/commands/ref.js +2 -0
  338. package/objects/cli/commands/store.js +2 -0
  339. package/objects/orm/input-types.d.ts +33 -3
  340. package/objects/orm/models/commit.d.ts +1 -1
  341. package/objects/orm/models/getAllRecord.d.ts +1 -1
  342. package/objects/orm/models/object.d.ts +1 -1
  343. package/objects/orm/models/ref.d.ts +1 -1
  344. package/objects/orm/models/store.d.ts +1 -1
  345. package/objects/orm/query-builder.js +0 -2
  346. package/package.json +7 -7
  347. package/public/cli/commands/api-module.js +2 -0
  348. package/public/cli/commands/api.js +5 -0
  349. package/public/cli/commands/app-level-requirement.js +2 -0
  350. package/public/cli/commands/app-level.js +2 -0
  351. package/public/cli/commands/app-permission.js +2 -0
  352. package/public/cli/commands/app.js +4 -0
  353. package/public/cli/commands/ast-migration.js +2 -0
  354. package/public/cli/commands/audit-log.js +2 -0
  355. package/public/cli/commands/check-constraint.js +4 -0
  356. package/public/cli/commands/commit.js +2 -0
  357. package/public/cli/commands/connected-account.js +3 -0
  358. package/public/cli/commands/connected-accounts-module.js +2 -0
  359. package/public/cli/commands/crypto-address.js +2 -0
  360. package/public/cli/commands/crypto-addresses-module.js +3 -0
  361. package/public/cli/commands/crypto-auth-module.js +7 -0
  362. package/public/cli/commands/database-provision-module.js +6 -0
  363. package/public/cli/commands/database.js +4 -0
  364. package/public/cli/commands/default-privilege.js +4 -0
  365. package/public/cli/commands/denormalized-table-field.js +2 -0
  366. package/public/cli/commands/emails-module.js +2 -0
  367. package/public/cli/commands/encrypted-secrets-module.js +2 -0
  368. package/public/cli/commands/field-module.js +2 -0
  369. package/public/cli/commands/field.js +7 -0
  370. package/public/cli/commands/foreign-key-constraint.js +7 -0
  371. package/public/cli/commands/hierarchy-module.js +11 -0
  372. package/public/cli/commands/index.js +46 -0
  373. package/public/cli/commands/invite.js +2 -0
  374. package/public/cli/commands/invites-module.js +5 -0
  375. package/public/cli/commands/levels-module.js +16 -0
  376. package/public/cli/commands/limits-module.js +10 -0
  377. package/public/cli/commands/membership-type.js +3 -0
  378. package/public/cli/commands/membership-types-module.js +2 -0
  379. package/public/cli/commands/memberships-module.js +13 -0
  380. package/public/cli/commands/node-type-registry.js +6 -0
  381. package/public/cli/commands/object.js +0 -4
  382. package/public/cli/commands/org-chart-edge-grant.js +2 -0
  383. package/public/cli/commands/org-chart-edge.js +2 -0
  384. package/public/cli/commands/org-invite.js +2 -0
  385. package/public/cli/commands/org-permission.js +2 -0
  386. package/public/cli/commands/permissions-module.js +8 -0
  387. package/public/cli/commands/phone-number.js +3 -0
  388. package/public/cli/commands/phone-numbers-module.js +2 -0
  389. package/public/cli/commands/policy.js +6 -0
  390. package/public/cli/commands/primary-key-constraint.js +4 -0
  391. package/public/cli/commands/profiles-module.js +6 -0
  392. package/public/cli/commands/ref.js +2 -0
  393. package/public/cli/commands/relation-provision.js +11 -0
  394. package/public/cli/commands/rls-module.js +5 -21
  395. package/public/cli/commands/schema-grant.js +2 -0
  396. package/public/cli/commands/schema.js +6 -0
  397. package/public/cli/commands/secrets-module.js +2 -0
  398. package/public/cli/commands/secure-table-provision.js +27 -0
  399. package/public/cli/commands/sessions-module.js +4 -0
  400. package/public/cli/commands/site-metadatum.js +3 -0
  401. package/public/cli/commands/site-module.js +2 -0
  402. package/public/cli/commands/site.js +4 -0
  403. package/public/cli/commands/sql-migration.js +7 -0
  404. package/public/cli/commands/store.js +2 -0
  405. package/public/cli/commands/table-grant.js +3 -0
  406. package/public/cli/commands/table-template-module.js +3 -0
  407. package/public/cli/commands/table.js +7 -0
  408. package/public/cli/commands/trigger-function.js +3 -0
  409. package/public/cli/commands/trigger.js +5 -0
  410. package/public/cli/commands/unique-constraint.js +5 -0
  411. package/public/cli/commands/user-auth-module.js +17 -0
  412. package/public/cli/commands/user.js +2 -4
  413. package/public/cli/commands/users-module.js +3 -0
  414. package/public/cli/commands/uuid-module.js +3 -0
  415. package/public/cli/commands/view-grant.js +3 -0
  416. package/public/cli/commands/view-rule.js +4 -0
  417. package/public/cli/commands/view.js +5 -0
  418. package/public/cli/commands.js +15 -17
  419. package/public/cli/executor.d.ts +11 -12
  420. package/public/orm/index.d.ts +17 -19
  421. package/public/orm/index.js +12 -14
  422. package/public/orm/input-types.d.ts +2363 -927
  423. package/public/orm/input-types.js +0 -3
  424. package/public/orm/models/api.d.ts +1 -1
  425. package/public/orm/models/apiModule.d.ts +1 -1
  426. package/public/orm/models/apiSchema.d.ts +1 -1
  427. package/public/orm/models/app.d.ts +1 -1
  428. package/public/orm/models/appAchievement.d.ts +1 -1
  429. package/public/orm/models/appAdminGrant.d.ts +1 -1
  430. package/public/orm/models/appGrant.d.ts +1 -1
  431. package/public/orm/models/appLevel.d.ts +1 -1
  432. package/public/orm/models/appLevelRequirement.d.ts +1 -1
  433. package/public/orm/models/appLimit.d.ts +1 -1
  434. package/public/orm/models/appLimitDefault.d.ts +1 -1
  435. package/public/orm/models/appMembership.d.ts +1 -1
  436. package/public/orm/models/appMembershipDefault.d.ts +1 -1
  437. package/public/orm/models/appOwnerGrant.d.ts +1 -1
  438. package/public/orm/models/appPermission.d.ts +1 -1
  439. package/public/orm/models/appPermissionDefault.d.ts +1 -1
  440. package/public/orm/models/appStep.d.ts +1 -1
  441. package/public/orm/models/astMigration.d.ts +1 -1
  442. package/public/orm/models/auditLog.d.ts +1 -1
  443. package/public/orm/models/checkConstraint.d.ts +1 -1
  444. package/public/orm/models/claimedInvite.d.ts +1 -1
  445. package/public/orm/models/commit.d.ts +1 -1
  446. package/public/orm/models/connectedAccount.d.ts +1 -1
  447. package/public/orm/models/connectedAccountsModule.d.ts +1 -1
  448. package/public/orm/models/cryptoAddress.d.ts +1 -1
  449. package/public/orm/models/cryptoAddressesModule.d.ts +1 -1
  450. package/public/orm/models/cryptoAuthModule.d.ts +1 -1
  451. package/public/orm/models/database.d.ts +1 -1
  452. package/public/orm/models/databaseProvisionModule.d.ts +1 -1
  453. package/public/orm/models/defaultIdsModule.d.ts +1 -1
  454. package/public/orm/models/defaultPrivilege.d.ts +1 -1
  455. package/public/orm/models/denormalizedTableField.d.ts +1 -1
  456. package/public/orm/models/domain.d.ts +1 -1
  457. package/public/orm/models/email.d.ts +1 -1
  458. package/public/orm/models/emailsModule.d.ts +1 -1
  459. package/public/orm/models/encryptedSecretsModule.d.ts +1 -1
  460. package/public/orm/models/field.d.ts +1 -1
  461. package/public/orm/models/fieldModule.d.ts +1 -1
  462. package/public/orm/models/foreignKeyConstraint.d.ts +1 -1
  463. package/public/orm/models/fullTextSearch.d.ts +1 -1
  464. package/public/orm/models/getAllRecord.d.ts +1 -1
  465. package/public/orm/models/hierarchyModule.d.ts +1 -1
  466. package/public/orm/models/index.d.ts +6 -7
  467. package/public/orm/models/index.js +15 -17
  468. package/public/orm/models/indexModel.d.ts +1 -1
  469. package/public/orm/models/invite.d.ts +1 -1
  470. package/public/orm/models/invitesModule.d.ts +1 -1
  471. package/public/orm/models/levelsModule.d.ts +1 -1
  472. package/public/orm/models/limitsModule.d.ts +1 -1
  473. package/public/orm/models/membershipType.d.ts +1 -1
  474. package/public/orm/models/membershipTypesModule.d.ts +1 -1
  475. package/public/orm/models/membershipsModule.d.ts +1 -1
  476. package/public/orm/models/nodeTypeRegistry.d.ts +1 -1
  477. package/public/orm/models/object.d.ts +1 -1
  478. package/public/orm/models/orgAdminGrant.d.ts +1 -1
  479. package/public/orm/models/orgChartEdge.d.ts +1 -1
  480. package/public/orm/models/orgChartEdgeGrant.d.ts +1 -1
  481. package/public/orm/models/orgClaimedInvite.d.ts +1 -1
  482. package/public/orm/models/orgGetManagersRecord.d.ts +1 -1
  483. package/public/orm/models/orgGetSubordinatesRecord.d.ts +1 -1
  484. package/public/orm/models/orgGrant.d.ts +1 -1
  485. package/public/orm/models/orgInvite.d.ts +1 -1
  486. package/public/orm/models/orgLimit.d.ts +1 -1
  487. package/public/orm/models/orgLimitDefault.d.ts +1 -1
  488. package/public/orm/models/orgMember.d.ts +1 -1
  489. package/public/orm/models/orgMembership.d.ts +1 -1
  490. package/public/orm/models/orgMembershipDefault.d.ts +1 -1
  491. package/public/orm/models/orgOwnerGrant.d.ts +1 -1
  492. package/public/orm/models/orgPermission.d.ts +1 -1
  493. package/public/orm/models/orgPermissionDefault.d.ts +1 -1
  494. package/public/orm/models/permissionsModule.d.ts +1 -1
  495. package/public/orm/models/phoneNumber.d.ts +1 -1
  496. package/public/orm/models/phoneNumbersModule.d.ts +1 -1
  497. package/public/orm/models/policy.d.ts +1 -1
  498. package/public/orm/models/primaryKeyConstraint.d.ts +1 -1
  499. package/public/orm/models/profilesModule.d.ts +1 -1
  500. package/public/orm/models/ref.d.ts +1 -1
  501. package/public/orm/models/relationProvision.d.ts +1 -1
  502. package/public/orm/models/rlsModule.d.ts +1 -1
  503. package/public/orm/models/roleType.d.ts +1 -1
  504. package/public/orm/models/schema.d.ts +1 -1
  505. package/public/orm/models/schemaGrant.d.ts +1 -1
  506. package/public/orm/models/secretsModule.d.ts +1 -1
  507. package/public/orm/models/secureTableProvision.d.ts +1 -1
  508. package/public/orm/models/sessionsModule.d.ts +1 -1
  509. package/public/orm/models/site.d.ts +1 -1
  510. package/public/orm/models/siteMetadatum.d.ts +1 -1
  511. package/public/orm/models/siteModule.d.ts +1 -1
  512. package/public/orm/models/siteTheme.d.ts +1 -1
  513. package/public/orm/models/sqlMigration.d.ts +1 -1
  514. package/public/orm/models/store.d.ts +1 -1
  515. package/public/orm/models/table.d.ts +1 -1
  516. package/public/orm/models/tableGrant.d.ts +1 -1
  517. package/public/orm/models/tableTemplateModule.d.ts +1 -1
  518. package/public/orm/models/trigger.d.ts +1 -1
  519. package/public/orm/models/triggerFunction.d.ts +1 -1
  520. package/public/orm/models/uniqueConstraint.d.ts +1 -1
  521. package/public/orm/models/user.d.ts +1 -1
  522. package/public/orm/models/userAuthModule.d.ts +1 -1
  523. package/public/orm/models/usersModule.d.ts +1 -1
  524. package/public/orm/models/uuidModule.d.ts +1 -1
  525. package/public/orm/models/view.d.ts +1 -1
  526. package/public/orm/models/viewGrant.d.ts +1 -1
  527. package/public/orm/models/viewRule.d.ts +1 -1
  528. package/public/orm/models/viewTable.d.ts +1 -1
  529. package/public/orm/mutation/index.d.ts +9 -9
  530. package/public/orm/mutation/index.js +12 -12
  531. package/public/orm/query-builder.js +0 -2
  532. package/esm/public/cli/commands/table-module.d.ts +0 -8
  533. package/esm/public/cli/commands/table-module.js +0 -354
  534. package/esm/public/orm/models/tableModule.d.ts +0 -56
  535. package/esm/public/orm/models/tableModule.js +0 -94
  536. package/public/cli/commands/table-module.d.ts +0 -8
  537. package/public/cli/commands/table-module.js +0 -356
  538. package/public/orm/models/tableModule.d.ts +0 -56
  539. package/public/orm/models/tableModule.js +0 -98
@@ -10,7 +10,7 @@ import type { ViewGrantWithRelations, ViewGrantSelect, ViewGrantFilter, ViewGran
10
10
  export declare class ViewGrantModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
13
- findMany<S extends ViewGrantSelect>(args: FindManyArgs<S, ViewGrantFilter, ViewGrantOrderBy> & {
13
+ findMany<S extends ViewGrantSelect>(args: FindManyArgs<S, ViewGrantFilter, never, ViewGrantOrderBy> & {
14
14
  select: S;
15
15
  } & StrictSelect<S, ViewGrantSelect>): QueryBuilder<{
16
16
  viewGrants: ConnectionResult<InferSelectResult<ViewGrantWithRelations, S>>;
@@ -10,7 +10,7 @@ import type { ViewRuleWithRelations, ViewRuleSelect, ViewRuleFilter, ViewRuleOrd
10
10
  export declare class ViewRuleModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
13
- findMany<S extends ViewRuleSelect>(args: FindManyArgs<S, ViewRuleFilter, ViewRuleOrderBy> & {
13
+ findMany<S extends ViewRuleSelect>(args: FindManyArgs<S, ViewRuleFilter, never, ViewRuleOrderBy> & {
14
14
  select: S;
15
15
  } & StrictSelect<S, ViewRuleSelect>): QueryBuilder<{
16
16
  viewRules: ConnectionResult<InferSelectResult<ViewRuleWithRelations, S>>;
@@ -10,7 +10,7 @@ import type { ViewTableWithRelations, ViewTableSelect, ViewTableFilter, ViewTabl
10
10
  export declare class ViewTableModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
13
- findMany<S extends ViewTableSelect>(args: FindManyArgs<S, ViewTableFilter, ViewTableOrderBy> & {
13
+ findMany<S extends ViewTableSelect>(args: FindManyArgs<S, ViewTableFilter, never, ViewTableOrderBy> & {
14
14
  select: S;
15
15
  } & StrictSelect<S, ViewTableSelect>): QueryBuilder<{
16
16
  viewTables: ConnectionResult<InferSelectResult<ViewTableWithRelations, S>>;
@@ -6,7 +6,7 @@
6
6
  import { OrmClient } from '../client';
7
7
  import { QueryBuilder } from '../query-builder';
8
8
  import type { InferSelectResult, StrictSelect } from '../select-types';
9
- import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, FreezeObjectsInput, InitEmptyRepoInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ResetPasswordInput, RemoveNodeAtPathInput, BootstrapUserInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, SignInOneTimeTokenInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignInInput, SignUpInput, SetFieldOrderInput, OneTimeTokenInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ApplyRlsInput, ForgotPasswordInput, SendVerificationEmailInput, VerifyPasswordInput, VerifyTotpInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, BootstrapUserPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, SignInOneTimeTokenPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignInPayload, SignUpPayload, SetFieldOrderPayload, OneTimeTokenPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ApplyRlsPayload, ForgotPasswordPayload, SendVerificationEmailPayload, VerifyPasswordPayload, VerifyTotpPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, BootstrapUserPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, SignInOneTimeTokenPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignInPayloadSelect, SignUpPayloadSelect, SetFieldOrderPayloadSelect, OneTimeTokenPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ApplyRlsPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
9
+ import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, SubmitInviteCodeInput, SubmitOrgInviteCodeInput, FreezeObjectsInput, InitEmptyRepoInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ResetPasswordInput, BootstrapUserInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, SignInOneTimeTokenInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, SignInInput, SignUpInput, SetFieldOrderInput, OneTimeTokenInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ApplyRlsInput, ForgotPasswordInput, SendVerificationEmailInput, VerifyPasswordInput, VerifyTotpInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, SubmitInviteCodePayload, SubmitOrgInviteCodePayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ResetPasswordPayload, BootstrapUserPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, SignInOneTimeTokenPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, SignInPayload, SignUpPayload, SetFieldOrderPayload, OneTimeTokenPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ApplyRlsPayload, ForgotPasswordPayload, SendVerificationEmailPayload, VerifyPasswordPayload, VerifyTotpPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, SubmitInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ResetPasswordPayloadSelect, BootstrapUserPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, SignInOneTimeTokenPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, SignInPayloadSelect, SignUpPayloadSelect, SetFieldOrderPayloadSelect, OneTimeTokenPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ApplyRlsPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect } from '../input-types';
10
10
  export interface SignOutVariables {
11
11
  input: SignOutInput;
12
12
  }
@@ -40,12 +40,12 @@ export interface VerifyEmailVariables {
40
40
  export interface ResetPasswordVariables {
41
41
  input: ResetPasswordInput;
42
42
  }
43
- export interface RemoveNodeAtPathVariables {
44
- input: RemoveNodeAtPathInput;
45
- }
46
43
  export interface BootstrapUserVariables {
47
44
  input: BootstrapUserInput;
48
45
  }
46
+ export interface RemoveNodeAtPathVariables {
47
+ input: RemoveNodeAtPathInput;
48
+ }
49
49
  export interface SetDataAtPathVariables {
50
50
  input: SetDataAtPathInput;
51
51
  }
@@ -175,16 +175,16 @@ export declare function createMutationOperations(client: OrmClient): {
175
175
  } & StrictSelect<S, ResetPasswordPayloadSelect>) => QueryBuilder<{
176
176
  resetPassword: InferSelectResult<ResetPasswordPayload, S> | null;
177
177
  }>;
178
- removeNodeAtPath: <S extends RemoveNodeAtPathPayloadSelect>(args: RemoveNodeAtPathVariables, options: {
179
- select: S;
180
- } & StrictSelect<S, RemoveNodeAtPathPayloadSelect>) => QueryBuilder<{
181
- removeNodeAtPath: InferSelectResult<RemoveNodeAtPathPayload, S> | null;
182
- }>;
183
178
  bootstrapUser: <S extends BootstrapUserPayloadSelect>(args: BootstrapUserVariables, options: {
184
179
  select: S;
185
180
  } & StrictSelect<S, BootstrapUserPayloadSelect>) => QueryBuilder<{
186
181
  bootstrapUser: InferSelectResult<BootstrapUserPayload, S> | null;
187
182
  }>;
183
+ removeNodeAtPath: <S extends RemoveNodeAtPathPayloadSelect>(args: RemoveNodeAtPathVariables, options: {
184
+ select: S;
185
+ } & StrictSelect<S, RemoveNodeAtPathPayloadSelect>) => QueryBuilder<{
186
+ removeNodeAtPath: InferSelectResult<RemoveNodeAtPathPayload, S> | null;
187
+ }>;
188
188
  setDataAtPath: <S extends SetDataAtPathPayloadSelect>(args: SetDataAtPathVariables, options: {
189
189
  select: S;
190
190
  } & StrictSelect<S, SetDataAtPathPayloadSelect>) => QueryBuilder<{
@@ -137,18 +137,6 @@ function createMutationOperations(client) {
137
137
  },
138
138
  ], input_types_1.connectionFieldsMap, 'ResetPasswordPayload'),
139
139
  }),
140
- removeNodeAtPath: (args, options) => new query_builder_1.QueryBuilder({
141
- client,
142
- operation: 'mutation',
143
- operationName: 'RemoveNodeAtPath',
144
- fieldName: 'removeNodeAtPath',
145
- ...(0, query_builder_1.buildCustomDocument)('mutation', 'RemoveNodeAtPath', 'removeNodeAtPath', options.select, args, [
146
- {
147
- name: 'input',
148
- type: 'RemoveNodeAtPathInput!',
149
- },
150
- ], input_types_1.connectionFieldsMap, 'RemoveNodeAtPathPayload'),
151
- }),
152
140
  bootstrapUser: (args, options) => new query_builder_1.QueryBuilder({
153
141
  client,
154
142
  operation: 'mutation',
@@ -161,6 +149,18 @@ function createMutationOperations(client) {
161
149
  },
162
150
  ], input_types_1.connectionFieldsMap, 'BootstrapUserPayload'),
163
151
  }),
152
+ removeNodeAtPath: (args, options) => new query_builder_1.QueryBuilder({
153
+ client,
154
+ operation: 'mutation',
155
+ operationName: 'RemoveNodeAtPath',
156
+ fieldName: 'removeNodeAtPath',
157
+ ...(0, query_builder_1.buildCustomDocument)('mutation', 'RemoveNodeAtPath', 'removeNodeAtPath', options.select, args, [
158
+ {
159
+ name: 'input',
160
+ type: 'RemoveNodeAtPathInput!',
161
+ },
162
+ ], input_types_1.connectionFieldsMap, 'RemoveNodeAtPathPayload'),
163
+ }),
164
164
  setDataAtPath: (args, options) => new query_builder_1.QueryBuilder({
165
165
  client,
166
166
  operation: 'mutation',
@@ -192,7 +192,6 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
192
192
  }, variableDefinitions, queryArgs, variables);
193
193
  addVariable({
194
194
  varName: 'where',
195
- argName: 'filter',
196
195
  typeName: filterTypeName,
197
196
  value: args.where,
198
197
  }, variableDefinitions, queryArgs, variables);
@@ -244,7 +243,6 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
244
243
  }, variableDefinitions, queryArgs, variables);
245
244
  addVariable({
246
245
  varName: 'where',
247
- argName: 'filter',
248
246
  typeName: filterTypeName,
249
247
  value: args.where,
250
248
  }, variableDefinitions, queryArgs, variables);
@@ -1,8 +0,0 @@
1
- /**
2
- * CLI commands for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { CLIOptions, Inquirerer } from 'inquirerer';
7
- declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
- export default _default;
@@ -1,354 +0,0 @@
1
- /**
2
- * CLI commands for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { extractFirst } from 'inquirerer';
7
- import { getClient } from '../executor';
8
- import { coerceAnswers, stripUndefined } from '../utils';
9
- const fieldSchema = {
10
- id: 'uuid',
11
- databaseId: 'uuid',
12
- schemaId: 'uuid',
13
- tableId: 'uuid',
14
- tableName: 'string',
15
- nodeType: 'string',
16
- useRls: 'boolean',
17
- data: 'json',
18
- fields: 'uuid',
19
- };
20
- const usage = '\ntable-module <command>\n\nCommands:\n list List all tableModule records\n get Get a tableModule by ID\n create Create a new tableModule\n update Update an existing tableModule\n delete Delete a tableModule\n\n --help, -h Show this help message\n';
21
- export default async (argv, prompter, _options) => {
22
- if (argv.help || argv.h) {
23
- console.log(usage);
24
- process.exit(0);
25
- }
26
- const { first: subcommand, newArgv } = extractFirst(argv);
27
- if (!subcommand) {
28
- const answer = await prompter.prompt(argv, [
29
- {
30
- type: 'autocomplete',
31
- name: 'subcommand',
32
- message: 'What do you want to do?',
33
- options: ['list', 'get', 'create', 'update', 'delete'],
34
- },
35
- ]);
36
- return handleTableSubcommand(answer.subcommand, newArgv, prompter);
37
- }
38
- return handleTableSubcommand(subcommand, newArgv, prompter);
39
- };
40
- async function handleTableSubcommand(subcommand, argv, prompter) {
41
- switch (subcommand) {
42
- case 'list':
43
- return handleList(argv, prompter);
44
- case 'get':
45
- return handleGet(argv, prompter);
46
- case 'create':
47
- return handleCreate(argv, prompter);
48
- case 'update':
49
- return handleUpdate(argv, prompter);
50
- case 'delete':
51
- return handleDelete(argv, prompter);
52
- default:
53
- console.log(usage);
54
- process.exit(1);
55
- }
56
- }
57
- async function handleList(_argv, _prompter) {
58
- try {
59
- const client = getClient();
60
- const result = await client.tableModule
61
- .findMany({
62
- select: {
63
- id: true,
64
- databaseId: true,
65
- schemaId: true,
66
- tableId: true,
67
- tableName: true,
68
- nodeType: true,
69
- useRls: true,
70
- data: true,
71
- fields: true,
72
- },
73
- })
74
- .execute();
75
- console.log(JSON.stringify(result, null, 2));
76
- }
77
- catch (error) {
78
- console.error('Failed to list records.');
79
- if (error instanceof Error) {
80
- console.error(error.message);
81
- }
82
- process.exit(1);
83
- }
84
- }
85
- async function handleGet(argv, prompter) {
86
- try {
87
- const answers = await prompter.prompt(argv, [
88
- {
89
- type: 'text',
90
- name: 'id',
91
- message: 'id',
92
- required: true,
93
- },
94
- ]);
95
- const client = getClient();
96
- const result = await client.tableModule
97
- .findOne({
98
- id: answers.id,
99
- select: {
100
- id: true,
101
- databaseId: true,
102
- schemaId: true,
103
- tableId: true,
104
- tableName: true,
105
- nodeType: true,
106
- useRls: true,
107
- data: true,
108
- fields: true,
109
- },
110
- })
111
- .execute();
112
- console.log(JSON.stringify(result, null, 2));
113
- }
114
- catch (error) {
115
- console.error('Record not found.');
116
- if (error instanceof Error) {
117
- console.error(error.message);
118
- }
119
- process.exit(1);
120
- }
121
- }
122
- async function handleCreate(argv, prompter) {
123
- try {
124
- const rawAnswers = await prompter.prompt(argv, [
125
- {
126
- type: 'text',
127
- name: 'databaseId',
128
- message: 'databaseId',
129
- required: true,
130
- },
131
- {
132
- type: 'text',
133
- name: 'schemaId',
134
- message: 'schemaId',
135
- required: false,
136
- skipPrompt: true,
137
- },
138
- {
139
- type: 'text',
140
- name: 'tableId',
141
- message: 'tableId',
142
- required: false,
143
- skipPrompt: true,
144
- },
145
- {
146
- type: 'text',
147
- name: 'tableName',
148
- message: 'tableName',
149
- required: false,
150
- skipPrompt: true,
151
- },
152
- {
153
- type: 'text',
154
- name: 'nodeType',
155
- message: 'nodeType',
156
- required: true,
157
- },
158
- {
159
- type: 'boolean',
160
- name: 'useRls',
161
- message: 'useRls',
162
- required: false,
163
- skipPrompt: true,
164
- },
165
- {
166
- type: 'json',
167
- name: 'data',
168
- message: 'data',
169
- required: false,
170
- skipPrompt: true,
171
- },
172
- {
173
- type: 'text',
174
- name: 'fields',
175
- message: 'fields',
176
- required: false,
177
- skipPrompt: true,
178
- },
179
- ]);
180
- const answers = coerceAnswers(rawAnswers, fieldSchema);
181
- const cleanedData = stripUndefined(answers, fieldSchema);
182
- const client = getClient();
183
- const result = await client.tableModule
184
- .create({
185
- data: {
186
- databaseId: cleanedData.databaseId,
187
- schemaId: cleanedData.schemaId,
188
- tableId: cleanedData.tableId,
189
- tableName: cleanedData.tableName,
190
- nodeType: cleanedData.nodeType,
191
- useRls: cleanedData.useRls,
192
- data: cleanedData.data,
193
- fields: cleanedData.fields,
194
- },
195
- select: {
196
- id: true,
197
- databaseId: true,
198
- schemaId: true,
199
- tableId: true,
200
- tableName: true,
201
- nodeType: true,
202
- useRls: true,
203
- data: true,
204
- fields: true,
205
- },
206
- })
207
- .execute();
208
- console.log(JSON.stringify(result, null, 2));
209
- }
210
- catch (error) {
211
- console.error('Failed to create record.');
212
- if (error instanceof Error) {
213
- console.error(error.message);
214
- }
215
- process.exit(1);
216
- }
217
- }
218
- async function handleUpdate(argv, prompter) {
219
- try {
220
- const rawAnswers = await prompter.prompt(argv, [
221
- {
222
- type: 'text',
223
- name: 'id',
224
- message: 'id',
225
- required: true,
226
- },
227
- {
228
- type: 'text',
229
- name: 'databaseId',
230
- message: 'databaseId',
231
- required: false,
232
- },
233
- {
234
- type: 'text',
235
- name: 'schemaId',
236
- message: 'schemaId',
237
- required: false,
238
- skipPrompt: true,
239
- },
240
- {
241
- type: 'text',
242
- name: 'tableId',
243
- message: 'tableId',
244
- required: false,
245
- skipPrompt: true,
246
- },
247
- {
248
- type: 'text',
249
- name: 'tableName',
250
- message: 'tableName',
251
- required: false,
252
- skipPrompt: true,
253
- },
254
- {
255
- type: 'text',
256
- name: 'nodeType',
257
- message: 'nodeType',
258
- required: false,
259
- },
260
- {
261
- type: 'boolean',
262
- name: 'useRls',
263
- message: 'useRls',
264
- required: false,
265
- skipPrompt: true,
266
- },
267
- {
268
- type: 'json',
269
- name: 'data',
270
- message: 'data',
271
- required: false,
272
- skipPrompt: true,
273
- },
274
- {
275
- type: 'text',
276
- name: 'fields',
277
- message: 'fields',
278
- required: false,
279
- skipPrompt: true,
280
- },
281
- ]);
282
- const answers = coerceAnswers(rawAnswers, fieldSchema);
283
- const cleanedData = stripUndefined(answers, fieldSchema);
284
- const client = getClient();
285
- const result = await client.tableModule
286
- .update({
287
- where: {
288
- id: answers.id,
289
- },
290
- data: {
291
- databaseId: cleanedData.databaseId,
292
- schemaId: cleanedData.schemaId,
293
- tableId: cleanedData.tableId,
294
- tableName: cleanedData.tableName,
295
- nodeType: cleanedData.nodeType,
296
- useRls: cleanedData.useRls,
297
- data: cleanedData.data,
298
- fields: cleanedData.fields,
299
- },
300
- select: {
301
- id: true,
302
- databaseId: true,
303
- schemaId: true,
304
- tableId: true,
305
- tableName: true,
306
- nodeType: true,
307
- useRls: true,
308
- data: true,
309
- fields: true,
310
- },
311
- })
312
- .execute();
313
- console.log(JSON.stringify(result, null, 2));
314
- }
315
- catch (error) {
316
- console.error('Failed to update record.');
317
- if (error instanceof Error) {
318
- console.error(error.message);
319
- }
320
- process.exit(1);
321
- }
322
- }
323
- async function handleDelete(argv, prompter) {
324
- try {
325
- const rawAnswers = await prompter.prompt(argv, [
326
- {
327
- type: 'text',
328
- name: 'id',
329
- message: 'id',
330
- required: true,
331
- },
332
- ]);
333
- const answers = coerceAnswers(rawAnswers, fieldSchema);
334
- const client = getClient();
335
- const result = await client.tableModule
336
- .delete({
337
- where: {
338
- id: answers.id,
339
- },
340
- select: {
341
- id: true,
342
- },
343
- })
344
- .execute();
345
- console.log(JSON.stringify(result, null, 2));
346
- }
347
- catch (error) {
348
- console.error('Failed to delete record.');
349
- if (error instanceof Error) {
350
- console.error(error.message);
351
- }
352
- process.exit(1);
353
- }
354
- }
@@ -1,56 +0,0 @@
1
- /**
2
- * TableModule model for ORM client
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { OrmClient } from '../client';
7
- import { QueryBuilder } from '../query-builder';
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
- import type { TableModuleWithRelations, TableModuleSelect, TableModuleFilter, TableModuleOrderBy, CreateTableModuleInput, TableModulePatch } from '../input-types';
10
- export declare class TableModuleModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends TableModuleSelect>(args: FindManyArgs<S, TableModuleFilter, TableModuleOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
16
- tableModules: ConnectionResult<InferSelectResult<TableModuleWithRelations, S>>;
17
- }>;
18
- findFirst<S extends TableModuleSelect>(args: FindFirstArgs<S, TableModuleFilter> & {
19
- select: S;
20
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
21
- tableModules: {
22
- nodes: InferSelectResult<TableModuleWithRelations, S>[];
23
- };
24
- }>;
25
- findOne<S extends TableModuleSelect>(args: {
26
- id: string;
27
- select: S;
28
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
29
- tableModule: InferSelectResult<TableModuleWithRelations, S> | null;
30
- }>;
31
- create<S extends TableModuleSelect>(args: CreateArgs<S, CreateTableModuleInput['tableModule']> & {
32
- select: S;
33
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
34
- createTableModule: {
35
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
36
- };
37
- }>;
38
- update<S extends TableModuleSelect>(args: UpdateArgs<S, {
39
- id: string;
40
- }, TableModulePatch> & {
41
- select: S;
42
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
43
- updateTableModule: {
44
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
45
- };
46
- }>;
47
- delete<S extends TableModuleSelect>(args: DeleteArgs<{
48
- id: string;
49
- }, S> & {
50
- select: S;
51
- } & StrictSelect<S, TableModuleSelect>): QueryBuilder<{
52
- deleteTableModule: {
53
- tableModule: InferSelectResult<TableModuleWithRelations, S>;
54
- };
55
- }>;
56
- }
@@ -1,94 +0,0 @@
1
- import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
- import { connectionFieldsMap } from '../input-types';
3
- export class TableModuleModel {
4
- client;
5
- constructor(client) {
6
- this.client = client;
7
- }
8
- findMany(args) {
9
- const { document, variables } = buildFindManyDocument('TableModule', 'tableModules', args.select, {
10
- where: args?.where,
11
- orderBy: args?.orderBy,
12
- first: args?.first,
13
- last: args?.last,
14
- after: args?.after,
15
- before: args?.before,
16
- offset: args?.offset,
17
- }, 'TableModuleFilter', 'TableModuleOrderBy', connectionFieldsMap);
18
- return new QueryBuilder({
19
- client: this.client,
20
- operation: 'query',
21
- operationName: 'TableModule',
22
- fieldName: 'tableModules',
23
- document,
24
- variables,
25
- });
26
- }
27
- findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument('TableModule', 'tableModules', args.select, {
29
- where: args?.where,
30
- }, 'TableModuleFilter', connectionFieldsMap);
31
- return new QueryBuilder({
32
- client: this.client,
33
- operation: 'query',
34
- operationName: 'TableModule',
35
- fieldName: 'tableModules',
36
- document,
37
- variables,
38
- });
39
- }
40
- findOne(args) {
41
- const { document, variables } = buildFindManyDocument('TableModule', 'tableModules', args.select, {
42
- where: {
43
- id: {
44
- equalTo: args.id,
45
- },
46
- },
47
- first: 1,
48
- }, 'TableModuleFilter', 'TableModuleOrderBy', connectionFieldsMap);
49
- return new QueryBuilder({
50
- client: this.client,
51
- operation: 'query',
52
- operationName: 'TableModule',
53
- fieldName: 'tableModule',
54
- document,
55
- variables,
56
- transform: (data) => ({
57
- tableModule: data.tableModules?.nodes?.[0] ?? null,
58
- }),
59
- });
60
- }
61
- create(args) {
62
- const { document, variables } = buildCreateDocument('TableModule', 'createTableModule', 'tableModule', args.select, args.data, 'CreateTableModuleInput', connectionFieldsMap);
63
- return new QueryBuilder({
64
- client: this.client,
65
- operation: 'mutation',
66
- operationName: 'TableModule',
67
- fieldName: 'createTableModule',
68
- document,
69
- variables,
70
- });
71
- }
72
- update(args) {
73
- const { document, variables } = buildUpdateByPkDocument('TableModule', 'updateTableModule', 'tableModule', args.select, args.where.id, args.data, 'UpdateTableModuleInput', 'id', 'tableModulePatch', connectionFieldsMap);
74
- return new QueryBuilder({
75
- client: this.client,
76
- operation: 'mutation',
77
- operationName: 'TableModule',
78
- fieldName: 'updateTableModule',
79
- document,
80
- variables,
81
- });
82
- }
83
- delete(args) {
84
- const { document, variables } = buildDeleteByPkDocument('TableModule', 'deleteTableModule', 'tableModule', args.where.id, 'DeleteTableModuleInput', 'id', args.select, connectionFieldsMap);
85
- return new QueryBuilder({
86
- client: this.client,
87
- operation: 'mutation',
88
- operationName: 'TableModule',
89
- fieldName: 'deleteTableModule',
90
- document,
91
- variables,
92
- });
93
- }
94
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * CLI commands for TableModule
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { CLIOptions, Inquirerer } from 'inquirerer';
7
- declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
- export default _default;