@constructive-sdk/cli 0.20.4 → 0.20.5

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 (323) hide show
  1. package/admin/cli/commands/{request-upload-url.d.ts → app-limit-cap.d.ts} +1 -1
  2. package/admin/cli/commands/app-limit-cap.js +272 -0
  3. package/{esm/admin/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-caps-default.d.ts} +1 -1
  4. package/admin/cli/commands/app-limit-caps-default.js +252 -0
  5. package/{auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code-item.d.ts} +1 -1
  6. package/admin/cli/commands/app-limit-credit-code-item.js +292 -0
  7. package/{esm/auth/cli/commands/request-upload-url.d.ts → admin/cli/commands/app-limit-credit-code.d.ts} +1 -1
  8. package/admin/cli/commands/app-limit-credit-code.js +296 -0
  9. package/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  10. package/admin/cli/commands/app-limit-credit-redemption.js +250 -0
  11. package/admin/cli/commands/app-limit-credit.d.ts +8 -0
  12. package/admin/cli/commands/app-limit-credit.js +316 -0
  13. package/admin/cli/commands/app-limit.js +66 -0
  14. package/admin/cli/commands/org-limit-aggregate.js +88 -0
  15. package/admin/cli/commands/org-limit-cap.d.ts +8 -0
  16. package/admin/cli/commands/org-limit-cap.js +272 -0
  17. package/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
  18. package/admin/cli/commands/org-limit-caps-default.js +252 -0
  19. package/admin/cli/commands/org-limit-credit.d.ts +8 -0
  20. package/admin/cli/commands/org-limit-credit.js +338 -0
  21. package/admin/cli/commands/org-limit.js +66 -0
  22. package/admin/cli/commands.js +25 -9
  23. package/admin/cli/executor.d.ts +12 -8
  24. package/admin/orm/index.d.ts +24 -11
  25. package/admin/orm/index.js +24 -6
  26. package/admin/orm/input-types.d.ts +2108 -545
  27. package/admin/orm/input-types.js +13 -1
  28. package/admin/orm/models/appLimitCap.d.ts +56 -0
  29. package/admin/orm/models/appLimitCap.js +100 -0
  30. package/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
  31. package/admin/orm/models/appLimitCapsDefault.js +100 -0
  32. package/admin/orm/models/appLimitCredit.d.ts +56 -0
  33. package/admin/orm/models/appLimitCredit.js +100 -0
  34. package/admin/orm/models/appLimitCreditCode.d.ts +56 -0
  35. package/admin/orm/models/appLimitCreditCode.js +100 -0
  36. package/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  37. package/admin/orm/models/appLimitCreditCodeItem.js +100 -0
  38. package/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
  39. package/admin/orm/models/appLimitCreditRedemption.js +100 -0
  40. package/admin/orm/models/index.d.ts +12 -3
  41. package/admin/orm/models/index.js +25 -7
  42. package/admin/orm/models/orgLimitCap.d.ts +56 -0
  43. package/admin/orm/models/orgLimitCap.js +100 -0
  44. package/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
  45. package/admin/orm/models/orgLimitCapsDefault.js +100 -0
  46. package/admin/orm/models/orgLimitCredit.d.ts +56 -0
  47. package/admin/orm/models/orgLimitCredit.js +100 -0
  48. package/admin/orm/mutation/index.d.ts +1 -16
  49. package/admin/orm/mutation/index.js +0 -12
  50. package/admin/orm/query-builder.js +24 -0
  51. package/auth/cli/commands.js +1 -3
  52. package/auth/cli/executor.d.ts +0 -5
  53. package/auth/orm/index.d.ts +0 -5
  54. package/auth/orm/input-types.d.ts +0 -38
  55. package/auth/orm/mutation/index.d.ts +1 -16
  56. package/auth/orm/mutation/index.js +0 -12
  57. package/auth/orm/query-builder.js +24 -0
  58. package/esm/admin/cli/commands/app-limit-cap.d.ts +8 -0
  59. package/esm/admin/cli/commands/app-limit-cap.js +270 -0
  60. package/esm/admin/cli/commands/app-limit-caps-default.d.ts +8 -0
  61. package/esm/admin/cli/commands/app-limit-caps-default.js +250 -0
  62. package/esm/admin/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  63. package/esm/admin/cli/commands/app-limit-credit-code-item.js +290 -0
  64. package/esm/admin/cli/commands/app-limit-credit-code.d.ts +8 -0
  65. package/esm/admin/cli/commands/app-limit-credit-code.js +294 -0
  66. package/esm/admin/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  67. package/esm/admin/cli/commands/app-limit-credit-redemption.js +248 -0
  68. package/esm/admin/cli/commands/app-limit-credit.d.ts +8 -0
  69. package/esm/admin/cli/commands/app-limit-credit.js +314 -0
  70. package/esm/admin/cli/commands/app-limit.js +66 -0
  71. package/esm/admin/cli/commands/org-limit-aggregate.js +88 -0
  72. package/esm/admin/cli/commands/org-limit-cap.d.ts +8 -0
  73. package/esm/admin/cli/commands/org-limit-cap.js +270 -0
  74. package/esm/admin/cli/commands/org-limit-caps-default.d.ts +8 -0
  75. package/esm/admin/cli/commands/org-limit-caps-default.js +250 -0
  76. package/esm/admin/cli/commands/org-limit-credit.d.ts +8 -0
  77. package/esm/admin/cli/commands/org-limit-credit.js +336 -0
  78. package/esm/admin/cli/commands/org-limit.js +66 -0
  79. package/esm/admin/cli/commands.js +25 -9
  80. package/esm/admin/cli/executor.d.ts +12 -8
  81. package/esm/admin/orm/index.d.ts +24 -11
  82. package/esm/admin/orm/index.js +24 -6
  83. package/esm/admin/orm/input-types.d.ts +2108 -545
  84. package/esm/admin/orm/input-types.js +13 -1
  85. package/esm/admin/orm/models/appLimitCap.d.ts +56 -0
  86. package/esm/admin/orm/models/appLimitCap.js +96 -0
  87. package/esm/admin/orm/models/appLimitCapsDefault.d.ts +56 -0
  88. package/esm/admin/orm/models/appLimitCapsDefault.js +96 -0
  89. package/esm/admin/orm/models/appLimitCredit.d.ts +56 -0
  90. package/esm/admin/orm/models/appLimitCredit.js +96 -0
  91. package/esm/admin/orm/models/appLimitCreditCode.d.ts +56 -0
  92. package/esm/admin/orm/models/appLimitCreditCode.js +96 -0
  93. package/esm/admin/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  94. package/esm/admin/orm/models/appLimitCreditCodeItem.js +96 -0
  95. package/esm/admin/orm/models/appLimitCreditRedemption.d.ts +56 -0
  96. package/esm/admin/orm/models/appLimitCreditRedemption.js +96 -0
  97. package/esm/admin/orm/models/index.d.ts +12 -3
  98. package/esm/admin/orm/models/index.js +12 -3
  99. package/esm/admin/orm/models/orgLimitCap.d.ts +56 -0
  100. package/esm/admin/orm/models/orgLimitCap.js +96 -0
  101. package/esm/admin/orm/models/orgLimitCapsDefault.d.ts +56 -0
  102. package/esm/admin/orm/models/orgLimitCapsDefault.js +96 -0
  103. package/esm/admin/orm/models/orgLimitCredit.d.ts +56 -0
  104. package/esm/admin/orm/models/orgLimitCredit.js +96 -0
  105. package/esm/admin/orm/mutation/index.d.ts +1 -16
  106. package/esm/admin/orm/mutation/index.js +0 -12
  107. package/esm/admin/orm/query-builder.js +24 -0
  108. package/esm/auth/cli/commands.js +1 -3
  109. package/esm/auth/cli/executor.d.ts +0 -5
  110. package/esm/auth/orm/index.d.ts +0 -5
  111. package/esm/auth/orm/input-types.d.ts +0 -38
  112. package/esm/auth/orm/mutation/index.d.ts +1 -16
  113. package/esm/auth/orm/mutation/index.js +0 -12
  114. package/esm/auth/orm/query-builder.js +24 -0
  115. package/esm/objects/cli/commands.js +1 -3
  116. package/esm/objects/cli/executor.d.ts +0 -5
  117. package/esm/objects/orm/index.d.ts +0 -5
  118. package/esm/objects/orm/input-types.d.ts +0 -38
  119. package/esm/objects/orm/mutation/index.d.ts +1 -16
  120. package/esm/objects/orm/mutation/index.js +0 -12
  121. package/esm/objects/orm/query-builder.js +24 -0
  122. package/esm/public/cli/commands/api-setting.d.ts +8 -0
  123. package/esm/public/cli/commands/api-setting.js +468 -0
  124. package/esm/public/cli/commands/app-limit-cap.d.ts +8 -0
  125. package/esm/public/cli/commands/app-limit-cap.js +270 -0
  126. package/esm/public/cli/commands/app-limit-caps-default.d.ts +8 -0
  127. package/esm/public/cli/commands/app-limit-caps-default.js +250 -0
  128. package/esm/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  129. package/esm/public/cli/commands/app-limit-credit-code-item.js +290 -0
  130. package/esm/public/cli/commands/app-limit-credit-code.d.ts +8 -0
  131. package/esm/public/cli/commands/app-limit-credit-code.js +294 -0
  132. package/esm/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  133. package/esm/public/cli/commands/app-limit-credit-redemption.js +248 -0
  134. package/esm/public/cli/commands/app-limit-credit.d.ts +8 -0
  135. package/esm/public/cli/commands/app-limit-credit.js +314 -0
  136. package/esm/public/cli/commands/app-limit.js +66 -0
  137. package/esm/public/cli/commands/append-smart-tags.d.ts +8 -0
  138. package/esm/{admin/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
  139. package/esm/public/cli/commands/billing-provider-module.d.ts +8 -0
  140. package/esm/public/cli/commands/billing-provider-module.js +624 -0
  141. package/esm/public/cli/commands/cors-setting.d.ts +8 -0
  142. package/esm/public/cli/commands/cors-setting.js +272 -0
  143. package/esm/public/cli/commands/database-setting.d.ts +8 -0
  144. package/esm/public/cli/commands/database-setting.js +448 -0
  145. package/esm/public/cli/commands/entity-type-provision.js +22 -0
  146. package/esm/public/cli/commands/function.d.ts +8 -0
  147. package/esm/public/cli/commands/function.js +268 -0
  148. package/esm/public/cli/commands/limits-module.js +198 -0
  149. package/esm/public/cli/commands/org-limit-aggregate.js +88 -0
  150. package/esm/public/cli/commands/org-limit-cap.d.ts +8 -0
  151. package/esm/public/cli/commands/org-limit-cap.js +270 -0
  152. package/esm/public/cli/commands/org-limit-caps-default.d.ts +8 -0
  153. package/esm/public/cli/commands/org-limit-caps-default.js +250 -0
  154. package/esm/public/cli/commands/org-limit-credit.d.ts +8 -0
  155. package/esm/public/cli/commands/org-limit-credit.js +336 -0
  156. package/esm/public/cli/commands/org-limit.js +66 -0
  157. package/esm/public/cli/commands/partition.d.ts +8 -0
  158. package/esm/public/cli/commands/partition.js +388 -0
  159. package/esm/public/cli/commands/plans-module.js +44 -0
  160. package/esm/public/cli/commands/pubkey-setting.d.ts +8 -0
  161. package/esm/public/cli/commands/pubkey-setting.js +382 -0
  162. package/esm/public/cli/commands/rls-setting.d.ts +8 -0
  163. package/esm/public/cli/commands/rls-setting.js +404 -0
  164. package/esm/public/cli/commands/storage-module.js +198 -0
  165. package/esm/public/cli/commands/webauthn-setting.d.ts +8 -0
  166. package/esm/public/cli/commands/webauthn-setting.js +580 -0
  167. package/esm/public/cli/commands.js +41 -5
  168. package/esm/public/cli/executor.d.ts +24 -6
  169. package/esm/public/orm/index.d.ts +43 -7
  170. package/esm/public/orm/index.js +38 -2
  171. package/esm/public/orm/input-types.d.ts +4601 -321
  172. package/esm/public/orm/input-types.js +21 -0
  173. package/esm/public/orm/models/apiSetting.d.ts +56 -0
  174. package/esm/public/orm/models/apiSetting.js +96 -0
  175. package/esm/public/orm/models/appLimitCap.d.ts +56 -0
  176. package/esm/public/orm/models/appLimitCap.js +96 -0
  177. package/esm/public/orm/models/appLimitCapsDefault.d.ts +56 -0
  178. package/esm/public/orm/models/appLimitCapsDefault.js +96 -0
  179. package/esm/public/orm/models/appLimitCredit.d.ts +56 -0
  180. package/esm/public/orm/models/appLimitCredit.js +96 -0
  181. package/esm/public/orm/models/appLimitCreditCode.d.ts +56 -0
  182. package/esm/public/orm/models/appLimitCreditCode.js +96 -0
  183. package/esm/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  184. package/esm/public/orm/models/appLimitCreditCodeItem.js +96 -0
  185. package/esm/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
  186. package/esm/public/orm/models/appLimitCreditRedemption.js +96 -0
  187. package/esm/public/orm/models/billingProviderModule.d.ts +56 -0
  188. package/esm/public/orm/models/billingProviderModule.js +96 -0
  189. package/esm/public/orm/models/corsSetting.d.ts +56 -0
  190. package/esm/public/orm/models/corsSetting.js +96 -0
  191. package/esm/public/orm/models/databaseSetting.d.ts +56 -0
  192. package/esm/public/orm/models/databaseSetting.js +96 -0
  193. package/esm/public/orm/models/function.d.ts +56 -0
  194. package/esm/public/orm/models/function.js +96 -0
  195. package/esm/public/orm/models/index.d.ts +19 -1
  196. package/esm/public/orm/models/index.js +19 -1
  197. package/esm/public/orm/models/orgLimitCap.d.ts +56 -0
  198. package/esm/public/orm/models/orgLimitCap.js +96 -0
  199. package/esm/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
  200. package/esm/public/orm/models/orgLimitCapsDefault.js +96 -0
  201. package/esm/public/orm/models/orgLimitCredit.d.ts +56 -0
  202. package/esm/public/orm/models/orgLimitCredit.js +96 -0
  203. package/esm/public/orm/models/partition.d.ts +56 -0
  204. package/esm/public/orm/models/partition.js +96 -0
  205. package/esm/public/orm/models/pubkeySetting.d.ts +56 -0
  206. package/esm/public/orm/models/pubkeySetting.js +96 -0
  207. package/esm/public/orm/models/rlsSetting.d.ts +56 -0
  208. package/esm/public/orm/models/rlsSetting.js +96 -0
  209. package/esm/public/orm/models/webauthnSetting.d.ts +56 -0
  210. package/esm/public/orm/models/webauthnSetting.js +96 -0
  211. package/esm/public/orm/mutation/index.d.ts +9 -16
  212. package/esm/public/orm/mutation/index.js +12 -12
  213. package/esm/public/orm/query-builder.js +24 -0
  214. package/objects/cli/commands.js +1 -3
  215. package/objects/cli/executor.d.ts +0 -5
  216. package/objects/orm/index.d.ts +0 -5
  217. package/objects/orm/input-types.d.ts +0 -38
  218. package/objects/orm/mutation/index.d.ts +1 -16
  219. package/objects/orm/mutation/index.js +0 -12
  220. package/objects/orm/query-builder.js +24 -0
  221. package/package.json +4 -4
  222. package/public/cli/commands/api-setting.d.ts +8 -0
  223. package/public/cli/commands/api-setting.js +470 -0
  224. package/public/cli/commands/app-limit-cap.d.ts +8 -0
  225. package/public/cli/commands/app-limit-cap.js +272 -0
  226. package/public/cli/commands/app-limit-caps-default.d.ts +8 -0
  227. package/public/cli/commands/app-limit-caps-default.js +252 -0
  228. package/public/cli/commands/app-limit-credit-code-item.d.ts +8 -0
  229. package/public/cli/commands/app-limit-credit-code-item.js +292 -0
  230. package/public/cli/commands/app-limit-credit-code.d.ts +8 -0
  231. package/public/cli/commands/app-limit-credit-code.js +296 -0
  232. package/public/cli/commands/app-limit-credit-redemption.d.ts +8 -0
  233. package/public/cli/commands/app-limit-credit-redemption.js +250 -0
  234. package/public/cli/commands/app-limit-credit.d.ts +8 -0
  235. package/public/cli/commands/app-limit-credit.js +316 -0
  236. package/public/cli/commands/app-limit.js +66 -0
  237. package/public/cli/commands/append-smart-tags.d.ts +8 -0
  238. package/{objects/cli/commands/request-upload-url.js → public/cli/commands/append-smart-tags.js} +3 -3
  239. package/public/cli/commands/billing-provider-module.d.ts +8 -0
  240. package/public/cli/commands/billing-provider-module.js +626 -0
  241. package/public/cli/commands/cors-setting.d.ts +8 -0
  242. package/public/cli/commands/cors-setting.js +274 -0
  243. package/public/cli/commands/database-setting.d.ts +8 -0
  244. package/public/cli/commands/database-setting.js +450 -0
  245. package/public/cli/commands/entity-type-provision.js +22 -0
  246. package/public/cli/commands/function.d.ts +8 -0
  247. package/public/cli/commands/function.js +270 -0
  248. package/public/cli/commands/limits-module.js +198 -0
  249. package/public/cli/commands/org-limit-aggregate.js +88 -0
  250. package/public/cli/commands/org-limit-cap.d.ts +8 -0
  251. package/public/cli/commands/org-limit-cap.js +272 -0
  252. package/public/cli/commands/org-limit-caps-default.d.ts +8 -0
  253. package/public/cli/commands/org-limit-caps-default.js +252 -0
  254. package/public/cli/commands/org-limit-credit.d.ts +8 -0
  255. package/public/cli/commands/org-limit-credit.js +338 -0
  256. package/public/cli/commands/org-limit.js +66 -0
  257. package/public/cli/commands/partition.d.ts +8 -0
  258. package/public/cli/commands/partition.js +390 -0
  259. package/public/cli/commands/plans-module.js +44 -0
  260. package/public/cli/commands/pubkey-setting.d.ts +8 -0
  261. package/public/cli/commands/pubkey-setting.js +384 -0
  262. package/public/cli/commands/rls-setting.d.ts +8 -0
  263. package/public/cli/commands/rls-setting.js +406 -0
  264. package/public/cli/commands/storage-module.js +198 -0
  265. package/public/cli/commands/webauthn-setting.d.ts +8 -0
  266. package/public/cli/commands/webauthn-setting.js +582 -0
  267. package/public/cli/commands.js +41 -5
  268. package/public/cli/executor.d.ts +24 -6
  269. package/public/orm/index.d.ts +43 -7
  270. package/public/orm/index.js +38 -2
  271. package/public/orm/input-types.d.ts +4601 -321
  272. package/public/orm/input-types.js +21 -0
  273. package/public/orm/models/apiSetting.d.ts +56 -0
  274. package/public/orm/models/apiSetting.js +100 -0
  275. package/public/orm/models/appLimitCap.d.ts +56 -0
  276. package/public/orm/models/appLimitCap.js +100 -0
  277. package/public/orm/models/appLimitCapsDefault.d.ts +56 -0
  278. package/public/orm/models/appLimitCapsDefault.js +100 -0
  279. package/public/orm/models/appLimitCredit.d.ts +56 -0
  280. package/public/orm/models/appLimitCredit.js +100 -0
  281. package/public/orm/models/appLimitCreditCode.d.ts +56 -0
  282. package/public/orm/models/appLimitCreditCode.js +100 -0
  283. package/public/orm/models/appLimitCreditCodeItem.d.ts +56 -0
  284. package/public/orm/models/appLimitCreditCodeItem.js +100 -0
  285. package/public/orm/models/appLimitCreditRedemption.d.ts +56 -0
  286. package/public/orm/models/appLimitCreditRedemption.js +100 -0
  287. package/public/orm/models/billingProviderModule.d.ts +56 -0
  288. package/public/orm/models/billingProviderModule.js +100 -0
  289. package/public/orm/models/corsSetting.d.ts +56 -0
  290. package/public/orm/models/corsSetting.js +100 -0
  291. package/public/orm/models/databaseSetting.d.ts +56 -0
  292. package/public/orm/models/databaseSetting.js +100 -0
  293. package/public/orm/models/function.d.ts +56 -0
  294. package/public/orm/models/function.js +100 -0
  295. package/public/orm/models/index.d.ts +19 -1
  296. package/public/orm/models/index.js +41 -5
  297. package/public/orm/models/orgLimitCap.d.ts +56 -0
  298. package/public/orm/models/orgLimitCap.js +100 -0
  299. package/public/orm/models/orgLimitCapsDefault.d.ts +56 -0
  300. package/public/orm/models/orgLimitCapsDefault.js +100 -0
  301. package/public/orm/models/orgLimitCredit.d.ts +56 -0
  302. package/public/orm/models/orgLimitCredit.js +100 -0
  303. package/public/orm/models/partition.d.ts +56 -0
  304. package/public/orm/models/partition.js +100 -0
  305. package/public/orm/models/pubkeySetting.d.ts +56 -0
  306. package/public/orm/models/pubkeySetting.js +100 -0
  307. package/public/orm/models/rlsSetting.d.ts +56 -0
  308. package/public/orm/models/rlsSetting.js +100 -0
  309. package/public/orm/models/webauthnSetting.d.ts +56 -0
  310. package/public/orm/models/webauthnSetting.js +100 -0
  311. package/public/orm/mutation/index.d.ts +9 -16
  312. package/public/orm/mutation/index.js +12 -12
  313. package/public/orm/query-builder.js +24 -0
  314. package/admin/cli/commands/request-upload-url.js +0 -36
  315. package/auth/cli/commands/request-upload-url.js +0 -36
  316. package/esm/auth/cli/commands/request-upload-url.js +0 -34
  317. package/esm/objects/cli/commands/request-upload-url.d.ts +0 -8
  318. package/esm/objects/cli/commands/request-upload-url.js +0 -34
  319. package/esm/public/cli/commands/request-upload-url.d.ts +0 -8
  320. package/esm/public/cli/commands/request-upload-url.js +0 -34
  321. package/objects/cli/commands/request-upload-url.d.ts +0 -8
  322. package/public/cli/commands/request-upload-url.d.ts +0 -8
  323. package/public/cli/commands/request-upload-url.js +0 -36
@@ -15,6 +15,10 @@ const fieldSchema = {
15
15
  softMax: 'int',
16
16
  windowStart: 'string',
17
17
  windowDuration: 'string',
18
+ planMax: 'int',
19
+ purchasedCredits: 'int',
20
+ periodCredits: 'int',
21
+ reserved: 'int',
18
22
  };
19
23
  const usage = '\norg-limit-aggregate <command>\n\nCommands:\n list List orgLimitAggregate records\n find-first Find first matching orgLimitAggregate record\n get Get a orgLimitAggregate by ID\n create Create a new orgLimitAggregate\n update Update an existing orgLimitAggregate\n delete Delete a orgLimitAggregate\n\nList Options:\n --limit <n> Max number of records to return (forward pagination)\n --last <n> Number of records from the end (backward pagination)\n --after <cursor> Cursor for forward pagination\n --before <cursor> Cursor for backward pagination\n --offset <n> Number of records to skip\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.<f>.<op> Condition filter (dot-notation)\n --orderBy <values> Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select <fields> Comma-separated list of fields to return\n --where.<field>.<op> Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.<f>.<op> Condition filter (dot-notation)\n\n --help, -h Show this help message\n';
20
24
  export default async (argv, prompter, _options) => {
@@ -66,6 +70,10 @@ async function handleList(argv, _prompter) {
66
70
  softMax: true,
67
71
  windowStart: true,
68
72
  windowDuration: true,
73
+ planMax: true,
74
+ purchasedCredits: true,
75
+ periodCredits: true,
76
+ reserved: true,
69
77
  };
70
78
  const findManyArgs = parseFindManyArgs(argv, defaultSelect);
71
79
  const client = getClient();
@@ -91,6 +99,10 @@ async function handleFindFirst(argv, _prompter) {
91
99
  softMax: true,
92
100
  windowStart: true,
93
101
  windowDuration: true,
102
+ planMax: true,
103
+ purchasedCredits: true,
104
+ periodCredits: true,
105
+ reserved: true,
94
106
  };
95
107
  const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
96
108
  const client = getClient();
@@ -128,6 +140,10 @@ async function handleGet(argv, prompter) {
128
140
  softMax: true,
129
141
  windowStart: true,
130
142
  windowDuration: true,
143
+ planMax: true,
144
+ purchasedCredits: true,
145
+ periodCredits: true,
146
+ reserved: true,
131
147
  },
132
148
  })
