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