@kl1/contracts 1.1.55-uat → 1.1.57-uat
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 +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +3618 -578
- package/dist/src/chat/index.d.ts.map +1 -1
- 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 +304 -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 +119 -0
- package/dist/src/subscription/index.d.ts.map +1 -1
- package/dist/src/subscription/schema.d.ts +256 -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
@@ -407,7 +407,7 @@ export declare const messengerContract: {
|
|
407
407
|
fileSize: number;
|
408
408
|
originalUrl?: string | undefined;
|
409
409
|
}>>;
|
410
|
-
sender: z.ZodObject<{
|
410
|
+
sender: z.ZodOptional<z.ZodObject<{
|
411
411
|
id: z.ZodString;
|
412
412
|
name: z.ZodString;
|
413
413
|
email: z.ZodString;
|
@@ -425,19 +425,12 @@ export declare const messengerContract: {
|
|
425
425
|
name: string;
|
426
426
|
email: string;
|
427
427
|
phone: string | null;
|
428
|
-
}
|
428
|
+
}>>;
|
429
429
|
parentMessageId: z.ZodOptional<z.ZodString>;
|
430
430
|
feedPostId: z.ZodOptional<z.ZodString>;
|
431
431
|
}, "strip", z.ZodTypeAny, {
|
432
432
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
433
433
|
direction: "incoming" | "outgoing" | "system";
|
434
|
-
sender: {
|
435
|
-
id: string;
|
436
|
-
address: string | null;
|
437
|
-
name: string;
|
438
|
-
email: string;
|
439
|
-
phone: string | null;
|
440
|
-
};
|
441
434
|
id?: string | undefined;
|
442
435
|
message?: string | undefined;
|
443
436
|
readAt?: string | Date | null | undefined;
|
@@ -457,18 +450,18 @@ export declare const messengerContract: {
|
|
457
450
|
fileSize: number;
|
458
451
|
originalUrl?: string | undefined;
|
459
452
|
} | undefined;
|
460
|
-
|
461
|
-
feedPostId?: string | undefined;
|
462
|
-
}, {
|
463
|
-
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
464
|
-
direction: "incoming" | "outgoing" | "system";
|
465
|
-
sender: {
|
453
|
+
sender?: {
|
466
454
|
id: string;
|
467
455
|
address: string | null;
|
468
456
|
name: string;
|
469
457
|
email: string;
|
470
458
|
phone: string | null;
|
471
|
-
};
|
459
|
+
} | undefined;
|
460
|
+
parentMessageId?: string | undefined;
|
461
|
+
feedPostId?: string | undefined;
|
462
|
+
}, {
|
463
|
+
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
464
|
+
direction: "incoming" | "outgoing" | "system";
|
472
465
|
id?: string | undefined;
|
473
466
|
message?: string | undefined;
|
474
467
|
readAt?: string | Date | null | undefined;
|
@@ -488,6 +481,13 @@ export declare const messengerContract: {
|
|
488
481
|
fileSize: number;
|
489
482
|
originalUrl?: string | undefined;
|
490
483
|
} | undefined;
|
484
|
+
sender?: {
|
485
|
+
id: string;
|
486
|
+
address: string | null;
|
487
|
+
name: string;
|
488
|
+
email: string;
|
489
|
+
phone: string | null;
|
490
|
+
} | undefined;
|
491
491
|
parentMessageId?: string | undefined;
|
492
492
|
feedPostId?: string | undefined;
|
493
493
|
}>;
|
@@ -495,13 +495,6 @@ export declare const messengerContract: {
|
|
495
495
|
message: {
|
496
496
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
497
497
|
direction: "incoming" | "outgoing" | "system";
|
498
|
-
sender: {
|
499
|
-
id: string;
|
500
|
-
address: string | null;
|
501
|
-
name: string;
|
502
|
-
email: string;
|
503
|
-
phone: string | null;
|
504
|
-
};
|
505
498
|
id?: string | undefined;
|
506
499
|
message?: string | undefined;
|
507
500
|
readAt?: string | Date | null | undefined;
|
@@ -521,6 +514,13 @@ export declare const messengerContract: {
|
|
521
514
|
fileSize: number;
|
522
515
|
originalUrl?: string | undefined;
|
523
516
|
} | undefined;
|
517
|
+
sender?: {
|
518
|
+
id: string;
|
519
|
+
address: string | null;
|
520
|
+
name: string;
|
521
|
+
email: string;
|
522
|
+
phone: string | null;
|
523
|
+
} | undefined;
|
524
524
|
parentMessageId?: string | undefined;
|
525
525
|
feedPostId?: string | undefined;
|
526
526
|
};
|
@@ -598,13 +598,6 @@ export declare const messengerContract: {
|
|
598
598
|
message: {
|
599
599
|
type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
|
600
600
|
direction: "incoming" | "outgoing" | "system";
|
601
|
-
sender: {
|
602
|
-
id: string;
|
603
|
-
address: string | null;
|
604
|
-
name: string;
|
605
|
-
email: string;
|
606
|
-
phone: string | null;
|
607
|
-
};
|
608
601
|
id?: string | undefined;
|
609
602
|
message?: string | undefined;
|
610
603
|
readAt?: string | Date | null | undefined;
|
@@ -624,6 +617,13 @@ export declare const messengerContract: {
|
|
624
617
|
fileSize: number;
|
625
618
|
originalUrl?: string | undefined;
|
626
619
|
} | undefined;
|
620
|
+
sender?: {
|
621
|
+
id: string;
|
622
|
+
address: string | null;
|
623
|
+
name: string;
|
624
|
+
email: string;
|
625
|
+
phone: string | null;
|
626
|
+
} | undefined;
|
627
627
|
parentMessageId?: string | undefined;
|
628
628
|
feedPostId?: string | undefined;
|
629
629
|
};
|
@@ -0,0 +1,556 @@
|
|
1
|
+
import z from 'zod';
|
2
|
+
import { PresenceStatusDesEnum, PresenceStatusSchema } from './schema';
|
3
|
+
import { CreatePresenceStatusSchema, UpdatePresenceStatusSchema } from './validation';
|
4
|
+
export type CreatePresenceStatusRequest = z.infer<typeof CreatePresenceStatusSchema>;
|
5
|
+
export type UpdatePresenceStatusRequest = z.infer<typeof UpdatePresenceStatusSchema>;
|
6
|
+
export type GetPresenceStatusRequest = z.infer<typeof PresenceStatusSchema>;
|
7
|
+
export type PresenceStatusDesEnum = z.infer<typeof PresenceStatusDesEnum>;
|
8
|
+
export declare const presenceStatusContract: {
|
9
|
+
getAllStatus: {
|
10
|
+
summary: "Get all presence status list.";
|
11
|
+
method: "GET";
|
12
|
+
responses: {
|
13
|
+
200: z.ZodObject<{
|
14
|
+
total: z.ZodNumber;
|
15
|
+
data: z.ZodArray<z.ZodObject<{
|
16
|
+
id: z.ZodString;
|
17
|
+
createdAt: z.ZodDate;
|
18
|
+
updatedAt: z.ZodDate;
|
19
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
20
|
+
status: z.ZodString;
|
21
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
22
|
+
position: z.ZodNumber;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
id: string;
|
25
|
+
position: number;
|
26
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
27
|
+
status: string;
|
28
|
+
createdAt: Date;
|
29
|
+
updatedAt: Date;
|
30
|
+
deletedAt: Date | null;
|
31
|
+
}, {
|
32
|
+
id: string;
|
33
|
+
position: number;
|
34
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
35
|
+
status: string;
|
36
|
+
createdAt: Date;
|
37
|
+
updatedAt: Date;
|
38
|
+
deletedAt: Date | null;
|
39
|
+
}>, "many">;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
data: {
|
42
|
+
id: string;
|
43
|
+
position: number;
|
44
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
45
|
+
status: string;
|
46
|
+
createdAt: Date;
|
47
|
+
updatedAt: Date;
|
48
|
+
deletedAt: Date | null;
|
49
|
+
}[];
|
50
|
+
total: number;
|
51
|
+
}, {
|
52
|
+
data: {
|
53
|
+
id: string;
|
54
|
+
position: number;
|
55
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
56
|
+
status: string;
|
57
|
+
createdAt: Date;
|
58
|
+
updatedAt: Date;
|
59
|
+
deletedAt: Date | null;
|
60
|
+
}[];
|
61
|
+
total: number;
|
62
|
+
}>;
|
63
|
+
400: z.ZodObject<{
|
64
|
+
message: z.ZodString;
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
66
|
+
message: string;
|
67
|
+
}, {
|
68
|
+
message: string;
|
69
|
+
}>;
|
70
|
+
401: z.ZodObject<{
|
71
|
+
message: z.ZodString;
|
72
|
+
error: z.ZodAny;
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
74
|
+
message: string;
|
75
|
+
error?: any;
|
76
|
+
}, {
|
77
|
+
message: string;
|
78
|
+
error?: any;
|
79
|
+
}>;
|
80
|
+
500: z.ZodObject<{
|
81
|
+
message: z.ZodString;
|
82
|
+
error: z.ZodAny;
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
84
|
+
message: string;
|
85
|
+
error?: any;
|
86
|
+
}, {
|
87
|
+
message: string;
|
88
|
+
error?: any;
|
89
|
+
}>;
|
90
|
+
};
|
91
|
+
path: "presence_status";
|
92
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
93
|
+
'x-tenant': z.ZodString;
|
94
|
+
authorization: z.ZodString;
|
95
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
96
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
98
|
+
'x-tenant': string;
|
99
|
+
authorization: string;
|
100
|
+
'x-client-timezone': string;
|
101
|
+
'x-code'?: string | undefined;
|
102
|
+
}, {
|
103
|
+
'x-tenant': string;
|
104
|
+
authorization: string;
|
105
|
+
'x-code'?: string | undefined;
|
106
|
+
'x-client-timezone'?: string | undefined;
|
107
|
+
}>>>;
|
108
|
+
};
|
109
|
+
createPresenceStatus: {
|
110
|
+
body: z.ZodObject<{
|
111
|
+
status: z.ZodString;
|
112
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
113
|
+
position: z.ZodNumber;
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
115
|
+
position: number;
|
116
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
117
|
+
status: string;
|
118
|
+
}, {
|
119
|
+
position: number;
|
120
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
121
|
+
status: string;
|
122
|
+
}>;
|
123
|
+
summary: "Create a new presence status.";
|
124
|
+
method: "POST";
|
125
|
+
responses: {
|
126
|
+
201: z.ZodObject<{
|
127
|
+
requestId: z.ZodString;
|
128
|
+
presenceStatus: z.ZodObject<{
|
129
|
+
id: z.ZodString;
|
130
|
+
createdAt: z.ZodDate;
|
131
|
+
updatedAt: z.ZodDate;
|
132
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
133
|
+
status: z.ZodString;
|
134
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
135
|
+
position: z.ZodNumber;
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
137
|
+
id: string;
|
138
|
+
position: number;
|
139
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
140
|
+
status: string;
|
141
|
+
createdAt: Date;
|
142
|
+
updatedAt: Date;
|
143
|
+
deletedAt: Date | null;
|
144
|
+
}, {
|
145
|
+
id: string;
|
146
|
+
position: number;
|
147
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
148
|
+
status: string;
|
149
|
+
createdAt: Date;
|
150
|
+
updatedAt: Date;
|
151
|
+
deletedAt: Date | null;
|
152
|
+
}>;
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
154
|
+
requestId: string;
|
155
|
+
presenceStatus: {
|
156
|
+
id: string;
|
157
|
+
position: number;
|
158
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
159
|
+
status: string;
|
160
|
+
createdAt: Date;
|
161
|
+
updatedAt: Date;
|
162
|
+
deletedAt: Date | null;
|
163
|
+
};
|
164
|
+
}, {
|
165
|
+
requestId: string;
|
166
|
+
presenceStatus: {
|
167
|
+
id: string;
|
168
|
+
position: number;
|
169
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
170
|
+
status: string;
|
171
|
+
createdAt: Date;
|
172
|
+
updatedAt: Date;
|
173
|
+
deletedAt: Date | null;
|
174
|
+
};
|
175
|
+
}>;
|
176
|
+
400: z.ZodObject<{
|
177
|
+
message: z.ZodString;
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
179
|
+
message: string;
|
180
|
+
}, {
|
181
|
+
message: string;
|
182
|
+
}>;
|
183
|
+
401: z.ZodObject<{
|
184
|
+
message: z.ZodString;
|
185
|
+
error: z.ZodAny;
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
187
|
+
message: string;
|
188
|
+
error?: any;
|
189
|
+
}, {
|
190
|
+
message: string;
|
191
|
+
error?: any;
|
192
|
+
}>;
|
193
|
+
404: z.ZodObject<{
|
194
|
+
message: z.ZodString;
|
195
|
+
error: z.ZodAny;
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
197
|
+
message: string;
|
198
|
+
error?: any;
|
199
|
+
}, {
|
200
|
+
message: string;
|
201
|
+
error?: any;
|
202
|
+
}>;
|
203
|
+
422: z.ZodObject<{
|
204
|
+
message: z.ZodString;
|
205
|
+
error: z.ZodAny;
|
206
|
+
}, "strip", z.ZodTypeAny, {
|
207
|
+
message: string;
|
208
|
+
error?: any;
|
209
|
+
}, {
|
210
|
+
message: string;
|
211
|
+
error?: any;
|
212
|
+
}>;
|
213
|
+
500: z.ZodObject<{
|
214
|
+
message: z.ZodString;
|
215
|
+
error: z.ZodAny;
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
217
|
+
message: string;
|
218
|
+
error?: any;
|
219
|
+
}, {
|
220
|
+
message: string;
|
221
|
+
error?: any;
|
222
|
+
}>;
|
223
|
+
};
|
224
|
+
path: "presence_status";
|
225
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
226
|
+
'x-tenant': z.ZodString;
|
227
|
+
authorization: z.ZodString;
|
228
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
229
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
231
|
+
'x-tenant': string;
|
232
|
+
authorization: string;
|
233
|
+
'x-client-timezone': string;
|
234
|
+
'x-code'?: string | undefined;
|
235
|
+
}, {
|
236
|
+
'x-tenant': string;
|
237
|
+
authorization: string;
|
238
|
+
'x-code'?: string | undefined;
|
239
|
+
'x-client-timezone'?: string | undefined;
|
240
|
+
}>>>;
|
241
|
+
};
|
242
|
+
getPresenceStatusById: {
|
243
|
+
summary: "Get presence status by id";
|
244
|
+
method: "GET";
|
245
|
+
pathParams: z.ZodObject<{
|
246
|
+
id: z.ZodString;
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
248
|
+
id: string;
|
249
|
+
}, {
|
250
|
+
id: string;
|
251
|
+
}>;
|
252
|
+
responses: {
|
253
|
+
200: z.ZodObject<{
|
254
|
+
id: z.ZodString;
|
255
|
+
createdAt: z.ZodDate;
|
256
|
+
updatedAt: z.ZodDate;
|
257
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
258
|
+
status: z.ZodString;
|
259
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
260
|
+
position: z.ZodNumber;
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
262
|
+
id: string;
|
263
|
+
position: number;
|
264
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
265
|
+
status: string;
|
266
|
+
createdAt: Date;
|
267
|
+
updatedAt: Date;
|
268
|
+
deletedAt: Date | null;
|
269
|
+
}, {
|
270
|
+
id: string;
|
271
|
+
position: number;
|
272
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
273
|
+
status: string;
|
274
|
+
createdAt: Date;
|
275
|
+
updatedAt: Date;
|
276
|
+
deletedAt: Date | null;
|
277
|
+
}>;
|
278
|
+
400: z.ZodObject<{
|
279
|
+
message: z.ZodString;
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
281
|
+
message: string;
|
282
|
+
}, {
|
283
|
+
message: string;
|
284
|
+
}>;
|
285
|
+
401: z.ZodObject<{
|
286
|
+
message: z.ZodString;
|
287
|
+
error: z.ZodAny;
|
288
|
+
}, "strip", z.ZodTypeAny, {
|
289
|
+
message: string;
|
290
|
+
error?: any;
|
291
|
+
}, {
|
292
|
+
message: string;
|
293
|
+
error?: any;
|
294
|
+
}>;
|
295
|
+
404: z.ZodObject<{
|
296
|
+
message: z.ZodString;
|
297
|
+
error: z.ZodAny;
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
299
|
+
message: string;
|
300
|
+
error?: any;
|
301
|
+
}, {
|
302
|
+
message: string;
|
303
|
+
error?: any;
|
304
|
+
}>;
|
305
|
+
422: z.ZodObject<{
|
306
|
+
message: z.ZodString;
|
307
|
+
error: z.ZodAny;
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
309
|
+
message: string;
|
310
|
+
error?: any;
|
311
|
+
}, {
|
312
|
+
message: string;
|
313
|
+
error?: any;
|
314
|
+
}>;
|
315
|
+
500: z.ZodObject<{
|
316
|
+
message: z.ZodString;
|
317
|
+
error: z.ZodAny;
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
319
|
+
message: string;
|
320
|
+
error?: any;
|
321
|
+
}, {
|
322
|
+
message: string;
|
323
|
+
error?: any;
|
324
|
+
}>;
|
325
|
+
};
|
326
|
+
path: "presence_status/:id";
|
327
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
328
|
+
'x-tenant': z.ZodString;
|
329
|
+
authorization: z.ZodString;
|
330
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
331
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
332
|
+
}, "strip", z.ZodTypeAny, {
|
333
|
+
'x-tenant': string;
|
334
|
+
authorization: string;
|
335
|
+
'x-client-timezone': string;
|
336
|
+
'x-code'?: string | undefined;
|
337
|
+
}, {
|
338
|
+
'x-tenant': string;
|
339
|
+
authorization: string;
|
340
|
+
'x-code'?: string | undefined;
|
341
|
+
'x-client-timezone'?: string | undefined;
|
342
|
+
}>>>;
|
343
|
+
};
|
344
|
+
updatePresenceStatus: {
|
345
|
+
body: z.ZodObject<{
|
346
|
+
status: z.ZodString;
|
347
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
348
|
+
position: z.ZodNumber;
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
350
|
+
position: number;
|
351
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
352
|
+
status: string;
|
353
|
+
}, {
|
354
|
+
position: number;
|
355
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
356
|
+
status: string;
|
357
|
+
}>;
|
358
|
+
summary: "Update a presence status.";
|
359
|
+
method: "PATCH";
|
360
|
+
pathParams: z.ZodObject<{
|
361
|
+
id: z.ZodString;
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
363
|
+
id: string;
|
364
|
+
}, {
|
365
|
+
id: string;
|
366
|
+
}>;
|
367
|
+
responses: {
|
368
|
+
201: z.ZodObject<{
|
369
|
+
requestId: z.ZodString;
|
370
|
+
presenceStatus: z.ZodObject<{
|
371
|
+
id: z.ZodString;
|
372
|
+
createdAt: z.ZodDate;
|
373
|
+
updatedAt: z.ZodDate;
|
374
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
375
|
+
status: z.ZodString;
|
376
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
377
|
+
position: z.ZodNumber;
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
379
|
+
id: string;
|
380
|
+
position: number;
|
381
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
382
|
+
status: string;
|
383
|
+
createdAt: Date;
|
384
|
+
updatedAt: Date;
|
385
|
+
deletedAt: Date | null;
|
386
|
+
}, {
|
387
|
+
id: string;
|
388
|
+
position: number;
|
389
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
390
|
+
status: string;
|
391
|
+
createdAt: Date;
|
392
|
+
updatedAt: Date;
|
393
|
+
deletedAt: Date | null;
|
394
|
+
}>;
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
396
|
+
requestId: string;
|
397
|
+
presenceStatus: {
|
398
|
+
id: string;
|
399
|
+
position: number;
|
400
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
401
|
+
status: string;
|
402
|
+
createdAt: Date;
|
403
|
+
updatedAt: Date;
|
404
|
+
deletedAt: Date | null;
|
405
|
+
};
|
406
|
+
}, {
|
407
|
+
requestId: string;
|
408
|
+
presenceStatus: {
|
409
|
+
id: string;
|
410
|
+
position: number;
|
411
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
412
|
+
status: string;
|
413
|
+
createdAt: Date;
|
414
|
+
updatedAt: Date;
|
415
|
+
deletedAt: Date | null;
|
416
|
+
};
|
417
|
+
}>;
|
418
|
+
400: z.ZodObject<{
|
419
|
+
message: z.ZodString;
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
421
|
+
message: string;
|
422
|
+
}, {
|
423
|
+
message: string;
|
424
|
+
}>;
|
425
|
+
401: z.ZodObject<{
|
426
|
+
message: z.ZodString;
|
427
|
+
error: z.ZodAny;
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
429
|
+
message: string;
|
430
|
+
error?: any;
|
431
|
+
}, {
|
432
|
+
message: string;
|
433
|
+
error?: any;
|
434
|
+
}>;
|
435
|
+
404: z.ZodObject<{
|
436
|
+
message: z.ZodString;
|
437
|
+
error: z.ZodAny;
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
439
|
+
message: string;
|
440
|
+
error?: any;
|
441
|
+
}, {
|
442
|
+
message: string;
|
443
|
+
error?: any;
|
444
|
+
}>;
|
445
|
+
422: z.ZodObject<{
|
446
|
+
message: z.ZodString;
|
447
|
+
error: z.ZodAny;
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
449
|
+
message: string;
|
450
|
+
error?: any;
|
451
|
+
}, {
|
452
|
+
message: string;
|
453
|
+
error?: any;
|
454
|
+
}>;
|
455
|
+
500: z.ZodObject<{
|
456
|
+
message: z.ZodString;
|
457
|
+
error: z.ZodAny;
|
458
|
+
}, "strip", z.ZodTypeAny, {
|
459
|
+
message: string;
|
460
|
+
error?: any;
|
461
|
+
}, {
|
462
|
+
message: string;
|
463
|
+
error?: any;
|
464
|
+
}>;
|
465
|
+
};
|
466
|
+
path: "presence_status/:id";
|
467
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
468
|
+
'x-tenant': z.ZodString;
|
469
|
+
authorization: z.ZodString;
|
470
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
471
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
472
|
+
}, "strip", z.ZodTypeAny, {
|
473
|
+
'x-tenant': string;
|
474
|
+
authorization: string;
|
475
|
+
'x-client-timezone': string;
|
476
|
+
'x-code'?: string | undefined;
|
477
|
+
}, {
|
478
|
+
'x-tenant': string;
|
479
|
+
authorization: string;
|
480
|
+
'x-code'?: string | undefined;
|
481
|
+
'x-client-timezone'?: string | undefined;
|
482
|
+
}>>>;
|
483
|
+
};
|
484
|
+
deletePresenceStatus: {
|
485
|
+
body: null;
|
486
|
+
summary: "Delete a presence status.";
|
487
|
+
method: "DELETE";
|
488
|
+
pathParams: z.ZodObject<{
|
489
|
+
id: z.ZodString;
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
491
|
+
id: string;
|
492
|
+
}, {
|
493
|
+
id: string;
|
494
|
+
}>;
|
495
|
+
responses: {
|
496
|
+
200: z.ZodObject<{
|
497
|
+
requestId: z.ZodString;
|
498
|
+
message: z.ZodString;
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
500
|
+
message: string;
|
501
|
+
requestId: string;
|
502
|
+
}, {
|
503
|
+
message: string;
|
504
|
+
requestId: string;
|
505
|
+
}>;
|
506
|
+
404: z.ZodObject<{
|
507
|
+
message: z.ZodString;
|
508
|
+
error: z.ZodAny;
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
510
|
+
message: string;
|
511
|
+
error?: any;
|
512
|
+
}, {
|
513
|
+
message: string;
|
514
|
+
error?: any;
|
515
|
+
}>;
|
516
|
+
422: z.ZodObject<{
|
517
|
+
message: z.ZodString;
|
518
|
+
error: z.ZodAny;
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
520
|
+
message: string;
|
521
|
+
error?: any;
|
522
|
+
}, {
|
523
|
+
message: string;
|
524
|
+
error?: any;
|
525
|
+
}>;
|
526
|
+
500: z.ZodObject<{
|
527
|
+
message: z.ZodString;
|
528
|
+
error: z.ZodAny;
|
529
|
+
}, "strip", z.ZodTypeAny, {
|
530
|
+
message: string;
|
531
|
+
error?: any;
|
532
|
+
}, {
|
533
|
+
message: string;
|
534
|
+
error?: any;
|
535
|
+
}>;
|
536
|
+
};
|
537
|
+
path: "presence_status/:id";
|
538
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
539
|
+
'x-tenant': z.ZodString;
|
540
|
+
authorization: z.ZodString;
|
541
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
542
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
543
|
+
}, "strip", z.ZodTypeAny, {
|
544
|
+
'x-tenant': string;
|
545
|
+
authorization: string;
|
546
|
+
'x-client-timezone': string;
|
547
|
+
'x-code'?: string | undefined;
|
548
|
+
}, {
|
549
|
+
'x-tenant': string;
|
550
|
+
authorization: string;
|
551
|
+
'x-code'?: string | undefined;
|
552
|
+
'x-client-timezone'?: string | undefined;
|
553
|
+
}>>>;
|
554
|
+
};
|
555
|
+
};
|
556
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +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,qBAAqB,EAAE,oBAAoB,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;AAE5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FlC,CAAC"}
|