@lyxa.ai/marketing 1.0.11 → 1.0.12

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 (31) hide show
  1. package/dist/lib/index.js +6 -8
  2. package/dist/types/index.d.ts +23 -322
  3. package/dist/types/index.d.ts.map +1 -1
  4. package/dist/types/modules/coupon/routers/coupon.router.d.ts +23 -2
  5. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  6. package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -1
  7. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  8. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +1 -0
  9. package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
  10. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +2 -2
  11. package/dist/types/modules/marketing/services/index.d.ts +0 -1
  12. package/dist/types/modules/marketing/services/index.d.ts.map +1 -1
  13. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  14. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +0 -3
  15. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  16. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +0 -3
  17. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  18. package/dist/types/modules/marketing/transformers/index.d.ts +0 -1
  19. package/dist/types/modules/marketing/transformers/index.d.ts.map +1 -1
  20. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +0 -1
  21. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -1
  22. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
  23. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +0 -30
  24. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  25. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +0 -30
  26. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  27. package/dist/types/modules/marketing/validations/index.d.ts +0 -1
  28. package/dist/types/modules/marketing/validations/index.d.ts.map +1 -1
  29. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +0 -19
  30. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -1
  31. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"buy1-get1-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/buy1-get1-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,+EAA+E,CAAC;AAM3H,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
1
+ {"version":3,"file":"buy1-get1-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/buy1-get1-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,+EAA+E,CAAC;AAM3H,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
@@ -7,7 +7,6 @@ export declare const discountMarketingTransformer: import("@lyxa.ai/core/dist/ut
7
7
  products: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
8
8
  product: 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>]>;
9
9
  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>]>>;
10
- loyaltyPointCategory: 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>]>>;
11
10
  isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
12
11
  valueType: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
13
12
  value: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -15,14 +14,12 @@ export declare const discountMarketingTransformer: import("@lyxa.ai/core/dist/ut
15
14
  product: import("mongoose").Types.ObjectId;
16
15
  value?: number | undefined;
17
16
  marketing?: import("mongoose").Types.ObjectId | undefined;
18
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
19
17
  isBuy1Get1?: boolean | undefined;
20
18
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
21
19
  }, {
22
20
  product: string | import("mongoose").Types.ObjectId;
23
21
  value?: number | undefined;
24
22
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
25
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
26
23
  isBuy1Get1?: boolean | undefined;
27
24
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
28
25
  }>, "many">>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"discount-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/discount-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8EAA8E,CAAC;AAM1H,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
1
+ {"version":3,"file":"discount-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/discount-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,8EAA8E,CAAC;AAM1H,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAwC,CAAC"}
@@ -2,7 +2,6 @@ export * from './buy1-get1-marketing.transformer';
2
2
  export * from './discount-marketing.transformer';
3
3
  export * from './featured-marketing.transformer';
4
4
  export * from './free-delivery-marketing.transformer';
5
- export * from './loyalty-point-marketing.transformer';
6
5
  export * from './punch-marketing.transformer';
7
6
  export * from './product-marketing.transformer';
8
7
  export * from './marketing.transformer';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC"}
@@ -2,7 +2,6 @@ import { ProductMarketing as Model } from '@lyxa.ai/core/dist/libraries/mongo/mo
2
2
  export declare const productMarketingTransformer: import("@lyxa.ai/core/dist/utilities/transformers").GlobalTransformer<Model, import("zod").objectOutputType<{
3
3
  product: 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").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
- loyaltyPointCategory: import("zod").ZodOptional<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>]>>>;
6
5
  isBuy1Get1: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>>;
7
6
  valueType: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>>;
8
7
  value: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNumber>>;
@@ -1 +1 @@
1
- {"version":3,"file":"product-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/product-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,IAAI,KAAK,EAAE,MAAM,mEAAmE,CAAC;AAM9G,eAAO,MAAM,2BAA2B;;;;;;;;4CAAwC,CAAC"}
1
+ {"version":3,"file":"product-marketing.transformer.d.ts","sourceRoot":"/","sources":["modules/marketing/transformers/product-marketing.transformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,IAAI,KAAK,EAAE,MAAM,mEAAmE,CAAC;AAM9G,eAAO,MAAM,2BAA2B;;;;;;;4CAAwC,CAAC"}
@@ -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;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,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACvF,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;AAoBjC,eAAO,MAAM,6BAA6B,EAAE,OAM1C,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,OAMhC,CAAC;AAEH,eAAO,MAAM,yBAAyB,EAAE,OAMtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4C,CAAC;AAEjF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -10,7 +10,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
10
10
  products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
11
11
  product: 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>]>;
