@lyxa.ai/marketing 1.0.30 → 1.0.32
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.
- package/dist/lib/event/event-initializations.d.ts +2 -0
- package/dist/lib/event/event-initializations.d.ts.map +1 -0
- package/dist/lib/event/event-initializations.js +8 -0
- package/dist/lib/event/event-initializations.js.map +1 -0
- package/dist/lib/event/event-listeners/event-listeners.d.ts +2 -0
- package/dist/lib/event/event-listeners/event-listeners.d.ts.map +1 -0
- package/dist/lib/event/event-listeners/event-listeners.js +12 -0
- package/dist/lib/event/event-listeners/event-listeners.js.map +1 -0
- package/dist/lib/index.d.ts +86 -58
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +17 -17
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +55 -55
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +9 -6
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +90 -49
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +1 -0
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +21 -2
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +1 -0
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +134 -12
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +9 -3
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +10 -2
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +153 -153
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +12 -12
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +2 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +10 -10
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts +9 -9
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/deal-setting/validations/deal-setting.validation.d.ts +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +28 -0
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.js +19 -0
- package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts +2 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js +45 -110
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts +2 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.js +54 -171
- package/dist/lib/modules/marketing/services/discount-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/featured-marketing.service.d.ts +2 -0
- package/dist/lib/modules/marketing/services/featured-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/featured-marketing.service.js +30 -2
- package/dist/lib/modules/marketing/services/featured-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.js +6 -1
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/index.d.ts +1 -0
- package/dist/lib/modules/marketing/services/index.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/index.js +1 -0
- package/dist/lib/modules/marketing/services/index.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +5 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +210 -5
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +2 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.js +27 -3
- package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/punch-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/punch-marketing.service.js +6 -1
- package/dist/lib/modules/marketing/services/punch-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +15 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +250 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -2
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -2
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +55 -55
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +65 -65
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +21 -21
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +18 -18
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +21 -7
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js +7 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +4 -4
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +22 -22
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +3 -3
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js +2 -2
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js.map +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +6 -6
- package/dist/types/event/event-initializations.d.ts +2 -0
- package/dist/types/event/event-initializations.d.ts.map +1 -0
- package/dist/types/event/event-listeners/event-listeners.d.ts +2 -0
- package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -0
- package/dist/types/index.d.ts +86 -58
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +55 -55
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts +1 -0
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +1 -0
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +153 -153
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +12 -12
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +8 -8
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +8 -8
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +10 -10
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +8 -8
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +9 -9
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts +8 -8
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +28 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +2 -1
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +2 -1
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts +2 -0
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/index.d.ts +1 -0
- package/dist/types/modules/marketing/services/index.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts +5 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +2 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +15 -0
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -2
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -2
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +55 -55
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +65 -65
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +21 -21
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +18 -18
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +21 -7
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +4 -4
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +22 -22
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +3 -3
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +6 -6
- package/package.json +2 -2
|
@@ -23,15 +23,15 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
23
23
|
}, "strict", z.ZodTypeAny, {
|
|
24
24
|
product: import("mongoose").Types.ObjectId;
|
|
25
25
|
value?: number | undefined;
|
|
26
|
+
valueType?: ValueType | null | undefined;
|
|
26
27
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
27
28
|
isBuy1Get1?: boolean | undefined;
|
|
28
|
-
valueType?: ValueType | null | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
product: string | import("mongoose").Types.ObjectId;
|
|
31
31
|
value?: number | undefined;
|
|
32
|
+
valueType?: ValueType | null | undefined;
|
|
32
33
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
33
34
|
isBuy1Get1?: boolean | undefined;
|
|
34
|
-
valueType?: ValueType | null | undefined;
|
|
35
35
|
}>, ProductMarketingSchema: z.ZodObject<{
|
|
36
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>]>>;
|
|
37
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>]>>>;
|
|
@@ -139,12 +139,12 @@ declare const UpdateMultipleProductMarketingSchema: z.ZodObject<Omit<{
|
|
|
139
139
|
value: z.ZodOptional<z.ZodNumber>;
|
|
140
140
|
}, "product" | "marketing">, "strict", z.ZodTypeAny, {
|
|
141
141
|
value?: number | undefined;
|
|
142
|
-
isBuy1Get1?: boolean | undefined;
|
|
143
142
|
valueType?: ValueType | null | undefined;
|
|
143
|
+
isBuy1Get1?: boolean | undefined;
|
|
144
144
|
}, {
|
|
145
145
|
value?: number | undefined;
|
|
146
|
-
isBuy1Get1?: boolean | undefined;
|
|
147
146
|
valueType?: ValueType | null | undefined;
|
|
147
|
+
isBuy1Get1?: boolean | undefined;
|
|
148
148
|
}>;
|
|
149
149
|
/**
|
|
150
150
|
* Export schemas
|
|
@@ -101,73 +101,73 @@ declare const PunchMarketingValidationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
101
101
|
pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
|
|
102
102
|
admin: z.ZodNullable<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>]>>>;
|
|
103
103
|
}, "strict", z.ZodTypeAny, {
|
|
104
|
-
isAppliedByCompany: boolean;
|
|
105
|
-
shop: import("mongoose").Types.ObjectId;
|
|
106
104
|
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
107
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
108
105
|
duration: {
|
|
109
106
|
start: Date;
|
|
110
107
|
end?: Date | undefined;
|
|
111
108
|
};
|
|
109
|
+
shop: import("mongoose").Types.ObjectId;
|
|
110
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
111
|
+
isAppliedByCompany: boolean;
|
|
112
112
|
pausedAt: Date | null;
|
|
113
|
-
targetOrders: number;
|
|
114
113
|
minimumOrderValue: number;
|
|
115
|
-
dayLimit: number;
|
|
116
114
|
couponValueType: ValueType;
|
|
117
115
|
couponValue: number;
|
|
118
116
|
couponDurationInDays: number;
|
|
117
|
+
targetOrders: number;
|
|
118
|
+
dayLimit: number;
|
|
119
119
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
120
120
|
}, {
|
|
121
|
-
isAppliedByCompany: boolean;
|
|
122
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
123
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
124
121
|
duration: {
|
|
125
122
|
start: string | Date;
|
|
126
123
|
end?: string | Date | undefined;
|
|
127
124
|
};
|
|
128
|
-
|
|
125
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
126
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
127
|
+
isAppliedByCompany: boolean;
|
|
129
128
|
minimumOrderValue: number;
|
|
130
|
-
dayLimit: number;
|
|
131
129
|
couponValueType: ValueType;
|
|
132
130
|
couponValue: number;
|
|
133
131
|
couponDurationInDays: number;
|
|
132
|
+
targetOrders: number;
|
|
133
|
+
dayLimit: number;
|
|
134
134
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
135
|
-
pausedAt?: string | Date | null | undefined;
|
|
136
135
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
136
|
+
pausedAt?: string | Date | null | undefined;
|
|
137
137
|
}>, {
|
|
138
|
-
isAppliedByCompany: boolean;
|
|
139
|
-
shop: import("mongoose").Types.ObjectId;
|
|
140
138
|
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
141
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
142
139
|
duration: {
|
|
143
140
|
start: Date;
|
|
144
141
|
end?: Date | undefined;
|
|
145
142
|
};
|
|
143
|
+
shop: import("mongoose").Types.ObjectId;
|
|
144
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
145
|
+
isAppliedByCompany: boolean;
|
|
146
146
|
pausedAt: Date | null;
|
|
147
|
-
targetOrders: number;
|
|
148
147
|
minimumOrderValue: number;
|
|
149
|
-
dayLimit: number;
|
|
150
148
|
couponValueType: ValueType;
|
|
151
149
|
couponValue: number;
|
|
152
150
|
couponDurationInDays: number;
|
|
151
|
+
targetOrders: number;
|
|
152
|
+
dayLimit: number;
|
|
153
153
|
admin?: import("mongoose").Types.ObjectId | null | undefined;
|
|
154
154
|
}, {
|
|
155
|
-
isAppliedByCompany: boolean;
|
|
156
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
157
|
-
marketingType: MarketingType.PUNCH_MARKETING;
|
|
158
155
|
duration: {
|
|
159
156
|
start: string | Date;
|
|
160
157
|
end?: string | Date | undefined;
|
|
161
158
|
};
|
|
162
|
-
|
|
159
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
160
|
+
marketingType: MarketingType.PUNCH_MARKETING;
|
|
161
|
+
isAppliedByCompany: boolean;
|
|
163
162
|
minimumOrderValue: number;
|
|
164
|
-
dayLimit: number;
|
|
165
163
|
couponValueType: ValueType;
|
|
166
164
|
couponValue: number;
|
|
167
165
|
couponDurationInDays: number;
|
|
166
|
+
targetOrders: number;
|
|
167
|
+
dayLimit: number;
|
|
168
168
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
169
|
-
pausedAt?: string | Date | null | undefined;
|
|
170
169
|
admin?: string | import("mongoose").Types.ObjectId | null | undefined;
|
|
170
|
+
pausedAt?: string | Date | null | undefined;
|
|
171
171
|
}>;
|
|
172
172
|
declare const UpdatePunchMarketingSchema: z.ZodEffects<z.ZodObject<{
|
|
173
173
|
[x: string]: z.ZodOptional<z.ZodTypeAny>;
|
package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts
CHANGED
|
@@ -16,14 +16,14 @@ export declare const punchMarketingHistoryRouter: import("@trpc/server").TRPCBui
|
|
|
16
16
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
17
17
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
18
18
|
input: {
|
|
19
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
19
20
|
shop: string | import("mongoose").Types.ObjectId;
|
|
20
21
|
marketing: string | import("mongoose").Types.ObjectId;
|
|
21
22
|
minimumOrderValue: number;
|
|
23
|
+
targetOrder: number;
|
|
22
24
|
couponValueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
23
25
|
couponValue: number;
|
|
24
26
|
couponDurationInDays: number;
|
|
25
|
-
user: string | import("mongoose").Types.ObjectId;
|
|
26
|
-
targetOrder: number;
|
|
27
27
|
status?: import("@lyxa.ai/core/dist/utilities/enum").PunchMarketingStatus | undefined;
|
|
28
28
|
completedOrder?: number | undefined;
|
|
29
29
|
startDate?: string | Date | undefined;
|
|
@@ -189,8 +189,8 @@ export declare const punchMarketingHistoryRouter: import("@trpc/server").TRPCBui
|
|
|
189
189
|
}>;
|
|
190
190
|
getByUserAndShop: import("@trpc/server").TRPCQueryProcedure<{
|
|
191
191
|
input: {
|
|
192
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
193
192
|
userId: string | import("mongoose").Types.ObjectId;
|
|
193
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
194
194
|
};
|
|
195
195
|
output: {
|
|
196
196
|
message: string;
|
|
@@ -20,14 +20,14 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
20
20
|
couponDurationInDays: z.ZodNumber;
|
|
21
21
|
couponExpiryDate: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
|
|
22
22
|
}, "strict", z.ZodTypeAny, {
|
|
23
|
+
user: import("mongoose").Types.ObjectId;
|
|
23
24
|
shop: import("mongoose").Types.ObjectId;
|
|
24
25
|
marketing: import("mongoose").Types.ObjectId;
|
|
25
26
|
minimumOrderValue: number;
|
|
27
|
+
targetOrder: number;
|
|
26
28
|
couponValueType: ValueType;
|
|
27
29
|
couponValue: number;
|
|
28
30
|
couponDurationInDays: number;
|
|
29
|
-
user: import("mongoose").Types.ObjectId;
|
|
30
|
-
targetOrder: number;
|
|
31
31
|
status?: PunchMarketingStatus | undefined;
|
|
32
32
|
completedOrder?: number | undefined;
|
|
33
33
|
startDate?: Date | undefined;
|
|
@@ -35,14 +35,14 @@ declare const PunchMarketingHistoryValidationSchema: z.ZodObject<{
|
|
|
35
35
|
completedAt?: Date | undefined;
|
|
36
36
|
couponExpiryDate?: Date | undefined;
|
|
37
37
|
}, {
|
|
38
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
38
39
|
shop: string | import("mongoose").Types.ObjectId;
|
|
39
40
|
marketing: string | import("mongoose").Types.ObjectId;
|
|
40
41
|
minimumOrderValue: number;
|
|
42
|
+
targetOrder: number;
|
|
41
43
|
couponValueType: ValueType;
|
|
42
44
|
couponValue: number;
|
|
43
45
|
couponDurationInDays: number;
|
|
44
|
-
user: string | import("mongoose").Types.ObjectId;
|
|
45
|
-
targetOrder: number;
|
|
46
46
|
status?: PunchMarketingStatus | undefined;
|
|
47
47
|
completedOrder?: number | undefined;
|
|
48
48
|
startDate?: string | Date | undefined;
|
|
@@ -170,11 +170,11 @@ export declare const GetByUserAndShopSchema: z.ZodObject<{
|
|
|
170
170
|
userId: 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>]>;
|
|
171
171
|
shopId: 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>]>;
|
|
172
172
|
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
shopId: import("mongoose").Types.ObjectId;
|
|
174
173
|
userId: import("mongoose").Types.ObjectId;
|
|
174
|
+
shopId: import("mongoose").Types.ObjectId;
|
|
175
175
|
}, {
|
|
176
|
-
shopId: string | import("mongoose").Types.ObjectId;
|
|
177
176
|
userId: string | import("mongoose").Types.ObjectId;
|
|
177
|
+
shopId: string | import("mongoose").Types.ObjectId;
|
|
178
178
|
}>;
|
|
179
179
|
export declare const PunchMarketingHistoryResponseSchema: z.ZodObject<{
|
|
180
180
|
success: z.ZodBoolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/marketing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"description": "The Lyxa Marketing microservice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/lib/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:watch": "jest --watch"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@lyxa.ai/core": "1.3.
|
|
22
|
+
"@lyxa.ai/core": "^1.3.102",
|
|
23
23
|
"@lyxa.ai/notification": "^1.0.7",
|
|
24
24
|
"@trpc/client": "^11.4.3",
|
|
25
25
|
"@trpc/server": "^11.4.3",
|