133
149
  .execute();
@@ -192,6 +208,34 @@ async function handleCreate(argv, prompter) {
192
208
  required: false,
193
209
  skipPrompt: true,
194
210
  },
211
+ {
212
+ type: 'text',
213
+ name: 'planMax',
214
+ message: 'planMax',
215
+ required: false,
216
+ skipPrompt: true,
217
+ },
218
+ {
219
+ type: 'text',
220
+ name: 'purchasedCredits',
221
+ message: 'purchasedCredits',
222
+ required: false,
223
+ skipPrompt: true,
224
+ },
225
+ {
226
+ type: 'text',
227
+ name: 'periodCredits',
228
+ message: 'periodCredits',
229
+ required: false,
230
+ skipPrompt: true,
231
+ },
232
+ {
233
+ type: 'text',
234
+ name: 'reserved',
235
+ message: 'reserved',
236
+ required: false,
237
+ skipPrompt: true,
238
+ },
195
239
  ]);
196
240
  const answers = coerceAnswers(rawAnswers, fieldSchema);
197
241
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -206,6 +250,10 @@ async function handleCreate(argv, prompter) {
206
250
  softMax: cleanedData.softMax,
207
251
  windowStart: cleanedData.windowStart,
208
252
  windowDuration: cleanedData.windowDuration,
253
+ planMax: cleanedData.planMax,
254
+ purchasedCredits: cleanedData.purchasedCredits,
255
+ periodCredits: cleanedData.periodCredits,
256
+ reserved: cleanedData.reserved,
209
257
  },
