@kl1/contracts 1.1.56-uat → 1.1.58-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +10 -10
- package/dist/src/chat/validation.d.ts +71 -71
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +379 -185
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/contract2.d.ts +2 -0
- package/dist/src/contract2.d.ts.map +1 -0
- package/dist/src/facebook-feed/index.d.ts +65 -65
- package/dist/src/instagram/index.d.ts +30 -30
- package/dist/src/line/index.d.ts +30 -30
- package/dist/src/messenger/index.d.ts +30 -30
- package/dist/src/presence-status/index.d.ts +556 -0
- package/dist/src/presence-status/index.d.ts.map +1 -0
- package/dist/src/presence-status/schema.d.ts +31 -0
- package/dist/src/presence-status/schema.d.ts.map +1 -0
- package/dist/src/presence-status/validation.d.ts +28 -0
- package/dist/src/presence-status/validation.d.ts.map +1 -0
- package/dist/src/subscription/index.d.ts +194 -0
- package/dist/src/subscription/index.d.ts.map +1 -1
- package/dist/src/subscription/schema.d.ts +309 -0
- package/dist/src/subscription/schema.d.ts.map +1 -1
- package/dist/src/viber/index.d.ts +30 -30
- package/dist/src/webchat/index.d.ts +30 -30
- package/package.json +1 -1
@@ -0,0 +1,31 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
/**
|
3
|
+
* Channel Types Enum
|
4
|
+
*/
|
5
|
+
export declare const PresenceStatusDesEnum: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
6
|
+
export declare const PresenceStatusSchema: z.ZodObject<{
|
7
|
+
id: z.ZodString;
|
8
|
+
createdAt: z.ZodDate;
|
9
|
+
updatedAt: z.ZodDate;
|
10
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
11
|
+
status: z.ZodString;
|
12
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
13
|
+
position: z.ZodNumber;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
id: string;
|
16
|
+
position: number;
|
17
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
18
|
+
status: string;
|
19
|
+
createdAt: Date;
|
20
|
+
updatedAt: Date;
|
21
|
+
deletedAt: Date | null;
|
22
|
+
}, {
|
23
|
+
id: string;
|
24
|
+
position: number;
|
25
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
26
|
+
status: string;
|
27
|
+
createdAt: Date;
|
28
|
+
updatedAt: Date;
|
29
|
+
deletedAt: Date | null;
|
30
|
+
}>;
|
31
|
+
//# sourceMappingURL=schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/presence-status/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB;;GAEG;AACH,eAAO,MAAM,qBAAqB,iHAIhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const CreatePresenceStatusSchema: z.ZodObject<{
|
3
|
+
status: z.ZodString;
|
4
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
5
|
+
position: z.ZodNumber;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
position: number;
|
8
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
9
|
+
status: string;
|
10
|
+
}, {
|
11
|
+
position: number;
|
12
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
13
|
+
status: string;
|
14
|
+
}>;
|
15
|
+
export declare const UpdatePresenceStatusSchema: z.ZodObject<{
|
16
|
+
status: z.ZodString;
|
17
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
18
|
+
position: z.ZodNumber;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
position: number;
|
21
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
22
|
+
status: string;
|
23
|
+
}, {
|
24
|
+
position: number;
|
25
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
26
|
+
status: string;
|
27
|
+
}>;
|
28
|
+
//# sourceMappingURL=validation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/presence-status/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAA6B,CAAC"}
|
@@ -42,6 +42,37 @@ export declare const subscriptionContract: {
|
|
42
42
|
type: z.ZodString;
|
43
43
|
omnichannel: z.ZodString;
|
44
44
|
usageType: z.ZodNullable<z.ZodString>;
|
45
|
+
productPrice: z.ZodObject<{
|
46
|
+
id: z.ZodString;
|
47
|
+
createdAt: z.ZodDate;
|
48
|
+
updatedAt: z.ZodDate;
|
49
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
50
|
+
priceId: z.ZodString;
|
51
|
+
name: z.ZodNullable<z.ZodString>;
|
52
|
+
perUnit: z.ZodNumber;
|
53
|
+
price: z.ZodNumber;
|
54
|
+
currency: z.ZodNullable<z.ZodString>;
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
56
|
+
id: string;
|
57
|
+
name: string | null;
|
58
|
+
currency: string | null;
|
59
|
+
createdAt: Date;
|
60
|
+
updatedAt: Date;
|
61
|
+
deletedAt: Date | null;
|
62
|
+
priceId: string;
|
63
|
+
perUnit: number;
|
64
|
+
price: number;
|
65
|
+
}, {
|
66
|
+
id: string;
|
67
|
+
name: string | null;
|
68
|
+
currency: string | null;
|
69
|
+
createdAt: Date;
|
70
|
+
updatedAt: Date;
|
71
|
+
deletedAt: Date | null;
|
72
|
+
priceId: string;
|
73
|
+
perUnit: number;
|
74
|
+
price: number;
|
75
|
+
}>;
|
45
76
|
}, "strip", z.ZodTypeAny, {
|
46
77
|
type: string;
|
47
78
|
id: string;
|
@@ -53,6 +84,17 @@ export declare const subscriptionContract: {
|
|
53
84
|
productId: string;
|
54
85
|
omnichannel: string;
|
55
86
|
usageType: string | null;
|
87
|
+
productPrice: {
|
88
|
+
id: string;
|
89
|
+
name: string | null;
|
90
|
+
currency: string | null;
|
91
|
+
createdAt: Date;
|
92
|
+
updatedAt: Date;
|
93
|
+
deletedAt: Date | null;
|
94
|
+
priceId: string;
|
95
|
+
perUnit: number;
|
96
|
+
price: number;
|
97
|
+
};
|
56
98
|
}, {
|
57
99
|
type: string;
|
58
100
|
id: string;
|
@@ -64,6 +106,17 @@ export declare const subscriptionContract: {
|
|
64
106
|
productId: string;
|
65
107
|
omnichannel: string;
|
66
108
|
usageType: string | null;
|
109
|
+
productPrice: {
|
110
|
+
id: string;
|
111
|
+
name: string | null;
|
112
|
+
currency: string | null;
|
113
|
+
createdAt: Date;
|
114
|
+
updatedAt: Date;
|
115
|
+
deletedAt: Date | null;
|
116
|
+
priceId: string;
|
117
|
+
perUnit: number;
|
118
|
+
price: number;
|
119
|
+
};
|
67
120
|
}>;
|
68
121
|
}, "strip", z.ZodTypeAny, {
|
69
122
|
id: string;
|
@@ -78,6 +131,17 @@ export declare const subscriptionContract: {
|
|
78
131
|
productId: string;
|
79
132
|
omnichannel: string;
|
80
133
|
usageType: string | null;
|
134
|
+
productPrice: {
|
135
|
+
id: string;
|
136
|
+
name: string | null;
|
137
|
+
currency: string | null;
|
138
|
+
createdAt: Date;
|
139
|
+
updatedAt: Date;
|
140
|
+
deletedAt: Date | null;
|
141
|
+
priceId: string;
|
142
|
+
perUnit: number;
|
143
|
+
price: number;
|
144
|
+
};
|
81
145
|
};
|
82
146
|
createdAt: Date;
|
83
147
|
updatedAt: Date;
|
@@ -98,6 +162,17 @@ export declare const subscriptionContract: {
|
|
98
162
|
productId: string;
|
99
163
|
omnichannel: string;
|
100
164
|
usageType: string | null;
|
165
|
+
productPrice: {
|
166
|
+
id: string;
|
167
|
+
name: string | null;
|
168
|
+
currency: string | null;
|
169
|
+
createdAt: Date;
|
170
|
+
updatedAt: Date;
|
171
|
+
deletedAt: Date | null;
|
172
|
+
priceId: string;
|
173
|
+
perUnit: number;
|
174
|
+
price: number;
|
175
|
+
};
|
101
176
|
};
|
102
177
|
createdAt: Date;
|
103
178
|
updatedAt: Date;
|
@@ -106,6 +181,37 @@ export declare const subscriptionContract: {
|
|
106
181
|
subscriptionItemId: string;
|
107
182
|
usage: number | null;
|
108
183
|
}>, "many">;
|
184
|
+
productPrice: z.ZodObject<{
|
185
|
+
id: z.ZodString;
|
186
|
+
createdAt: z.ZodDate;
|
187
|
+
updatedAt: z.ZodDate;
|
188
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
189
|
+
priceId: z.ZodString;
|
190
|
+
name: z.ZodNullable<z.ZodString>;
|
191
|
+
perUnit: z.ZodNumber;
|
192
|
+
price: z.ZodNumber;
|
193
|
+
currency: z.ZodNullable<z.ZodString>;
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
195
|
+
id: string;
|
196
|
+
name: string | null;
|
197
|
+
currency: string | null;
|
198
|
+
createdAt: Date;
|
199
|
+
updatedAt: Date;
|
200
|
+
deletedAt: Date | null;
|
201
|
+
priceId: string;
|
202
|
+
perUnit: number;
|
203
|
+
price: number;
|
204
|
+
}, {
|
205
|
+
id: string;
|
206
|
+
name: string | null;
|
207
|
+
currency: string | null;
|
208
|
+
createdAt: Date;
|
209
|
+
updatedAt: Date;
|
210
|
+
deletedAt: Date | null;
|
211
|
+
priceId: string;
|
212
|
+
perUnit: number;
|
213
|
+
price: number;
|
214
|
+
}>;
|
109
215
|
}, "strip", z.ZodTypeAny, {
|
110
216
|
type: string;
|
111
217
|
interval: string;
|
@@ -116,6 +222,17 @@ export declare const subscriptionContract: {
|
|
116
222
|
updatedAt: Date;
|
117
223
|
deletedAt: Date | null;
|
118
224
|
provider: string;
|
225
|
+
productPrice: {
|
226
|
+
id: string;
|
227
|
+
name: string | null;
|
228
|
+
currency: string | null;
|
229
|
+
createdAt: Date;
|
230
|
+
updatedAt: Date;
|
231
|
+
deletedAt: Date | null;
|
232
|
+
priceId: string;
|
233
|
+
perUnit: number;
|
234
|
+
price: number;
|
235
|
+
};
|
119
236
|
subscriptionId: string;
|
120
237
|
quantity: number;
|
121
238
|
amount: number;
|
@@ -134,6 +251,17 @@ export declare const subscriptionContract: {
|
|
134
251
|
productId: string;
|
135
252
|
omnichannel: string;
|
136
253
|
usageType: string | null;
|
254
|
+
productPrice: {
|
255
|
+
id: string;
|
256
|
+
name: string | null;
|
257
|
+
currency: string | null;
|
258
|
+
createdAt: Date;
|
259
|
+
updatedAt: Date;
|
260
|
+
deletedAt: Date | null;
|
261
|
+
priceId: string;
|
262
|
+
perUnit: number;
|
263
|
+
price: number;
|
264
|
+
};
|
137
265
|
};
|
138
266
|
createdAt: Date;
|
139
267
|
updatedAt: Date;
|
@@ -152,6 +280,17 @@ export declare const subscriptionContract: {
|
|
152
280
|
updatedAt: Date;
|
153
281
|
deletedAt: Date | null;
|
154
282
|
provider: string;
|
283
|
+
productPrice: {
|
284
|
+
id: string;
|
285
|
+
name: string | null;
|
286
|
+
currency: string | null;
|
287
|
+
createdAt: Date;
|
288
|
+
updatedAt: Date;
|
289
|
+
deletedAt: Date | null;
|
290
|
+
priceId: string;
|
291
|
+
perUnit: number;
|
292
|
+
price: number;
|
293
|
+
};
|
155
294
|
subscriptionId: string;
|
156
295
|
quantity: number;
|
157
296
|
amount: number;
|
@@ -170,6 +309,17 @@ export declare const subscriptionContract: {
|
|
170
309
|
productId: string;
|
171
310
|
omnichannel: string;
|
172
311
|
usageType: string | null;
|
312
|
+
productPrice: {
|
313
|
+
id: string;
|
314
|
+
name: string | null;
|
315
|
+
currency: string | null;
|
316
|
+
createdAt: Date;
|
317
|
+
updatedAt: Date;
|
318
|
+
deletedAt: Date | null;
|
319
|
+
priceId: string;
|
320
|
+
perUnit: number;
|
321
|
+
price: number;
|
322
|
+
};
|
173
323
|
};
|
174
324
|
createdAt: Date;
|
175
325
|
updatedAt: Date;
|
@@ -191,6 +341,17 @@ export declare const subscriptionContract: {
|
|
191
341
|
updatedAt: Date;
|
192
342
|
deletedAt: Date | null;
|
193
343
|
provider: string;
|
344
|
+
productPrice: {
|
345
|
+
id: string;
|
346
|
+
name: string | null;
|
347
|
+
currency: string | null;
|
348
|
+
createdAt: Date;
|
349
|
+
updatedAt: Date;
|
350
|
+
deletedAt: Date | null;
|
351
|
+
priceId: string;
|
352
|
+
perUnit: number;
|
353
|
+
price: number;
|
354
|
+
};
|
194
355
|
subscriptionId: string;
|
195
356
|
quantity: number;
|
196
357
|
amount: number;
|
@@ -209,6 +370,17 @@ export declare const subscriptionContract: {
|
|
209
370
|
productId: string;
|
210
371
|
omnichannel: string;
|
211
372
|
usageType: string | null;
|
373
|
+
productPrice: {
|
374
|
+
id: string;
|
375
|
+
name: string | null;
|
376
|
+
currency: string | null;
|
377
|
+
createdAt: Date;
|
378
|
+
updatedAt: Date;
|
379
|
+
deletedAt: Date | null;
|
380
|
+
priceId: string;
|
381
|
+
perUnit: number;
|
382
|
+
price: number;
|
383
|
+
};
|
212
384
|
};
|
213
385
|
createdAt: Date;
|
214
386
|
updatedAt: Date;
|
@@ -230,6 +402,17 @@ export declare const subscriptionContract: {
|
|
230
402
|
updatedAt: Date;
|
231
403
|
deletedAt: Date | null;
|
232
404
|
provider: string;
|
405
|
+
productPrice: {
|
406
|
+
id: string;
|
407
|
+
name: string | null;
|
408
|
+
currency: string | null;
|
409
|
+
createdAt: Date;
|
410
|
+
updatedAt: Date;
|
411
|
+
deletedAt: Date | null;
|
412
|
+
priceId: string;
|
413
|
+
perUnit: number;
|
414
|
+
price: number;
|
415
|
+
};
|
233
416
|
subscriptionId: string;
|
234
417
|
quantity: number;
|
235
418
|
amount: number;
|
@@ -248,6 +431,17 @@ export declare const subscriptionContract: {
|
|
248
431
|
productId: string;
|
249
432
|
omnichannel: string;
|
250
433
|
usageType: string | null;
|
434
|
+
productPrice: {
|
435
|
+
id: string;
|
436
|
+
name: string | null;
|
437
|
+
currency: string | null;
|
438
|
+
createdAt: Date;
|
439
|
+
updatedAt: Date;
|
440
|
+
deletedAt: Date | null;
|
441
|
+
priceId: string;
|
442
|
+
perUnit: number;
|
443
|
+
price: number;
|
444
|
+
};
|
251
445
|
};
|
252
446
|
createdAt: Date;
|
253
447
|
updatedAt: Date;
|
@@ -1 +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
|
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"}
|