cabloy 5.1.122 → 5.1.124

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 (244) hide show
  1. package/.cabloy-version +1 -1
  2. package/.claude/skills/cabloy-frontend-scaffold/SKILL.md +13 -3
  3. package/.claude/skills/cabloy-workflow/SKILL.md +6 -0
  4. package/.claude/skills/cabloy-workflow/evals/evals.json +6 -0
  5. package/CHANGELOG.md +24 -0
  6. package/CLAUDE.md +1 -1
  7. package/cabloy-docs/.vitepress/config.mjs +4 -0
  8. package/cabloy-docs/frontend/form-layout-guide.md +29 -7
  9. package/cabloy-docs/fullstack/parallel-worktree-environment.md +87 -0
  10. package/e2e/scripts/e2e.ts +13 -1
  11. package/e2e/scripts/startE2eVona.ts +4 -1
  12. package/e2e/specs/a-commerce/commerce.spec.ts +129 -32
  13. package/package.json +2 -1
  14. package/playwright-report/data/24ac790ec112339c76cfb0c8e2c2539c2f953a0b.zip +0 -0
  15. package/playwright-report/data/2fddcabcdbd0b695061a565acfff243cb3a4f5e3.zip +0 -0
  16. package/playwright-report/data/4738038d9e861d63fd25937c9a3570934786a62f.zip +0 -0
  17. package/playwright-report/data/72f99c7da67c7f6ea53cab7d8681798b70d79a10.md +222 -0
  18. package/playwright-report/data/7b9684a7c793e9798b898f8ff50177b660a7a733.md +222 -0
  19. package/playwright-report/data/8b31595f5f1cc9d23863af51a592e6b90dcbc4ce.zip +0 -0
  20. package/playwright-report/data/95b578407a68806202dda917a61c50c750bd285b.md +222 -0
  21. package/playwright-report/data/ad960b3a58f224f5b4cad04a24067600064ffb7b.md +222 -0
  22. package/playwright-report/index.html +90 -0
  23. package/playwright-report/trace/assets/codeMirrorModule-LEHpjmcn.js +32 -0
  24. package/playwright-report/trace/assets/defaultSettingsView-BNmKHKpQ.js +264 -0
  25. package/playwright-report/trace/assets/urlMatch-BYQrIQwR.js +1 -0
  26. package/playwright-report/trace/codeMirrorModule.DYBRYzYX.css +1 -0
  27. package/playwright-report/trace/codicon.DCmgc-ay.ttf +0 -0
  28. package/playwright-report/trace/defaultSettingsView.CjdS-WJx.css +1 -0
  29. package/playwright-report/trace/index.CzXZzn5A.css +1 -0
  30. package/playwright-report/trace/index.DMMX1gXU.js +2 -0
  31. package/playwright-report/trace/index.html +44 -0
  32. package/playwright-report/trace/manifest.webmanifest +16 -0
  33. package/playwright-report/trace/playwright-logo.svg +9 -0
  34. package/playwright-report/trace/snapshot.html +10 -0
  35. package/playwright-report/trace/snapshot.v8KI4P3m.js +2 -0
  36. package/playwright-report/trace/sw.bundle.js +5 -0
  37. package/playwright-report/trace/uiMode.BZQ54Kgt.css +1 -0
  38. package/playwright-report/trace/uiMode.Ut8wwJNp.js +6 -0
  39. package/playwright-report/trace/uiMode.html +18 -0
  40. package/playwright-report/trace/xtermModule.DYP7pi_n.css +32 -0
  41. package/vona/env/.env +12 -0
  42. package/vona/env/.env.test +7 -0
  43. package/vona/packages-cli/cli/package.json +1 -1
  44. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudBasic/boilerplate/src/dto/{{resourceName}}Create.tsx_ +19 -1
  45. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudBasic/boilerplate/src/dto/{{resourceName}}Update.tsx_ +19 -1
  46. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudBasic/boilerplate/src/dto/{{resourceName}}View.tsx_ +19 -1
  47. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudBasic/snippets/3-en-us.ts +6 -1
  48. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudBasic/snippets/4-zh-cn.ts +6 -1
  49. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/boilerplate/src/dto/{{resourceName}}Create.tsx_ +19 -1
  50. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/boilerplate/src/dto/{{resourceName}}Update.tsx_ +19 -1
  51. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/boilerplate/src/dto/{{resourceName}}View.tsx_ +19 -1
  52. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/snippets/3-en-us.ts +6 -1
  53. package/vona/packages-cli/cli-set-api/cli/templates/tools/crudStart/snippets/4-zh-cn.ts +6 -1
  54. package/vona/packages-cli/cli-set-api/package.json +1 -1
  55. package/vona/pnpm-lock.yaml +255 -12
  56. package/vona/pnpm-workspace.yaml +1 -1
  57. package/vona/src/suite/a-commerce/modules/commerce-payment/package.json +4 -1
  58. package/vona/src/suite/a-commerce/modules/commerce-payment/src/.metadata/index.ts +45 -3
  59. package/vona/src/suite/a-commerce/modules/commerce-payment/src/bean/meta.index.ts +1 -0
  60. package/vona/src/suite/a-commerce/modules/commerce-payment/src/bean/meta.version.ts +25 -1
  61. package/vona/src/suite/a-commerce/modules/commerce-payment/src/bean/payScene.commerceOrder.ts +20 -0
  62. package/vona/src/suite/a-commerce/modules/commerce-payment/src/entity/paymentAttempt.tsx +9 -0
  63. package/vona/src/suite/a-commerce/modules/commerce-payment/src/entity/paymentAudit.tsx +5 -2
  64. package/vona/src/suite/a-commerce/modules/commerce-payment/src/entity/refundAttempt.tsx +6 -0
  65. package/vona/src/suite/a-commerce/modules/commerce-payment/src/index.ts +2 -0
  66. package/vona/src/suite/a-commerce/modules/commerce-payment/src/lib/index.ts +1 -0
  67. package/vona/src/suite/a-commerce/modules/commerce-payment/src/service/commercePayScene.ts +54 -0
  68. package/vona/src/suite/a-commerce/modules/commerce-payment/src/service/paymentAttempt.ts +7 -1
  69. package/vona/src/suite/a-commerce/modules/commerce-payment/src/types/index.ts +1 -0
  70. package/vona/src/suite/a-commerce/modules/commerce-payment/test/paymentAttempt.test.ts +21 -0
  71. package/vona/src/suite/a-commerce/modules/commerce-promotion/src/.metadata/index.ts +30 -0
  72. package/vona/src/suite/a-commerce/modules/commerce-promotion/src/config/locale/en-us.ts +4 -0
  73. package/vona/src/suite/a-commerce/modules/commerce-promotion/src/config/locale/zh-cn.ts +4 -0
  74. package/vona/src/suite/a-commerce/modules/commerce-promotion/src/dto/couponTemplateCreate.tsx +88 -1
  75. package/vona/src/suite/a-commerce/modules/commerce-promotion/src/dto/couponTemplateUpdate.tsx +44 -1
  76. package/vona/src/suite/a-commerce/modules/commerce-promotion/src/dto/couponTemplateView.tsx +72 -1
  77. package/vona/src/suite/a-commerce/modules/commerce-promotion/test/couponTemplateFormLayout.test.ts +121 -0
  78. package/vona/src/suite/a-commerce/modules/commerce-siteweb/src/bean/ssrMenu.home.ts +4 -1
  79. package/vona/src/suite/a-commerce/modules/commerce-trade/package.json +4 -1
  80. package/vona/src/suite/a-commerce/modules/commerce-trade/src/.metadata/index.ts +0 -21
  81. package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/checkoutResult.tsx +3 -0
  82. package/vona/src/suite/a-commerce/modules/commerce-trade/src/service/order.ts +79 -0
  83. package/vona/src/suite/a-commerce/modules/commerce-trade/test/orderSnapshot.test.ts +227 -0
  84. package/vona/src/suite/a-commerce/modules/commerce-trade/test/paymentOutcome.test.ts +121 -13
  85. package/vona/src/suite/a-commerce/modules/commerce-trade/test/refundLifecycle.test.ts +312 -0
  86. package/vona/src/suite-vendor/a-pay/modules/a-pay/package.json +76 -0
  87. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/index.ts +842 -0
  88. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/this.ts +2 -0
  89. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/bean.payProvider.ts +92 -0
  90. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/bean.payScene.ts +105 -0
  91. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/meta.index.ts +28 -0
  92. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/meta.redlock.ts +11 -0
  93. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/meta.version.ts +113 -0
  94. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/queue.outboxDispatch.ts +31 -0
  95. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/schedule.outboxDispatch.ts +11 -0
  96. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/controller/paymentSession.ts +55 -0
  97. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/controller/webhook.ts +47 -0
  98. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/dto/paymentSessionStart.tsx +8 -0
  99. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/dto/paymentSessionView.tsx +69 -0
  100. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/dto/webhookReceipt.tsx +12 -0
  101. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/entity/outboxEvent.tsx +46 -0
  102. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/entity/paymentAudit.tsx +36 -0
  103. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/entity/paymentSession.tsx +72 -0
  104. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/entity/providerOperation.tsx +54 -0
  105. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/entity/refundOperation.tsx +37 -0
  106. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/entity/webhookInbox.tsx +59 -0
  107. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/index.ts +3 -0
  108. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/lib/index.ts +2 -0
  109. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/lib/payProvider.ts +7 -0
  110. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/lib/payScene.ts +7 -0
  111. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/model/outboxEvent.ts +10 -0
  112. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/model/paymentAudit.ts +10 -0
  113. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/model/paymentSession.ts +10 -0
  114. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/model/providerOperation.ts +10 -0
  115. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/model/refundOperation.ts +10 -0
  116. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/model/webhookInbox.ts +10 -0
  117. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/outbox.ts +156 -0
  118. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/paymentSession.ts +278 -0
  119. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/providerOperation.ts +5 -0
  120. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/webhook.ts +127 -0
  121. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/index.ts +3 -0
  122. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/payProvider.ts +74 -0
  123. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/payScene.ts +63 -0
  124. package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/payment.ts +151 -0
  125. package/vona/src/suite-vendor/a-pay/modules/a-pay/test/outbox.test.ts +209 -0
  126. package/vona/src/suite-vendor/a-pay/modules/a-pay/test/paymentSession.test.ts +153 -0
  127. package/vona/src/suite-vendor/a-pay/modules/a-pay/test/webhook.test.ts +278 -0
  128. package/vona/src/suite-vendor/a-pay/modules/a-pay/tsconfig.build.json +11 -0
  129. package/vona/src/suite-vendor/a-pay/modules/a-pay/tsconfig.json +7 -0
  130. package/vona/src/suite-vendor/a-pay/modules/pay-mock/package.json +55 -0
  131. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/.metadata/index.ts +182 -0
  132. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/.metadata/this.ts +2 -0
  133. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/bean/payProvider.mock.ts +149 -0
  134. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/controller/mockPayment.ts +25 -0
  135. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/dto/mockPaymentComplete.tsx +13 -0
  136. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/dto/mockPaymentReceipt.tsx +16 -0
  137. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/index.ts +3 -0
  138. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/lib/index.ts +1 -0
  139. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/service/payMock.ts +78 -0
  140. package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/types/index.ts +10 -0
  141. package/vona/src/suite-vendor/a-pay/modules/pay-mock/test/payMock.test.ts +141 -0
  142. package/vona/src/suite-vendor/a-pay/modules/pay-mock/tsconfig.build.json +11 -0
  143. package/vona/src/suite-vendor/a-pay/modules/pay-mock/tsconfig.json +7 -0
  144. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/package.json +55 -0
  145. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/.metadata/index.ts +62 -0
  146. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/.metadata/this.ts +2 -0
  147. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/bean/payProvider.paypal.ts +91 -0
  148. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/index.ts +3 -0
  149. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/lib/index.ts +1 -0
  150. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/types/index.ts +9 -0
  151. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/tsconfig.build.json +11 -0
  152. package/vona/src/suite-vendor/a-pay/modules/pay-paypal/tsconfig.json +7 -0
  153. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/package.json +55 -0
  154. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/.metadata/index.ts +62 -0
  155. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/.metadata/this.ts +2 -0
  156. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/bean/payProvider.stripe.ts +88 -0
  157. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/index.ts +2 -0
  158. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/types/index.ts +8 -0
  159. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/tsconfig.build.json +11 -0
  160. package/vona/src/suite-vendor/a-pay/modules/pay-stripe/tsconfig.json +7 -0
  161. package/vona/src/suite-vendor/a-pay/package.json +15 -0
  162. package/vona/src/suite-vendor/a-pay/tsconfig.base.json +4 -0
  163. package/vona/src/suite-vendor/a-pay/tsconfig.json +19 -0
  164. package/zova/env/.env +1 -0
  165. package/zova/openapi.config.ts +5 -1
  166. package/zova/package.original.json +1 -1
  167. package/zova/packages-cli/cli/package.json +2 -2
  168. package/zova/packages-cli/cli-set-front/cli/templates/openapi/config/boilerplate/project/openapi.config.ts +5 -1
  169. package/zova/packages-cli/cli-set-front/package.json +1 -1
  170. package/zova/packages-cli/cli-set-front/src/lib/bean/cli.openapi.generate.ts +8 -0
  171. package/zova/packages-cli/cli-set-front/src/lib/common/cliCreatePage.ts +7 -24
  172. package/zova/packages-cli/cli-set-front/src/lib/common/utils.ts +10 -1
  173. package/zova/packages-utils/zova-jsx/package.json +2 -2
  174. package/zova/packages-zova/zova/package.json +3 -3
  175. package/zova/packages-zova/zova-core/package.json +1 -1
  176. package/zova/packages-zova/zova-core/src/types/interface/component.ts +5 -0
  177. package/zova/pnpm-lock.yaml +96 -26
  178. package/zova/src/front/config/config/config.cabloyCommerce.ts +1 -1
  179. package/zova/src/suite/a-commerce/modules/commerce-promotion/src/api/openapi/schemas.ts +110 -12
  180. package/zova/src/suite/a-commerce/modules/commerce-promotion/src/api/openapi/types.ts +1292 -160
  181. package/zova/src/suite/a-commerce/modules/commerce-trade/cli/openapi.config.ts +0 -1
  182. package/zova/src/suite/a-commerce/modules/commerce-trade/package.json +4 -1
  183. package/zova/src/suite/a-commerce/modules/commerce-trade/src/.metadata/index.ts +1 -47
  184. package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/schemas.ts +23 -8
  185. package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/types.ts +249 -62
  186. package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/checkout/controller.tsx +5 -1
  187. package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/payment/controller.tsx +152 -39
  188. package/zova/src/suite/a-commerce/modules/commerce-trade/src/routes.ts +1 -1
  189. package/zova/src/suite-vendor/a-pay/modules/a-pay/cli/openapi.config.ts +9 -0
  190. package/zova/src/suite-vendor/a-pay/modules/a-pay/package.json +53 -0
  191. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/component/paymentNextAction.ts +31 -0
  192. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/index.ts +217 -0
  193. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/this.ts +2 -0
  194. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/baseURL.ts +5 -0
  195. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/index.ts +3 -0
  196. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/schemas.ts +584 -0
  197. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/types.ts +9324 -0
  198. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/paymentSession.ts +52 -0
  199. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/apiSchema/paymentSession.ts +20 -0
  200. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/component/paymentNextAction/controller.tsx +76 -0
  201. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/index.ts +3 -0
  202. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/lib/index.ts +1 -0
  203. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/model/paymentSession.ts +32 -0
  204. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/service/paymentCoordinator.ts +13 -0
  205. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/types/index.ts +1 -0
  206. package/zova/src/suite-vendor/a-pay/modules/a-pay/src/types/payment.ts +25 -0
  207. package/zova/src/suite-vendor/a-pay/modules/a-pay/tsconfig.build.json +13 -0
  208. package/zova/src/suite-vendor/a-pay/modules/a-pay/tsconfig.json +5 -0
  209. package/zova/src/suite-vendor/a-pay/modules/pay-mock/cli/openapi.config.ts +9 -0
  210. package/zova/src/suite-vendor/a-pay/modules/pay-mock/package.json +53 -0
  211. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/.metadata/index.ts +140 -0
  212. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/.metadata/this.ts +2 -0
  213. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/baseURL.ts +5 -0
  214. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/index.ts +3 -0
  215. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/schemas.ts +584 -0
  216. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/openapi/types.ts +9324 -0
  217. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/api/payMockPayment.ts +34 -0
  218. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/apiSchema/payMockPayment.ts +13 -0
  219. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/index.ts +1 -0
  220. package/zova/src/suite-vendor/a-pay/modules/pay-mock/src/model/payMockPayment.ts +20 -0
  221. package/zova/src/suite-vendor/a-pay/modules/pay-mock/tsconfig.build.json +13 -0
  222. package/zova/src/suite-vendor/a-pay/modules/pay-mock/tsconfig.json +5 -0
  223. package/zova/src/suite-vendor/a-pay/modules/pay-paypal/package.json +52 -0
  224. package/zova/src/suite-vendor/a-pay/modules/pay-paypal/src/.metadata/index.ts +26 -0
  225. package/zova/src/suite-vendor/a-pay/modules/pay-paypal/src/.metadata/this.ts +2 -0
  226. package/zova/src/suite-vendor/a-pay/modules/pay-paypal/src/index.ts +1 -0
  227. package/zova/src/suite-vendor/a-pay/modules/pay-paypal/tsconfig.build.json +13 -0
  228. package/zova/src/suite-vendor/a-pay/modules/pay-paypal/tsconfig.json +5 -0
  229. package/zova/src/suite-vendor/a-pay/modules/pay-stripe/package.json +52 -0
  230. package/zova/src/suite-vendor/a-pay/modules/pay-stripe/src/.metadata/index.ts +26 -0
  231. package/zova/src/suite-vendor/a-pay/modules/pay-stripe/src/.metadata/this.ts +2 -0
  232. package/zova/src/suite-vendor/a-pay/modules/pay-stripe/src/index.ts +1 -0
  233. package/zova/src/suite-vendor/a-pay/modules/pay-stripe/tsconfig.build.json +13 -0
  234. package/zova/src/suite-vendor/a-pay/modules/pay-stripe/tsconfig.json +5 -0
  235. package/zova/src/suite-vendor/a-pay/package.json +15 -0
  236. package/zova/src/suite-vendor/a-pay/tsconfig.base.json +4 -0
  237. package/zova/src/suite-vendor/a-pay/tsconfig.json +4 -0
  238. package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +2 -2
  239. package/zova/src/suite-vendor/a-zova/package.json +2 -2
  240. package/vona/src/suite/a-commerce/modules/commerce-trade/src/controller/payment.ts +0 -23
  241. package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/commerceTradePayment.ts +0 -36
  242. package/zova/src/suite/a-commerce/modules/commerce-trade/src/apiSchema/commerceTradePayment.ts +0 -13
  243. package/zova/src/suite/a-commerce/modules/commerce-trade/src/model/payment.ts +0 -25
  244. /package/vona/patches/{zova-core@5.1.79.patch → zova-core@5.1.81.patch} +0 -0
