@lyxa.ai/marketing 1.0.5 → 1.0.7
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/index.js +1 -7
- package/dist/types/index.d.ts +862 -6049
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +191 -2414
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +32 -322
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +32 -410
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +52 -505
- package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +32 -185
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +133 -1407
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
- package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts +27 -443
- package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1,41 +1,23 @@
|
|
|
1
1
|
import { mongoose } from '@typegoose/typegoose';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const couponRouter: import("@trpc/server").
|
|
4
|
-
ctx: import("@
|
|
3
|
+
export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
4
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
5
5
|
meta: object;
|
|
6
6
|
errorShape: {
|
|
7
7
|
message: string;
|
|
8
8
|
data: {
|
|
9
9
|
stack: undefined;
|
|
10
10
|
path: undefined;
|
|
11
|
-
code: import("@trpc/server
|
|
11
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
12
12
|
httpStatus: number;
|
|
13
13
|
};
|
|
14
14
|
stack: undefined;
|
|
15
|
-
code: import("@trpc/server
|
|
15
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
16
16
|
};
|
|
17
|
-
transformer:
|
|
18
|
-
}
|
|
19
|
-
create: import("@trpc/server").
|
|
20
|
-
|
|
21
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
22
|
-
meta: object;
|
|
23
|
-
errorShape: {
|
|
24
|
-
message: string;
|
|
25
|
-
data: {
|
|
26
|
-
stack: undefined;
|
|
27
|
-
path: undefined;
|
|
28
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
29
|
-
httpStatus: number;
|
|
30
|
-
};
|
|
31
|
-
stack: undefined;
|
|
32
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
33
|
-
};
|
|
34
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
35
|
-
}>;
|
|
36
|
-
_meta: object;
|
|
37
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
38
|
-
_input_in: {
|
|
17
|
+
transformer: false;
|
|
18
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
19
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
20
|
+
input: {
|
|
39
21
|
value: number;
|
|
40
22
|
code: string;
|
|
41
23
|
duration: {
|
|
@@ -138,110 +120,7 @@ export declare const couponRouter: import("@trpc/server").CreateRouterInner<impo
|
|
|
138
120
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
139
121
|
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
140
122
|
};
|
|
141
|
-
|
|
142
|
-
value: number;
|
|
143
|
-
code: string;
|
|
144
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
145
|
-
duration: {
|
|
146
|
-
start: Date;
|
|
147
|
-
end?: Date | undefined;
|
|
148
|
-
};
|
|
149
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
150
|
-
spendLimit: number | null;
|
|
151
|
-
maxDiscountLimit: number | null;
|
|
152
|
-
totalOrderLimit: number | null;
|
|
153
|
-
minOrderValue: number | null;
|
|
154
|
-
forNewUserOnly: boolean;
|
|
155
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
156
|
-
orderLimitPerUser: number | null;
|
|
157
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
158
|
-
} | {
|
|
159
|
-
code: string;
|
|
160
|
-
orderLimitPerUser: 1;
|
|
161
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
162
|
-
referralUser: mongoose.Types.ObjectId;
|
|
163
|
-
} | {
|
|
164
|
-
value: number;
|
|
165
|
-
code: string;
|
|
166
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
167
|
-
duration: {
|
|
168
|
-
start: Date;
|
|
169
|
-
end?: Date | undefined;
|
|
170
|
-
};
|
|
171
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
172
|
-
spendLimit: number | null;
|
|
173
|
-
user: mongoose.Types.ObjectId;
|
|
174
|
-
maxDiscountLimit: number | null;
|
|
175
|
-
totalOrderLimit: number | null;
|
|
176
|
-
minOrderValue: number | null;
|
|
177
|
-
forNewUserOnly: boolean;
|
|
178
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
179
|
-
orderLimitPerUser: number | null;
|
|
180
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
181
|
-
referralCodeUsedBy: mongoose.Types.ObjectId;
|
|
182
|
-
referralCodeUsedOnOrder: mongoose.Types.ObjectId;
|
|
183
|
-
} | {
|
|
184
|
-
value: number;
|
|
185
|
-
code: string;
|
|
186
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
187
|
-
duration: {
|
|
188
|
-
start: Date;
|
|
189
|
-
end?: Date | undefined;
|
|
190
|
-
};
|
|
191
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
192
|
-
spendLimit: number | null;
|
|
193
|
-
maxDiscountLimit: number | null;
|
|
194
|
-
totalOrderLimit: number | null;
|
|
195
|
-
minOrderValue: number | null;
|
|
196
|
-
forNewUserOnly: boolean;
|
|
197
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
198
|
-
orderLimitPerUser: number | null;
|
|
199
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
200
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
201
|
-
shops: [mongoose.Types.ObjectId, ...mongoose.Types.ObjectId[]];
|
|
202
|
-
isShopCoverExpenses: boolean;
|
|
203
|
-
} | {
|
|
204
|
-
value: number;
|
|
205
|
-
code: string;
|
|
206
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
207
|
-
duration: {
|
|
208
|
-
start: Date;
|
|
209
|
-
end?: Date | undefined;
|
|
210
|
-
};
|
|
211
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
212
|
-
spendLimit: number | null;
|
|
213
|
-
maxDiscountLimit: number | null;
|
|
214
|
-
totalOrderLimit: number | null;
|
|
215
|
-
minOrderValue: number | null;
|
|
216
|
-
forNewUserOnly: boolean;
|
|
217
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
218
|
-
orderLimitPerUser: number | null;
|
|
219
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
220
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
221
|
-
shops: mongoose.Types.ObjectId[];
|
|
222
|
-
users: [mongoose.Types.ObjectId, ...mongoose.Types.ObjectId[]];
|
|
223
|
-
} | {
|
|
224
|
-
value: number;
|
|
225
|
-
code: string;
|
|
226
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
227
|
-
duration: {
|
|
228
|
-
start: Date;
|
|
229
|
-
end?: Date | undefined;
|
|
230
|
-
};
|
|
231
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
232
|
-
spendLimit: number | null;
|
|
233
|
-
maxDiscountLimit: number | null;
|
|
234
|
-
totalOrderLimit: number | null;
|
|
235
|
-
minOrderValue: number | null;
|
|
236
|
-
forNewUserOnly: boolean;
|
|
237
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
238
|
-
orderLimitPerUser: number | null;
|
|
239
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
240
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
241
|
-
shops: mongoose.Types.ObjectId[];
|
|
242
|
-
influencer: mongoose.Types.ObjectId;
|
|
243
|
-
};
|
|
244
|
-
_output_in: {
|
|
123
|
+
output: {
|
|
245
124
|
message: string;
|
|
246
125
|
success: boolean;
|
|
247
126
|
data?: z.objectInputType<{
|
|
@@ -590,7 +469,11 @@ export declare const couponRouter: import("@trpc/server").CreateRouterInner<impo
|
|
|
590
469
|
} | undefined;
|
|
591
470
|
} | undefined;
|
|
592
471
|
};
|
|
593
|
-
|
|
472
|
+
meta: object;
|
|
473
|
+
}>;
|
|
474
|
+
getById: import("@trpc/server").TRPCQueryProcedure<{
|
|
475
|
+
input: string | mongoose.Types.ObjectId;
|
|
476
|
+
output: {
|
|
594
477
|
message: string;
|
|
595
478
|
success: boolean;
|
|
596
479
|
data?: z.objectInputType<{
|
|
@@ -939,29 +822,22 @@ export declare const couponRouter: import("@trpc/server").CreateRouterInner<impo
|
|
|
939
822
|
} | undefined;
|
|
940
823
|
} | undefined;
|
|
941
824
|
};
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
959
|
-
}>;
|
|
960
|
-
_meta: object;
|
|
961
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
962
|
-
_input_in: string | mongoose.Types.ObjectId;
|
|
963
|
-
_input_out: mongoose.Types.ObjectId;
|
|
964
|
-
_output_in: {
|
|
825
|
+
meta: object;
|
|
826
|
+
}>;
|
|
827
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
828
|
+
input: {
|
|
829
|
+
search?: {
|
|
830
|
+
searchKey: string;
|
|
831
|
+
searchFields?: string[] | undefined;
|
|
832
|
+
} | undefined;
|
|
833
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
834
|
+
page?: number | undefined;
|
|
835
|
+
select?: Record<string, 0 | 1> | undefined;
|
|
836
|
+
size?: number | undefined;
|
|
837
|
+
populate?: any;
|
|
838
|
+
query?: Record<string, any> | undefined;
|
|
839
|
+
} | undefined;
|
|
840
|
+
output: {
|
|
965
841
|
message: string;
|
|
966
842
|
success: boolean;
|
|
967
843
|
data?: z.objectInputType<{
|
|
@@ -1310,7 +1186,116 @@ export declare const couponRouter: import("@trpc/server").CreateRouterInner<impo
|
|
|
1310
1186
|
} | undefined;
|
|
1311
1187
|
} | undefined;
|
|
1312
1188
|
};
|
|
1313
|
-
|
|
1189
|
+
meta: object;
|
|
1190
|
+
}>;
|
|
1191
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
1192
|
+
input: {
|
|
1193
|
+
_id: string | mongoose.Types.ObjectId;
|
|
1194
|
+
data: {
|
|
1195
|
+
value: number;
|
|
1196
|
+
code: string;
|
|
1197
|
+
duration: {
|
|
1198
|
+
start: string | Date;
|
|
1199
|
+
end?: string | Date | undefined;
|
|
1200
|
+
};
|
|
1201
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1202
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
1203
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1204
|
+
spendLimit?: number | null | undefined;
|
|
1205
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1206
|
+
totalOrderLimit?: number | null | undefined;
|
|
1207
|
+
minOrderValue?: number | null | undefined;
|
|
1208
|
+
forNewUserOnly?: boolean | undefined;
|
|
1209
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1210
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1211
|
+
} | {
|
|
1212
|
+
code: string;
|
|
1213
|
+
orderLimitPerUser: 1;
|
|
1214
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1215
|
+
referralUser: string | mongoose.Types.ObjectId;
|
|
1216
|
+
} | {
|
|
1217
|
+
value: number;
|
|
1218
|
+
code: string;
|
|
1219
|
+
duration: {
|
|
1220
|
+
start: string | Date;
|
|
1221
|
+
end?: string | Date | undefined;
|
|
1222
|
+
};
|
|
1223
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1224
|
+
user: string | mongoose.Types.ObjectId;
|
|
1225
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1226
|
+
referralCodeUsedBy: string | mongoose.Types.ObjectId;
|
|
1227
|
+
referralCodeUsedOnOrder: string | mongoose.Types.ObjectId;
|
|
1228
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1229
|
+
spendLimit?: number | null | undefined;
|
|
1230
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1231
|
+
totalOrderLimit?: number | null | undefined;
|
|
1232
|
+
minOrderValue?: number | null | undefined;
|
|
1233
|
+
forNewUserOnly?: boolean | undefined;
|
|
1234
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1235
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1236
|
+
} | {
|
|
1237
|
+
value: number;
|
|
1238
|
+
code: string;
|
|
1239
|
+
duration: {
|
|
1240
|
+
start: string | Date;
|
|
1241
|
+
end?: string | Date | undefined;
|
|
1242
|
+
};
|
|
1243
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1244
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1245
|
+
shops: [string | mongoose.Types.ObjectId, ...(string | mongoose.Types.ObjectId)[]];
|
|
1246
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1247
|
+
spendLimit?: number | null | undefined;
|
|
1248
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1249
|
+
totalOrderLimit?: number | null | undefined;
|
|
1250
|
+
minOrderValue?: number | null | undefined;
|
|
1251
|
+
forNewUserOnly?: boolean | undefined;
|
|
1252
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1253
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1254
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1255
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
1256
|
+
} | {
|
|
1257
|
+
value: number;
|
|
1258
|
+
code: string;
|
|
1259
|
+
duration: {
|
|
1260
|
+
start: string | Date;
|
|
1261
|
+
end?: string | Date | undefined;
|
|
1262
|
+
};
|
|
1263
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1264
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
1265
|
+
users: [string | mongoose.Types.ObjectId, ...(string | mongoose.Types.ObjectId)[]];
|
|
1266
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1267
|
+
spendLimit?: number | null | undefined;
|
|
1268
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1269
|
+
totalOrderLimit?: number | null | undefined;
|
|
1270
|
+
minOrderValue?: number | null | undefined;
|
|
1271
|
+
forNewUserOnly?: boolean | undefined;
|
|
1272
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1273
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1274
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1275
|
+
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
1276
|
+
} | {
|
|
1277
|
+
value: number;
|
|
1278
|
+
code: string;
|
|
1279
|
+
duration: {
|
|
1280
|
+
start: string | Date;
|
|
1281
|
+
end?: string | Date | undefined;
|
|
1282
|
+
};
|
|
1283
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1284
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
1285
|
+
influencer: string | mongoose.Types.ObjectId;
|
|
1286
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1287
|
+
spendLimit?: number | null | undefined;
|
|
1288
|
+
maxDiscountLimit?: number | null | undefined;
|
|
1289
|
+
totalOrderLimit?: number | null | undefined;
|
|
1290
|
+
minOrderValue?: number | null | undefined;
|
|
1291
|
+
forNewUserOnly?: boolean | undefined;
|
|
1292
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1293
|
+
orderLimitPerUser?: number | null | undefined;
|
|
1294
|
+
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1295
|
+
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
output: {
|
|
1314
1299
|
message: string;
|
|
1315
1300
|
success: boolean;
|
|
1316
1301
|
data?: z.objectInputType<{
|
|
@@ -1659,51 +1644,14 @@ export declare const couponRouter: import("@trpc/server").CreateRouterInner<impo
|
|
|
1659
1644
|
} | undefined;
|
|
1660
1645
|
} | undefined;
|
|
1661
1646
|
};
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
stack: undefined;
|
|
1671
|
-
path: undefined;
|
|
1672
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
1673
|
-
httpStatus: number;
|
|
1674
|
-
};
|
|
1675
|
-
stack: undefined;
|
|
1676
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
1677
|
-
};
|
|
1678
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
1679
|
-
}>;
|
|
1680
|
-
_meta: object;
|
|
1681
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
1682
|
-
_input_in: {
|
|
1683
|
-
search?: {
|
|
1684
|
-
searchKey: string;
|
|
1685
|
-
searchFields?: string[] | undefined;
|
|
1686
|
-
} | undefined;
|
|
1687
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
1688
|
-
page?: number | undefined;
|
|
1689
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
1690
|
-
size?: number | undefined;
|
|
1691
|
-
populate?: any;
|
|
1692
|
-
query?: Record<string, any> | undefined;
|
|
1693
|
-
} | undefined;
|
|
1694
|
-
_input_out: {
|
|
1695
|
-
page: number;
|
|
1696
|
-
size: number;
|
|
1697
|
-
search?: {
|
|
1698
|
-
searchKey: string;
|
|
1699
|
-
searchFields?: string[] | undefined;
|
|
1700
|
-
} | undefined;
|
|
1701
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
1702
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
1703
|
-
populate?: any;
|
|
1704
|
-
query?: Record<string, any> | undefined;
|
|
1705
|
-
} | undefined;
|
|
1706
|
-
_output_in: {
|
|
1647
|
+
meta: object;
|
|
1648
|
+
}>;
|
|
1649
|
+
deleteById: import("@trpc/server").TRPCMutationProcedure<{
|
|
1650
|
+
input: {
|
|
1651
|
+
_id: string | import("mongoose").Types.ObjectId;
|
|
1652
|
+
softDelete?: boolean | undefined;
|
|
1653
|
+
};
|
|
1654
|
+
output: {
|
|
1707
1655
|
message: string;
|
|
1708
1656
|
success: boolean;
|
|
1709
1657
|
data?: z.objectInputType<{
|
|
@@ -2052,2115 +2000,30 @@ export declare const couponRouter: import("@trpc/server").CreateRouterInner<impo
|
|
|
2052
2000
|
} | undefined;
|
|
2053
2001
|
} | undefined;
|
|
2054
2002
|
};
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2080
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2081
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2082
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2083
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2084
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2085
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2086
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2087
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2088
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2089
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2090
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2091
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2092
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2093
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2094
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2095
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
2096
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2097
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2098
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2099
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2100
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2101
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2102
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2103
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2104
|
-
end: 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>>;
|
|
2105
|
-
}, "strip", z.ZodTypeAny, {
|
|
2106
|
-
start: Date;
|
|
2107
|
-
end?: Date | undefined;
|
|
2108
|
-
}, {
|
|
2109
|
-
start: string | Date;
|
|
2110
|
-
end?: string | Date | undefined;
|
|
2111
|
-
}>, {
|
|
2112
|
-
start: Date;
|
|
2113
|
-
end?: Date | undefined;
|
|
2114
|
-
}, {
|
|
2115
|
-
start: string | Date;
|
|
2116
|
-
end?: string | Date | undefined;
|
|
2117
|
-
}>>;
|
|
2118
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2119
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2120
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2121
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2122
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2123
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2124
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2125
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2126
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2127
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2128
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2129
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2130
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2131
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2132
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2133
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2134
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2135
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2136
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2137
|
-
end: 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>>;
|
|
2138
|
-
}, "strip", z.ZodTypeAny, {
|
|
2139
|
-
start: Date;
|
|
2140
|
-
end?: Date | undefined;
|
|
2141
|
-
}, {
|
|
2142
|
-
start: string | Date;
|
|
2143
|
-
end?: string | Date | undefined;
|
|
2144
|
-
}>, {
|
|
2145
|
-
start: Date;
|
|
2146
|
-
end?: Date | undefined;
|
|
2147
|
-
}, {
|
|
2148
|
-
start: string | Date;
|
|
2149
|
-
end?: string | Date | undefined;
|
|
2150
|
-
}>>;
|
|
2151
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2152
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2153
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2154
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2155
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2156
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2157
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2158
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2159
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2160
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2161
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
2162
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2163
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2164
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2165
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2166
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2167
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2168
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2169
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2170
|
-
end: 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>>;
|
|
2171
|
-
}, "strip", z.ZodTypeAny, {
|
|
2172
|
-
start: Date;
|
|
2173
|
-
end?: Date | undefined;
|
|
2174
|
-
}, {
|
|
2175
|
-
start: string | Date;
|
|
2176
|
-
end?: string | Date | undefined;
|
|
2177
|
-
}>, {
|
|
2178
|
-
start: Date;
|
|
2179
|
-
end?: Date | undefined;
|
|
2180
|
-
}, {
|
|
2181
|
-
start: string | Date;
|
|
2182
|
-
end?: string | Date | undefined;
|
|
2183
|
-
}>>;
|
|
2184
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2185
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2186
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2187
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2188
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2189
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2190
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2191
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2192
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2193
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2194
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
2195
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2196
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2197
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2198
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2199
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2200
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2201
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2202
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2203
|
-
end: 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>>;
|
|
2204
|
-
}, "strip", z.ZodTypeAny, {
|
|
2205
|
-
start: Date;
|
|
2206
|
-
end?: Date | undefined;
|
|
2207
|
-
}, {
|
|
2208
|
-
start: string | Date;
|
|
2209
|
-
end?: string | Date | undefined;
|
|
2210
|
-
}>, {
|
|
2211
|
-
start: Date;
|
|
2212
|
-
end?: Date | undefined;
|
|
2213
|
-
}, {
|
|
2214
|
-
start: string | Date;
|
|
2215
|
-
end?: string | Date | undefined;
|
|
2216
|
-
}>>;
|
|
2217
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2218
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2219
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2220
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2221
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2222
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2223
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2224
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2225
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2226
|
-
}, z.ZodTypeAny, "passthrough"> | {
|
|
2227
|
-
documents: (z.objectInputType<{
|
|
2228
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2229
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2230
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2231
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2232
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2233
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2234
|
-
end: 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>>;
|
|
2235
|
-
}, "strip", z.ZodTypeAny, {
|
|
2236
|
-
start: Date;
|
|
2237
|
-
end?: Date | undefined;
|
|
2238
|
-
}, {
|
|
2239
|
-
start: string | Date;
|
|
2240
|
-
end?: string | Date | undefined;
|
|
2241
|
-
}>, {
|
|
2242
|
-
start: Date;
|
|
2243
|
-
end?: Date | undefined;
|
|
2244
|
-
}, {
|
|
2245
|
-
start: string | Date;
|
|
2246
|
-
end?: string | Date | undefined;
|
|
2247
|
-
}>>;
|
|
2248
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2249
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2250
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2251
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2252
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2253
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2254
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2255
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2256
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2257
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2258
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2259
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2260
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2261
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2262
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2263
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2264
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
2265
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2266
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2267
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2268
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2269
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2270
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2271
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2272
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2273
|
-
end: 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>>;
|
|
2274
|
-
}, "strip", z.ZodTypeAny, {
|
|
2275
|
-
start: Date;
|
|
2276
|
-
end?: Date | undefined;
|
|
2277
|
-
}, {
|
|
2278
|
-
start: string | Date;
|
|
2279
|
-
end?: string | Date | undefined;
|
|
2280
|
-
}>, {
|
|
2281
|
-
start: Date;
|
|
2282
|
-
end?: Date | undefined;
|
|
2283
|
-
}, {
|
|
2284
|
-
start: string | Date;
|
|
2285
|
-
end?: string | Date | undefined;
|
|
2286
|
-
}>>;
|
|
2287
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2288
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2289
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2290
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2291
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2292
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2293
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2294
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2295
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2296
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2297
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2298
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2299
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2300
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2301
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2302
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2303
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2304
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2305
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2306
|
-
end: 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>>;
|
|
2307
|
-
}, "strip", z.ZodTypeAny, {
|
|
2308
|
-
start: Date;
|
|
2309
|
-
end?: Date | undefined;
|
|
2310
|
-
}, {
|
|
2311
|
-
start: string | Date;
|
|
2312
|
-
end?: string | Date | undefined;
|
|
2313
|
-
}>, {
|
|
2314
|
-
start: Date;
|
|
2315
|
-
end?: Date | undefined;
|
|
2316
|
-
}, {
|
|
2317
|
-
start: string | Date;
|
|
2318
|
-
end?: string | Date | undefined;
|
|
2319
|
-
}>>;
|
|
2320
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2321
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2322
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2323
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2324
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2325
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2326
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2327
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2328
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2329
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2330
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
2331
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2332
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2333
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2334
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2335
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2336
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2337
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2338
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2339
|
-
end: 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>>;
|
|
2340
|
-
}, "strip", z.ZodTypeAny, {
|
|
2341
|
-
start: Date;
|
|
2342
|
-
end?: Date | undefined;
|
|
2343
|
-
}, {
|
|
2344
|
-
start: string | Date;
|
|
2345
|
-
end?: string | Date | undefined;
|
|
2346
|
-
}>, {
|
|
2347
|
-
start: Date;
|
|
2348
|
-
end?: Date | undefined;
|
|
2349
|
-
}, {
|
|
2350
|
-
start: string | Date;
|
|
2351
|
-
end?: string | Date | undefined;
|
|
2352
|
-
}>>;
|
|
2353
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2354
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2355
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2356
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2357
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2358
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2359
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2360
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2361
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2362
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2363
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
2364
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2365
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2366
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2367
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2368
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2369
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2370
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2371
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2372
|
-
end: 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>>;
|
|
2373
|
-
}, "strip", z.ZodTypeAny, {
|
|
2374
|
-
start: Date;
|
|
2375
|
-
end?: Date | undefined;
|
|
2376
|
-
}, {
|
|
2377
|
-
start: string | Date;
|
|
2378
|
-
end?: string | Date | undefined;
|
|
2379
|
-
}>, {
|
|
2380
|
-
start: Date;
|
|
2381
|
-
end?: Date | undefined;
|
|
2382
|
-
}, {
|
|
2383
|
-
start: string | Date;
|
|
2384
|
-
end?: string | Date | undefined;
|
|
2385
|
-
}>>;
|
|
2386
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2387
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2388
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2389
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2390
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2391
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2392
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2393
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2394
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2395
|
-
}, z.ZodTypeAny, "passthrough">)[];
|
|
2396
|
-
metadata?: {
|
|
2397
|
-
page: number;
|
|
2398
|
-
size: number;
|
|
2399
|
-
totalElements: number;
|
|
2400
|
-
totalPages: number;
|
|
2401
|
-
} | undefined;
|
|
2402
|
-
} | undefined;
|
|
2403
|
-
};
|
|
2404
|
-
}, unknown>;
|
|
2405
|
-
update: import("@trpc/server").BuildProcedure<"mutation", {
|
|
2406
|
-
_config: import("@trpc/server").RootConfig<{
|
|
2407
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
2408
|
-
meta: object;
|
|
2409
|
-
errorShape: {
|
|
2410
|
-
message: string;
|
|
2411
|
-
data: {
|
|
2412
|
-
stack: undefined;
|
|
2413
|
-
path: undefined;
|
|
2414
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
2415
|
-
httpStatus: number;
|
|
2416
|
-
};
|
|
2417
|
-
stack: undefined;
|
|
2418
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
2419
|
-
};
|
|
2420
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
2421
|
-
}>;
|
|
2422
|
-
_meta: object;
|
|
2423
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
2424
|
-
_input_in: {
|
|
2425
|
-
_id: string | mongoose.Types.ObjectId;
|
|
2426
|
-
data: {
|
|
2427
|
-
value: number;
|
|
2428
|
-
code: string;
|
|
2429
|
-
duration: {
|
|
2430
|
-
start: string | Date;
|
|
2431
|
-
end?: string | Date | undefined;
|
|
2432
|
-
};
|
|
2433
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2434
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2435
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2436
|
-
spendLimit?: number | null | undefined;
|
|
2437
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2438
|
-
totalOrderLimit?: number | null | undefined;
|
|
2439
|
-
minOrderValue?: number | null | undefined;
|
|
2440
|
-
forNewUserOnly?: boolean | undefined;
|
|
2441
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2442
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2443
|
-
} | {
|
|
2444
|
-
code: string;
|
|
2445
|
-
orderLimitPerUser: 1;
|
|
2446
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2447
|
-
referralUser: string | mongoose.Types.ObjectId;
|
|
2448
|
-
} | {
|
|
2449
|
-
value: number;
|
|
2450
|
-
code: string;
|
|
2451
|
-
duration: {
|
|
2452
|
-
start: string | Date;
|
|
2453
|
-
end?: string | Date | undefined;
|
|
2454
|
-
};
|
|
2455
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2456
|
-
user: string | mongoose.Types.ObjectId;
|
|
2457
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
2458
|
-
referralCodeUsedBy: string | mongoose.Types.ObjectId;
|
|
2459
|
-
referralCodeUsedOnOrder: string | mongoose.Types.ObjectId;
|
|
2460
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2461
|
-
spendLimit?: number | null | undefined;
|
|
2462
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2463
|
-
totalOrderLimit?: number | null | undefined;
|
|
2464
|
-
minOrderValue?: number | null | undefined;
|
|
2465
|
-
forNewUserOnly?: boolean | undefined;
|
|
2466
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2467
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2468
|
-
} | {
|
|
2469
|
-
value: number;
|
|
2470
|
-
code: string;
|
|
2471
|
-
duration: {
|
|
2472
|
-
start: string | Date;
|
|
2473
|
-
end?: string | Date | undefined;
|
|
2474
|
-
};
|
|
2475
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2476
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2477
|
-
shops: [string | mongoose.Types.ObjectId, ...(string | mongoose.Types.ObjectId)[]];
|
|
2478
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2479
|
-
spendLimit?: number | null | undefined;
|
|
2480
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2481
|
-
totalOrderLimit?: number | null | undefined;
|
|
2482
|
-
minOrderValue?: number | null | undefined;
|
|
2483
|
-
forNewUserOnly?: boolean | undefined;
|
|
2484
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2485
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2486
|
-
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2487
|
-
isShopCoverExpenses?: boolean | undefined;
|
|
2488
|
-
} | {
|
|
2489
|
-
value: number;
|
|
2490
|
-
code: string;
|
|
2491
|
-
duration: {
|
|
2492
|
-
start: string | Date;
|
|
2493
|
-
end?: string | Date | undefined;
|
|
2494
|
-
};
|
|
2495
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2496
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
2497
|
-
users: [string | mongoose.Types.ObjectId, ...(string | mongoose.Types.ObjectId)[]];
|
|
2498
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2499
|
-
spendLimit?: number | null | undefined;
|
|
2500
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2501
|
-
totalOrderLimit?: number | null | undefined;
|
|
2502
|
-
minOrderValue?: number | null | undefined;
|
|
2503
|
-
forNewUserOnly?: boolean | undefined;
|
|
2504
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2505
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2506
|
-
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2507
|
-
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
2508
|
-
} | {
|
|
2509
|
-
value: number;
|
|
2510
|
-
code: string;
|
|
2511
|
-
duration: {
|
|
2512
|
-
start: string | Date;
|
|
2513
|
-
end?: string | Date | undefined;
|
|
2514
|
-
};
|
|
2515
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2516
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
2517
|
-
influencer: string | mongoose.Types.ObjectId;
|
|
2518
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2519
|
-
spendLimit?: number | null | undefined;
|
|
2520
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2521
|
-
totalOrderLimit?: number | null | undefined;
|
|
2522
|
-
minOrderValue?: number | null | undefined;
|
|
2523
|
-
forNewUserOnly?: boolean | undefined;
|
|
2524
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2525
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2526
|
-
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2527
|
-
shops?: (string | mongoose.Types.ObjectId)[] | undefined;
|
|
2528
|
-
};
|
|
2529
|
-
};
|
|
2530
|
-
_input_out: {
|
|
2531
|
-
_id: mongoose.Types.ObjectId;
|
|
2532
|
-
data: {
|
|
2533
|
-
value: number;
|
|
2534
|
-
code: string;
|
|
2535
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2536
|
-
duration: {
|
|
2537
|
-
start: Date;
|
|
2538
|
-
end?: Date | undefined;
|
|
2539
|
-
};
|
|
2540
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2541
|
-
spendLimit: number | null;
|
|
2542
|
-
maxDiscountLimit: number | null;
|
|
2543
|
-
totalOrderLimit: number | null;
|
|
2544
|
-
minOrderValue: number | null;
|
|
2545
|
-
forNewUserOnly: boolean;
|
|
2546
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2547
|
-
orderLimitPerUser: number | null;
|
|
2548
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2549
|
-
} | {
|
|
2550
|
-
code: string;
|
|
2551
|
-
orderLimitPerUser: 1;
|
|
2552
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2553
|
-
referralUser: mongoose.Types.ObjectId;
|
|
2554
|
-
} | {
|
|
2555
|
-
value: number;
|
|
2556
|
-
code: string;
|
|
2557
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2558
|
-
duration: {
|
|
2559
|
-
start: Date;
|
|
2560
|
-
end?: Date | undefined;
|
|
2561
|
-
};
|
|
2562
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2563
|
-
spendLimit: number | null;
|
|
2564
|
-
user: mongoose.Types.ObjectId;
|
|
2565
|
-
maxDiscountLimit: number | null;
|
|
2566
|
-
totalOrderLimit: number | null;
|
|
2567
|
-
minOrderValue: number | null;
|
|
2568
|
-
forNewUserOnly: boolean;
|
|
2569
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2570
|
-
orderLimitPerUser: number | null;
|
|
2571
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
2572
|
-
referralCodeUsedBy: mongoose.Types.ObjectId;
|
|
2573
|
-
referralCodeUsedOnOrder: mongoose.Types.ObjectId;
|
|
2574
|
-
} | {
|
|
2575
|
-
value: number;
|
|
2576
|
-
code: string;
|
|
2577
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2578
|
-
duration: {
|
|
2579
|
-
start: Date;
|
|
2580
|
-
end?: Date | undefined;
|
|
2581
|
-
};
|
|
2582
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2583
|
-
spendLimit: number | null;
|
|
2584
|
-
maxDiscountLimit: number | null;
|
|
2585
|
-
totalOrderLimit: number | null;
|
|
2586
|
-
minOrderValue: number | null;
|
|
2587
|
-
forNewUserOnly: boolean;
|
|
2588
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2589
|
-
orderLimitPerUser: number | null;
|
|
2590
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2591
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2592
|
-
shops: [mongoose.Types.ObjectId, ...mongoose.Types.ObjectId[]];
|
|
2593
|
-
isShopCoverExpenses: boolean;
|
|
2594
|
-
} | {
|
|
2595
|
-
value: number;
|
|
2596
|
-
code: string;
|
|
2597
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2598
|
-
duration: {
|
|
2599
|
-
start: Date;
|
|
2600
|
-
end?: Date | undefined;
|
|
2601
|
-
};
|
|
2602
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2603
|
-
spendLimit: number | null;
|
|
2604
|
-
maxDiscountLimit: number | null;
|
|
2605
|
-
totalOrderLimit: number | null;
|
|
2606
|
-
minOrderValue: number | null;
|
|
2607
|
-
forNewUserOnly: boolean;
|
|
2608
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2609
|
-
orderLimitPerUser: number | null;
|
|
2610
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
2611
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2612
|
-
shops: mongoose.Types.ObjectId[];
|
|
2613
|
-
users: [mongoose.Types.ObjectId, ...mongoose.Types.ObjectId[]];
|
|
2614
|
-
} | {
|
|
2615
|
-
value: number;
|
|
2616
|
-
code: string;
|
|
2617
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2618
|
-
duration: {
|
|
2619
|
-
start: Date;
|
|
2620
|
-
end?: Date | undefined;
|
|
2621
|
-
};
|
|
2622
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2623
|
-
spendLimit: number | null;
|
|
2624
|
-
maxDiscountLimit: number | null;
|
|
2625
|
-
totalOrderLimit: number | null;
|
|
2626
|
-
minOrderValue: number | null;
|
|
2627
|
-
forNewUserOnly: boolean;
|
|
2628
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2629
|
-
orderLimitPerUser: number | null;
|
|
2630
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
2631
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2632
|
-
shops: mongoose.Types.ObjectId[];
|
|
2633
|
-
influencer: mongoose.Types.ObjectId;
|
|
2634
|
-
};
|
|
2635
|
-
};
|
|
2636
|
-
_output_in: {
|
|
2637
|
-
message: string;
|
|
2638
|
-
success: boolean;
|
|
2639
|
-
data?: z.objectInputType<{
|
|
2640
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2641
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2642
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2643
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2644
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2645
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2646
|
-
end: 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>>;
|
|
2647
|
-
}, "strip", z.ZodTypeAny, {
|
|
2648
|
-
start: Date;
|
|
2649
|
-
end?: Date | undefined;
|
|
2650
|
-
}, {
|
|
2651
|
-
start: string | Date;
|
|
2652
|
-
end?: string | Date | undefined;
|
|
2653
|
-
}>, {
|
|
2654
|
-
start: Date;
|
|
2655
|
-
end?: Date | undefined;
|
|
2656
|
-
}, {
|
|
2657
|
-
start: string | Date;
|
|
2658
|
-
end?: string | Date | undefined;
|
|
2659
|
-
}>>;
|
|
2660
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2661
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2662
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2663
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2664
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2665
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2666
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2667
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2668
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2669
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2670
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2671
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2672
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2673
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2674
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2675
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2676
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
2677
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2678
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2679
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2680
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2681
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2682
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2683
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2684
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2685
|
-
end: 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>>;
|
|
2686
|
-
}, "strip", z.ZodTypeAny, {
|
|
2687
|
-
start: Date;
|
|
2688
|
-
end?: Date | undefined;
|
|
2689
|
-
}, {
|
|
2690
|
-
start: string | Date;
|
|
2691
|
-
end?: string | Date | undefined;
|
|
2692
|
-
}>, {
|
|
2693
|
-
start: Date;
|
|
2694
|
-
end?: Date | undefined;
|
|
2695
|
-
}, {
|
|
2696
|
-
start: string | Date;
|
|
2697
|
-
end?: string | Date | undefined;
|
|
2698
|
-
}>>;
|
|
2699
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2700
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2701
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2702
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2703
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2704
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2705
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2706
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2707
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2708
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2709
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2710
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2711
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2712
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2713
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2714
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2715
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2716
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2717
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2718
|
-
end: 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>>;
|
|
2719
|
-
}, "strip", z.ZodTypeAny, {
|
|
2720
|
-
start: Date;
|
|
2721
|
-
end?: Date | undefined;
|
|
2722
|
-
}, {
|
|
2723
|
-
start: string | Date;
|
|
2724
|
-
end?: string | Date | undefined;
|
|
2725
|
-
}>, {
|
|
2726
|
-
start: Date;
|
|
2727
|
-
end?: Date | undefined;
|
|
2728
|
-
}, {
|
|
2729
|
-
start: string | Date;
|
|
2730
|
-
end?: string | Date | undefined;
|
|
2731
|
-
}>>;
|
|
2732
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2733
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2734
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2735
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2736
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2737
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2738
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2739
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2740
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2741
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2742
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
2743
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2744
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2745
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2746
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2747
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2748
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2749
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2750
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2751
|
-
end: 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>>;
|
|
2752
|
-
}, "strip", z.ZodTypeAny, {
|
|
2753
|
-
start: Date;
|
|
2754
|
-
end?: Date | undefined;
|
|
2755
|
-
}, {
|
|
2756
|
-
start: string | Date;
|
|
2757
|
-
end?: string | Date | undefined;
|
|
2758
|
-
}>, {
|
|
2759
|
-
start: Date;
|
|
2760
|
-
end?: Date | undefined;
|
|
2761
|
-
}, {
|
|
2762
|
-
start: string | Date;
|
|
2763
|
-
end?: string | Date | undefined;
|
|
2764
|
-
}>>;
|
|
2765
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2766
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2767
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2768
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2769
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2770
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2771
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2772
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2773
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2774
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2775
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
2776
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2777
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2778
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2779
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2780
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2781
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2782
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2783
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2784
|
-
end: 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>>;
|
|
2785
|
-
}, "strip", z.ZodTypeAny, {
|
|
2786
|
-
start: Date;
|
|
2787
|
-
end?: Date | undefined;
|
|
2788
|
-
}, {
|
|
2789
|
-
start: string | Date;
|
|
2790
|
-
end?: string | Date | undefined;
|
|
2791
|
-
}>, {
|
|
2792
|
-
start: Date;
|
|
2793
|
-
end?: Date | undefined;
|
|
2794
|
-
}, {
|
|
2795
|
-
start: string | Date;
|
|
2796
|
-
end?: string | Date | undefined;
|
|
2797
|
-
}>>;
|
|
2798
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2799
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2800
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2801
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2802
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2803
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2804
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2805
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2806
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2807
|
-
}, z.ZodTypeAny, "passthrough"> | {
|
|
2808
|
-
documents: (z.objectInputType<{
|
|
2809
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2810
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2811
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2812
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2813
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2814
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2815
|
-
end: 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>>;
|
|
2816
|
-
}, "strip", z.ZodTypeAny, {
|
|
2817
|
-
start: Date;
|
|
2818
|
-
end?: Date | undefined;
|
|
2819
|
-
}, {
|
|
2820
|
-
start: string | Date;
|
|
2821
|
-
end?: string | Date | undefined;
|
|
2822
|
-
}>, {
|
|
2823
|
-
start: Date;
|
|
2824
|
-
end?: Date | undefined;
|
|
2825
|
-
}, {
|
|
2826
|
-
start: string | Date;
|
|
2827
|
-
end?: string | Date | undefined;
|
|
2828
|
-
}>>;
|
|
2829
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2830
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2831
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2832
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2833
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2834
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2835
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2836
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2837
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2838
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2839
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
2840
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
2841
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2842
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2843
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2844
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2845
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
2846
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2847
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2848
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2849
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2850
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2851
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2852
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2853
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2854
|
-
end: 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>>;
|
|
2855
|
-
}, "strip", z.ZodTypeAny, {
|
|
2856
|
-
start: Date;
|
|
2857
|
-
end?: Date | undefined;
|
|
2858
|
-
}, {
|
|
2859
|
-
start: string | Date;
|
|
2860
|
-
end?: string | Date | undefined;
|
|
2861
|
-
}>, {
|
|
2862
|
-
start: Date;
|
|
2863
|
-
end?: Date | undefined;
|
|
2864
|
-
}, {
|
|
2865
|
-
start: string | Date;
|
|
2866
|
-
end?: string | Date | undefined;
|
|
2867
|
-
}>>;
|
|
2868
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2869
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2870
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2871
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2872
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2873
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2874
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2875
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2876
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2877
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2878
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
2879
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2880
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2881
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2882
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2883
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2884
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2885
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2886
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2887
|
-
end: 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>>;
|
|
2888
|
-
}, "strip", z.ZodTypeAny, {
|
|
2889
|
-
start: Date;
|
|
2890
|
-
end?: Date | undefined;
|
|
2891
|
-
}, {
|
|
2892
|
-
start: string | Date;
|
|
2893
|
-
end?: string | Date | undefined;
|
|
2894
|
-
}>, {
|
|
2895
|
-
start: Date;
|
|
2896
|
-
end?: Date | undefined;
|
|
2897
|
-
}, {
|
|
2898
|
-
start: string | Date;
|
|
2899
|
-
end?: string | Date | undefined;
|
|
2900
|
-
}>>;
|
|
2901
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2902
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2903
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2904
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2905
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2906
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2907
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2908
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2909
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2910
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2911
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
2912
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
2913
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2914
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2915
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2916
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2917
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2918
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2919
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2920
|
-
end: 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>>;
|
|
2921
|
-
}, "strip", z.ZodTypeAny, {
|
|
2922
|
-
start: Date;
|
|
2923
|
-
end?: Date | undefined;
|
|
2924
|
-
}, {
|
|
2925
|
-
start: string | Date;
|
|
2926
|
-
end?: string | Date | undefined;
|
|
2927
|
-
}>, {
|
|
2928
|
-
start: Date;
|
|
2929
|
-
end?: Date | undefined;
|
|
2930
|
-
}, {
|
|
2931
|
-
start: string | Date;
|
|
2932
|
-
end?: string | Date | undefined;
|
|
2933
|
-
}>>;
|
|
2934
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2935
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2936
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2937
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2938
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2939
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2940
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2941
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2942
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2943
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
2944
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
2945
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2946
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
2947
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
2948
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2949
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2950
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2951
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2952
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2953
|
-
end: 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>>;
|
|
2954
|
-
}, "strip", z.ZodTypeAny, {
|
|
2955
|
-
start: Date;
|
|
2956
|
-
end?: Date | undefined;
|
|
2957
|
-
}, {
|
|
2958
|
-
start: string | Date;
|
|
2959
|
-
end?: string | Date | undefined;
|
|
2960
|
-
}>, {
|
|
2961
|
-
start: Date;
|
|
2962
|
-
end?: Date | undefined;
|
|
2963
|
-
}, {
|
|
2964
|
-
start: string | Date;
|
|
2965
|
-
end?: string | Date | undefined;
|
|
2966
|
-
}>>;
|
|
2967
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2968
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2969
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
2970
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2971
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2972
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2973
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2974
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2975
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
2976
|
-
}, z.ZodTypeAny, "passthrough">)[];
|
|
2977
|
-
metadata?: {
|
|
2978
|
-
page: number;
|
|
2979
|
-
size: number;
|
|
2980
|
-
totalElements: number;
|
|
2981
|
-
totalPages: number;
|
|
2982
|
-
} | undefined;
|
|
2983
|
-
} | undefined;
|
|
2984
|
-
};
|
|
2985
|
-
_output_out: {
|
|
2986
|
-
message: string;
|
|
2987
|
-
success: boolean;
|
|
2988
|
-
data?: z.objectInputType<{
|
|
2989
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
2990
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
2991
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
2992
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2993
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2994
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
2995
|
-
end: 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>>;
|
|
2996
|
-
}, "strip", z.ZodTypeAny, {
|
|
2997
|
-
start: Date;
|
|
2998
|
-
end?: Date | undefined;
|
|
2999
|
-
}, {
|
|
3000
|
-
start: string | Date;
|
|
3001
|
-
end?: string | Date | undefined;
|
|
3002
|
-
}>, {
|
|
3003
|
-
start: Date;
|
|
3004
|
-
end?: Date | undefined;
|
|
3005
|
-
}, {
|
|
3006
|
-
start: string | Date;
|
|
3007
|
-
end?: string | Date | undefined;
|
|
3008
|
-
}>>;
|
|
3009
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3010
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3011
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3012
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3013
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3014
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3015
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3016
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3017
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3018
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3019
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3020
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3021
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3022
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3023
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3024
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3025
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
3026
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3027
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3028
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3029
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3030
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3031
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3032
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3033
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3034
|
-
end: 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>>;
|
|
3035
|
-
}, "strip", z.ZodTypeAny, {
|
|
3036
|
-
start: Date;
|
|
3037
|
-
end?: Date | undefined;
|
|
3038
|
-
}, {
|
|
3039
|
-
start: string | Date;
|
|
3040
|
-
end?: string | Date | undefined;
|
|
3041
|
-
}>, {
|
|
3042
|
-
start: Date;
|
|
3043
|
-
end?: Date | undefined;
|
|
3044
|
-
}, {
|
|
3045
|
-
start: string | Date;
|
|
3046
|
-
end?: string | Date | undefined;
|
|
3047
|
-
}>>;
|
|
3048
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3049
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3050
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3051
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3052
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3053
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3054
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3055
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3056
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3057
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3058
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3059
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3060
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3061
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3062
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3063
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3064
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3065
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3066
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3067
|
-
end: 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>>;
|
|
3068
|
-
}, "strip", z.ZodTypeAny, {
|
|
3069
|
-
start: Date;
|
|
3070
|
-
end?: Date | undefined;
|
|
3071
|
-
}, {
|
|
3072
|
-
start: string | Date;
|
|
3073
|
-
end?: string | Date | undefined;
|
|
3074
|
-
}>, {
|
|
3075
|
-
start: Date;
|
|
3076
|
-
end?: Date | undefined;
|
|
3077
|
-
}, {
|
|
3078
|
-
start: string | Date;
|
|
3079
|
-
end?: string | Date | undefined;
|
|
3080
|
-
}>>;
|
|
3081
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3082
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3083
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3084
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3085
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3086
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3087
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3088
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3089
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3090
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3091
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
3092
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3093
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3094
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3095
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3096
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3097
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3098
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3099
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3100
|
-
end: 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>>;
|
|
3101
|
-
}, "strip", z.ZodTypeAny, {
|
|
3102
|
-
start: Date;
|
|
3103
|
-
end?: Date | undefined;
|
|
3104
|
-
}, {
|
|
3105
|
-
start: string | Date;
|
|
3106
|
-
end?: string | Date | undefined;
|
|
3107
|
-
}>, {
|
|
3108
|
-
start: Date;
|
|
3109
|
-
end?: Date | undefined;
|
|
3110
|
-
}, {
|
|
3111
|
-
start: string | Date;
|
|
3112
|
-
end?: string | Date | undefined;
|
|
3113
|
-
}>>;
|
|
3114
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3115
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3116
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3117
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3118
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3119
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3120
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3121
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3122
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3123
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3124
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
3125
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3126
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3127
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3128
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3129
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3130
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3131
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3132
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3133
|
-
end: 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>>;
|
|
3134
|
-
}, "strip", z.ZodTypeAny, {
|
|
3135
|
-
start: Date;
|
|
3136
|
-
end?: Date | undefined;
|
|
3137
|
-
}, {
|
|
3138
|
-
start: string | Date;
|
|
3139
|
-
end?: string | Date | undefined;
|
|
3140
|
-
}>, {
|
|
3141
|
-
start: Date;
|
|
3142
|
-
end?: Date | undefined;
|
|
3143
|
-
}, {
|
|
3144
|
-
start: string | Date;
|
|
3145
|
-
end?: string | Date | undefined;
|
|
3146
|
-
}>>;
|
|
3147
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3148
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3149
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3150
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3151
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3152
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3153
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3154
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3155
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3156
|
-
}, z.ZodTypeAny, "passthrough"> | {
|
|
3157
|
-
documents: (z.objectInputType<{
|
|
3158
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
3159
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3160
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3161
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3162
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3163
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3164
|
-
end: 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>>;
|
|
3165
|
-
}, "strip", z.ZodTypeAny, {
|
|
3166
|
-
start: Date;
|
|
3167
|
-
end?: Date | undefined;
|
|
3168
|
-
}, {
|
|
3169
|
-
start: string | Date;
|
|
3170
|
-
end?: string | Date | undefined;
|
|
3171
|
-
}>, {
|
|
3172
|
-
start: Date;
|
|
3173
|
-
end?: Date | undefined;
|
|
3174
|
-
}, {
|
|
3175
|
-
start: string | Date;
|
|
3176
|
-
end?: string | Date | undefined;
|
|
3177
|
-
}>>;
|
|
3178
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3179
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3180
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3181
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3182
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3183
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3184
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3185
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3186
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3187
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3188
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3189
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3190
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3191
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3192
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3193
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3194
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
3195
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3196
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3197
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3198
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3199
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3200
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3201
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3202
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3203
|
-
end: 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>>;
|
|
3204
|
-
}, "strip", z.ZodTypeAny, {
|
|
3205
|
-
start: Date;
|
|
3206
|
-
end?: Date | undefined;
|
|
3207
|
-
}, {
|
|
3208
|
-
start: string | Date;
|
|
3209
|
-
end?: string | Date | undefined;
|
|
3210
|
-
}>, {
|
|
3211
|
-
start: Date;
|
|
3212
|
-
end?: Date | undefined;
|
|
3213
|
-
}, {
|
|
3214
|
-
start: string | Date;
|
|
3215
|
-
end?: string | Date | undefined;
|
|
3216
|
-
}>>;
|
|
3217
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3218
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3219
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3220
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3221
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3222
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3223
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3224
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3225
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3226
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3227
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3228
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3229
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3230
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3231
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3232
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3233
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3234
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3235
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3236
|
-
end: 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>>;
|
|
3237
|
-
}, "strip", z.ZodTypeAny, {
|
|
3238
|
-
start: Date;
|
|
3239
|
-
end?: Date | undefined;
|
|
3240
|
-
}, {
|
|
3241
|
-
start: string | Date;
|
|
3242
|
-
end?: string | Date | undefined;
|
|
3243
|
-
}>, {
|
|
3244
|
-
start: Date;
|
|
3245
|
-
end?: Date | undefined;
|
|
3246
|
-
}, {
|
|
3247
|
-
start: string | Date;
|
|
3248
|
-
end?: string | Date | undefined;
|
|
3249
|
-
}>>;
|
|
3250
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3251
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3252
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3253
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3254
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3255
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3256
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3257
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3258
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3259
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3260
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
3261
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3262
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3263
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3264
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3265
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3266
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3267
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3268
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3269
|
-
end: 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>>;
|
|
3270
|
-
}, "strip", z.ZodTypeAny, {
|
|
3271
|
-
start: Date;
|
|
3272
|
-
end?: Date | undefined;
|
|
3273
|
-
}, {
|
|
3274
|
-
start: string | Date;
|
|
3275
|
-
end?: string | Date | undefined;
|
|
3276
|
-
}>, {
|
|
3277
|
-
start: Date;
|
|
3278
|
-
end?: Date | undefined;
|
|
3279
|
-
}, {
|
|
3280
|
-
start: string | Date;
|
|
3281
|
-
end?: string | Date | undefined;
|
|
3282
|
-
}>>;
|
|
3283
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3284
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3285
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3286
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3287
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3288
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3289
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3290
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3291
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3292
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3293
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
3294
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3295
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3296
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3297
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3298
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3299
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3300
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3301
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3302
|
-
end: 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>>;
|
|
3303
|
-
}, "strip", z.ZodTypeAny, {
|
|
3304
|
-
start: Date;
|
|
3305
|
-
end?: Date | undefined;
|
|
3306
|
-
}, {
|
|
3307
|
-
start: string | Date;
|
|
3308
|
-
end?: string | Date | undefined;
|
|
3309
|
-
}>, {
|
|
3310
|
-
start: Date;
|
|
3311
|
-
end?: Date | undefined;
|
|
3312
|
-
}, {
|
|
3313
|
-
start: string | Date;
|
|
3314
|
-
end?: string | Date | undefined;
|
|
3315
|
-
}>>;
|
|
3316
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3317
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3318
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3319
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3320
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3321
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3322
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3323
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3324
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3325
|
-
}, z.ZodTypeAny, "passthrough">)[];
|
|
3326
|
-
metadata?: {
|
|
3327
|
-
page: number;
|
|
3328
|
-
size: number;
|
|
3329
|
-
totalElements: number;
|
|
3330
|
-
totalPages: number;
|
|
3331
|
-
} | undefined;
|
|
3332
|
-
} | undefined;
|
|
3333
|
-
};
|
|
3334
|
-
}, unknown>;
|
|
3335
|
-
deleteById: import("@trpc/server").BuildProcedure<"mutation", {
|
|
3336
|
-
_config: import("@trpc/server").RootConfig<{
|
|
3337
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
3338
|
-
meta: object;
|
|
3339
|
-
errorShape: {
|
|
3340
|
-
message: string;
|
|
3341
|
-
data: {
|
|
3342
|
-
stack: undefined;
|
|
3343
|
-
path: undefined;
|
|
3344
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
3345
|
-
httpStatus: number;
|
|
3346
|
-
};
|
|
3347
|
-
stack: undefined;
|
|
3348
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
3349
|
-
};
|
|
3350
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
3351
|
-
}>;
|
|
3352
|
-
_meta: object;
|
|
3353
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
3354
|
-
_input_in: {
|
|
3355
|
-
_id: string | import("mongoose").Types.ObjectId;
|
|
3356
|
-
softDelete?: boolean | undefined;
|
|
3357
|
-
};
|
|
3358
|
-
_input_out: {
|
|
3359
|
-
_id: import("mongoose").Types.ObjectId;
|
|
3360
|
-
softDelete: boolean;
|
|
3361
|
-
};
|
|
3362
|
-
_output_in: {
|
|
3363
|
-
message: string;
|
|
3364
|
-
success: boolean;
|
|
3365
|
-
data?: z.objectInputType<{
|
|
3366
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
3367
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3368
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3369
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3370
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3371
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3372
|
-
end: 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>>;
|
|
3373
|
-
}, "strip", z.ZodTypeAny, {
|
|
3374
|
-
start: Date;
|
|
3375
|
-
end?: Date | undefined;
|
|
3376
|
-
}, {
|
|
3377
|
-
start: string | Date;
|
|
3378
|
-
end?: string | Date | undefined;
|
|
3379
|
-
}>, {
|
|
3380
|
-
start: Date;
|
|
3381
|
-
end?: Date | undefined;
|
|
3382
|
-
}, {
|
|
3383
|
-
start: string | Date;
|
|
3384
|
-
end?: string | Date | undefined;
|
|
3385
|
-
}>>;
|
|
3386
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3387
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3388
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3389
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3390
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3391
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3392
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3393
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3394
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3395
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3396
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3397
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3398
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3399
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3400
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3401
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3402
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
3403
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3404
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3405
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3406
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3407
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3408
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3409
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3410
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3411
|
-
end: 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>>;
|
|
3412
|
-
}, "strip", z.ZodTypeAny, {
|
|
3413
|
-
start: Date;
|
|
3414
|
-
end?: Date | undefined;
|
|
3415
|
-
}, {
|
|
3416
|
-
start: string | Date;
|
|
3417
|
-
end?: string | Date | undefined;
|
|
3418
|
-
}>, {
|
|
3419
|
-
start: Date;
|
|
3420
|
-
end?: Date | undefined;
|
|
3421
|
-
}, {
|
|
3422
|
-
start: string | Date;
|
|
3423
|
-
end?: string | Date | undefined;
|
|
3424
|
-
}>>;
|
|
3425
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3426
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3427
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3428
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3429
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3430
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3431
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3432
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3433
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3434
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3435
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3436
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3437
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3438
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3439
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3440
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3441
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3442
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3443
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3444
|
-
end: 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>>;
|
|
3445
|
-
}, "strip", z.ZodTypeAny, {
|
|
3446
|
-
start: Date;
|
|
3447
|
-
end?: Date | undefined;
|
|
3448
|
-
}, {
|
|
3449
|
-
start: string | Date;
|
|
3450
|
-
end?: string | Date | undefined;
|
|
3451
|
-
}>, {
|
|
3452
|
-
start: Date;
|
|
3453
|
-
end?: Date | undefined;
|
|
3454
|
-
}, {
|
|
3455
|
-
start: string | Date;
|
|
3456
|
-
end?: string | Date | undefined;
|
|
3457
|
-
}>>;
|
|
3458
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3459
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3460
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3461
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3462
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3463
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3464
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3465
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3466
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3467
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3468
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
3469
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3470
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3471
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3472
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3473
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3474
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3475
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3476
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3477
|
-
end: 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>>;
|
|
3478
|
-
}, "strip", z.ZodTypeAny, {
|
|
3479
|
-
start: Date;
|
|
3480
|
-
end?: Date | undefined;
|
|
3481
|
-
}, {
|
|
3482
|
-
start: string | Date;
|
|
3483
|
-
end?: string | Date | undefined;
|
|
3484
|
-
}>, {
|
|
3485
|
-
start: Date;
|
|
3486
|
-
end?: Date | undefined;
|
|
3487
|
-
}, {
|
|
3488
|
-
start: string | Date;
|
|
3489
|
-
end?: string | Date | undefined;
|
|
3490
|
-
}>>;
|
|
3491
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3492
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3493
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3494
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3495
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3496
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3497
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3498
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3499
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3500
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3501
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
3502
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3503
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3504
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3505
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3506
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3507
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3508
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3509
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3510
|
-
end: 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>>;
|
|
3511
|
-
}, "strip", z.ZodTypeAny, {
|
|
3512
|
-
start: Date;
|
|
3513
|
-
end?: Date | undefined;
|
|
3514
|
-
}, {
|
|
3515
|
-
start: string | Date;
|
|
3516
|
-
end?: string | Date | undefined;
|
|
3517
|
-
}>, {
|
|
3518
|
-
start: Date;
|
|
3519
|
-
end?: Date | undefined;
|
|
3520
|
-
}, {
|
|
3521
|
-
start: string | Date;
|
|
3522
|
-
end?: string | Date | undefined;
|
|
3523
|
-
}>>;
|
|
3524
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3525
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3526
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3527
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3528
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3529
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3530
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3531
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3532
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3533
|
-
}, z.ZodTypeAny, "passthrough"> | {
|
|
3534
|
-
documents: (z.objectInputType<{
|
|
3535
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
3536
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3537
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3538
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3539
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3540
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3541
|
-
end: 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>>;
|
|
3542
|
-
}, "strip", z.ZodTypeAny, {
|
|
3543
|
-
start: Date;
|
|
3544
|
-
end?: Date | undefined;
|
|
3545
|
-
}, {
|
|
3546
|
-
start: string | Date;
|
|
3547
|
-
end?: string | Date | undefined;
|
|
3548
|
-
}>, {
|
|
3549
|
-
start: Date;
|
|
3550
|
-
end?: Date | undefined;
|
|
3551
|
-
}, {
|
|
3552
|
-
start: string | Date;
|
|
3553
|
-
end?: string | Date | undefined;
|
|
3554
|
-
}>>;
|
|
3555
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3556
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3557
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3558
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3559
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3560
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3561
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3562
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3563
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3564
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3565
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3566
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3567
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3568
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3569
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3570
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3571
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
3572
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3573
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3574
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3575
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3576
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3577
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3578
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3579
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3580
|
-
end: 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>>;
|
|
3581
|
-
}, "strip", z.ZodTypeAny, {
|
|
3582
|
-
start: Date;
|
|
3583
|
-
end?: Date | undefined;
|
|
3584
|
-
}, {
|
|
3585
|
-
start: string | Date;
|
|
3586
|
-
end?: string | Date | undefined;
|
|
3587
|
-
}>, {
|
|
3588
|
-
start: Date;
|
|
3589
|
-
end?: Date | undefined;
|
|
3590
|
-
}, {
|
|
3591
|
-
start: string | Date;
|
|
3592
|
-
end?: string | Date | undefined;
|
|
3593
|
-
}>>;
|
|
3594
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3595
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3596
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3597
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3598
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3599
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3600
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3601
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3602
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3603
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3604
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3605
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3606
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3607
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3608
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3609
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3610
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3611
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3612
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3613
|
-
end: 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>>;
|
|
3614
|
-
}, "strip", z.ZodTypeAny, {
|
|
3615
|
-
start: Date;
|
|
3616
|
-
end?: Date | undefined;
|
|
3617
|
-
}, {
|
|
3618
|
-
start: string | Date;
|
|
3619
|
-
end?: string | Date | undefined;
|
|
3620
|
-
}>, {
|
|
3621
|
-
start: Date;
|
|
3622
|
-
end?: Date | undefined;
|
|
3623
|
-
}, {
|
|
3624
|
-
start: string | Date;
|
|
3625
|
-
end?: string | Date | undefined;
|
|
3626
|
-
}>>;
|
|
3627
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3628
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3629
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3630
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3631
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3632
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3633
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3634
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3635
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3636
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3637
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
3638
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3639
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3640
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3641
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3642
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3643
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3644
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3645
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3646
|
-
end: 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>>;
|
|
3647
|
-
}, "strip", z.ZodTypeAny, {
|
|
3648
|
-
start: Date;
|
|
3649
|
-
end?: Date | undefined;
|
|
3650
|
-
}, {
|
|
3651
|
-
start: string | Date;
|
|
3652
|
-
end?: string | Date | undefined;
|
|
3653
|
-
}>, {
|
|
3654
|
-
start: Date;
|
|
3655
|
-
end?: Date | undefined;
|
|
3656
|
-
}, {
|
|
3657
|
-
start: string | Date;
|
|
3658
|
-
end?: string | Date | undefined;
|
|
3659
|
-
}>>;
|
|
3660
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3661
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3662
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3663
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3664
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3665
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3666
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3667
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3668
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3669
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3670
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
3671
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3672
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3673
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3674
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3675
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3676
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3677
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3678
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3679
|
-
end: 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>>;
|
|
3680
|
-
}, "strip", z.ZodTypeAny, {
|
|
3681
|
-
start: Date;
|
|
3682
|
-
end?: Date | undefined;
|
|
3683
|
-
}, {
|
|
3684
|
-
start: string | Date;
|
|
3685
|
-
end?: string | Date | undefined;
|
|
3686
|
-
}>, {
|
|
3687
|
-
start: Date;
|
|
3688
|
-
end?: Date | undefined;
|
|
3689
|
-
}, {
|
|
3690
|
-
start: string | Date;
|
|
3691
|
-
end?: string | Date | undefined;
|
|
3692
|
-
}>>;
|
|
3693
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3694
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3695
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3696
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3697
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3698
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3699
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3700
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3701
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3702
|
-
}, z.ZodTypeAny, "passthrough">)[];
|
|
3703
|
-
metadata?: {
|
|
3704
|
-
page: number;
|
|
3705
|
-
size: number;
|
|
3706
|
-
totalElements: number;
|
|
3707
|
-
totalPages: number;
|
|
3708
|
-
} | undefined;
|
|
3709
|
-
} | undefined;
|
|
3710
|
-
};
|
|
3711
|
-
_output_out: {
|
|
3712
|
-
message: string;
|
|
3713
|
-
success: boolean;
|
|
3714
|
-
data?: z.objectInputType<{
|
|
3715
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
3716
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3717
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3718
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3719
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3720
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3721
|
-
end: 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>>;
|
|
3722
|
-
}, "strip", z.ZodTypeAny, {
|
|
3723
|
-
start: Date;
|
|
3724
|
-
end?: Date | undefined;
|
|
3725
|
-
}, {
|
|
3726
|
-
start: string | Date;
|
|
3727
|
-
end?: string | Date | undefined;
|
|
3728
|
-
}>, {
|
|
3729
|
-
start: Date;
|
|
3730
|
-
end?: Date | undefined;
|
|
3731
|
-
}, {
|
|
3732
|
-
start: string | Date;
|
|
3733
|
-
end?: string | Date | undefined;
|
|
3734
|
-
}>>;
|
|
3735
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3736
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3737
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3738
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3739
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3740
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3741
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3742
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3743
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3744
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3745
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3746
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3747
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3748
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3749
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3750
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3751
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
3752
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3753
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3754
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3755
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3756
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3757
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3758
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3759
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3760
|
-
end: 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>>;
|
|
3761
|
-
}, "strip", z.ZodTypeAny, {
|
|
3762
|
-
start: Date;
|
|
3763
|
-
end?: Date | undefined;
|
|
3764
|
-
}, {
|
|
3765
|
-
start: string | Date;
|
|
3766
|
-
end?: string | Date | undefined;
|
|
3767
|
-
}>, {
|
|
3768
|
-
start: Date;
|
|
3769
|
-
end?: Date | undefined;
|
|
3770
|
-
}, {
|
|
3771
|
-
start: string | Date;
|
|
3772
|
-
end?: string | Date | undefined;
|
|
3773
|
-
}>>;
|
|
3774
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3775
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3776
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3777
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3778
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3779
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3780
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3781
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3782
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3783
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3784
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3785
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3786
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3787
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3788
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3789
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3790
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3791
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3792
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3793
|
-
end: 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>>;
|
|
3794
|
-
}, "strip", z.ZodTypeAny, {
|
|
3795
|
-
start: Date;
|
|
3796
|
-
end?: Date | undefined;
|
|
3797
|
-
}, {
|
|
3798
|
-
start: string | Date;
|
|
3799
|
-
end?: string | Date | undefined;
|
|
3800
|
-
}>, {
|
|
3801
|
-
start: Date;
|
|
3802
|
-
end?: Date | undefined;
|
|
3803
|
-
}, {
|
|
3804
|
-
start: string | Date;
|
|
3805
|
-
end?: string | Date | undefined;
|
|
3806
|
-
}>>;
|
|
3807
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3808
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3809
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3810
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3811
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3812
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3813
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3814
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3815
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3816
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3817
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
3818
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3819
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3820
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3821
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3822
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3823
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3824
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3825
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3826
|
-
end: 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>>;
|
|
3827
|
-
}, "strip", z.ZodTypeAny, {
|
|
3828
|
-
start: Date;
|
|
3829
|
-
end?: Date | undefined;
|
|
3830
|
-
}, {
|
|
3831
|
-
start: string | Date;
|
|
3832
|
-
end?: string | Date | undefined;
|
|
3833
|
-
}>, {
|
|
3834
|
-
start: Date;
|
|
3835
|
-
end?: Date | undefined;
|
|
3836
|
-
}, {
|
|
3837
|
-
start: string | Date;
|
|
3838
|
-
end?: string | Date | undefined;
|
|
3839
|
-
}>>;
|
|
3840
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3841
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3842
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3843
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3844
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3845
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3846
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3847
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3848
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3849
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3850
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
3851
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3852
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3853
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3854
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3855
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3856
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3857
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3858
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3859
|
-
end: 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>>;
|
|
3860
|
-
}, "strip", z.ZodTypeAny, {
|
|
3861
|
-
start: Date;
|
|
3862
|
-
end?: Date | undefined;
|
|
3863
|
-
}, {
|
|
3864
|
-
start: string | Date;
|
|
3865
|
-
end?: string | Date | undefined;
|
|
3866
|
-
}>, {
|
|
3867
|
-
start: Date;
|
|
3868
|
-
end?: Date | undefined;
|
|
3869
|
-
}, {
|
|
3870
|
-
start: string | Date;
|
|
3871
|
-
end?: string | Date | undefined;
|
|
3872
|
-
}>>;
|
|
3873
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3874
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3875
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3876
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3877
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3878
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3879
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3880
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3881
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3882
|
-
}, z.ZodTypeAny, "passthrough"> | {
|
|
3883
|
-
documents: (z.objectInputType<{
|
|
3884
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
3885
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3886
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3887
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3888
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3889
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3890
|
-
end: 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>>;
|
|
3891
|
-
}, "strip", z.ZodTypeAny, {
|
|
3892
|
-
start: Date;
|
|
3893
|
-
end?: Date | undefined;
|
|
3894
|
-
}, {
|
|
3895
|
-
start: string | Date;
|
|
3896
|
-
end?: string | Date | undefined;
|
|
3897
|
-
}>, {
|
|
3898
|
-
start: Date;
|
|
3899
|
-
end?: Date | undefined;
|
|
3900
|
-
}, {
|
|
3901
|
-
start: string | Date;
|
|
3902
|
-
end?: string | Date | undefined;
|
|
3903
|
-
}>>;
|
|
3904
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3905
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3906
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3907
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3908
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3909
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3910
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3911
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3912
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3913
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3914
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>>;
|
|
3915
|
-
orderLimitPerUser: z.ZodOptional<z.ZodLiteral<1>>;
|
|
3916
|
-
referralUser: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3917
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3918
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3919
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3920
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>>;
|
|
3921
|
-
user: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3922
|
-
referralCodeUsedBy: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3923
|
-
referralCodeUsedOnOrder: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3924
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3925
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3926
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3927
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3928
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3929
|
-
end: 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>>;
|
|
3930
|
-
}, "strip", z.ZodTypeAny, {
|
|
3931
|
-
start: Date;
|
|
3932
|
-
end?: Date | undefined;
|
|
3933
|
-
}, {
|
|
3934
|
-
start: string | Date;
|
|
3935
|
-
end?: string | Date | undefined;
|
|
3936
|
-
}>, {
|
|
3937
|
-
start: Date;
|
|
3938
|
-
end?: Date | undefined;
|
|
3939
|
-
}, {
|
|
3940
|
-
start: string | Date;
|
|
3941
|
-
end?: string | Date | undefined;
|
|
3942
|
-
}>>;
|
|
3943
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3944
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3945
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3946
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3947
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3948
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3949
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3950
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3951
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3952
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3953
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>>;
|
|
3954
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3955
|
-
shops: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3956
|
-
isShopCoverExpenses: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3957
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3958
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3959
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3960
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3961
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3962
|
-
end: 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>>;
|
|
3963
|
-
}, "strip", z.ZodTypeAny, {
|
|
3964
|
-
start: Date;
|
|
3965
|
-
end?: Date | undefined;
|
|
3966
|
-
}, {
|
|
3967
|
-
start: string | Date;
|
|
3968
|
-
end?: string | Date | undefined;
|
|
3969
|
-
}>, {
|
|
3970
|
-
start: Date;
|
|
3971
|
-
end?: Date | undefined;
|
|
3972
|
-
}, {
|
|
3973
|
-
start: string | Date;
|
|
3974
|
-
end?: string | Date | undefined;
|
|
3975
|
-
}>>;
|
|
3976
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3977
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3978
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
3979
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
3980
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
3981
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
3982
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
3983
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3984
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
3985
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
3986
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>>;
|
|
3987
|
-
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "atleastone">>;
|
|
3988
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
3989
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
3990
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
3991
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
3992
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
3993
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3994
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
3995
|
-
end: 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>>;
|
|
3996
|
-
}, "strip", z.ZodTypeAny, {
|
|
3997
|
-
start: Date;
|
|
3998
|
-
end?: Date | undefined;
|
|
3999
|
-
}, {
|
|
4000
|
-
start: string | Date;
|
|
4001
|
-
end?: string | Date | undefined;
|
|
4002
|
-
}>, {
|
|
4003
|
-
start: Date;
|
|
4004
|
-
end?: Date | undefined;
|
|
4005
|
-
}, {
|
|
4006
|
-
start: string | Date;
|
|
4007
|
-
end?: string | Date | undefined;
|
|
4008
|
-
}>>;
|
|
4009
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4010
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4011
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
4012
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
4013
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
4014
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
4015
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4016
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4017
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4018
|
-
}, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
|
|
4019
|
-
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>>;
|
|
4020
|
-
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4021
|
-
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>>;
|
|
4022
|
-
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>, "many">>>;
|
|
4023
|
-
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
4024
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
4025
|
-
maxDiscountLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4026
|
-
duration: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
4027
|
-
start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
|
|
4028
|
-
end: 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>>;
|
|
4029
|
-
}, "strip", z.ZodTypeAny, {
|
|
4030
|
-
start: Date;
|
|
4031
|
-
end?: Date | undefined;
|
|
4032
|
-
}, {
|
|
4033
|
-
start: string | Date;
|
|
4034
|
-
end?: string | Date | undefined;
|
|
4035
|
-
}>, {
|
|
4036
|
-
start: Date;
|
|
4037
|
-
end?: Date | undefined;
|
|
4038
|
-
}, {
|
|
4039
|
-
start: string | Date;
|
|
4040
|
-
end?: string | Date | undefined;
|
|
4041
|
-
}>>;
|
|
4042
|
-
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4043
|
-
totalOrderLimit: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4044
|
-
minOrderValue: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
4045
|
-
forNewUserOnly: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
4046
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
4047
|
-
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
4048
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
4049
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
4050
|
-
_id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, mongoose.Types.ObjectId, string>, z.ZodType<mongoose.Types.ObjectId, z.ZodTypeDef, mongoose.Types.ObjectId>]>>;
|
|
4051
|
-
}, z.ZodTypeAny, "passthrough">)[];
|
|
4052
|
-
metadata?: {
|
|
4053
|
-
page: number;
|
|
4054
|
-
size: number;
|
|
4055
|
-
totalElements: number;
|
|
4056
|
-
totalPages: number;
|
|
4057
|
-
} | undefined;
|
|
4058
|
-
} | undefined;
|
|
4059
|
-
};
|
|
4060
|
-
}, unknown>;
|
|
4061
|
-
getUserCoupons: import("@trpc/server").BuildProcedure<"query", {
|
|
4062
|
-
_config: import("@trpc/server").RootConfig<{
|
|
4063
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
4064
|
-
meta: object;
|
|
4065
|
-
errorShape: {
|
|
4066
|
-
message: string;
|
|
4067
|
-
data: {
|
|
4068
|
-
stack: undefined;
|
|
4069
|
-
path: undefined;
|
|
4070
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
4071
|
-
httpStatus: number;
|
|
4072
|
-
};
|
|
4073
|
-
stack: undefined;
|
|
4074
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
4075
|
-
};
|
|
4076
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
4077
|
-
}>;
|
|
4078
|
-
_meta: object;
|
|
4079
|
-
_ctx_out: {
|
|
4080
|
-
requestId: string | undefined;
|
|
4081
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
4082
|
-
tokenType: import("@lyxa.ai/core/dist/libraries/auth").TokenType | undefined;
|
|
4083
|
-
entity: import("@lyxa.ai/core/dist/libraries/trpc/context").EntityContext | undefined;
|
|
4084
|
-
req: import("http").IncomingMessage;
|
|
4085
|
-
usedRefreshToken: boolean | undefined;
|
|
4086
|
-
tokenRenewed: boolean | undefined;
|
|
4087
|
-
};
|
|
4088
|
-
_input_in: {
|
|
4089
|
-
user?: string | mongoose.Types.ObjectId | undefined;
|
|
4090
|
-
page?: number | undefined;
|
|
4091
|
-
size?: number | undefined;
|
|
4092
|
-
};
|
|
4093
|
-
_input_out: {
|
|
4094
|
-
page: number;
|
|
4095
|
-
size: number;
|
|
4096
|
-
user?: mongoose.Types.ObjectId | undefined;
|
|
4097
|
-
};
|
|
4098
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
4099
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
4100
|
-
}, {
|
|
4101
|
-
available: Array<import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>>;
|
|
4102
|
-
used: Array<import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>>;
|
|
4103
|
-
expired: Array<import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>>;
|
|
4104
|
-
}>;
|
|
4105
|
-
validateCoupon: import("@trpc/server").BuildProcedure<"query", {
|
|
4106
|
-
_config: import("@trpc/server").RootConfig<{
|
|
4107
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
4108
|
-
meta: object;
|
|
4109
|
-
errorShape: {
|
|
4110
|
-
message: string;
|
|
4111
|
-
data: {
|
|
4112
|
-
stack: undefined;
|
|
4113
|
-
path: undefined;
|
|
4114
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
4115
|
-
httpStatus: number;
|
|
4116
|
-
};
|
|
4117
|
-
stack: undefined;
|
|
4118
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
4119
|
-
};
|
|
4120
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
4121
|
-
}>;
|
|
4122
|
-
_meta: object;
|
|
4123
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
4124
|
-
_input_in: {
|
|
4125
|
-
shop: string | mongoose.Types.ObjectId;
|
|
4126
|
-
user: string | mongoose.Types.ObjectId;
|
|
4127
|
-
amountBeforeCoupon: number;
|
|
4128
|
-
secondaryAmountBeforeCoupon: number;
|
|
4129
|
-
coupon?: string | undefined;
|
|
4130
|
-
};
|
|
4131
|
-
_input_out: {
|
|
4132
|
-
shop: mongoose.Types.ObjectId;
|
|
4133
|
-
user: mongoose.Types.ObjectId;
|
|
4134
|
-
amountBeforeCoupon: number;
|
|
4135
|
-
secondaryAmountBeforeCoupon: number;
|
|
4136
|
-
coupon?: string | undefined;
|
|
4137
|
-
};
|
|
4138
|
-
_output_in: {
|
|
4139
|
-
message: string;
|
|
4140
|
-
success: boolean;
|
|
4141
|
-
data?: {
|
|
4142
|
-
isValid?: boolean | undefined;
|
|
4143
|
-
amountAfterCoupon?: number | undefined;
|
|
4144
|
-
secondaryAmountAfterCoupon?: number | undefined;
|
|
4145
|
-
discountAmount?: number | undefined;
|
|
4146
|
-
secondaryDiscountAmount?: number | undefined;
|
|
4147
|
-
} | {
|
|
4148
|
-
documents: {
|
|
4149
|
-
isValid?: boolean | undefined;
|
|
4150
|
-
amountAfterCoupon?: number | undefined;
|
|
4151
|
-
secondaryAmountAfterCoupon?: number | undefined;
|
|
4152
|
-
discountAmount?: number | undefined;
|
|
4153
|
-
secondaryDiscountAmount?: number | undefined;
|
|
4154
|
-
}[];
|
|
4155
|
-
metadata?: {
|
|
4156
|
-
page: number;
|
|
4157
|
-
size: number;
|
|
4158
|
-
totalElements: number;
|
|
4159
|
-
totalPages: number;
|
|
4160
|
-
} | undefined;
|
|
4161
|
-
} | undefined;
|
|
4162
|
-
};
|
|
4163
|
-
_output_out: {
|
|
2003
|
+
meta: object;
|
|
2004
|
+
}>;
|
|
2005
|
+
getUserCoupons: import("@trpc/server").TRPCQueryProcedure<{
|
|
2006
|
+
input: {
|
|
2007
|
+
user?: string | mongoose.Types.ObjectId | undefined;
|
|
2008
|
+
page?: number | undefined;
|
|
2009
|
+
size?: number | undefined;
|
|
2010
|
+
};
|
|
2011
|
+
output: {
|
|
2012
|
+
available: Array<import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>>;
|
|
2013
|
+
used: Array<import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>>;
|
|
2014
|
+
expired: Array<import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>>;
|
|
2015
|
+
};
|
|
2016
|
+
meta: object;
|
|
2017
|
+
}>;
|
|
2018
|
+
validateCoupon: import("@trpc/server").TRPCQueryProcedure<{
|
|
2019
|
+
input: {
|
|
2020
|
+
shop: string | mongoose.Types.ObjectId;
|
|
2021
|
+
user: string | mongoose.Types.ObjectId;
|
|
2022
|
+
amountBeforeCoupon: number;
|
|
2023
|
+
secondaryAmountBeforeCoupon: number;
|
|
2024
|
+
coupon?: string | undefined;
|
|
2025
|
+
};
|
|
2026
|
+
output: {
|
|
4164
2027
|
message: string;
|
|
4165
2028
|
success: boolean;
|
|
4166
2029
|
data?: {
|
|
@@ -4185,117 +2048,31 @@ export declare const couponRouter: import("@trpc/server").CreateRouterInner<impo
|
|
|
4185
2048
|
} | undefined;
|
|
4186
2049
|
} | undefined;
|
|
4187
2050
|
};
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
meta: object;
|
|
4193
|
-
errorShape: {
|
|
4194
|
-
message: string;
|
|
4195
|
-
data: {
|
|
4196
|
-
stack: undefined;
|
|
4197
|
-
path: undefined;
|
|
4198
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
4199
|
-
httpStatus: number;
|
|
4200
|
-
};
|
|
4201
|
-
stack: undefined;
|
|
4202
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
4203
|
-
};
|
|
4204
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
4205
|
-
}>;
|
|
4206
|
-
_meta: object;
|
|
4207
|
-
_ctx_out: {
|
|
4208
|
-
requestId: string | undefined;
|
|
4209
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
4210
|
-
tokenType: import("@lyxa.ai/core/dist/libraries/auth").TokenType | undefined;
|
|
4211
|
-
entity: import("@lyxa.ai/core/dist/libraries/trpc/context").EntityContext | undefined;
|
|
4212
|
-
req: import("http").IncomingMessage;
|
|
4213
|
-
usedRefreshToken: boolean | undefined;
|
|
4214
|
-
tokenRenewed: boolean | undefined;
|
|
4215
|
-
};
|
|
4216
|
-
_input_in: {
|
|
2051
|
+
meta: object;
|
|
2052
|
+
}>;
|
|
2053
|
+
createReferralCodeForUser: import("@trpc/server").TRPCMutationProcedure<{
|
|
2054
|
+
input: {
|
|
4217
2055
|
user?: string | mongoose.Types.ObjectId | undefined;
|
|
4218
2056
|
page?: number | undefined;
|
|
4219
2057
|
size?: number | undefined;
|
|
4220
2058
|
};
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
size: number;
|
|
4224
|
-
user?: mongoose.Types.ObjectId | undefined;
|
|
4225
|
-
};
|
|
4226
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
4227
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
4228
|
-
}, import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").ReferralCodeCoupon>>;
|
|
4229
|
-
getReferralCodeCoupon: import("@trpc/server").BuildProcedure<"query", {
|
|
4230
|
-
_config: import("@trpc/server").RootConfig<{
|
|
4231
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
4232
|
-
meta: object;
|
|
4233
|
-
errorShape: {
|
|
4234
|
-
message: string;
|
|
4235
|
-
data: {
|
|
4236
|
-
stack: undefined;
|
|
4237
|
-
path: undefined;
|
|
4238
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
4239
|
-
httpStatus: number;
|
|
4240
|
-
};
|
|
4241
|
-
stack: undefined;
|
|
4242
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
4243
|
-
};
|
|
4244
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
4245
|
-
}>;
|
|
4246
|
-
_meta: object;
|
|
4247
|
-
_ctx_out: {
|
|
4248
|
-
requestId: string | undefined;
|
|
4249
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
4250
|
-
tokenType: import("@lyxa.ai/core/dist/libraries/auth").TokenType | undefined;
|
|
4251
|
-
entity: import("@lyxa.ai/core/dist/libraries/trpc/context").EntityContext | undefined;
|
|
4252
|
-
req: import("http").IncomingMessage;
|
|
4253
|
-
usedRefreshToken: boolean | undefined;
|
|
4254
|
-
tokenRenewed: boolean | undefined;
|
|
4255
|
-
};
|
|
4256
|
-
_input_in: typeof import("@trpc/server").unsetMarker;
|
|
4257
|
-
_input_out: typeof import("@trpc/server").unsetMarker;
|
|
4258
|
-
_output_in: typeof import("@trpc/server").unsetMarker;
|
|
4259
|
-
_output_out: typeof import("@trpc/server").unsetMarker;
|
|
4260
|
-
}, {
|
|
4261
|
-
code: string;
|
|
4262
|
-
text: string;
|
|
2059
|
+
output: import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").ReferralCodeCoupon>;
|
|
2060
|
+
meta: object;
|
|
4263
2061
|
}>;
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
message: string;
|
|
4270
|
-
data: {
|
|
4271
|
-
stack: undefined;
|
|
4272
|
-
path: undefined;
|
|
4273
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
4274
|
-
httpStatus: number;
|
|
4275
|
-
};
|
|
4276
|
-
stack: undefined;
|
|
4277
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
4278
|
-
};
|
|
4279
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
4280
|
-
}>;
|
|
4281
|
-
_meta: object;
|
|
4282
|
-
_ctx_out: {
|
|
4283
|
-
requestId: string | undefined;
|
|
4284
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
4285
|
-
tokenType: import("@lyxa.ai/core/dist/libraries/auth").TokenType | undefined;
|
|
4286
|
-
entity: import("@lyxa.ai/core/dist/libraries/trpc/context").EntityContext | undefined;
|
|
4287
|
-
req: import("http").IncomingMessage;
|
|
4288
|
-
usedRefreshToken: boolean | undefined;
|
|
4289
|
-
tokenRenewed: boolean | undefined;
|
|
4290
|
-
};
|
|
4291
|
-
_input_in: {
|
|
4292
|
-
couponCode: string;
|
|
2062
|
+
getReferralCodeCoupon: import("@trpc/server").TRPCQueryProcedure<{
|
|
2063
|
+
input: void;
|
|
2064
|
+
output: {
|
|
2065
|
+
code: string;
|
|
2066
|
+
text: string;
|
|
4293
2067
|
};
|
|
4294
|
-
|
|
2068
|
+
meta: object;
|
|
2069
|
+
}>;
|
|
2070
|
+
addCouponToUser: import("@trpc/server").TRPCMutationProcedure<{
|
|
2071
|
+
input: {
|
|
4295
2072
|
couponCode: string;
|
|
4296
2073
|
};
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
}
|
|
4300
|
-
}
|
|
2074
|
+
output: import("@typegoose/typegoose").DocumentType<import("@lyxa.ai/core/dist/libraries/mongo/models").Coupon>;
|
|
2075
|
+
meta: object;
|
|
2076
|
+
}>;
|
|
2077
|
+
}>>;
|
|
4301
2078
|
//# sourceMappingURL=coupon.router.d.ts.map
|