210
258
  select: {
211
259
  id: true,
@@ -216,6 +264,10 @@ async function handleCreate(argv, prompter) {
216
264
  softMax: true,
217
265
  windowStart: true,
218
266
  windowDuration: true,
267
+ planMax: true,
268
+ purchasedCredits: true,
269
+ periodCredits: true,
270
+ reserved: true,
219
271
  },
220
272
  })
221
273
  .execute();
@@ -286,6 +338,34 @@ async function handleUpdate(argv, prompter) {
286
338
  required: false,
287
339
  skipPrompt: true,
288
340
  },
341
+ {
342
+ type: 'text',
343
+ name: 'planMax',
344
+ message: 'planMax',
345
+ required: false,
346
+ skipPrompt: true,
347
+ },
348
+ {
349
+ type: 'text',
350
+ name: 'purchasedCredits',
351
+ message: 'purchasedCredits',
352
+ required: false,
353
+ skipPrompt: true,
354
+ },
355
+ {
356
+ type: 'text',
357
+ name: 'periodCredits',
358
+ message: 'periodCredits',
359
+ required: false,
360
+ skipPrompt: true,
361
+ },
362
+ {
363
+ type: 'text',
364
+ name: 'reserved',
365
+ message: 'reserved',
366
+ required: false,
367
+ skipPrompt: true,
368
+ },
289
369
  ]);
