@constructive-sdk/cli 0.23.3 → 0.24.1

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 (350) hide show
  1. package/README.md +4 -0
  2. package/admin/cli/commands/app-limit-event.js +248 -2
  3. package/admin/cli/commands/app-limit.js +44 -0
  4. package/admin/cli/commands/org-limit-aggregate.js +44 -0
  5. package/admin/cli/commands/org-limit-event.js +248 -2
  6. package/admin/cli/commands/org-limit.js +44 -0
  7. package/admin/cli/commands.js +31 -33
  8. package/admin/cli/executor.d.ts +15 -16
  9. package/admin/orm/index.d.ts +31 -33
  10. package/admin/orm/index.js +32 -33
  11. package/admin/orm/input-types.d.ts +2090 -2039
  12. package/admin/orm/input-types.js +4 -4
  13. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  14. package/admin/orm/models/appLimitEvent.js +45 -0
  15. package/admin/orm/models/index.d.ts +15 -16
  16. package/admin/orm/models/index.js +31 -33
  17. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  18. package/admin/orm/models/orgLimitEvent.js +45 -0
  19. package/{esm/public/cli/commands/agent-message.d.ts → auth/cli/commands/audit-log-auth.d.ts} +1 -1
  20. package/auth/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  21. package/auth/cli/commands.js +5 -5
  22. package/auth/cli/executor.d.ts +6 -6
  23. package/auth/orm/index.d.ts +8 -8
  24. package/auth/orm/index.js +4 -3
  25. package/auth/orm/input-types.d.ts +94 -94
  26. package/auth/orm/input-types.js +1 -1
  27. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  28. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  29. package/auth/orm/models/index.d.ts +1 -1
  30. package/auth/orm/models/index.js +3 -3
  31. package/auth/orm/mutation/index.d.ts +9 -9
  32. package/auth/orm/mutation/index.js +12 -12
  33. package/esm/admin/cli/commands/app-limit-event.js +248 -2
  34. package/esm/admin/cli/commands/app-limit.js +44 -0
  35. package/esm/admin/cli/commands/org-limit-aggregate.js +44 -0
  36. package/esm/admin/cli/commands/org-limit-event.js +248 -2
  37. package/esm/admin/cli/commands/org-limit.js +44 -0
  38. package/esm/admin/cli/commands.js +31 -33
  39. package/esm/admin/cli/executor.d.ts +15 -16
  40. package/esm/admin/orm/index.d.ts +31 -33
  41. package/esm/admin/orm/index.js +31 -33
  42. package/esm/admin/orm/input-types.d.ts +2090 -2039
  43. package/esm/admin/orm/input-types.js +4 -4
  44. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  45. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  46. package/esm/admin/orm/models/index.d.ts +15 -16
  47. package/esm/admin/orm/models/index.js +15 -16
  48. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  49. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  50. package/esm/auth/cli/commands/audit-log-auth.d.ts +8 -0
  51. package/esm/{public/cli/commands/audit-log.js → auth/cli/commands/audit-log-auth.js} +14 -14
  52. package/esm/auth/cli/commands.js +5 -5
  53. package/esm/auth/cli/executor.d.ts +6 -6
  54. package/esm/auth/orm/index.d.ts +8 -8
  55. package/esm/auth/orm/index.js +3 -3
  56. package/esm/auth/orm/input-types.d.ts +94 -94
  57. package/esm/auth/orm/input-types.js +1 -1
  58. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  59. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  60. package/esm/auth/orm/models/index.d.ts +1 -1
  61. package/esm/auth/orm/models/index.js +1 -1
  62. package/esm/auth/orm/mutation/index.d.ts +9 -9
  63. package/esm/auth/orm/mutation/index.js +12 -12
  64. package/esm/objects/orm/index.d.ts +1 -1
  65. package/esm/objects/orm/index.js +1 -1
  66. package/esm/public/cli/commands/{agent-thread.d.ts → agent-module.d.ts} +1 -1
  67. package/esm/public/cli/commands/agent-module.js +690 -0
  68. package/esm/public/cli/commands/app-limit-event.js +248 -2
  69. package/esm/public/cli/commands/app-limit.js +44 -0
  70. package/esm/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  71. package/esm/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  72. package/esm/public/cli/commands/audit-log-auth.d.ts +8 -0
  73. package/esm/{auth/cli/commands/audit-log.js → public/cli/commands/audit-log-auth.js} +14 -14
  74. package/esm/public/cli/commands/billing-module.js +88 -0
  75. package/esm/public/cli/commands/compute-log-module.d.ts +8 -0
  76. package/esm/public/cli/commands/compute-log-module.js +514 -0
  77. package/esm/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  78. package/esm/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  79. package/esm/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  80. package/esm/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  81. package/esm/public/cli/commands/construct-blueprint.js +1 -1
  82. package/{admin/cli/commands/usage-snapshot.d.ts → esm/public/cli/commands/db-usage-module.d.ts} +1 -1
  83. package/esm/public/cli/commands/db-usage-module.js +558 -0
  84. package/esm/public/cli/commands/entity-type-provision.js +386 -34
  85. package/esm/public/cli/commands/field.js +4 -26
  86. package/esm/public/cli/commands/function-module.d.ts +8 -0
  87. package/esm/public/cli/commands/function-module.js +778 -0
  88. package/{auth/cli/commands/audit-log.d.ts → esm/public/cli/commands/graph-module.d.ts} +1 -1
  89. package/esm/public/cli/commands/graph-module.js +584 -0
  90. package/esm/public/cli/commands/inference-log-module.d.ts +8 -0
  91. package/esm/public/cli/commands/inference-log-module.js +514 -0
  92. package/esm/public/cli/commands/memberships-module.js +22 -0
  93. package/esm/public/cli/commands/merkle-store-module.d.ts +8 -0
  94. package/esm/public/cli/commands/merkle-store-module.js +498 -0
  95. package/esm/public/cli/commands/namespace-module.d.ts +8 -0
  96. package/esm/public/cli/commands/namespace-module.js +558 -0
  97. package/esm/public/cli/commands/org-limit-aggregate.js +44 -0
  98. package/esm/public/cli/commands/org-limit-event.js +248 -2
  99. package/esm/public/cli/commands/org-limit.js +44 -0
  100. package/esm/public/cli/commands/partition.js +44 -0
  101. package/esm/public/cli/commands/storage-log-module.d.ts +8 -0
  102. package/esm/public/cli/commands/storage-log-module.js +514 -0
  103. package/esm/public/cli/commands/storage-module.js +36 -14
  104. package/esm/public/cli/commands/transfer-log-module.d.ts +8 -0
  105. package/esm/public/cli/commands/transfer-log-module.js +514 -0
  106. package/esm/public/cli/commands.js +83 -101
  107. package/esm/public/cli/executor.d.ts +72 -125
  108. package/esm/public/orm/index.d.ts +102 -153
  109. package/esm/public/orm/index.js +59 -55
  110. package/esm/public/orm/input-types.d.ts +6255 -3877
  111. package/esm/public/orm/input-types.js +24 -15
  112. package/esm/public/orm/models/agentModule.d.ts +54 -0
  113. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  114. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  115. package/esm/public/orm/models/appLimitEvent.js +46 -1
  116. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  117. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  118. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  119. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  120. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  121. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  122. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  123. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  124. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  125. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  126. package/esm/public/orm/models/functionModule.d.ts +54 -0
  127. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  128. package/esm/public/orm/models/graphModule.d.ts +54 -0
  129. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  130. package/esm/public/orm/models/index.d.ts +29 -27
  131. package/esm/public/orm/models/index.js +29 -27
  132. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  133. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  134. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  135. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  136. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  137. package/esm/public/orm/models/namespaceModule.js +100 -0
  138. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  139. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  140. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  141. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  142. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  143. package/esm/public/orm/models/transferLogModule.js +100 -0
  144. package/esm/public/orm/mutation/index.d.ts +69 -133
  145. package/esm/public/orm/mutation/index.js +78 -174
  146. package/esm/public/orm/query/index.d.ts +22 -71
  147. package/esm/public/orm/query/index.js +36 -124
  148. package/objects/orm/index.d.ts +1 -1
  149. package/objects/orm/index.js +2 -1
  150. package/package.json +6 -6
  151. package/{esm/public/cli/commands/agent-task.d.ts → public/cli/commands/agent-module.d.ts} +1 -1
  152. package/public/cli/commands/agent-module.js +692 -0
  153. package/public/cli/commands/app-limit-event.js +248 -2
  154. package/public/cli/commands/app-limit.js +44 -0
  155. package/public/cli/commands/apply-registry-defaults.d.ts +8 -0
  156. package/public/cli/commands/{rev-parse.js → apply-registry-defaults.js} +9 -12
  157. package/public/cli/commands/audit-log-auth.d.ts +8 -0
  158. package/public/cli/commands/{audit-log.js → audit-log-auth.js} +14 -14
  159. package/public/cli/commands/billing-module.js +88 -0
  160. package/public/cli/commands/compute-log-module.d.ts +8 -0
  161. package/public/cli/commands/compute-log-module.js +516 -0
  162. package/public/cli/commands/config-secrets-org-module.d.ts +8 -0
  163. package/public/cli/commands/{encrypted-secrets-module.js → config-secrets-org-module.js} +8 -8
  164. package/public/cli/commands/config-secrets-user-module.d.ts +8 -0
  165. package/public/cli/commands/{object.js → config-secrets-user-module.js} +60 -67
  166. package/public/cli/commands/construct-blueprint.js +1 -1
  167. package/{esm/admin/cli/commands/usage-snapshot.d.ts → public/cli/commands/db-usage-module.d.ts} +1 -1
  168. package/public/cli/commands/db-usage-module.js +560 -0
  169. package/public/cli/commands/entity-type-provision.js +386 -34
  170. package/public/cli/commands/field.js +4 -26
  171. package/public/cli/commands/function-module.d.ts +8 -0
  172. package/public/cli/commands/function-module.js +780 -0
  173. package/{esm/auth/cli/commands/audit-log.d.ts → public/cli/commands/graph-module.d.ts} +1 -1
  174. package/public/cli/commands/graph-module.js +586 -0
  175. package/public/cli/commands/inference-log-module.d.ts +8 -0
  176. package/public/cli/commands/inference-log-module.js +516 -0
  177. package/public/cli/commands/memberships-module.js +22 -0
  178. package/public/cli/commands/merkle-store-module.d.ts +8 -0
  179. package/public/cli/commands/merkle-store-module.js +500 -0
  180. package/public/cli/commands/namespace-module.d.ts +8 -0
  181. package/public/cli/commands/namespace-module.js +560 -0
  182. package/public/cli/commands/org-limit-aggregate.js +44 -0
  183. package/public/cli/commands/org-limit-event.js +248 -2
  184. package/public/cli/commands/org-limit.js +44 -0
  185. package/public/cli/commands/partition.js +44 -0
  186. package/public/cli/commands/storage-log-module.d.ts +8 -0
  187. package/public/cli/commands/storage-log-module.js +516 -0
  188. package/public/cli/commands/storage-module.js +36 -14
  189. package/public/cli/commands/transfer-log-module.d.ts +8 -0
  190. package/public/cli/commands/transfer-log-module.js +516 -0
  191. package/public/cli/commands.js +83 -101
  192. package/public/cli/executor.d.ts +72 -125
  193. package/public/orm/index.d.ts +102 -153
  194. package/public/orm/index.js +60 -55
  195. package/public/orm/input-types.d.ts +6255 -3877
  196. package/public/orm/input-types.js +24 -15
  197. package/public/orm/models/agentModule.d.ts +54 -0
  198. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  199. package/public/orm/models/appLimitEvent.d.ts +26 -2
  200. package/public/orm/models/appLimitEvent.js +45 -0
  201. package/public/orm/models/auditLogAuth.d.ts +54 -0
  202. package/{admin/orm/models/usageSnapshot.js → public/orm/models/auditLogAuth.js} +27 -27
  203. package/public/orm/models/computeLogModule.d.ts +54 -0
  204. package/{auth/orm/models/auditLog.js → public/orm/models/computeLogModule.js} +27 -27
  205. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  206. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  207. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  208. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  209. package/public/orm/models/dbUsageModule.d.ts +54 -0
  210. package/public/orm/models/{usageSnapshot.js → dbUsageModule.js} +27 -27
  211. package/public/orm/models/functionModule.d.ts +54 -0
  212. package/public/orm/models/functionModule.js +104 -0
  213. package/public/orm/models/graphModule.d.ts +54 -0
  214. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  215. package/public/orm/models/index.d.ts +29 -27
  216. package/public/orm/models/index.js +61 -57
  217. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  218. package/public/orm/models/inferenceLogModule.js +104 -0
  219. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  220. package/public/orm/models/merkleStoreModule.js +104 -0
  221. package/public/orm/models/namespaceModule.d.ts +54 -0
  222. package/public/orm/models/namespaceModule.js +104 -0
  223. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  224. package/public/orm/models/orgLimitEvent.js +45 -0
  225. package/public/orm/models/storageLogModule.d.ts +54 -0
  226. package/public/orm/models/storageLogModule.js +104 -0
  227. package/public/orm/models/transferLogModule.d.ts +54 -0
  228. package/public/orm/models/transferLogModule.js +104 -0
  229. package/public/orm/mutation/index.d.ts +69 -133
  230. package/public/orm/mutation/index.js +78 -174
  231. package/public/orm/query/index.d.ts +22 -71
  232. package/public/orm/query/index.js +36 -124
  233. package/admin/cli/commands/usage-snapshot.js +0 -316
  234. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  235. package/auth/orm/models/auditLog.d.ts +0 -54
  236. package/esm/admin/cli/commands/usage-snapshot.js +0 -314
  237. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  238. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  239. package/esm/public/cli/commands/agent-message.js +0 -324
  240. package/esm/public/cli/commands/agent-task.js +0 -368
  241. package/esm/public/cli/commands/agent-thread.js +0 -372
  242. package/esm/public/cli/commands/audit-log.d.ts +0 -8
  243. package/esm/public/cli/commands/commit.d.ts +0 -8
  244. package/esm/public/cli/commands/commit.js +0 -380
  245. package/esm/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  246. package/esm/public/cli/commands/freeze-objects.d.ts +0 -8
  247. package/esm/public/cli/commands/freeze-objects.js +0 -34
  248. package/esm/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  249. package/esm/public/cli/commands/get-all-objects-from-root.js +0 -52
  250. package/esm/public/cli/commands/get-all-record.d.ts +0 -8
  251. package/esm/public/cli/commands/get-all-record.js +0 -124
  252. package/esm/public/cli/commands/get-object-at-path.d.ts +0 -8
  253. package/esm/public/cli/commands/get-object-at-path.js +0 -47
  254. package/esm/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  255. package/esm/public/cli/commands/get-path-objects-from-root.js +0 -57
  256. package/esm/public/cli/commands/init-empty-repo.d.ts +0 -8
  257. package/esm/public/cli/commands/init-empty-repo.js +0 -34
  258. package/esm/public/cli/commands/insert-node-at-path.d.ts +0 -8
  259. package/esm/public/cli/commands/insert-node-at-path.js +0 -34
  260. package/esm/public/cli/commands/object.d.ts +0 -8
  261. package/esm/public/cli/commands/ref.d.ts +0 -8
  262. package/esm/public/cli/commands/ref.js +0 -290
  263. package/esm/public/cli/commands/remove-node-at-path.d.ts +0 -8
  264. package/esm/public/cli/commands/remove-node-at-path.js +0 -34
  265. package/esm/public/cli/commands/rev-parse.d.ts +0 -8
  266. package/esm/public/cli/commands/set-and-commit.d.ts +0 -8
  267. package/esm/public/cli/commands/set-and-commit.js +0 -34
  268. package/esm/public/cli/commands/set-data-at-path.d.ts +0 -8
  269. package/esm/public/cli/commands/set-data-at-path.js +0 -34
  270. package/esm/public/cli/commands/set-props-and-commit.d.ts +0 -8
  271. package/esm/public/cli/commands/set-props-and-commit.js +0 -34
  272. package/esm/public/cli/commands/store.d.ts +0 -8
  273. package/esm/public/cli/commands/store.js +0 -276
  274. package/esm/public/cli/commands/update-node-at-path.d.ts +0 -8
  275. package/esm/public/cli/commands/update-node-at-path.js +0 -34
  276. package/esm/public/cli/commands/usage-snapshot.d.ts +0 -8
  277. package/esm/public/cli/commands/usage-snapshot.js +0 -314
  278. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  279. package/esm/public/orm/models/agentTask.d.ts +0 -54
  280. package/esm/public/orm/models/agentThread.d.ts +0 -54
  281. package/esm/public/orm/models/auditLog.d.ts +0 -54
  282. package/esm/public/orm/models/commit.d.ts +0 -54
  283. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  284. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  285. package/esm/public/orm/models/getAllRecord.js +0 -55
  286. package/esm/public/orm/models/object.d.ts +0 -54
  287. package/esm/public/orm/models/object.js +0 -90
  288. package/esm/public/orm/models/ref.d.ts +0 -54
  289. package/esm/public/orm/models/ref.js +0 -100
  290. package/esm/public/orm/models/store.d.ts +0 -54
  291. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  292. package/esm/public/orm/models/usageSnapshot.js +0 -100
  293. package/public/cli/commands/agent-message.d.ts +0 -8
  294. package/public/cli/commands/agent-message.js +0 -326
  295. package/public/cli/commands/agent-task.d.ts +0 -8
  296. package/public/cli/commands/agent-task.js +0 -370
  297. package/public/cli/commands/agent-thread.d.ts +0 -8
  298. package/public/cli/commands/agent-thread.js +0 -374
  299. package/public/cli/commands/audit-log.d.ts +0 -8
  300. package/public/cli/commands/commit.d.ts +0 -8
  301. package/public/cli/commands/commit.js +0 -382
  302. package/public/cli/commands/encrypted-secrets-module.d.ts +0 -8
  303. package/public/cli/commands/freeze-objects.d.ts +0 -8
  304. package/public/cli/commands/freeze-objects.js +0 -36
  305. package/public/cli/commands/get-all-objects-from-root.d.ts +0 -8
  306. package/public/cli/commands/get-all-objects-from-root.js +0 -54
  307. package/public/cli/commands/get-all-record.d.ts +0 -8
  308. package/public/cli/commands/get-all-record.js +0 -126
  309. package/public/cli/commands/get-object-at-path.d.ts +0 -8
  310. package/public/cli/commands/get-object-at-path.js +0 -49
  311. package/public/cli/commands/get-path-objects-from-root.d.ts +0 -8
  312. package/public/cli/commands/get-path-objects-from-root.js +0 -59
  313. package/public/cli/commands/init-empty-repo.d.ts +0 -8
  314. package/public/cli/commands/init-empty-repo.js +0 -36
  315. package/public/cli/commands/insert-node-at-path.d.ts +0 -8
  316. package/public/cli/commands/insert-node-at-path.js +0 -36
  317. package/public/cli/commands/object.d.ts +0 -8
  318. package/public/cli/commands/ref.d.ts +0 -8
  319. package/public/cli/commands/ref.js +0 -292
  320. package/public/cli/commands/remove-node-at-path.d.ts +0 -8
  321. package/public/cli/commands/remove-node-at-path.js +0 -36
  322. package/public/cli/commands/rev-parse.d.ts +0 -8
  323. package/public/cli/commands/set-and-commit.d.ts +0 -8
  324. package/public/cli/commands/set-and-commit.js +0 -36
  325. package/public/cli/commands/set-data-at-path.d.ts +0 -8
  326. package/public/cli/commands/set-data-at-path.js +0 -36
  327. package/public/cli/commands/set-props-and-commit.d.ts +0 -8
  328. package/public/cli/commands/set-props-and-commit.js +0 -36
  329. package/public/cli/commands/store.d.ts +0 -8
  330. package/public/cli/commands/store.js +0 -278
  331. package/public/cli/commands/update-node-at-path.d.ts +0 -8
  332. package/public/cli/commands/update-node-at-path.js +0 -36
  333. package/public/cli/commands/usage-snapshot.d.ts +0 -8
  334. package/public/cli/commands/usage-snapshot.js +0 -316
  335. package/public/orm/models/agentMessage.d.ts +0 -54
  336. package/public/orm/models/agentTask.d.ts +0 -54
  337. package/public/orm/models/agentThread.d.ts +0 -54
  338. package/public/orm/models/auditLog.d.ts +0 -54
  339. package/public/orm/models/auditLog.js +0 -104
  340. package/public/orm/models/commit.d.ts +0 -54
  341. package/public/orm/models/commit.js +0 -104
  342. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  343. package/public/orm/models/getAllRecord.d.ts +0 -30
  344. package/public/orm/models/getAllRecord.js +0 -59
  345. package/public/orm/models/object.d.ts +0 -54
  346. package/public/orm/models/object.js +0 -94
  347. package/public/orm/models/ref.d.ts +0 -54
  348. package/public/orm/models/store.d.ts +0 -54
  349. package/public/orm/models/store.js +0 -104
  350. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -0,0 +1,560 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * CLI commands for NamespaceModule
