@lyxa.ai/marketing 1.0.1 → 1.0.4

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 (56) hide show
  1. package/dist/lib/index.js +2 -0
  2. package/dist/types/events/event-initializations.d.ts +2 -0
  3. package/dist/types/events/event-initializations.d.ts.map +1 -0
  4. package/dist/types/index.d.ts +2383 -1043
  5. package/dist/types/index.d.ts.map +1 -1
  6. package/dist/types/modules/coupon/routers/coupon.router.d.ts +2379 -2937
  7. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  8. package/dist/types/modules/coupon/services/coupon.service.d.ts +21 -2
  9. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  10. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -1
  11. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  12. package/dist/types/modules/coupon/services/global-coupon.service.d.ts +2 -1
  13. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  14. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -1
  15. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  16. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts +2 -1
  17. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  18. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +9 -2
  19. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  20. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +10 -2
  21. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  22. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +628 -3
  23. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  24. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +29 -41
  25. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  26. package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts +5 -3
  27. package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
  28. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +29 -41
  29. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  30. package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts +5 -3
  31. package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -1
  32. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +31 -79
  33. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -1
  34. package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +5 -3
  35. package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +1 -1
  36. package/dist/types/modules/marketing/routers/marketing.router.d.ts +16 -81
  37. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  38. package/dist/types/modules/marketing/services/marketing.service.d.ts +4 -3
  39. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  40. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts +2 -2
  41. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -1
  42. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +1 -0
  43. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
  44. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +2076 -62
  45. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  46. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +21 -0
  47. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
  48. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +75 -1
  49. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -1
  50. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +1335 -19
  51. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -1
  52. package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts +27 -3
  53. package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts.map +1 -1
  54. package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts +5 -3
  55. package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts.map +1 -1
  56. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"punch-marketing-history.router.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/routers/punch-marketing-history.router.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAqD2/E,CAAC;;;;;;;;;qBAAyS,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;qBAA0F,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;;;;;;4BAA/rD,CAAC;;;;;;;qBAA2O,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;qBAA0F,CAAC;sBAAiD,CAAC;uBAAoD,CAAC;wBAAoB,CAAC;wBAAsD,CAAC;yBAAuC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAD55E,CAAC"}
1
+ {"version":3,"file":"punch-marketing-history.router.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/routers/punch-marketing-history.router.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkB2C,CAAC;;;;;;;;;;;;;;4BAJhF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDH,CAAC"}
@@ -3,8 +3,11 @@ import { FilterDTO, PaginatedResponse, DeleteDTO } from '@lyxa.ai/core/dist/util
3
3
  import { ModelType } from '@typegoose/typegoose/lib/types';