@@ -0,0 +1,62 @@
1
+ // eslint-disable
2
+ /** payProvider: begin */
3
+ export * from '../bean/payProvider.stripe.ts';
4
+ import type { IPayProviderOptionsStripe } from '../bean/payProvider.stripe.ts';
5
+ import 'vona-module-a-pay';
6
+ declare module 'vona-module-a-pay' {
7
+
8
+ export interface IPayProviderRecord {
9
+ 'pay-stripe:stripe': IPayProviderOptionsStripe;
10
+ }
11
+
12
+
13
+ }
14
+ declare module 'vona-module-pay-stripe' {
15
+
16
+ export interface PayProviderStripe {
17
+ /** @internal */
18
+ get scope(): ScopeModulePayStripe;
19
+ }
20
+
21
+ export interface PayProviderStripe {
22
+ get $beanFullName(): 'pay-stripe.payProvider.stripe';
23
+ get $onionName(): 'pay-stripe:stripe';
24
+ get $onionOptions(): IPayProviderOptionsStripe;
25
+ }
26
+ }
27
+ /** payProvider: end */
28
+ /** payProvider: begin */
29
+ import type { PayProviderStripe } from '../bean/payProvider.stripe.ts';
30
+ export interface IModulePayProvider {
31
+ 'stripe': PayProviderStripe;
32
+ }
33
+ /** payProvider: end */
34
+ /** scope: begin */
35
+ import { BeanScopeBase, type BeanScopeUtil } from 'vona';
36
+ import { Scope } from 'vona-module-a-bean';
37
+
38
+ @Scope()
39
+ export class ScopeModulePayStripe extends BeanScopeBase {}
40
+
41
+ export interface ScopeModulePayStripe {
42
+ util: BeanScopeUtil;
43
+ payProvider: IModulePayProvider;
44
+ }
45
+
46
+ import 'vona';
47
+ declare module 'vona' {
48
+ export interface IBeanScopeRecord {
49
+ 'pay-stripe': ScopeModulePayStripe;
50
+ }
51
+
52
+ export interface IBeanScopeContainer {
53
+ payStripe: ScopeModulePayStripe;
54
+ }
55
+
56
+
57
+
58
+
59
+
60
+
61
+ }
62
+ /** scope: end */
@@ -0,0 +1,2 @@
1
+ export const __ThisModule__ = 'pay-stripe';
2
+ export { ScopeModulePayStripe as ScopeModule } from './index.ts';
@@ -0,0 +1,88 @@
1
+ import type {
2
+ IDecoratorPayProviderOptions,
3
+ IPayProviderClientOptions,
4
+ IPayProviderClientRecord,
5
+ IPayProviderExecute,
6
+ IPayProviderPaymentInput,
7
+ IPayProviderPaymentSnapshot,
8
+ IPayProviderRefundInput,
9
+ IPayProviderRefundSnapshot,
10
+ IPayProviderVerifiedWebhook,
11
+ IPayProviderWebhookInput,
12
+ } from 'vona-module-a-pay';
13
+
14
+ import { BeanBase, useApp } from 'vona';
15
+ import { PayProvider } from 'vona-module-a-pay';
16
+
17
+ export interface IPayProviderStripeClientRecord extends IPayProviderClientRecord {}
18
+
19
+ export interface IPayProviderStripeClientOptions extends IPayProviderClientOptions {
20
+ secretCredential: string | undefined;
21
+ secretWebhook: string | undefined;
22
+ }
23
+
24
+ const app = useApp();
25
+
26
+ export interface IPayProviderOptionsStripe extends IDecoratorPayProviderOptions<
27
+ IPayProviderStripeClientRecord,
28
+ IPayProviderStripeClientOptions
29
+ > {}
30
+
31
+ @PayProvider<IPayProviderOptionsStripe>({
32
+ base: {
33
+ capabilities: {
34
+ redirectCheckout: false,
35
+ embeddedCheckout: true,
36
+ automaticCapture: true,
37
+ manualCapture: false,
38
+ refunds: true,
39
+ partialRefunds: true,
40
+ webhooks: true,
41
+ },
42
+ },
43
+ clients: {
44
+ default: {
45
+ environment: 'sandbox',
46
+ secretCredential: app.meta.env.STRIPE_SECRET_KEY,
47
+ secretWebhook: app.meta.env.STRIPE_WEBHOOK_SECRET,
48
+ },
49
+ },
50
+ })
51
+ export class PayProviderStripe
52
+ extends BeanBase
53
+ implements IPayProviderExecute<IPayProviderStripeClientOptions>
54
+ {
55
+ async startPayment(
56
+ _input: IPayProviderPaymentInput,
57
+ _clientOptions: IPayProviderStripeClientOptions,
58
+ ): Promise<IPayProviderPaymentSnapshot> {
59
+ this.app.throw(501, 'Stripe provider is not implemented');
60
+ }
61
+
62
+ async queryPayment(
63
+ _input: IPayProviderPaymentInput,
64
+ _clientOptions: IPayProviderStripeClientOptions,
65
+ ): Promise<IPayProviderPaymentSnapshot> {
66
+ this.app.throw(501, 'Stripe provider is not implemented');
67
+ }
68
+
69
+ async createRefund(
70
+ _input: IPayProviderRefundInput,
71
+ _clientOptions: IPayProviderStripeClientOptions,
72
+ ): Promise<IPayProviderRefundSnapshot> {
73
+ this.app.throw(501, 'Stripe provider is not implemented');
74
+ }
75
+
76
+ async verifyWebhook(
77
+ _input: IPayProviderWebhookInput,
78
+ _clientOptions: IPayProviderStripeClientOptions,
79
+ ): Promise<IPayProviderVerifiedWebhook> {
80
+ this.app.throw(501, 'Stripe provider is not implemented');
81
+ }
82
+ }
83
+
84
+ declare module 'vona-module-a-pay' {
85
+ export interface IPayProviderRecord {
86
+ 'pay-stripe:stripe': IPayProviderOptionsStripe;
87
+ }
88
+ }
@@ -0,0 +1,2 @@
1
+ export * from './types/index.ts';
2
+ export * from './.metadata/index.ts';
@@ -0,0 +1,8 @@
1
+ declare module 'vona' {
2
+ export interface VonaConfigEnv {
3
+ STRIPE_SECRET_KEY: string | undefined;
4
+ STRIPE_WEBHOOK_SECRET: string | undefined;
5
+ }
6
+ }
7
+
8
+ export {};
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../tsconfig.base",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "emitDeclarationOnly": true,
8
+ "outDir": "dist"
9
+ },
10
+ "include": ["src", "src/.metadata/*.ts", "src/**/*.json"]
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../tsconfig.base",
3
+ "compilerOptions": {
4
+ "noEmit": true
5
+ },
6
+ "include": ["src", "src/.metadata/*.ts", "src/**/*.json", "test"]
7
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "vona-suite-a-pay",
3
+ "version": "5.0.1",
4
+ "description": "",
5
+ "author": "",
6
+ "files": [],
7
+ "type": "module",
8
+ "dependencies": {
9
+ "vona-module-a-pay": "^5.0.1",
10
+ "vona-module-pay-mock": "^5.0.1",
11
+ "vona-module-pay-paypal": "^5.0.1",
12
+ "vona-module-pay-stripe": "^5.0.1"
13
+ },
14
+ "title": "a-pay"
15
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.base",
3
+ "compilerOptions": {}
4
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": "./tsconfig.base",
3
+ "compilerOptions": {},
4
+ "references": [
5
+ {
6
+ "path": "modules/a-pay/tsconfig.build.json"
7
+ },
8
+ {
9
+ "path": "modules/pay-mock/tsconfig.build.json"
10
+ },
11
+ {
12
+ "path": "modules/pay-paypal/tsconfig.build.json"
13
+ },
14
+ {
15
+ "path": "modules/pay-stripe/tsconfig.build.json"
16
+ }
17
+ ],
18
+ "exclude": ["modules"]
19
+ }
package/zova/env/.env CHANGED
@@ -17,6 +17,7 @@ ROUTER_KEY_RETURNTO = returnTo
17
17
 
