@kl1/contracts 1.1.29 → 1.1.30
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/index.js +68 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +68 -0
- package/dist/index.mjs.map +1 -1
- package/dist/src/contract.d.ts +250 -0
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/export/index.d.ts +43 -0
- package/dist/src/export/index.d.ts.map +1 -0
- package/dist/src/subscription/index.d.ts +332 -0
- package/dist/src/subscription/index.d.ts.map +1 -0
- package/dist/src/subscription/schema.d.ts +290 -0
- package/dist/src/subscription/schema.d.ts.map +1 -0
- package/dist/src/subscription/validation.d.ts +27 -0
- package/dist/src/subscription/validation.d.ts.map +1 -0
- package/dist/src/telephony-cdr/index.d.ts +125 -0
- package/dist/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/src/telephony-cdr/schema.d.ts +7 -0
- package/dist/src/telephony-cdr/schema.d.ts.map +1 -1
- package/dist/src/ticket/index.d.ts +125 -0
- package/dist/src/ticket/index.d.ts.map +1 -1
- package/dist/src/ticket/schema.d.ts +7 -0
- package/dist/src/ticket/schema.d.ts.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,43 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const exportContract: {
|
3
|
+
notifyExport: {
|
4
|
+
body: z.ZodObject<{
|
5
|
+
userId: z.ZodString;
|
6
|
+
module: z.ZodString;
|
7
|
+
fileUrl: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
module: string;
|
10
|
+
userId: string;
|
11
|
+
fileUrl: string;
|
12
|
+
}, {
|
13
|
+
module: string;
|
14
|
+
userId: string;
|
15
|
+
fileUrl: string;
|
16
|
+
}>;
|
17
|
+
method: "POST";
|
18
|
+
responses: {
|
19
|
+
200: z.ZodObject<{
|
20
|
+
requestId: z.ZodString;
|
21
|
+
success: z.ZodBoolean;
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
23
|
+
success: boolean;
|
24
|
+
requestId: string;
|
25
|
+
}, {
|
26
|
+
success: boolean;
|
27
|
+
requestId: string;
|
28
|
+
}>;
|
29
|
+
500: z.ZodObject<{
|
30
|
+
message: z.ZodString;
|
31
|
+
error: z.ZodAny;
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
33
|
+
message: string;
|
34
|
+
error?: any;
|
35
|
+
}, {
|
36
|
+
message: string;
|
37
|
+
error?: any;
|
38
|
+
}>;
|
39
|
+
};
|
40
|
+
path: "export/notify";
|
41
|
+
};
|
42
|
+
};
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/export/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB1B,CAAC"}
|
@@ -0,0 +1,332 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { UpdateSubscriptionSchema } from './validation';
|
3
|
+
export type UpdateSubscriptionBody = z.infer<typeof UpdateSubscriptionSchema>;
|
4
|
+
export declare const subscriptionContract: {
|
5
|
+
getSubscription: {
|
6
|
+
method: "GET";
|
7
|
+
query: null;
|
8
|
+
responses: {
|
9
|
+
200: z.ZodObject<{
|
10
|
+
requestId: z.ZodString;
|
11
|
+
subscription: z.ZodObject<{
|
12
|
+
id: z.ZodString;
|
13
|
+
createdAt: z.ZodDate;
|
14
|
+
updatedAt: z.ZodDate;
|
15
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
16
|
+
provider: z.ZodString;
|
17
|
+
type: z.ZodString;
|
18
|
+
subscriptionId: z.ZodString;
|
19
|
+
interval: z.ZodString;
|
20
|
+
quantity: z.ZodNumber;
|
21
|
+
amount: z.ZodNumber;
|
22
|
+
startAt: z.ZodNullable<z.ZodDate>;
|
23
|
+
expireAt: z.ZodDate;
|
24
|
+
status: z.ZodString;
|
25
|
+
name: z.ZodNullable<z.ZodString>;
|
26
|
+
subscriptionProducts: z.ZodArray<z.ZodObject<{
|
27
|
+
id: z.ZodString;
|
28
|
+
createdAt: z.ZodDate;
|
29
|
+
updatedAt: z.ZodDate;
|
30
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
31
|
+
limit: z.ZodNumber;
|
32
|
+
subscriptionItemId: z.ZodString;
|
33
|
+
usage: z.ZodNullable<z.ZodNumber>;
|
34
|
+
product: z.ZodObject<{
|
35
|
+
id: z.ZodString;
|
36
|
+
createdAt: z.ZodDate;
|
37
|
+
updatedAt: z.ZodDate;
|
38
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
39
|
+
provider: z.ZodString;
|
40
|
+
productId: z.ZodString;
|
41
|
+
name: z.ZodString;
|
42
|
+
type: z.ZodString;
|
43
|
+
omnichannel: z.ZodString;
|
44
|
+
usageType: z.ZodNullable<z.ZodString>;
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
46
|
+
type: string;
|
47
|
+
id: string;
|
48
|
+
name: string;
|
49
|
+
createdAt: Date;
|
50
|
+
updatedAt: Date;
|
51
|
+
deletedAt: Date | null;
|
52
|
+
provider: string;
|
53
|
+
productId: string;
|
54
|
+
omnichannel: string;
|
55
|
+
usageType: string | null;
|
56
|
+
}, {
|
57
|
+
type: string;
|
58
|
+
id: string;
|
59
|
+
name: string;
|
60
|
+
createdAt: Date;
|
61
|
+
updatedAt: Date;
|
62
|
+
deletedAt: Date | null;
|
63
|
+
provider: string;
|
64
|
+
productId: string;
|
65
|
+
omnichannel: string;
|
66
|
+
usageType: string | null;
|
67
|
+
}>;
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
69
|
+
id: string;
|
70
|
+
product: {
|
71
|
+
type: string;
|
72
|
+
id: string;
|
73
|
+
name: string;
|
74
|
+
createdAt: Date;
|
75
|
+
updatedAt: Date;
|
76
|
+
deletedAt: Date | null;
|
77
|
+
provider: string;
|
78
|
+
productId: string;
|
79
|
+
omnichannel: string;
|
80
|
+
usageType: string | null;
|
81
|
+
};
|
82
|
+
createdAt: Date;
|
83
|
+
updatedAt: Date;
|
84
|
+
deletedAt: Date | null;
|
85
|
+
limit: number;
|
86
|
+
subscriptionItemId: string;
|
87
|
+
usage: number | null;
|
88
|
+
}, {
|
89
|
+
id: string;
|
90
|
+
product: {
|
91
|
+
type: string;
|
92
|
+
id: string;
|
93
|
+
name: string;
|
94
|
+
createdAt: Date;
|
95
|
+
updatedAt: Date;
|
96
|
+
deletedAt: Date | null;
|
97
|
+
provider: string;
|
98
|
+
productId: string;
|
99
|
+
omnichannel: string;
|
100
|
+
usageType: string | null;
|
101
|
+
};
|
102
|
+
createdAt: Date;
|
103
|
+
updatedAt: Date;
|
104
|
+
deletedAt: Date | null;
|
105
|
+
limit: number;
|
106
|
+
subscriptionItemId: string;
|
107
|
+
usage: number | null;
|
108
|
+
}>, "many">;
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
110
|
+
type: string;
|
111
|
+
interval: string;
|
112
|
+
id: string;
|
113
|
+
name: string | null;
|
114
|
+
status: string;
|
115
|
+
createdAt: Date;
|
116
|
+
updatedAt: Date;
|
117
|
+
deletedAt: Date | null;
|
118
|
+
provider: string;
|
119
|
+
subscriptionId: string;
|
120
|
+
quantity: number;
|
121
|
+
amount: number;
|
122
|
+
startAt: Date | null;
|
123
|
+
expireAt: Date;
|
124
|
+
subscriptionProducts: {
|
125
|
+
id: string;
|
126
|
+
product: {
|
127
|
+
type: string;
|
128
|
+
id: string;
|
129
|
+
name: string;
|
130
|
+
createdAt: Date;
|
131
|
+
updatedAt: Date;
|
132
|
+
deletedAt: Date | null;
|
133
|
+
provider: string;
|
134
|
+
productId: string;
|
135
|
+
omnichannel: string;
|
136
|
+
usageType: string | null;
|
137
|
+
};
|
138
|
+
createdAt: Date;
|
139
|
+
updatedAt: Date;
|
140
|
+
deletedAt: Date | null;
|
141
|
+
limit: number;
|
142
|
+
subscriptionItemId: string;
|
143
|
+
usage: number | null;
|
144
|
+
}[];
|
145
|
+
}, {
|
146
|
+
type: string;
|
147
|
+
interval: string;
|
148
|
+
id: string;
|
149
|
+
name: string | null;
|
150
|
+
status: string;
|
151
|
+
createdAt: Date;
|
152
|
+
updatedAt: Date;
|
153
|
+
deletedAt: Date | null;
|
154
|
+
provider: string;
|
155
|
+
subscriptionId: string;
|
156
|
+
quantity: number;
|
157
|
+
amount: number;
|
158
|
+
startAt: Date | null;
|
159
|
+
expireAt: Date;
|
160
|
+
subscriptionProducts: {
|
161
|
+
id: string;
|
162
|
+
product: {
|
163
|
+
type: string;
|
164
|
+
id: string;
|
165
|
+
name: string;
|
166
|
+
createdAt: Date;
|
167
|
+
updatedAt: Date;
|
168
|
+
deletedAt: Date | null;
|
169
|
+
provider: string;
|
170
|
+
productId: string;
|
171
|
+
omnichannel: string;
|
172
|
+
usageType: string | null;
|
173
|
+
};
|
174
|
+
createdAt: Date;
|
175
|
+
updatedAt: Date;
|
176
|
+
deletedAt: Date | null;
|
177
|
+
limit: number;
|
178
|
+
subscriptionItemId: string;
|
179
|
+
usage: number | null;
|
180
|
+
}[];
|
181
|
+
}>;
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
183
|
+
requestId: string;
|
184
|
+
subscription: {
|
185
|
+
type: string;
|
186
|
+
interval: string;
|
187
|
+
id: string;
|
188
|
+
name: string | null;
|
189
|
+
status: string;
|
190
|
+
createdAt: Date;
|
191
|
+
updatedAt: Date;
|
192
|
+
deletedAt: Date | null;
|
193
|
+
provider: string;
|
194
|
+
subscriptionId: string;
|
195
|
+
quantity: number;
|
196
|
+
amount: number;
|
197
|
+
startAt: Date | null;
|
198
|
+
expireAt: Date;
|
199
|
+
subscriptionProducts: {
|
200
|
+
id: string;
|
201
|
+
product: {
|
202
|
+
type: string;
|
203
|
+
id: string;
|
204
|
+
name: string;
|
205
|
+
createdAt: Date;
|
206
|
+
updatedAt: Date;
|
207
|
+
deletedAt: Date | null;
|
208
|
+
provider: string;
|
209
|
+
productId: string;
|
210
|
+
omnichannel: string;
|
211
|
+
usageType: string | null;
|
212
|
+
};
|
213
|
+
createdAt: Date;
|
214
|
+
updatedAt: Date;
|
215
|
+
deletedAt: Date | null;
|
216
|
+
limit: number;
|
217
|
+
subscriptionItemId: string;
|
218
|
+
usage: number | null;
|
219
|
+
}[];
|
220
|
+
};
|
221
|
+
}, {
|
222
|
+
requestId: string;
|
223
|
+
subscription: {
|
224
|
+
type: string;
|
225
|
+
interval: string;
|
226
|
+
id: string;
|
227
|
+
name: string | null;
|
228
|
+
status: string;
|
229
|
+
createdAt: Date;
|
230
|
+
updatedAt: Date;
|
231
|
+
deletedAt: Date | null;
|
232
|
+
provider: string;
|
233
|
+
subscriptionId: string;
|
234
|
+
quantity: number;
|
235
|
+
amount: number;
|
236
|
+
startAt: Date | null;
|
237
|
+
expireAt: Date;
|
238
|
+
subscriptionProducts: {
|
239
|
+
id: string;
|
240
|
+
product: {
|
241
|
+
type: string;
|
242
|
+
id: string;
|
243
|
+
name: string;
|
244
|
+
createdAt: Date;
|
245
|
+
updatedAt: Date;
|
246
|
+
deletedAt: Date | null;
|
247
|
+
provider: string;
|
248
|
+
productId: string;
|
249
|
+
omnichannel: string;
|
250
|
+
usageType: string | null;
|
251
|
+
};
|
252
|
+
createdAt: Date;
|
253
|
+
updatedAt: Date;
|
254
|
+
deletedAt: Date | null;
|
255
|
+
limit: number;
|
256
|
+
subscriptionItemId: string;
|
257
|
+
usage: number | null;
|
258
|
+
}[];
|
259
|
+
};
|
260
|
+
}>;
|
261
|
+
500: z.ZodObject<{
|
262
|
+
message: z.ZodString;
|
263
|
+
error: z.ZodAny;
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
265
|
+
message: string;
|
266
|
+
error?: any;
|
267
|
+
}, {
|
268
|
+
message: string;
|
269
|
+
error?: any;
|
270
|
+
}>;
|
271
|
+
};
|
272
|
+
path: "subscriptions/";
|
273
|
+
};
|
274
|
+
updateSubscription: {
|
275
|
+
body: z.ZodObject<{
|
276
|
+
subscriptionId: z.ZodString;
|
277
|
+
subscriptionProducts: z.ZodArray<z.ZodObject<{
|
278
|
+
productId: z.ZodString;
|
279
|
+
quantity: z.ZodNumber;
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
281
|
+
productId: string;
|
282
|
+
quantity: number;
|
283
|
+
}, {
|
284
|
+
productId: string;
|
285
|
+
quantity: number;
|
286
|
+
}>, "many">;
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
288
|
+
subscriptionId: string;
|
289
|
+
subscriptionProducts: {
|
290
|
+
productId: string;
|
291
|
+
quantity: number;
|
292
|
+
}[];
|
293
|
+
}, {
|
294
|
+
subscriptionId: string;
|
295
|
+
subscriptionProducts: {
|
296
|
+
productId: string;
|
297
|
+
quantity: number;
|
298
|
+
}[];
|
299
|
+
}>;
|
300
|
+
method: "PATCH";
|
301
|
+
responses: {
|
302
|
+
200: z.ZodObject<{
|
303
|
+
requestId: z.ZodString;
|
304
|
+
message: z.ZodString;
|
305
|
+
requireCheckout: z.ZodBoolean;
|
306
|
+
checkoutUrl: z.ZodNullable<z.ZodString>;
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
308
|
+
message: string;
|
309
|
+
requestId: string;
|
310
|
+
requireCheckout: boolean;
|
311
|
+
checkoutUrl: string | null;
|
312
|
+
}, {
|
313
|
+
message: string;
|
314
|
+
requestId: string;
|
315
|
+
requireCheckout: boolean;
|
316
|
+
checkoutUrl: string | null;
|
317
|
+
}>;
|
318
|
+
500: z.ZodObject<{
|
319
|
+
message: z.ZodString;
|
320
|
+
error: z.ZodAny;
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
322
|
+
message: string;
|
323
|
+
error?: any;
|
324
|
+
}, {
|
325
|
+
message: string;
|
326
|
+
error?: any;
|
327
|
+
}>;
|
328
|
+
};
|
329
|
+
path: "subscriptions/";
|
330
|
+
};
|
331
|
+
};
|
332
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subscription/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAO,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE9E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgChC,CAAC"}
|
@@ -0,0 +1,290 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
export declare const ProductSchema: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
createdAt: z.ZodDate;
|
5
|
+
updatedAt: z.ZodDate;
|
6
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
7
|
+
provider: z.ZodString;
|
8
|
+
productId: z.ZodString;
|
9
|
+
name: z.ZodString;
|
10
|
+
type: z.ZodString;
|
11
|
+
omnichannel: z.ZodString;
|
12
|
+
usageType: z.ZodNullable<z.ZodString>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
type: string;
|
15
|
+
id: string;
|
16
|
+
name: string;
|
17
|
+
createdAt: Date;
|
18
|
+
updatedAt: Date;
|
19
|
+
deletedAt: Date | null;
|
20
|
+
provider: string;
|
21
|
+
productId: string;
|
22
|
+
omnichannel: string;
|
23
|
+
usageType: string | null;
|
24
|
+
}, {
|
25
|
+
type: string;
|
26
|
+
id: string;
|
27
|
+
name: string;
|
28
|
+
createdAt: Date;
|
29
|
+
updatedAt: Date;
|
30
|
+
deletedAt: Date | null;
|
31
|
+
provider: string;
|
32
|
+
productId: string;
|
33
|
+
omnichannel: string;
|
34
|
+
usageType: string | null;
|
35
|
+
}>;
|
36
|
+
export declare const SubscriptionProuctSchema: z.ZodObject<{
|
37
|
+
id: z.ZodString;
|
38
|
+
createdAt: z.ZodDate;
|
39
|
+
updatedAt: z.ZodDate;
|
40
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
41
|
+
limit: z.ZodNumber;
|
42
|
+
subscriptionItemId: z.ZodString;
|
43
|
+
usage: z.ZodNullable<z.ZodNumber>;
|
44
|
+
product: z.ZodObject<{
|
45
|
+
id: z.ZodString;
|
46
|
+
createdAt: z.ZodDate;
|
47
|
+
updatedAt: z.ZodDate;
|
48
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
49
|
+
provider: z.ZodString;
|
50
|
+
productId: z.ZodString;
|
51
|
+
name: z.ZodString;
|
52
|
+
type: z.ZodString;
|
53
|
+
omnichannel: z.ZodString;
|
54
|
+
usageType: z.ZodNullable<z.ZodString>;
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
56
|
+
type: string;
|
57
|
+
id: string;
|
58
|
+
name: string;
|
59
|
+
createdAt: Date;
|
60
|
+
updatedAt: Date;
|
61
|
+
deletedAt: Date | null;
|
62
|
+
provider: string;
|
63
|
+
productId: string;
|
64
|
+
omnichannel: string;
|
65
|
+
usageType: string | null;
|
66
|
+
}, {
|
67
|
+
type: string;
|
68
|
+
id: string;
|
69
|
+
name: string;
|
70
|
+
createdAt: Date;
|
71
|
+
updatedAt: Date;
|
72
|
+
deletedAt: Date | null;
|
73
|
+
provider: string;
|
74
|
+
productId: string;
|
75
|
+
omnichannel: string;
|
76
|
+
usageType: string | null;
|
77
|
+
}>;
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
79
|
+
id: string;
|
80
|
+
product: {
|
81
|
+
type: string;
|
82
|
+
id: string;
|
83
|
+
name: string;
|
84
|
+
createdAt: Date;
|
85
|
+
updatedAt: Date;
|
86
|
+
deletedAt: Date | null;
|
87
|
+
provider: string;
|
88
|
+
productId: string;
|
89
|
+
omnichannel: string;
|
90
|
+
usageType: string | null;
|
91
|
+
};
|
92
|
+
createdAt: Date;
|
93
|
+
updatedAt: Date;
|
94
|
+
deletedAt: Date | null;
|
95
|
+
limit: number;
|
96
|
+
subscriptionItemId: string;
|
97
|
+
usage: number | null;
|
98
|
+
}, {
|
99
|
+
id: string;
|
100
|
+
product: {
|
101
|
+
type: string;
|
102
|
+
id: string;
|
103
|
+
name: string;
|
104
|
+
createdAt: Date;
|
105
|
+
updatedAt: Date;
|
106
|
+
deletedAt: Date | null;
|
107
|
+
provider: string;
|
108
|
+
productId: string;
|
109
|
+
omnichannel: string;
|
110
|
+
usageType: string | null;
|
111
|
+
};
|
112
|
+
createdAt: Date;
|
113
|
+
updatedAt: Date;
|
114
|
+
deletedAt: Date | null;
|
115
|
+
limit: number;
|
116
|
+
subscriptionItemId: string;
|
117
|
+
usage: number | null;
|
118
|
+
}>;
|
119
|
+
export declare const SubscriptionSchema: z.ZodObject<{
|
120
|
+
id: z.ZodString;
|
121
|
+
createdAt: z.ZodDate;
|
122
|
+
updatedAt: z.ZodDate;
|
123
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
124
|
+
provider: z.ZodString;
|
125
|
+
type: z.ZodString;
|
126
|
+
subscriptionId: z.ZodString;
|
127
|
+
interval: z.ZodString;
|
128
|
+
quantity: z.ZodNumber;
|
129
|
+
amount: z.ZodNumber;
|
130
|
+
startAt: z.ZodNullable<z.ZodDate>;
|
131
|
+
expireAt: z.ZodDate;
|
132
|
+
status: z.ZodString;
|
133
|
+
name: z.ZodNullable<z.ZodString>;
|
134
|
+
subscriptionProducts: z.ZodArray<z.ZodObject<{
|
135
|
+
id: z.ZodString;
|
136
|
+
createdAt: z.ZodDate;
|
137
|
+
updatedAt: z.ZodDate;
|
138
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
139
|
+
limit: z.ZodNumber;
|
140
|
+
subscriptionItemId: z.ZodString;
|
141
|
+
usage: z.ZodNullable<z.ZodNumber>;
|
142
|
+
product: z.ZodObject<{
|
143
|
+
id: z.ZodString;
|
144
|
+
createdAt: z.ZodDate;
|
145
|
+
updatedAt: z.ZodDate;
|
146
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
147
|
+
provider: z.ZodString;
|
148
|
+
productId: z.ZodString;
|
149
|
+
name: z.ZodString;
|
150
|
+
type: z.ZodString;
|
151
|
+
omnichannel: z.ZodString;
|
152
|
+
usageType: z.ZodNullable<z.ZodString>;
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
154
|
+
type: string;
|
155
|
+
id: string;
|
156
|
+
name: string;
|
157
|
+
createdAt: Date;
|
158
|
+
updatedAt: Date;
|
159
|
+
deletedAt: Date | null;
|
160
|
+
provider: string;
|
161
|
+
productId: string;
|
162
|
+
omnichannel: string;
|
163
|
+
usageType: string | null;
|
164
|
+
}, {
|
165
|
+
type: string;
|
166
|
+
id: string;
|
167
|
+
name: string;
|
168
|
+
createdAt: Date;
|
169
|
+
updatedAt: Date;
|
170
|
+
deletedAt: Date | null;
|
171
|
+
provider: string;
|
172
|
+
productId: string;
|
173
|
+
omnichannel: string;
|
174
|
+
usageType: string | null;
|
175
|
+
}>;
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
177
|
+
id: string;
|
178
|
+
product: {
|
179
|
+
type: string;
|
180
|
+
id: string;
|
181
|
+
name: string;
|
182
|
+
createdAt: Date;
|
183
|
+
updatedAt: Date;
|
184
|
+
deletedAt: Date | null;
|
185
|
+
provider: string;
|
186
|
+
productId: string;
|
187
|
+
omnichannel: string;
|
188
|
+
usageType: string | null;
|
189
|
+
};
|
190
|
+
createdAt: Date;
|
191
|
+
updatedAt: Date;
|
192
|
+
deletedAt: Date | null;
|
193
|
+
limit: number;
|
194
|
+
subscriptionItemId: string;
|
195
|
+
usage: number | null;
|
196
|
+
}, {
|
197
|
+
id: string;
|
198
|
+
product: {
|
199
|
+
type: string;
|
200
|
+
id: string;
|
201
|
+
name: string;
|
202
|
+
createdAt: Date;
|
203
|
+
updatedAt: Date;
|
204
|
+
deletedAt: Date | null;
|
205
|
+
provider: string;
|
206
|
+
productId: string;
|
207
|
+
omnichannel: string;
|
208
|
+
usageType: string | null;
|
209
|
+
};
|
210
|
+
createdAt: Date;
|
211
|
+
updatedAt: Date;
|
212
|
+
deletedAt: Date | null;
|
213
|
+
limit: number;
|
214
|
+
subscriptionItemId: string;
|
215
|
+
usage: number | null;
|
216
|
+
}>, "many">;
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
218
|
+
type: string;
|
219
|
+
interval: string;
|
220
|
+
id: string;
|
221
|
+
name: string | null;
|
222
|
+
status: string;
|
223
|
+
createdAt: Date;
|
224
|
+
updatedAt: Date;
|
225
|
+
deletedAt: Date | null;
|
226
|
+
provider: string;
|
227
|
+
subscriptionId: string;
|
228
|
+
quantity: number;
|
229
|
+
amount: number;
|
230
|
+
startAt: Date | null;
|
231
|
+
expireAt: Date;
|
232
|
+
subscriptionProducts: {
|
233
|
+
id: string;
|
234
|
+
product: {
|
235
|
+
type: string;
|
236
|
+
id: string;
|
237
|
+
name: string;
|
238
|
+
createdAt: Date;
|
239
|
+
updatedAt: Date;
|
240
|
+
deletedAt: Date | null;
|
241
|
+
provider: string;
|
242
|
+
productId: string;
|
243
|
+
omnichannel: string;
|
244
|
+
usageType: string | null;
|
245
|
+
};
|
246
|
+
createdAt: Date;
|
247
|
+
updatedAt: Date;
|
248
|
+
deletedAt: Date | null;
|
249
|
+
limit: number;
|
250
|
+
subscriptionItemId: string;
|
251
|
+
usage: number | null;
|
252
|
+
}[];
|
253
|
+
}, {
|
254
|
+
type: string;
|
255
|
+
interval: string;
|
256
|
+
id: string;
|
257
|
+
name: string | null;
|
258
|
+
status: string;
|
259
|
+
createdAt: Date;
|
260
|
+
updatedAt: Date;
|
261
|
+
deletedAt: Date | null;
|
262
|
+
provider: string;
|
263
|
+
subscriptionId: string;
|
264
|
+
quantity: number;
|
265
|
+
amount: number;
|
266
|
+
startAt: Date | null;
|
267
|
+
expireAt: Date;
|
268
|
+
subscriptionProducts: {
|
269
|
+
id: string;
|
270
|
+
product: {
|
271
|
+
type: string;
|
272
|
+
id: string;
|
273
|
+
name: string;
|
274
|
+
createdAt: Date;
|
275
|
+
updatedAt: Date;
|
276
|
+
deletedAt: Date | null;
|
277
|
+
provider: string;
|
278
|
+
productId: string;
|
279
|
+
omnichannel: string;
|
280
|
+
usageType: string | null;
|
281
|
+
};
|
282
|
+
createdAt: Date;
|
283
|
+
updatedAt: Date;
|
284
|
+
deletedAt: Date | null;
|
285
|
+
limit: number;
|
286
|
+
subscriptionItemId: string;
|
287
|
+
usage: number | null;
|
288
|
+
}[];
|
289
|
+
}>;
|
290
|
+
//# sourceMappingURL=schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/subscription/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7B,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const UpdateSubscriptionSchema: z.ZodObject<{
|
3
|
+
subscriptionId: z.ZodString;
|
4
|
+
subscriptionProducts: z.ZodArray<z.ZodObject<{
|
5
|
+
productId: z.ZodString;
|
6
|
+
quantity: z.ZodNumber;
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
8
|
+
productId: string;
|
9
|
+
quantity: number;
|
10
|
+
}, {
|
11
|
+
productId: string;
|
12
|
+
quantity: number;
|
13
|
+
}>, "many">;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
subscriptionId: string;
|
16
|
+
subscriptionProducts: {
|
17
|
+
productId: string;
|
18
|
+
quantity: number;
|
19
|
+
}[];
|
20
|
+
}, {
|
21
|
+
subscriptionId: string;
|
22
|
+
subscriptionProducts: {
|
23
|
+
productId: string;
|
24
|
+
quantity: number;
|
25
|
+
}[];
|
26
|
+
}>;
|
27
|
+
//# sourceMappingURL=validation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/subscription/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC"}
|