storemw-core-api 1.0.143 → 1.0.145

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 (92) hide show
  1. package/dist/app.js +1 -0
  2. package/dist/app.js.map +1 -1
  3. package/dist/controllers/index.d.ts +2 -0
  4. package/dist/controllers/index.js +13 -2
  5. package/dist/controllers/index.js.map +1 -1
  6. package/dist/controllers/subscription/account/accountSubscribeController.d.ts +9 -0
  7. package/dist/controllers/subscription/account/accountSubscribeController.js +105 -0
  8. package/dist/controllers/subscription/account/accountSubscribeController.js.map +1 -0
  9. package/dist/controllers/subscription/plan/subscribePlanController.d.ts +11 -0
  10. package/dist/controllers/subscription/plan/subscribePlanController.js +167 -0
  11. package/dist/controllers/subscription/plan/subscribePlanController.js.map +1 -0
  12. package/dist/features/auth_token/authTokenRegister.d.ts +5 -0
  13. package/dist/features/auth_token/authTokenRegister.js +11 -0
  14. package/dist/features/auth_token/authTokenRegister.js.map +1 -0
  15. package/dist/features/auth_token/authTokenRegistry.d.ts +2 -0
  16. package/dist/features/auth_token/authTokenRegistry.js +16 -0
  17. package/dist/features/auth_token/authTokenRegistry.js.map +1 -0
  18. package/dist/features/auth_token/authTokenType.d.ts +5 -0
  19. package/dist/features/auth_token/authTokenType.js +3 -0
  20. package/dist/features/auth_token/authTokenType.js.map +1 -0
  21. package/dist/features/index.d.ts +3 -0
  22. package/dist/features/index.js +5 -1
  23. package/dist/features/index.js.map +1 -1
  24. package/dist/middlewares/route/index.d.ts +2 -0
  25. package/dist/middlewares/route/index.js +13 -2
  26. package/dist/middlewares/route/index.js.map +1 -1
  27. package/dist/middlewares/route/validateSubscriptionAccount.d.ts +5 -0
  28. package/dist/middlewares/route/validateSubscriptionAccount.js +20 -0
  29. package/dist/middlewares/route/validateSubscriptionAccount.js.map +1 -0
  30. package/dist/middlewares/route/validateSubscriptionPlan.d.ts +6 -0
  31. package/dist/middlewares/route/validateSubscriptionPlan.js +24 -0
  32. package/dist/middlewares/route/validateSubscriptionPlan.js.map +1 -0
  33. package/dist/models/index.d.ts +5 -1
  34. package/dist/models/index.js +8 -2
  35. package/dist/models/index.js.map +1 -1
  36. package/dist/models/subscription/account/AccountSubscribeModel.d.ts +257 -0
  37. package/dist/models/subscription/account/AccountSubscribeModel.js +13 -0
  38. package/dist/models/subscription/account/AccountSubscribeModel.js.map +1 -0
  39. package/dist/models/subscription/plan/SubscribePlanModel.d.ts +268 -0
  40. package/dist/models/subscription/plan/SubscribePlanModel.js +13 -0
  41. package/dist/models/subscription/plan/SubscribePlanModel.js.map +1 -0
  42. package/dist/routes/index.d.ts +1 -0
  43. package/dist/routes/index.js +3 -1
  44. package/dist/routes/index.js.map +1 -1
  45. package/dist/routes/subscription/subscriptionsAccountRoutes.d.ts +2 -0
  46. package/dist/routes/subscription/subscriptionsAccountRoutes.js +15 -0
  47. package/dist/routes/subscription/subscriptionsAccountRoutes.js.map +1 -0
  48. package/dist/routes/subscription/subscriptionsAccountsRoutes.d.ts +2 -0
  49. package/dist/routes/subscription/subscriptionsAccountsRoutes.js +11 -0
  50. package/dist/routes/subscription/subscriptionsAccountsRoutes.js.map +1 -0
  51. package/dist/routes/subscription/subscriptionsPlanRoutes.d.ts +2 -0
  52. package/dist/routes/subscription/subscriptionsPlanRoutes.js +15 -0
  53. package/dist/routes/subscription/subscriptionsPlanRoutes.js.map +1 -0
  54. package/dist/routes/subscription/subscriptionsPlansRoutes.d.ts +2 -0
  55. package/dist/routes/subscription/subscriptionsPlansRoutes.js +13 -0
  56. package/dist/routes/subscription/subscriptionsPlansRoutes.js.map +1 -0
  57. package/dist/routes/subscription/subscriptionsRoutes.d.ts +2 -0
  58. package/dist/routes/subscription/subscriptionsRoutes.js +17 -0
  59. package/dist/routes/subscription/subscriptionsRoutes.js.map +1 -0
  60. package/dist/schema/middleware/route/index.d.ts +4 -0
  61. package/dist/schema/middleware/route/index.js +5 -1
  62. package/dist/schema/middleware/route/index.js.map +1 -1
  63. package/dist/schema/middleware/route/schemaSubscriptionAccount.d.ts +4 -0
  64. package/dist/schema/middleware/route/schemaSubscriptionAccount.js +10 -0
  65. package/dist/schema/middleware/route/schemaSubscriptionAccount.js.map +1 -0
  66. package/dist/schema/middleware/route/schemaSubscriptionPlan.d.ts +4 -0
  67. package/dist/schema/middleware/route/schemaSubscriptionPlan.js +10 -0
  68. package/dist/schema/middleware/route/schemaSubscriptionPlan.js.map +1 -0
  69. package/dist/schema/payload/index.d.ts +4 -0
  70. package/dist/schema/payload/index.js +9 -2
  71. package/dist/schema/payload/index.js.map +1 -1
  72. package/dist/schema/payload/subscription/schemaAccountSubscribe.d.ts +126 -0
  73. package/dist/schema/payload/subscription/schemaAccountSubscribe.js +31 -0
  74. package/dist/schema/payload/subscription/schemaAccountSubscribe.js.map +1 -0
  75. package/dist/schema/payload/subscription/schemaSubscribePlan.d.ts +276 -0
  76. package/dist/schema/payload/subscription/schemaSubscribePlan.js +42 -0
  77. package/dist/schema/payload/subscription/schemaSubscribePlan.js.map +1 -0
  78. package/dist/services/auth/AuthService.d.ts +8 -7
  79. package/dist/services/auth/AuthService.js +6 -1
  80. package/dist/services/auth/AuthService.js.map +1 -1
  81. package/dist/services/index.d.ts +6 -2
  82. package/dist/services/index.js +7 -1
  83. package/dist/services/index.js.map +1 -1
  84. package/dist/services/others/NumberDateSequenceService.d.ts +1 -1
  85. package/dist/services/subscription/account/AccountSubscribeService.d.ts +43 -0
  86. package/dist/services/subscription/account/AccountSubscribeService.js +214 -0
  87. package/dist/services/subscription/account/AccountSubscribeService.js.map +1 -0
  88. package/dist/services/subscription/plan/SubscribePlanService.d.ts +65 -0
  89. package/dist/services/subscription/plan/SubscribePlanService.js +178 -0
  90. package/dist/services/subscription/plan/SubscribePlanService.js.map +1 -0
  91. package/package.json +11 -11
  92. package/prisma/schema.prisma +41 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.schemaDocumentTripOrderCreatePayload = exports.schemaDocumentCashSalesUpdatePayload = exports.schemaDocumentCashSalesCreatePayload = exports.schemaDocumentReplacementDeliveryOrderUpdatePayload = exports.schemaDocumentReplacementDeliveryOrderCreatePayload = exports.schemaDocumentDeliveryOrderUpdatePayload = exports.schemaDocumentDeliveryOrderCreatePayload = exports.schemaDocumentProformaSalesUpdatePayload = exports.schemaDocumentProformaSalesCreatePayload = exports.schemaDocumentSalesOrderUpdatePayload = exports.schemaDocumentSalesOrderCreatePayload = exports.eNumDocumentTypes = exports.schemaDocumentDeletePayload = exports.schemaFileDeletePayload = exports.schemaFileUploadPayload = exports.schemaUserAgentUpdatePayload = exports.schemaUserAgentCreatePayload = exports.schemaUserMemberUpdatePayload = exports.schemaUserMemberCreatePayload = exports.schemaUserDriverUpdatePayload = exports.schemaUserDriverCreatePayload = exports.schemaUserWorkerUpdatePayload = exports.schemaUserWorkerCreatePayload = exports.schemaUserAdministratorUpdatePayload = exports.schemaUserAdministratorCreatePayload = exports.schemaUserRetailerUpdatePayload = exports.schemaUserRetailerCreatePayload = exports.schemaUserCustomerUpdatePayload = exports.schemaUserCustomerCreatePayload = exports.schemaUserOperatorUpdatePayload = exports.schemaUserOperatorCreatePayload = exports.schemaUserMeUpdatePayload = exports.schemaUserMeChangePasswordPayload = exports.schemaUserCredential = exports.schemaUserDeletePayload = exports.schemaBusinessDeletePayload = exports.schemaBusinessUpdatePayload = exports.schemaBusiness = exports.schemaBusinessCreatePayload = exports.schemaAccountDeletePayload = exports.schemaAccountUpdatePayload = exports.schemaAccountCreatePayload = exports.schemaResetPasswordPerformPayload = exports.schemaResetPasswordValidateCodePayload = exports.schemaResetPasswordRequestPayload = exports.schemaAccessKeyRevokePayload = exports.schemaAccessKeyCreatePayload = exports.schemaAuthTokenOperatorPayload = exports.schemaAuthTokenOptionalAccountPayload = exports.schemaAuthTokenPayload = void 0;
