@kl1/contracts 1.3.37 → 1.3.39

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.
@@ -1,10 +1,11 @@
1
1
  import z from 'zod';
2
- import { TPresenceStatusOption, PresenceStatusSchema } from './schema';
2
+ import { PresenceStatusSchema, TPresenceStatusOption, UserPresenceStatusSchema } 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
7
  export type PresenceStatusOption = z.infer<typeof TPresenceStatusOption>;
8
+ export type UserPresenceStatus = z.infer<typeof UserPresenceStatusSchema>;
8
9
  export declare const presenceStatusContract: {
9
10
  getAllStatus: {
10
11
  summary: "Get all presence status list.";
@@ -121,6 +122,425 @@ export declare const presenceStatusContract: {
121
122
  'x-client-timezone'?: string | undefined;
122
123
  }>>>;
123
124
  };
125
+ getAllUserPresenceStatus: {
126
+ summary: "Get all users presence status";
127
+ method: "GET";
128
+ responses: {
129
+ 200: z.ZodArray<z.ZodObject<{
130
+ id: z.ZodString;
131
+ createdAt: z.ZodDate;
132
+ updatedAt: z.ZodDate;
133
+ deletedAt: z.ZodNullable<z.ZodDate>;
134
+ userId: z.ZodString;
135
+ user: z.ZodObject<{
136
+ name: z.ZodString;
137
+ id: z.ZodString;
138
+ address: z.ZodNullable<z.ZodString>;
139
+ email: z.ZodString;
140
+ createdAt: z.ZodDate;
141
+ updatedAt: z.ZodDate;
142
+ deletedAt: z.ZodNullable<z.ZodDate>;
143
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
144
+ password: z.ZodString;
145
+ phone: z.ZodNullable<z.ZodString>;
146
+ notificationCount: z.ZodNullable<z.ZodNumber>;
147
+ roles: z.ZodArray<z.ZodObject<{
148
+ id: z.ZodString;
149
+ createdAt: z.ZodDate;
150
+ updatedAt: z.ZodDate;
151
+ deletedAt: z.ZodNullable<z.ZodDate>;
152
+ systemName: z.ZodString;
153
+ displayName: z.ZodString;
154
+ description: z.ZodNullable<z.ZodString>;
155
+ permissions: z.ZodArray<z.ZodObject<{
156
+ id: z.ZodString;
157
+ createdAt: z.ZodDate;
158
+ updatedAt: z.ZodDate;
159
+ deletedAt: z.ZodNullable<z.ZodDate>;
160
+ systemName: z.ZodString;
161
+ displayName: z.ZodString;
162
+ description: z.ZodNullable<z.ZodString>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ id: string;
165
+ description: string | null;
166
+ createdAt: Date;
167
+ updatedAt: Date;
168
+ deletedAt: Date | null;
169
+ systemName: string;
170
+ displayName: string;
171
+ }, {
172
+ id: string;
173
+ description: string | null;
174
+ createdAt: Date;
175
+ updatedAt: Date;
176
+ deletedAt: Date | null;
177
+ systemName: string;
178
+ displayName: string;
179
+ }>, "many">;
180
+ }, "strip", z.ZodTypeAny, {
181
+ id: string;
182
+ description: string | null;
183
+ createdAt: Date;
184
+ updatedAt: Date;
185
+ deletedAt: Date | null;
186
+ systemName: string;
187
+ displayName: string;
188
+ permissions: {
189
+ id: string;
190
+ description: string | null;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ deletedAt: Date | null;
194
+ systemName: string;
195
+ displayName: string;
196
+ }[];
197
+ }, {
198
+ id: string;
199
+ description: string | null;
200
+ createdAt: Date;
201
+ updatedAt: Date;
202
+ deletedAt: Date | null;
203
+ systemName: string;
204
+ displayName: string;
205
+ permissions: {
206
+ id: string;
207
+ description: string | null;
208
+ createdAt: Date;
209
+ updatedAt: Date;
210
+ deletedAt: Date | null;
211
+ systemName: string;
212
+ displayName: string;
213
+ }[];
214
+ }>, "many">;
215
+ extension: z.ZodObject<{
216
+ id: z.ZodString;
217
+ createdAt: z.ZodDate;
218
+ updatedAt: z.ZodDate;
219
+ deletedAt: z.ZodNullable<z.ZodDate>;
220
+ userId: z.ZodNullable<z.ZodString>;
221
+ sipServerUrl: z.ZodString;
222
+ sipUserName: z.ZodString;
223
+ webphoneLoginUser: z.ZodString;
224
+ extensionId: z.ZodNullable<z.ZodString>;
225
+ extensionName: z.ZodString;
226
+ telephonySignature: z.ZodNullable<z.ZodString>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ id: string;
229
+ createdAt: Date;
230
+ updatedAt: Date;
231
+ deletedAt: Date | null;
232
+ userId: string | null;
233
+ sipServerUrl: string;
234
+ sipUserName: string;
235
+ webphoneLoginUser: string;
236
+ extensionId: string | null;
237
+ extensionName: string;
238
+ telephonySignature: string | null;
239
+ }, {
240
+ id: string;
241
+ createdAt: Date;
242
+ updatedAt: Date;
243
+ deletedAt: Date | null;
244
+ userId: string | null;
245
+ sipServerUrl: string;
246
+ sipUserName: string;
247
+ webphoneLoginUser: string;
248
+ extensionId: string | null;
249
+ extensionName: string;
250
+ telephonySignature: string | null;
251
+ }>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ name: string;
254
+ id: string;
255
+ address: string | null;
256
+ email: string;
257
+ createdAt: Date;
258
+ updatedAt: Date;
259
+ deletedAt: Date | null;
260
+ emailVerifiedAt: Date | null;
261
+ password: string;
262
+ phone: string | null;
263
+ notificationCount: number | null;
264
+ roles: {
265
+ id: string;
266
+ description: string | null;
267
+ createdAt: Date;
268
+ updatedAt: Date;
269
+ deletedAt: Date | null;
270
+ systemName: string;
271
+ displayName: string;
272
+ permissions: {
273
+ id: string;
274
+ description: string | null;
275
+ createdAt: Date;
276
+ updatedAt: Date;
277
+ deletedAt: Date | null;
278
+ systemName: string;
279
+ displayName: string;
280
+ }[];
281
+ }[];
282
+ extension: {
283
+ id: string;
284
+ createdAt: Date;
285
+ updatedAt: Date;
286
+ deletedAt: Date | null;
287
+ userId: string | null;
288
+ sipServerUrl: string;
289
+ sipUserName: string;
290
+ webphoneLoginUser: string;
291
+ extensionId: string | null;
292
+ extensionName: string;
293
+ telephonySignature: string | null;
294
+ };
295
+ }, {
296
+ name: string;
297
+ id: string;
298
+ address: string | null;
299
+ email: string;
300
+ createdAt: Date;
301
+ updatedAt: Date;
302
+ deletedAt: Date | null;
303
+ emailVerifiedAt: Date | null;
304
+ password: string;
305
+ phone: string | null;
306
+ notificationCount: number | null;
307
+ roles: {
308
+ id: string;
309
+ description: string | null;
310
+ createdAt: Date;
311
+ updatedAt: Date;
312
+ deletedAt: Date | null;
313
+ systemName: string;
314
+ displayName: string;
315
+ permissions: {
316
+ id: string;
317
+ description: string | null;
318
+ createdAt: Date;
319
+ updatedAt: Date;
320
+ deletedAt: Date | null;
321
+ systemName: string;
322
+ displayName: string;
323
+ }[];
324
+ }[];
325
+ extension: {
326
+ id: string;
327
+ createdAt: Date;
328
+ updatedAt: Date;
329
+ deletedAt: Date | null;
330
+ userId: string | null;
331
+ sipServerUrl: string;
332
+ sipUserName: string;
333
+ webphoneLoginUser: string;
334
+ extensionId: string | null;
335
+ extensionName: string;
336
+ telephonySignature: string | null;
337
+ };
338
+ }>;
339
+ presenceStatus: z.ZodObject<{
340
+ id: z.ZodString;
341
+ createdAt: z.ZodDate;
342
+ updatedAt: z.ZodDate;
343
+ deletedAt: z.ZodNullable<z.ZodDate>;
344
+ systemName: z.ZodString;
345
+ displayName: z.ZodString;
346
+ description: z.ZodNullable<z.ZodString>;
347
+ position: z.ZodNumber;
348
+ emoji: z.ZodNullable<z.ZodString>;
349
+ 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">;
350
+ }, "strip", z.ZodTypeAny, {
351
+ emoji: string | null;
352
+ id: string;
353
+ position: number;
354
+ description: string | null;
355
+ createdAt: Date;
356
+ updatedAt: Date;
357
+ deletedAt: Date | null;
358
+ systemName: string;
359
+ displayName: string;
360
+ presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
361
+ }, {
362
+ emoji: string | null;
363
+ id: string;
364
+ position: number;
365
+ description: string | null;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ deletedAt: Date | null;
369
+ systemName: string;
370
+ displayName: string;
371
+ presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
372
+ }>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ id: string;
375
+ user: {
376
+ name: string;
377
+ id: string;
378
+ address: string | null;
379
+ email: string;
380
+ createdAt: Date;
381
+ updatedAt: Date;
382
+ deletedAt: Date | null;
383
+ emailVerifiedAt: Date | null;
384
+ password: string;
385
+ phone: string | null;
386
+ notificationCount: number | null;
387
+ roles: {
388
+ id: string;
389
+ description: string | null;
390
+ createdAt: Date;
391
+ updatedAt: Date;
392
+ deletedAt: Date | null;
393
+ systemName: string;
394
+ displayName: string;
395
+ permissions: {
396
+ id: string;
397
+ description: string | null;
398
+ createdAt: Date;
399
+ updatedAt: Date;
400
+ deletedAt: Date | null;
401
+ systemName: string;
402
+ displayName: string;
403
+ }[];
404
+ }[];
405
+ extension: {
406
+ id: string;
407
+ createdAt: Date;
408
+ updatedAt: Date;
409
+ deletedAt: Date | null;
410
+ userId: string | null;
411
+ sipServerUrl: string;
412
+ sipUserName: string;
413
+ webphoneLoginUser: string;
414
+ extensionId: string | null;
415
+ extensionName: string;
416
+ telephonySignature: string | null;
417
+ };
418
+ };
419
+ createdAt: Date;
420
+ updatedAt: Date;
421
+ deletedAt: Date | null;
422
+ userId: string;
423
+ presenceStatus: {
424
+ emoji: string | null;
425
+ id: string;
426
+ position: number;
427
+ description: string | null;
428
+ createdAt: Date;
429
+ updatedAt: Date;
430
+ deletedAt: Date | null;
431
+ systemName: string;
432
+ displayName: string;
433
+ presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
434
+ };
435
+ }, {
436
+ id: string;
437
+ user: {
438
+ name: string;
439
+ id: string;
440
+ address: string | null;
441
+ email: string;
442
+ createdAt: Date;
443
+ updatedAt: Date;
444
+ deletedAt: Date | null;
445
+ emailVerifiedAt: Date | null;
446
+ password: string;
447
+ phone: string | null;
448
+ notificationCount: number | null;
449
+ roles: {
450
+ id: string;
451
+ description: string | null;
452
+ createdAt: Date;
453
+ updatedAt: Date;
454
+ deletedAt: Date | null;
455
+ systemName: string;
456
+ displayName: string;
457
+ permissions: {
458
+ id: string;
459
+ description: string | null;
460
+ createdAt: Date;
461
+ updatedAt: Date;
462
+ deletedAt: Date | null;
463
+ systemName: string;
464
+ displayName: string;
465
+ }[];
466
+ }[];
467
+ extension: {
468
+ id: string;
469
+ createdAt: Date;
470
+ updatedAt: Date;
471
+ deletedAt: Date | null;
472
+ userId: string | null;
473
+ sipServerUrl: string;
474
+ sipUserName: string;
475
+ webphoneLoginUser: string;
476
+ extensionId: string | null;
477
+ extensionName: string;
478
+ telephonySignature: string | null;
479
+ };
480
+ };
481
+ createdAt: Date;
482
+ updatedAt: Date;
483
+ deletedAt: Date | null;
484
+ userId: string;
485
+ presenceStatus: {
486
+ emoji: string | null;
487
+ id: string;
488
+ position: number;
489
+ description: string | null;
490
+ createdAt: Date;
491
+ updatedAt: Date;
492
+ deletedAt: Date | null;
493
+ systemName: string;
494
+ displayName: string;
495
+ presenceStatusOption: ("receive_call" | "do_not_receive_call" | "receive_chat_message" | "do_not_receive_chat_message")[];
496
+ };
497
+ }>, "many">;
498
+ 400: z.ZodObject<{
499
+ message: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ message: string;
502
+ }, {
503
+ message: string;
504
+ }>;
505
+ 401: z.ZodObject<{
506
+ message: z.ZodString;
507
+ error: z.ZodAny;
508
+ }, "strip", z.ZodTypeAny, {
509
+ message: string;
510
+ error?: any;
511
+ }, {
512
+ message: string;
513
+ error?: any;
514
+ }>;
515
+ 500: z.ZodObject<{
516
+ message: z.ZodString;
517
+ error: z.ZodAny;
518
+ }, "strip", z.ZodTypeAny, {
519
+ message: string;
520
+ error?: any;
521
+ }, {
522
+ message: string;
523
+ error?: any;
524
+ }>;
525
+ };
526
+ path: "ms/presence_status/ps/user-presence-status";
527
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
528
+ 'x-tenant': z.ZodString;
529
+ 'x-service-token': z.ZodString;
530
+ 'x-code': z.ZodOptional<z.ZodString>;
531
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
532
+ }, "strip", z.ZodTypeAny, {
533
+ 'x-tenant': string;
534
+ 'x-service-token': string;
535
+ 'x-client-timezone': string;
536
+ 'x-code'?: string | undefined;
537
+ }, {
538
+ 'x-tenant': string;
539
+ 'x-service-token': string;
540
+ 'x-code'?: string | undefined;
541
+ 'x-client-timezone'?: string | undefined;
542
+ }>>>;
543
+ };
124
544
  createPresenceStatus: {
125
545
  body: z.ZodObject<{
126
546
  systemName: z.ZodString;
@@ -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,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;AAC5E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEzE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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