@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,558 @@
1
+ /**
2
+ * CLI commands for DbUsageModule
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
+ tableStatsLogTableId: 'uuid',
15
+ tableStatsLogTableName: 'string',
16
+ tableStatsDailyTableId: 'uuid',
17
+ tableStatsDailyTableName: 'string',
18
+ queryStatsLogTableId: 'uuid',
19
+ queryStatsLogTableName: 'string',
20
+ queryStatsDailyTableId: 'uuid',
21
+ queryStatsDailyTableName: 'string',
22
+ interval: 'string',
23
+ retention: 'string',
24
+ premake: 'int',
25
+ scope: 'string',
26
+ prefix: 'string',
27
+ };
28
+ const usage = '\ndb-usage-module <command>\n\nCommands:\n list List dbUsageModule records\n find-first Find first matching dbUsageModule record\n get Get a dbUsageModule by ID\n create Create a new dbUsageModule\n update Update an existing dbUsageModule\n delete Delete a dbUsageModule\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';
29
+ export default async (argv, prompter, _options) => {
30
+ if (argv.help || argv.h) {
31
+ console.log(usage);
32
+ process.exit(0);
33
+ }
34
+ const { first: subcommand, newArgv } = extractFirst(argv);
35
+ if (!subcommand) {
36
+ const answer = await prompter.prompt(argv, [
37
+ {
38
+ type: 'autocomplete',
39
+ name: 'subcommand',
40
+ message: 'What do you want to do?',
41
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
42
+ },
43
+ ]);
44
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
45
+ }
46
+ return handleTableSubcommand(subcommand, newArgv, prompter);
47
+ };
48
+ async function handleTableSubcommand(subcommand, argv, prompter) {
49
+ switch (subcommand) {
50
+ case 'list':
51
+ return handleList(argv, prompter);
52
+ case 'find-first':
53
+ return handleFindFirst(argv, prompter);
54
+ case 'get':
55
+ return handleGet(argv, prompter);
56
+ case 'create':
57
+ return handleCreate(argv, prompter);
58
+ case 'update':
59
+ return handleUpdate(argv, prompter);
60
+ case 'delete':
61
+ return handleDelete(argv, prompter);
62
+ default:
63
+ console.log(usage);
64
+ process.exit(1);
65
+ }
66
+ }
67
+ async function handleList(argv, _prompter) {
68
+ try {
69
+ const defaultSelect = {
70
+ id: true,
71
+ databaseId: true,
72
+ schemaId: true,
73
+ privateSchemaId: true,
74
+ tableStatsLogTableId: true,
75
+ tableStatsLogTableName: true,
76
+ tableStatsDailyTableId: true,
77
+ tableStatsDailyTableName: true,
78
+ queryStatsLogTableId: true,
79
+ queryStatsLogTableName: true,
80
+ queryStatsDailyTableId: true,
81
+ queryStatsDailyTableName: true,
82
+ interval: true,
83
+ retention: true,
84
+ premake: true,
85
+ scope: true,
86
+ prefix: true,
87
+ };
88
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
89
+ const client = getClient();
90
+ const result = await client.dbUsageModule.findMany(findManyArgs).execute();
91
+ console.log(JSON.stringify(result, null, 2));
92
+ }
93
+ catch (error) {
94
+ console.error('Failed to list records.');
95
+ if (error instanceof Error) {
96
+ console.error(error.message);
97
+ }
98
+ process.exit(1);
99
+ }
100
+ }
101
+ async function handleFindFirst(argv, _prompter) {
102
+ try {
103
+ const defaultSelect = {
104
+ id: true,
105
+ databaseId: true,
106
+ schemaId: true,
107
+ privateSchemaId: true,
108
+ tableStatsLogTableId: true,
109
+ tableStatsLogTableName: true,
110
+ tableStatsDailyTableId: true,
111
+ tableStatsDailyTableName: true,
112
+ queryStatsLogTableId: true,
113
+ queryStatsLogTableName: true,
114
+ queryStatsDailyTableId: true,
115
+ queryStatsDailyTableName: true,
116
+ interval: true,
117
+ retention: true,
118
+ premake: true,
119
+ scope: true,
120
+ prefix: true,
121
+ };
122
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
123
+ const client = getClient();
124
+ const result = await client.dbUsageModule.findFirst(findFirstArgs).execute();
125
+ console.log(JSON.stringify(result, null, 2));
126
+ }
127
+ catch (error) {
128
+ console.error('Failed to find record.');
129
+ if (error instanceof Error) {
130
+ console.error(error.message);
131
+ }
132
+ process.exit(1);
133
+ }
134
+ }
135
+ async function handleGet(argv, prompter) {
136
+ try {
137
+ const answers = await prompter.prompt(argv, [
138
+ {
139
+ type: 'text',
140
+ name: 'id',
141
+ message: 'id',
142
+ required: true,
143
+ },
144
+ ]);
145
+ const client = getClient();
146
+ const result = await client.dbUsageModule
147
+ .findOne({
148
+ id: answers.id,
149
+ select: {
150
+ id: true,
151
+ databaseId: true,
152
+ schemaId: true,
153
+ privateSchemaId: true,
154
+ tableStatsLogTableId: true,
155
+ tableStatsLogTableName: true,
156
+ tableStatsDailyTableId: true,
157
+ tableStatsDailyTableName: true,
158
+ queryStatsLogTableId: true,
159
+ queryStatsLogTableName: true,
160
+ queryStatsDailyTableId: true,
161
+ queryStatsDailyTableName: true,
162
+ interval: true,
163
+ retention: true,
164
+ premake: true,
165
+ scope: true,
166
+ prefix: true,
167
+ },
168
+ })
169
+ .execute();
170
+ console.log(JSON.stringify(result, null, 2));
171
+ }
172
+ catch (error) {
173
+ console.error('Record not found.');
174
+ if (error instanceof Error) {
175
+ console.error(error.message);
176
+ }
177
+ process.exit(1);
178
+ }
179
+ }
180
+ async function handleCreate(argv, prompter) {
181
+ try {
182
+ const rawAnswers = await prompter.prompt(argv, [
183
+ {
184
+ type: 'text',
185
+ name: 'databaseId',
186
+ message: 'databaseId',
187
+ required: true,
188
+ },
189
+ {
190
+ type: 'text',
191
+ name: 'schemaId',
192
+ message: 'schemaId',
193
+ required: false,
194
+ skipPrompt: true,
195
+ },
196
+ {
197
+ type: 'text',
198
+ name: 'privateSchemaId',
199
+ message: 'privateSchemaId',
200
+ required: false,
201
+ skipPrompt: true,
202
+ },
203
+ {
204
+ type: 'text',
205
+ name: 'tableStatsLogTableId',
206
+ message: 'tableStatsLogTableId',
207
+ required: false,
208
+ skipPrompt: true,
209
+ },
210
+ {
211
+ type: 'text',
212
+ name: 'tableStatsLogTableName',
213
+ message: 'tableStatsLogTableName',
214
+ required: false,
215
+ skipPrompt: true,
216
+ },
217
+ {
218
+ type: 'text',
219
+ name: 'tableStatsDailyTableId',
220
+ message: 'tableStatsDailyTableId',
221
+ required: false,
222
+ skipPrompt: true,
223
+ },
224
+ {
225
+ type: 'text',
226
+ name: 'tableStatsDailyTableName',
227
+ message: 'tableStatsDailyTableName',
228
+ required: false,
229
+ skipPrompt: true,
230
+ },
231
+ {
232
+ type: 'text',
233
+ name: 'queryStatsLogTableId',
234
+ message: 'queryStatsLogTableId',
235
+ required: false,
236
+ skipPrompt: true,
237
+ },
238
+ {
239
+ type: 'text',
240
+ name: 'queryStatsLogTableName',
241
+ message: 'queryStatsLogTableName',
242
+ required: false,
243
+ skipPrompt: true,
244
+ },
245
+ {
246
+ type: 'text',
247
+ name: 'queryStatsDailyTableId',
248
+ message: 'queryStatsDailyTableId',
249
+ required: false,
250
+ skipPrompt: true,
251
+ },
252
+ {
253
+ type: 'text',
254
+ name: 'queryStatsDailyTableName',
255
+ message: 'queryStatsDailyTableName',
256
+ required: false,
257
+ skipPrompt: true,
258
+ },
259
+ {
260
+ type: 'text',
261
+ name: 'interval',
262
+ message: 'interval',
263
+ required: false,
264
+ skipPrompt: true,
265
+ },
266
+ {
267
+ type: 'text',
268
+ name: 'retention',
269
+ message: 'retention',
270
+ required: false,
271
+ skipPrompt: true,
272
+ },
273
+ {
274
+ type: 'text',
275
+ name: 'premake',
276
+ message: 'premake',
277
+ required: false,
278
+ skipPrompt: true,
279
+ },
280
+ {
281
+ type: 'text',
282
+ name: 'scope',
283
+ message: 'scope',
284
+ required: false,
285
+ skipPrompt: true,
286
+ },
287
+ {
288
+ type: 'text',
289
+ name: 'prefix',
290
+ message: 'prefix',
291
+ required: false,
292
+ skipPrompt: true,
293
+ },
294
+ ]);
295
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
296
+ const cleanedData = stripUndefined(answers, fieldSchema);
297
+ const client = getClient();
298
+ const result = await client.dbUsageModule
299
+ .create({
300
+ data: {
301
+ databaseId: cleanedData.databaseId,
302
+ schemaId: cleanedData.schemaId,
303
+ privateSchemaId: cleanedData.privateSchemaId,
304
+ tableStatsLogTableId: cleanedData.tableStatsLogTableId,
305
+ tableStatsLogTableName: cleanedData.tableStatsLogTableName,
306
+ tableStatsDailyTableId: cleanedData.tableStatsDailyTableId,
307
+ tableStatsDailyTableName: cleanedData.tableStatsDailyTableName,
308
+ queryStatsLogTableId: cleanedData.queryStatsLogTableId,
309
+ queryStatsLogTableName: cleanedData.queryStatsLogTableName,
310
+ queryStatsDailyTableId: cleanedData.queryStatsDailyTableId,
311
+ queryStatsDailyTableName: cleanedData.queryStatsDailyTableName,
312
+ interval: cleanedData.interval,
313
+ retention: cleanedData.retention,
314
+ premake: cleanedData.premake,
315
+ scope: cleanedData.scope,
316
+ prefix: cleanedData.prefix,
317
+ },
318
+ select: {
319
+ id: true,
320
+ databaseId: true,
321
+ schemaId: true,
322
+ privateSchemaId: true,
323
+ tableStatsLogTableId: true,
324
+ tableStatsLogTableName: true,
325
+ tableStatsDailyTableId: true,
326
+ tableStatsDailyTableName: true,
327
+ queryStatsLogTableId: true,
328
+ queryStatsLogTableName: true,
329
+ queryStatsDailyTableId: true,
330
+ queryStatsDailyTableName: true,
331
+ interval: true,
332
+ retention: true,
333
+ premake: true,
334
+ scope: true,
335
+ prefix: true,
336
+ },
337
+ })
338
+ .execute();
339
+ console.log(JSON.stringify(result, null, 2));
340
+ }
341
+ catch (error) {
342
+ console.error('Failed to create record.');
343
+ if (error instanceof Error) {
344
+ console.error(error.message);
345
+ }
346
+ process.exit(1);
347
+ }
348
+ }
349
+ async function handleUpdate(argv, prompter) {
350
+ try {
351
+ const rawAnswers = await prompter.prompt(argv, [
352
+ {
353
+ type: 'text',
354
+ name: 'id',
355
+ message: 'id',
356
+ required: true,
357
+ },
358
+ {
359
+ type: 'text',
360
+ name: 'databaseId',
361
+ message: 'databaseId',
362
+ required: false,
363
+ },
364
+ {
365
+ type: 'text',
366
+ name: 'schemaId',
367
+ message: 'schemaId',
368
+ required: false,
369
+ skipPrompt: true,
370
+ },
371
+ {
372
+ type: 'text',
373
+ name: 'privateSchemaId',
374
+ message: 'privateSchemaId',
375
+ required: false,
376
+ skipPrompt: true,
377
+ },
378
+ {
379
+ type: 'text',
380
+ name: 'tableStatsLogTableId',
381
+ message: 'tableStatsLogTableId',
382
+ required: false,
383
+ skipPrompt: true,
384
+ },
385
+ {
386
+ type: 'text',
387
+ name: 'tableStatsLogTableName',
388
+ message: 'tableStatsLogTableName',
389
+ required: false,
390
+ skipPrompt: true,
391
+ },
392
+ {
393
+ type: 'text',
394
+ name: 'tableStatsDailyTableId',
395
+ message: 'tableStatsDailyTableId',
396
+ required: false,
397
+ skipPrompt: true,
398
+ },
399
+ {
400
+ type: 'text',
401
+ name: 'tableStatsDailyTableName',
402
+ message: 'tableStatsDailyTableName',
403
+ required: false,
404
+ skipPrompt: true,
405
+ },
406
+ {
407
+ type: 'text',
408
+ name: 'queryStatsLogTableId',
409
+ message: 'queryStatsLogTableId',
410
+ required: false,
411
+ skipPrompt: true,
412
+ },
413
+ {
414
+ type: 'text',
415
+ name: 'queryStatsLogTableName',
416
+ message: 'queryStatsLogTableName',
417
+ required: false,
418
+ skipPrompt: true,
419
+ },
420
+ {
421
+ type: 'text',
422
+ name: 'queryStatsDailyTableId',
423
+ message: 'queryStatsDailyTableId',
424
+ required: false,
425
+ skipPrompt: true,
426
+ },
427
+ {
428
+ type: 'text',
429
+ name: 'queryStatsDailyTableName',
430
+ message: 'queryStatsDailyTableName',
431
+ required: false,
432
+ skipPrompt: true,
433
+ },
434
+ {
435
+ type: 'text',
436
+ name: 'interval',
437
+ message: 'interval',
438
+ required: false,
439
+ skipPrompt: true,
440
+ },
441
+ {
442
+ type: 'text',
443
+ name: 'retention',
444
+ message: 'retention',
445
+ required: false,
446
+ skipPrompt: true,
447
+ },
448
+ {
449
+ type: 'text',
450
+ name: 'premake',
451
+ message: 'premake',
452
+ required: false,
453
+ skipPrompt: true,
454
+ },
455
+ {
456
+ type: 'text',
457
+ name: 'scope',
458
+ message: 'scope',
459
+ required: false,
460
+ skipPrompt: true,
461
+ },
462
+ {
463
+ type: 'text',
464
+ name: 'prefix',
465
+ message: 'prefix',
466
+ required: false,
467
+ skipPrompt: true,
468
+ },
469
+ ]);
470
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
471
+ const cleanedData = stripUndefined(answers, fieldSchema);
472
+ const client = getClient();
473
+ const result = await client.dbUsageModule
474
+ .update({
475
+ where: {
476
+ id: answers.id,
477
+ },
478
+ data: {
479
+ databaseId: cleanedData.databaseId,
480
+ schemaId: cleanedData.schemaId,
481
+ privateSchemaId: cleanedData.privateSchemaId,
482
+ tableStatsLogTableId: cleanedData.tableStatsLogTableId,
483
+ tableStatsLogTableName: cleanedData.tableStatsLogTableName,
484
+ tableStatsDailyTableId: cleanedData.tableStatsDailyTableId,
485
+ tableStatsDailyTableName: cleanedData.tableStatsDailyTableName,
486
+ queryStatsLogTableId: cleanedData.queryStatsLogTableId,
487
+ queryStatsLogTableName: cleanedData.queryStatsLogTableName,
488
+ queryStatsDailyTableId: cleanedData.queryStatsDailyTableId,
489
+ queryStatsDailyTableName: cleanedData.queryStatsDailyTableName,
490
+ interval: cleanedData.interval,
491
+ retention: cleanedData.retention,
492
+ premake: cleanedData.premake,
493
+ scope: cleanedData.scope,
494
+ prefix: cleanedData.prefix,
495
+ },
496
+ select: {
497
+ id: true,
498
+ databaseId: true,
499
+ schemaId: true,
500
+ privateSchemaId: true,
501
+ tableStatsLogTableId: true,
502
+ tableStatsLogTableName: true,
503
+ tableStatsDailyTableId: true,
504
+ tableStatsDailyTableName: true,
505
+ queryStatsLogTableId: true,
506
+ queryStatsLogTableName: true,
507
+ queryStatsDailyTableId: true,
508
+ queryStatsDailyTableName: true,
509
+ interval: true,
510
+ retention: true,
511
+ premake: true,
512
+ scope: true,
513
+ prefix: true,
514
+ },
515
+ })
516
+ .execute();
517
+ console.log(JSON.stringify(result, null, 2));
518
+ }
519
+ catch (error) {
520
+ console.error('Failed to update record.');
521
+ if (error instanceof Error) {
522
+ console.error(error.message);
523
+ }
524
+ process.exit(1);
525
+ }
526
+ }
527
+ async function handleDelete(argv, prompter) {
528
+ try {
529
+ const rawAnswers = await prompter.prompt(argv, [
530
+ {
531
+ type: 'text',
532
+ name: 'id',
533
+ message: 'id',
534
+ required: true,
535
+ },
536
+ ]);
537
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
538
+ const client = getClient();
539
+ const result = await client.dbUsageModule
540
+ .delete({
541
+ where: {
542
+ id: answers.id,
543
+ },
544
+ select: {
545
+ id: true,
546
+ },
547
+ })
548
+ .execute();
549
+ console.log(JSON.stringify(result, null, 2));
550
+ }
551
+ catch (error) {
552
+ console.error('Failed to delete record.');
553
+ if (error instanceof Error) {
554
+ console.error(error.message);
555
+ }
556
+ process.exit(1);
557
+ }
558
+ }