4
- exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaRegionAreaUpdatePayload = exports.schemaRegionAreaDeletePayload = exports.schemaRegionAreaCreatePayload = exports.schemaRegionStateUpdatePayload = exports.schemaRegionStateDeletePayload = exports.schemaRegionStateCreatePayload = exports.schemaRegionCountryDeletePayload = exports.schemaRegionCountryUpdatePayload = exports.schemaRegionCountryCreatePayload = exports.schemaInjectionFieldDeletePayload = exports.schemaInjectionFieldCreatePayload = exports.schemaInjectionFieldReplacePayload = exports.schemaSlot = exports.schemaLocationSlotDeletePayload = exports.schemaLocationSlotUpdatePayload = exports.schemaLocationSlotCreatePayload = exports.schemaLocationRackDeletePayload = exports.schemaLocationRackUpdatePayload = exports.schemaLocationRackCreatePayload = exports.schemaLocationLocationDeletePayload = exports.schemaLocationLocationUpdatePayload = exports.schemaLocationLocationCreatePayload = exports.schemaItemUomUpdatePayload = exports.schemaItemUomCreatePayload = exports.schemaItemBrandUpdatePayload = exports.schemaItemBrandCreatePayload = exports.schemaItemCategoryUpdatePayload = exports.schemaItemCategoryCreatePayload = exports.schemaItemItem = exports.schemaItemItemUpdatePayload = exports.schemaItemItemCreatePayload = exports.schemaItemProductUpdatePayload = exports.schemaItemProductCreatePayload = exports.schemaItemDeletePayload = exports.schemaDocumentTripOrderUpdatePayload = void 0;
3
+ exports.schemaDocumentDeliveryOrderUpdatePayload = exports.schemaDocumentDeliveryOrderCreatePayload = exports.schemaDocumentProformaSalesUpdatePayload = exports.schemaDocumentProformaSalesCreatePayload = exports.schemaDocumentSalesOrderUpdatePayload = exports.schemaDocumentSalesOrderCreatePayload = exports.eNumDocumentTypes = exports.schemaDocumentDeletePayload = exports.schemaFileDeletePayload = exports.schemaFileUploadPayload = exports.schemaUserAgentUpdatePayload = exports.schemaUserAgentCreatePayload = exports.schemaUserMemberUpdatePayload = exports.schemaUserMemberCreatePayload = exports.schemaUserDriverUpdatePayload = exports.schemaUserDriverCreatePayload = exports.schemaUserWorkerUpdatePayload = exports.schemaUserWorkerCreatePayload = exports.schemaUserAdministratorUpdatePayload = exports.schemaUserAdministratorCreatePayload = exports.schemaUserRetailerUpdatePayload = exports.schemaUserRetailerCreatePayload = exports.schemaUserCustomerUpdatePayload = exports.schemaUserCustomerCreatePayload = exports.schemaUserOperatorUpdatePayload = exports.schemaUserOperatorCreatePayload = exports.schemaUserMeUpdatePayload = exports.schemaUserMeChangePasswordPayload = exports.schemaUserCredential = exports.schemaUserDeletePayload = exports.schemaAccountSubscribeCancelPayload = exports.schemaAccountSubscribeCreatePayload = exports.schemaSubscribePlanDeletePayload = exports.schemaSubscribePlanUpdatePayload = exports.schemaSubscribePlanCreatePayload = exports.schemaBusinessDeletePayload = exports.schemaBusinessUpdatePayload = exports.schemaBusiness = exports.schemaBusinessCreatePayload = exports.schemaAccountDeletePayload = exports.schemaAccountUpdatePayload = exports.schemaAccountCreatePayload = exports.schemaResetPasswordPerformPayload = exports.schemaResetPasswordValidateCodePayload = exports.schemaResetPasswordRequestPayload = exports.schemaAccessKeyRevokePayload = exports.schemaAccessKeyCreatePayload = exports.schemaAuthTokenOperatorPayload = exports.schemaAuthTokenOptionalAccountPayload = exports.schemaAuthTokenPayload = void 0;
4
+ exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaRegionAreaUpdatePayload = exports.schemaRegionAreaDeletePayload = exports.schemaRegionAreaCreatePayload = exports.schemaRegionStateUpdatePayload = exports.schemaRegionStateDeletePayload = exports.schemaRegionStateCreatePayload = exports.schemaRegionCountryDeletePayload = exports.schemaRegionCountryUpdatePayload = exports.schemaRegionCountryCreatePayload = exports.schemaInjectionFieldDeletePayload = exports.schemaInjectionFieldCreatePayload = exports.schemaInjectionFieldReplacePayload = exports.schemaSlot = exports.schemaLocationSlotDeletePayload = exports.schemaLocationSlotUpdatePayload = exports.schemaLocationSlotCreatePayload = exports.schemaLocationRackDeletePayload = exports.schemaLocationRackUpdatePayload = exports.schemaLocationRackCreatePayload = exports.schemaLocationLocationDeletePayload = exports.schemaLocationLocationUpdatePayload = exports.schemaLocationLocationCreatePayload = exports.schemaItemUomUpdatePayload = exports.schemaItemUomCreatePayload = exports.schemaItemBrandUpdatePayload = exports.schemaItemBrandCreatePayload = exports.schemaItemCategoryUpdatePayload = exports.schemaItemCategoryCreatePayload = exports.schemaItemItem = exports.schemaItemItemUpdatePayload = exports.schemaItemItemCreatePayload = exports.schemaItemProductUpdatePayload = exports.schemaItemProductCreatePayload = exports.schemaItemDeletePayload = exports.schemaDocumentTripOrderUpdatePayload = exports.schemaDocumentTripOrderCreatePayload = exports.schemaDocumentCashSalesUpdatePayload = exports.schemaDocumentCashSalesCreatePayload = exports.schemaDocumentReplacementDeliveryOrderUpdatePayload = exports.schemaDocumentReplacementDeliveryOrderCreatePayload = void 0;
5
5
  var schemaAuthToken_1 = require("./auth/schemaAuthToken");