5
+ * @generated by @constructive-io/graphql-codegen
6
+ * DO NOT EDIT - changes will be overwritten
7
+ */
8
+ const inquirerer_1 = require("inquirerer");
9
+ const executor_1 = require("../executor");
10
+ const utils_1 = require("../utils");
11
+ const fieldSchema = {
12
+ id: 'uuid',
13
+ databaseId: 'uuid',
14
+ schemaId: 'uuid',
15
+ privateSchemaId: 'uuid',
16
+ publicSchemaName: 'string',
17
+ privateSchemaName: 'string',
18
+ namespacesTableId: 'uuid',
19
+ namespaceEventsTableId: 'uuid',
20
+ namespacesTableName: 'string',
21
+ namespaceEventsTableName: 'string',
22
+ apiName: 'string',
23
+ privateApiName: 'string',
24
+ membershipType: 'int',
25
+ key: 'string',
26
+ entityTableId: 'uuid',
27
+ policies: 'json',
28
+ provisions: 'json',
29
+ };
30
+ const usage = '\nnamespace-module <command>\n\nCommands:\n list List namespaceModule records\n find-first Find first matching namespaceModule record\n get Get a namespaceModule by ID\n create Create a new namespaceModule\n update Update an existing namespaceModule\n delete Delete a namespaceModule\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
31
+ exports.default = async (argv, prompter, _options) => {
32
+ if (argv.help || argv.h) {
33
+ console.log(usage);
34
+ process.exit(0);
35
+ }
36
+ const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
37
+ if (!subcommand) {
38
+ const answer = await prompter.prompt(argv, [
39
+ {
40
+ type: 'autocomplete',
41
+ name: 'subcommand',
42
+ message: 'What do you want to do?',
43
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
44
+ },
45
+ ]);
46
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
47
+ }
48
+ return handleTableSubcommand(subcommand, newArgv, prompter);
49
+ };
50
+ async function handleTableSubcommand(subcommand, argv, prompter) {
51
+ switch (subcommand) {
52
+ case 'list':
53
+ return handleList(argv, prompter);
54
+ case 'find-first':
55
+ return handleFindFirst(argv, prompter);
56
+ case 'get':
57
+ return handleGet(argv, prompter);
58
+ case 'create':
59
+ return handleCreate(argv, prompter);
60
+ case 'update':
61
+ return handleUpdate(argv, prompter);
62
+ case 'delete':
63
+ return handleDelete(argv, prompter);
64
+ default:
65
+ console.log(usage);
66
+ process.exit(1);
67
+ }
68
+ }
69
+ async function handleList(argv, _prompter) {
70
+ try {
71
+ const defaultSelect = {
72
+ id: true,
73
+ databaseId: true,
74
+ schemaId: true,
75
+ privateSchemaId: true,
76
+ publicSchemaName: true,
77
+ privateSchemaName: true,
78
+ namespacesTableId: true,
79
+ namespaceEventsTableId: true,
80
+ namespacesTableName: true,
81
+ namespaceEventsTableName: true,
82
+ apiName: true,
83
+ privateApiName: true,
84
+ membershipType: true,
85
+ key: true,
86
+ entityTableId: true,
87
+ policies: true,
88
+ provisions: true,
89
+ };
90
+ const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
91
+ const client = (0, executor_1.getClient)();
92
+ const result = await client.namespaceModule.findMany(findManyArgs).execute();
93
+ console.log(JSON.stringify(result, null, 2));
94
+ }
95
+ catch (error) {
96
+ console.error('Failed to list records.');
97
+ if (error instanceof Error) {
98
+ console.error(error.message);
99
+ }
100
+ process.exit(1);
101
+ }
102
+ }
103
+ async function handleFindFirst(argv, _prompter) {
104
+ try {
105
+ const defaultSelect = {
106
+ id: true,
107
+ databaseId: true,
108
+ schemaId: true,
109
+ privateSchemaId: true,
110
+ publicSchemaName: true,
111
+ privateSchemaName: true,
112
+ namespacesTableId: true,
113
+ namespaceEventsTableId: true,
114
+ namespacesTableName: true,
115
+ namespaceEventsTableName: true,
116
+ apiName: true,
117
+ privateApiName: true,
118
+ membershipType: true,
119
+ key: true,
120
+ entityTableId: true,
121
+ policies: true,
122
+ provisions: true,
123
+ };
124
+ const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
125
+ const client = (0, executor_1.getClient)();
126
+ const result = await client.namespaceModule.findFirst(findFirstArgs).execute();
127
+ console.log(JSON.stringify(result, null, 2));
128
+ }
129
+ catch (error) {
130
+ console.error('Failed to find record.');
131
+ if (error instanceof Error) {
132
+ console.error(error.message);
133
+ }
134
+ process.exit(1);
135
+ }
136
+ }
137
+ async function handleGet(argv, prompter) {
138
+ try {
139
+ const answers = await prompter.prompt(argv, [
140
+ {
141
+ type: 'text',
142
+ name: 'id',
143
+ message: 'id',
144
+ required: true,
145
+ },
146
+ ]);
147
+ const client = (0, executor_1.getClient)();
148
+ const result = await client.namespaceModule
149
+ .findOne({
150
+ id: answers.id,
151
+ select: {
152
+ id: true,
153
+ databaseId: true,
154
+ schemaId: true,
155
+ privateSchemaId: true,
156
+ publicSchemaName: true,
157
+ privateSchemaName: true,
158
+ namespacesTableId: true,
159
+ namespaceEventsTableId: true,
160
+ namespacesTableName: true,
161
+ namespaceEventsTableName: true,
162
+ apiName: true,
163
+ privateApiName: true,
164
+ membershipType: true,
165
+ key: true,
166
+ entityTableId: true,
167
+ policies: true,
168
+ provisions: true,
169
+ },
170
+ })
171
+ .execute();
172
+ console.log(JSON.stringify(result, null, 2));
173
+ }
174
+ catch (error) {
175
+ console.error('Record not found.');
176
+ if (error instanceof Error) {
177
+ console.error(error.message);
178
+ }
179
+ process.exit(1);
180
+ }
181
+ }
182
+ async function handleCreate(argv, prompter) {
183
+ try {
184
+ const rawAnswers = await prompter.prompt(argv, [
185
+ {
186
+ type: 'text',
187
+ name: 'databaseId',
188
+ message: 'databaseId',
189
+ required: true,
190
+ },
191
+ {
192
+ type: 'text',
193
+ name: 'schemaId',
194
+ message: 'schemaId',
195
+ required: false,
196
+ skipPrompt: true,
197
+ },
198
+ {
199
+ type: 'text',
200
+ name: 'privateSchemaId',
201
+ message: 'privateSchemaId',
202
+ required: false,
203
+ skipPrompt: true,
204
+ },
205
+ {
206
+ type: 'text',
207
+ name: 'publicSchemaName',
208
+ message: 'publicSchemaName',
209
+ required: false,
210
+ skipPrompt: true,
211
+ },
212
+ {
213
+ type: 'text',
214
+ name: 'privateSchemaName',
215
+ message: 'privateSchemaName',
216
+ required: false,
217
+ skipPrompt: true,
218
+ },
219
+ {
220
+ type: 'text',
221
+ name: 'namespacesTableId',
222
+ message: 'namespacesTableId',
223
+ required: false,
224
+ skipPrompt: true,
225
+ },
226
+ {
227
+ type: 'text',
228
+ name: 'namespaceEventsTableId',
229
+ message: 'namespaceEventsTableId',
230
+ required: false,
231
+ skipPrompt: true,
232
+ },
233
+ {
234
+ type: 'text',
235
+ name: 'namespacesTableName',
236
+ message: 'namespacesTableName',
237
+ required: false,
238
+ skipPrompt: true,
239
+ },
240
+ {
241
+ type: 'text',
242
+ name: 'namespaceEventsTableName',
243
+ message: 'namespaceEventsTableName',
244
+ required: false,
245
+ skipPrompt: true,
246
+ },
247
+ {
248
+ type: 'text',
249
+ name: 'apiName',
250
+ message: 'apiName',
251
+ required: false,
252
+ skipPrompt: true,
253
+ },
254
+ {
255
+ type: 'text',
256
+ name: 'privateApiName',
257
+ message: 'privateApiName',
258
+ required: false,
259
+ skipPrompt: true,
260
+ },
261
+ {
262
+ type: 'text',
263
+ name: 'membershipType',
264
+ message: 'membershipType',
265
+ required: false,
266
+ skipPrompt: true,
267
+ },
268
+ {
269
+ type: 'text',
270
+ name: 'key',
271
+ message: 'key',
272
+ required: false,
273
+ skipPrompt: true,
274
+ },
275
+ {
276
+ type: 'text',
277
+ name: 'entityTableId',
278
+ message: 'entityTableId',
279
+ required: false,
280
+ skipPrompt: true,
281
+ },
282
+ {
283
+ type: 'json',
284
+ name: 'policies',
285
+ message: 'policies',
286
+ required: false,
287
+ skipPrompt: true,
288
+ },
289
+ {
290
+ type: 'json',
291
+ name: 'provisions',
292
+ message: 'provisions',
293
+ required: false,
294
+ skipPrompt: true,
295
+ },
296
+ ]);
297
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
298
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
299
+ const client = (0, executor_1.getClient)();
300
+ const result = await client.namespaceModule
301
+ .create({
302
+ data: {
303
+ databaseId: cleanedData.databaseId,
304
+ schemaId: cleanedData.schemaId,
305
+ privateSchemaId: cleanedData.privateSchemaId,
306
+ publicSchemaName: cleanedData.publicSchemaName,
307
+ privateSchemaName: cleanedData.privateSchemaName,
308
+ namespacesTableId: cleanedData.namespacesTableId,
309
+ namespaceEventsTableId: cleanedData.namespaceEventsTableId,
310
+ namespacesTableName: cleanedData.namespacesTableName,
311
+ namespaceEventsTableName: cleanedData.namespaceEventsTableName,
312
+ apiName: cleanedData.apiName,
313
+ privateApiName: cleanedData.privateApiName,
314
+ membershipType: cleanedData.membershipType,
315
+ key: cleanedData.key,
316
+ entityTableId: cleanedData.entityTableId,
317
+ policies: cleanedData.policies,
318
+ provisions: cleanedData.provisions,
319
+ },
320
+ select: {
321
+ id: true,
322
+ databaseId: true,
323
+ schemaId: true,
324
+ privateSchemaId: true,
325
+ publicSchemaName: true,
326
+ privateSchemaName: true,
327
+ namespacesTableId: true,
328
+ namespaceEventsTableId: true,
329
+ namespacesTableName: true,
330
+ namespaceEventsTableName: true,
331
+ apiName: true,
332
+ privateApiName: true,
333
+ membershipType: true,
334
+ key: true,
335
+ entityTableId: true,
336
+ policies: true,
337
+ provisions: true,
338
+ },
339
+ })
340
+ .execute();
341
+ console.log(JSON.stringify(result, null, 2));
342
+ }
343
+ catch (error) {
344
+ console.error('Failed to create record.');
345
+ if (error instanceof Error) {
346
+ console.error(error.message);
347
+ }
348
+ process.exit(1);
349
+ }
350
+ }
351
+ async function handleUpdate(argv, prompter) {
352
+ try {
353
+ const rawAnswers = await prompter.prompt(argv, [
354
+ {
355
+ type: 'text',
356
+ name: 'id',
357
+ message: 'id',
358
+ required: true,
359
+ },
360
+ {
361
+ type: 'text',
362
+ name: 'databaseId',
363
+ message: 'databaseId',
364
+ required: false,
365
+ },
366
+ {
367
+ type: 'text',
368
+ name: 'schemaId',
369
+ message: 'schemaId',
370
+ required: false,
371
+ skipPrompt: true,
372
+ },
373
+ {
374
+ type: 'text',
375
+ name: 'privateSchemaId',
376
+ message: 'privateSchemaId',
377
+ required: false,
378
+ skipPrompt: true,
379
+ },
380
+ {
381
+ type: 'text',
382
+ name: 'publicSchemaName',
383
+ message: 'publicSchemaName',
384
+ required: false,
385
+ skipPrompt: true,
386
+ },
387
+ {
388
+ type: 'text',
389
+ name: 'privateSchemaName',
390
+ message: 'privateSchemaName',
391
+ required: false,
392
+ skipPrompt: true,
393
+ },
394
+ {
395
+ type: 'text',
396
+ name: 'namespacesTableId',
397
+ message: 'namespacesTableId',
398
+ required: false,
399
+ skipPrompt: true,
400
+ },
401
+ {
402
+ type: 'text',
403
+ name: 'namespaceEventsTableId',
404
+ message: 'namespaceEventsTableId',
405
+ required: false,
406
+ skipPrompt: true,
407
+ },
408
+ {
409
+ type: 'text',
410
+ name: 'namespacesTableName',
411
+ message: 'namespacesTableName',
412
+ required: false,
413
+ skipPrompt: true,
414
+ },
415
+ {
416
+ type: 'text',
417
+ name: 'namespaceEventsTableName',
418
+ message: 'namespaceEventsTableName',
419
+ required: false,
420
+ skipPrompt: true,
421
+ },
422
+ {
423
+ type: 'text',
424
+ name: 'apiName',
425
+ message: 'apiName',
426
+ required: false,
427
+ skipPrompt: true,
428
+ },
429
+ {
430
+ type: 'text',
431
+ name: 'privateApiName',
432
+ message: 'privateApiName',
433
+ required: false,
434
+ skipPrompt: true,
435
+ },
436
+ {
437
+ type: 'text',
438
+ name: 'membershipType',
439
+ message: 'membershipType',
440
+ required: false,
441
+ skipPrompt: true,
442
+ },
443
+ {
444
+ type: 'text',
445
+ name: 'key',
446
+ message: 'key',
447
+ required: false,
448
+ skipPrompt: true,
449
+ },
450
+ {
451
+ type: 'text',
452
+ name: 'entityTableId',
453
+ message: 'entityTableId',
454
+ required: false,
455
+ skipPrompt: true,
456
+ },
457
+ {
458
+ type: 'json',
459
+ name: 'policies',
460
+ message: 'policies',
461
+ required: false,
462
+ skipPrompt: true,
463
+ },
464
+ {
465
+ type: 'json',
466
+ name: 'provisions',
467
+ message: 'provisions',
468
+ required: false,
469
+ skipPrompt: true,
470
+ },
471
+ ]);
472
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
473
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
474
+ const client = (0, executor_1.getClient)();
475
+ const result = await client.namespaceModule
476
+ .update({
477
+ where: {
478
+ id: answers.id,
479
+ },
480
+ data: {
481
+ databaseId: cleanedData.databaseId,
482
+ schemaId: cleanedData.schemaId,
483
+ privateSchemaId: cleanedData.privateSchemaId,
484
+ publicSchemaName: cleanedData.publicSchemaName,
485
+ privateSchemaName: cleanedData.privateSchemaName,
486
+ namespacesTableId: cleanedData.namespacesTableId,
487
+ namespaceEventsTableId: cleanedData.namespaceEventsTableId,
488
+ namespacesTableName: cleanedData.namespacesTableName,
489
+ namespaceEventsTableName: cleanedData.namespaceEventsTableName,
490
+ apiName: cleanedData.apiName,
491
+ privateApiName: cleanedData.privateApiName,
492
+ membershipType: cleanedData.membershipType,
493
+ key: cleanedData.key,
494
+ entityTableId: cleanedData.entityTableId,
495
+ policies: cleanedData.policies,
496
+ provisions: cleanedData.provisions,
497
+ },
498
+ select: {
499
+ id: true,
500
+ databaseId: true,
501
+ schemaId: true,
502
+ privateSchemaId: true,
503
+ publicSchemaName: true,
504
+ privateSchemaName: true,
505
+ namespacesTableId: true,
506
+ namespaceEventsTableId: true,
507
+ namespacesTableName: true,
508
+ namespaceEventsTableName: true,
509
+ apiName: true,
510
+ privateApiName: true,
511
+ membershipType: true,
512
+ key: true,
513
+ entityTableId: true,
514
+ policies: true,
515
+ provisions: true,
516
+ },
517
+ })
518
+ .execute();
519
+ console.log(JSON.stringify(result, null, 2));
520
+ }
521
+ catch (error) {
522
+ console.error('Failed to update record.');
523
+ if (error instanceof Error) {
524
+ console.error(error.message);
525
+ }
526
+ process.exit(1);
527
+ }
528
+ }
529
+ async function handleDelete(argv, prompter) {
530
+ try {
531
+ const rawAnswers = await prompter.prompt(argv, [
532
+ {
533
+ type: 'text',
534
+ name: 'id',
535
+ message: 'id',
536
+ required: true,
537
+ },
538
+ ]);
539
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
540
+ const client = (0, executor_1.getClient)();
541
+ const result = await client.namespaceModule
542
+ .delete({
543
+ where: {
544
+ id: answers.id,
545
+ },
546
+ select: {
547
+ id: true,
548
+ },
549
+ })
550
+ .execute();
551
+ console.log(JSON.stringify(result, null, 2));
552
+ }
553
+ catch (error) {
554
+ console.error('Failed to delete record.');
555
+ if (error instanceof Error) {
556
+ console.error(error.message);
557
+ }
558
+ process.exit(1);
559
+ }
560
+ }
@@ -21,6 +21,8 @@ const fieldSchema = {
21
21
  purchasedCredits: 'int',
22
22
  periodCredits: 'int',
23
23
  reserved: 'int',
24
+ organizationId: 'uuid',
25
+ entityType: 'string',
24
26
  };
