@lyxa.ai/marketing 1.0.1 → 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 (42) hide show
  1. package/dist/types/index.d.ts +2221 -1021
  2. package/dist/types/index.d.ts.map +1 -1
  3. package/dist/types/modules/coupon/routers/coupon.router.d.ts +462 -1057
  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 +16 -2
  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/validations/coupon.validation.d.ts +172 -3
  20. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
  21. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +2 -38
  22. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
  23. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +2 -38
  24. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
  25. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +4 -76
  26. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -1
  27. package/dist/types/modules/marketing/routers/marketing.router.d.ts +4 -78
  28. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  29. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  30. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts +2 -2
  31. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -1
  32. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +1 -0
  33. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
  34. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +2076 -62
  35. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
  36. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +21 -0
  37. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
  38. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +75 -1
  39. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -1
  40. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +1335 -19
  41. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -1
  42. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"coupon.router.d.ts","sourceRoot":"/","sources":["modules/coupon/routers/coupon.router.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoFlB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DocumentType, mongoose } from '@typegoose/typegoose';
2
2
  import { Coupon as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
3
- import { AllCouponsValidationDTO, GetUserCouponDTO } from '@modules/coupon/validations';
3
+ import { AllCouponsValidationDTO, CouponValidationOutputDTO, ValidateCouponDTO } from '@modules/coupon/validations';
4
4
  import { FilterDTO, PaginatedResponse, DeleteDTO } from '@lyxa.ai/core/dist/utilities/validation';
5
5
  import { ModelType } from '@typegoose/typegoose/lib/types';
6
6
  export declare class CouponService {
@@ -39,11 +39,25 @@ export declare class CouponService {
39
39
  * Get User Coupons
40
40
  * @param data User and pagination data
41
41
  */
42
- getUserCoupons(data: GetUserCouponDTO): Promise<{
42
+ getUserCoupons(user: mongoose.Types.ObjectId | undefined, page?: number, size?: number): Promise<{
43
43
  available: Array<DocumentType<Model>>;
44
44
  used: Array<DocumentType<Model>>;
45
45
  expired: Array<DocumentType<Model>>;
46
46
  }>;
47
+ validateCoupon(data: ValidateCouponDTO): Promise<CouponValidationOutputDTO>;
48
+ private isCouponExpired;
49
+ /**
50
+ *
51
+ * @param coupon Base coupon document
52
+ * @param user ID of the user trying to user the coupon
53
+ * @param orderAmount Order subtotal
54
+ * @returns True if coupon is valid
55
+ */
56
+ private validateBaseCoupon;
57
+ private checkIfNewUser;
58
+ private getCouponOrdersForUser;
59
+ private updateCouponExpiry;
60
+ private getCouponDiscountTotals;
47
61
  private assignCouponToUser;
48
62
  private assignCouponToMultipleUser;
49
63
  private removeCouponFromUser;
@@ -1 +1 @@
1
- {"version":3,"file":"coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/coupon.service.ts"],"names":[],"mappings":"AA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AAC;IAqBxG;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IA0I5F;;;OAGG;IACU,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;IAiBzD;;;OAGG;IACU,cAAc,CAC1B,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,SAAS,EACzC,IAAI,GAAE,MAAU,EAChB,IAAI,GAAE,MAAU,GACd,OAAO,CAAC;QACV,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QACtC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QACjC,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;KACpC,CAAC;IAkEW,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAkExF,OAAO,CAAC,eAAe;IAQvB;;;;;;OAMG;YACW,kBAAkB;YAiBlB,cAAc;YAQd,sBAAsB;YAUtB,kBAAkB;YA+ClB,uBAAuB;YAqCvB,kBAAkB;YAelB,0BAA0B;YAkB1B,oBAAoB;YAepB,4BAA4B;YAkB5B,6BAA6B;CAQ3C;AAED,eAAO,MAAM,aAAa,eAA+B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DocumentType } from '@typegoose/typegoose';
2
2
  import { CustomCoupon as Model } from '@lyxa.ai/core/dist/libraries/mongo/models/';
3
- import { CreateCustomCouponDTO as CreateDTO, UpdateCustomCouponDTO as UpdateDTO } from '@modules/coupon/validations';
3
+ import { CouponValidationOutputDTO, CreateCustomCouponDTO as CreateDTO, UpdateCustomCouponDTO as UpdateDTO, ValidateCouponDTO } from '@modules/coupon/validations';
4
4
  export declare class CustomCouponService {
5
5
  private model;
6
6
  constructor();
@@ -15,6 +15,7 @@ export declare class CustomCouponService {
15
15
  * @param data Data to update
16
16
  */
17
17
  update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
18
+ validateCoupon(data: ValidateCouponDTO, couponDocument: DocumentType<Model>): Promise<CouponValidationOutputDTO>;
18
19
  }
19
20
  export declare const customCouponService: CustomCouponService;
20
21
  //# sourceMappingURL=custom-coupon.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/custom-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,YAAY,IAAI,KAAK,EACrB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,qBAAqB,IAAI,SAAS,EAClC,qBAAqB,IAAI,SAAS,EAClC,MAAM,6BAA6B,CAAC;AAErC,qBACa,mBAAmB;IAC/B,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;CAuB9E;AAED,eAAO,MAAM,mBAAmB,qBAAqC,CAAC"}
1
+ {"version":3,"file":"custom-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/custom-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAqB,YAAY,IAAI,KAAK,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EACN,yBAAyB,EACzB,qBAAqB,IAAI,SAAS,EAClC,qBAAqB,IAAI,SAAS,EAClC,iBAAiB,EACjB,MAAM,6BAA6B,CAAC;AAIrC,qBACa,mBAAmB;IAC/B,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;IAuBjE,cAAc,CAC1B,IAAI,EAAE,iBAAiB,EACvB,cAAc,EAAE,YAAY,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,yBAAyB,CAAC;CAsBrC;AAED,eAAO,MAAM,mBAAmB,qBAAqC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DocumentType } from '@typegoose/typegoose';
2
2
  import { GlobalCoupon as Model } from '@lyxa.ai/core/dist/libraries/mongo/models/';
3
- import { CreateGlobalCouponDTO as CreateDTO, UpdateGlobalCouponDTO as UpdateDTO } from '@modules/coupon/validations';
3
+ import { CouponValidationOutputDTO, CreateGlobalCouponDTO as CreateDTO, UpdateGlobalCouponDTO as UpdateDTO, ValidateCouponDTO } from '@modules/coupon/validations';
4
4
  export declare class GlobalCouponService {
5
5
  private model;
6
6
  constructor();
@@ -15,6 +15,7 @@ export declare class GlobalCouponService {
15
15
  * @param data Data to update
16
16
  */
17
17
  update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
18
+ validateCoupon(data: ValidateCouponDTO, couponDocument: DocumentType<Model>): Promise<CouponValidationOutputDTO>;
18
19
  }
19
20
  export declare const globalCouponService: GlobalCouponService;
20
21
  //# sourceMappingURL=global-coupon.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/global-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,YAAY,IAAI,KAAK,EACrB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,qBAAqB,IAAI,SAAS,EAClC,qBAAqB,IAAI,SAAS,EAClC,MAAM,6BAA6B,CAAC;AAGrC,qBACa,mBAAmB;IAC/B,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IA0BlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;CAuB9E;AAED,eAAO,MAAM,mBAAmB,qBAAqC,CAAC"}
1
+ {"version":3,"file":"global-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/global-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAqB,YAAY,IAAI,KAAK,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EACN,yBAAyB,EACzB,qBAAqB,IAAI,SAAS,EAClC,qBAAqB,IAAI,SAAS,EAClC,iBAAiB,EACjB,MAAM,6BAA6B,CAAC;AAIrC,qBACa,mBAAmB;IAC/B,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAwBlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAsBjE,cAAc,CAC1B,IAAI,EAAE,iBAAiB,EACvB,cAAc,EAAE,YAAY,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,yBAAyB,CAAC;CAsBrC;AAED,eAAO,MAAM,mBAAmB,qBAAqC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DocumentType } from '@typegoose/typegoose';
2
2
  import { IndividualStoreCoupon as Model } from '@lyxa.ai/core/dist/libraries/mongo/models/';
3
- import { CreateIndividualStoreCouponDTO as CreateDTO, UpdateIndividualStoreCouponDTO as UpdateDTO } from '@modules/coupon/validations';
3
+ import { CouponValidationOutputDTO, CreateIndividualStoreCouponDTO as CreateDTO, UpdateIndividualStoreCouponDTO as UpdateDTO, ValidateCouponDTO } from '@modules/coupon/validations';
4
4
  export declare class IndividualStoreCouponService {
5
5
  private model;
6
6
  constructor();
@@ -15,6 +15,7 @@ export declare class IndividualStoreCouponService {
15
15
  * @param data Data to update
16
16
  */
17
17
  update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
18
+ validateCoupon(data: ValidateCouponDTO, couponDocument: DocumentType<Model>): Promise<CouponValidationOutputDTO>;
18
19
  }
19
20
  export declare const individualStoreCouponService: IndividualStoreCouponService;
20
21
  //# sourceMappingURL=individual-store-coupon.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"individual-store-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/individual-store-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAC9B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,MAAM,6BAA6B,CAAC;AAErC,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAMlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;CAsB9E;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
1
+ {"version":3,"file":"individual-store-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/individual-store-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,qBAAqB,IAAI,KAAK,EAC9B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,yBAAyB,EACzB,8BAA8B,IAAI,SAAS,EAC3C,8BAA8B,IAAI,SAAS,EAC3C,iBAAiB,EACjB,MAAM,6BAA6B,CAAC;AAIrC,qBACa,4BAA4B;IACxC,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAMlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAuBjE,cAAc,CAC1B,IAAI,EAAE,iBAAiB,EACvB,cAAc,EAAE,YAAY,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,yBAAyB,CAAC;CA4BrC;AAED,eAAO,MAAM,4BAA4B,8BAA8C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DocumentType } from '@typegoose/typegoose';
2
2
  import { IndividualUserCoupon as Model } from '@lyxa.ai/core/dist/libraries/mongo/models/';
3
- import { CreateIndividualUserCouponDTO as CreateDTO, UpdateIndividualUserCouponDTO as UpdateDTO } from '@modules/coupon/validations';
3
+ import { CouponValidationOutputDTO, CreateIndividualUserCouponDTO as CreateDTO, UpdateIndividualUserCouponDTO as UpdateDTO, ValidateCouponDTO } from '@modules/coupon/validations';
4
4
  export declare class IndividualUserCouponService {
5
5
  private model;
6
6
  constructor();
@@ -15,6 +15,7 @@ export declare class IndividualUserCouponService {
15
15
  * @param data Data to update
16
16
  */
17
17
  update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
18
+ validateCoupon(data: ValidateCouponDTO, couponDocument: DocumentType<Model>): Promise<CouponValidationOutputDTO>;
18
19
  }
19
20
  export declare const individualUserCouponService: IndividualUserCouponService;
20
21
  //# sourceMappingURL=individual-user-coupon.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"individual-user-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/individual-user-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,oBAAoB,IAAI,KAAK,EAC7B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,6BAA6B,IAAI,SAAS,EAC1C,6BAA6B,IAAI,SAAS,EAC1C,MAAM,6BAA6B,CAAC;AAErC,qBACa,2BAA2B;IACvC,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAMlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;CA4B9E;AAED,eAAO,MAAM,2BAA2B,6BAA6C,CAAC"}
1
+ {"version":3,"file":"individual-user-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/individual-user-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,oBAAoB,IAAI,KAAK,EAC7B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,yBAAyB,EACzB,6BAA6B,IAAI,SAAS,EAC1C,6BAA6B,IAAI,SAAS,EAC1C,iBAAiB,EACjB,MAAM,6BAA6B,CAAC;AAIrC,qBACa,2BAA2B;IACvC,OAAO,CAAC,KAAK,CAAC;;IAMd;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAMlE;;;;OAIG;IACU,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IA2BjE,cAAc,CAC1B,IAAI,EAAE,iBAAiB,EACvB,cAAc,EAAE,YAAY,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,yBAAyB,CAAC;CA4BrC;AAED,eAAO,MAAM,2BAA2B,6BAA6C,CAAC"}
@@ -1,8 +1,10 @@
1
- import { DocumentType } from '@typegoose/typegoose';
1
+ import { DocumentType, mongoose } from '@typegoose/typegoose';
2
2
  import { ReferralCodeCoupon as Model } from '@lyxa.ai/core/dist/libraries/mongo/models';
3
- import { CreateReferralCodeCouponDTO as CreateDTO, UpdateReferralCodeCouponDTO as UpdateDTO } from '@modules/coupon/validations';
3
+ import { CouponValidationOutputDTO, CreateReferralCodeCouponDTO as CreateDTO, UpdateReferralCodeCouponDTO as UpdateDTO, ValidateCouponDTO } from '@modules/coupon/validations';
4
4
  export declare class ReferralCodeCouponService {
5
5
  private model;
6
+ private settingsModel;
7
+ private userModel;
6
8
  constructor();
7
9
  /**
8
10
  * Create a new record
@@ -15,6 +17,11 @@ export declare class ReferralCodeCouponService {
15
17
  * @param data Data to update
16
18
  */
17
19
  update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
20
+ private generateCode;
21
+ private generateCouponCode;
22
+ createReferralCodeForUser(userId: mongoose.Types.ObjectId | undefined): Promise<DocumentType<Model>>;
23
+ validateCoupon(data: ValidateCouponDTO): Promise<CouponValidationOutputDTO>;
24
+ private getReferralSettings;
18
25
  }
19
26
  export declare const referralCodeCouponService: ReferralCodeCouponService;
20
27
  //# sourceMappingURL=referral-code-coupon.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"referral-code-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/referral-code-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,kBAAkB,IAAI,KAAK,EAC3B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,2BAA2B,IAAI,SAAS,EACxC,2BAA2B,IAAI,SAAS,EACxC,MAAM,6BAA6B,CAAA;AAEpC,qBACa,yBAAyB;IACrC,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;CAuB9E;AAED,eAAO,MAAM,yBAAyB,2BAA2C,CAAC"}
1
+ {"version":3,"file":"referral-code-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/referral-code-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,kBAAkB,IAAI,KAAK,EAK3B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,yBAAyB,EACzB,2BAA2B,IAAI,SAAS,EACxC,2BAA2B,IAAI,SAAS,EACxC,iBAAiB,EACjB,MAAM,6BAA6B,CAAC;AAMrC,qBACa,yBAAyB;IACrC,OAAO,CAAC,KAAK,CAAC;IACd,OAAO,CAAC,aAAa,CAAiE;IACtF,OAAO,CAAC,SAAS,CAA2C;;IAS5D;;;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;IAuB9E,OAAO,CAAC,YAAY;YASN,kBAAkB;IAanB,yBAAyB,CACrC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,SAAS,GACzC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAkClB,cAAc,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,CAAC;YAqC1E,mBAAmB;CAUjC;AAED,eAAO,MAAM,yBAAyB,2BAA2C,CAAC"}
@@ -1,8 +1,11 @@
1
- import { DocumentType } from '@typegoose/typegoose';
1
+ import { DocumentType, mongoose } from '@typegoose/typegoose';
2
2
  import { ReferralRewardCoupon as Model } from '@lyxa.ai/core/dist/libraries/mongo/models/';
3
- import { CreateReferralRewardCouponDTO as CreateDTO, UpdateReferralRewardCouponDTO as UpdateDTO } from '@modules/coupon/validations';
3
+ import { CouponValidationOutputDTO, CreateReferralRewardCouponDTO as CreateDTO, UpdateReferralRewardCouponDTO as UpdateDTO, ValidateCouponDTO } from '@modules/coupon/validations';
4
4
  export declare class ReferralRewardCouponService {
5
5
  private model;
6
+ private settingsModel;
7
+ private userModel;
8
+ private orderModel;
6
9
  constructor();
7
10
  /**
8
11
  * Create a new record
@@ -15,6 +18,11 @@ export declare class ReferralRewardCouponService {
15
18
  * @param data Data to update
16
19
  */
17
20
  update(id: string, data: UpdateDTO): Promise<DocumentType<Model>>;
21
+ private generateCode;
22
+ private generateCouponCode;
23
+ giveReferralRewardToUser(userId: mongoose.Types.ObjectId, orderId: mongoose.Types.ObjectId): Promise<void>;
24
+ validateCoupon(data: ValidateCouponDTO, couponDocument: DocumentType<Model>): Promise<CouponValidationOutputDTO>;
25
+ private getReferralSettings;
18
26
  }
19
27
  export declare const referralRewardCouponService: ReferralRewardCouponService;
20
28
  //# sourceMappingURL=referral-reward-coupon.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"referral-reward-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/referral-reward-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAEN,oBAAoB,IAAI,KAAK,EAC7B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,6BAA6B,IAAI,SAAS,EAC1C,6BAA6B,IAAI,SAAS,EAC1C,MAAM,6BAA6B,CAAC;AAErC,qBACa,2BAA2B;IACvC,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;CAuB9E;AAED,eAAO,MAAM,2BAA2B,6BAA6C,CAAC"}
1
+ {"version":3,"file":"referral-reward-coupon.service.d.ts","sourceRoot":"/","sources":["modules/coupon/services/referral-reward-coupon.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,oBAAoB,IAAI,KAAK,EAO7B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,yBAAyB,EACzB,6BAA6B,IAAI,SAAS,EAC1C,6BAA6B,IAAI,SAAS,EAC1C,iBAAiB,EACjB,MAAM,6BAA6B,CAAC;AAKrC,qBACa,2BAA2B;IACvC,OAAO,CAAC,KAAK,CAA4D;IACzE,OAAO,CAAC,aAAa,CAAiE;IACtF,OAAO,CAAC,SAAS,CAA2C;IAC5D,OAAO,CAAC,UAAU,CAA2D;;IAU7E;;;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;IAuB9E,OAAO,CAAC,YAAY;YASN,kBAAkB;IAanB,wBAAwB,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ;IAiD1F,cAAc,CAC1B,IAAI,EAAE,iBAAiB,EACvB,cAAc,EAAE,YAAY,CAAC,KAAK,CAAC,GACjC,OAAO,CAAC,yBAAyB,CAAC;YAiCvB,mBAAmB;CAUjC;AAED,eAAO,MAAM,2BAA2B,6BAA6C,CAAC"}
@@ -289,18 +289,185 @@ export { CouponValidationSchema, CouponSchema, CouponIdSchema as CouponIdValidat
289
289
  * Schema for getting user coupons
290
290
  */
291
291
  export declare const GetUserCouponSchema: z.ZodObject<{
292
- user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
292
+ user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
293
293
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
294
294
  size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
295
295
  }, "strip", z.ZodTypeAny, {
296
- user: import("mongoose").Types.ObjectId;
297
296
  page: number;
298
297
  size: number;
298
+ user?: import("mongoose").Types.ObjectId | undefined;
299
299
  }, {
300
- user: string | import("mongoose").Types.ObjectId;
300
+ user?: string | import("mongoose").Types.ObjectId | undefined;
301
301
  page?: number | undefined;
302
302
  size?: number | undefined;
303
303
  }>;
304
+ /**
305
+ * Schema for validating coupons
306
+ */
307
+ export declare const ValidateCouponSchema: z.ZodObject<{
308
+ user: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
309
+ shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
310
+ coupon: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
311
+ amountBeforeCoupon: z.ZodNumber;
312
+ secondaryAmountBeforeCoupon: z.ZodNumber;
313
+ }, "strip", z.ZodTypeAny, {
314
+ shop: import("mongoose").Types.ObjectId;
315
+ user: import("mongoose").Types.ObjectId;
316
+ amountBeforeCoupon: number;
317
+ secondaryAmountBeforeCoupon: number;
318
+ coupon?: string | undefined;
319
+ }, {
320
+ shop: string | import("mongoose").Types.ObjectId;
321
+ user: string | import("mongoose").Types.ObjectId;
322
+ amountBeforeCoupon: number;
323
+ secondaryAmountBeforeCoupon: number;
324
+ coupon?: string | undefined;
325
+ }>;
326
+ /**
327
+ * Schema for coupon validation output
328
+ */
329
+ export declare const CouponValidationOutputSchema: z.ZodObject<{
330
+ isValid: z.ZodDefault<z.ZodBoolean>;
331
+ amountAfterCoupon: z.ZodOptional<z.ZodNumber>;
332
+ secondaryAmountAfterCoupon: z.ZodOptional<z.ZodNumber>;
333
+ discountAmount: z.ZodOptional<z.ZodNumber>;
334
+ secondaryDiscountAmount: z.ZodOptional<z.ZodNumber>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ isValid: boolean;
337
+ amountAfterCoupon?: number | undefined;
338
+ secondaryAmountAfterCoupon?: number | undefined;
339
+ discountAmount?: number | undefined;
340
+ secondaryDiscountAmount?: number | undefined;
341
+ }, {
342
+ isValid?: boolean | undefined;
343
+ amountAfterCoupon?: number | undefined;
344
+ secondaryAmountAfterCoupon?: number | undefined;
345
+ discountAmount?: number | undefined;
346
+ secondaryDiscountAmount?: number | undefined;
347
+ }>;
348
+ export declare const CouponValidationResponseSchema: z.ZodObject<{
349
+ success: z.ZodBoolean;
350
+ message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
351
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
352
+ metadata: z.ZodOptional<z.ZodObject<{
353
+ page: z.ZodNumber;
354
+ size: z.ZodNumber;
355
+ totalElements: z.ZodNumber;
356
+ totalPages: z.ZodNumber;
357
+ }, "strip", z.ZodTypeAny, {
358
+ page: number;
359
+ size: number;
360
+ totalElements: number;
361
+ totalPages: number;
362
+ }, {
363
+ page: number;
364
+ size: number;
365
+ totalElements: number;
366
+ totalPages: number;
367
+ }>>;
368
+ documents: z.ZodArray<z.ZodType<{
369
+ isValid?: boolean | undefined;
370
+ amountAfterCoupon?: number | undefined;
371
+ secondaryAmountAfterCoupon?: number | undefined;
372
+ discountAmount?: number | undefined;
373
+ secondaryDiscountAmount?: number | undefined;
374
+ }, z.ZodTypeDef, {
375
+ isValid?: boolean | undefined;
376
+ amountAfterCoupon?: number | undefined;
377
+ secondaryAmountAfterCoupon?: number | undefined;
378
+ discountAmount?: number | undefined;
379
+ secondaryDiscountAmount?: number | undefined;
380
+ }>, "many">;
381
+ }, "strip", z.ZodTypeAny, {
382
+ documents: {
383
+ isValid?: boolean | undefined;
384
+ amountAfterCoupon?: number | undefined;
385
+ secondaryAmountAfterCoupon?: number | undefined;
386
+ discountAmount?: number | undefined;
387
+ secondaryDiscountAmount?: number | undefined;
388
+ }[];
389
+ metadata?: {
390
+ page: number;
391
+ size: number;
392
+ totalElements: number;
393
+ totalPages: number;
394
+ } | undefined;
395
+ }, {
396
+ documents: {
397
+ isValid?: boolean | undefined;
398
+ amountAfterCoupon?: number | undefined;
399
+ secondaryAmountAfterCoupon?: number | undefined;
400
+ discountAmount?: number | undefined;
401
+ secondaryDiscountAmount?: number | undefined;
402
+ }[];
403
+ metadata?: {
404
+ page: number;
405
+ size: number;
406
+ totalElements: number;
407
+ totalPages: number;
408
+ } | undefined;
409
+ }>, z.ZodType<{
410
+ isValid?: boolean | undefined;
411
+ amountAfterCoupon?: number | undefined;
412
+ secondaryAmountAfterCoupon?: number | undefined;
413
+ discountAmount?: number | undefined;
414
+ secondaryDiscountAmount?: number | undefined;
415
+ }, z.ZodTypeDef, {
416
+ isValid?: boolean | undefined;
417
+ amountAfterCoupon?: number | undefined;
418
+ secondaryAmountAfterCoupon?: number | undefined;
419
+ discountAmount?: number | undefined;
420
+ secondaryDiscountAmount?: number | undefined;
421
+ }>]>>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ message: string;
424
+ success: boolean;
425
+ data?: {
426
+ isValid?: boolean | undefined;
427
+ amountAfterCoupon?: number | undefined;
428
+ secondaryAmountAfterCoupon?: number | undefined;
429
+ discountAmount?: number | undefined;
430
+ secondaryDiscountAmount?: number | undefined;
431
+ } | {
432
+ documents: {
433
+ isValid?: boolean | undefined;
434
+ amountAfterCoupon?: number | undefined;
435
+ secondaryAmountAfterCoupon?: number | undefined;
436
+ discountAmount?: number | undefined;
437
+ secondaryDiscountAmount?: number | undefined;
438
+ }[];
439
+ metadata?: {
440
+ page: number;
441
+ size: number;
442
+ totalElements: number;
443
+ totalPages: number;
444
+ } | undefined;
445
+ } | undefined;
446
+ }, {
447
+ message: string;
448
+ success: boolean;
449
+ data?: {
450
+ isValid?: boolean | undefined;
451
+ amountAfterCoupon?: number | undefined;
452
+ secondaryAmountAfterCoupon?: number | undefined;
453
+ discountAmount?: number | undefined;
454
+ secondaryDiscountAmount?: number | undefined;
455
+ } | {
456
+ documents: {
457
+ isValid?: boolean | undefined;
458
+ amountAfterCoupon?: number | undefined;
459
+ secondaryAmountAfterCoupon?: number | undefined;
460
+ discountAmount?: number | undefined;
461
+ secondaryDiscountAmount?: number | undefined;
462
+ }[];
463
+ metadata?: {
464
+ page: number;
465
+ size: number;
466
+ totalElements: number;
467
+ totalPages: number;
468
+ } | undefined;
469
+ } | undefined;
470
+ }>;
304
471
  /**
305
472
  * Export DTO types
306
473
  */
@@ -308,4 +475,6 @@ export type CreateCouponDTO = DTO<typeof CouponValidationSchema>;
308
475
  export type CouponDTO = DTO<typeof CouponSchema>;
309
476
  export type UpdateCouponDTO = DTO<typeof UpdateCouponSchema>;
310
477
  export type GetUserCouponDTO = DTO<typeof GetUserCouponSchema>;
478
+ export type ValidateCouponDTO = DTO<typeof ValidateCouponSchema>;
479
+ export type CouponValidationOutputDTO = DTO<typeof CouponValidationOutputSchema>;
311
480
  //# sourceMappingURL=coupon.validation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAc,MAAM,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAI1G;;GAEG;AACH,eAAO,MAAM,YAAY;;;CAcxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBtB,CAAC;AASF;;GAEG;AACH,QAAA,MACa,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACpB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAChB,cAAc,mNACV,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACmB,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,sBAAsB,EACtB,YAAY,EACZ,cAAc,IAAI,wBAAwB,EAC1C,kBAAkB,GAClB,CAAC;AAEF;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AO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;EAMvC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqD,CAAC;AAEjG;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACjE,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC/D,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACjE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -217,25 +217,7 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
217
217
  select?: Record<string, 0 | 1> | undefined;
218
218
  size?: number | undefined;
219
219
  query?: Record<string, any> | undefined;
220
- populate?: {
221
- path: string;
222
- match?: Record<string, any> | undefined;
223
- select?: Record<string, 0 | 1> | undefined;
224
- options?: {
225
- sort?: Record<string, 1 | -1> | undefined;
226
- skip?: number | undefined;
227
- limit?: number | undefined;
228
- } | undefined;
229
- } | {
230
- path: string;
231
- match?: Record<string, any> | undefined;
232
- select?: Record<string, 0 | 1> | undefined;
233
- options?: {
234
- sort?: Record<string, 1 | -1> | undefined;
235
- skip?: number | undefined;
236
- limit?: number | undefined;
237
- } | undefined;
238
- }[] | undefined;
220
+ populate?: any;
239
221
  } | undefined;
240
222
  _input_out: {
241
223
  page: number;
@@ -247,25 +229,7 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
247
229
  sort?: Record<string, 1 | -1> | undefined;
248
230
  select?: Record<string, 0 | 1> | undefined;
249
231
  query?: Record<string, any> | undefined;
250
- populate?: {
251
- path: string;
252
- match?: Record<string, any> | undefined;
253
- select?: Record<string, 0 | 1> | undefined;
254
- options?: {
255
- sort?: Record<string, 1 | -1> | undefined;
256
- skip?: number | undefined;
257
- limit?: number | undefined;
258
- } | undefined;
259
- } | {
260
- path: string;
261
- match?: Record<string, any> | undefined;
262
- select?: Record<string, 0 | 1> | undefined;
263
- options?: {
264
- sort?: Record<string, 1 | -1> | undefined;
265
- skip?: number | undefined;
266
- limit?: number | undefined;
267
- } | undefined;
268
- }[] | undefined;
232
+ populate?: any;
269
233
  } | undefined;
270
234
  _output_in: {
271
235
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"deal-setting.router.d.ts","sourceRoot":"/","sources":["modules/deal-setting/routers/deal-setting.router.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAqDopF,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;;;;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-281,25 +281,7 @@ export declare const featuredSettingRouter: import("@trpc/server").CreateRouterI
281
281
  select?: Record<string, 0 | 1> | undefined;
282
282
  size?: number | undefined;
283
283
  query?: Record<string, any> | undefined;
284
- populate?: {
285
- path: string;
286
- match?: Record<string, any> | undefined;
287
- select?: Record<string, 0 | 1> | undefined;
288
- options?: {
289
- sort?: Record<string, 1 | -1> | undefined;
290
- skip?: number | undefined;
291
- limit?: number | undefined;
292
- } | undefined;
293
- } | {
294
- path: string;
295
- match?: Record<string, any> | undefined;
296
- select?: Record<string, 0 | 1> | undefined;
297
- options?: {
298
- sort?: Record<string, 1 | -1> | undefined;
299
- skip?: number | undefined;
300
- limit?: number | undefined;
301
- } | undefined;
302
- }[] | undefined;
284
+ populate?: any;
303
285
  } | undefined;
304
286
  _input_out: {
305
287
  page: number;
@@ -311,25 +293,7 @@ export declare const featuredSettingRouter: import("@trpc/server").CreateRouterI
311
293
  sort?: Record<string, 1 | -1> | undefined;
312
294
  select?: Record<string, 0 | 1> | undefined;
313
295
  query?: Record<string, any> | undefined;
314
- populate?: {
315
- path: string;
316
- match?: Record<string, any> | undefined;
317
- select?: Record<string, 0 | 1> | undefined;
318
- options?: {
319
- sort?: Record<string, 1 | -1> | undefined;
320
- skip?: number | undefined;
321
- limit?: number | undefined;
322
- } | undefined;
323
- } | {
324
- path: string;
325
- match?: Record<string, any> | undefined;
326
- select?: Record<string, 0 | 1> | undefined;
327
- options?: {
328
- sort?: Record<string, 1 | -1> | undefined;
329
- skip?: number | undefined;
330
- limit?: number | undefined;
331
- } | undefined;
332
- }[] | undefined;
296
+ populate?: any;
333
297
  } | undefined;
334
298
  _output_in: {
335
299
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"featured-setting.router.d.ts","sourceRoot":"/","sources":["modules/featured-setting/routers/featured-setting.router.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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