6
6
  Object.defineProperty(exports, "schemaAuthTokenPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenPayload; } });
7
7
  Object.defineProperty(exports, "schemaAuthTokenOptionalAccountPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenOptionalAccountPayload; } });
@@ -22,6 +22,13 @@ Object.defineProperty(exports, "schemaBusinessCreatePayload", { enumerable: true
22
22
  Object.defineProperty(exports, "schemaBusiness", { enumerable: true, get: function () { return schemaBusiness_1.schemaBusiness; } });
23
23
  Object.defineProperty(exports, "schemaBusinessUpdatePayload", { enumerable: true, get: function () { return schemaBusiness_1.schemaBusinessUpdatePayload; } });
24
24
  Object.defineProperty(exports, "schemaBusinessDeletePayload", { enumerable: true, get: function () { return schemaBusiness_1.schemaBusinessDeletePayload; } });
25
+ var schemaSubscribePlan_1 = require("./subscription/schemaSubscribePlan");
26
+ Object.defineProperty(exports, "schemaSubscribePlanCreatePayload", { enumerable: true, get: function () { return schemaSubscribePlan_1.schemaSubscribePlanCreatePayload; } });
27
+ Object.defineProperty(exports, "schemaSubscribePlanUpdatePayload", { enumerable: true, get: function () { return schemaSubscribePlan_1.schemaSubscribePlanUpdatePayload; } });
28
+ Object.defineProperty(exports, "schemaSubscribePlanDeletePayload", { enumerable: true, get: function () { return schemaSubscribePlan_1.schemaSubscribePlanDeletePayload; } });
29
+ var schemaAccountSubscribe_1 = require("./subscription/schemaAccountSubscribe");
30
+ Object.defineProperty(exports, "schemaAccountSubscribeCreatePayload", { enumerable: true, get: function () { return schemaAccountSubscribe_1.schemaAccountSubscribeCreatePayload; } });
31
+ Object.defineProperty(exports, "schemaAccountSubscribeCancelPayload", { enumerable: true, get: function () { return schemaAccountSubscribe_1.schemaAccountSubscribeCancelPayload; } });
25
32
  var schemaUser_1 = require("./user/schemaUser");
26
33
  Object.defineProperty(exports, "schemaUserDeletePayload", { enumerable: true, get: function () { return schemaUser_1.schemaUserDeletePayload; } });
27
34
  Object.defineProperty(exports, "schemaUserCredential", { enumerable: true, get: function () { return schemaUser_1.schemaUserCredential; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/payload/index.ts"],"names":[],"mappings":";;;;AAAA,0DAAuI;AAA9H,yHAAA,sBAAsB,OAAA;AAAE,wIAAA,qCAAqC,OAAA;AAAE,iIAAA,8BAA8B,OAAA;AAGtG,gEAA0G;AAAjG,+HAAA,4BAA4B,OAAA;AAAE,+HAAA,4BAA4B,OAAA;AAGnE,4EAAoK;AAA3J,wIAAA,iCAAiC,OAAA;AAAE,6IAAA,sCAAsC,OAAA;AAAE,wIAAA,iCAAiC,OAAA;AAGrH,yDAA6H;AAApH,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAG3F,4DAAkJ;AAAzI,6HAAA,2BAA2B,OAAA;AAAE,gHAAA,cAAc,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAG9G,gDAAkF;AAAzE,qHAAA,uBAAuB,OAAA;AAAE,kHAAA,oBAAoB,OAAA;AAEtD,oDAAmG;AAA1F,iIAAA,iCAAiC,OAAA;AA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okenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from \"./auth/schemaAuthToken\";\nexport type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from \"./auth/schemaAuthToken\";\n\nexport { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from \"./access_key/schemaAccessKey\";\nexport type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from \"./access_key/schemaAccessKey\";\n\nexport { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from \"./reset_password/schemaResetPassword\";\nexport type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from \"./reset_password/schemaResetPassword\";\n\nexport { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from \"./account/schemaAccount\";\nexport type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from \"./account/schemaAccount\";\n\nexport { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from \"./business/schemaBusiness\";\nexport type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from \"./business/schemaBusiness\";\n\nexport { schemaUserDeletePayload, schemaUserCredential } from \"./user/schemaUser\";\nexport type { SchemaUserDeletePayload } from \"./user/schemaUser\";\nexport { schemaUserMeChangePasswordPayload, schemaUserMeUpdatePayload } from \"./user/schemaUserMe\";\nexport type { SchemaUserMeChangePasswordPayload, SchemaUserMeUpdatePayload } from \"./user/schemaUserMe\";\nexport { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from \"./user/schemaUserOperator\";\nexport type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from \"./user/schemaUserOperator\";\nexport { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from \"./user/schemaUserCustomer\";\nexport type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from \"./user/schemaUserCustomer\";\nexport { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from \"./user/schemaUserRetailer\";\nexport type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from \"./user/schemaUserRetailer\";\nexport { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from \"./user/schemaUserAdministrator\";\nexport type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from \"./user/schemaUserAdministrator\";\nexport { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from \"./user/schemaUserWorker\";\nexport type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from \"./user/schemaUserWorker\";\nexport { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from \"./user/schemaUserDriver\";\nexport type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from \"./user/schemaUserDriver\";\nexport { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from \"./user/schemaUserMember\";\nexport type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from \"./user/schemaUserMember\";\nexport { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from \"./user/schemaUserAgent\";\nexport type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from \"./user/schemaUserAgent\";\n\nexport { schemaFileUploadPayload, schemaFileDeletePayload } from \"./file/schemaFile\";\nexport type { SchemaFileUploadPayload, SchemaFileDeletePayload } from \"./file/schemaFile\";\n\nexport { schemaDocumentDeletePayload, eNumDocumentTypes } from \"./document/schemaDocument\";\nexport type { SchemaDocumentDeletePayload } from \"./document/schemaDocument\";\nexport { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from \"./document/schemaDocumentSalesOrder\";\nexport type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from \"./document/schemaDocumentSalesOrder\";\nexport { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from \"./document/schemaDocumentProformaSales\";\nexport type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from \"./document/schemaDocumentProformaSales\";\nexport { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from \"./document/schemaDocumentDeliveryOrder\";\nexport type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from \"./document/schemaDocumentDeliveryOrder\";\nexport { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from \"./document/schemaDocumentReplacementDeliveryOrder\";\nexport type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from \"./document/schemaDocumentReplacementDeliveryOrder\";\nexport { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from \"./document/schemaDocumentCashSales\";\nexport type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from \"./document/schemaDocumentCashSales\";\nexport { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from \"./document/schemaDocumentTripOrder\";\nexport type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from \"./document/schemaDocumentTripOrder\";\n\nexport { schemaItemDeletePayload } from \"./item/schemaItem\";\nexport type { SchemaItemDeletePayload } from \"./item/schemaItem\";\nexport { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from \"./item/schemaItemProduct\";\nexport type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from \"./item/schemaItemProduct\";\nexport { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from \"./item/schemaItemItem\";\nexport type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from \"./item/schemaItemItem\";\nexport { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from \"./item/schemaItemCategory\";\nexport type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from \"./item/schemaItemCategory\";\nexport { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from \"./item/schemaItemBrand\";\nexport type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from \"./item/schemaItemBrand\";\nexport { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from \"./item/schemaItemUom\";\nexport type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from \"./item/schemaItemUom\";\n\nexport { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from \"./location/schemaLocationLocation\";\nexport type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from \"./location/schemaLocationLocation\";\nexport { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from \"./location/schemaLocationRack\";\nexport type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from \"./location/schemaLocationRack\";\nexport { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from \"./location/schemaLocationSlot\";\nexport type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from \"./location/schemaLocationSlot\";\n\nexport { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from \"./injection_field/schemaInjectionField\";\nexport type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from \"./injection_field/schemaInjectionField\";\n\nexport { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from \"./region/schemaRegionCountry\";\nexport type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from \"./region/schemaRegionCountry\";\nexport { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from \"./region/schemaRegionState\";\nexport type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from \"./region/schemaRegionState\";\nexport { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from \"./region/schemaRegionArea\";\nexport type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from \"./region/schemaRegionArea\";\n\n// export { schemaChangePasswordUtilPayload } from \"./utils/unuse/schemaChangePasswordUtil\";\n// export type { SchemaChangePasswordUtilPayload } from \"./utils/unuse/schemaChangePasswordUtil\";\nexport { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from \"./utils/schemaAccessKeyUtil\";\nexport type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from \"./utils/schemaAccessKeyUtil\";"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/payload/index.ts"],"names":[],"mappings":";;;;AAAA,0DAAuI;AAA9H,yHAAA,sBAAsB,OAAA;AAAE,wIAAA,qCAAqC,OAAA;AAAE,iIAAA,8BAA8B,OAAA;AAGtG,gEAA0G;AAAjG,+HAAA,4BAA4B,OAAA;AAAE,+HAAA,4BAA4B,OAAA;AAGnE,4EAAoK;AAA3J,wIAAA,iCAAiC,OAAA;AAAE,6IAAA,sCAAsC,OAAA;AAAE,wIAAA,iCAAiC,OAAA;AAGrH,yDAA6H;AAApH,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAAE,2HAAA,0BAA0B,OAAA;AAG3F,4DAAkJ;AAAzI,6HAAA,2BAA2B,OAAA;AAAE,gHAAA,cAAc,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAAE,6HAAA,2BAA2B,OAAA;AAG9G,0EAA0J;AAAjJ,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCA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B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAGpG,4FAA4F;AAC5F,iGAAiG;AACjG,mEAAyH;AAAhH,yIAAA,kCAAkC,OAAA;AAAE,6IAAA,sCAAsC,OAAA","sourcesContent":["export { schemaAuthTokenPayload, schemaAuthTokenOptionalAccountPayload, schemaAuthTokenOperatorPayload } from \"./auth/schemaAuthToken\";\nexport type { SchemaAuthTokenPayload, SchemaAuthTokenOptionalAccountPayload, SchemaAuthTokenOperatorPayload } from \"./auth/schemaAuthToken\";\n\nexport { schemaAccessKeyCreatePayload, schemaAccessKeyRevokePayload } from \"./access_key/schemaAccessKey\";\nexport type { SchemaAccessKeyCreatePayload, SchemaAccessKeyRevokePayload } from \"./access_key/schemaAccessKey\";\n\nexport { schemaResetPasswordRequestPayload, schemaResetPasswordValidateCodePayload, schemaResetPasswordPerformPayload } from \"./reset_password/schemaResetPassword\";\nexport type { SchemaResetPasswordRequestPayload, SchemaResetPasswordValidateCodePayload, SchemaResetPasswordPerformPayload } from \"./reset_password/schemaResetPassword\";\n\nexport { schemaAccountCreatePayload, schemaAccountUpdatePayload, schemaAccountDeletePayload } from \"./account/schemaAccount\";\nexport type { SchemaAccountCreatePayload, SchemaAccountUpdatePayload, SchemaAccountDeletePayload } from \"./account/schemaAccount\";\n\nexport { schemaBusinessCreatePayload, schemaBusiness, schemaBusinessUpdatePayload, schemaBusinessDeletePayload } from \"./business/schemaBusiness\";\nexport type { SchemaBusinessCreatePayload, SchemaBusinessUpdatePayload, SchemaBusinessDeletePayload } from \"./business/schemaBusiness\";\n\nexport { schemaSubscribePlanCreatePayload, schemaSubscribePlanUpdatePayload, schemaSubscribePlanDeletePayload } from \"./subscription/schemaSubscribePlan\";\nexport type { SchemaSubscribePlanCreatePayload, SchemaSubscribePlanUpdatePayload, SchemaSubscribePlanDeletePayload } from \"./subscription/schemaSubscribePlan\";\nexport { schemaAccountSubscribeCreatePayload, schemaAccountSubscribeCancelPayload } from \"./subscription/schemaAccountSubscribe\";\nexport type { SchemaAccountSubscribeCreatePayload, SchemaAccountSubscribeCancelPayload } from \"./subscription/schemaAccountSubscribe\";\n\nexport { schemaUserDeletePayload, schemaUserCredential } from \"./user/schemaUser\";\nexport type { SchemaUserDeletePayload } from \"./user/schemaUser\";\nexport { schemaUserMeChangePasswordPayload, schemaUserMeUpdatePayload } from \"./user/schemaUserMe\";\nexport type { SchemaUserMeChangePasswordPayload, SchemaUserMeUpdatePayload } from \"./user/schemaUserMe\";\nexport { schemaUserOperatorCreatePayload, schemaUserOperatorUpdatePayload } from \"./user/schemaUserOperator\";\nexport type { SchemaUserOperatorCreatePayload, SchemaUserOperatorUpdatePayload } from \"./user/schemaUserOperator\";\nexport { schemaUserCustomerCreatePayload, schemaUserCustomerUpdatePayload } from \"./user/schemaUserCustomer\";\nexport type { SchemaUserCustomerCreatePayload, SchemaUserCustomerUpdatePayload } from \"./user/schemaUserCustomer\";\nexport { schemaUserRetailerCreatePayload, schemaUserRetailerUpdatePayload } from \"./user/schemaUserRetailer\";\nexport type { SchemaUserRetailerCreatePayload, SchemaUserRetailerUpdatePayload } from \"./user/schemaUserRetailer\";\nexport { schemaUserAdministratorCreatePayload, schemaUserAdministratorUpdatePayload } from \"./user/schemaUserAdministrator\";\nexport type { SchemaUserAdministratorCreatePayload, SchemaUserAdministratorUpdatePayload } from \"./user/schemaUserAdministrator\";\nexport { schemaUserWorkerCreatePayload, schemaUserWorkerUpdatePayload } from \"./user/schemaUserWorker\";\nexport type { SchemaUserWorkerCreatePayload, SchemaUserWorkerUpdatePayload } from \"./user/schemaUserWorker\";\nexport { schemaUserDriverCreatePayload, schemaUserDriverUpdatePayload } from \"./user/schemaUserDriver\";\nexport type { SchemaUserDriverCreatePayload, SchemaUserDriverUpdatePayload } from \"./user/schemaUserDriver\";\nexport { schemaUserMemberCreatePayload, schemaUserMemberUpdatePayload } from \"./user/schemaUserMember\";\nexport type { SchemaUserMemberCreatePayload, SchemaUserMemberUpdatePayload } from \"./user/schemaUserMember\";\nexport { schemaUserAgentCreatePayload, schemaUserAgentUpdatePayload } from \"./user/schemaUserAgent\";\nexport type { SchemaUserAgentCreatePayload, SchemaUserAgentUpdatePayload } from \"./user/schemaUserAgent\";\n\nexport { schemaFileUploadPayload, schemaFileDeletePayload } from \"./file/schemaFile\";\nexport type { SchemaFileUploadPayload, SchemaFileDeletePayload } from \"./file/schemaFile\";\n\nexport { schemaDocumentDeletePayload, eNumDocumentTypes } from \"./document/schemaDocument\";\nexport type { SchemaDocumentDeletePayload } from \"./document/schemaDocument\";\nexport { schemaDocumentSalesOrderCreatePayload, schemaDocumentSalesOrderUpdatePayload } from \"./document/schemaDocumentSalesOrder\";\nexport type { SchemaDocumentSalesOrderCreatePayload, SchemaDocumentSalesOrderUpdatePayload } from \"./document/schemaDocumentSalesOrder\";\nexport { schemaDocumentProformaSalesCreatePayload, schemaDocumentProformaSalesUpdatePayload } from \"./document/schemaDocumentProformaSales\";\nexport type { SchemaDocumentProformaSalesCreatePayload, SchemaDocumentProformaSalesUpdatePayload } from \"./document/schemaDocumentProformaSales\";\nexport { schemaDocumentDeliveryOrderCreatePayload, schemaDocumentDeliveryOrderUpdatePayload } from \"./document/schemaDocumentDeliveryOrder\";\nexport type { SchemaDocumentDeliveryOrderCreatePayload, SchemaDocumentDeliveryOrderUpdatePayload } from \"./document/schemaDocumentDeliveryOrder\";\nexport { schemaDocumentReplacementDeliveryOrderCreatePayload, schemaDocumentReplacementDeliveryOrderUpdatePayload } from \"./document/schemaDocumentReplacementDeliveryOrder\";\nexport type { SchemaDocumentReplacementDeliveryOrderCreatePayload, SchemaDocumentReplacementDeliveryOrderUpdatePayload } from \"./document/schemaDocumentReplacementDeliveryOrder\";\nexport { schemaDocumentCashSalesCreatePayload, schemaDocumentCashSalesUpdatePayload } from \"./document/schemaDocumentCashSales\";\nexport type { SchemaDocumentCashSalesCreatePayload, SchemaDocumentCashSalesUpdatePayload } from \"./document/schemaDocumentCashSales\";\nexport { schemaDocumentTripOrderCreatePayload, schemaDocumentTripOrderUpdatePayload } from \"./document/schemaDocumentTripOrder\";\nexport type { SchemaDocumentTripOrderCreatePayload, SchemaDocumentTripOrderUpdatePayload } from \"./document/schemaDocumentTripOrder\";\n\nexport { schemaItemDeletePayload } from \"./item/schemaItem\";\nexport type { SchemaItemDeletePayload } from \"./item/schemaItem\";\nexport { schemaItemProductCreatePayload, schemaItemProductUpdatePayload } from \"./item/schemaItemProduct\";\nexport type { SchemaItemProductCreatePayload, SchemaItemProductUpdatePayload } from \"./item/schemaItemProduct\";\nexport { schemaItemItemCreatePayload, schemaItemItemUpdatePayload, schemaItemItem } from \"./item/schemaItemItem\";\nexport type { SchemaItemItemCreatePayload, SchemaItemItemUpdatePayload } from \"./item/schemaItemItem\";\nexport { schemaItemCategoryCreatePayload, schemaItemCategoryUpdatePayload } from \"./item/schemaItemCategory\";\nexport type { SchemaItemCategoryCreatePayload, SchemaItemCategoryUpdatePayload } from \"./item/schemaItemCategory\";\nexport { schemaItemBrandCreatePayload, schemaItemBrandUpdatePayload } from \"./item/schemaItemBrand\";\nexport type { SchemaItemBrandCreatePayload, SchemaItemBrandUpdatePayload } from \"./item/schemaItemBrand\";\nexport { schemaItemUomCreatePayload, schemaItemUomUpdatePayload } from \"./item/schemaItemUom\";\nexport type { SchemaItemUomCreatePayload, SchemaItemUomUpdatePayload } from \"./item/schemaItemUom\";\n\nexport { schemaLocationLocationCreatePayload, schemaLocationLocationUpdatePayload, schemaLocationLocationDeletePayload, } from \"./location/schemaLocationLocation\";\nexport type { SchemaLocationLocationCreatePayload, SchemaLocationLocationUpdatePayload, SchemaLocationLocationDeletePayload } from \"./location/schemaLocationLocation\";\nexport { schemaLocationRackCreatePayload, schemaLocationRackUpdatePayload, schemaLocationRackDeletePayload, } from \"./location/schemaLocationRack\";\nexport type { SchemaLocationRackCreatePayload, SchemaLocationRackUpdatePayload, SchemaLocationRackDeletePayload } from \"./location/schemaLocationRack\";\nexport { schemaLocationSlotCreatePayload, schemaLocationSlotUpdatePayload, schemaLocationSlotDeletePayload, schemaSlot } from \"./location/schemaLocationSlot\";\nexport type { SchemaLocationSlotCreatePayload, SchemaLocationSlotUpdatePayload, SchemaLocationSlotDeletePayload } from \"./location/schemaLocationSlot\";\n\nexport { schemaInjectionFieldReplacePayload, schemaInjectionFieldCreatePayload, schemaInjectionFieldDeletePayload } from \"./injection_field/schemaInjectionField\";\nexport type { SchemaInjectionFieldReplacePayload, SchemaInjectionFieldCreatePayload, SchemaInjectionFieldDeletePayload } from \"./injection_field/schemaInjectionField\";\n\nexport { schemaRegionCountryCreatePayload, schemaRegionCountryUpdatePayload, schemaRegionCountryDeletePayload } from \"./region/schemaRegionCountry\";\nexport type { SchemaRegionCountryCreatePayload, SchemaRegionCountryDeletePayload } from \"./region/schemaRegionCountry\";\nexport { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaRegionStateUpdatePayload } from \"./region/schemaRegionState\";\nexport type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from \"./region/schemaRegionState\";\nexport { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from \"./region/schemaRegionArea\";\nexport type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from \"./region/schemaRegionArea\";\n\n// export { schemaChangePasswordUtilPayload } from \"./utils/unuse/schemaChangePasswordUtil\";\n// export type { SchemaChangePasswordUtilPayload } from \"./utils/unuse/schemaChangePasswordUtil\";\nexport { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from \"./utils/schemaAccessKeyUtil\";\nexport type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from \"./utils/schemaAccessKeyUtil\";"]}
@@ -0,0 +1,126 @@
1
+ import { z } from "zod";
2
+ export declare const schemePayloadScope: z.ZodObject<{
3
+ target: z.ZodLiteral<"account_subscription">;
4
+ action: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ target: "account_subscription";
7
+ action: string;
8
+ }, {
9
+ target: "account_subscription";
10
+ action: string;
11
+ }>;
12
+ export declare const schemaAccountSubscribe: z.ZodObject<{
13
+ accountId: z.ZodNumber;
14
+ subscribePlanId: z.ZodNumber;
15
+ subscriptionStartDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ accountId: number;
18
+ subscribePlanId: number;
19
+ subscriptionStartDate?: string | undefined;
20
+ }, {
21
+ accountId: number;
22
+ subscribePlanId: number;
23
+ subscriptionStartDate?: string | undefined;
24
+ }>;
25
+ /** Create */
26
+ export declare const schemaAccountSubscribeCreatePayload: z.ZodObject<{
27
+ scope: z.ZodObject<{
28
+ target: z.ZodLiteral<"account_subscription">;
29
+ action: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ target: "account_subscription";
32
+ action: string;
33
+ }, {
34
+ target: "account_subscription";
35
+ action: string;
36
+ }>;
37
+ payload: z.ZodObject<{
38
+ accountSubscription: z.ZodObject<{
39
+ accountId: z.ZodNumber;
40
+ subscribePlanId: z.ZodNumber;
41
+ subscriptionStartDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ accountId: number;
44
+ subscribePlanId: number;
45
+ subscriptionStartDate?: string | undefined;
46
+ }, {
47
+ accountId: number;
48
+ subscribePlanId: number;
49
+ subscriptionStartDate?: string | undefined;
50
+ }>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ accountSubscription: {
53
+ accountId: number;
54
+ subscribePlanId: number;
55
+ subscriptionStartDate?: string | undefined;
56
+ };
57
+ }, {
58
+ accountSubscription: {
59
+ accountId: number;
60
+ subscribePlanId: number;
61
+ subscriptionStartDate?: string | undefined;
62
+ };
63
+ }>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ scope: {
66
+ target: "account_subscription";
67
+ action: string;
68
+ };
69
+ payload: {
70
+ accountSubscription: {
71
+ accountId: number;
72
+ subscribePlanId: number;
73
+ subscriptionStartDate?: string | undefined;
74
+ };
75
+ };
76
+ }, {
77
+ scope: {
78
+ target: "account_subscription";
79
+ action: string;
80
+ };
81
+ payload: {
82
+ accountSubscription: {
83
+ accountId: number;
84
+ subscribePlanId: number;
85
+ subscriptionStartDate?: string | undefined;
86
+ };
87
+ };
88
+ }>;
89
+ export type SchemaAccountSubscribeCreatePayload = z.infer<typeof schemaAccountSubscribeCreatePayload>;
90
+ /** Cancel */
91
+ export declare const schemaAccountSubscribeCancelPayload: z.ZodObject<{
92
+ scope: z.ZodObject<{
93
+ target: z.ZodLiteral<"account_subscription">;
94
+ action: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ target: "account_subscription";
97
+ action: string;
98
+ }, {
99
+ target: "account_subscription";
100
+ action: string;
101
+ }>;
102
+ payload: z.ZodObject<{
103
+ id: z.ZodNumber;
104
+ }, "strip", z.ZodTypeAny, {
105
+ id: number;
106
+ }, {
107
+ id: number;
108
+ }>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ scope: {
111
+ target: "account_subscription";
112
+ action: string;
113
+ };
114
+ payload: {
115
+ id: number;
116
+ };
117
+ }, {
118
+ scope: {
119
+ target: "account_subscription";
120
+ action: string;
121
+ };
122
+ payload: {
123
+ id: number;
124
+ };
125
+ }>;
126
+ export type SchemaAccountSubscribeCancelPayload = z.infer<typeof schemaAccountSubscribeCancelPayload>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schemaAccountSubscribeCancelPayload = exports.schemaAccountSubscribeCreatePayload = exports.schemaAccountSubscribe = exports.schemePayloadScope = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.schemePayloadScope = zod_1.z.object({
6
+ target: zod_1.z.literal("account_subscription"),
7
+ action: zod_1.z.string(),
8
+ });
9
+ exports.schemaAccountSubscribe = zod_1.z.object({
10
+ accountId: zod_1.z.number().min(1),
11
+ subscribePlanId: zod_1.z.number().min(1),
12
+ subscriptionStartDate: zod_1.z
13
+ .string()
14
+ .refine((val) => !isNaN(new Date(val).getTime()), { message: "Invalid date string. Example of valid ISO date: '2026-03-10T00:00:00Z'" })
15
+ .optional(),
16
+ });
17
+ /** Create */
18
+ exports.schemaAccountSubscribeCreatePayload = zod_1.z.object({
19
+ scope: exports.schemePayloadScope,
20
+ payload: zod_1.z.object({
21
+ accountSubscription: exports.schemaAccountSubscribe
22
+ })
23
+ });
24
+ /** Cancel */
25
+ exports.schemaAccountSubscribeCancelPayload = zod_1.z.object({
26
+ scope: exports.schemePayloadScope,
27
+ payload: zod_1.z.object({
28
+ id: zod_1.z.number().min(1)
29
+ }),
30
+ });
31
+ //# sourceMappingURL=schemaAccountSubscribe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaAccountSubscribe.js","sourceRoot":"","sources":["../../../../src/schema/payload/subscription/schemaAccountSubscribe.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACzC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAClC,qBAAqB,EAAE,OAAC;SACnB,MAAM,EAAE;SACR,MAAM,CACH,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,EACxC,EAAE,OAAO,EAAE,wEAAwE,EAAE,CACxF;SACA,QAAQ,EAAE;CAClB,CAAC,CAAA;AAEF,aAAa;AACA,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,0BAAkB;IACzB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,mBAAmB,EAAE,8BAAsB;KAC9C,CAAC;CACL,CAAC,CAAC;AAIH,aAAa;AACA,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,0BAAkB;IACzB,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KACxB,CAAC;CACL,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { _, dayjs } from \"@/utils\";\n\nexport const schemePayloadScope = z.object({\n target: z.literal(\"account_subscription\"),\n action: z.string(),\n})\n\nexport const schemaAccountSubscribe = z.object({\n accountId: z.number().min(1),\n subscribePlanId: z.number().min(1),\n subscriptionStartDate: z\n .string()\n .refine(\n (val) => !isNaN(new Date(val).getTime()),\n { message: \"Invalid date string. Example of valid ISO date: '2026-03-10T00:00:00Z'\" }\n )\n .optional(),\n})\n\n/** Create */\nexport const schemaAccountSubscribeCreatePayload = z.object({\n scope: schemePayloadScope,\n payload: z.object({\n accountSubscription: schemaAccountSubscribe\n })\n});\n\nexport type SchemaAccountSubscribeCreatePayload = z.infer<typeof schemaAccountSubscribeCreatePayload>;\n\n/** Cancel */\nexport const schemaAccountSubscribeCancelPayload = z.object({\n scope: schemePayloadScope,\n payload: z.object({\n id: z.number().min(1)\n }),\n});\n\nexport type SchemaAccountSubscribeCancelPayload = z.infer<typeof schemaAccountSubscribeCancelPayload>;"]}
@@ -0,0 +1,276 @@
1
+ import { z } from "zod";
2
+ export declare const schemePayloadScope: z.ZodObject<{
3
+ target: z.ZodLiteral<"subscribe_plan">;
4
+ action: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ target: "subscribe_plan";
7
+ action: string;
8
+ }, {
9
+ target: "subscribe_plan";
10
+ action: string;
11
+ }>;
12
+ export declare const schemaSubscribePlan: z.ZodObject<{
13
+ name: z.ZodString;
14
+ shortDescription: z.ZodString;
15
+ fullDescription: z.ZodString;
16
+ price: z.ZodNumber;
17
+ billingCycle: z.ZodEnum<["monthly" | "yearly", ...("monthly" | "yearly")[]]>;
18
+ currency: z.ZodEnum<["myr" | "usd", ...("myr" | "usd")[]]>;
19
+ isSingleSubscription: z.ZodBoolean;
20
+ status: z.ZodBoolean;
21
+ }, "strip", z.ZodTypeAny, {
22
+ status: boolean;
23
+ name: string;
24
+ price: number;
25
+ currency: "myr" | "usd";
26
+ shortDescription: string;
27
+ fullDescription: string;
28
+ billingCycle: "monthly" | "yearly";
29
+ isSingleSubscription: boolean;
30
+ }, {
31
+ status: boolean;
32
+ name: string;
33
+ price: number;
34
+ currency: "myr" | "usd";
35
+ shortDescription: string;
36
+ fullDescription: string;
37
+ billingCycle: "monthly" | "yearly";
38
+ isSingleSubscription: boolean;
39
+ }>;
40
+ /** Create */
41
+ export declare const schemaSubscribePlanCreatePayload: z.ZodObject<{
42
+ scope: z.ZodObject<{
43
+ target: z.ZodLiteral<"subscribe_plan">;
44
+ action: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ target: "subscribe_plan";
47
+ action: string;
48
+ }, {
49
+ target: "subscribe_plan";
50
+ action: string;
51
+ }>;
52
+ payload: z.ZodObject<{
53
+ subscribePlan: z.ZodObject<{
54
+ name: z.ZodString;
55
+ shortDescription: z.ZodString;
56
+ fullDescription: z.ZodString;
57
+ price: z.ZodNumber;
58
+ billingCycle: z.ZodEnum<["monthly" | "yearly", ...("monthly" | "yearly")[]]>;
59
+ currency: z.ZodEnum<["myr" | "usd", ...("myr" | "usd")[]]>;
60
+ isSingleSubscription: z.ZodBoolean;
61
+ status: z.ZodBoolean;
62
+ }, "strip", z.ZodTypeAny, {
63
+ status: boolean;
64
+ name: string;
65
+ price: number;
66
+ currency: "myr" | "usd";
67
+ shortDescription: string;
68
+ fullDescription: string;
69
+ billingCycle: "monthly" | "yearly";
70
+ isSingleSubscription: boolean;
71
+ }, {
72
+ status: boolean;
73
+ name: string;
74
+ price: number;
75
+ currency: "myr" | "usd";
76
+ shortDescription: string;
77
+ fullDescription: string;
78
+ billingCycle: "monthly" | "yearly";
79
+ isSingleSubscription: boolean;
80
+ }>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ subscribePlan: {
83
+ status: boolean;
84
+ name: string;
85
+ price: number;
86
+ currency: "myr" | "usd";
87
+ shortDescription: string;
88
+ fullDescription: string;
89
+ billingCycle: "monthly" | "yearly";
90
+ isSingleSubscription: boolean;
91
+ };
92
+ }, {
93
+ subscribePlan: {
94
+ status: boolean;
95
+ name: string;
96
+ price: number;
97
+ currency: "myr" | "usd";
98
+ shortDescription: string;
99
+ fullDescription: string;
100
+ billingCycle: "monthly" | "yearly";
101
+ isSingleSubscription: boolean;
102
+ };
103
+ }>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ scope: {
106
+ target: "subscribe_plan";
107
+ action: string;
108
+ };
109
+ payload: {
110
+ subscribePlan: {
111
+ status: boolean;
112
+ name: string;
113
+ price: number;
114
+ currency: "myr" | "usd";
115
+ shortDescription: string;
116
+ fullDescription: string;
117
+ billingCycle: "monthly" | "yearly";
118
+ isSingleSubscription: boolean;
119
+ };
120
+ };
121
+ }, {
122
+ scope: {
123
+ target: "subscribe_plan";
124
+ action: string;
125
+ };
126
+ payload: {
127
+ subscribePlan: {
128
+ status: boolean;
129
+ name: string;
130
+ price: number;
131
+ currency: "myr" | "usd";
132
+ shortDescription: string;
133
+ fullDescription: string;
134
+ billingCycle: "monthly" | "yearly";
135
+ isSingleSubscription: boolean;
136
+ };
137
+ };
138
+ }>;
139
+ export type SchemaSubscribePlanCreatePayload = z.infer<typeof schemaSubscribePlanCreatePayload>;
140
+ /** Update */
141
+ export declare const schemaSubscribePlanUpdatePayload: z.ZodObject<{
142
+ scope: z.ZodObject<{
143
+ target: z.ZodLiteral<"subscribe_plan">;
144
+ action: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ target: "subscribe_plan";
147
+ action: string;
148
+ }, {
149
+ target: "subscribe_plan";
150
+ action: string;
151
+ }>;
152
+ payload: z.ZodObject<{
153
+ subscribePlan: z.ZodObject<{
154
+ name: z.ZodString;
155
+ shortDescription: z.ZodString;
156
+ fullDescription: z.ZodString;
157
+ price: z.ZodNumber;
158
+ billingCycle: z.ZodEnum<["monthly" | "yearly", ...("monthly" | "yearly")[]]>;
159
+ currency: z.ZodEnum<["myr" | "usd", ...("myr" | "usd")[]]>;
160
+ isSingleSubscription: z.ZodBoolean;
161
+ status: z.ZodBoolean;
162
+ }, "strip", z.ZodTypeAny, {
163
+ status: boolean;
164
+ name: string;
165
+ price: number;
166
+ currency: "myr" | "usd";
167
+ shortDescription: string;
168
+ fullDescription: string;
169
+ billingCycle: "monthly" | "yearly";
170
+ isSingleSubscription: boolean;
171
+ }, {
172
+ status: boolean;
173
+ name: string;
174
+ price: number;
175
+ currency: "myr" | "usd";
176
+ shortDescription: string;
177
+ fullDescription: string;
178
+ billingCycle: "monthly" | "yearly";
179
+ isSingleSubscription: boolean;
180
+ }>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ subscribePlan: {
183
+ status: boolean;
184
+ name: string;
185
+ price: number;
186
+ currency: "myr" | "usd";
187
+ shortDescription: string;
188
+ fullDescription: string;
189
+ billingCycle: "monthly" | "yearly";
190
+ isSingleSubscription: boolean;
191
+ };
192
+ }, {
193
+ subscribePlan: {
194
+ status: boolean;
195
+ name: string;
196
+ price: number;
197
+ currency: "myr" | "usd";
198
+ shortDescription: string;
199
+ fullDescription: string;
200
+ billingCycle: "monthly" | "yearly";
201
+ isSingleSubscription: boolean;
202
+ };
203
+ }>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ scope: {
206
+ target: "subscribe_plan";
207
+ action: string;
208
+ };
209
+ payload: {
210
+ subscribePlan: {
211
+ status: boolean;
212
+ name: string;
213
+ price: number;
214
+ currency: "myr" | "usd";
215
+ shortDescription: string;
216
+ fullDescription: string;
217
+ billingCycle: "monthly" | "yearly";
218
+ isSingleSubscription: boolean;
219
+ };
220
+ };
221
+ }, {
222
+ scope: {
223
+ target: "subscribe_plan";
224
+ action: string;
225
+ };
226
+ payload: {
227
+ subscribePlan: {
228
+ status: boolean;
229
+ name: string;
230
+ price: number;
231
+ currency: "myr" | "usd";
232
+ shortDescription: string;
233
+ fullDescription: string;
234
+ billingCycle: "monthly" | "yearly";
235
+ isSingleSubscription: boolean;
236
+ };
237
+ };
238
+ }>;
239
+ export type SchemaSubscribePlanUpdatePayload = z.infer<typeof schemaSubscribePlanUpdatePayload>;
240
+ /** Delete */
241
+ export declare const schemaSubscribePlanDeletePayload: z.ZodObject<{
242
+ scope: z.ZodObject<{
243
+ target: z.ZodLiteral<"subscribe_plan">;
244
+ action: z.ZodString;
245
+ }, "strip", z.ZodTypeAny, {
246
+ target: "subscribe_plan";
247
+ action: string;
248
+ }, {
249
+ target: "subscribe_plan";
250
+ action: string;
251
+ }>;
252
+ payload: z.ZodObject<{
253
+ ids: z.ZodArray<z.ZodNumber, "many">;
254
+ }, "strip", z.ZodTypeAny, {
255
+ ids: number[];
256
+ }, {
257
+ ids: number[];
258
+ }>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ scope: {
261
+ target: "subscribe_plan";
262
+ action: string;
263
+ };
264
+ payload: {
265
+ ids: number[];
266
+ };
267
+ }, {
268
+ scope: {
269
+ target: "subscribe_plan";
270
+ action: string;
271
+ };
272
+ payload: {
273
+ ids: number[];
274
+ };
275
+ }>;
276
+ export type SchemaSubscribePlanDeletePayload = z.infer<typeof schemaSubscribePlanDeletePayload>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schemaSubscribePlanDeletePayload = exports.schemaSubscribePlanUpdatePayload = exports.schemaSubscribePlanCreatePayload = exports.schemaSubscribePlan = exports.schemePayloadScope = void 0;
4
+ const zod_1 = require("zod");
5
+ const services_1 = require("../../../services");
6
+ const services_2 = require("../../../services");
7
+ exports.schemePayloadScope = zod_1.z.object({
8
+ target: zod_1.z.literal("subscribe_plan"),
9
+ action: zod_1.z.string(),
10
+ });
11
+ exports.schemaSubscribePlan = zod_1.z.object({
12
+ name: zod_1.z.string(),
13
+ shortDescription: zod_1.z.string(),
14
+ fullDescription: zod_1.z.string(),
15
+ price: zod_1.z.number(),
16
+ billingCycle: zod_1.z.enum(Object.values(services_1.subscribePlanBillingCycles)),
17
+ currency: zod_1.z.enum(Object.values(services_2.subscribeCurrencies)),
18
+ isSingleSubscription: zod_1.z.boolean(),
19
+ status: zod_1.z.boolean(),
20
+ });
21
+ /** Create */
22
+ exports.schemaSubscribePlanCreatePayload = zod_1.z.object({
23
+ scope: exports.schemePayloadScope,
24
+ payload: zod_1.z.object({
25
+ subscribePlan: exports.schemaSubscribePlan
26
+ })
27
+ });
28
+ /** Update */
29
+ exports.schemaSubscribePlanUpdatePayload = zod_1.z.object({
30
+ scope: exports.schemePayloadScope,
31
+ payload: zod_1.z.object({
32
+ subscribePlan: exports.schemaSubscribePlan
33
+ })
34
+ });
35
+ /** Delete */
36
+ exports.schemaSubscribePlanDeletePayload = zod_1.z.object({
37
+ scope: exports.schemePayloadScope,
38
+ payload: zod_1.z.object({
39
+ ids: zod_1.z.array(zod_1.z.number()).min(1, "ids must contain at least one number"),
40
+ }),
41
+ });
42
+ //# sourceMappingURL=schemaSubscribePlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaSubscribePlan.js","sourceRoot":"","sources":["../../../../src/schema/payload/subscription/schemaSubscribePlan.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAIxB,yCAAkF;AAClF,yCAAuE;AAE1D,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACnC,MA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port { _, dayjs } from \"@/utils\";\n\nimport { subscribePlanBillingCycles, SubscribePlanBillingCycle } from \"@/services\"\nimport { subscribeCurrencies, SubscribePlanCurrency } from \"@/services\"\n\nexport const schemePayloadScope = z.object({\n target: z.literal(\"subscribe_plan\"),\n action: z.string(),\n})\n\nexport const schemaSubscribePlan = z.object({\n name: z.string(),\n shortDescription: z.string(),\n fullDescription: z.string(),\n price: z.number(),\n billingCycle: z.enum(Object.values(subscribePlanBillingCycles) as [SubscribePlanBillingCycle, ...SubscribePlanBillingCycle[]]),\n currency: z.enum(Object.values(subscribeCurrencies) as [SubscribePlanCurrency, ...SubscribePlanCurrency[]]),\n isSingleSubscription: z.boolean(),\n status: z.boolean(),\n})\n\n/** Create */\nexport const schemaSubscribePlanCreatePayload = z.object({\n scope: schemePayloadScope,\n payload: z.object({\n subscribePlan: schemaSubscribePlan\n })\n});\n\nexport type SchemaSubscribePlanCreatePayload = z.infer<typeof schemaSubscribePlanCreatePayload>;\n\n/** Update */\nexport const schemaSubscribePlanUpdatePayload = z.object({\n scope: schemePayloadScope,\n payload: z.object({\n subscribePlan: schemaSubscribePlan\n })\n});\n\nexport type SchemaSubscribePlanUpdatePayload = z.infer<typeof schemaSubscribePlanUpdatePayload>;\n\n/** Delete */\nexport const schemaSubscribePlanDeletePayload = z.object({\n scope: schemePayloadScope,\n payload: z.object({\n ids: z.array(z.number()).min(1, \"ids must contain at least one number\"),\n }),\n});\n\nexport type SchemaSubscribePlanDeletePayload = z.infer<typeof schemaSubscribePlanDeletePayload>;"]}
@@ -8,6 +8,13 @@ export declare const authTypes: {
8
8
  readonly member: "member";
9
9
  };
10
10
  export type AuthType = typeof authTypes[keyof typeof authTypes];
11
+ export type AuthTokenResult = {
12
+ token: string;
13
+ account: any;
14
+ user: any;
15
+ user_locations: any[];
16
+ is_owner: boolean;
17
+ };
11
18
  export type AuthJwtToken = JwtPayload & {
12
19
  user?: {
13
20
  id: number;
@@ -32,12 +39,6 @@ export type AuthGetTokenProps = {
32
39
  };
33
40
  };
34
41
  export declare const AuthService: (props: AuthServiceProps) => {
35
- getAuthToken: ({ authType, data, accountCode }: AuthGetTokenProps) => Promise<{
36
- token: string;
37
- account: any;
38
- user: any;
39
- user_locations: any[];
40
- is_owner: boolean;
41
- }>;
42
+ getAuthToken: ({ authType, data, accountCode }: AuthGetTokenProps) => Promise<any>;
42
43
  verifyAuthToken: (token: string, secret: string) => AuthJwtToken;
43
44
  };
@@ -6,6 +6,7 @@ const utils_1 = require("../../utils");
6
6
  const services_1 = require("../../services");
7
7
  const utils_2 = require("../../utils");
8
8
  const models_1 = require("../../models");
9
+ const features_1 = require("../../features");
9
10
  exports.authTypes = {
10
11
  operator: "operator",
11
12
  administrator: "administrator",
@@ -15,6 +16,7 @@ exports.authTypes = {
15
16
  };
16
17
  const AuthService = (props) => {
17
18
  const { secretKey, authType = "administrator", ...rest } = props;
19
+ let hookSetup = null;
18
20
  const getUserInjectionFieldName = (authType) => {
19
21
  if (authType === "administrator")
20
22
  return ["administrator_injection_fields"];
@@ -176,7 +178,7 @@ const AuthService = (props) => {
176
178
  const { data } = await locationService.listLocations(listPayload);
177
179
  locations = data;
178
180
  }
179
- return {
181
+ const result = {
180
182
  token: authToken,
181
183
  account,
182
184
  user,
@@ -192,6 +194,9 @@ const AuthService = (props) => {
192
194
  is_owner: Boolean(user?.is_owner),
193
195
  // owner_id: 0
194
196
  };
197
+ // Call the consumer hook, if registered
198
+ const newResult = await features_1.AuthTokenHook.onSuccessAuthenticate(result);
199
+ return newResult ? newResult : result;
195
200
  };
196
201
  return {
197
202
  getAuthToken,