12
12
  marketing: 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>]>>;
13
- loyaltyPointCategory: 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>]>>;
14
13
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
15
14
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
16
15
  value: z.ZodOptional<z.ZodNumber>;
@@ -18,14 +17,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
18
17
  product: import("mongoose").Types.ObjectId;
19
18
  value?: number | undefined;
20
19
  marketing?: import("mongoose").Types.ObjectId | undefined;
21
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
22
20
  isBuy1Get1?: boolean | undefined;
23
21
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
24
22
  }, {
25
23
  product: string | import("mongoose").Types.ObjectId;
26
24
  value?: number | undefined;
27
25
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
28
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
29
26
  isBuy1Get1?: boolean | undefined;
30
27
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
31
28
  }>, "many">>>;
@@ -59,7 +56,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
59
56
  product: import("mongoose").Types.ObjectId;
60
57
  value?: number | undefined;
61
58
  marketing?: import("mongoose").Types.ObjectId | undefined;
62
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
63
59
  isBuy1Get1?: boolean | undefined;
64
60
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
65
61
  }[];
@@ -80,7 +76,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
80
76
  product: string | import("mongoose").Types.ObjectId;
81
77
  value?: number | undefined;
82
78
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
83
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
84
79
  isBuy1Get1?: boolean | undefined;
85
80
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
86
81
  }[] | undefined;
@@ -93,7 +88,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
93
88
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
94
89
  product: 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>]>;
95
90
  marketing: 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>]>>;
96
- loyaltyPointCategory: 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>]>>;
97
91
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
98
92
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
99
93
  value: z.ZodOptional<z.ZodNumber>;
@@ -101,14 +95,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
101
95
  product: import("mongoose").Types.ObjectId;
102
96
  value?: number | undefined;
103
97
  marketing?: import("mongoose").Types.ObjectId | undefined;
104
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
105
98
  isBuy1Get1?: boolean | undefined;
106
99
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
107
100
  }, {
108
101
  product: string | import("mongoose").Types.ObjectId;
109
102
  value?: number | undefined;
110
103
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
111
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
112
104
  isBuy1Get1?: boolean | undefined;
113
105
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
114
106
  }>, "many">>>>;
@@ -135,7 +127,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
135
127
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
136
128
  product: 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>]>;
137
129
  marketing: 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>]>>;
138
- loyaltyPointCategory: 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>]>>;
139
130
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
140
131
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
141
132
  value: z.ZodOptional<z.ZodNumber>;
@@ -143,14 +134,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
143
134
  product: import("mongoose").Types.ObjectId;
144
135
  value?: number | undefined;
145
136
  marketing?: import("mongoose").Types.ObjectId | undefined;
146
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
147
137
  isBuy1Get1?: boolean | undefined;
148
138
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
149
139
  }, {
150
140
  product: string | import("mongoose").Types.ObjectId;
151
141
  value?: number | undefined;
152
142
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
153
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
154
143
  isBuy1Get1?: boolean | undefined;
155
144
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
156
145
  }>, "many">>>>;
@@ -177,7 +166,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
177
166
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
178
167
  product: 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>]>;
179
168
  marketing: 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>]>>;
180
- loyaltyPointCategory: 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>]>>;
181
169
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
182
170
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
183
171
  value: z.ZodOptional<z.ZodNumber>;
@@ -185,14 +173,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
185
173
  product: import("mongoose").Types.ObjectId;
186
174
  value?: number | undefined;
187
175
  marketing?: import("mongoose").Types.ObjectId | undefined;
188
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
189
176
  isBuy1Get1?: boolean | undefined;
190
177
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
191
178
  }, {
192
179
  product: string | import("mongoose").Types.ObjectId;
193
180
  value?: number | undefined;
194
181
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
195
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
196
182
  isBuy1Get1?: boolean | undefined;
197
183
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
198
184
  }>, "many">>>>;
@@ -225,7 +211,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
225
211
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
226
212
  product: 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>]>;
227
213
  marketing: 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>]>>;
228
- loyaltyPointCategory: 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>]>>;
229
214
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
230
215
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
231
216
  value: z.ZodOptional<z.ZodNumber>;
@@ -233,14 +218,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
233
218
  product: import("mongoose").Types.ObjectId;
234
219
  value?: number | undefined;
235
220
  marketing?: import("mongoose").Types.ObjectId | undefined;
236
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
237
221
  isBuy1Get1?: boolean | undefined;
238
222
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
239
223
  }, {
240
224
  product: string | import("mongoose").Types.ObjectId;
241
225
  value?: number | undefined;
242
226
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
243
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
244
227
  isBuy1Get1?: boolean | undefined;
245
228
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
246
229
  }>, "many">>>>;
