@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
@@ -7,9 +7,13 @@ import { extractFirst } from 'inquirerer';
7
7
  import { getClient } from '../executor';
8
8
  import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
9
  const fieldSchema = {
10
+ createdAt: 'string',
11
+ id: 'uuid',
10
12
  name: 'string',
11
13
  actorId: 'uuid',
12
14
  entityId: 'uuid',
15
+ organizationId: 'uuid',
16
+ entityType: 'string',
13
17
  eventType: 'string',
14
18
  delta: 'int',
15
19
  numBefore: 'int',
@@ -17,7 +21,7 @@ const fieldSchema = {
17
21
  maxAtEvent: 'int',
18
22
  reason: 'string',
19
23
  };
20
- const usage = '\napp-limit-event <command>\n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\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';
24
+ const usage = '\napp-limit-event <command>\n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n get Get a appLimitEvent by ID\n create Create a new appLimitEvent\n update Update an existing appLimitEvent\n delete Delete a appLimitEvent\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';
21
25
  export default async (argv, prompter, _options) => {
22
26
  if (argv.help || argv.h) {
23
27
  console.log(usage);
@@ -30,7 +34,7 @@ export default async (argv, prompter, _options) => {
30
34
  type: 'autocomplete',
31
35
  name: 'subcommand',
32
36
  message: 'What do you want to do?',
33
- options: ['list', 'find-first', 'create'],
37
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
34
38
  },
35
39
  ]);
36
40
  return handleTableSubcommand(answer.subcommand, newArgv, prompter);
@@ -43,8 +47,14 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
43
47
  return handleList(argv, prompter);
44
48
  case 'find-first':
45
49
  return handleFindFirst(argv, prompter);
50
+ case 'get':
51
+ return handleGet(argv, prompter);
46
52
  case 'create':
47
53
  return handleCreate(argv, prompter);
54
+ case 'update':
55
+ return handleUpdate(argv, prompter);
56
+ case 'delete':
57
+ return handleDelete(argv, prompter);
48
58
  default:
49
59
  console.log(usage);
50
60
  process.exit(1);
@@ -53,9 +63,13 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
53
63
  async function handleList(argv, _prompter) {
54
64
  try {
55
65
  const defaultSelect = {
66
+ createdAt: true,
67
+ id: true,
56
68
  name: true,
57
69
  actorId: true,
58
70
  entityId: true,
71
+ organizationId: true,
72
+ entityType: true,
59
73
  eventType: true,
60
74
  delta: true,
61
75
  numBefore: true,
@@ -79,9 +93,13 @@ async function handleList(argv, _prompter) {
79
93
  async function handleFindFirst(argv, _prompter) {
80
94
  try {
81
95
  const defaultSelect = {
96
+ createdAt: true,
97
+ id: true,
82
98
  name: true,
83
99
  actorId: true,
84
100
  entityId: true,
101
+ organizationId: true,
102
+ entityType: true,
85
103
  eventType: true,
86
104
  delta: true,
87
105
  numBefore: true,
@@ -102,6 +120,47 @@ async function handleFindFirst(argv, _prompter) {
102
120
  process.exit(1);
103
121
  }
104
122
  }
123
+ async function handleGet(argv, prompter) {
124
+ try {
125
+ const answers = await prompter.prompt(argv, [
126
+ {
127
+ type: 'text',
128
+ name: 'id',
129
+ message: 'id',
130
+ required: true,
131
+ },
132
+ ]);
133
+ const client = getClient();
134
+ const result = await client.appLimitEvent
135
+ .findOne({
136
+ id: answers.id,
137
+ select: {
138
+ createdAt: true,
139
+ id: true,
140
+ name: true,
141
+ actorId: true,
142
+ entityId: true,
143
+ organizationId: true,
144
+ entityType: true,
145
+ eventType: true,
146
+ delta: true,
147
+ numBefore: true,
148
+ numAfter: true,
149
+ maxAtEvent: true,
150
+ reason: true,
151
+ },
152
+ })
153
+ .execute();
154
+ console.log(JSON.stringify(result, null, 2));
155
+ }
156
+ catch (error) {
157
+ console.error('Record not found.');
158
+ if (error instanceof Error) {
159
+ console.error(error.message);
160
+ }
161
+ process.exit(1);
162
+ }
163
+ }
105
164
  async function handleCreate(argv, prompter) {
106
165
  try {
107
166
  const rawAnswers = await prompter.prompt(argv, [
@@ -126,6 +185,20 @@ async function handleCreate(argv, prompter) {
126
185
  required: false,
127
186
  skipPrompt: true,
128
187
  },
188
+ {
189
+ type: 'text',
190
+ name: 'organizationId',
191
+ message: 'organizationId',
192
+ required: false,
193
+ skipPrompt: true,
194
+ },
195
+ {
196
+ type: 'text',
197
+ name: 'entityType',
198
+ message: 'entityType',
199
+ required: false,
200
+ skipPrompt: true,
201
+ },
129
202
  {
130
203
  type: 'text',
131
204
  name: 'eventType',
@@ -178,6 +251,8 @@ async function handleCreate(argv, prompter) {
178
251
  name: cleanedData.name,
179
252
  actorId: cleanedData.actorId,
180
253
  entityId: cleanedData.entityId,
254
+ organizationId: cleanedData.organizationId,
255
+ entityType: cleanedData.entityType,
181
256
  eventType: cleanedData.eventType,
182
257
  delta: cleanedData.delta,
183
258
  numBefore: cleanedData.numBefore,
@@ -186,9 +261,13 @@ async function handleCreate(argv, prompter) {
186
261
  reason: cleanedData.reason,
187
262
  },
188
263
  select: {
264
+ createdAt: true,
265
+ id: true,
189
266
  name: true,
190
267
  actorId: true,
191
268
  entityId: true,
269
+ organizationId: true,
270
+ entityType: true,
192
271
  eventType: true,
193
272
  delta: true,
194
273
  numBefore: true,
@@ -208,3 +287,170 @@ async function handleCreate(argv, prompter) {
208
287
  process.exit(1);
209
288
  }
210
289
  }
290
+ async function handleUpdate(argv, prompter) {
291
+ try {
292
+ const rawAnswers = await prompter.prompt(argv, [
293
+ {
294
+ type: 'text',
295
+ name: 'id',
296
+ message: 'id',
297
+ required: true,
298
+ },
299
+ {
300
+ type: 'text',
301
+ name: 'name',
302
+ message: 'name',
303
+ required: false,
304
+ skipPrompt: true,
305
+ },
306
+ {
307
+ type: 'text',
308
+ name: 'actorId',
309
+ message: 'actorId',
310
+ required: false,
311
+ skipPrompt: true,
312
+ },
313
+ {
314
+ type: 'text',
315
+ name: 'entityId',
316
+ message: 'entityId',
317
+ required: false,
318
+ skipPrompt: true,
319
+ },
320
+ {
321
+ type: 'text',
322
+ name: 'organizationId',
323
+ message: 'organizationId',
324
+ required: false,
325
+ skipPrompt: true,
326
+ },
327
+ {
328
+ type: 'text',
329
+ name: 'entityType',
330
+ message: 'entityType',
331
+ required: false,
332
+ skipPrompt: true,
333
+ },
334
+ {
335
+ type: 'text',
336
+ name: 'eventType',
337
+ message: 'eventType',
338
+ required: false,
339
+ skipPrompt: true,
340
+ },
341
+ {
342
+ type: 'text',
343
+ name: 'delta',
344
+ message: 'delta',
345
+ required: false,
346
+ skipPrompt: true,
347
+ },
348
+ {
349
+ type: 'text',
350
+ name: 'numBefore',
351
+ message: 'numBefore',
352
+ required: false,
353
+ skipPrompt: true,
354
+ },
355
+ {
356
+ type: 'text',
357
+ name: 'numAfter',
358
+ message: 'numAfter',
359
+ required: false,
360
+ skipPrompt: true,
361
+ },
362
+ {
363
+ type: 'text',
364
+ name: 'maxAtEvent',
365
+ message: 'maxAtEvent',
366
+ required: false,
367
+ skipPrompt: true,
368
+ },
369
+ {
370
+ type: 'text',
371
+ name: 'reason',
372
+ message: 'reason',
373
+ required: false,
374
+ skipPrompt: true,
375
+ },
376
+ ]);
377
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
378
+ const cleanedData = stripUndefined(answers, fieldSchema);
379
+ const client = getClient();
380
+ const result = await client.appLimitEvent
381
+ .update({
382
+ where: {
383
+ id: answers.id,
384
+ },
385
+ data: {
386
+ name: cleanedData.name,
387
+ actorId: cleanedData.actorId,
388
+ entityId: cleanedData.entityId,
389
+ organizationId: cleanedData.organizationId,
390
+ entityType: cleanedData.entityType,
391
+ eventType: cleanedData.eventType,
392
+ delta: cleanedData.delta,
393
+ numBefore: cleanedData.numBefore,
394
+ numAfter: cleanedData.numAfter,
395
+ maxAtEvent: cleanedData.maxAtEvent,
396
+ reason: cleanedData.reason,
397
+ },
398
+ select: {
399
+ createdAt: true,
400
+ id: true,
401
+ name: true,
402
+ actorId: true,
403
+ entityId: true,
404
+ organizationId: true,
405
+ entityType: true,
406
+ eventType: true,
407
+ delta: true,
408
+ numBefore: true,
409
+ numAfter: true,
410
+ maxAtEvent: true,
411
+ reason: true,
412
+ },
413
+ })
414
+ .execute();
415
+ console.log(JSON.stringify(result, null, 2));
416
+ }
417
+ catch (error) {
418
+ console.error('Failed to update record.');
419
+ if (error instanceof Error) {
420
+ console.error(error.message);
421
+ }
422
+ process.exit(1);
423
+ }
424
+ }
425
+ async function handleDelete(argv, prompter) {
426
+ try {
427
+ const rawAnswers = await prompter.prompt(argv, [
428
+ {
429
+ type: 'text',
430
+ name: 'id',
431
+ message: 'id',
432
+ required: true,
433
+ },
434
+ ]);
435
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
436
+ const client = getClient();
437
+ const result = await client.appLimitEvent
438
+ .delete({
439
+ where: {
440
+ id: answers.id,
441
+ },
442
+ select: {
443
+ id: true,
444
+ },
445
+ })
446
+ .execute();
447
+ console.log(JSON.stringify(result, null, 2));
448
+ }
449
+ catch (error) {
450
+ console.error('Failed to delete record.');
451
+ if (error instanceof Error) {
452
+ console.error(error.message);
453
+ }
454
+ process.exit(1);
455
+ }
456
+ }
@@ -18,6 +18,8 @@ const fieldSchema = {
18
18
  planMax: 'int',
19
19
  purchasedCredits: 'int',
20
20
  periodCredits: 'int',
21
+ organizationId: 'uuid',
22
+ entityType: 'string',
21
23
  };
22
24
  const usage = '\napp-limit <command>\n\nCommands:\n list List appLimit records\n find-first Find first matching appLimit record\n get Get a appLimit by ID\n create Create a new appLimit\n update Update an existing appLimit\n delete Delete a appLimit\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';
23
25
  export default async (argv, prompter, _options) => {
@@ -72,6 +74,8 @@ async function handleList(argv, _prompter) {
72
74
  planMax: true,
73
75
  purchasedCredits: true,
74
76
  periodCredits: true,
77
+ organizationId: true,
78
+ entityType: true,
75
79
  };
76
80
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
77
81
  const client = getClient();
@@ -100,6 +104,8 @@ async function handleFindFirst(argv, _prompter) {
100
104
  planMax: true,
101
105
  purchasedCredits: true,
102
106
  periodCredits: true,
107
+ organizationId: true,
108
+ entityType: true,
103
109
  };
104
110
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
105
111
  const client = getClient();
@@ -140,6 +146,8 @@ async function handleGet(argv, prompter) {
140
146
  planMax: true,
141
147
  purchasedCredits: true,
142
148
  periodCredits: true,
149
+ organizationId: true,
150
+ entityType: true,
143
151
  },
144
152
  })
145
153
  .execute();
@@ -225,6 +233,20 @@ async function handleCreate(argv, prompter) {
225
233
  required: false,
226
234
  skipPrompt: true,
227
235
  },
236
+ {
237
+ type: 'text',
238
+ name: 'organizationId',
239
+ message: 'organizationId',
240
+ required: false,
241
+ skipPrompt: true,
242
+ },
243
+ {
244
+ type: 'text',
245
+ name: 'entityType',
246
+ message: 'entityType',
247
+ required: false,
248
+ skipPrompt: true,
249
+ },
228
250
  ]);
229
251
  const answers = coerceAnswers(rawAnswers, fieldSchema);
230
252
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -242,6 +264,8 @@ async function handleCreate(argv, prompter) {
242
264
  planMax: cleanedData.planMax,
243
265
  purchasedCredits: cleanedData.purchasedCredits,
244
266
  periodCredits: cleanedData.periodCredits,
267
+ organizationId: cleanedData.organizationId,
268
+ entityType: cleanedData.entityType,
245
269
  },
246
270
  select: {
247
271
  id: true,
@@ -255,6 +279,8 @@ async function handleCreate(argv, prompter) {
255
279
  planMax: true,
256
280
  purchasedCredits: true,
257
281
  periodCredits: true,
282
+ organizationId: true,
283
+ entityType: true,
258
284
  },
259
285
  })
260
286
  .execute();
@@ -346,6 +372,20 @@ async function handleUpdate(argv, prompter) {
346
372
  required: false,
347
373
  skipPrompt: true,
348
374
  },
375
+ {
376
+ type: 'text',
377
+ name: 'organizationId',
378
+ message: 'organizationId',
379
+ required: false,
380
+ skipPrompt: true,
381
+ },
382
+ {
383
+ type: 'text',
384
+ name: 'entityType',
385
+ message: 'entityType',
386
+ required: false,
387
+ skipPrompt: true,
388
+ },
349
389
  ]);
350
390
  const answers = coerceAnswers(rawAnswers, fieldSchema);
351
391
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -366,6 +406,8 @@ async function handleUpdate(argv, prompter) {
366
406
  planMax: cleanedData.planMax,
367
407
  purchasedCredits: cleanedData.purchasedCredits,
368
408
  periodCredits: cleanedData.periodCredits,
409
+ organizationId: cleanedData.organizationId,
410
+ entityType: cleanedData.entityType,
369
411
  },
370
412
  select: {
371
413
  id: true,
@@ -379,6 +421,8 @@ async function handleUpdate(argv, prompter) {
379
421
  planMax: true,
380
422
  purchasedCredits: true,
381
423
  periodCredits: true,
424
+ organizationId: true,
425
+ entityType: true,
382
426
  },
383
427
  })
384
428
  .execute();
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for query applyRegistryDefaults
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -2,32 +2,29 @@ import { getClient } from '../executor';
2
2
  export default async (argv, prompter, _options) => {
3
3
  try {
4
4
  if (argv.help || argv.h) {
5
- console.log('rev-parse - revParse\n\nUsage: rev-parse [OPTIONS]\n');
5
+ console.log('apply-registry-defaults - applyRegistryDefaults\n\nUsage: apply-registry-defaults [OPTIONS]\n');
6
6
  process.exit(0);
7
7
  }
8
8
  const answers = await prompter.prompt(argv, [
9
9
  {
10
10
  type: 'text',
11
- name: 'dbId',
12
- message: 'dbId',
11
+ name: 'nodeType',
12
+ message: 'nodeType',
13
13
  },
14
14
  {
15
15
  type: 'text',
16
- name: 'storeId',
17
- message: 'storeId',
18
- },
19
- {
20
- type: 'text',
21
- name: 'refname',
22
- message: 'refname',
16
+ name: 'data',
17
+ message: 'data',
23
18
  },
24
19
  ]);
25
20
  const client = getClient();
26
- const result = await client.query.revParse(answers).execute();
21
+ const result = await client.query
22
+ .applyRegistryDefaults(answers)
23
+ .execute();
27
24
  console.log(JSON.stringify(result, null, 2));
28
25
  }
29
26
  catch (error) {
30
- console.error('Failed: revParse');
27
+ console.error('Failed: applyRegistryDefaults');
31
28
  if (error instanceof Error) {
32
29
  console.error(error.message);
33
30
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for AuditLogAuth
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * CLI commands for AuditLog
2
+ * CLI commands for AuditLogAuth
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
@@ -7,6 +7,7 @@ import { extractFirst } from 'inquirerer';
7
7
  import { getClient } from '../executor';
8
8
  import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils';
9
9
  const fieldSchema = {
10
+ createdAt: 'string',
10
11
  id: 'uuid',
11
12
  event: 'string',
12
13
  actorId: 'uuid',
@@ -14,9 +15,8 @@ const fieldSchema = {
14
15
  userAgent: 'string',
15
16
  ipAddress: 'string',
16
17
  success: 'boolean',
17
- createdAt: 'string',
18
18
  };
19
- const usage = '\naudit-log <command>\n\nCommands:\n list List auditLog records\n find-first Find first matching auditLog record\n get Get a auditLog by ID\n create Create a new auditLog\n update Update an existing auditLog\n delete Delete a auditLog\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';
19
+ const usage = '\naudit-log-auth <command>\n\nCommands:\n list List auditLogAuth records\n find-first Find first matching auditLogAuth record\n get Get a auditLogAuth by ID\n create Create a new auditLogAuth\n update Update an existing auditLogAuth\n delete Delete a auditLogAuth\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';
20
20
  export default async (argv, prompter, _options) => {
21
21
  if (argv.help || argv.h) {
22
22
  console.log(usage);
@@ -58,6 +58,7 @@ async function handleTableSubcommand(subcommand, argv, prompter) {
58
58
  async function handleList(argv, _prompter) {
59
59
  try {
60
60
  const defaultSelect = {
61
+ createdAt: true,
61
62
  id: true,
62
63
  event: true,
63
64
  actorId: true,
@@ -65,11 +66,10 @@ async function handleList(argv, _prompter) {
65
66
  userAgent: true,
66
67
  ipAddress: true,
67
68
  success: true,
68
- createdAt: true,
69
69
  };
70
70
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
71
71
  const client = getClient();
72
- const result = await client.auditLog.findMany(findManyArgs).execute();
72
+ const result = await client.auditLogAuth.findMany(findManyArgs).execute();
73
73
  console.log(JSON.stringify(result, null, 2));
74
74
  }
75
75
  catch (error) {
@@ -83,6 +83,7 @@ async function handleList(argv, _prompter) {
83
83
  async function handleFindFirst(argv, _prompter) {
84
84
  try {
85
85
  const defaultSelect = {
86
+ createdAt: true,
86
87
  id: true,
87
88
  event: true,
88
89
  actorId: true,
@@ -90,11 +91,10 @@ async function handleFindFirst(argv, _prompter) {
90
91
  userAgent: true,
91
92
  ipAddress: true,
92
93
  success: true,
93
- createdAt: true,
94
94
  };
95
95
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
96
96
  const client = getClient();
97
- const result = await client.auditLog.findFirst(findFirstArgs).execute();
97
+ const result = await client.auditLogAuth.findFirst(findFirstArgs).execute();
98
98
  console.log(JSON.stringify(result, null, 2));
99
99
  }
100
100
  catch (error) {
@@ -116,10 +116,11 @@ async function handleGet(argv, prompter) {
116
116
  },
117
117
  ]);
118
118
  const client = getClient();
119
- const result = await client.auditLog
119
+ const result = await client.auditLogAuth
120
120
  .findOne({
121
121
  id: answers.id,
122
122
  select: {
123
+ createdAt: true,
123
124
  id: true,
124
125
  event: true,
125
126
  actorId: true,
@@ -127,7 +128,6 @@ async function handleGet(argv, prompter) {
127
128
  userAgent: true,
128
129
  ipAddress: true,
129
130
  success: true,
130
- createdAt: true,
131
131
  },
132
132
  })
133
133
  .execute();
@@ -188,7 +188,7 @@ async function handleCreate(argv, prompter) {
188
188
  const answers = coerceAnswers(rawAnswers, fieldSchema);
189
189
  const cleanedData = stripUndefined(answers, fieldSchema);
190
190
  const client = getClient();
191
- const result = await client.auditLog
191
+ const result = await client.auditLogAuth
192
192
  .create({
193
193
  data: {
194
194
  event: cleanedData.event,
@@ -199,6 +199,7 @@ async function handleCreate(argv, prompter) {
199
199
  success: cleanedData.success,
200
200
  },
201
201
  select: {
202
+ createdAt: true,
202
203
  id: true,
203
204
  event: true,
204
205
  actorId: true,
@@ -206,7 +207,6 @@ async function handleCreate(argv, prompter) {
206
207
  userAgent: true,
207
208
  ipAddress: true,
208
209
  success: true,
209
- createdAt: true,
210
210
  },
211
211
  })
212
212
  .execute();
@@ -273,7 +273,7 @@ async function handleUpdate(argv, prompter) {
273
273
  const answers = coerceAnswers(rawAnswers, fieldSchema);
274
274
  const cleanedData = stripUndefined(answers, fieldSchema);
275
275
  const client = getClient();
276
- const result = await client.auditLog
276
+ const result = await client.auditLogAuth
277
277
  .update({
278
278
  where: {
279
279
  id: answers.id,
@@ -287,6 +287,7 @@ async function handleUpdate(argv, prompter) {
287
287
  success: cleanedData.success,
288
288
  },
289
289
  select: {
290
+ createdAt: true,
290
291
  id: true,
291
292
  event: true,
292
293
  actorId: true,
@@ -294,7 +295,6 @@ async function handleUpdate(argv, prompter) {
294
295
  userAgent: true,
295
296
  ipAddress: true,
296
297
  success: true,
297
- createdAt: true,
298
298
  },
299
299
  })
300
300
  .execute();
@@ -320,7 +320,7 @@ async function handleDelete(argv, prompter) {
320
320
  ]);
321
321
  const answers = coerceAnswers(rawAnswers, fieldSchema);
322
322
  const client = getClient();
323
- const result = await client.auditLog
323
+ const result = await client.auditLogAuth
324
324
  .delete({
325
325
  where: {
326
326
  id: answers.id,