storemw-core-api 1.0.151 → 1.0.153

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 (54) hide show
  1. package/dist/controllers/index.d.ts +1 -0
  2. package/dist/controllers/index.js +8 -1
  3. package/dist/controllers/index.js.map +1 -1
  4. package/dist/controllers/scheduler/schedulerRequestController.d.ts +11 -0
  5. package/dist/controllers/scheduler/schedulerRequestController.js +156 -0
  6. package/dist/controllers/scheduler/schedulerRequestController.js.map +1 -0
  7. package/dist/lib/index.d.ts +1 -1
  8. package/dist/lib/index.js +4 -1
  9. package/dist/lib/index.js.map +1 -1
  10. package/dist/lib/query_builder/queryScheduler.d.ts +13 -0
  11. package/dist/lib/query_builder/queryScheduler.js +47 -1
  12. package/dist/lib/query_builder/queryScheduler.js.map +1 -1
  13. package/dist/middlewares/route/index.d.ts +2 -1
  14. package/dist/middlewares/route/index.js +13 -7
  15. package/dist/middlewares/route/index.js.map +1 -1
  16. package/dist/middlewares/route/validateScheduler.d.ts +10 -0
  17. package/dist/middlewares/route/validateScheduler.js +39 -0
  18. package/dist/middlewares/route/validateScheduler.js.map +1 -0
  19. package/dist/models/index.d.ts +2 -0
  20. package/dist/models/index.js +4 -1
  21. package/dist/models/index.js.map +1 -1
  22. package/dist/models/scheduler/SchedulerRequestModel.d.ts +327 -0
  23. package/dist/models/scheduler/SchedulerRequestModel.js +13 -0
  24. package/dist/models/scheduler/SchedulerRequestModel.js.map +1 -0
  25. package/dist/routes/scheduler/schedulerRequestRoutes.d.ts +2 -0
  26. package/dist/routes/scheduler/schedulerRequestRoutes.js +15 -0
  27. package/dist/routes/scheduler/schedulerRequestRoutes.js.map +1 -0
  28. package/dist/routes/scheduler/schedulerRequestsRoutes.d.ts +2 -0
  29. package/dist/routes/scheduler/schedulerRequestsRoutes.js +13 -0
  30. package/dist/routes/scheduler/schedulerRequestsRoutes.js.map +1 -0
  31. package/dist/routes/scheduler/schedulersRoutes.js +5 -0
  32. package/dist/routes/scheduler/schedulersRoutes.js.map +1 -1
  33. package/dist/schema/middleware/route/index.d.ts +2 -2
  34. package/dist/schema/middleware/route/index.js +4 -3
  35. package/dist/schema/middleware/route/index.js.map +1 -1
  36. package/dist/schema/middleware/route/schemaScheduler.d.ts +7 -0
  37. package/dist/schema/middleware/route/schemaScheduler.js +15 -0
  38. package/dist/schema/middleware/route/schemaScheduler.js.map +1 -0
  39. package/dist/schema/payload/index.d.ts +2 -0
  40. package/dist/schema/payload/index.js +5 -1
  41. package/dist/schema/payload/index.js.map +1 -1
  42. package/dist/schema/payload/scheduler/schemaSchedulerRequest.d.ts +254 -0
  43. package/dist/schema/payload/scheduler/schemaSchedulerRequest.js +46 -0
  44. package/dist/schema/payload/scheduler/schemaSchedulerRequest.js.map +1 -0
  45. package/dist/services/index.d.ts +2 -0
  46. package/dist/services/index.js +3 -1
  47. package/dist/services/index.js.map +1 -1
  48. package/dist/services/scheduler/SchedulerLogService.js +1 -1
  49. package/dist/services/scheduler/SchedulerLogService.js.map +1 -1
  50. package/dist/services/scheduler/SchedulerRequestService.d.ts +109 -0
  51. package/dist/services/scheduler/SchedulerRequestService.js +141 -0
  52. package/dist/services/scheduler/SchedulerRequestService.js.map +1 -0
  53. package/package.json +1 -1
  54. package/prisma/schema.prisma +80 -54
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ /** Route Parameters */
3
+ export declare const schemaRouteSchedulerLogList: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4
+ export type SchemaRouteSchedulerLogList = z.infer<typeof schemaRouteSchedulerLogList>;
5
+ /** Route Parameters */
6
+ export declare const schemaRouteSchedulerRequestList: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7
+ export type SchemaRouteSchedulerRequestList = z.infer<typeof schemaRouteSchedulerRequestList>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schemaRouteSchedulerRequestList = exports.schemaRouteSchedulerLogList = void 0;
4
+ const zod_1 = require("zod");
5
+ /** Route Parameters */
6
+ exports.schemaRouteSchedulerLogList = zod_1.z.object({
7
+ // userType: z
8
+ // .enum(["administrator", "customer", "worker", "retailer"])
9
+ });
10
+ /** Route Parameters */
11
+ exports.schemaRouteSchedulerRequestList = zod_1.z.object({
12
+ // userType: z
13
+ // .enum(["administrator", "customer", "worker", "retailer"])
14
+ });
15
+ //# sourceMappingURL=schemaScheduler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaScheduler.js","sourceRoot":"","sources":["../../../../src/schema/middleware/route/schemaScheduler.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uBAAuB;AACV,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;AAChD,cAAc;AACd,iEAAiE;CACpE,CAAC,CAAC;AAIH,uBAAuB;AACV,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;AACpD,cAAc;AACd,iEAAiE;CACpE,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\n/** Route Parameters */\nexport const schemaRouteSchedulerLogList = z.object({\n // userType: z\n // .enum([\"administrator\", \"customer\", \"worker\", \"retailer\"])\n});\n\nexport type SchemaRouteSchedulerLogList = z.infer<typeof schemaRouteSchedulerLogList>;\n\n/** Route Parameters */\nexport const schemaRouteSchedulerRequestList = z.object({\n // userType: z\n // .enum([\"administrator\", \"customer\", \"worker\", \"retailer\"])\n});\n\nexport type SchemaRouteSchedulerRequestList = z.infer<typeof schemaRouteSchedulerRequestList>;"]}
@@ -84,5 +84,7 @@ export { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaReg
84
84
  export type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from "./region/schemaRegionArea";
85
85
  export { schemaSchedulerLogCreatePayload, schemaSchedulerLogDeletePayload } from "./scheduler/schemaSchedulerLog";
86
86
  export type { SchemaSchedulerLogCreatePayload, SchedulerLogFlowTypeEnum, SchemaSchedulerLogDeletePayload } from "./scheduler/schemaSchedulerLog";
87
+ export { schemaSchedulerRequestCreatePayload, schemaSchedulerRequestExecutePayload, schemaSchedulerRequestDeletePayload } from "./scheduler/schemaSchedulerRequest";
88
+ export type { SchemaSchedulerRequestCreatePayload, SchemaSchedulerRequestExecutePayload, SchemaSchedulerRequestDeletePayload } from "./scheduler/schemaSchedulerRequest";
87
89
  export { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
88
90
  export type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.schemaDocumentDeletePayload = exports.schemaFileDeletePayload = exports.schemaFileUploadPayload = exports.schemaAccessControlUserScope = exports.schemaAccessControlUserAssignRolesPayload = exports.schemaAccessControlRoleScope = exports.schemaAccessControlRoleUpdatePayload = exports.schemaAccessControlRoleDeletePayload = exports.schemaAccessControlRoleCreatePayload = exports.schemaAccessControlRole = 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
4
  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.schemaRepositoryContainerUpdatePayload = exports.schemaRepositoryContainerCreatePayload = exports.schemaRepositoryScope = exports.schemaRepositoryDeletePayload = exports.schemaDocumentTripOrderUpdatePayload = exports.schemaDocumentTripOrderCreatePayload = exports.schemaDocumentCashSalesUpdatePayload = exports.schemaDocumentCashSalesCreatePayload = exports.schemaDocumentReplacementDeliveryOrderUpdatePayload = exports.schemaDocumentReplacementDeliveryOrderCreatePayload = exports.schemaDocumentDeliveryOrderUpdatePayload = exports.schemaDocumentDeliveryOrderCreatePayload = exports.schemaDocumentProformaSalesUpdatePayload = exports.schemaDocumentProformaSalesCreatePayload = exports.schemaDocumentSalesOrderUpdatePayload = exports.schemaDocumentSalesOrderCreatePayload = exports.eNumDocumentTypes = void 0;
5
- exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaSchedulerLogDeletePayload = exports.schemaSchedulerLogCreatePayload = exports.schemaRegionAreaUpdatePayload = void 0;
5
+ exports.schemaAccessKeyUtilAccountOwnerPayload = exports.schemaAccessKeyUtilValidatePayload = exports.schemaSchedulerRequestDeletePayload = exports.schemaSchedulerRequestExecutePayload = exports.schemaSchedulerRequestCreatePayload = exports.schemaSchedulerLogDeletePayload = exports.schemaSchedulerLogCreatePayload = exports.schemaRegionAreaUpdatePayload = void 0;
6
6
  var schemaAuthToken_1 = require("./auth/schemaAuthToken");
7
7
  Object.defineProperty(exports, "schemaAuthTokenPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenPayload; } });
8
8
  Object.defineProperty(exports, "schemaAuthTokenOptionalAccountPayload", { enumerable: true, get: function () { return schemaAuthToken_1.schemaAuthTokenOptionalAccountPayload; } });
@@ -149,6 +149,10 @@ Object.defineProperty(exports, "schemaRegionAreaUpdatePayload", { enumerable: tr
149
149
  var schemaSchedulerLog_1 = require("./scheduler/schemaSchedulerLog");
150
150
  Object.defineProperty(exports, "schemaSchedulerLogCreatePayload", { enumerable: true, get: function () { return schemaSchedulerLog_1.schemaSchedulerLogCreatePayload; } });
151
151
  Object.defineProperty(exports, "schemaSchedulerLogDeletePayload", { enumerable: true, get: function () { return schemaSchedulerLog_1.schemaSchedulerLogDeletePayload; } });
152
+ var schemaSchedulerRequest_1 = require("./scheduler/schemaSchedulerRequest");
153
+ Object.defineProperty(exports, "schemaSchedulerRequestCreatePayload", { enumerable: true, get: function () { return schemaSchedulerRequest_1.schemaSchedulerRequestCreatePayload; } });
154
+ Object.defineProperty(exports, "schemaSchedulerRequestExecutePayload", { enumerable: true, get: function () { return schemaSchedulerRequest_1.schemaSchedulerRequestExecutePayload; } });
155
+ Object.defineProperty(exports, "schemaSchedulerRequestDeletePayload", { enumerable: true, get: function () { return schemaSchedulerRequest_1.schemaSchedulerRequestDeletePayload; } });
152
156
  // export { schemaChangePasswordUtilPayload } from "./utils/unuse/schemaChangePasswordUtil";
153
157
  // export type { SchemaChangePasswordUtilPayload } from "./utils/unuse/schemaChangePasswordUtil";
154
158
  var schemaAccessKeyUtil_1 = require("./utils/schemaAccessKeyUtil");
@@ -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,0EAA0J;AAAjJ,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAE7G,gFAA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AAU,OAAA;AAGtH,+EAAkK;AAAzJ,0IAAA,kCAAkC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAAE,yIAAA,iCAAiC,OAAA;AAGjH,oEAAoJ;AAA3I,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAAE,uIAAA,gCAAgC,OAAA;AAE7G,gEAA4I;AAAnI,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAAE,mIAAA,8BAA8B,OAAA;AAEvG,8DAAyI;AAAhI,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAAE,iIAAA,6BAA6B,OAAA;AAGpG,qEAAkH;AAAzG,qIAAA,+BAA+B,OAAA;AAAE,qIAAA,+BAA+B,OAAA;AAGzE,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 { schemaAccessControlRole, schemaAccessControlRoleCreatePayload, schemaAccessControlRoleDeletePayload, schemaAccessControlRoleUpdatePayload, schemaAccessControlRoleScope } from \"./access_control/schemaAccessControlRole\";\nexport type { SchemaAccessControlRoleCreatePayload, SchemaAccessControlRoleDeletePayload, SchemaAccessControlRoleUpdatePayload } from \"./access_control/schemaAccessControlRole\";\n\nexport { schemaAccessControlUserAssignRolesPayload, schemaAccessControlUserScope } from \"./access_control/schemaAccessControlUser\";\nexport type { SchemaAccessControlUserAssignRolesPayload } from \"./access_control/schemaAccessControlUser\";\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 { schemaRepositoryDeletePayload, schemaRepositoryScope } from \"./repository/schemaRepository\";\nexport type { SchemaRepositoryDeletePayload } from \"./repository/schemaRepository\";\nexport { schemaRepositoryContainerCreatePayload, schemaRepositoryContainerUpdatePayload } from \"./repository/schemaRepositoryContainer\";\nexport type { SchemaRepositoryContainerCreatePayload, SchemaRepositoryContainerUpdatePayload } from \"./repository/schemaRepositoryContainer\";\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\nexport { schemaSchedulerLogCreatePayload, schemaSchedulerLogDeletePayload } from \"./scheduler/schemaSchedulerLog\";\nexport type { SchemaSchedulerLogCreatePayload, SchedulerLogFlowTypeEnum, SchemaSchedulerLogDeletePayload } from \"./scheduler/schemaSchedulerLog\";\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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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 { schemaAccessControlRole, schemaAccessControlRoleCreatePayload, schemaAccessControlRoleDeletePayload, schemaAccessControlRoleUpdatePayload, schemaAccessControlRoleScope } from \"./access_control/schemaAccessControlRole\";\nexport type { SchemaAccessControlRoleCreatePayload, SchemaAccessControlRoleDeletePayload, SchemaAccessControlRoleUpdatePayload } from \"./access_control/schemaAccessControlRole\";\n\nexport { schemaAccessControlUserAssignRolesPayload, schemaAccessControlUserScope } from \"./access_control/schemaAccessControlUser\";\nexport type { SchemaAccessControlUserAssignRolesPayload } from \"./access_control/schemaAccessControlUser\";\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 { schemaRepositoryDeletePayload, schemaRepositoryScope } from \"./repository/schemaRepository\";\nexport type { SchemaRepositoryDeletePayload } from \"./repository/schemaRepository\";\nexport { schemaRepositoryContainerCreatePayload, schemaRepositoryContainerUpdatePayload } from \"./repository/schemaRepositoryContainer\";\nexport type { SchemaRepositoryContainerCreatePayload, SchemaRepositoryContainerUpdatePayload } from \"./repository/schemaRepositoryContainer\";\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\nexport { schemaSchedulerLogCreatePayload, schemaSchedulerLogDeletePayload } from \"./scheduler/schemaSchedulerLog\";\nexport type { SchemaSchedulerLogCreatePayload, SchedulerLogFlowTypeEnum, SchemaSchedulerLogDeletePayload } from \"./scheduler/schemaSchedulerLog\";\nexport { schemaSchedulerRequestCreatePayload, schemaSchedulerRequestExecutePayload, schemaSchedulerRequestDeletePayload } from \"./scheduler/schemaSchedulerRequest\";\nexport type { SchemaSchedulerRequestCreatePayload, SchemaSchedulerRequestExecutePayload, SchemaSchedulerRequestDeletePayload } from \"./scheduler/schemaSchedulerRequest\";\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,254 @@
1
+ import { z } from "zod";
2
+ export declare const schemaSchedulerRequest: z.ZodObject<{
3
+ fieldRef: z.ZodString;
4
+ fieldModule: z.ZodString;
5
+ sourceEntityId: z.ZodString;
6
+ sourceEntityLabel: z.ZodString;
7
+ sourceEntityData: z.ZodString;
8
+ integrationId: z.ZodString;
9
+ requestAction: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ fieldRef: string;
12
+ fieldModule: string;
13
+ sourceEntityId: string;
14
+ sourceEntityLabel: string;
15
+ sourceEntityData: string;
16
+ integrationId: string;
17
+ requestAction: string;
18
+ }, {
19
+ fieldRef: string;
20
+ fieldModule: string;
21
+ sourceEntityId: string;
22
+ sourceEntityLabel: string;
23
+ sourceEntityData: string;
24
+ integrationId: string;
25
+ requestAction: string;
26
+ }>;
27
+ export declare const schemaSchedulerRequestExecute: z.ZodObject<{
28
+ destinationEntityId: z.ZodString;
29
+ destinationEntityLabel: z.ZodString;
30
+ attemptStatus: z.ZodDefault<z.ZodBoolean>;
31
+ attemptResult: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ destinationEntityId: string;
34
+ destinationEntityLabel: string;
35
+ attemptStatus: boolean;
36
+ attemptResult: string;
37
+ }, {
38
+ destinationEntityId: string;
39
+ destinationEntityLabel: string;
40
+ attemptResult: string;
41
+ attemptStatus?: boolean | undefined;
42
+ }>;
43
+ export declare const schemaSchedulerRequestScope: z.ZodObject<{
44
+ target: z.ZodLiteral<"scheduler_request">;
45
+ action: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ target: "scheduler_request";
48
+ action: string;
49
+ }, {
50
+ target: "scheduler_request";
51
+ action: string;
52
+ }>;
53
+ /** Create */
54
+ export declare const schemaSchedulerRequestCreatePayload: z.ZodObject<{
55
+ scope: z.ZodObject<{
56
+ target: z.ZodLiteral<"scheduler_request">;
57
+ action: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ target: "scheduler_request";
60
+ action: string;
61
+ }, {
62
+ target: "scheduler_request";
63
+ action: string;
64
+ }>;
65
+ payload: z.ZodObject<{
66
+ schedulerRequest: z.ZodObject<{
67
+ fieldRef: z.ZodString;
68
+ fieldModule: z.ZodString;
69
+ sourceEntityId: z.ZodString;
70
+ sourceEntityLabel: z.ZodString;
71
+ sourceEntityData: z.ZodString;
72
+ integrationId: z.ZodString;
73
+ requestAction: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ fieldRef: string;
76
+ fieldModule: string;
77
+ sourceEntityId: string;
78
+ sourceEntityLabel: string;
79
+ sourceEntityData: string;
80
+ integrationId: string;
81
+ requestAction: string;
82
+ }, {
83
+ fieldRef: string;
84
+ fieldModule: string;
85
+ sourceEntityId: string;
86
+ sourceEntityLabel: string;
87
+ sourceEntityData: string;
88
+ integrationId: string;
89
+ requestAction: string;
90
+ }>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ schedulerRequest: {
93
+ fieldRef: string;
94
+ fieldModule: string;
95
+ sourceEntityId: string;
96
+ sourceEntityLabel: string;
97
+ sourceEntityData: string;
98
+ integrationId: string;
99
+ requestAction: string;
100
+ };
101
+ }, {
102
+ schedulerRequest: {
103
+ fieldRef: string;
104
+ fieldModule: string;
105
+ sourceEntityId: string;
106
+ sourceEntityLabel: string;
107
+ sourceEntityData: string;
108
+ integrationId: string;
109
+ requestAction: string;
110
+ };
111
+ }>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ scope: {
114
+ target: "scheduler_request";
115
+ action: string;
116
+ };
117
+ payload: {
118
+ schedulerRequest: {
119
+ fieldRef: string;
120
+ fieldModule: string;
121
+ sourceEntityId: string;
122
+ sourceEntityLabel: string;
123
+ sourceEntityData: string;
124
+ integrationId: string;
125
+ requestAction: string;
126
+ };
127
+ };
128
+ }, {
129
+ scope: {
130
+ target: "scheduler_request";
131
+ action: string;
132
+ };
133
+ payload: {
134
+ schedulerRequest: {
135
+ fieldRef: string;
136
+ fieldModule: string;
137
+ sourceEntityId: string;
138
+ sourceEntityLabel: string;
139
+ sourceEntityData: string;
140
+ integrationId: string;
141
+ requestAction: string;
142
+ };
143
+ };
144
+ }>;
145
+ export type SchemaSchedulerRequestCreatePayload = z.infer<typeof schemaSchedulerRequestCreatePayload>;
146
+ /** Execute */
147
+ export declare const schemaSchedulerRequestExecutePayload: z.ZodObject<{
148
+ scope: z.ZodObject<{
149
+ target: z.ZodLiteral<"scheduler_request">;
150
+ action: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ target: "scheduler_request";
153
+ action: string;
154
+ }, {
155
+ target: "scheduler_request";
156
+ action: string;
157
+ }>;
158
+ payload: z.ZodObject<{
159
+ schedulerRequest: z.ZodObject<{
160
+ destinationEntityId: z.ZodString;
161
+ destinationEntityLabel: z.ZodString;
162
+ attemptStatus: z.ZodDefault<z.ZodBoolean>;
163
+ attemptResult: z.ZodString;
164
+ }, "strip", z.ZodTypeAny, {
165
+ destinationEntityId: string;
166
+ destinationEntityLabel: string;
167
+ attemptStatus: boolean;
168
+ attemptResult: string;
169
+ }, {
170
+ destinationEntityId: string;
171
+ destinationEntityLabel: string;
172
+ attemptResult: string;
173
+ attemptStatus?: boolean | undefined;
174
+ }>;
175
+ }, "strip", z.ZodTypeAny, {
176
+ schedulerRequest: {
177
+ destinationEntityId: string;
178
+ destinationEntityLabel: string;
179
+ attemptStatus: boolean;
180
+ attemptResult: string;
181
+ };
182
+ }, {
183
+ schedulerRequest: {
184
+ destinationEntityId: string;
185
+ destinationEntityLabel: string;
186
+ attemptResult: string;
187
+ attemptStatus?: boolean | undefined;
188
+ };
189
+ }>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ scope: {
192
+ target: "scheduler_request";
193
+ action: string;
194
+ };
195
+ payload: {
196
+ schedulerRequest: {
197
+ destinationEntityId: string;
198
+ destinationEntityLabel: string;
199
+ attemptStatus: boolean;
200
+ attemptResult: string;
201
+ };
202
+ };
203
+ }, {
204
+ scope: {
205
+ target: "scheduler_request";
206
+ action: string;
207
+ };
208
+ payload: {
209
+ schedulerRequest: {
210
+ destinationEntityId: string;
211
+ destinationEntityLabel: string;
212
+ attemptResult: string;
213
+ attemptStatus?: boolean | undefined;
214
+ };
215
+ };
216
+ }>;
217
+ export type SchemaSchedulerRequestExecutePayload = z.infer<typeof schemaSchedulerRequestExecutePayload>;
218
+ /** Delete */
219
+ export declare const schemaSchedulerRequestDeletePayload: z.ZodObject<{
220
+ scope: z.ZodObject<{
221
+ target: z.ZodLiteral<"scheduler_request">;
222
+ action: z.ZodString;
223
+ }, "strip", z.ZodTypeAny, {
224
+ target: "scheduler_request";
225
+ action: string;
226
+ }, {
227
+ target: "scheduler_request";
228
+ action: string;
229
+ }>;
230
+ payload: z.ZodObject<{
231
+ ids: z.ZodArray<z.ZodNumber, "many">;
232
+ }, "strip", z.ZodTypeAny, {
233
+ ids: number[];
234
+ }, {
235
+ ids: number[];
236
+ }>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ scope: {
239
+ target: "scheduler_request";
240
+ action: string;
241
+ };
242
+ payload: {
243
+ ids: number[];
244
+ };
245
+ }, {
246
+ scope: {
247
+ target: "scheduler_request";
248
+ action: string;
249
+ };
250
+ payload: {
251
+ ids: number[];
252
+ };
253
+ }>;
254
+ export type SchemaSchedulerRequestDeletePayload = z.infer<typeof schemaSchedulerRequestDeletePayload>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.schemaSchedulerRequestDeletePayload = exports.schemaSchedulerRequestExecutePayload = exports.schemaSchedulerRequestCreatePayload = exports.schemaSchedulerRequestScope = exports.schemaSchedulerRequestExecute = exports.schemaSchedulerRequest = void 0;
4
+ const zod_1 = require("zod");
5
+ // import { _ } from "../../../utils";
6
+ exports.schemaSchedulerRequest = zod_1.z.object({
7
+ fieldRef: zod_1.z.string().min(1, "field_ref is required"),
8
+ fieldModule: zod_1.z.string().min(1, "field_module is required"),
9
+ sourceEntityId: zod_1.z.string().min(1),
10
+ sourceEntityLabel: zod_1.z.string().min(1),
11
+ sourceEntityData: zod_1.z.string().min(1),
12
+ integrationId: zod_1.z.string().min(1),
13
+ requestAction: zod_1.z.string().min(1),
14
+ });
15
+ exports.schemaSchedulerRequestExecute = zod_1.z.object({
16
+ destinationEntityId: zod_1.z.string().min(1),
17
+ destinationEntityLabel: zod_1.z.string().min(1),
18
+ attemptStatus: zod_1.z.boolean().default(false),
19
+ attemptResult: zod_1.z.string().min(1),
20
+ });
21
+ exports.schemaSchedulerRequestScope = zod_1.z.object({
22
+ target: zod_1.z.literal("scheduler_request"),
23
+ action: zod_1.z.string(),
24
+ });
25
+ /** Create */
26
+ exports.schemaSchedulerRequestCreatePayload = zod_1.z.object({
27
+ scope: exports.schemaSchedulerRequestScope,
28
+ payload: zod_1.z.object({
29
+ schedulerRequest: exports.schemaSchedulerRequest
30
+ })
31
+ });
32
+ /** Execute */
33
+ exports.schemaSchedulerRequestExecutePayload = zod_1.z.object({
34
+ scope: exports.schemaSchedulerRequestScope,
35
+ payload: zod_1.z.object({
36
+ schedulerRequest: exports.schemaSchedulerRequestExecute
37
+ })
38
+ });
39
+ /** Delete */
40
+ exports.schemaSchedulerRequestDeletePayload = zod_1.z.object({
41
+ scope: exports.schemaSchedulerRequestScope,
42
+ payload: zod_1.z.object({
43
+ ids: zod_1.z.array(zod_1.z.number()).min(1, "ids must contain at least one number"),
44
+ }),
45
+ });
46
+ //# sourceMappingURL=schemaSchedulerRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaSchedulerRequest.js","sourceRoot":"","sources":["../../../../src/schema/payload/scheduler/schemaSchedulerRequest.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+BAA+B;AAElB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;IACpD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;IAE1D,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEnC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEhC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACnC,CAAC,CAAA;AAEW,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACzC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACnC,CAAC,CAAA;AAEW,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAEF,aAAa;AACA,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,mCAA2B;IAClC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,gBAAgB,EAAE,8BAAsB;KAC3C,CAAC;CACL,CAAC,CAAC;AAIH,cAAc;AACD,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,mCAA2B;IAClC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,gBAAgB,EAAE,qCAA6B;KAClD,CAAC;CACL,CAAC,CAAC;AAIH,aAAa;AACA,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,KAAK,EAAE,mCAA2B;IAClC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QACd,GAAG,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,sCAAsC,CAAC;KAC1E,CAAC;CACL,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\n// import { _ } from \"@/utils\";\n\nexport const schemaSchedulerRequest = z.object({\n fieldRef: z.string().min(1, \"field_ref is required\"),\n fieldModule: z.string().min(1, \"field_module is required\"),\n\n sourceEntityId: z.string().min(1),\n sourceEntityLabel: z.string().min(1),\n sourceEntityData: z.string().min(1),\n\n integrationId: z.string().min(1),\n\n requestAction: z.string().min(1),\n})\n\nexport const schemaSchedulerRequestExecute = z.object({\n destinationEntityId: z.string().min(1),\n destinationEntityLabel: z.string().min(1),\n attemptStatus: z.boolean().default(false),\n attemptResult: z.string().min(1),\n})\n\nexport const schemaSchedulerRequestScope = z.object({\n target: z.literal(\"scheduler_request\"),\n action: z.string(),\n})\n\n/** Create */\nexport const schemaSchedulerRequestCreatePayload = z.object({\n scope: schemaSchedulerRequestScope,\n payload: z.object({\n schedulerRequest: schemaSchedulerRequest\n })\n});\n\nexport type SchemaSchedulerRequestCreatePayload = z.infer<typeof schemaSchedulerRequestCreatePayload>;\n\n/** Execute */\nexport const schemaSchedulerRequestExecutePayload = z.object({\n scope: schemaSchedulerRequestScope,\n payload: z.object({\n schedulerRequest: schemaSchedulerRequestExecute\n })\n});\n\nexport type SchemaSchedulerRequestExecutePayload = z.infer<typeof schemaSchedulerRequestExecutePayload>;\n\n/** Delete */\nexport const schemaSchedulerRequestDeletePayload = z.object({\n scope: schemaSchedulerRequestScope,\n payload: z.object({\n ids: z.array(z.number()).min(1, \"ids must contain at least one number\"),\n }),\n});\n\nexport type SchemaSchedulerRequestDeletePayload = z.infer<typeof schemaSchedulerRequestDeletePayload>;"]}
@@ -46,5 +46,7 @@ export { SmtpEmailService } from "../services/gateway/SmtpEmailService";
46
46
  export type { SmtpEmailServiceProps, SmtpEmailSendProps, SmtpEmailTransporterOptions } from "../services/gateway/SmtpEmailService";
47
47
  export { SchedulerLogService, schedulerLogTypes } from "../services/scheduler/SchedulerLogService";
48
48
  export type { SchedulerLogServiceProps, SchedulerLogFlowType, SchedulerLogModuleRef, SchedulerLogRemoveProps, SchedulerLogCreateProps, SchedulerLogListProps, SchedulerLogGetProps } from "../services/scheduler/SchedulerLogService";
49
+ export { SchedulerRequestService } from "../services/scheduler/SchedulerRequestService";
50
+ export type { SchedulerRequestServiceProps, SchedulerRequestModuleRef, SchedulerRequestRemoveProps, SchedulerRequestCreateProps, SchedulerRequestExecuteProps, SchedulerRequestListProps, SchedulerRequestGetProps } from "../services/scheduler/SchedulerRequestService";
49
51
  export { AccessKeyUtilService } from "../services/utils/AccessKeyUtilService";
50
52
  export type { AccessKeyUtilServiceProps, AccessKeyUtilValidateProps, AccessKeyUtilAccountOwnerProps } from "../services/utils/AccessKeyUtilService";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccessKeyUtilService = exports.schedulerLogTypes = exports.SchedulerLogService = exports.SmtpEmailService = exports.oneTimeCodeStatus = exports.oneTimeCodePurposeTypes = exports.oneTimeCodeTypes = exports.OneTimeCodeService = exports.NumberDateSequenceService = exports.injectionFieldDataTypes = exports.injectionFieldTypes = exports.InjectionFieldService = exports.LocationService = exports.FileService = exports.repositoryTypes = exports.RepositoryService = exports.itemTypes = exports.ItemService = exports.DocumentService = exports.RegionService = exports.userBranchTypes = exports.UserBranchService = exports.AccessControlUserService = exports.AccessControlRoleService = exports.UserMeService = exports.userParentSqlSelect = exports.userTypes = exports.UserService = exports.AccountSubscribeService = exports.subscribePlanBillingCycles = exports.subscribeCurrencies = exports.SubscribePlanService = exports.BusinessService = exports.AccountService = exports.resetPasswordMethods = exports.ResetPasswordService = exports.AccessControlService = exports.accessKeyStatus = exports.accessKeyUserTypes = exports.AccessKeyService = exports.authTypes = exports.AuthService = void 0;
3
+ exports.AccessKeyUtilService = exports.SchedulerRequestService = exports.schedulerLogTypes = exports.SchedulerLogService = exports.SmtpEmailService = exports.oneTimeCodeStatus = exports.oneTimeCodePurposeTypes = exports.oneTimeCodeTypes = exports.OneTimeCodeService = exports.NumberDateSequenceService = exports.injectionFieldDataTypes = exports.injectionFieldTypes = exports.InjectionFieldService = exports.LocationService = exports.FileService = exports.repositoryTypes = exports.RepositoryService = exports.itemTypes = exports.ItemService = exports.DocumentService = exports.RegionService = exports.userBranchTypes = exports.UserBranchService = exports.AccessControlUserService = exports.AccessControlRoleService = exports.UserMeService = exports.userParentSqlSelect = exports.userTypes = exports.UserService = exports.AccountSubscribeService = exports.subscribePlanBillingCycles = exports.subscribeCurrencies = exports.SubscribePlanService = exports.BusinessService = exports.AccountService = exports.resetPasswordMethods = exports.ResetPasswordService = exports.AccessControlService = exports.accessKeyStatus = exports.accessKeyUserTypes = exports.AccessKeyService = exports.authTypes = exports.AuthService = void 0;
4
4
  var AuthService_1 = require("../services/auth/AuthService");
5
5
  Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return AuthService_1.AuthService; } });
6
6
  Object.defineProperty(exports, "authTypes", { enumerable: true, get: function () { return AuthService_1.authTypes; } });
@@ -66,6 +66,8 @@ Object.defineProperty(exports, "SmtpEmailService", { enumerable: true, get: func
66
66
  var SchedulerLogService_1 = require("../services/scheduler/SchedulerLogService");
67
67
  Object.defineProperty(exports, "SchedulerLogService", { enumerable: true, get: function () { return SchedulerLogService_1.SchedulerLogService; } });
68
68
  Object.defineProperty(exports, "schedulerLogTypes", { enumerable: true, get: function () { return SchedulerLogService_1.schedulerLogTypes; } });
69
+ var SchedulerRequestService_1 = require("../services/scheduler/SchedulerRequestService");
70
+ Object.defineProperty(exports, "SchedulerRequestService", { enumerable: true, get: function () { return SchedulerRequestService_1.SchedulerRequestService; } });
69
71
  // export { ChangePasswordUtilService } from "../services/utils/unuse/ChangePasswordUtilService"
70
72
  // export type { ChangePasswordUtilServiceProps, ChangePasswordUtilChangeProps } from "../services/utils/unuse/ChangePasswordUtilService"
71
73
  var AccessKeyUtilService_1 = require("../services/utils/AccessKeyUtilService");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoE;AAA3D,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAE/B,2EAA8G;AAArG,oHAAA,gBAAgB,OAAA;AAAE,sHAAA,k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A,iBAAiB,OAAA;AAEzF,wEAAsE;AAA7D,oHAAA,gBAAgB,OAAA;AAGzB,gFAAiG;AAAxF,0HAAA,mBAAmB,OAAA;AAAE,wHAAA,iBAAiB,OAAA;AAG/C,+FAA+F;AAC/F,wIAAwI;AACxI,8EAA4E;AAAnE,4HAAA,oBAAoB,OAAA","sourcesContent":["export { AuthService, authTypes } from \"@/services/auth/AuthService\"\nexport type { AuthServiceProps, AuthType, AuthTokenResult, AuthJwtToken, AuthGetTokenProps } from \"@/services/auth/AuthService\"\nexport { AccessKeyService, accessKeyUserTypes, accessKeyStatus } from \"@/services/access_key/AccessKeyService\"\nexport type { AccessKeyServiceProps, AccessKeyStatus, AccessKeyUserType, AccessKeyCreateProps, AccessKeyRevokeProps } from \"@/services/access_key/AccessKeyService\"\nexport { AccessControlService } from \"@/services/access_control/AccessControlService\"\nexport type { AccessControlServiceProps, AccessControlScopeOrExtra, AccessControlListOptionsProps } from \"@/services/access_control/AccessControlService\"\nexport { ResetPasswordService, resetPasswordMethods } from \"@/services/reset_password/ResetPasswordService\"\nexport type { ResetPasswordServiceProps, ResetPasswordMethod, ResetPasswordRequestProps, ResetPasswordValidateCodeProps, ResetPasswordPerformProps } from \"@/services/reset_password/ResetPasswordService\"\nexport { AccountService } from \"@/services/account/AccountService\"\nexport type { AccountServiceProps, Account, AccountGetProps, AccountListProps, AccountCreateProps, AccountUpdateProps, AccountRemoveProps } from \"@/services/account/AccountService\"\nexport { BusinessService } from \"@/services/business/BusinessService\"\nexport type { BusinessServiceProps, Business, BusinessGetProps, BusinessListProps, BusinessCreateProps, BusinessUpdateProps } from \"@/services/business/BusinessService\"\n\nexport { SubscribePlanService, subscribeCurrencies, subscribePlanBillingCycles } from \"@/services/subscription/plan/SubscribePlanService\"\nexport type { SubscribePlanServiceProps, SubscribePlan, SubscribePlanBillingCycle, SubscribePlanCurrency, SubscribePlanGetProps, SubscribePlanListProps, SubscribePlanCreateProps, SubscribePlanUpdateProps } from \"@/services/subscription/plan/SubscribePlanService\"\nexport { AccountSubscribeService } from \"@/services/subscription/account/AccountSubscribeService\"\nexport type { AccountSubscribeServiceProps, AccountSubscribe, AccountSubscribeGetProps, AccountSubscribeListProps, AccountSubscribeCreateProps, AccountSubscribeCancelProps } from \"@/services/subscription/account/AccountSubscribeService\"\n\nexport { UserService, userTypes, userParentSqlSelect } from \"@/services/user/UserService\"\nexport type { UserServiceProps, UserType, UserGetProps, UserListProps, UserCreateProps, UserUpdateProps, UserRemoveProps, UserReplacePasswordProps } from \"@/services/user/UserService\"\n\nexport { UserMeService } from \"@/services/user/UserMeService\"\nexport type { UserMeServiceProps, UserMeUpdateProps, UserMeChangePasswordProps } from \"@/services/user/UserMeService\"\n\nexport { AccessControlRoleService } from \"@/services/access_control/AccessControlRoleService\"\nexport type { AccessControlRoleServiceProps, AccessControlRoleUserType, AccessControlRoleGetProps, AccessControlRoleListProps, AccessControlRoleCreateProps, AccessControlRoleUpdateProps, AccessControlRoleRemoveProps } from \"@/services/access_control/AccessControlRoleService\"\n\nexport { AccessControlUserService } from \"@/services/access_control/AccessControlUserService\"\nexport type { AccessControlUserServiceProps, AccessControlUserAssignRolesProps } from \"@/services/access_control/AccessControlUserService\"\n\nexport { UserBranchService, userBranchTypes } from \"@/services/branch/UserBranchService\"\nexport type { UserBranchServiceProps, UserBranchType, UserBranchGetProps, UserBranchListProps, UserBranchCreateProps, UserBranchUpdateProps, UserBranchRemoveProps } from \"@/services/branch/UserBranchService\"\nexport { RegionService } from \"@/services/region/RegionService\"\nexport type { RegionServiceProps, RegionType, RegionGetProps, RegionCreateProps, RegionListProps, RegionUpdateProps, RegionRemoveProps } from \"@/services/region/RegionService\"\nexport { DocumentService } from \"@/services/document/DocumentService\"\nexport type { DocumentServiceProps, DocumentType, DocumentGetProps, DocumentUpdateProps, DocumentCreateProps, DocumentListProps, DocumentRemoveProps } from \"@/services/document/DocumentService\"\nexport { ItemService, itemTypes } from \"@/services/item/ItemService\"\nexport type { ItemServiceProps, ItemType, ItemGetProps, ItemUpdateProps, ItemCreateProps, ItemListProps, ItemRemoveProps } from \"@/services/item/ItemService\"\nexport { RepositoryService, repositoryTypes } from \"@/services/repository/RepositoryService\"\nexport type { RepositoryServiceProps, RepositoryType, RepositoryGetProps, RepositoryUpdateProps, RepositoryCreateProps, RepositoryListProps, RepositoryRemoveProps } from \"@/services/repository/RepositoryService\"\nexport { FileService } from \"@/services/file/FileService\"\nexport type { FileImageCompressionOptions, FileVideoCompressionOptions, FileStorageProviderType, FileLocalProviderOptions, FileGoogleCloudProviderOptions, FileAwsS3ProviderOptions, FileCategoryName, FileUploadItem, FileServiceProps, FileGetProps, FileUploadProps, FileCreateProps, FileListProps, FileRemoveProps } from \"@/services/file/FileService\"\nexport { LocationService } from \"@/services/location/LocationService\"\nexport type { LocationServiceProps, LocationType, LocationGetProps, LocationUpdateProps, LocationCreateProps, LocationListProps, LocationRemoveProps } from \"@/services/location/LocationService\"\nexport { InjectionFieldService, injectionFieldTypes, injectionFieldDataTypes } from \"@/services/injection_field/InjectionFieldService\"\nexport type { InjectionFieldModuleRef, InjectionFieldServiceProps, InjectionFieldType, InjectionFieldDataType, InjectionFieldCreateProps, InjectionFieldListProps, InjectionFieldGetProps, InjectionFieldReplaceProps } from \"@/services/injection_field/InjectionFieldService\"\nexport { NumberDateSequenceService } from \"@/services/others/NumberDateSequenceService\"\nexport type { NumberDateSequenceModuleRef, NumberDateSequenceServiceProps, NumberDateSequenceInitProps, NumberDateSequenceCreateProps } from \"@/services/others/NumberDateSequenceService\"\nexport { OneTimeCodeService, oneTimeCodeTypes, oneTimeCodePurposeTypes, oneTimeCodeStatus } from \"@/services/one_time_code/OneTimeCodeService\"\nexport type { OneTimeCodeModuleRef, OneTimeCodeType, OneTimeCodePurposeType, OneTimeCodeStatus, OneTimeCodeServiceProps, OneTimeCodeCreateProps } from \"@/services/one_time_code/OneTimeCodeService\"\nexport { SmtpEmailService } from \"@/services/gateway/SmtpEmailService\"\nexport type { SmtpEmailServiceProps, SmtpEmailSendProps, SmtpEmailTransporterOptions } from \"@/services/gateway/SmtpEmailService\"\n\nexport { SchedulerLogService, schedulerLogTypes } from \"@/services/scheduler/SchedulerLogService\"\nexport type { SchedulerLogServiceProps, SchedulerLogFlowType, SchedulerLogModuleRef, SchedulerLogRemoveProps, SchedulerLogCreateProps, SchedulerLogListProps, SchedulerLogGetProps } from \"@/services/scheduler/SchedulerLogService\"\n\n// export { ChangePasswordUtilService } from \"@/services/utils/unuse/ChangePasswordUtilService\"\n// export type { ChangePasswordUtilServiceProps, ChangePasswordUtilChangeProps } from \"@/services/utils/unuse/ChangePasswordUtilService\"\nexport { AccessKeyUtilService } from \"@/services/utils/AccessKeyUtilService\"\nexport type { AccessKeyUtilServiceProps, AccessKeyUtilValidateProps, AccessKeyUtilAccountOwnerProps } from \"@/services/utils/AccessKeyUtilService\""]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;AAAA,2DAAoE;AAA3D,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAE/B,2EAA8G;AAArG,oHAAA,gBAAgB,OAAA;AAAE,sHAAA,kBAAkB,OAAA;AAAE,mHAAA,eAAe,OAAA;AAE9D,uFAAqF;AAA5E,4HAAA,oBAAoB,OAAA;AAE7B,uFAA2G;AAAlG,4HAAA,oBAAoB,OAAA;AAAE,4HAAA,oBAAoB,OAAA;AAEnD,oEAAkE;AAAzD,gHAAA,cAAc,OAAA;AAEvB,uEAAqE;AAA5D,kHAAA,eAAe,OAAA;AAGxB,0FAAyI;AAAhI,4HAAA,oBAAoB,OAAA;AAAE,2HAAA,mBAAmB,OAAA;AAAE,kIAAA,0BAA0B,OAAA;AAE9E,mGAAiG;AAAxF,kIAAA,uBAAuB,OAAA;AAGhC,2DAAyF;AAAhF,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAAE,kHAAA,mBAAmB,OAAA;AAGpD,+DAA6D;AAApD,8GAAA,aAAa,OAAA;AAGtB,+FAA6F;AAApF,oIAAA,wBAAwB,OAAA;AAGjC,+FAA6F;AAApF,oIAAA,wBAAwB,OAAA;AAGjC,yEAAwF;AAA/E,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAE3C,iEAA+D;AAAtD,8GAAA,aAAa,OAAA;AAEtB,uEAAqE;AAA5D,kHAAA,eAAe,OAAA;AAExB,2DAAoE;AAA3D,0GAAA,WAAW,OAAA;AAAE,wGAAA,SAAS,OAAA;AAE/B,6EAA4F;AAAnF,sHAAA,iBAAiB,OAAA;AAAE,oHAAA,eAAe,OAAA;AAE3C,2DAAyD;AAAhD,0GAAA,WAAW,OAAA;AAEpB,uEAAqE;AAA5D,kHAAA,eAAe,OAAA;AAExB,0FAAsI;AAA7H,8HAAA,qBAAqB,OAAA;AAAE,4HAAA,mBAAmB,OAAA;AAAE,gIAAA,uBAAuB,OAAA;AAE5E,yFAAuF;AAA9E,sIAAA,yBAAyB,OAAA;AAElC,kFAA8I;AAArI,wHAAA,kBAAkB,OAAA;AAAE,sHAAA,gBAAgB,OAAA;AAAE,6HAAA,uBAAuB,OAAA;AAAE,uHAAA,iBAAiB,OAAA;AAEzF,wEAAsE;AAA7D,oHAAA,gBAAgB,OAAA;AAGzB,gFAAiG;AAAxF,0HAAA,mBAAmB,OAAA;AAAE,wHAAA,iBAAiB,OAAA;AAE/C,wFAAsF;AAA7E,kIAAA,uBAAuB,OAAA;AAGhC,+FAA+F;AAC/F,wIAAwI;AACxI,8EAA4E;AAAnE,4HAAA,oBAAoB,OAAA","sourcesContent":["export { AuthService, authTypes } from \"@/services/auth/AuthService\"\nexport type { AuthServiceProps, AuthType, AuthTokenResult, AuthJwtToken, AuthGetTokenProps } from \"@/services/auth/AuthService\"\nexport { AccessKeyService, accessKeyUserTypes, accessKeyStatus } from \"@/services/access_key/AccessKeyService\"\nexport type { AccessKeyServiceProps, AccessKeyStatus, AccessKeyUserType, AccessKeyCreateProps, AccessKeyRevokeProps } from \"@/services/access_key/AccessKeyService\"\nexport { AccessControlService } from \"@/services/access_control/AccessControlService\"\nexport type { AccessControlServiceProps, AccessControlScopeOrExtra, AccessControlListOptionsProps } from \"@/services/access_control/AccessControlService\"\nexport { ResetPasswordService, resetPasswordMethods } from \"@/services/reset_password/ResetPasswordService\"\nexport type { ResetPasswordServiceProps, ResetPasswordMethod, ResetPasswordRequestProps, ResetPasswordValidateCodeProps, ResetPasswordPerformProps } from \"@/services/reset_password/ResetPasswordService\"\nexport { AccountService } from \"@/services/account/AccountService\"\nexport type { AccountServiceProps, Account, AccountGetProps, AccountListProps, AccountCreateProps, AccountUpdateProps, AccountRemoveProps } from \"@/services/account/AccountService\"\nexport { BusinessService } from \"@/services/business/BusinessService\"\nexport type { BusinessServiceProps, Business, BusinessGetProps, BusinessListProps, BusinessCreateProps, BusinessUpdateProps } from \"@/services/business/BusinessService\"\n\nexport { SubscribePlanService, subscribeCurrencies, subscribePlanBillingCycles } from \"@/services/subscription/plan/SubscribePlanService\"\nexport type { SubscribePlanServiceProps, SubscribePlan, SubscribePlanBillingCycle, SubscribePlanCurrency, SubscribePlanGetProps, SubscribePlanListProps, SubscribePlanCreateProps, SubscribePlanUpdateProps } from \"@/services/subscription/plan/SubscribePlanService\"\nexport { AccountSubscribeService } from \"@/services/subscription/account/AccountSubscribeService\"\nexport type { AccountSubscribeServiceProps, AccountSubscribe, AccountSubscribeGetProps, AccountSubscribeListProps, AccountSubscribeCreateProps, AccountSubscribeCancelProps } from \"@/services/subscription/account/AccountSubscribeService\"\n\nexport { UserService, userTypes, userParentSqlSelect } from \"@/services/user/UserService\"\nexport type { UserServiceProps, UserType, UserGetProps, UserListProps, UserCreateProps, UserUpdateProps, UserRemoveProps, UserReplacePasswordProps } from \"@/services/user/UserService\"\n\nexport { UserMeService } from \"@/services/user/UserMeService\"\nexport type { UserMeServiceProps, UserMeUpdateProps, UserMeChangePasswordProps } from \"@/services/user/UserMeService\"\n\nexport { AccessControlRoleService } from \"@/services/access_control/AccessControlRoleService\"\nexport type { AccessControlRoleServiceProps, AccessControlRoleUserType, AccessControlRoleGetProps, AccessControlRoleListProps, AccessControlRoleCreateProps, AccessControlRoleUpdateProps, AccessControlRoleRemoveProps } from \"@/services/access_control/AccessControlRoleService\"\n\nexport { AccessControlUserService } from \"@/services/access_control/AccessControlUserService\"\nexport type { AccessControlUserServiceProps, AccessControlUserAssignRolesProps } from \"@/services/access_control/AccessControlUserService\"\n\nexport { UserBranchService, userBranchTypes } from \"@/services/branch/UserBranchService\"\nexport type { UserBranchServiceProps, UserBranchType, UserBranchGetProps, UserBranchListProps, UserBranchCreateProps, UserBranchUpdateProps, UserBranchRemoveProps } from \"@/services/branch/UserBranchService\"\nexport { RegionService } from \"@/services/region/RegionService\"\nexport type { RegionServiceProps, RegionType, RegionGetProps, RegionCreateProps, RegionListProps, RegionUpdateProps, RegionRemoveProps } from \"@/services/region/RegionService\"\nexport { DocumentService } from \"@/services/document/DocumentService\"\nexport type { DocumentServiceProps, DocumentType, DocumentGetProps, DocumentUpdateProps, DocumentCreateProps, DocumentListProps, DocumentRemoveProps } from \"@/services/document/DocumentService\"\nexport { ItemService, itemTypes } from \"@/services/item/ItemService\"\nexport type { ItemServiceProps, ItemType, ItemGetProps, ItemUpdateProps, ItemCreateProps, ItemListProps, ItemRemoveProps } from \"@/services/item/ItemService\"\nexport { RepositoryService, repositoryTypes } from \"@/services/repository/RepositoryService\"\nexport type { RepositoryServiceProps, RepositoryType, RepositoryGetProps, RepositoryUpdateProps, RepositoryCreateProps, RepositoryListProps, RepositoryRemoveProps } from \"@/services/repository/RepositoryService\"\nexport { FileService } from \"@/services/file/FileService\"\nexport type { FileImageCompressionOptions, FileVideoCompressionOptions, FileStorageProviderType, FileLocalProviderOptions, FileGoogleCloudProviderOptions, FileAwsS3ProviderOptions, FileCategoryName, FileUploadItem, FileServiceProps, FileGetProps, FileUploadProps, FileCreateProps, FileListProps, FileRemoveProps } from \"@/services/file/FileService\"\nexport { LocationService } from \"@/services/location/LocationService\"\nexport type { LocationServiceProps, LocationType, LocationGetProps, LocationUpdateProps, LocationCreateProps, LocationListProps, LocationRemoveProps } from \"@/services/location/LocationService\"\nexport { InjectionFieldService, injectionFieldTypes, injectionFieldDataTypes } from \"@/services/injection_field/InjectionFieldService\"\nexport type { InjectionFieldModuleRef, InjectionFieldServiceProps, InjectionFieldType, InjectionFieldDataType, InjectionFieldCreateProps, InjectionFieldListProps, InjectionFieldGetProps, InjectionFieldReplaceProps } from \"@/services/injection_field/InjectionFieldService\"\nexport { NumberDateSequenceService } from \"@/services/others/NumberDateSequenceService\"\nexport type { NumberDateSequenceModuleRef, NumberDateSequenceServiceProps, NumberDateSequenceInitProps, NumberDateSequenceCreateProps } from \"@/services/others/NumberDateSequenceService\"\nexport { OneTimeCodeService, oneTimeCodeTypes, oneTimeCodePurposeTypes, oneTimeCodeStatus } from \"@/services/one_time_code/OneTimeCodeService\"\nexport type { OneTimeCodeModuleRef, OneTimeCodeType, OneTimeCodePurposeType, OneTimeCodeStatus, OneTimeCodeServiceProps, OneTimeCodeCreateProps } from \"@/services/one_time_code/OneTimeCodeService\"\nexport { SmtpEmailService } from \"@/services/gateway/SmtpEmailService\"\nexport type { SmtpEmailServiceProps, SmtpEmailSendProps, SmtpEmailTransporterOptions } from \"@/services/gateway/SmtpEmailService\"\n\nexport { SchedulerLogService, schedulerLogTypes } from \"@/services/scheduler/SchedulerLogService\"\nexport type { SchedulerLogServiceProps, SchedulerLogFlowType, SchedulerLogModuleRef, SchedulerLogRemoveProps, SchedulerLogCreateProps, SchedulerLogListProps, SchedulerLogGetProps } from \"@/services/scheduler/SchedulerLogService\"\nexport { SchedulerRequestService } from \"@/services/scheduler/SchedulerRequestService\"\nexport type { SchedulerRequestServiceProps, SchedulerRequestModuleRef, SchedulerRequestRemoveProps, SchedulerRequestCreateProps, SchedulerRequestExecuteProps, SchedulerRequestListProps, SchedulerRequestGetProps } from \"@/services/scheduler/SchedulerRequestService\"\n\n// export { ChangePasswordUtilService } from \"@/services/utils/unuse/ChangePasswordUtilService\"\n// export type { ChangePasswordUtilServiceProps, ChangePasswordUtilChangeProps } from \"@/services/utils/unuse/ChangePasswordUtilService\"\nexport { AccessKeyUtilService } from \"@/services/utils/AccessKeyUtilService\"\nexport type { AccessKeyUtilServiceProps, AccessKeyUtilValidateProps, AccessKeyUtilAccountOwnerProps } from \"@/services/utils/AccessKeyUtilService\""]}
@@ -57,7 +57,7 @@ const SchedulerLogService = (props) => {
57
57
  const listSchedulerLoges = async ({ limit, offset, filters = [], sortfield, sortorder }) => {
58
58
  // let data = []
59
59
  let sqlSelect = [
60
- `COUNT(slog.*) OVER() as filtered_count`,
60
+ // `COUNT(slog.*) OVER() as filtered_count`,
61
61
  (0, lib_1.buildSqlSelect)(``, mainSqlSelect),
62
62
  // buildSqlSelect(``, regionSqlSelect),
63
63
  (0, lib_1.buildSqlSelect)(``, defaultSqlSelect)
@@ -1 +1 @@
1
- {"version":3,"file":"SchedulerLogService.js","sourceRoot":"","sources":["../../../src/services/scheduler/SchedulerLogService.ts"],"names":[],"mappings":";;;AAAA,mCAA+C;AAE/C,qCAIkB;AAQlB,+BAAgK;AAEhK,+BAGe;AAiBF,QAAA,iBAAiB,GAAG;IAC7B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;CACb,CAAA;AAgCD,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,GAAG,IAAA,oCAA8B,GAAE,CAAA;AAE1E,MAAM,gBAAgB,GAAG,CAAC,IAAqC,EAAE,EAAE;IAE/D,OAAO;QACH,CAAC,GAAG,gCAAuB,CAAC,iBAAiB,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;QAC9E,CAAC,GAAG,gCAAuB,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,CAAC,QAAQ;QACvD,CAAC,GAAG,gCAAuB,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,CAAC,SAAS;QAEzD,CAAC,GAAG,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qB;QACrB,KAAK;QAEL,6CAA6C;QAE7C,qBAAqB;QACrB,6DAA6D;QAC7D,8DAA8D;QAC9D,IAAI;QAEJ,+BAA+B;QAC/B,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAA,sBAAgB,EAAC;YAC3C,KAAK,EAAE,iBAAiB;YACxB,SAAS,EAAE,gBAAgB;YAC3B,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,GAAG,gCAAuB,CAAC,gBAAgB,EAAE;YACvD,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,eAAe;YACf,OAAO;YACP,aAAa;YACb,SAAS;YACT,YAAY,EAAE,EAAE;YAChB,WAAW;YACX,cAAc,EAAE,EAAE;YAClB,QAAQ;YACR,UAAU;YACV,UAAU;YACV,cAAc;SACjB,CAAC,CAAA;QAEF,MAAM,QAAQ,GAAG;YACb,IAAI;YACJ,KAAK;SACR,CAAA;QAED,OAAO,QAAQ,CAAA;IAEnB,CAAC,CAAC;IAEF,MAAM,oBAAoB,GAAG,KAAK,EAAE,EAAE,eAAe,EAA2B,EAAE,EAAE;QAEhF,IAAI,CAAC,eAAe,CAAC,MAAM;YAAE,IAAA,kBAAU,EAAC,6BAA6B,CAAC,CAAC;QAEvE,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,gCAAuB,CAAC,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;QAEzI,OAAO,QAAQ,CAAA;IACnB,CAAC,CAAC;IAEF,OAAO;QACH,eAAe;QACf,kBAAkB;QAClB,oBAAoB;QACpB,kBAAkB;KACrB,CAAA;AAEL,CAAC,CAAA;AA3IY,QAAA,mBAAmB,uBA2I/B","sourcesContent":["import { logError, throwError } from \"@/utils\";\n\nimport {\n ModelUserFields,\n SchedulerLogModel,\n ModelSchedulerLogFields\n} from \"@/models\";\n\nimport { QueryList, QueryGet } from \"@/schema/common\";\n\nimport { DefaultServiceProps } from \"@/utils\";\n\nimport { InjectionFieldModuleRef } from \"@/services\"\n\nimport { getSchedulerLogSqlRelationMaps, buildSqlRelation, buildSqlWhere, buildSqlSelect, buildSqlLimitOffset, buildSqlOrderBy, getListWithCount } from \"@/lib\";\n\nimport {\n buildSchedulerLogDefaultSqlSelect,\n buildSchedulerLogMainSqlSelect\n} from \"@/lib\";\n\nexport type SchedulerLogModuleRef = InjectionFieldModuleRef\n\nexport type SchedulerLogServiceProps = DefaultServiceProps & {};\n\nexport type SchedulerLogGetProps = Omit<QueryGet, \"datatypes\"> & {\n id: number,\n};\n\nexport type SchedulerLogListProps = Omit<QueryList, \"datatypes\"> & {\n};\n\nexport type SchedulerLogRemoveProps = {\n schedulerLogIds: BigInt[]\n};\n\nexport const schedulerLogTypes = {\n in: \"in\",\n out: \"out\"\n}\n\nexport type SchedulerLogFlowType = keyof typeof schedulerLogTypes\n\nexport type SchedulerLog = {\n schedulerTaskId: number;\n flowType: SchedulerLogFlowType;\n\n sourceType: string;\n sourceEntityId: string;\n sourceEntityLabel: string;\n sourceEntityData: string;\n\n destinationType: string;\n destinationEntityId: string;\n destinationEntityLabel: string;\n destinationSubmitPayload: string;\n destinationSubmitResponse: string;\n\n logAction: string;\n logLabel: string;\n logStatus: boolean;\n logMesssage: string;\n}\n\nexport type SchedulerLogCreateProps = {\n data: SchedulerLog & {\n fieldRef: SchedulerLogModuleRef[\"field_ref\"],\n fieldModule: SchedulerLogModuleRef[\"field_module\"]\n }\n}\n\nconst { relationKeys, sqlRelationMaps } = getSchedulerLogSqlRelationMaps()\n\nconst getCreatePayload = (data: SchedulerLogCreateProps[\"data\"]) => {\n\n return {\n [`${ModelSchedulerLogFields.scheduler_task_id}`]: Number(data.schedulerTaskId),\n [`${ModelSchedulerLogFields.flow_type}`]: data.flowType,\n [`${ModelSchedulerLogFields.log_action}`]: data.logAction,\n\n [`${ModelSchedulerLogFields.field_module}`]: data.fieldRef,\n [`${ModelSchedulerLogFields.field_ref}`]: data.fieldModule,\n\n [`${ModelSchedulerLogFields.source_type}`]: data.sourceType,\n [`${ModelSchedulerLogFields.source_entity_id}`]: data.sourceEntityId,\n [`${ModelSchedulerLogFields.source_entity_label}`]: data.sourceEntityLabel,\n [`${ModelSchedulerLogFields.source_entity_data}`]: data.sourceEntityData,\n\n [`${ModelSchedulerLogFields.destination_type}`]: data.destinationType,\n [`${ModelSchedulerLogFields.destination_entity_id}`]: data.destinationEntityId,\n [`${ModelSchedulerLogFields.destination_entity_label}`]: data.destinationEntityLabel,\n [`${ModelSchedulerLogFields.destination_submit_payload}`]: data.destinationSubmitPayload,\n [`${ModelSchedulerLogFields.destination_submit_response}`]: data.destinationSubmitResponse,\n\n [`${ModelSchedulerLogFields.log_label}`]: data.logLabel,\n [`${ModelSchedulerLogFields.log_message}`]: data.logMesssage,\n [`${ModelSchedulerLogFields.log_status}`]: Boolean(data.logStatus),\n }\n\n}\n\nlet mainSqlSelect = buildSchedulerLogMainSqlSelect()\nlet defaultSqlSelect = buildSchedulerLogDefaultSqlSelect()\n\nexport const SchedulerLogService = (props: SchedulerLogServiceProps) => {\n\n const {\n ...rest\n } = props\n\n const schedulerLogModel = SchedulerLogModel({ ...rest })\n\n const createSchedulerLog = async ({ data }: SchedulerLogCreateProps) => {\n\n const _data = getCreatePayload(data)\n\n if (!_data) {\n throw new Error(`Invalid create scheduler log payload: ${JSON.stringify(_data)}`);\n }\n\n let response = await schedulerLogModel.create({ data: _data })\n\n return response\n }\n\n const getSchedulerLog = async ({ id }: SchedulerLogGetProps) => {\n\n let { data } = await listSchedulerLoges({\n limit: 1,\n offset: 0,\n filters: [{ field: `${ModelSchedulerLogFields.scheduler_log_id}`, operator: \"=\", value: id }],\n sortfield: `${ModelSchedulerLogFields.scheduler_log_id}`,\n sortorder: \"ASC\",\n })\n\n return data[0] ?? null;\n\n };\n\n const listSchedulerLoges = async ({ limit, offset, filters = [], sortfield, sortorder }: SchedulerLogListProps) => {\n\n // let data = []\n\n let sqlSelect = [\n `COUNT(slog.*) OVER() as filtered_count`,\n buildSqlSelect(``, mainSqlSelect),\n // buildSqlSelect(``, regionSqlSelect),\n buildSqlSelect(``, defaultSqlSelect)\n ]\n\n let sqlRelation = [\n // buildSqlRelation(\"left\", \"slog\", \"states\", \"slogstate\", [\"slog.state_id = slogstate.state_id\", \"slogstate.isdelete = false\", \"slogstate.istrash = false\"]),\n // buildSqlRelation(\"left\", \"slog\", \"countries\", \"slogcoun\", [\"slog.country_id = slogcoun.country_id\", \"slogcoun.isdelete = false\", \"slogcoun.istrash = false\"]),\n // buildSqlRelation(\"left\", \"slog\", \"areas\", \"slogarea\", [\"slog.area_id = slogarea.area_id\", \"slogarea.isdelete = false\", \"slogarea.istrash = false\"]),\n buildSqlRelation(\"left\", \"slog\", \"users\", \"creator\", [\"slog.createuserid = creator.user_id\", \"creator.isdelete = false\", \"creator.istrash = false\"]),\n buildSqlRelation(\"left\", \"slog\", \"users\", \"updater\", [\"slog.updateuserid = updater.user_id\", \"updater.isdelete = false\", \"updater.istrash = false\"])\n ]\n\n let sqlGroupBy: string[] = [\n ...Object.keys(mainSqlSelect),\n // ...Object.keys(regionSqlSelect), \n ...Object.keys(defaultSqlSelect)\n ]\n\n let filterColumns = {\n ...mainSqlSelect,\n // ...regionSqlSelect, \n ...defaultSqlSelect\n }\n\n let sqlWhere = [\n `slog.isdelete = false`,\n `slog.istrash = false`,\n ...(filters.length ? [buildSqlWhere(filters, filterColumns)?.where] : []),\n ]\n\n let sqlOrderby = buildSqlOrderBy(sortfield, sortorder)\n let sqlLimitOffset = buildSqlLimitOffset(limit, offset)\n\n // const sqlRaw = buildSqlRawSelect({\n // tableName: \"scheduler_logs\",\n // mainAlias: \"slog\",\n // accountId: rest.accountId,\n // sqlSelect,\n // sqlRelation,\n // sqlWhere,\n // sqlGroupBy,\n // sqlOrderby,\n // sqlLimitOffset\n // })\n\n // data = await schedulerLogModel.raw(sqlRaw)\n\n // const response = {\n // data: data.map(({ filtered_count, ...rest }) => rest),\n // total: data.length ? Number(data[0].filtered_count) : 0\n // }\n\n // get the listing data & count\n const { data, total } = await getListWithCount({\n model: schedulerLogModel,\n tableName: \"scheduler_logs\",\n mainAlias: \"slog\",\n countKey: `${ModelSchedulerLogFields.scheduler_log_id}`,\n accountId: rest.accountId,\n sqlRelationMaps,\n filters,\n filterColumns,\n sqlSelect,\n sqlSelectAgg: [],\n sqlRelation,\n sqlRelationAgg: [],\n sqlWhere,\n sqlGroupBy,\n sqlOrderby,\n sqlLimitOffset\n })\n\n const response = {\n data,\n total\n }\n\n return response\n\n };\n\n const removeSchedulerLoges = async ({ schedulerLogIds }: SchedulerLogRemoveProps) => {\n\n if (!schedulerLogIds.length) throwError('schedulerLogIds is required');\n\n const response = await schedulerLogModel.remove({ where: { [`${ModelSchedulerLogFields.scheduler_log_id}`]: { in: schedulerLogIds } } });\n\n return response\n };\n\n return {\n getSchedulerLog,\n createSchedulerLog,\n removeSchedulerLoges,\n listSchedulerLoges\n }\n\n}\n\n"]}
1
+ {"version":3,"file":"SchedulerLogService.js","sourceRoot":"","sources":["../../../src/services/scheduler/SchedulerLogService.ts"],"names":[],"mappings":";;;AAAA,mCAA+C;AAE/C,qCAIkB;AAQlB,+BAAgK;AAEhK,+BAGe;AAiBF,QAAA,iBAAiB,GAAG;IAC7B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;CACb,CAAA;AAgCD,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,GAAG,IAAA,oCAA8B,GAAE,CAAA;AAE1E,MAAM,gBAAgB,GAAG,CAAC,IAAqC,EAAE,EAAE;IAE/D,OAAO;QACH,CAAC,GAAG,gCAAuB,CAAC,iBAAiB,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;QAC9E,CAAC,GAAG,gCAAuB,CAAC,SAAS,EAAE,CAAC,EAAE,IAAI,CAAC,QAAQ;QACvD,CAAC,GAAG,g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@/utils\";\n\nimport {\n ModelUserFields,\n SchedulerLogModel,\n ModelSchedulerLogFields\n} from \"@/models\";\n\nimport { QueryList, QueryGet } from \"@/schema/common\";\n\nimport { DefaultServiceProps } from \"@/utils\";\n\nimport { InjectionFieldModuleRef } from \"@/services\"\n\nimport { getSchedulerLogSqlRelationMaps, buildSqlRelation, buildSqlWhere, buildSqlSelect, buildSqlLimitOffset, buildSqlOrderBy, getListWithCount } from \"@/lib\";\n\nimport {\n buildSchedulerLogDefaultSqlSelect,\n buildSchedulerLogMainSqlSelect\n} from \"@/lib\";\n\nexport type SchedulerLogModuleRef = InjectionFieldModuleRef\n\nexport type SchedulerLogServiceProps = DefaultServiceProps & {};\n\nexport type SchedulerLogGetProps = Omit<QueryGet, \"datatypes\"> & {\n id: number,\n};\n\nexport type SchedulerLogListProps = Omit<QueryList, \"datatypes\"> & {\n};\n\nexport type SchedulerLogRemoveProps = {\n schedulerLogIds: BigInt[]\n};\n\nexport const schedulerLogTypes = {\n in: \"in\",\n out: \"out\"\n}\n\nexport type SchedulerLogFlowType = keyof typeof schedulerLogTypes\n\nexport type SchedulerLog = {\n schedulerTaskId: number;\n flowType: SchedulerLogFlowType;\n\n sourceType: string;\n sourceEntityId: string;\n sourceEntityLabel: string;\n sourceEntityData: string;\n\n destinationType: string;\n destinationEntityId: string;\n destinationEntityLabel: string;\n destinationSubmitPayload: string;\n destinationSubmitResponse: string;\n\n logAction: string;\n logLabel: string;\n logStatus: boolean;\n logMesssage: string;\n}\n\nexport type SchedulerLogCreateProps = {\n data: SchedulerLog & {\n fieldRef: SchedulerLogModuleRef[\"field_ref\"],\n fieldModule: SchedulerLogModuleRef[\"field_module\"]\n }\n}\n\nconst { relationKeys, sqlRelationMaps } = getSchedulerLogSqlRelationMaps()\n\nconst getCreatePayload = (data: SchedulerLogCreateProps[\"data\"]) => {\n\n return {\n [`${ModelSchedulerLogFields.scheduler_task_id}`]: Number(data.schedulerTaskId),\n [`${ModelSchedulerLogFields.flow_type}`]: data.flowType,\n [`${ModelSchedulerLogFields.log_action}`]: data.logAction,\n\n [`${ModelSchedulerLogFields.field_module}`]: data.fieldRef,\n [`${ModelSchedulerLogFields.field_ref}`]: data.fieldModule,\n\n [`${ModelSchedulerLogFields.source_type}`]: data.sourceType,\n [`${ModelSchedulerLogFields.source_entity_id}`]: data.sourceEntityId,\n [`${ModelSchedulerLogFields.source_entity_label}`]: data.sourceEntityLabel,\n [`${ModelSchedulerLogFields.source_entity_data}`]: data.sourceEntityData,\n\n [`${ModelSchedulerLogFields.destination_type}`]: data.destinationType,\n [`${ModelSchedulerLogFields.destination_entity_id}`]: data.destinationEntityId,\n [`${ModelSchedulerLogFields.destination_entity_label}`]: data.destinationEntityLabel,\n [`${ModelSchedulerLogFields.destination_submit_payload}`]: data.destinationSubmitPayload,\n [`${ModelSchedulerLogFields.destination_submit_response}`]: data.destinationSubmitResponse,\n\n [`${ModelSchedulerLogFields.log_label}`]: data.logLabel,\n [`${ModelSchedulerLogFields.log_message}`]: data.logMesssage,\n [`${ModelSchedulerLogFields.log_status}`]: Boolean(data.logStatus),\n }\n\n}\n\nlet mainSqlSelect = buildSchedulerLogMainSqlSelect()\nlet defaultSqlSelect = buildSchedulerLogDefaultSqlSelect()\n\nexport const SchedulerLogService = (props: SchedulerLogServiceProps) => {\n\n const {\n ...rest\n } = props\n\n const schedulerLogModel = SchedulerLogModel({ ...rest })\n\n const createSchedulerLog = async ({ data }: SchedulerLogCreateProps) => {\n\n const _data = getCreatePayload(data)\n\n if (!_data) {\n throw new Error(`Invalid create scheduler log payload: ${JSON.stringify(_data)}`);\n }\n\n let response = await schedulerLogModel.create({ data: _data })\n\n return response\n }\n\n const getSchedulerLog = async ({ id }: SchedulerLogGetProps) => {\n\n let { data } = await listSchedulerLoges({\n limit: 1,\n offset: 0,\n filters: [{ field: `${ModelSchedulerLogFields.scheduler_log_id}`, operator: \"=\", value: id }],\n sortfield: `${ModelSchedulerLogFields.scheduler_log_id}`,\n sortorder: \"ASC\",\n })\n\n return data[0] ?? null;\n\n };\n\n const listSchedulerLoges = async ({ limit, offset, filters = [], sortfield, sortorder }: SchedulerLogListProps) => {\n\n // let data = []\n\n let sqlSelect = [\n // `COUNT(slog.*) OVER() as filtered_count`,\n buildSqlSelect(``, mainSqlSelect),\n // buildSqlSelect(``, regionSqlSelect),\n buildSqlSelect(``, defaultSqlSelect)\n ]\n\n let sqlRelation = [\n // buildSqlRelation(\"left\", \"slog\", \"states\", \"slogstate\", [\"slog.state_id = slogstate.state_id\", \"slogstate.isdelete = false\", \"slogstate.istrash = false\"]),\n // buildSqlRelation(\"left\", \"slog\", \"countries\", \"slogcoun\", [\"slog.country_id = slogcoun.country_id\", \"slogcoun.isdelete = false\", \"slogcoun.istrash = false\"]),\n // buildSqlRelation(\"left\", \"slog\", \"areas\", \"slogarea\", [\"slog.area_id = slogarea.area_id\", \"slogarea.isdelete = false\", \"slogarea.istrash = false\"]),\n buildSqlRelation(\"left\", \"slog\", \"users\", \"creator\", [\"slog.createuserid = creator.user_id\", \"creator.isdelete = false\", \"creator.istrash = false\"]),\n buildSqlRelation(\"left\", \"slog\", \"users\", \"updater\", [\"slog.updateuserid = updater.user_id\", \"updater.isdelete = false\", \"updater.istrash = false\"])\n ]\n\n let sqlGroupBy: string[] = [\n ...Object.keys(mainSqlSelect),\n // ...Object.keys(regionSqlSelect), \n ...Object.keys(defaultSqlSelect)\n ]\n\n let filterColumns = {\n ...mainSqlSelect,\n // ...regionSqlSelect, \n ...defaultSqlSelect\n }\n\n let sqlWhere = [\n `slog.isdelete = false`,\n `slog.istrash = false`,\n ...(filters.length ? [buildSqlWhere(filters, filterColumns)?.where] : []),\n ]\n\n let sqlOrderby = buildSqlOrderBy(sortfield, sortorder)\n let sqlLimitOffset = buildSqlLimitOffset(limit, offset)\n\n // const sqlRaw = buildSqlRawSelect({\n // tableName: \"scheduler_logs\",\n // mainAlias: \"slog\",\n // accountId: rest.accountId,\n // sqlSelect,\n // sqlRelation,\n // sqlWhere,\n // sqlGroupBy,\n // sqlOrderby,\n // sqlLimitOffset\n // })\n\n // data = await schedulerLogModel.raw(sqlRaw)\n\n // const response = {\n // data: data.map(({ filtered_count, ...rest }) => rest),\n // total: data.length ? Number(data[0].filtered_count) : 0\n // }\n\n // get the listing data & count\n const { data, total } = await getListWithCount({\n model: schedulerLogModel,\n tableName: \"scheduler_logs\",\n mainAlias: \"slog\",\n countKey: `${ModelSchedulerLogFields.scheduler_log_id}`,\n accountId: rest.accountId,\n sqlRelationMaps,\n filters,\n filterColumns,\n sqlSelect,\n sqlSelectAgg: [],\n sqlRelation,\n sqlRelationAgg: [],\n sqlWhere,\n sqlGroupBy,\n sqlOrderby,\n sqlLimitOffset\n })\n\n const response = {\n data,\n total\n }\n\n return response\n\n };\n\n const removeSchedulerLoges = async ({ schedulerLogIds }: SchedulerLogRemoveProps) => {\n\n if (!schedulerLogIds.length) throwError('schedulerLogIds is required');\n\n const response = await schedulerLogModel.remove({ where: { [`${ModelSchedulerLogFields.scheduler_log_id}`]: { in: schedulerLogIds } } });\n\n return response\n };\n\n return {\n getSchedulerLog,\n createSchedulerLog,\n removeSchedulerLoges,\n listSchedulerLoges\n }\n\n}\n\n"]}