@kl1/contracts 1.2.66-uat → 1.2.68-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/chat/index.d.ts +191 -170
- package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/schema.d.ts +45 -45
- package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/chat/validation.d.ts +72 -56
- package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +650 -415
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/index.d.ts +184 -37
- package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
- package/dist/api-contracts/src/dashboard/schema.d.ts +39 -18
- package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/facebook-feed/index.d.ts +43 -43
- package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -3
- package/dist/api-contracts/src/instagram/index.d.ts +33 -33
- package/dist/api-contracts/src/line/index.d.ts +38 -38
- package/dist/api-contracts/src/line/validation.d.ts +5 -5
- package/dist/api-contracts/src/messenger/index.d.ts +33 -33
- package/dist/api-contracts/src/presence-status/index.d.ts +92 -44
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/schema.d.ts +13 -10
- package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/validation.d.ts +18 -6
- package/dist/api-contracts/src/presence-status/validation.d.ts.map +1 -1
- package/dist/api-contracts/src/sms/index.d.ts +5 -5
- package/dist/api-contracts/src/telegram/index.d.ts +33 -33
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +48 -24
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +20 -10
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts +32 -16
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +40 -20
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/viber/index.d.ts +33 -33
- package/dist/api-contracts/src/webchat/index.d.ts +33 -33
- package/dist/api-contracts/src/whatsapp/index.d.ts +33 -33
- package/dist/api-contracts/src/workflow-rule/index.d.ts +12 -12
- package/dist/index.js +65 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +65 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
import {
|
2
|
+
import { PresenceStatusSchema, TPresenceStatusOption } from './schema';
|
3
3
|
import { CreatePresenceStatusSchema, UpdatePresenceStatusSchema } from './validation';
|
4
4
|
export type CreatePresenceStatusRequest = z.infer<typeof CreatePresenceStatusSchema>;
|
5
5
|
export type UpdatePresenceStatusRequest = z.infer<typeof UpdatePresenceStatusSchema>;
|
6
6
|
export type GetPresenceStatusRequest = z.infer<typeof PresenceStatusSchema>;
|
7
|
-
export type
|
7
|
+
export type PresenceStatusOption = z.infer<typeof TPresenceStatusOption>;
|
8
8
|
export declare const presenceStatusContract: {
|
9
9
|
getAllStatus: {
|
10
10
|
summary: "Get all presence status list.";
|
@@ -17,51 +17,61 @@ export declare const presenceStatusContract: {
|
|
17
17
|
createdAt: z.ZodDate;
|
18
18
|
updatedAt: z.ZodDate;
|
19
19
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
20
|
-
systemName: z.
|
20
|
+
systemName: z.ZodString;
|
21
21
|
displayName: z.ZodString;
|
22
|
+
description: z.ZodNullable<z.ZodString>;
|
22
23
|
position: z.ZodNumber;
|
23
|
-
emoji: z.ZodString
|
24
|
+
emoji: z.ZodNullable<z.ZodString>;
|
25
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
24
26
|
}, "strip", z.ZodTypeAny, {
|
25
|
-
emoji: string;
|
27
|
+
emoji: string | null;
|
26
28
|
id: string;
|
27
29
|
position: number;
|
30
|
+
description: string | null;
|
28
31
|
createdAt: Date;
|
29
32
|
updatedAt: Date;
|
30
33
|
deletedAt: Date | null;
|
31
|
-
systemName:
|
34
|
+
systemName: string;
|
32
35
|
displayName: string;
|
36
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
33
37
|
}, {
|
34
|
-
emoji: string;
|
38
|
+
emoji: string | null;
|
35
39
|
id: string;
|
36
40
|
position: number;
|
41
|
+
description: string | null;
|
37
42
|
createdAt: Date;
|
38
43
|
updatedAt: Date;
|
39
44
|
deletedAt: Date | null;
|
40
|
-
systemName:
|
45
|
+
systemName: string;
|
41
46
|
displayName: string;
|
47
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
42
48
|
}>, "many">;
|
43
49
|
}, "strip", z.ZodTypeAny, {
|
44
50
|
data: {
|
45
|
-
emoji: string;
|
51
|
+
emoji: string | null;
|
46
52
|
id: string;
|
47
53
|
position: number;
|
54
|
+
description: string | null;
|
48
55
|
createdAt: Date;
|
49
56
|
updatedAt: Date;
|
50
57
|
deletedAt: Date | null;
|
51
|
-
systemName:
|
58
|
+
systemName: string;
|
52
59
|
displayName: string;
|
60
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
53
61
|
}[];
|
54
62
|
total: number;
|
55
63
|
}, {
|
56
64
|
data: {
|
57
|
-
emoji: string;
|
65
|
+
emoji: string | null;
|
58
66
|
id: string;
|
59
67
|
position: number;
|
68
|
+
description: string | null;
|
60
69
|
createdAt: Date;
|
61
70
|
updatedAt: Date;
|
62
71
|
deletedAt: Date | null;
|
63
|
-
systemName:
|
72
|
+
systemName: string;
|
64
73
|
displayName: string;
|
74
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
65
75
|
}[];
|
66
76
|
total: number;
|
67
77
|
}>;
|
@@ -113,20 +123,26 @@ export declare const presenceStatusContract: {
|
|
113
123
|
};
|
114
124
|
createPresenceStatus: {
|
115
125
|
body: z.ZodObject<{
|
116
|
-
systemName: z.
|
126
|
+
systemName: z.ZodString;
|
117
127
|
displayName: z.ZodString;
|
128
|
+
description: z.ZodOptional<z.ZodString>;
|
118
129
|
position: z.ZodNumber;
|
119
130
|
emoji: z.ZodString;
|
131
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
120
132
|
}, "strip", z.ZodTypeAny, {
|
121
133
|
emoji: string;
|
122
134
|
position: number;
|
123
|
-
systemName:
|
135
|
+
systemName: string;
|
124
136
|
displayName: string;
|
137
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
138
|
+
description?: string | undefined;
|
125
139
|
}, {
|
126
140
|
emoji: string;
|
127
141
|
position: number;
|
128
|
-
systemName:
|
142
|
+
systemName: string;
|
129
143
|
displayName: string;
|
144
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
145
|
+
description?: string | undefined;
|
130
146
|
}>;
|
131
147
|
summary: "Create a new presence status.";
|
132
148
|
method: "POST";
|
@@ -138,52 +154,62 @@ export declare const presenceStatusContract: {
|
|
138
154
|
createdAt: z.ZodDate;
|
139
155
|
updatedAt: z.ZodDate;
|
140
156
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
141
|
-
systemName: z.
|
157
|
+
systemName: z.ZodString;
|
142
158
|
displayName: z.ZodString;
|
159
|
+
description: z.ZodNullable<z.ZodString>;
|
143
160
|
position: z.ZodNumber;
|
144
|
-
emoji: z.ZodString
|
161
|
+
emoji: z.ZodNullable<z.ZodString>;
|
162
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
145
163
|
}, "strip", z.ZodTypeAny, {
|
146
|
-
emoji: string;
|
164
|
+
emoji: string | null;
|
147
165
|
id: string;
|
148
166
|
position: number;
|
167
|
+
description: string | null;
|
149
168
|
createdAt: Date;
|
150
169
|
updatedAt: Date;
|
151
170
|
deletedAt: Date | null;
|
152
|
-
systemName:
|
171
|
+
systemName: string;
|
153
172
|
displayName: string;
|
173
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
154
174
|
}, {
|
155
|
-
emoji: string;
|
175
|
+
emoji: string | null;
|
156
176
|
id: string;
|
157
177
|
position: number;
|
178
|
+
description: string | null;
|
158
179
|
createdAt: Date;
|
159
180
|
updatedAt: Date;
|
160
181
|
deletedAt: Date | null;
|
161
|
-
systemName:
|
182
|
+
systemName: string;
|
162
183
|
displayName: string;
|
184
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
163
185
|
}>;
|
164
186
|
}, "strip", z.ZodTypeAny, {
|
165
187
|
requestId: string;
|
166
188
|
presenceStatus: {
|
167
|
-
emoji: string;
|
189
|
+
emoji: string | null;
|
168
190
|
id: string;
|
169
191
|
position: number;
|
192
|
+
description: string | null;
|
170
193
|
createdAt: Date;
|
171
194
|
updatedAt: Date;
|
172
195
|
deletedAt: Date | null;
|
173
|
-
systemName:
|
196
|
+
systemName: string;
|
174
197
|
displayName: string;
|
198
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
175
199
|
};
|
176
200
|
}, {
|
177
201
|
requestId: string;
|
178
202
|
presenceStatus: {
|
179
|
-
emoji: string;
|
203
|
+
emoji: string | null;
|
180
204
|
id: string;
|
181
205
|
position: number;
|
206
|
+
description: string | null;
|
182
207
|
createdAt: Date;
|
183
208
|
updatedAt: Date;
|
184
209
|
deletedAt: Date | null;
|
185
|
-
systemName:
|
210
|
+
systemName: string;
|
186
211
|
displayName: string;
|
212
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
187
213
|
};
|
188
214
|
}>;
|
189
215
|
400: z.ZodObject<{
|
@@ -268,28 +294,34 @@ export declare const presenceStatusContract: {
|
|
268
294
|
createdAt: z.ZodDate;
|
269
295
|
updatedAt: z.ZodDate;
|
270
296
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
271
|
-
systemName: z.
|
297
|
+
systemName: z.ZodString;
|
272
298
|
displayName: z.ZodString;
|
299
|
+
description: z.ZodNullable<z.ZodString>;
|
273
300
|
position: z.ZodNumber;
|
274
|
-
emoji: z.ZodString
|
301
|
+
emoji: z.ZodNullable<z.ZodString>;
|
302
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
275
303
|
}, "strip", z.ZodTypeAny, {
|
276
|
-
emoji: string;
|
304
|
+
emoji: string | null;
|
277
305
|
id: string;
|
278
306
|
position: number;
|
307
|
+
description: string | null;
|
279
308
|
createdAt: Date;
|
280
309
|
updatedAt: Date;
|
281
310
|
deletedAt: Date | null;
|
282
|
-
systemName:
|
311
|
+
systemName: string;
|
283
312
|
displayName: string;
|
313
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
284
314
|
}, {
|
285
|
-
emoji: string;
|
315
|
+
emoji: string | null;
|
286
316
|
id: string;
|
287
317
|
position: number;
|
318
|
+
description: string | null;
|
288
319
|
createdAt: Date;
|
289
320
|
updatedAt: Date;
|
290
321
|
deletedAt: Date | null;
|
291
|
-
systemName:
|
322
|
+
systemName: string;
|
292
323
|
displayName: string;
|
324
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
293
325
|
}>;
|
294
326
|
400: z.ZodObject<{
|
295
327
|
message: z.ZodString;
|
@@ -359,20 +391,26 @@ export declare const presenceStatusContract: {
|
|
359
391
|
};
|
360
392
|
updatePresenceStatus: {
|
361
393
|
body: z.ZodObject<{
|
362
|
-
systemName: z.
|
394
|
+
systemName: z.ZodString;
|
363
395
|
displayName: z.ZodString;
|
396
|
+
description: z.ZodOptional<z.ZodString>;
|
364
397
|
position: z.ZodNumber;
|
365
398
|
emoji: z.ZodString;
|
399
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
366
400
|
}, "strip", z.ZodTypeAny, {
|
367
401
|
emoji: string;
|
368
402
|
position: number;
|
369
|
-
systemName:
|
403
|
+
systemName: string;
|
370
404
|
displayName: string;
|
405
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
406
|
+
description?: string | undefined;
|
371
407
|
}, {
|
372
408
|
emoji: string;
|
373
409
|
position: number;
|
374
|
-
systemName:
|
410
|
+
systemName: string;
|
375
411
|
displayName: string;
|
412
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
413
|
+
description?: string | undefined;
|
376
414
|
}>;
|
377
415
|
summary: "Update a presence status.";
|
378
416
|
method: "PATCH";
|
@@ -391,52 +429,62 @@ export declare const presenceStatusContract: {
|
|
391
429
|
createdAt: z.ZodDate;
|
392
430
|
updatedAt: z.ZodDate;
|
393
431
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
394
|
-
systemName: z.
|
432
|
+
systemName: z.ZodString;
|
395
433
|
displayName: z.ZodString;
|
434
|
+
description: z.ZodNullable<z.ZodString>;
|
396
435
|
position: z.ZodNumber;
|
397
|
-
emoji: z.ZodString
|
436
|
+
emoji: z.ZodNullable<z.ZodString>;
|
437
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
398
438
|
}, "strip", z.ZodTypeAny, {
|
399
|
-
emoji: string;
|
439
|
+
emoji: string | null;
|
400
440
|
id: string;
|
401
441
|
position: number;
|
442
|
+
description: string | null;
|
402
443
|
createdAt: Date;
|
403
444
|
updatedAt: Date;
|
404
445
|
deletedAt: Date | null;
|
405
|
-
systemName:
|
446
|
+
systemName: string;
|
406
447
|
displayName: string;
|
448
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
407
449
|
}, {
|
408
|
-
emoji: string;
|
450
|
+
emoji: string | null;
|
409
451
|
id: string;
|
410
452
|
position: number;
|
453
|
+
description: string | null;
|
411
454
|
createdAt: Date;
|
412
455
|
updatedAt: Date;
|
413
456
|
deletedAt: Date | null;
|
414
|
-
systemName:
|
457
|
+
systemName: string;
|
415
458
|
displayName: string;
|
459
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
416
460
|
}>;
|
417
461
|
}, "strip", z.ZodTypeAny, {
|
418
462
|
requestId: string;
|
419
463
|
presenceStatus: {
|
420
|
-
emoji: string;
|
464
|
+
emoji: string | null;
|
421
465
|
id: string;
|
422
466
|
position: number;
|
467
|
+
description: string | null;
|
423
468
|
createdAt: Date;
|
424
469
|
updatedAt: Date;
|
425
470
|
deletedAt: Date | null;
|
426
|
-
systemName:
|
471
|
+
systemName: string;
|
427
472
|
displayName: string;
|
473
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
428
474
|
};
|
429
475
|
}, {
|
430
476
|
requestId: string;
|
431
477
|
presenceStatus: {
|
432
|
-
emoji: string;
|
478
|
+
emoji: string | null;
|
433
479
|
id: string;
|
434
480
|
position: number;
|
481
|
+
description: string | null;
|
435
482
|
createdAt: Date;
|
436
483
|
updatedAt: Date;
|
437
484
|
deletedAt: Date | null;
|
438
|
-
systemName:
|
485
|
+
systemName: string;
|
439
486
|
displayName: string;
|
487
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
440
488
|
};
|
441
489
|
}>;
|
442
490
|
400: z.ZodObject<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,0BAA0B,CAClC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC5E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEzE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FlC,CAAC"}
|
@@ -1,34 +1,37 @@
|
|
1
1
|
import z from 'zod';
|
2
|
-
|
3
|
-
* Zod Enum Schema based on EPresenceStatusDesType
|
4
|
-
*/
|
5
|
-
export declare const PresenceStatusEnum: z.ZodEnum<["receive_call_noti", "do_not_receive_call_noti", "default"]>;
|
2
|
+
export declare const TPresenceStatusOption: z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>;
|
6
3
|
export declare const PresenceStatusSchema: z.ZodObject<{
|
7
4
|
id: z.ZodString;
|
8
5
|
createdAt: z.ZodDate;
|
9
6
|
updatedAt: z.ZodDate;
|
10
7
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
11
|
-
systemName: z.
|
8
|
+
systemName: z.ZodString;
|
12
9
|
displayName: z.ZodString;
|
10
|
+
description: z.ZodNullable<z.ZodString>;
|
13
11
|
position: z.ZodNumber;
|
14
|
-
emoji: z.ZodString
|
12
|
+
emoji: z.ZodNullable<z.ZodString>;
|
13
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
15
14
|
}, "strip", z.ZodTypeAny, {
|
16
|
-
emoji: string;
|
15
|
+
emoji: string | null;
|
17
16
|
id: string;
|
18
17
|
position: number;
|
18
|
+
description: string | null;
|
19
19
|
createdAt: Date;
|
20
20
|
updatedAt: Date;
|
21
21
|
deletedAt: Date | null;
|
22
|
-
systemName:
|
22
|
+
systemName: string;
|
23
23
|
displayName: string;
|
24
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
24
25
|
}, {
|
25
|
-
emoji: string;
|
26
|
+
emoji: string | null;
|
26
27
|
id: string;
|
27
28
|
position: number;
|
29
|
+
description: string | null;
|
28
30
|
createdAt: Date;
|
29
31
|
updatedAt: Date;
|
30
32
|
deletedAt: Date | null;
|
31
|
-
systemName:
|
33
|
+
systemName: string;
|
32
34
|
displayName: string;
|
35
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
33
36
|
}>;
|
34
37
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/presence-status/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,qBAAqB,oKAKhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC"}
|
@@ -1,34 +1,46 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const CreatePresenceStatusSchema: z.ZodObject<{
|
3
|
-
systemName: z.
|
3
|
+
systemName: z.ZodString;
|
4
4
|
displayName: z.ZodString;
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
5
6
|
position: z.ZodNumber;
|
6
7
|
emoji: z.ZodString;
|
8
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
7
9
|
}, "strip", z.ZodTypeAny, {
|
8
10
|
emoji: string;
|
9
11
|
position: number;
|
10
|
-
systemName:
|
12
|
+
systemName: string;
|
11
13
|
displayName: string;
|
14
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
15
|
+
description?: string | undefined;
|
12
16
|
}, {
|
13
17
|
emoji: string;
|
14
18
|
position: number;
|
15
|
-
systemName:
|
19
|
+
systemName: string;
|
16
20
|
displayName: string;
|
21
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
22
|
+
description?: string | undefined;
|
17
23
|
}>;
|
18
24
|
export declare const UpdatePresenceStatusSchema: z.ZodObject<{
|
19
|
-
systemName: z.
|
25
|
+
systemName: z.ZodString;
|
20
26
|
displayName: z.ZodString;
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
21
28
|
position: z.ZodNumber;
|
22
29
|
emoji: z.ZodString;
|
30
|
+
presenceStatusOption: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"receive_call">, z.ZodLiteral<"do_not_receive_call">, z.ZodLiteral<"receive_chat_message">, z.ZodLiteral<"do_not_receive_chat_message">]>, "many">;
|
23
31
|
}, "strip", z.ZodTypeAny, {
|
24
32
|
emoji: string;
|
25
33
|
position: number;
|
26
|
-
systemName:
|
34
|
+
systemName: string;
|
27
35
|
displayName: string;
|
36
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
37
|
+
description?: string | undefined;
|
28
38
|
}, {
|
29
39
|
emoji: string;
|
30
40
|
position: number;
|
31
|
-
systemName:
|
41
|
+
systemName: string;
|
32
42
|
displayName: string;
|
43
|
+
presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
|
44
|
+
description?: string | undefined;
|
33
45
|
}>;
|
34
46
|
//# sourceMappingURL=validation.d.ts.map
|
@@ -1 +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
|
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;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAC"}
|
@@ -3795,7 +3795,7 @@ export declare const smsContract: {
|
|
3795
3795
|
id: z.ZodOptional<z.ZodString>;
|
3796
3796
|
message: z.ZodOptional<z.ZodString>;
|
3797
3797
|
direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
|
3798
|
-
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported"]>;
|
3798
|
+
type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "group", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "csat", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "hold", "unhold", "auto_unhold", "edited", "deleted", "unsupported", "item"]>;
|
3799
3799
|
readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
3800
3800
|
metadata: z.ZodOptional<z.ZodAny>;
|
3801
3801
|
platformId: z.ZodOptional<z.ZodString>;
|
@@ -3851,7 +3851,7 @@ export declare const smsContract: {
|
|
3851
3851
|
editedAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
|
3852
3852
|
label: z.ZodOptional<z.ZodString>;
|
3853
3853
|
}, "strip", z.ZodTypeAny, {
|
3854
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
3854
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "item" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
3855
3855
|
direction: "incoming" | "outgoing" | "system";
|
3856
3856
|
id?: string | undefined;
|
3857
3857
|
message?: string | undefined;
|
@@ -3886,7 +3886,7 @@ export declare const smsContract: {
|
|
3886
3886
|
editedAt?: string | Date | null | undefined;
|
3887
3887
|
label?: string | undefined;
|
3888
3888
|
}, {
|
3889
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
3889
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "item" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
3890
3890
|
direction: "incoming" | "outgoing" | "system";
|
3891
3891
|
id?: string | undefined;
|
3892
3892
|
message?: string | undefined;
|
@@ -3923,7 +3923,7 @@ export declare const smsContract: {
|
|
3923
3923
|
}>;
|
3924
3924
|
}, "strip", z.ZodTypeAny, {
|
3925
3925
|
message: {
|
3926
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
3926
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "item" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
3927
3927
|
direction: "incoming" | "outgoing" | "system";
|
3928
3928
|
id?: string | undefined;
|
3929
3929
|
message?: string | undefined;
|
@@ -4054,7 +4054,7 @@ export declare const smsContract: {
|
|
4054
4054
|
isBot: boolean | null;
|
4055
4055
|
}, {
|
4056
4056
|
message: {
|
4057
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
4057
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "item" | "audio" | "video" | "image" | "text" | "group" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "csat" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "hold" | "unhold" | "auto_unhold" | "edited" | "deleted" | "unsupported";
|
4058
4058
|
direction: "incoming" | "outgoing" | "system";
|
4059
4059
|
id?: string | undefined;
|
4060
4060
|
message?: string | undefined;
|