@kl1/contracts 1.1.82-uat → 1.1.83-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/contract.d.ts +609 -107
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/api-contracts/src/presence-status/index.d.ts +559 -0
- package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -0
- package/dist/api-contracts/src/presence-status/schema.d.ts +31 -0
- package/dist/api-contracts/src/presence-status/schema.d.ts.map +1 -0
- package/dist/api-contracts/src/presence-status/validation.d.ts +28 -0
- package/dist/api-contracts/src/presence-status/validation.d.ts.map +1 -0
- package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +40 -99
- 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 +12 -31
- package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
- package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
- package/dist/api-contracts/src/user-presence-status-log/index.d.ts +16 -8
- 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 +24 -16
- package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
- package/dist/index.js +1513 -1400
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1512 -1400
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,559 @@
|
|
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
|
+
path: "presence_status";
|
13
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
14
|
+
'x-tenant': z.ZodString;
|
15
|
+
authorization: z.ZodString;
|
16
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
17
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
19
|
+
'x-tenant': string;
|
20
|
+
authorization: string;
|
21
|
+
'x-client-timezone': string;
|
22
|
+
'x-code'?: string | undefined;
|
23
|
+
}, {
|
24
|
+
'x-tenant': string;
|
25
|
+
authorization: string;
|
26
|
+
'x-code'?: string | undefined;
|
27
|
+
'x-client-timezone'?: string | undefined;
|
28
|
+
}>>>;
|
29
|
+
responses: {
|
30
|
+
200: z.ZodObject<{
|
31
|
+
total: z.ZodNumber;
|
32
|
+
data: z.ZodArray<z.ZodObject<{
|
33
|
+
id: z.ZodString;
|
34
|
+
createdAt: z.ZodDate;
|
35
|
+
updatedAt: z.ZodDate;
|
36
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
37
|
+
status: z.ZodString;
|
38
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
39
|
+
position: z.ZodNumber;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
id: string;
|
42
|
+
position: number;
|
43
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
44
|
+
status: string;
|
45
|
+
createdAt: Date;
|
46
|
+
updatedAt: Date;
|
47
|
+
deletedAt: Date | null;
|
48
|
+
}, {
|
49
|
+
id: string;
|
50
|
+
position: number;
|
51
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
52
|
+
status: string;
|
53
|
+
createdAt: Date;
|
54
|
+
updatedAt: Date;
|
55
|
+
deletedAt: Date | null;
|
56
|
+
}>, "many">;
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
58
|
+
data: {
|
59
|
+
id: string;
|
60
|
+
position: number;
|
61
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
62
|
+
status: string;
|
63
|
+
createdAt: Date;
|
64
|
+
updatedAt: Date;
|
65
|
+
deletedAt: Date | null;
|
66
|
+
}[];
|
67
|
+
total: number;
|
68
|
+
}, {
|
69
|
+
data: {
|
70
|
+
id: string;
|
71
|
+
position: number;
|
72
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
73
|
+
status: string;
|
74
|
+
createdAt: Date;
|
75
|
+
updatedAt: Date;
|
76
|
+
deletedAt: Date | null;
|
77
|
+
}[];
|
78
|
+
total: number;
|
79
|
+
}>;
|
80
|
+
400: z.ZodObject<{
|
81
|
+
message: z.ZodString;
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
83
|
+
message: string;
|
84
|
+
}, {
|
85
|
+
message: string;
|
86
|
+
}>;
|
87
|
+
401: z.ZodObject<{
|
88
|
+
message: z.ZodString;
|
89
|
+
error: z.ZodAny;
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
91
|
+
message: string;
|
92
|
+
error?: any;
|
93
|
+
}, {
|
94
|
+
message: string;
|
95
|
+
error?: any;
|
96
|
+
}>;
|
97
|
+
500: z.ZodObject<{
|
98
|
+
message: z.ZodString;
|
99
|
+
error: z.ZodAny;
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
101
|
+
message: string;
|
102
|
+
error?: any;
|
103
|
+
}, {
|
104
|
+
message: string;
|
105
|
+
error?: any;
|
106
|
+
}>;
|
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
|
+
path: "presence_status";
|
126
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
127
|
+
'x-tenant': z.ZodString;
|
128
|
+
authorization: z.ZodString;
|
129
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
130
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
132
|
+
'x-tenant': string;
|
133
|
+
authorization: string;
|
134
|
+
'x-client-timezone': string;
|
135
|
+
'x-code'?: string | undefined;
|
136
|
+
}, {
|
137
|
+
'x-tenant': string;
|
138
|
+
authorization: string;
|
139
|
+
'x-code'?: string | undefined;
|
140
|
+
'x-client-timezone'?: string | undefined;
|
141
|
+
}>>>;
|
142
|
+
responses: {
|
143
|
+
201: z.ZodObject<z.objectUtil.extendShape<{
|
144
|
+
requestId: z.ZodString;
|
145
|
+
}, {
|
146
|
+
presenceStatus: z.ZodObject<{
|
147
|
+
id: z.ZodString;
|
148
|
+
createdAt: z.ZodDate;
|
149
|
+
updatedAt: z.ZodDate;
|
150
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
151
|
+
status: z.ZodString;
|
152
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
153
|
+
position: z.ZodNumber;
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
155
|
+
id: string;
|
156
|
+
position: number;
|
157
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
158
|
+
status: string;
|
159
|
+
createdAt: Date;
|
160
|
+
updatedAt: Date;
|
161
|
+
deletedAt: Date | null;
|
162
|
+
}, {
|
163
|
+
id: string;
|
164
|
+
position: number;
|
165
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
166
|
+
status: string;
|
167
|
+
createdAt: Date;
|
168
|
+
updatedAt: Date;
|
169
|
+
deletedAt: Date | null;
|
170
|
+
}>;
|
171
|
+
}>, "strip", z.ZodTypeAny, {
|
172
|
+
requestId: string;
|
173
|
+
presenceStatus: {
|
174
|
+
id: string;
|
175
|
+
position: number;
|
176
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
177
|
+
status: string;
|
178
|
+
createdAt: Date;
|
179
|
+
updatedAt: Date;
|
180
|
+
deletedAt: Date | null;
|
181
|
+
};
|
182
|
+
}, {
|
183
|
+
requestId: string;
|
184
|
+
presenceStatus: {
|
185
|
+
id: string;
|
186
|
+
position: number;
|
187
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
188
|
+
status: string;
|
189
|
+
createdAt: Date;
|
190
|
+
updatedAt: Date;
|
191
|
+
deletedAt: Date | null;
|
192
|
+
};
|
193
|
+
}>;
|
194
|
+
400: z.ZodObject<{
|
195
|
+
message: z.ZodString;
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
197
|
+
message: string;
|
198
|
+
}, {
|
199
|
+
message: string;
|
200
|
+
}>;
|
201
|
+
401: z.ZodObject<{
|
202
|
+
message: z.ZodString;
|
203
|
+
error: z.ZodAny;
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
205
|
+
message: string;
|
206
|
+
error?: any;
|
207
|
+
}, {
|
208
|
+
message: string;
|
209
|
+
error?: any;
|
210
|
+
}>;
|
211
|
+
404: z.ZodObject<{
|
212
|
+
message: z.ZodString;
|
213
|
+
error: z.ZodAny;
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
215
|
+
message: string;
|
216
|
+
error?: any;
|
217
|
+
}, {
|
218
|
+
message: string;
|
219
|
+
error?: any;
|
220
|
+
}>;
|
221
|
+
422: z.ZodObject<{
|
222
|
+
message: z.ZodString;
|
223
|
+
error: z.ZodAny;
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
225
|
+
message: string;
|
226
|
+
error?: any;
|
227
|
+
}, {
|
228
|
+
message: string;
|
229
|
+
error?: any;
|
230
|
+
}>;
|
231
|
+
500: z.ZodObject<{
|
232
|
+
message: z.ZodString;
|
233
|
+
error: z.ZodAny;
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
235
|
+
message: string;
|
236
|
+
error?: any;
|
237
|
+
}, {
|
238
|
+
message: string;
|
239
|
+
error?: any;
|
240
|
+
}>;
|
241
|
+
};
|
242
|
+
};
|
243
|
+
getPresenceStatusById: {
|
244
|
+
summary: "Get presence status by id";
|
245
|
+
method: "GET";
|
246
|
+
pathParams: z.ZodObject<{
|
247
|
+
id: z.ZodString;
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
249
|
+
id: string;
|
250
|
+
}, {
|
251
|
+
id: string;
|
252
|
+
}>;
|
253
|
+
path: "presence_status/:id";
|
254
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
255
|
+
'x-tenant': z.ZodString;
|
256
|
+
authorization: z.ZodString;
|
257
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
258
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
260
|
+
'x-tenant': string;
|
261
|
+
authorization: string;
|
262
|
+
'x-client-timezone': string;
|
263
|
+
'x-code'?: string | undefined;
|
264
|
+
}, {
|
265
|
+
'x-tenant': string;
|
266
|
+
authorization: string;
|
267
|
+
'x-code'?: string | undefined;
|
268
|
+
'x-client-timezone'?: string | undefined;
|
269
|
+
}>>>;
|
270
|
+
responses: {
|
271
|
+
200: z.ZodObject<{
|
272
|
+
id: z.ZodString;
|
273
|
+
createdAt: z.ZodDate;
|
274
|
+
updatedAt: z.ZodDate;
|
275
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
276
|
+
status: z.ZodString;
|
277
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
278
|
+
position: z.ZodNumber;
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
280
|
+
id: string;
|
281
|
+
position: number;
|
282
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
283
|
+
status: string;
|
284
|
+
createdAt: Date;
|
285
|
+
updatedAt: Date;
|
286
|
+
deletedAt: Date | null;
|
287
|
+
}, {
|
288
|
+
id: string;
|
289
|
+
position: number;
|
290
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
291
|
+
status: string;
|
292
|
+
createdAt: Date;
|
293
|
+
updatedAt: Date;
|
294
|
+
deletedAt: Date | null;
|
295
|
+
}>;
|
296
|
+
400: z.ZodObject<{
|
297
|
+
message: z.ZodString;
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
299
|
+
message: string;
|
300
|
+
}, {
|
301
|
+
message: string;
|
302
|
+
}>;
|
303
|
+
401: z.ZodObject<{
|
304
|
+
message: z.ZodString;
|
305
|
+
error: z.ZodAny;
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
307
|
+
message: string;
|
308
|
+
error?: any;
|
309
|
+
}, {
|
310
|
+
message: string;
|
311
|
+
error?: any;
|
312
|
+
}>;
|
313
|
+
404: z.ZodObject<{
|
314
|
+
message: z.ZodString;
|
315
|
+
error: z.ZodAny;
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
317
|
+
message: string;
|
318
|
+
error?: any;
|
319
|
+
}, {
|
320
|
+
message: string;
|
321
|
+
error?: any;
|
322
|
+
}>;
|
323
|
+
422: z.ZodObject<{
|
324
|
+
message: z.ZodString;
|
325
|
+
error: z.ZodAny;
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
327
|
+
message: string;
|
328
|
+
error?: any;
|
329
|
+
}, {
|
330
|
+
message: string;
|
331
|
+
error?: any;
|
332
|
+
}>;
|
333
|
+
500: z.ZodObject<{
|
334
|
+
message: z.ZodString;
|
335
|
+
error: z.ZodAny;
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
337
|
+
message: string;
|
338
|
+
error?: any;
|
339
|
+
}, {
|
340
|
+
message: string;
|
341
|
+
error?: any;
|
342
|
+
}>;
|
343
|
+
};
|
344
|
+
};
|
345
|
+
updatePresenceStatus: {
|
346
|
+
body: z.ZodObject<{
|
347
|
+
status: z.ZodString;
|
348
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
349
|
+
position: z.ZodNumber;
|
350
|
+
}, "strip", z.ZodTypeAny, {
|
351
|
+
position: number;
|
352
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
353
|
+
status: string;
|
354
|
+
}, {
|
355
|
+
position: number;
|
356
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
357
|
+
status: string;
|
358
|
+
}>;
|
359
|
+
summary: "Update a presence status.";
|
360
|
+
method: "PATCH";
|
361
|
+
pathParams: z.ZodObject<{
|
362
|
+
id: z.ZodString;
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
364
|
+
id: string;
|
365
|
+
}, {
|
366
|
+
id: string;
|
367
|
+
}>;
|
368
|
+
path: "presence_status/:id";
|
369
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
370
|
+
'x-tenant': z.ZodString;
|
371
|
+
authorization: z.ZodString;
|
372
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
373
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
374
|
+
}, "strip", z.ZodTypeAny, {
|
375
|
+
'x-tenant': string;
|
376
|
+
authorization: string;
|
377
|
+
'x-client-timezone': string;
|
378
|
+
'x-code'?: string | undefined;
|
379
|
+
}, {
|
380
|
+
'x-tenant': string;
|
381
|
+
authorization: string;
|
382
|
+
'x-code'?: string | undefined;
|
383
|
+
'x-client-timezone'?: string | undefined;
|
384
|
+
}>>>;
|
385
|
+
responses: {
|
386
|
+
201: z.ZodObject<z.objectUtil.extendShape<{
|
387
|
+
requestId: z.ZodString;
|
388
|
+
}, {
|
389
|
+
presenceStatus: z.ZodObject<{
|
390
|
+
id: z.ZodString;
|
391
|
+
createdAt: z.ZodDate;
|
392
|
+
updatedAt: z.ZodDate;
|
393
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
394
|
+
status: z.ZodString;
|
395
|
+
description: z.ZodEnum<["Can do everything.", "Mute all notifications.", "You won't receive call, but can still do other."]>;
|
396
|
+
position: z.ZodNumber;
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
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
|
+
id: string;
|
407
|
+
position: number;
|
408
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
409
|
+
status: string;
|
410
|
+
createdAt: Date;
|
411
|
+
updatedAt: Date;
|
412
|
+
deletedAt: Date | null;
|
413
|
+
}>;
|
414
|
+
}>, "strip", z.ZodTypeAny, {
|
415
|
+
requestId: string;
|
416
|
+
presenceStatus: {
|
417
|
+
id: string;
|
418
|
+
position: number;
|
419
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
420
|
+
status: string;
|
421
|
+
createdAt: Date;
|
422
|
+
updatedAt: Date;
|
423
|
+
deletedAt: Date | null;
|
424
|
+
};
|
425
|
+
}, {
|
426
|
+
requestId: string;
|
427
|
+
presenceStatus: {
|
428
|
+
id: string;
|
429
|
+
position: number;
|
430
|
+
description: "Can do everything." | "Mute all notifications." | "You won't receive call, but can still do other.";
|
431
|
+
status: string;
|
432
|
+
createdAt: Date;
|
433
|
+
updatedAt: Date;
|
434
|
+
deletedAt: Date | null;
|
435
|
+
};
|
436
|
+
}>;
|
437
|
+
400: z.ZodObject<{
|
438
|
+
message: z.ZodString;
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
440
|
+
message: string;
|
441
|
+
}, {
|
442
|
+
message: string;
|
443
|
+
}>;
|
444
|
+
401: z.ZodObject<{
|
445
|
+
message: z.ZodString;
|
446
|
+
error: z.ZodAny;
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
448
|
+
message: string;
|
449
|
+
error?: any;
|
450
|
+
}, {
|
451
|
+
message: string;
|
452
|
+
error?: any;
|
453
|
+
}>;
|
454
|
+
404: z.ZodObject<{
|
455
|
+
message: z.ZodString;
|
456
|
+
error: z.ZodAny;
|
457
|
+
}, "strip", z.ZodTypeAny, {
|
458
|
+
message: string;
|
459
|
+
error?: any;
|
460
|
+
}, {
|
461
|
+
message: string;
|
462
|
+
error?: any;
|
463
|
+
}>;
|
464
|
+
422: z.ZodObject<{
|
465
|
+
message: z.ZodString;
|
466
|
+
error: z.ZodAny;
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
468
|
+
message: string;
|
469
|
+
error?: any;
|
470
|
+
}, {
|
471
|
+
message: string;
|
472
|
+
error?: any;
|
473
|
+
}>;
|
474
|
+
500: z.ZodObject<{
|
475
|
+
message: z.ZodString;
|
476
|
+
error: z.ZodAny;
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
478
|
+
message: string;
|
479
|
+
error?: any;
|
480
|
+
}, {
|
481
|
+
message: string;
|
482
|
+
error?: any;
|
483
|
+
}>;
|
484
|
+
};
|
485
|
+
};
|
486
|
+
deletePresenceStatus: {
|
487
|
+
body: null;
|
488
|
+
summary: "Delete a presence status.";
|
489
|
+
method: "DELETE";
|
490
|
+
pathParams: z.ZodObject<{
|
491
|
+
id: z.ZodString;
|
492
|
+
}, "strip", z.ZodTypeAny, {
|
493
|
+
id: string;
|
494
|
+
}, {
|
495
|
+
id: string;
|
496
|
+
}>;
|
497
|
+
path: "presence_status/:id";
|
498
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
499
|
+
'x-tenant': z.ZodString;
|
500
|
+
authorization: z.ZodString;
|
501
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
502
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
503
|
+
}, "strip", z.ZodTypeAny, {
|
504
|
+
'x-tenant': string;
|
505
|
+
authorization: string;
|
506
|
+
'x-client-timezone': string;
|
507
|
+
'x-code'?: string | undefined;
|
508
|
+
}, {
|
509
|
+
'x-tenant': string;
|
510
|
+
authorization: string;
|
511
|
+
'x-code'?: string | undefined;
|
512
|
+
'x-client-timezone'?: string | undefined;
|
513
|
+
}>>>;
|
514
|
+
responses: {
|
515
|
+
200: z.ZodObject<z.objectUtil.extendShape<{
|
516
|
+
requestId: z.ZodString;
|
517
|
+
}, {
|
518
|
+
message: z.ZodString;
|
519
|
+
}>, "strip", z.ZodTypeAny, {
|
520
|
+
message: string;
|
521
|
+
requestId: string;
|
522
|
+
}, {
|
523
|
+
message: string;
|
524
|
+
requestId: string;
|
525
|
+
}>;
|
526
|
+
404: 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
|
+
422: z.ZodObject<{
|
537
|
+
message: z.ZodString;
|
538
|
+
error: z.ZodAny;
|
539
|
+
}, "strip", z.ZodTypeAny, {
|
540
|
+
message: string;
|
541
|
+
error?: any;
|
542
|
+
}, {
|
543
|
+
message: string;
|
544
|
+
error?: any;
|
545
|
+
}>;
|
546
|
+
500: z.ZodObject<{
|
547
|
+
message: z.ZodString;
|
548
|
+
error: z.ZodAny;
|
549
|
+
}, "strip", z.ZodTypeAny, {
|
550
|
+
message: string;
|
551
|
+
error?: any;
|
552
|
+
}, {
|
553
|
+
message: string;
|
554
|
+
error?: any;
|
555
|
+
}>;
|
556
|
+
};
|
557
|
+
};
|
558
|
+
};
|
559
|
+
//# 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"}
|
@@ -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"}
|