@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
@@ -7,7 +7,6 @@ import { ValueType } from '@lyxa.ai/core/dist/utilities/enum';
7
7
  export declare const baseFields: {
8
8
  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>]>;
9
9
  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>]>>;
10
- 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>]>>;
11
10
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
11
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
13
12
  value: z.ZodOptional<z.ZodNumber>;
@@ -18,7 +17,6 @@ export declare const baseFields: {
18
17
  declare const ProductMarketingValidationSchema: z.ZodObject<{
19
18
  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>]>;
20
19
  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>]>>;
21
- 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>]>>;
22
20
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
23
21
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
24
22
  value: z.ZodOptional<z.ZodNumber>;
@@ -26,20 +24,17 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
26
24
  product: import("mongoose").Types.ObjectId;
27
25
  value?: number | undefined;
28
26
  marketing?: import("mongoose").Types.ObjectId | undefined;
29
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
30
27
  isBuy1Get1?: boolean | undefined;
31
28
  valueType?: ValueType | null | undefined;
32
29
  }, {
33
30
  product: string | import("mongoose").Types.ObjectId;
34
31
  value?: number | undefined;
35
32
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
36
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
37
33
  isBuy1Get1?: boolean | undefined;
38
34
  valueType?: ValueType | null | undefined;
39
35
  }>, ProductMarketingSchema: z.ZodObject<{
40
36
  product: 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>]>>;
41
37
  marketing: z.ZodOptional<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>]>>>;
42
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
43
38
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
44
39
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
45
40
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -47,7 +42,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
47
42
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
48
43
  product: 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>]>>;
49
44
  marketing: z.ZodOptional<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>]>>>;
50
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
51
45
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
52
46
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
53
47
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -55,7 +49,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
55
49
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
56
50
  product: 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>]>>;
57
51
  marketing: z.ZodOptional<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>]>>>;
58
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
59
52
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
60
53
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
61
54
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -69,7 +62,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
69
62
  }> | z.ZodObject<{
70
63
  product: 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>]>>;
71
64
  marketing: z.ZodOptional<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>]>>>;
72
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
73
65
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
74
66
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
75
67
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -77,7 +69,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
77
69
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
78
70
  product: 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>]>>;
79
71
  marketing: z.ZodOptional<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>]>>>;
80
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
81
72
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
82
73
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
83
74
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -85,7 +76,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
85
76
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
86
77
  product: 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>]>>;
87
78
  marketing: z.ZodOptional<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>]>>>;
88
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
89
79
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
90
80
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
91
81
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -94,7 +84,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
94
84
  declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
95
85
  product: 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
86
  marketing: z.ZodOptional<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
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
98
87
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
99
88
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
100
89
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -102,7 +91,6 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
102
91
  }, "product" | "marketing">, "passthrough", z.ZodTypeAny, z.objectOutputType<Pick<{
103
92
  product: 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>]>>;
104
93
  marketing: z.ZodOptional<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>]>>>;
105
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
106
94
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
107
95
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
108
96
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -110,7 +98,6 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
110
98
  }, "product" | "marketing">, z.ZodTypeAny, "passthrough">, z.objectInputType<Pick<{
111
99
  product: 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>]>>;
112
100
  marketing: z.ZodOptional<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>]>>>;
113
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
114
101
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
115
102
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
116
103
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -119,7 +106,6 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
119
106
  declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
120
107
  product: 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>]>>;
121
108
  marketing: z.ZodOptional<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>]>>>;
122
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
123
109
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
124
110
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
125
111
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -129,7 +115,6 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
129
115
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<Pick<{
130
116
  product: 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>]>>;
131
117
  marketing: z.ZodOptional<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>]>>>;
132
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
133
118
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
134
119
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
135
120
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -139,7 +124,6 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
139
124
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<Pick<{
140
125
  product: 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>]>>;
141
126
  marketing: z.ZodOptional<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>]>>>;
142
- loyaltyPointCategory: z.ZodOptional<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>]>>>;
143
127
  isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
144
128
  valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
145
129
  value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -150,18 +134,15 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
150
134
  declare const UpdateMultipleProductMarketingSchema: z.ZodObject<Omit<{
151
135
  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>]>;
152
136
  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>]>>;
153
- 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>]>>;
154
137
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
155
138
  valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
156
139
  value: z.ZodOptional<z.ZodNumber>;
157
140
  }, "product" | "marketing">, "strict", z.ZodTypeAny, {
158
141
  value?: number | undefined;
159
- loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
160
142
  isBuy1Get1?: boolean | undefined;
161
143
  valueType?: ValueType | null | undefined;
162
144
  }, {
163
145
  value?: number | undefined;
164
- loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
165
146
  isBuy1Get1?: boolean | undefined;
166
147
  valueType?: ValueType | null | undefined;
167
148
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"product-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;CAUtB,CAAC;AASF;;GAEG;AACH,QAAA,MACa,gCAAgC;;;;;;;;;;;;;;;;;;;;;IAC9B,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;kCAC1B,wBAAwB,mNACpB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACS,CAAC;AAErD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;0DAG/B,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAIvC,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAEH;;GAEG;AACH,OAAO,EACN,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,IAAI,kCAAkC,EAC9D,4BAA4B,EAC5B,2BAA2B,GAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACrE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,iCAAiC,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AACjG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"product-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;CAStB,CAAC;AASF;;GAEG;AACH,QAAA,MACa,gCAAgC;;;;;;;;;;;;;;;;;;IAC9B,sBAAsB;;;;;;;;;;;;;;;;;;;;;kCAC1B,wBAAwB,mNACpB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACS,CAAC;AAErD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;0DAG/B,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAIvC,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;EAGxC,CAAC;AAEH;;GAEG;AACH,OAAO,EACN,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,IAAI,kCAAkC,EAC9D,4BAA4B,EAC5B,2BAA2B,GAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACrE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,iCAAiC,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AACjG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/marketing",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "The Lyxa Marketing microservice",
5
5
  "license": "MIT",
6
6
  "main": "dist/lib/index.js",
@@ -20,8 +20,8 @@
20
20
  "test:watch": "jest --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@lyxa.ai/core": "^1.0.309",
24
- "@lyxa.ai/notification": "1.0.5",
23
+ "@lyxa.ai/core": "1.0.331",
24
+ "@lyxa.ai/notification": "^1.0.7",
25
25
  "@trpc/client": "^11.4.3",
26
26
  "@trpc/server": "^11.4.3",
27
27
  "@typegoose/typegoose": "^12.9.1",