@lyxa.ai/marketing 1.0.0 → 1.0.3

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 (57) hide show
  1. package/dist/types/index.d.ts +3300 -1952
  2. package/dist/types/index.d.ts.map +1 -1
  3. package/dist/types/modules/coupon/routers/coupon.router.d.ts +1477 -1924
  4. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  5. package/dist/types/modules/coupon/services/coupon.service.d.ts +23 -28
  6. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  7. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +2 -1
  8. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
  9. package/dist/types/modules/coupon/services/global-coupon.service.d.ts +2 -1
  10. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
  11. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +2 -1
  12. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
  13. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts +2 -1
  14. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
  15. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +9 -2
  16. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
  17. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +10 -2
  18. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
  19. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +41 -41
  20. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +1159 -1120
  21. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
  22. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +239 -70
  23. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  24. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +57 -57
  25. package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +57 -57
  26. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +57 -57
  27. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +57 -57
  28. package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +7 -7
  29. package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +57 -57
  30. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +2 -38
  31. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  32. package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +1 -1
  33. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +2 -38
  34. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  35. package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts +1 -1
  36. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +26 -98
  37. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -1
  38. package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +1 -1
  39. package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +18 -18
  40. package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +1 -1
  41. package/dist/types/modules/marketing/routers/marketing.router.d.ts +4 -78
  42. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  43. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  44. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts +2 -2
  45. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -1
  46. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +2 -1
  47. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
  48. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +2076 -62
  49. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  50. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +21 -0
  51. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
  52. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +75 -1
  53. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -1
  54. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +1336 -20
  55. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -1
  56. package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts +1 -1
  57. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { DocumentType } from '@typegoose/typegoose';
1
+ import { DocumentType, mongoose } from '@typegoose/typegoose';
2
2
  import { PunchMarketing as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
3
3
  import { CreatePunchMarketingDTO as CreateDTO, UpdatePunchMarketingDTO as UpdateDTO } from '@modules/marketing/validations';
4
4
  export declare class PunchMarketingService {
@@ -14,7 +14,7 @@ export declare class PunchMarketingService {
14
14
  * @param id ID of the record
15
15
  * @param data Data to update
16
16
  */
17
- update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
17
+ update(id: mongoose.Types.ObjectId, data: UpdateDTO): Promise<DocumentType<Model>>;
18
18
  }
19
19
  export declare const punchMarketingService: PunchMarketingService;
20
20
  //# sourceMappingURL=punch-marketing.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"punch-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/punch-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAY,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAuB,cAAc,IAAI,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACzG,OAAO,EACN,uBAAuB,IAAI,SAAS,EACpC,uBAAuB,IAAI,SAAS,EACpC,MAAM,gCAAgC,CAAC;AAExC,qBACa,qBAAqB;IACjC,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;CAsB9E;AAED,eAAO,MAAM,qBAAqB,uBAAuC,CAAC"}
1
+ {"version":3,"file":"punch-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/punch-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAuB,cAAc,IAAI,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACzG,OAAO,EACN,uBAAuB,IAAI,SAAS,EACpC,uBAAuB,IAAI,SAAS,EACpC,MAAM,gCAAgC,CAAC;AAExC,qBACa,qBAAqB;IACjC,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;CAsB/F;AAED,eAAO,MAAM,qBAAqB,uBAAuC,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { z, ZodType } from 'zod';
2
2
  export declare const AllMarketingsValidationSchema: ZodType;
3
3
  export declare const AllMarketingsSchema: ZodType;
4
+ export declare const AllMarketingsUpdateSchema: ZodType;
4
5
  export declare const MarketingResponseSchema: z.ZodObject<{
5
6
  success: z.ZodBoolean;
6
- message: z.ZodString;
7
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
7
8
  data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
8
9
  metadata: z.ZodOptional<z.ZodObject<{
9
10
  page: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"all-marketings.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/all-marketings.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAiBjC,eAAO,MAAM,6BAA6B,EAAE,OAO1C,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,OAOhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAGjF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"all-marketings.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/all-marketings.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAuBjC,eAAO,MAAM,6BAA6B,EAAE,OAO1C,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,OAOhC,CAAC;AAGH,eAAO,MAAM,yBAAyB,EAAE,OAOtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAGjF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}