4
4
  import { PunchMarketingHistory as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
5
5
  import { CreatePunchMarketingHistoryDTO as CreateDTO, UpdatePunchMarketingHistoryDTO as UpdateDTO } from '@modules/punch-marketing-history/validations';
6
+ import { CouponValidationOutputDTO, ValidateCouponDTO } from '@modules/coupon/validations';
6
7
  export declare class PunchMarketingHistoryService {
7
8
  private model;
9
+ private marketingModel;
10
+ private orderModel;
8
11
  constructor();
9
12
  /**
10
13
  * Create a new record
@@ -32,6 +35,24 @@ export declare class PunchMarketingHistoryService {
32
35
  * @param data Data for delete
33
36
  */
34
37
  deleteById(data: DeleteDTO): Promise<string>;
38
+ /**
39
+ * Increment punch history for user
40
+ * @param userId User ID
41
+ * @param orderId Order ID
42
+ */
43
+ incrementUserHistory(userId: mongoose.Types.ObjectId, orderId: mongoose.Types.ObjectId): Promise<string>;
44
+ /**
45
+ * Create new history with current punch marketing of the shop
46
+ * @param userId User ID
47
+ * @param order Order document
48
+ */
49
+ private createNewHistory;
50
+ applyPunchDiscountToOrder(userId: mongoose.Types.ObjectId, orderId: mongoose.Types.ObjectId): Promise<void>;
51
+ /**
52
+ * Get punch discount
53
+ * @param data Data to use for validating discount
54
+ */
55
+ getPunchDiscount(data: ValidateCouponDTO): Promise<CouponValidationOutputDTO>;
35
56
  }
36
57
  export declare const punchMarketingHistoryService: PunchMarketingHistoryService;
37
58
  //# sourceMappingURL=punch-marketing-history.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"punch-marketing-history.service.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/services/punch-marketing-history.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAC9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,MAAM,8CAA8C,CAAC;AAGtD,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAA6D;;IAM1E;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAclE;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAuB9E;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAazD;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
1
+ {"version":3,"file":"punch-marketing-history.service.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/services/punch-marketing-history.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAK9B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,MAAM,8CAA8C,CAAC;AAKtD,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAA6D;IAC1E,OAAO,CAAC,cAAc,CAA+D;IACrF,OAAO,CAAC,UAAU,CAA2D;;IAQ7E;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIlE;;;OAGG;IACU,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAczF;;;OAGG;IACU,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAqBxG;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAuB9E;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAczD;;;;OAIG;IACU,oBAAoB,CAChC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAC9B,OAAO,CAAC,MAAM,CAAC;IAkDlB;;;;OAIG;YACW,gBAAgB;IAyCjB,yBAAyB,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ;IAqCxG;;;OAGG;IACU,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAmC1F;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
@@ -3,7 +3,81 @@ export declare const punchMarketingHistoryTransformer: import("@lyxa.ai/core/dis
3
3
  user: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
4
4
  marketing: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
5
5
  completedOrders: import("zod").ZodOptional<import("zod").ZodNumber>;
6
- expiredAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>;
6
+ expiryDate: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>;
7
+ shop: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
8
+ completedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
9
+ couponExpiryDate: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
10
+ discountApplied: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>>;
11
+ marketingSnapshot: import("zod").ZodOptional<import("zod").ZodObject<{
12
+ marketingType: import("zod").ZodOptional<import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").MarketingType.PUNCH_MARKETING>>;
13
+ targetOrders: import("zod").ZodOptional<import("zod").ZodNumber>;
14
+ minimumOrderValue: import("zod").ZodOptional<import("zod").ZodNumber>;
15
+ dayLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
16
+ couponValueType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
17
+ couponValue: import("zod").ZodOptional<import("zod").ZodNumber>;
18
+ couponDurationInDays: import("zod").ZodOptional<import("zod").ZodNumber>;
19
+ shop: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
20
+ isAppliedByCompany: import("zod").ZodOptional<import("zod").ZodBoolean>;
21
+ duration: import("zod").ZodOptional<import("zod").ZodObject<{
22
+ start: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>;
23
+ end: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ start: Date;
26
+ end?: Date | undefined;
27
+ }, {
28
+ start: string | Date;
29
+ end?: string | Date | undefined;
30
+ }>>;
31
+ status: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
32
+ pausedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
33
+ _id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
34
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
35
+ marketingType: import("zod").ZodOptional<import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").MarketingType.PUNCH_MARKETING>>;
36
+ targetOrders: import("zod").ZodOptional<import("zod").ZodNumber>;
37
+ minimumOrderValue: import("zod").ZodOptional<import("zod").ZodNumber>;
38
+ dayLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
39
+ couponValueType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
40
+ couponValue: import("zod").ZodOptional<import("zod").ZodNumber>;
41
+ couponDurationInDays: import("zod").ZodOptional<import("zod").ZodNumber>;
42
+ shop: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
43
+ isAppliedByCompany: import("zod").ZodOptional<import("zod").ZodBoolean>;
44
+ duration: import("zod").ZodOptional<import("zod").ZodObject<{
45
+ start: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>;
46
+ end: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>;
47
+ }, "strip", import("zod").ZodTypeAny, {
48
+ start: Date;
49
+ end?: Date | undefined;
50
+ }, {
51
+ start: string | Date;
52
+ end?: string | Date | undefined;
53
+ }>>;
54
+ status: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
55
+ pausedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
56
+ _id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
57
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
58
+ marketingType: import("zod").ZodOptional<import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").MarketingType.PUNCH_MARKETING>>;
59
+ targetOrders: import("zod").ZodOptional<import("zod").ZodNumber>;
60
+ minimumOrderValue: import("zod").ZodOptional<import("zod").ZodNumber>;
61
+ dayLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
62
+ couponValueType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
63
+ couponValue: import("zod").ZodOptional<import("zod").ZodNumber>;
64
+ couponDurationInDays: import("zod").ZodOptional<import("zod").ZodNumber>;
65
+ shop: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
66
+ isAppliedByCompany: import("zod").ZodOptional<import("zod").ZodBoolean>;
67
+ duration: import("zod").ZodOptional<import("zod").ZodObject<{
68
+ start: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>;
69
+ end: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>;
70
+ }, "strip", import("zod").ZodTypeAny, {
71
+ start: Date;
72
+ end?: Date | undefined;
73
+ }, {
74
+ start: string | Date;
75
+ end?: string | Date | undefined;
76
+ }>>;
77
+ status: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
78
+ pausedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, Date, string>, import("zod").ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
79
+ _id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
80
+ }, import("zod").ZodTypeAny, "passthrough">>>;
7
81
  _id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
8
82
  }, import("zod").ZodTypeAny, "passthrough">>;
9
83
  //# sourceMappingURL=punch-marketing-history.transformer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"punch-marketing-history.transformer.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/transformers/punch-marketing-history.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,IAAI,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAMzH,eAAO,MAAM,gCAAgC;;;;;;4CAAwC,CAAC"}
1
+ {"version":3,"file":"punch-marketing-history.transformer.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/transformers/punch-marketing-history.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,IAAI,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAMzH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}