18
18
  DEV_SERVER_HOSTNAME =
19
19
  DEV_SERVER_PORT = 9000
20
+ DEV_SERVER_HMR_PORT = 24679
20
21
 
21
22
  PROJECT_DISABLED_MODULES =
22
23
  PROJECT_DISABLED_SUITES =
@@ -1,9 +1,13 @@
1
1
  import type { ZovaOpenapiConfig } from 'zova-openapi';
2
2
 
3
3
  export default function (): ZovaOpenapiConfig {
4
+ const apiBaseURL = process.env.API_BASE_URL;
5
+ if (!apiBaseURL) {
6
+ throw new Error('Missing API_BASE_URL');
7
+ }
4
8
  return {
5
9
  default: {
6
- source: 'http://localhost:7102/swagger/json?version=V31',
10
+ source: `${apiBaseURL.replace(/\/$/, '')}/swagger/json?version=V31`,
7
11
  },
8
12
  modules: {},
9
13
  };
@@ -80,7 +80,7 @@
80
80
  "@types/node": "^22.19.17",
81
81
  "@vitejs/plugin-vue": "^6.0.7",
82
82
  "concurrently": "^10.0.4",
83
- "quasar-app-extension-zova": "^1.3.1",
83
+ "quasar-app-extension-zova": "^1.3.2",
84
84
  "sass": "^1.101.0",
85
85
  "typescript": "^5.9.3",
86
86
  "vite": "^8.0.14",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-cli",
3
- "version": "1.2.100",
3
+ "version": "1.2.101",
4
4
  "gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
5
5
  "description": "zova cli",
6
6
  "keywords": [
@@ -44,7 +44,7 @@
44
44
  "@cabloy/process-helper": "^3.1.8",
45
45
  "fs-extra": "^11.3.5",
46
46
  "semver": "^7.6.2",
47
- "zova-cli-set-front": "^1.2.98"
47
+ "zova-cli-set-front": "^1.2.99"
48
48
  },
49
49
  "devDependencies": {
50
50
  "clean-package": "^2.2.0",
@@ -1,9 +1,13 @@
1
1
  import type { ZovaOpenapiConfig } from 'zova-openapi';
2
2
 
3
3
  export default function (): ZovaOpenapiConfig {
4
+ const apiBaseURL = process.env.API_BASE_URL;
5
+ if (!apiBaseURL) {
6
+ throw new Error('Missing API_BASE_URL');
7
+ }
4
8
  return {
5
9
  default: {
6
- source: 'http://localhost:7102/swagger/json?version=V31',
10
+ source: `${apiBaseURL.replace(/\/$/, '')}/swagger/json?version=V31`,
7
11
  },
8
12
  modules: {},
9
13
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-cli-set-front",
3
- "version": "1.2.98",
3
+ "version": "1.2.99",
4
4
  "gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
5
5
  "description": "zova cli-set-front",
6
6
  "keywords": [
@@ -19,6 +19,8 @@ import path from 'node:path';
19
19
  import { rimraf } from 'rimraf';
20
20
  import ts from 'typescript';
21
21
 
22
+ import { loadZovaEnvs } from '../common/utils.ts';
23
+
22
24
  declare module '@cabloy/cli' {
23
25
  interface ICommandArgv {}
24
26
  }
@@ -49,6 +51,12 @@ export class CliOpenapiGenerate extends BeanCliBase {
49
51
  const { argv } = this.context;
50
52
  // super
51
53
  await super.execute();
54
+ // env
55
+ loadZovaEnvs(argv.projectPath, {
56
+ flavor: 'admin',
57
+ mode: 'development',
58
+ appMode: 'spa',
59
+ });
52
60
  // config file
53
61
  const configFile = path.join(argv.projectPath, 'openapi.config.ts');
54
62
  if (!fse.existsSync(configFile)) {
@@ -1,12 +1,12 @@
1
1
  import type { CmdOptions, NameMeta } from '@cabloy/cli';
2
- import type { IModuleInfo, ZovaConfigMeta } from '@cabloy/module-info';
2
+ import type { IModuleInfo } from '@cabloy/module-info';
3
3
 
4
4
  import { BeanCliBase } from '@cabloy/cli';
5
5
  import fs from 'node:fs';
6
6
  import path from 'node:path';
7
- import { createConfigUtils } from 'zova-vite';
8
7
 
9
8
  import { __ThisSetName__ } from '../this.ts';
9
+ import { loadZovaEnvs } from './utils.ts';
10
10
 
11
11
  declare module '@cabloy/cli' {
12
12
  interface ICommandArgv {
@@ -69,7 +69,11 @@ export class CliCreatePageBase extends BeanCliBase {
69
69
  }
70
70
 
71
71
  async logUrl(argv) {
72
- const env = await this.loadEnvs();
72
+ const env = loadZovaEnvs(argv.projectPath, {
73
+ flavor: 'admin',
74
+ mode: 'development',
75
+ appMode: 'spa',
76
+ });
73
77
  const host =
74
78
  !env.DEV_SERVER_HOSTNAME || env.DEV_SERVER_HOSTNAME === 'true'
75
79
  ? 'localhost'
@@ -79,25 +83,4 @@ export class CliCreatePageBase extends BeanCliBase {
79
83
  const message = `Page URL: ${url}`;
80
84
  await this.console.log(message);
81
85
  }
82
-
83
- async loadEnvs() {
84
- const configMeta: ZovaConfigMeta = {
85
- flavor: 'admin',
86
- mode: 'development',
87
- appMode: 'spa',
88
- };
89
- const configOptions = {
90
- appDir: process.cwd(),
91
- runtimeDir: '.zova',
92
- zovaManualChunk: {
93
- debug: false,
94
- vendors: [],
95
- },
96
- };
97
- // config utils
98
- const configUtils = createConfigUtils(configMeta, configOptions);
99
- // env
100
- const env = configUtils.loadEnvs();
101
- return env;
102
- }
103
86
  }
@@ -1,9 +1,10 @@
1
- import type { IModule } from '@cabloy/module-info';
1
+ import type { IModule, ZovaConfigMeta } from '@cabloy/module-info';
2
2
 
3
3
  import fse from 'fs-extra';
4
4
  import fs from 'node:fs';
5
5
  import path from 'node:path';
6
6
  import { pathToFileURL } from 'node:url';
7
+ import { createConfigUtils } from 'zova-vite';
7
8
 
8
9
  export function getControllerFileName(module: IModule, type: 'page' | 'component', beanName) {
9
10
  const controllerFile = path.join(module.root, `src/${type}/${beanName}/controller.ts`);
@@ -23,6 +24,14 @@ export function pathToHref(fileName: string): string {
23
24
  return pathToFileURL(fileName).href;
24
25
  }
25
26
 
27
+ export function loadZovaEnvs(appDir: string, configMeta: ZovaConfigMeta) {
28
+ const configUtils = createConfigUtils(configMeta, {
29
+ appDir,
30
+ runtimeDir: '.zova',
31
+ });
32
+ return configUtils.loadEnvs();
33
+ }
34
+
26
35
  export async function loadJSONFile(fileName: string) {
27
36
  const pkgContent = (await fse.readFile(fileName)).toString();
28
37
  return JSON.parse(pkgContent);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-jsx",
3
- "version": "1.1.79",
3
+ "version": "1.1.81",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "Zova JSX",
6
6
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  "@cabloy/word-utils": "^2.1.14",
51
51
  "typestyle": "^2.4.0",
52
52
  "vue": "^3.5.38",
53
- "zova-core": "^5.1.79"
53
+ "zova-core": "^5.1.81"
54
54
  },
55
55
  "devDependencies": {
56
56
  "clean-package": "^2.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova",
3
- "version": "5.1.142",
3
+ "version": "5.1.144",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A vue3 framework with ioc",
6
6
  "keywords": [
@@ -45,8 +45,8 @@
45
45
  "postpack": "clean-package restore"
46
46
  },
47
47
  "dependencies": {
48
- "zova-core": "^5.1.79",
49
- "zova-suite-a-zova": "^5.1.141"
48
+ "zova-core": "^5.1.81",
49
+ "zova-suite-a-zova": "^5.1.143"
50
50
  },
51
51
  "devDependencies": {
52
52
  "clean-package": "^2.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-core",
3
- "version": "5.1.79",
3
+ "version": "5.1.81",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A vue3 framework with ioc",
6
6
  "keywords": [
@@ -1,6 +1,7 @@
1
1
  import 'vue';
2
2
  import 'vue/jsx-runtime';
3
3
  import '@vue/runtime-dom';
4
+ import type { VNode } from '@vue/runtime-dom';
4
5
 
5
6
  declare module 'vue' {
6
7
  export interface ComponentCustomOptions {
@@ -45,6 +46,10 @@ declare module 'vue/jsx-runtime' {
45
46
  }
46
47
 
47
48
  declare module '@vue/runtime-dom' {
49
+ export interface HTMLAttributes {
50
+ onVnodeMounted?: (vnode: VNode) => void;
51
+ }
52
+
48
53
  export interface LabelHTMLAttributes {
49
54
  htmlFor?: string;
50
55
  }