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