@lyxa.ai/marketing 1.0.5 → 1.0.6
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 +0 -5
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupon.router.d.ts","sourceRoot":"/","sources":["modules/coupon/routers/coupon.router.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"coupon.router.d.ts","sourceRoot":"/","sources":["modules/coupon/routers/coupon.router.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,QAAQ,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FC,CAAC"}
|
|
@@ -1,47 +1,21 @@
|
|
|
1
|
-
export declare const dealSettingRouter: import("@trpc/server").
|
|
2
|
-
ctx: import("@
|
|
1
|
+
export declare const dealSettingRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
2
|
+
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
|
3
3
|
meta: object;
|
|
4
4
|
errorShape: {
|
|
5
5
|
message: string;
|
|
6
6
|
data: {
|
|
7
7
|
stack: undefined;
|
|
8
8
|
path: undefined;
|
|
9
|
-
code: import("@trpc/server
|
|
9
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
10
10
|
httpStatus: number;
|
|
11
11
|
};
|
|
12
12
|
stack: undefined;
|
|
13
|
-
code: import("@trpc/server
|
|
13
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
14
14
|
};
|
|
15
|
-
transformer:
|
|
16
|
-
}
|
|
17
|
-
create: import("@trpc/server").
|
|
18
|
-
|
|
19
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
20
|
-
meta: object;
|
|
21
|
-
errorShape: {
|
|
22
|
-
message: string;
|
|
23
|
-
data: {
|
|
24
|
-
stack: undefined;
|
|
25
|
-
path: undefined;
|
|
26
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
27
|
-
httpStatus: number;
|
|
28
|
-
};
|
|
29
|
-
stack: undefined;
|
|
30
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
31
|
-
};
|
|
32
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
33
|
-
}>;
|
|
34
|
-
_meta: object;
|
|
35
|
-
_ctx_out: {
|
|
36
|
-
requestId: string | undefined;
|
|
37
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
38
|
-
tokenType: import("@lyxa.ai/core/dist/libraries/auth").TokenType | undefined;
|
|
39
|
-
entity: import("@lyxa.ai/core/dist/libraries/trpc/context").EntityContext | undefined;
|
|
40
|
-
req: import("http").IncomingMessage;
|
|
41
|
-
usedRefreshToken: boolean | undefined;
|
|
42
|
-
tokenRenewed: boolean | undefined;
|
|
43
|
-
};
|
|
44
|
-
_input_in: {
|
|
15
|
+
transformer: false;
|
|
16
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
17
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
18
|
+
input: {
|
|
45
19
|
itemType: import("@lyxa.ai/core/dist/utilities/enum").ItemType;
|
|
46
20
|
percentageBundles: number[];
|
|
47
21
|
isBuy1Get1?: boolean | undefined;
|
|
@@ -49,44 +23,7 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
49
23
|
isFreeDelivery?: boolean | undefined;
|
|
50
24
|
isPunchMarketing?: boolean | undefined;
|
|
51
25
|
};
|
|
52
|
-
|
|
53
|
-
isBuy1Get1: boolean;
|
|
54
|
-
itemType: import("@lyxa.ai/core/dist/utilities/enum").ItemType;
|
|
55
|
-
percentageBundles: number[];
|
|
56
|
-
isDiscount: boolean;
|
|
57
|
-
isFreeDelivery: boolean;
|
|
58
|
-
isPunchMarketing: boolean;
|
|
59
|
-
};
|
|
60
|
-
_output_in: {
|
|
61
|
-
message: string;
|
|
62
|
-
success: boolean;
|
|
63
|
-
data?: import("zod").objectInputType<{
|
|
64
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
65
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
66
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
67
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
68
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
69
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
70
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
71
|
-
}, import("zod").ZodTypeAny, "passthrough"> | {
|
|
72
|
-
documents: import("zod").objectInputType<{
|
|
73
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
74
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
75
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
76
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
77
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
78
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
79
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
80
|
-
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
81
|
-
metadata?: {
|
|
82
|
-
page: number;
|
|
83
|
-
size: number;
|
|
84
|
-
totalElements: number;
|
|
85
|
-
totalPages: number;
|
|
86
|
-
} | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
};
|
|
89
|
-
_output_out: {
|
|
26
|
+
output: {
|
|
90
27
|
message: string;
|
|
91
28
|
success: boolean;
|
|
92
29
|
data?: import("zod").objectInputType<{
|
|
@@ -115,29 +52,11 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
115
52
|
} | undefined;
|
|
116
53
|
} | undefined;
|
|
117
54
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
errorShape: {
|
|
124
|
-
message: string;
|
|
125
|
-
data: {
|
|
126
|
-
stack: undefined;
|
|
127
|
-
path: undefined;
|
|
128
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
129
|
-
httpStatus: number;
|
|
130
|
-
};
|
|
131
|
-
stack: undefined;
|
|
132
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
133
|
-
};
|
|
134
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
135
|
-
}>;
|
|
136
|
-
_meta: object;
|
|
137
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
138
|
-
_input_in: string | import("mongoose").Types.ObjectId;
|
|
139
|
-
_input_out: import("mongoose").Types.ObjectId;
|
|
140
|
-
_output_in: {
|
|
55
|
+
meta: object;
|
|
56
|
+
}>;
|
|
57
|
+
getById: import("@trpc/server").TRPCQueryProcedure<{
|
|
58
|
+
input: string | import("mongoose").Types.ObjectId;
|
|
59
|
+
output: {
|
|
141
60
|
message: string;
|
|
142
61
|
success: boolean;
|
|
143
62
|
data?: import("zod").objectInputType<{
|
|
@@ -166,56 +85,10 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
166
85
|
} | undefined;
|
|
167
86
|
} | undefined;
|
|
168
87
|
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
174
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
175
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
176
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
177
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
178
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
179
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
180
|
-
}, import("zod").ZodTypeAny, "passthrough"> | {
|
|
181
|
-
documents: import("zod").objectInputType<{
|
|
182
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
183
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
184
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
185
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
186
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
187
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
188
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
189
|
-
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
190
|
-
metadata?: {
|
|
191
|
-
page: number;
|
|
192
|
-
size: number;
|
|
193
|
-
totalElements: number;
|
|
194
|
-
totalPages: number;
|
|
195
|
-
} | undefined;
|
|
196
|
-
} | undefined;
|
|
197
|
-
};
|
|
198
|
-
}, unknown>;
|
|
199
|
-
get: import("@trpc/server").BuildProcedure<"query", {
|
|
200
|
-
_config: import("@trpc/server").RootConfig<{
|
|
201
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
202
|
-
meta: object;
|
|
203
|
-
errorShape: {
|
|
204
|
-
message: string;
|
|
205
|
-
data: {
|
|
206
|
-
stack: undefined;
|
|
207
|
-
path: undefined;
|
|
208
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
209
|
-
httpStatus: number;
|
|
210
|
-
};
|
|
211
|
-
stack: undefined;
|
|
212
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
213
|
-
};
|
|
214
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
215
|
-
}>;
|
|
216
|
-
_meta: object;
|
|
217
|
-
_ctx_out: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
218
|
-
_input_in: {
|
|
88
|
+
meta: object;
|
|
89
|
+
}>;
|
|
90
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
91
|
+
input: {
|
|
219
92
|
search?: {
|
|
220
93
|
searchKey: string;
|
|
221
94
|
searchFields?: string[] | undefined;
|
|
@@ -227,19 +100,7 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
227
100
|
populate?: any;
|
|
228
101
|
query?: Record<string, any> | undefined;
|
|
229
102
|
} | undefined;
|
|
230
|
-
|
|
231
|
-
page: number;
|
|
232
|
-
size: number;
|
|
233
|
-
search?: {
|
|
234
|
-
searchKey: string;
|
|
235
|
-
searchFields?: string[] | undefined;
|
|
236
|
-
} | undefined;
|
|
237
|
-
sort?: Record<string, 1 | -1> | undefined;
|
|
238
|
-
select?: Record<string, 0 | 1> | undefined;
|
|
239
|
-
populate?: any;
|
|
240
|
-
query?: Record<string, any> | undefined;
|
|
241
|
-
} | undefined;
|
|
242
|
-
_output_in: {
|
|
103
|
+
output: {
|
|
243
104
|
message: string;
|
|
244
105
|
success: boolean;
|
|
245
106
|
data?: import("zod").objectInputType<{
|
|
@@ -268,64 +129,10 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
268
129
|
} | undefined;
|
|
269
130
|
} | undefined;
|
|
270
131
|
};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
276
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
277
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
278
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
279
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
280
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
281
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
282
|
-
}, import("zod").ZodTypeAny, "passthrough"> | {
|
|
283
|
-
documents: import("zod").objectInputType<{
|
|
284
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
285
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
286
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
287
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
288
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
289
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
290
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
291
|
-
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
292
|
-
metadata?: {
|
|
293
|
-
page: number;
|
|
294
|
-
size: number;
|
|
295
|
-
totalElements: number;
|
|
296
|
-
totalPages: number;
|
|
297
|
-
} | undefined;
|
|
298
|
-
} | undefined;
|
|
299
|
-
};
|
|
300
|
-
}, unknown>;
|
|
301
|
-
update: import("@trpc/server").BuildProcedure<"mutation", {
|
|
302
|
-
_config: import("@trpc/server").RootConfig<{
|
|
303
|
-
ctx: import("@trpc/server/adapters/standalone").CreateHTTPContextOptions & import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaContextParams;
|
|
304
|
-
meta: object;
|
|
305
|
-
errorShape: {
|
|
306
|
-
message: string;
|
|
307
|
-
data: {
|
|
308
|
-
stack: undefined;
|
|
309
|
-
path: undefined;
|
|
310
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
311
|
-
httpStatus: number;
|
|
312
|
-
};
|
|
313
|
-
stack: undefined;
|
|
314
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
315
|
-
};
|
|
316
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
317
|
-
}>;
|
|
318
|
-
_meta: object;
|
|
319
|
-
_ctx_out: {
|
|
320
|
-
requestId: string | undefined;
|
|
321
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
322
|
-
tokenType: import("@lyxa.ai/core/dist/libraries/auth").TokenType | undefined;
|
|
323
|
-
entity: import("@lyxa.ai/core/dist/libraries/trpc/context").EntityContext | undefined;
|
|
324
|
-
req: import("http").IncomingMessage;
|
|
325
|
-
usedRefreshToken: boolean | undefined;
|
|
326
|
-
tokenRenewed: boolean | undefined;
|
|
327
|
-
};
|
|
328
|
-
_input_in: {
|
|
132
|
+
meta: object;
|
|
133
|
+
}>;
|
|
134
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
135
|
+
input: {
|
|
329
136
|
[x: string]: any;
|
|
330
137
|
} | import("zod").objectInputType<{
|
|
331
138
|
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
@@ -336,47 +143,7 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
336
143
|
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
337
144
|
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
338
145
|
}, import("zod").ZodTypeAny, "passthrough">;
|
|
339
|
-
|
|
340
|
-
[x: string]: any;
|
|
341
|
-
} | import("zod").objectOutputType<{
|
|
342
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
343
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
344
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
345
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
346
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
347
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
348
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
349
|
-
}, import("zod").ZodTypeAny, "passthrough">;
|
|
350
|
-
_output_in: {
|
|
351
|
-
message: string;
|
|
352
|
-
success: boolean;
|
|
353
|
-
data?: import("zod").objectInputType<{
|
|
354
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
355
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
356
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
357
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
358
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
359
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
360
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
361
|
-
}, import("zod").ZodTypeAny, "passthrough"> | {
|
|
362
|
-
documents: import("zod").objectInputType<{
|
|
363
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
364
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
365
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
366
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
367
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
368
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
369
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
370
|
-
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
371
|
-
metadata?: {
|
|
372
|
-
page: number;
|
|
373
|
-
size: number;
|
|
374
|
-
totalElements: number;
|
|
375
|
-
totalPages: number;
|
|
376
|
-
} | undefined;
|
|
377
|
-
} | undefined;
|
|
378
|
-
};
|
|
379
|
-
_output_out: {
|
|
146
|
+
output: {
|
|
380
147
|
message: string;
|
|
381
148
|
success: boolean;
|
|
382
149
|
data?: import("zod").objectInputType<{
|
|
@@ -405,72 +172,14 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
405
172
|
} | undefined;
|
|
406
173
|
} | undefined;
|
|
407
174
|
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
meta: object;
|
|
413
|
-
errorShape: {
|
|
414
|
-
message: string;
|
|
415
|
-
data: {
|
|
416
|
-
stack: undefined;
|
|
417
|
-
path: undefined;
|
|
418
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_KEY;
|
|
419
|
-
httpStatus: number;
|
|
420
|
-
};
|
|
421
|
-
stack: undefined;
|
|
422
|
-
code: import("@trpc/server/rpc").TRPC_ERROR_CODE_NUMBER;
|
|
423
|
-
};
|
|
424
|
-
transformer: import("@trpc/server").DefaultDataTransformer;
|
|
425
|
-
}>;
|
|
426
|
-
_meta: object;
|
|
427
|
-
_ctx_out: {
|
|
428
|
-
requestId: string | undefined;
|
|
429
|
-
res: import("http").ServerResponse<import("http").IncomingMessage>;
|
|
430
|
-
tokenType: import("@lyxa.ai/core/dist/libraries/auth").TokenType | undefined;
|
|
431
|
-
entity: import("@lyxa.ai/core/dist/libraries/trpc/context").EntityContext | undefined;
|
|
432
|
-
req: import("http").IncomingMessage;
|
|
433
|
-
usedRefreshToken: boolean | undefined;
|
|
434
|
-
tokenRenewed: boolean | undefined;
|
|
435
|
-
};
|
|
436
|
-
_input_in: {
|
|
175
|
+
meta: object;
|
|
176
|
+
}>;
|
|
177
|
+
deleteById: import("@trpc/server").TRPCMutationProcedure<{
|
|
178
|
+
input: {
|
|
437
179
|
_id: string | import("mongoose").Types.ObjectId;
|
|
438
180
|
softDelete?: boolean | undefined;
|
|
439
181
|
};
|
|
440
|
-
|
|
441
|
-
_id: import("mongoose").Types.ObjectId;
|
|
442
|
-
softDelete: boolean;
|
|
443
|
-
};
|
|
444
|
-
_output_in: {
|
|
445
|
-
message: string;
|
|
446
|
-
success: boolean;
|
|
447
|
-
data?: import("zod").objectInputType<{
|
|
448
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
449
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
450
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
451
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
452
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
453
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
454
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
455
|
-
}, import("zod").ZodTypeAny, "passthrough"> | {
|
|
456
|
-
documents: import("zod").objectInputType<{
|
|
457
|
-
itemType: import("zod").ZodOptional<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>>;
|
|
458
|
-
percentageBundles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
459
|
-
isDiscount: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
460
|
-
isBuy1Get1: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
461
|
-
isFreeDelivery: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
462
|
-
isPunchMarketing: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
463
|
-
_id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
464
|
-
}, import("zod").ZodTypeAny, "passthrough">[];
|
|
465
|
-
metadata?: {
|
|
466
|
-
page: number;
|
|
467
|
-
size: number;
|
|
468
|
-
totalElements: number;
|
|
469
|
-
totalPages: number;
|
|
470
|
-
} | undefined;
|
|
471
|
-
} | undefined;
|
|
472
|
-
};
|
|
473
|
-
_output_out: {
|
|
182
|
+
output: {
|
|
474
183
|
message: string;
|
|
475
184
|
success: boolean;
|
|
476
185
|
data?: import("zod").objectInputType<{
|
|
@@ -499,6 +208,7 @@ export declare const dealSettingRouter: import("@trpc/server").CreateRouterInner
|
|
|
499
208
|
} | undefined;
|
|
500
209
|
} | undefined;
|
|
501
210
|
};
|
|
502
|
-
|
|
503
|
-
}>;
|
|
211
|
+
meta: object;
|
|
212
|
+
}>;
|
|
213
|
+
}>>;
|
|
504
214
|
//# sourceMappingURL=deal-setting.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal-setting.router.d.ts","sourceRoot":"/","sources":["modules/deal-setting/routers/deal-setting.router.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"deal-setting.router.d.ts","sourceRoot":"/","sources":["modules/deal-setting/routers/deal-setting.router.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAiB8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC3D,CAAC"}
|