@@ -267,7 +250,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
267
250
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
268
251
  product: 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>]>;
269
252
  marketing: 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>]>>;
270
- loyaltyPointCategory: 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>]>>;
271
253
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
272
254
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
273
255
  value: z.ZodOptional<z.ZodNumber>;
@@ -275,14 +257,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
275
257
  product: import("mongoose").Types.ObjectId;
276
258
  value?: number | undefined;
277
259
  marketing?: import("mongoose").Types.ObjectId | undefined;
278
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
279
260
  isBuy1Get1?: boolean | undefined;
280
261
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
281
262
  }, {
282
263
  product: string | import("mongoose").Types.ObjectId;
283
264
  value?: number | undefined;
284
265
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
285
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
286
266
  isBuy1Get1?: boolean | undefined;
287
267
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
288
268
  }>, "many">>>>;
@@ -309,7 +289,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
309
289
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
310
290
  product: 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>]>;
311
291
  marketing: 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>]>>;
312
- loyaltyPointCategory: 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>]>>;
313
292
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
314
293
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
315
294
  value: z.ZodOptional<z.ZodNumber>;
@@ -317,14 +296,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
317
296
  product: import("mongoose").Types.ObjectId;
318
297
  value?: number | undefined;
319
298
  marketing?: import("mongoose").Types.ObjectId | undefined;
320
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
321
299
  isBuy1Get1?: boolean | undefined;
322
300
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
323
301
  }, {
324
302
  product: string | import("mongoose").Types.ObjectId;
325
303
  value?: number | undefined;
326
304
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
327
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
328
305
  isBuy1Get1?: boolean | undefined;
329
306
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
330
307
  }>, "many">>>>;
@@ -352,7 +329,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
352
329
  products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
353
330
  product: 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>]>;
354
331
  marketing: 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>]>>;
355
- loyaltyPointCategory: 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>]>>;
356
332
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
357
333
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
358
334
  value: z.ZodOptional<z.ZodNumber>;
@@ -360,14 +336,12 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
360
336
  product: import("mongoose").Types.ObjectId;
361
337
  value?: number | undefined;
362
338
  marketing?: import("mongoose").Types.ObjectId | undefined;
363
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
364
339
  isBuy1Get1?: boolean | undefined;
365
340
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
366
341
  }, {
367
342
  product: string | import("mongoose").Types.ObjectId;
368
343
  value?: number | undefined;
369
344
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
370
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
371
345
  isBuy1Get1?: boolean | undefined;
372
346
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
373
347
  }>, "many">>>;
@@ -401,7 +375,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
401
375
  product: import("mongoose").Types.ObjectId;
402
376
  value?: number | undefined;
403
377
  marketing?: import("mongoose").Types.ObjectId | undefined;
404
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
405
378
  isBuy1Get1?: boolean | undefined;
406
379
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
407
380
  }[];
@@ -422,7 +395,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
422
395
  product: string | import("mongoose").Types.ObjectId;
423
396
  value?: number | undefined;
424
397
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
425
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
426
398
  isBuy1Get1?: boolean | undefined;
427
399
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
428
400
  }[] | undefined;
@@ -443,7 +415,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
443
415
  product: import("mongoose").Types.ObjectId;
444
416
  value?: number | undefined;
445
417
  marketing?: import("mongoose").Types.ObjectId | undefined;
446
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
447
418
  isBuy1Get1?: boolean | undefined;
448
419
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
449
420
  }[];
@@ -464,7 +435,6 @@ declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
464
435
  product: string | import("mongoose").Types.ObjectId;
465
436
  value?: number | undefined;
466
437
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
467
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
468
438
  isBuy1Get1?: boolean | undefined;
469
439
  valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
470
440
  }[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"buy1-get1-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/buy1-get1-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAsBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
1
+ {"version":3,"file":"buy1-get1-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/buy1-get1-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAsBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -12,7 +12,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
12
12
  products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
13
  product: 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>]>;
14
14
  marketing: 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>]>>;
15
- loyaltyPointCategory: 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>]>>;
16
15
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
16
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
18
17
  value: z.ZodOptional<z.ZodNumber>;
@@ -20,14 +19,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
20
19
  product: import("mongoose").Types.ObjectId;
21
20
  value?: number | undefined;
22
21
  marketing?: import("mongoose").Types.ObjectId | undefined;
23
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
24
22
  isBuy1Get1?: boolean | undefined;
25
23
  valueType?: ValueType | null | undefined;