290
370
  const answers = coerceAnswers(rawAnswers, fieldSchema);
291
371
  const cleanedData = stripUndefined(answers, fieldSchema);
@@ -303,6 +383,10 @@ async function handleUpdate(argv, prompter) {
303
383
  softMax: cleanedData.softMax,
304
384
  windowStart: cleanedData.windowStart,
305
385
  windowDuration: cleanedData.windowDuration,
386
+ planMax: cleanedData.planMax,
387
+ purchasedCredits: cleanedData.purchasedCredits,
388
+ periodCredits: cleanedData.periodCredits,
389
+ reserved: cleanedData.reserved,
306
390
  },
307
391
  select: {
308
392
  id: true,
@@ -313,6 +397,10 @@ async function handleUpdate(argv, prompter) {
313
397
  softMax: true,
314
398
  windowStart: true,
315
399
  windowDuration: true,
400
+ planMax: true,
401
+ purchasedCredits: true,
402
+ periodCredits: true,
403
+ reserved: true,
316
404
  },
317
405
  })
318
406
  .execute();
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for OrgLimitCap
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;
@@ -0,0 +1,270 @@
1
+ /**
2
+ * CLI commands for OrgLimitCap
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
+ name: 'string',
12
+ entityId: 'uuid',
13
+ max: 'int',
14
+ };
15
+ const usage = '\norg-limit-cap <command>\n\nCommands:\n list List orgLimitCap records\n find-first Find first matching orgLimitCap record\n get Get a orgLimitCap by ID\n create Create a new orgLimitCap\n update Update an existing orgLimitCap\n delete Delete a orgLimitCap\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\n --help, -h Show this help message\n';
16
+ export default async (argv, prompter, _options) => {
17
+ if (argv.help || argv.h) {
18
+ console.log(usage);
19
+ process.exit(0);
20
+ }
21
+ const { first: subcommand, newArgv } = extractFirst(argv);
22
+ if (!subcommand) {
23
+ const answer = await prompter.prompt(argv, [
24
+ {
25
+ type: 'autocomplete',
26
+ name: 'subcommand',
27
+ message: 'What do you want to do?',
28
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
29
+ },
30
+ ]);
31
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
32
+ }
33
+ return handleTableSubcommand(subcommand, newArgv, prompter);
34
+ };
35
+ async function handleTableSubcommand(subcommand, argv, prompter) {
36
+ switch (subcommand) {
37
+ case 'list':
38
+ return handleList(argv, prompter);
39
+ case 'find-first':
40
+ return handleFindFirst(argv, prompter);
41
+ case 'get':
42
+ return handleGet(argv, prompter);
43
+ case 'create':
44
+ return handleCreate(argv, prompter);
45
+ case 'update':
46
+ return handleUpdate(argv, prompter);
47
+ case 'delete':
48
+ return handleDelete(argv, prompter);
49
+ default:
50
+ console.log(usage);
51
+ process.exit(1);
52
+ }
53
+ }
54
+ async function handleList(argv, _prompter) {
55
+ try {
56
+ const defaultSelect = {
57
+ id: true,
58
+ name: true,
59
+ entityId: true,
60
+ max: true,
61
+ };
62
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
63
+ const client = getClient();
64
+ const result = await client.orgLimitCap.findMany(findManyArgs).execute();
65
+ console.log(JSON.stringify(result, null, 2));
66
+ }
67
+ catch (error) {
68
+ console.error('Failed to list records.');
69
+ if (error instanceof Error) {
70
+ console.error(error.message);
71
+ }
72
+ process.exit(1);
73
+ }
74
+ }
75
+ async function handleFindFirst(argv, _prompter) {
76
+ try {
77
+ const defaultSelect = {
78
+ id: true,
79
+ name: true,
80
+ entityId: true,
81
+ max: true,
82
+ };
83
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
84
+ const client = getClient();
85
+ const result = await client.orgLimitCap.findFirst(findFirstArgs).execute();
86
+ console.log(JSON.stringify(result, null, 2));
87
+ }
88
+ catch (error) {
89
+ console.error('Failed to find record.');
90
+ if (error instanceof Error) {
91
+ console.error(error.message);
92
+ }
93
+ process.exit(1);
94
+ }
95
+ }
96
+ async function handleGet(argv, prompter) {
97
+ try {
98
+ const answers = await prompter.prompt(argv, [
99
+ {
100
+ type: 'text',
101
+ name: 'id',
102
+ message: 'id',
103
+ required: true,
104
+ },
105
+ ]);
106
+ const client = getClient();
107
+ const result = await client.orgLimitCap
108
+ .findOne({
109
+ id: answers.id,
110
+ select: {
111
+ id: true,
112
+ name: true,
113
+ entityId: true,
114
+ max: true,
115
+ },
116
+ })
117
+ .execute();
118
+ console.log(JSON.stringify(result, null, 2));
119
+ }
120
+ catch (error) {
121
+ console.error('Record not found.');
122
+ if (error instanceof Error) {
123
+ console.error(error.message);
124
+ }
125
+ process.exit(1);
126
+ }
127
+ }
128
+ async function handleCreate(argv, prompter) {
129
+ try {
130
+ const rawAnswers = await prompter.prompt(argv, [
131
+ {
132
+ type: 'text',
133
+ name: 'name',
134
+ message: 'name',
135
+ required: true,
136
+ },
137
+ {
138
+ type: 'text',
139
+ name: 'entityId',
140
+ message: 'entityId',
141
+ required: true,
142
+ },
143
+ {
144
+ type: 'text',
145
+ name: 'max',
146
+ message: 'max',
147
+ required: false,
148
+ skipPrompt: true,
149
+ },
150
+ ]);
151
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
152
+ const cleanedData = stripUndefined(answers, fieldSchema);
153
+ const client = getClient();
154
+ const result = await client.orgLimitCap
155
+ .create({
156
+ data: {
157
+ name: cleanedData.name,
158
+ entityId: cleanedData.entityId,
159
+ max: cleanedData.max,
160
+ },
161
+ select: {
162
+ id: true,
163
+ name: true,
164
+ entityId: true,
165
+ max: true,
166
+ },
167
+ })
168
+ .execute();
169
+ console.log(JSON.stringify(result, null, 2));
170
+ }
171
+ catch (error) {
172
+ console.error('Failed to create record.');
173
+ if (error instanceof Error) {
174
+ console.error(error.message);
175
+ }
176
+ process.exit(1);
177
+ }
178
+ }
179
+ async function handleUpdate(argv, prompter) {
180
+ try {
181
+ const rawAnswers = await prompter.prompt(argv, [
182
+ {
183
+ type: 'text',
184
+ name: 'id',
185
+ message: 'id',
186
+ required: true,
187
+ },
188
+ {
189
+ type: 'text',
190
+ name: 'name',
191
+ message: 'name',
192
+ required: false,
193
+ },
194
+ {
195
+ type: 'text',
196
+ name: 'entityId',
197
+ message: 'entityId',
198
+ required: false,
199
+ },
200
+ {
201
+ type: 'text',
202
+ name: 'max',
203
+ message: 'max',
204
+ required: false,
205
+ skipPrompt: true,
206
+ },
207
+ ]);
208
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
209
+ const cleanedData = stripUndefined(answers, fieldSchema);
210
+ const client = getClient();
211
+ const result = await client.orgLimitCap
212
+ .update({
213
+ where: {
214
+ id: answers.id,
215
+ },
216
+ data: {
217
+ name: cleanedData.name,
218
+ entityId: cleanedData.entityId,
219
+ max: cleanedData.max,
220
+ },
221
+ select: {
222
+ id: true,
223
+ name: true,
224
+ entityId: true,
225
+ max: true,
226
+ },
227
+ })
228
+ .execute();
229
+ console.log(JSON.stringify(result, null, 2));
230
+ }
231
+ catch (error) {
232
+ console.error('Failed to update record.');
233
+ if (error instanceof Error) {
234
+ console.error(error.message);
235
+ }
236
+ process.exit(1);
237
+ }
238
+ }
239
+ async function handleDelete(argv, prompter) {
240
+ try {
241
+ const rawAnswers = await prompter.prompt(argv, [
242
+ {
243
+ type: 'text',
244
+ name: 'id',
245
+ message: 'id',
246
+ required: true,
247
+ },
248
+ ]);
249
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
250
+ const client = getClient();
251
+ const result = await client.orgLimitCap
252
+ .delete({
253
+ where: {
254
+ id: answers.id,
255
+ },
256
+ select: {
257
+ id: true,
258
+ },
259
+ })
260
+ .execute();
261
+ console.log(JSON.stringify(result, null, 2));
262
+ }
263
+ catch (error) {
264
+ console.error('Failed to delete record.');
265
+ if (error instanceof Error) {
266
+ console.error(error.message);
267
+ }
268
+ process.exit(1);
269
+ }
270
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI commands for OrgLimitCapsDefault
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;
@@ -0,0 +1,250 @@
1
+ /**
2
+ * CLI commands for OrgLimitCapsDefault
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
+ name: 'string',
12
+ max: 'int',
13
+ };
14
+ const usage = '\norg-limit-caps-default <command>\n\nCommands:\n list List orgLimitCapsDefault records\n find-first Find first matching orgLimitCapsDefault record\n get Get a orgLimitCapsDefault by ID\n create Create a new orgLimitCapsDefault\n update Update an existing orgLimitCapsDefault\n delete Delete a orgLimitCapsDefault\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\n --help, -h Show this help message\n';
15
+ export default async (argv, prompter, _options) => {
16
+ if (argv.help || argv.h) {
17
+ console.log(usage);
18
+ process.exit(0);
19
+ }
20
+ const { first: subcommand, newArgv } = extractFirst(argv);
21
+ if (!subcommand) {
22
+ const answer = await prompter.prompt(argv, [
23
+ {
24
+ type: 'autocomplete',
25
+ name: 'subcommand',
26
+ message: 'What do you want to do?',
27
+ options: ['list', 'find-first', 'get', 'create', 'update', 'delete'],
28
+ },
29
+ ]);
30
+ return handleTableSubcommand(answer.subcommand, newArgv, prompter);
31
+ }
32
+ return handleTableSubcommand(subcommand, newArgv, prompter);
33
+ };
34
+ async function handleTableSubcommand(subcommand, argv, prompter) {
35
+ switch (subcommand) {
36
+ case 'list':
37
+ return handleList(argv, prompter);
38
+ case 'find-first':
39
+ return handleFindFirst(argv, prompter);
40
+ case 'get':
41
+ return handleGet(argv, prompter);
42
+ case 'create':
43
+ return handleCreate(argv, prompter);
44
+ case 'update':
45
+ return handleUpdate(argv, prompter);
46
+ case 'delete':
47
+ return handleDelete(argv, prompter);
48
+ default:
49
+ console.log(usage);
50
+ process.exit(1);
51
+ }
52
+ }
53
+ async function handleList(argv, _prompter) {
54
+ try {
55
+ const defaultSelect = {
56
+ id: true,
57
+ name: true,
58
+ max: true,
59
+ };
60
+ const findManyArgs = parseFindManyArgs(argv, defaultSelect);
61
+ const client = getClient();
62
+ const result = await client.orgLimitCapsDefault.findMany(findManyArgs).execute();
63
+ console.log(JSON.stringify(result, null, 2));
64
+ }
65
+ catch (error) {
66
+ console.error('Failed to list records.');
67
+ if (error instanceof Error) {
68
+ console.error(error.message);
69
+ }
70
+ process.exit(1);
71
+ }
72
+ }
73
+ async function handleFindFirst(argv, _prompter) {
74
+ try {
75
+ const defaultSelect = {
76
+ id: true,
77
+ name: true,
78
+ max: true,
79
+ };
80
+ const findFirstArgs = parseFindFirstArgs(argv, defaultSelect);
81
+ const client = getClient();
82
+ const result = await client.orgLimitCapsDefault.findFirst(findFirstArgs).execute();
83
+ console.log(JSON.stringify(result, null, 2));
84
+ }
85
+ catch (error) {
86
+ console.error('Failed to find record.');
87
+ if (error instanceof Error) {
88
+ console.error(error.message);
89
+ }
90
+ process.exit(1);
91
+ }
92
+ }
93
+ async function handleGet(argv, prompter) {
94
+ try {
95
+ const answers = await prompter.prompt(argv, [
96
+ {
97
+ type: 'text',
98
+ name: 'id',
99
+ message: 'id',
100
+ required: true,
101
+ },
102
+ ]);
103
+ const client = getClient();
104
+ const result = await client.orgLimitCapsDefault
105
+ .findOne({
106
+ id: answers.id,
107
+ select: {
108
+ id: true,
109
+ name: true,
110
+ max: true,
111
+ },
112
+ })
113
+ .execute();
114
+ console.log(JSON.stringify(result, null, 2));
115
+ }
116
+ catch (error) {
117
+ console.error('Record not found.');
118
+ if (error instanceof Error) {
119
+ console.error(error.message);
120
+ }
121
+ process.exit(1);
122
+ }
123
+ }
124
+ async function handleCreate(argv, prompter) {
125
+ try {
126
+ const rawAnswers = await prompter.prompt(argv, [
127
+ {
128
+ type: 'text',
129
+ name: 'name',
130
+ message: 'name',
131
+ required: true,
132
+ },
133
+ {
134
+ type: 'text',
135
+ name: 'max',
136
+ message: 'max',
137
+ required: false,
138
+ skipPrompt: true,
139
+ },
140
+ ]);
141
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
142
+ const cleanedData = stripUndefined(answers, fieldSchema);
143
+ const client = getClient();
144
+ const result = await client.orgLimitCapsDefault
145
+ .create({
146
+ data: {
147
+ name: cleanedData.name,
148
+ max: cleanedData.max,
149
+ },
150
+ select: {
151
+ id: true,
152
+ name: true,
153
+ max: true,
154
+ },
155
+ })
156
+ .execute();
157
+ console.log(JSON.stringify(result, null, 2));
158
+ }
159
+ catch (error) {
160
+ console.error('Failed to create record.');
161
+ if (error instanceof Error) {
162
+ console.error(error.message);
163
+ }
164
+ process.exit(1);
165
+ }
166
+ }
167
+ async function handleUpdate(argv, prompter) {
168
+ try {
169
+ const rawAnswers = await prompter.prompt(argv, [
170
+ {
171
+ type: 'text',
172
+ name: 'id',
173
+ message: 'id',
174
+ required: true,
175
+ },
176
+ {
177
+ type: 'text',
178
+ name: 'name',
179
+ message: 'name',
180
+ required: false,
181
+ },
182
+ {
183
+ type: 'text',
184
+ name: 'max',
185
+ message: 'max',
186
+ required: false,
187
+ skipPrompt: true,
188
+ },
189
+ ]);
190
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
191
+ const cleanedData = stripUndefined(answers, fieldSchema);
192
+ const client = getClient();
193
+ const result = await client.orgLimitCapsDefault
194
+ .update({
195
+ where: {
196
+ id: answers.id,
197
+ },
198
+ data: {
199
+ name: cleanedData.name,
200
+ max: cleanedData.max,
201
+ },
202
+ select: {
203
+ id: true,
204
+ name: true,
205
+ max: true,
206
+ },
207
+ })
208
+ .execute();
209
+ console.log(JSON.stringify(result, null, 2));
210
+ }
211
+ catch (error) {
212
+ console.error('Failed to update record.');
213
+ if (error instanceof Error) {
214
+ console.error(error.message);
215
+ }
216
+ process.exit(1);
217
+ }
218
+ }
219
+ async function handleDelete(argv, prompter) {
220
+ try {
221
+ const rawAnswers = await prompter.prompt(argv, [
222
+ {
223
+ type: 'text',
224
+ name: 'id',
225
+ message: 'id',
226
+ required: true,
227
+ },
228
+ ]);
229
+ const answers = coerceAnswers(rawAnswers, fieldSchema);
230
+ const client = getClient();
231
+ const result = await client.orgLimitCapsDefault
232
+ .delete({
233
+ where: {
234
+ id: answers.id,
235
+ },
236
+ select: {
237
+ id: true,
238
+ },
239
+ })
240
+ .execute();
241
+ console.log(JSON.stringify(result, null, 2));
242
+ }
243
+ catch (error) {
244
+ console.error('Failed to delete record.');
245
+ if (error instanceof Error) {
246
+ console.error(error.message);
247
+ }
248
+ process.exit(1);
249
+ }
250
+ }