25
27
  const usage = '\norg-limit-aggregate <command>\n\nCommands:\n list List orgLimitAggregate records\n find-first Find first matching orgLimitAggregate record\n get Get a orgLimitAggregate by ID\n create Create a new orgLimitAggregate\n update Update an existing orgLimitAggregate\n delete Delete a orgLimitAggregate\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n';
26
28
  exports.default = async (argv, prompter, _options) => {
@@ -76,6 +78,8 @@ async function handleList(argv, _prompter) {
76
78
  purchasedCredits: true,
77
79
  periodCredits: true,
78
80
  reserved: true,
81
+ organizationId: true,
82
+ entityType: true,
79
83
  };
80
84
  const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
81
85
  const client = (0, executor_1.getClient)();
@@ -105,6 +109,8 @@ async function handleFindFirst(argv, _prompter) {
105
109
  purchasedCredits: true,
106
110
  periodCredits: true,
107
111
  reserved: true,
112
+ organizationId: true,
113
+ entityType: true,
108
114
  };
109
115
  const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
110
116
  const client = (0, executor_1.getClient)();
@@ -146,6 +152,8 @@ async function handleGet(argv, prompter) {
146
152
  purchasedCredits: true,
147
153
  periodCredits: true,
148
154
  reserved: true,
155
+ organizationId: true,
156
+ entityType: true,
149
157
  },
150
158
  })
