@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,780 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * CLI commands for FunctionModule
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
+ definitionsTableId: 'uuid',
19
+ invocationsTableId: 'uuid',
20
+ executionLogsTableId: 'uuid',
21
+ secretDefinitionsTableId: 'uuid',
22
+ requirementsTableId: 'uuid',
23
+ configDefinitionsTableId: 'uuid',
24
+ configRequirementsTableId: 'uuid',
25
+ definitionsTableName: 'string',
26
+ invocationsTableName: 'string',
27
+ executionLogsTableName: 'string',
28
+ secretDefinitionsTableName: 'string',
29
+ requirementsTableName: 'string',
30
+ configRequirementsTableName: 'string',
31
+ apiName: 'string',
32
+ privateApiName: 'string',
33
+ membershipType: 'int',
34
+ prefix: 'string',
35
+ key: 'string',
36
+ entityTableId: 'uuid',
37
+ policies: 'json',
38
+ provisions: 'json',
39
+ };
40
+ const usage = '\nfunction-module <command>\n\nCommands:\n list List functionModule records\n find-first Find first matching functionModule record\n get Get a functionModule by ID\n create Create a new functionModule\n update Update an existing functionModule\n delete Delete a functionModule\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';
41
+ exports.default = async (argv, prompter, _options) => {
42
+ if (argv.help || argv.h) {
43
+ console.log(usage);
44
+ process.exit(0);
45
+ }
46
+ const { first: subcommand, newArgv } = (0, inquirerer_1.extractFirst)(argv);
47
+ if (!subcommand) {
48
+ const answer = await prompter.prompt(argv, [
49
+ {
50
+ type: 'autocomplete',
51
+ name: 'subcommand',
52
+ message: 'What do you want to do?',
53
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
54
+ },
55
+ ]);
56
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
57
+ }
58
+ return handleTableSubcommand(subcommand, newArgv, prompter);
59
+ };
60
+ async function handleTableSubcommand(subcommand, argv, prompter) {
61
+ switch (subcommand) {
62
+ case 'list':
63
+ return handleList(argv, prompter);
64
+ case 'find-first':
65
+ return handleFindFirst(argv, prompter);
66
+ case 'get':
67
+ return handleGet(argv, prompter);
68
+ case 'create':
69
+ return handleCreate(argv, prompter);
70
+ case 'update':
71
+ return handleUpdate(argv, prompter);
72
+ case 'delete':
73
+ return handleDelete(argv, prompter);
74
+ default:
75
+ console.log(usage);
76
+ process.exit(1);
77
+ }
78
+ }
79
+ async function handleList(argv, _prompter) {
80
+ try {
81
+ const defaultSelect = {
82
+ id: true,
83
+ databaseId: true,
84
+ schemaId: true,
85
+ privateSchemaId: true,
86
+ publicSchemaName: true,
87
+ privateSchemaName: true,
88
+ definitionsTableId: true,
89
+ invocationsTableId: true,
90
+ executionLogsTableId: true,
91
+ secretDefinitionsTableId: true,
92
+ requirementsTableId: true,
93
+ configDefinitionsTableId: true,
94
+ configRequirementsTableId: true,
95
+ definitionsTableName: true,
96
+ invocationsTableName: true,
97
+ executionLogsTableName: true,
98
+ secretDefinitionsTableName: true,
99
+ requirementsTableName: true,
100
+ configRequirementsTableName: true,
101
+ apiName: true,
102
+ privateApiName: true,
103
+ membershipType: true,
104
+ prefix: true,
105
+ key: true,
106
+ entityTableId: true,
107
+ policies: true,
108
+ provisions: true,
109
+ };
110
+ const findManyArgs = (0, utils_1.parseFindManyArgs)(argv, defaultSelect);
111
+ const client = (0, executor_1.getClient)();
112
+ const result = await client.functionModule.findMany(findManyArgs).execute();
113
+ console.log(JSON.stringify(result, null, 2));
114
+ }
115
+ catch (error) {
116
+ console.error('Failed to list records.');
117
+ if (error instanceof Error) {
118
+ console.error(error.message);
119
+ }
120
+ process.exit(1);
121
+ }
122
+ }
123
+ async function handleFindFirst(argv, _prompter) {
124
+ try {
125
+ const defaultSelect = {
126
+ id: true,
127
+ databaseId: true,
128
+ schemaId: true,
129
+ privateSchemaId: true,
130
+ publicSchemaName: true,
131
+ privateSchemaName: true,
132
+ definitionsTableId: true,
133
+ invocationsTableId: true,
134
+ executionLogsTableId: true,
135
+ secretDefinitionsTableId: true,
136
+ requirementsTableId: true,
137
+ configDefinitionsTableId: true,
138
+ configRequirementsTableId: true,
139
+ definitionsTableName: true,
140
+ invocationsTableName: true,
141
+ executionLogsTableName: true,
142
+ secretDefinitionsTableName: true,
143
+ requirementsTableName: true,
144
+ configRequirementsTableName: true,
145
+ apiName: true,
146
+ privateApiName: true,
147
+ membershipType: true,
148
+ prefix: true,
149
+ key: true,
150
+ entityTableId: true,
151
+ policies: true,
152
+ provisions: true,
153
+ };
154
+ const findFirstArgs = (0, utils_1.parseFindFirstArgs)(argv, defaultSelect);
155
+ const client = (0, executor_1.getClient)();
156
+ const result = await client.functionModule.findFirst(findFirstArgs).execute();
157
+ console.log(JSON.stringify(result, null, 2));
158
+ }
159
+ catch (error) {
160
+ console.error('Failed to find record.');
161
+ if (error instanceof Error) {
162
+ console.error(error.message);
163
+ }
164
+ process.exit(1);
165
+ }
166
+ }
167
+ async function handleGet(argv, prompter) {
168
+ try {
169
+ const answers = await prompter.prompt(argv, [
170
+ {
171
+ type: 'text',
172
+ name: 'id',
173
+ message: 'id',
174
+ required: true,
175
+ },
176
+ ]);
177
+ const client = (0, executor_1.getClient)();
178
+ const result = await client.functionModule
179
+ .findOne({
180
+ id: answers.id,
181
+ select: {
182
+ id: true,
183
+ databaseId: true,
184
+ schemaId: true,
185
+ privateSchemaId: true,
186
+ publicSchemaName: true,
187
+ privateSchemaName: true,
188
+ definitionsTableId: true,
189
+ invocationsTableId: true,
190
+ executionLogsTableId: true,
191
+ secretDefinitionsTableId: true,
192
+ requirementsTableId: true,
193
+ configDefinitionsTableId: true,
194
+ configRequirementsTableId: true,
195
+ definitionsTableName: true,
196
+ invocationsTableName: true,
197
+ executionLogsTableName: true,
198
+ secretDefinitionsTableName: true,
199
+ requirementsTableName: true,
200
+ configRequirementsTableName: true,
201
+ apiName: true,
202
+ privateApiName: true,
203
+ membershipType: true,
204
+ prefix: true,
205
+ key: true,
206
+ entityTableId: true,
207
+ policies: true,
208
+ provisions: true,
209
+ },
210
+ })
211
+ .execute();
212
+ console.log(JSON.stringify(result, null, 2));
213
+ }
214
+ catch (error) {
215
+ console.error('Record not found.');
216
+ if (error instanceof Error) {
217
+ console.error(error.message);
218
+ }
219
+ process.exit(1);
220
+ }
221
+ }
222
+ async function handleCreate(argv, prompter) {
223
+ try {
224
+ const rawAnswers = await prompter.prompt(argv, [
225
+ {
226
+ type: 'text',
227
+ name: 'databaseId',
228
+ message: 'databaseId',
229
+ required: true,
230
+ },
231
+ {
232
+ type: 'text',
233
+ name: 'schemaId',
234
+ message: 'schemaId',
235
+ required: false,
236
+ skipPrompt: true,
237
+ },
238
+ {
239
+ type: 'text',
240
+ name: 'privateSchemaId',
241
+ message: 'privateSchemaId',
242
+ required: false,
243
+ skipPrompt: true,
244
+ },
245
+ {
246
+ type: 'text',
247
+ name: 'publicSchemaName',
248
+ message: 'publicSchemaName',
249
+ required: false,
250
+ skipPrompt: true,
251
+ },
252
+ {
253
+ type: 'text',
254
+ name: 'privateSchemaName',
255
+ message: 'privateSchemaName',
256
+ required: false,
257
+ skipPrompt: true,
258
+ },
259
+ {
260
+ type: 'text',
261
+ name: 'definitionsTableId',
262
+ message: 'definitionsTableId',
263
+ required: false,
264
+ skipPrompt: true,
265
+ },
266
+ {
267
+ type: 'text',
268
+ name: 'invocationsTableId',
269
+ message: 'invocationsTableId',
270
+ required: false,
271
+ skipPrompt: true,
272
+ },
273
+ {
274
+ type: 'text',
275
+ name: 'executionLogsTableId',
276
+ message: 'executionLogsTableId',
277
+ required: false,
278
+ skipPrompt: true,
279
+ },
280
+ {
281
+ type: 'text',
282
+ name: 'secretDefinitionsTableId',
283
+ message: 'secretDefinitionsTableId',
284
+ required: false,
285
+ skipPrompt: true,
286
+ },
287
+ {
288
+ type: 'text',
289
+ name: 'requirementsTableId',
290
+ message: 'requirementsTableId',
291
+ required: false,
292
+ skipPrompt: true,
293
+ },
294
+ {
295
+ type: 'text',
296
+ name: 'configDefinitionsTableId',
297
+ message: 'configDefinitionsTableId',
298
+ required: false,
299
+ skipPrompt: true,
300
+ },
301
+ {
302
+ type: 'text',
303
+ name: 'configRequirementsTableId',
304
+ message: 'configRequirementsTableId',
305
+ required: false,
306
+ skipPrompt: true,
307
+ },
308
+ {
309
+ type: 'text',
310
+ name: 'definitionsTableName',
311
+ message: 'definitionsTableName',
312
+ required: false,
313
+ skipPrompt: true,
314
+ },
315
+ {
316
+ type: 'text',
317
+ name: 'invocationsTableName',
318
+ message: 'invocationsTableName',
319
+ required: false,
320
+ skipPrompt: true,
321
+ },
322
+ {
323
+ type: 'text',
324
+ name: 'executionLogsTableName',
325
+ message: 'executionLogsTableName',
326
+ required: false,
327
+ skipPrompt: true,
328
+ },
329
+ {
330
+ type: 'text',
331
+ name: 'secretDefinitionsTableName',
332
+ message: 'secretDefinitionsTableName',
333
+ required: false,
334
+ skipPrompt: true,
335
+ },
336
+ {
337
+ type: 'text',
338
+ name: 'requirementsTableName',
339
+ message: 'requirementsTableName',
340
+ required: false,
341
+ skipPrompt: true,
342
+ },
343
+ {
344
+ type: 'text',
345
+ name: 'configRequirementsTableName',
346
+ message: 'configRequirementsTableName',
347
+ required: false,
348
+ skipPrompt: true,
349
+ },
350
+ {
351
+ type: 'text',
352
+ name: 'apiName',
353
+ message: 'apiName',
354
+ required: false,
355
+ skipPrompt: true,
356
+ },
357
+ {
358
+ type: 'text',
359
+ name: 'privateApiName',
360
+ message: 'privateApiName',
361
+ required: false,
362
+ skipPrompt: true,
363
+ },
364
+ {
365
+ type: 'text',
366
+ name: 'membershipType',
367
+ message: 'membershipType',
368
+ required: false,
369
+ skipPrompt: true,
370
+ },
371
+ {
372
+ type: 'text',
373
+ name: 'prefix',
374
+ message: 'prefix',
375
+ required: false,
376
+ skipPrompt: true,
377
+ },
378
+ {
379
+ type: 'text',
380
+ name: 'key',
381
+ message: 'key',
382
+ required: false,
383
+ skipPrompt: true,
384
+ },
385
+ {
386
+ type: 'text',
387
+ name: 'entityTableId',
388
+ message: 'entityTableId',
389
+ required: false,
390
+ skipPrompt: true,
391
+ },
392
+ {
393
+ type: 'json',
394
+ name: 'policies',
395
+ message: 'policies',
396
+ required: false,
397
+ skipPrompt: true,
398
+ },
399
+ {
400
+ type: 'json',
401
+ name: 'provisions',
402
+ message: 'provisions',
403
+ required: false,
404
+ skipPrompt: true,
405
+ },
406
+ ]);
407
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
408
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
409
+ const client = (0, executor_1.getClient)();
410
+ const result = await client.functionModule
411
+ .create({
412
+ data: {
413
+ databaseId: cleanedData.databaseId,
414
+ schemaId: cleanedData.schemaId,
415
+ privateSchemaId: cleanedData.privateSchemaId,
416
+ publicSchemaName: cleanedData.publicSchemaName,
417
+ privateSchemaName: cleanedData.privateSchemaName,
418
+ definitionsTableId: cleanedData.definitionsTableId,
419
+ invocationsTableId: cleanedData.invocationsTableId,
420
+ executionLogsTableId: cleanedData.executionLogsTableId,
421
+ secretDefinitionsTableId: cleanedData.secretDefinitionsTableId,
422
+ requirementsTableId: cleanedData.requirementsTableId,
423
+ configDefinitionsTableId: cleanedData.configDefinitionsTableId,
424
+ configRequirementsTableId: cleanedData.configRequirementsTableId,
425
+ definitionsTableName: cleanedData.definitionsTableName,
426
+ invocationsTableName: cleanedData.invocationsTableName,
427
+ executionLogsTableName: cleanedData.executionLogsTableName,
428
+ secretDefinitionsTableName: cleanedData.secretDefinitionsTableName,
429
+ requirementsTableName: cleanedData.requirementsTableName,
430
+ configRequirementsTableName: cleanedData.configRequirementsTableName,
431
+ apiName: cleanedData.apiName,
432
+ privateApiName: cleanedData.privateApiName,
433
+ membershipType: cleanedData.membershipType,
434
+ prefix: cleanedData.prefix,
435
+ key: cleanedData.key,
436
+ entityTableId: cleanedData.entityTableId,
437
+ policies: cleanedData.policies,
438
+ provisions: cleanedData.provisions,
439
+ },
440
+ select: {
441
+ id: true,
442
+ databaseId: true,
443
+ schemaId: true,
444
+ privateSchemaId: true,
445
+ publicSchemaName: true,
446
+ privateSchemaName: true,
447
+ definitionsTableId: true,
448
+ invocationsTableId: true,
449
+ executionLogsTableId: true,
450
+ secretDefinitionsTableId: true,
451
+ requirementsTableId: true,
452
+ configDefinitionsTableId: true,
453
+ configRequirementsTableId: true,
454
+ definitionsTableName: true,
455
+ invocationsTableName: true,
456
+ executionLogsTableName: true,
457
+ secretDefinitionsTableName: true,
458
+ requirementsTableName: true,
459
+ configRequirementsTableName: true,
460
+ apiName: true,
461
+ privateApiName: true,
462
+ membershipType: true,
463
+ prefix: true,
464
+ key: true,
465
+ entityTableId: true,
466
+ policies: true,
467
+ provisions: true,
468
+ },
469
+ })
470
+ .execute();
471
+ console.log(JSON.stringify(result, null, 2));
472
+ }
473
+ catch (error) {
474
+ console.error('Failed to create record.');
475
+ if (error instanceof Error) {
476
+ console.error(error.message);
477
+ }
478
+ process.exit(1);
479
+ }
480
+ }
481
+ async function handleUpdate(argv, prompter) {
482
+ try {
483
+ const rawAnswers = await prompter.prompt(argv, [
484
+ {
485
+ type: 'text',
486
+ name: 'id',
487
+ message: 'id',
488
+ required: true,
489
+ },
490
+ {
491
+ type: 'text',
492
+ name: 'databaseId',
493
+ message: 'databaseId',
494
+ required: false,
495
+ },
496
+ {
497
+ type: 'text',
498
+ name: 'schemaId',
499
+ message: 'schemaId',
500
+ required: false,
501
+ skipPrompt: true,
502
+ },
503
+ {
504
+ type: 'text',
505
+ name: 'privateSchemaId',
506
+ message: 'privateSchemaId',
507
+ required: false,
508
+ skipPrompt: true,
509
+ },
510
+ {
511
+ type: 'text',
512
+ name: 'publicSchemaName',
513
+ message: 'publicSchemaName',
514
+ required: false,
515
+ skipPrompt: true,
516
+ },
517
+ {
518
+ type: 'text',
519
+ name: 'privateSchemaName',
520
+ message: 'privateSchemaName',
521
+ required: false,
522
+ skipPrompt: true,
523
+ },
524
+ {
525
+ type: 'text',
526
+ name: 'definitionsTableId',
527
+ message: 'definitionsTableId',
528
+ required: false,
529
+ skipPrompt: true,
530
+ },
531
+ {
532
+ type: 'text',
533
+ name: 'invocationsTableId',
534
+ message: 'invocationsTableId',
535
+ required: false,
536
+ skipPrompt: true,
537
+ },
538
+ {
539
+ type: 'text',
540
+ name: 'executionLogsTableId',
541
+ message: 'executionLogsTableId',
542
+ required: false,
543
+ skipPrompt: true,
544
+ },
545
+ {
546
+ type: 'text',
547
+ name: 'secretDefinitionsTableId',
548
+ message: 'secretDefinitionsTableId',
549
+ required: false,
550
+ skipPrompt: true,
551
+ },
552
+ {
553
+ type: 'text',
554
+ name: 'requirementsTableId',
555
+ message: 'requirementsTableId',
556
+ required: false,
557
+ skipPrompt: true,
558
+ },
559
+ {
560
+ type: 'text',
561
+ name: 'configDefinitionsTableId',
562
+ message: 'configDefinitionsTableId',
563
+ required: false,
564
+ skipPrompt: true,
565
+ },
566
+ {
567
+ type: 'text',
568
+ name: 'configRequirementsTableId',
569
+ message: 'configRequirementsTableId',
570
+ required: false,
571
+ skipPrompt: true,
572
+ },
573
+ {
574
+ type: 'text',
575
+ name: 'definitionsTableName',
576
+ message: 'definitionsTableName',
577
+ required: false,
578
+ skipPrompt: true,
579
+ },
580
+ {
581
+ type: 'text',
582
+ name: 'invocationsTableName',
583
+ message: 'invocationsTableName',
584
+ required: false,
585
+ skipPrompt: true,
586
+ },
587
+ {
588
+ type: 'text',
589
+ name: 'executionLogsTableName',
590
+ message: 'executionLogsTableName',
591
+ required: false,
592
+ skipPrompt: true,
593
+ },
594
+ {
595
+ type: 'text',
596
+ name: 'secretDefinitionsTableName',
597
+ message: 'secretDefinitionsTableName',
598
+ required: false,
599
+ skipPrompt: true,
600
+ },
601
+ {
602
+ type: 'text',
603
+ name: 'requirementsTableName',
604
+ message: 'requirementsTableName',
605
+ required: false,
606
+ skipPrompt: true,
607
+ },
608
+ {
609
+ type: 'text',
610
+ name: 'configRequirementsTableName',
611
+ message: 'configRequirementsTableName',
612
+ required: false,
613
+ skipPrompt: true,
614
+ },
615
+ {
616
+ type: 'text',
617
+ name: 'apiName',
618
+ message: 'apiName',
619
+ required: false,
620
+ skipPrompt: true,
621
+ },
622
+ {
623
+ type: 'text',
624
+ name: 'privateApiName',
625
+ message: 'privateApiName',
626
+ required: false,
627
+ skipPrompt: true,
628
+ },
629
+ {
630
+ type: 'text',
631
+ name: 'membershipType',
632
+ message: 'membershipType',
633
+ required: false,
634
+ skipPrompt: true,
635
+ },
636
+ {
637
+ type: 'text',
638
+ name: 'prefix',
639
+ message: 'prefix',
640
+ required: false,
641
+ skipPrompt: true,
642
+ },
643
+ {
644
+ type: 'text',
645
+ name: 'key',
646
+ message: 'key',
647
+ required: false,
648
+ skipPrompt: true,
649
+ },
650
+ {
651
+ type: 'text',
652
+ name: 'entityTableId',
653
+ message: 'entityTableId',
654
+ required: false,
655
+ skipPrompt: true,
656
+ },
657
+ {
658
+ type: 'json',
659
+ name: 'policies',
660
+ message: 'policies',
661
+ required: false,
662
+ skipPrompt: true,
663
+ },
664
+ {
665
+ type: 'json',
666
+ name: 'provisions',
667
+ message: 'provisions',
668
+ required: false,
669
+ skipPrompt: true,
670
+ },
671
+ ]);
672
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
673
+ const cleanedData = (0, utils_1.stripUndefined)(answers, fieldSchema);
674
+ const client = (0, executor_1.getClient)();
675
+ const result = await client.functionModule
676
+ .update({
677
+ where: {
678
+ id: answers.id,
679
+ },
680
+ data: {
681
+ databaseId: cleanedData.databaseId,
682
+ schemaId: cleanedData.schemaId,
683
+ privateSchemaId: cleanedData.privateSchemaId,
684
+ publicSchemaName: cleanedData.publicSchemaName,
685
+ privateSchemaName: cleanedData.privateSchemaName,
686
+ definitionsTableId: cleanedData.definitionsTableId,
687
+ invocationsTableId: cleanedData.invocationsTableId,
688
+ executionLogsTableId: cleanedData.executionLogsTableId,
689
+ secretDefinitionsTableId: cleanedData.secretDefinitionsTableId,
690
+ requirementsTableId: cleanedData.requirementsTableId,
691
+ configDefinitionsTableId: cleanedData.configDefinitionsTableId,
692
+ configRequirementsTableId: cleanedData.configRequirementsTableId,
693
+ definitionsTableName: cleanedData.definitionsTableName,
694
+ invocationsTableName: cleanedData.invocationsTableName,
695
+ executionLogsTableName: cleanedData.executionLogsTableName,
696
+ secretDefinitionsTableName: cleanedData.secretDefinitionsTableName,
697
+ requirementsTableName: cleanedData.requirementsTableName,
698
+ configRequirementsTableName: cleanedData.configRequirementsTableName,
699
+ apiName: cleanedData.apiName,
700
+ privateApiName: cleanedData.privateApiName,
701
+ membershipType: cleanedData.membershipType,
702
+ prefix: cleanedData.prefix,
703
+ key: cleanedData.key,
704
+ entityTableId: cleanedData.entityTableId,
705
+ policies: cleanedData.policies,
706
+ provisions: cleanedData.provisions,
707
+ },
708
+ select: {
709
+ id: true,
710
+ databaseId: true,
711
+ schemaId: true,
712
+ privateSchemaId: true,
713
+ publicSchemaName: true,
714
+ privateSchemaName: true,
715
+ definitionsTableId: true,
716
+ invocationsTableId: true,
717
+ executionLogsTableId: true,
718
+ secretDefinitionsTableId: true,
719
+ requirementsTableId: true,
720
+ configDefinitionsTableId: true,
721
+ configRequirementsTableId: true,
722
+ definitionsTableName: true,
723
+ invocationsTableName: true,
724
+ executionLogsTableName: true,
725
+ secretDefinitionsTableName: true,
726
+ requirementsTableName: true,
727
+ configRequirementsTableName: true,
728
+ apiName: true,
729
+ privateApiName: true,
730
+ membershipType: true,
731
+ prefix: true,
732
+ key: true,
733
+ entityTableId: true,
734
+ policies: true,
735
+ provisions: true,
736
+ },
737
+ })
738
+ .execute();
739
+ console.log(JSON.stringify(result, null, 2));
740
+ }
741
+ catch (error) {
742
+ console.error('Failed to update record.');
743
+ if (error instanceof Error) {
744
+ console.error(error.message);
745
+ }
746
+ process.exit(1);
747
+ }
748
+ }
749
+ async function handleDelete(argv, prompter) {
750
+ try {
751
+ const rawAnswers = await prompter.prompt(argv, [
752
+ {
753
+ type: 'text',
754
+ name: 'id',
755
+ message: 'id',
756
+ required: true,
757
+ },
758
+ ]);
759
+ const answers = (0, utils_1.coerceAnswers)(rawAnswers, fieldSchema);
760
+ const client = (0, executor_1.getClient)();
761
+ const result = await client.functionModule
762
+ .delete({
763
+ where: {
764
+ id: answers.id,
765
+ },
766
+ select: {
767
+ id: true,
768
+ },
769
+ })
770
+ .execute();
771
+ console.log(JSON.stringify(result, null, 2));
772
+ }
773
+ catch (error) {
774
+ console.error('Failed to delete record.');
775
+ if (error instanceof Error) {
776
+ console.error(error.message);
777
+ }
778
+ process.exit(1);
779
+ }
780
+ }