26
24
  }, {
27
25
  product: string | import("mongoose").Types.ObjectId;
28
26
  value?: number | undefined;
29
27
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
30
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
31
28
  isBuy1Get1?: boolean | undefined;
32
29
  valueType?: ValueType | null | undefined;
33
30
  }>, "many">>>;
@@ -62,7 +59,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
62
59
  product: import("mongoose").Types.ObjectId;
63
60
  value?: number | undefined;
64
61
  marketing?: import("mongoose").Types.ObjectId | undefined;
65
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
66
62
  isBuy1Get1?: boolean | undefined;
67
63
  valueType?: ValueType | null | undefined;
68
64
  }[];
@@ -88,7 +84,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
88
84
  product: string | import("mongoose").Types.ObjectId;
89
85
  value?: number | undefined;
90
86
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
91
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
92
87
  isBuy1Get1?: boolean | undefined;
93
88
  valueType?: ValueType | null | undefined;
94
89
  }[] | undefined;
@@ -104,7 +99,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
104
99
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
105
100
  product: 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>]>;
106
101
  marketing: 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>]>>;
107
- loyaltyPointCategory: 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>]>>;
108
102
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
109
103
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
110
104
  value: z.ZodOptional<z.ZodNumber>;
@@ -112,14 +106,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
112
106
  product: import("mongoose").Types.ObjectId;
113
107
  value?: number | undefined;
114
108
  marketing?: import("mongoose").Types.ObjectId | undefined;
115
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
116
109
  isBuy1Get1?: boolean | undefined;
117
110
  valueType?: ValueType | null | undefined;
118
111
  }, {
119
112
  product: string | import("mongoose").Types.ObjectId;
120
113
  value?: number | undefined;
121
114
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
122
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
123
115
  isBuy1Get1?: boolean | undefined;
124
116
  valueType?: ValueType | null | undefined;
125
117
  }>, "many">>>>;
@@ -149,7 +141,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
149
141
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
150
142
  product: 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>]>;
151
143
  marketing: 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>]>>;
152
- loyaltyPointCategory: 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>]>>;
153
144
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
154
145
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
155
146
  value: z.ZodOptional<z.ZodNumber>;
@@ -157,14 +148,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
157
148
  product: import("mongoose").Types.ObjectId;
158
149
  value?: number | undefined;
159
150
  marketing?: import("mongoose").Types.ObjectId | undefined;
160
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
161
151
  isBuy1Get1?: boolean | undefined;
162
152
  valueType?: ValueType | null | undefined;
163
153
  }, {
164
154
  product: string | import("mongoose").Types.ObjectId;
165
155
  value?: number | undefined;
166
156
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
167
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
168
157
  isBuy1Get1?: boolean | undefined;
169
158
  valueType?: ValueType | null | undefined;
170
159
  }>, "many">>>>;
@@ -194,7 +183,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
194
183
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
195
184
  product: 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>]>;
196
185
  marketing: 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>]>>;
197
- loyaltyPointCategory: 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>]>>;
198
186
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
199
187
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
200
188
  value: z.ZodOptional<z.ZodNumber>;
@@ -202,14 +190,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
202
190
  product: import("mongoose").Types.ObjectId;
203
191
  value?: number | undefined;
204
192
  marketing?: import("mongoose").Types.ObjectId | undefined;
205
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
206
193
  isBuy1Get1?: boolean | undefined;
207
194
  valueType?: ValueType | null | undefined;
208
195
  }, {
209
196
  product: string | import("mongoose").Types.ObjectId;
210
197
  value?: number | undefined;
211
198
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
212
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
213
199
  isBuy1Get1?: boolean | undefined;
214
200
  valueType?: ValueType | null | undefined;
215
201
  }>, "many">>>>;
@@ -245,7 +231,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
245
231
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
246
232
  product: 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>]>;
247
233
  marketing: 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>]>>;
248
- loyaltyPointCategory: 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>]>>;
249
234
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
250
235
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
251
236
  value: z.ZodOptional<z.ZodNumber>;
@@ -253,14 +238,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
253
238
  product: import("mongoose").Types.ObjectId;
254
239
  value?: number | undefined;
255
240
  marketing?: import("mongoose").Types.ObjectId | undefined;
256
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
257
241
  isBuy1Get1?: boolean | undefined;
258
242
  valueType?: ValueType | null | undefined;
259
243
  }, {
260
244
  product: string | import("mongoose").Types.ObjectId;
261
245
  value?: number | undefined;
262
246
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
263
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
264
247
  isBuy1Get1?: boolean | undefined;
265
248
  valueType?: ValueType | null | undefined;
266
249
  }>, "many">>>>;