151
159
  .execute();
@@ -238,6 +246,20 @@ async function handleCreate(argv, prompter) {
238
246
  required: false,
239
247
  skipPrompt: true,
240
248
  },
249
+ {
250
+ type: 'text',
251
+ name: 'organizationId',
252
+ message: 'organizationId',
253
+ required: false,
254
+ skipPrompt: true,
255
+ },
256
+ {
257
+ type: 'text',
258
+ name: 'entityType',
259
+ message: 'entityType',
260
+ required: false,
261
+ skipPrompt: true,
262
+ },
241
263
  ]);
242
264
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
243
265
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -256,6 +278,8 @@ async function handleCreate(argv, prompter) {
256
278
  purchasedCredits: cleanedData.purchasedCredits,
257
279
  periodCredits: cleanedData.periodCredits,
258
280
  reserved: cleanedData.reserved,
281
+ organizationId: cleanedData.organizationId,
282
+ entityType: cleanedData.entityType,
259
283
  },
260
284
  select: {
261
285
  id: true,
@@ -270,6 +294,8 @@ async function handleCreate(argv, prompter) {
270
294
  purchasedCredits: true,
271
295
  periodCredits: true,
272
296
  reserved: true,
297
+ organizationId: true,
298
+ entityType: true,
273
299
  },
274
300
  })
275
301
  .execute();
@@ -368,6 +394,20 @@ async function handleUpdate(argv, prompter) {
368
394
  required: false,
369
395
  skipPrompt: true,
370
396
  },
397
+ {
398
+ type: 'text',
399
+ name: 'organizationId',
400
+ message: 'organizationId',
401
+ required: false,
402
+ skipPrompt: true,
403
+ },
404
+ {
405
+ type: 'text',
406
+ name: 'entityType',
407
+ message: 'entityType',
408
+ required: false,
409
+ skipPrompt: true,
410
+ },
371
411
  ]);
372
412
  const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
373
413
  const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
@@ -389,6 +429,8 @@ async function handleUpdate(argv, prompter) {
389
429
  purchasedCredits: cleanedData.purchasedCredits,
390
430
  periodCredits: cleanedData.periodCredits,
391
431
  reserved: cleanedData.reserved,
432
+ organizationId: cleanedData.organizationId,
433
+ entityType: cleanedData.entityType,
392
434
  },
393
435
  select: {
394
436
  id: true,
@@ -403,6 +445,8 @@ async function handleUpdate(argv, prompter) {
403
445
  purchasedCredits: true,
404
446
  periodCredits: true,
405
447
  reserved: true,
448
+ organizationId: true,
449
+ entityType: true,
406
450
  },
407
451
  })
408
452
  .execute();