@@ -290,7 +273,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
290
273
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
291
274
  product: 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
275
  marketing: 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
- loyaltyPointCategory: 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>]>>;
294
276
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
295
277
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
296
278
  value: z.ZodOptional<z.ZodNumber>;
@@ -298,14 +280,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
298
280
  product: import("mongoose").Types.ObjectId;
299
281
  value?: number | undefined;
300
282
  marketing?: import("mongoose").Types.ObjectId | undefined;
301
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
302
283
  isBuy1Get1?: boolean | undefined;
303
284
  valueType?: ValueType | null | undefined;
304
285
  }, {
305
286
  product: string | import("mongoose").Types.ObjectId;
306
287
  value?: number | undefined;
307
288
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
308
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
309
289
  isBuy1Get1?: boolean | undefined;
310
290
  valueType?: ValueType | null | undefined;
311
291
  }>, "many">>>>;
@@ -335,7 +315,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
335
315
  products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
336
316
  product: 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>]>;
337
317
  marketing: 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>]>>;
338
- loyaltyPointCategory: 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>]>>;
339
318
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
340
319
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
341
320
  value: z.ZodOptional<z.ZodNumber>;
@@ -343,14 +322,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
343
322
  product: import("mongoose").Types.ObjectId;
344
323
  value?: number | undefined;
345
324
  marketing?: import("mongoose").Types.ObjectId | undefined;
346
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
347
325
  isBuy1Get1?: boolean | undefined;
348
326
  valueType?: ValueType | null | undefined;
349
327
  }, {
350
328
  product: string | import("mongoose").Types.ObjectId;
351
329
  value?: number | undefined;
352
330
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
353
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
354
331
  isBuy1Get1?: boolean | undefined;
355
332
  valueType?: ValueType | null | undefined;
356
333
  }>, "many">>>>;
@@ -381,7 +358,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
381
358
  products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
382
359
  product: 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>]>;
383
360
  marketing: 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>]>>;
384
- loyaltyPointCategory: 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>]>>;
385
361
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
386
362
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
387
363
  value: z.ZodOptional<z.ZodNumber>;
@@ -389,14 +365,12 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
389
365
  product: import("mongoose").Types.ObjectId;
390
366
  value?: number | undefined;
391
367
  marketing?: import("mongoose").Types.ObjectId | undefined;
392
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
393
368
  isBuy1Get1?: boolean | undefined;
394
369
  valueType?: ValueType | null | undefined;
395
370
  }, {
396
371
  product: string | import("mongoose").Types.ObjectId;
397
372
  value?: number | undefined;
398
373
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
399
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
400
374
  isBuy1Get1?: boolean | undefined;
401
375
  valueType?: ValueType | null | undefined;
402
376
  }>, "many">>>;
@@ -431,7 +405,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
431
405
  product: import("mongoose").Types.ObjectId;
432
406
  value?: number | undefined;
433
407
  marketing?: import("mongoose").Types.ObjectId | undefined;
434
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
435
408
  isBuy1Get1?: boolean | undefined;
436
409
  valueType?: ValueType | null | undefined;
437
410
  }[];
@@ -457,7 +430,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
457
430
  product: string | import("mongoose").Types.ObjectId;
458
431
  value?: number | undefined;
459
432
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
460
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
461
433
  isBuy1Get1?: boolean | undefined;
462
434
  valueType?: ValueType | null | undefined;
463
435
  }[] | undefined;
@@ -479,7 +451,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
479
451
  product: import("mongoose").Types.ObjectId;
480
452
  value?: number | undefined;
481
453
  marketing?: import("mongoose").Types.ObjectId | undefined;
482
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
483
454
  isBuy1Get1?: boolean | undefined;
484
455
  valueType?: ValueType | null | undefined;
485
456
  }[];
@@ -505,7 +476,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
505
476
  product: string | import("mongoose").Types.ObjectId;
506
477
  value?: number | undefined;
507
478
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
508
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
509
479
  isBuy1Get1?: boolean | undefined;
510
480
  valueType?: ValueType | null | undefined;
511
481
  }[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"discount-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/discount-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AA0B7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
1
+ {"version":3,"file":"discount-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/discount-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AA0B7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -2,7 +2,6 @@ export * from './buy1-get1-marketing.validation';
2
2
  export * from './discount-marketing.validation';
3
3
  export * from './featured-marketing.validation';
4
4
  export * from './free-delivery-marketing.validation';
5
- export * from './loyalty-point-marketing.validation';
6
5
  export * from './punch-marketing.validation';
7
6
  export * from './product-marketing.validation';
8
7
  export * from './marketing.validation';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}