@kl1/contracts 1.0.4 → 1.0.6
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 +632 -319
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +632 -319
- package/dist/index.mjs.map +1 -1
- package/dist/src/call-log/schema.d.ts +4 -4
- package/dist/src/contract.d.ts +26374 -1719
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/extension/index.d.ts +85 -0
- package/dist/src/extension/index.d.ts.map +1 -1
- package/dist/src/line/index.d.ts +2 -2
- package/dist/src/line/validation.d.ts +2 -2
- package/dist/src/mail/account-contract.d.ts +168 -224
- package/dist/src/mail/account-contract.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +11118 -250
- package/dist/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/src/mail/{mail-server.d.ts → mail-server-contract.d.ts} +5 -5
- package/dist/src/mail/mail-server-contract.d.ts.map +1 -0
- package/dist/src/mail/message-contract.d.ts +502 -8
- package/dist/src/mail/message-contract.d.ts.map +1 -1
- package/dist/src/mail/room-contract.d.ts +10443 -13
- package/dist/src/mail/room-contract.d.ts.map +1 -1
- package/dist/src/mail/schemas/account-validation.schema.d.ts +790 -0
- package/dist/src/mail/schemas/account-validation.schema.d.ts.map +1 -0
- package/dist/src/mail/schemas/account.schema.d.ts +33 -888
- package/dist/src/mail/schemas/account.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/message-validation.schema.d.ts +2 -0
- package/dist/src/mail/schemas/message-validation.schema.d.ts.map +1 -0
- package/dist/src/mail/schemas/message.schema.d.ts +349 -0
- package/dist/src/mail/schemas/message.schema.d.ts.map +1 -0
- package/dist/src/mail/schemas/room.schema.d.ts +2692 -0
- package/dist/src/mail/schemas/room.schema.d.ts.map +1 -0
- package/dist/src/telephony-cdr/schema.d.ts +4 -4
- package/dist/src/user/index.d.ts +162 -279
- package/dist/src/user/index.d.ts.map +1 -1
- package/dist/src/user/schema.d.ts.map +1 -1
- package/dist/src/user/validation.d.ts +15 -6
- package/dist/src/user/validation.d.ts.map +1 -1
- package/package.json +46 -45
- package/dist/src/mail/mail-server.d.ts.map +0 -1
package/dist/src/user/index.d.ts
CHANGED
|
@@ -9,22 +9,25 @@ export declare const userContract: {
|
|
|
9
9
|
email: z.ZodString;
|
|
10
10
|
address: z.ZodNullable<z.ZodString>;
|
|
11
11
|
phone: z.ZodNullable<z.ZodString>;
|
|
12
|
-
|
|
12
|
+
password: z.ZodString;
|
|
13
|
+
notificationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
14
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
address: string | null;
|
|
16
17
|
name: string;
|
|
17
18
|
email: string;
|
|
18
19
|
phone: string | null;
|
|
19
|
-
notificationCount: number | null;
|
|
20
20
|
roles: string[];
|
|
21
|
+
password: string;
|
|
22
|
+
notificationCount?: number | null | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
address: string | null;
|
|
23
25
|
name: string;
|
|
24
26
|
email: string;
|
|
25
27
|
phone: string | null;
|
|
26
|
-
notificationCount: number | null;
|
|
27
28
|
roles: string[];
|
|
29
|
+
password: string;
|
|
30
|
+
notificationCount?: number | null | undefined;
|
|
28
31
|
}>;
|
|
29
32
|
summary: "Create a user.";
|
|
30
33
|
method: "POST";
|
|
@@ -277,81 +280,29 @@ export declare const userContract: {
|
|
|
277
280
|
}>>;
|
|
278
281
|
responses: {
|
|
279
282
|
200: z.ZodObject<{
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
notificationCount: number | null;
|
|
296
|
-
roles: {
|
|
297
|
-
id: string;
|
|
298
|
-
description: string | null;
|
|
299
|
-
createdAt: Date;
|
|
300
|
-
updatedAt: Date;
|
|
301
|
-
deletedAt: Date | null;
|
|
302
|
-
systemName: string;
|
|
303
|
-
displayName: string;
|
|
304
|
-
permissions: {
|
|
305
|
-
id: string;
|
|
306
|
-
description: string | null;
|
|
307
|
-
createdAt: Date;
|
|
308
|
-
updatedAt: Date;
|
|
309
|
-
deletedAt: Date | null;
|
|
310
|
-
systemName: string;
|
|
311
|
-
displayName: string;
|
|
312
|
-
}[];
|
|
313
|
-
}[];
|
|
314
|
-
}, z.ZodTypeDef, {
|
|
315
|
-
id: string;
|
|
316
|
-
address: string | null;
|
|
317
|
-
name: string;
|
|
318
|
-
email: string;
|
|
319
|
-
createdAt: Date;
|
|
320
|
-
updatedAt: Date;
|
|
321
|
-
deletedAt: Date | null;
|
|
322
|
-
phone: string | null;
|
|
323
|
-
notificationCount: number | null;
|
|
324
|
-
roles: {
|
|
325
|
-
id: string;
|
|
326
|
-
description: string | null;
|
|
327
|
-
createdAt: Date;
|
|
328
|
-
updatedAt: Date;
|
|
329
|
-
deletedAt: Date | null;
|
|
330
|
-
systemName: string;
|
|
331
|
-
displayName: string;
|
|
332
|
-
permissions: {
|
|
333
|
-
id: string;
|
|
334
|
-
description: string | null;
|
|
335
|
-
createdAt: Date;
|
|
336
|
-
updatedAt: Date;
|
|
337
|
-
deletedAt: Date | null;
|
|
338
|
-
systemName: string;
|
|
339
|
-
displayName: string;
|
|
340
|
-
}[];
|
|
341
|
-
}[];
|
|
342
|
-
}>, "many">;
|
|
343
|
-
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
data: {
|
|
283
|
+
total: z.ZodNumber;
|
|
284
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
285
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
286
|
+
lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
287
|
+
data: z.ZodArray<z.ZodType<{
|
|
288
|
+
id: string;
|
|
289
|
+
address: string | null;
|
|
290
|
+
name: string;
|
|
291
|
+
email: string;
|
|
292
|
+
createdAt: Date;
|
|
293
|
+
updatedAt: Date;
|
|
294
|
+
deletedAt: Date | null;
|
|
295
|
+
phone: string | null;
|
|
296
|
+
notificationCount: number | null;
|
|
297
|
+
roles: {
|
|
345
298
|
id: string;
|
|
346
|
-
|
|
347
|
-
name: string;
|
|
348
|
-
email: string;
|
|
299
|
+
description: string | null;
|
|
349
300
|
createdAt: Date;
|
|
350
301
|
updatedAt: Date;
|
|
351
302
|
deletedAt: Date | null;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
303
|
+
systemName: string;
|
|
304
|
+
displayName: string;
|
|
305
|
+
permissions: {
|
|
355
306
|
id: string;
|
|
356
307
|
description: string | null;
|
|
357
308
|
createdAt: Date;
|
|
@@ -359,33 +310,27 @@ export declare const userContract: {
|
|
|
359
310
|
deletedAt: Date | null;
|
|
360
311
|
systemName: string;
|
|
361
312
|
displayName: string;
|
|
362
|
-
permissions: {
|
|
363
|
-
id: string;
|
|
364
|
-
description: string | null;
|
|
365
|
-
createdAt: Date;
|
|
366
|
-
updatedAt: Date;
|
|
367
|
-
deletedAt: Date | null;
|
|
368
|
-
systemName: string;
|
|
369
|
-
displayName: string;
|
|
370
|
-
}[];
|
|
371
313
|
}[];
|
|
372
314
|
}[];
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
315
|
+
}, z.ZodTypeDef, {
|
|
316
|
+
id: string;
|
|
317
|
+
address: string | null;
|
|
318
|
+
name: string;
|
|
319
|
+
email: string;
|
|
320
|
+
createdAt: Date;
|
|
321
|
+
updatedAt: Date;
|
|
322
|
+
deletedAt: Date | null;
|
|
323
|
+
phone: string | null;
|
|
324
|
+
notificationCount: number | null;
|
|
325
|
+
roles: {
|
|
379
326
|
id: string;
|
|
380
|
-
|
|
381
|
-
name: string;
|
|
382
|
-
email: string;
|
|
327
|
+
description: string | null;
|
|
383
328
|
createdAt: Date;
|
|
384
329
|
updatedAt: Date;
|
|
385
330
|
deletedAt: Date | null;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
331
|
+
systemName: string;
|
|
332
|
+
displayName: string;
|
|
333
|
+
permissions: {
|
|
389
334
|
id: string;
|
|
390
335
|
description: string | null;
|
|
391
336
|
createdAt: Date;
|
|
@@ -393,35 +338,29 @@ export declare const userContract: {
|
|
|
393
338
|
deletedAt: Date | null;
|
|
394
339
|
systemName: string;
|
|
395
340
|
displayName: string;
|
|
396
|
-
permissions: {
|
|
397
|
-
id: string;
|
|
398
|
-
description: string | null;
|
|
399
|
-
createdAt: Date;
|
|
400
|
-
updatedAt: Date;
|
|
401
|
-
deletedAt: Date | null;
|
|
402
|
-
systemName: string;
|
|
403
|
-
displayName: string;
|
|
404
|
-
}[];
|
|
405
341
|
}[];
|
|
406
342
|
}[];
|
|
407
|
-
|
|
408
|
-
page?: number | undefined;
|
|
409
|
-
pageSize?: number | undefined;
|
|
410
|
-
lastPage?: number | null | undefined;
|
|
411
|
-
}>;
|
|
343
|
+
}>, "many">;
|
|
412
344
|
}, "strip", z.ZodTypeAny, {
|
|
413
|
-
|
|
414
|
-
|
|
345
|
+
data: {
|
|
346
|
+
id: string;
|
|
347
|
+
address: string | null;
|
|
348
|
+
name: string;
|
|
349
|
+
email: string;
|
|
350
|
+
createdAt: Date;
|
|
351
|
+
updatedAt: Date;
|
|
352
|
+
deletedAt: Date | null;
|
|
353
|
+
phone: string | null;
|
|
354
|
+
notificationCount: number | null;
|
|
355
|
+
roles: {
|
|
415
356
|
id: string;
|
|
416
|
-
|
|
417
|
-
name: string;
|
|
418
|
-
email: string;
|
|
357
|
+
description: string | null;
|
|
419
358
|
createdAt: Date;
|
|
420
359
|
updatedAt: Date;
|
|
421
360
|
deletedAt: Date | null;
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
361
|
+
systemName: string;
|
|
362
|
+
displayName: string;
|
|
363
|
+
permissions: {
|
|
425
364
|
id: string;
|
|
426
365
|
description: string | null;
|
|
427
366
|
createdAt: Date;
|
|
@@ -429,36 +368,33 @@ export declare const userContract: {
|
|
|
429
368
|
deletedAt: Date | null;
|
|
430
369
|
systemName: string;
|
|
431
370
|
displayName: string;
|
|
432
|
-
permissions: {
|
|
433
|
-
id: string;
|
|
434
|
-
description: string | null;
|
|
435
|
-
createdAt: Date;
|
|
436
|
-
updatedAt: Date;
|
|
437
|
-
deletedAt: Date | null;
|
|
438
|
-
systemName: string;
|
|
439
|
-
displayName: string;
|
|
440
|
-
}[];
|
|
441
371
|
}[];
|
|
442
372
|
}[];
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
requestId: string;
|
|
373
|
+
}[];
|
|
374
|
+
total: number;
|
|
375
|
+
page: number;
|
|
376
|
+
pageSize: number;
|
|
377
|
+
lastPage?: number | null | undefined;
|
|
449
378
|
}, {
|
|
450
|
-
|
|
451
|
-
|
|
379
|
+
data: {
|
|
380
|
+
id: string;
|
|
381
|
+
address: string | null;
|
|
382
|
+
name: string;
|
|
383
|
+
email: string;
|
|
384
|
+
createdAt: Date;
|
|
385
|
+
updatedAt: Date;
|
|
386
|
+
deletedAt: Date | null;
|
|
387
|
+
phone: string | null;
|
|
388
|
+
notificationCount: number | null;
|
|
389
|
+
roles: {
|
|
452
390
|
id: string;
|
|
453
|
-
|
|
454
|
-
name: string;
|
|
455
|
-
email: string;
|
|
391
|
+
description: string | null;
|
|
456
392
|
createdAt: Date;
|
|
457
393
|
updatedAt: Date;
|
|
458
394
|
deletedAt: Date | null;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
395
|
+
systemName: string;
|
|
396
|
+
displayName: string;
|
|
397
|
+
permissions: {
|
|
462
398
|
id: string;
|
|
463
399
|
description: string | null;
|
|
464
400
|
createdAt: Date;
|
|
@@ -466,23 +402,13 @@ export declare const userContract: {
|
|
|
466
402
|
deletedAt: Date | null;
|
|
467
403
|
systemName: string;
|
|
468
404
|
displayName: string;
|
|
469
|
-
permissions: {
|
|
470
|
-
id: string;
|
|
471
|
-
description: string | null;
|
|
472
|
-
createdAt: Date;
|
|
473
|
-
updatedAt: Date;
|
|
474
|
-
deletedAt: Date | null;
|
|
475
|
-
systemName: string;
|
|
476
|
-
displayName: string;
|
|
477
|
-
}[];
|
|
478
405
|
}[];
|
|
479
406
|
}[];
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
requestId: string;
|
|
407
|
+
}[];
|
|
408
|
+
total: number;
|
|
409
|
+
page?: number | undefined;
|
|
410
|
+
pageSize?: number | undefined;
|
|
411
|
+
lastPage?: number | null | undefined;
|
|
486
412
|
}>;
|
|
487
413
|
400: z.ZodObject<{
|
|
488
414
|
message: z.ZodString;
|
|
@@ -536,18 +462,24 @@ export declare const userContract: {
|
|
|
536
462
|
}>;
|
|
537
463
|
responses: {
|
|
538
464
|
200: z.ZodObject<{
|
|
539
|
-
|
|
540
|
-
|
|
465
|
+
id: z.ZodString;
|
|
466
|
+
createdAt: z.ZodDate;
|
|
467
|
+
updatedAt: z.ZodDate;
|
|
468
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
469
|
+
name: z.ZodString;
|
|
470
|
+
email: z.ZodString;
|
|
471
|
+
address: z.ZodNullable<z.ZodString>;
|
|
472
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
473
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
|
474
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
541
475
|
id: z.ZodString;
|
|
542
476
|
createdAt: z.ZodDate;
|
|
543
477
|
updatedAt: z.ZodDate;
|
|
544
478
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
notificationCount: z.ZodNullable<z.ZodNumber>;
|
|
550
|
-
roles: z.ZodArray<z.ZodObject<{
|
|
479
|
+
systemName: z.ZodString;
|
|
480
|
+
displayName: z.ZodString;
|
|
481
|
+
description: z.ZodNullable<z.ZodString>;
|
|
482
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
551
483
|
id: z.ZodString;
|
|
552
484
|
createdAt: z.ZodDate;
|
|
553
485
|
updatedAt: z.ZodDate;
|
|
@@ -555,31 +487,6 @@ export declare const userContract: {
|
|
|
555
487
|
systemName: z.ZodString;
|
|
556
488
|
displayName: z.ZodString;
|
|
557
489
|
description: z.ZodNullable<z.ZodString>;
|
|
558
|
-
permissions: z.ZodArray<z.ZodObject<{
|
|
559
|
-
id: z.ZodString;
|
|
560
|
-
createdAt: z.ZodDate;
|
|
561
|
-
updatedAt: z.ZodDate;
|
|
562
|
-
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
563
|
-
systemName: z.ZodString;
|
|
564
|
-
displayName: z.ZodString;
|
|
565
|
-
description: z.ZodNullable<z.ZodString>;
|
|
566
|
-
}, "strip", z.ZodTypeAny, {
|
|
567
|
-
id: string;
|
|
568
|
-
description: string | null;
|
|
569
|
-
createdAt: Date;
|
|
570
|
-
updatedAt: Date;
|
|
571
|
-
deletedAt: Date | null;
|
|
572
|
-
systemName: string;
|
|
573
|
-
displayName: string;
|
|
574
|
-
}, {
|
|
575
|
-
id: string;
|
|
576
|
-
description: string | null;
|
|
577
|
-
createdAt: Date;
|
|
578
|
-
updatedAt: Date;
|
|
579
|
-
deletedAt: Date | null;
|
|
580
|
-
systemName: string;
|
|
581
|
-
displayName: string;
|
|
582
|
-
}>, "many">;
|
|
583
490
|
}, "strip", z.ZodTypeAny, {
|
|
584
491
|
id: string;
|
|
585
492
|
description: string | null;
|
|
@@ -588,15 +495,6 @@ export declare const userContract: {
|
|
|
588
495
|
deletedAt: Date | null;
|
|
589
496
|
systemName: string;
|
|
590
497
|
displayName: string;
|
|
591
|
-
permissions: {
|
|
592
|
-
id: string;
|
|
593
|
-
description: string | null;
|
|
594
|
-
createdAt: Date;
|
|
595
|
-
updatedAt: Date;
|
|
596
|
-
deletedAt: Date | null;
|
|
597
|
-
systemName: string;
|
|
598
|
-
displayName: string;
|
|
599
|
-
}[];
|
|
600
498
|
}, {
|
|
601
499
|
id: string;
|
|
602
500
|
description: string | null;
|
|
@@ -605,27 +503,16 @@ export declare const userContract: {
|
|
|
605
503
|
deletedAt: Date | null;
|
|
606
504
|
systemName: string;
|
|
607
505
|
displayName: string;
|
|
608
|
-
permissions: {
|
|
609
|
-
id: string;
|
|
610
|
-
description: string | null;
|
|
611
|
-
createdAt: Date;
|
|
612
|
-
updatedAt: Date;
|
|
613
|
-
deletedAt: Date | null;
|
|
614
|
-
systemName: string;
|
|
615
|
-
displayName: string;
|
|
616
|
-
}[];
|
|
617
506
|
}>, "many">;
|
|
618
507
|
}, "strip", z.ZodTypeAny, {
|
|
619
508
|
id: string;
|
|
620
|
-
|
|
621
|
-
name: string;
|
|
622
|
-
email: string;
|
|
509
|
+
description: string | null;
|
|
623
510
|
createdAt: Date;
|
|
624
511
|
updatedAt: Date;
|
|
625
512
|
deletedAt: Date | null;
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
513
|
+
systemName: string;
|
|
514
|
+
displayName: string;
|
|
515
|
+
permissions: {
|
|
629
516
|
id: string;
|
|
630
517
|
description: string | null;
|
|
631
518
|
createdAt: Date;
|
|
@@ -633,27 +520,16 @@ export declare const userContract: {
|
|
|
633
520
|
deletedAt: Date | null;
|
|
634
521
|
systemName: string;
|
|
635
522
|
displayName: string;
|
|
636
|
-
permissions: {
|
|
637
|
-
id: string;
|
|
638
|
-
description: string | null;
|
|
639
|
-
createdAt: Date;
|
|
640
|
-
updatedAt: Date;
|
|
641
|
-
deletedAt: Date | null;
|
|
642
|
-
systemName: string;
|
|
643
|
-
displayName: string;
|
|
644
|
-
}[];
|
|
645
523
|
}[];
|
|
646
524
|
}, {
|
|
647
525
|
id: string;
|
|
648
|
-
|
|
649
|
-
name: string;
|
|
650
|
-
email: string;
|
|
526
|
+
description: string | null;
|
|
651
527
|
createdAt: Date;
|
|
652
528
|
updatedAt: Date;
|
|
653
529
|
deletedAt: Date | null;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
530
|
+
systemName: string;
|
|
531
|
+
displayName: string;
|
|
532
|
+
permissions: {
|
|
657
533
|
id: string;
|
|
658
534
|
description: string | null;
|
|
659
535
|
createdAt: Date;
|
|
@@ -661,29 +537,27 @@ export declare const userContract: {
|
|
|
661
537
|
deletedAt: Date | null;
|
|
662
538
|
systemName: string;
|
|
663
539
|
displayName: string;
|
|
664
|
-
permissions: {
|
|
665
|
-
id: string;
|
|
666
|
-
description: string | null;
|
|
667
|
-
createdAt: Date;
|
|
668
|
-
updatedAt: Date;
|
|
669
|
-
deletedAt: Date | null;
|
|
670
|
-
systemName: string;
|
|
671
|
-
displayName: string;
|
|
672
|
-
}[];
|
|
673
540
|
}[];
|
|
674
|
-
}>;
|
|
541
|
+
}>, "many">;
|
|
675
542
|
}, "strip", z.ZodTypeAny, {
|
|
676
|
-
|
|
543
|
+
id: string;
|
|
544
|
+
address: string | null;
|
|
545
|
+
name: string;
|
|
546
|
+
email: string;
|
|
547
|
+
createdAt: Date;
|
|
548
|
+
updatedAt: Date;
|
|
549
|
+
deletedAt: Date | null;
|
|
550
|
+
phone: string | null;
|
|
551
|
+
notificationCount: number | null;
|
|
552
|
+
roles: {
|
|
677
553
|
id: string;
|
|
678
|
-
|
|
679
|
-
name: string;
|
|
680
|
-
email: string;
|
|
554
|
+
description: string | null;
|
|
681
555
|
createdAt: Date;
|
|
682
556
|
updatedAt: Date;
|
|
683
557
|
deletedAt: Date | null;
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
558
|
+
systemName: string;
|
|
559
|
+
displayName: string;
|
|
560
|
+
permissions: {
|
|
687
561
|
id: string;
|
|
688
562
|
description: string | null;
|
|
689
563
|
createdAt: Date;
|
|
@@ -691,30 +565,27 @@ export declare const userContract: {
|
|
|
691
565
|
deletedAt: Date | null;
|
|
692
566
|
systemName: string;
|
|
693
567
|
displayName: string;
|
|
694
|
-
permissions: {
|
|
695
|
-
id: string;
|
|
696
|
-
description: string | null;
|
|
697
|
-
createdAt: Date;
|
|
698
|
-
updatedAt: Date;
|
|
699
|
-
deletedAt: Date | null;
|
|
700
|
-
systemName: string;
|
|
701
|
-
displayName: string;
|
|
702
|
-
}[];
|
|
703
568
|
}[];
|
|
704
|
-
};
|
|
705
|
-
requestId: string;
|
|
569
|
+
}[];
|
|
706
570
|
}, {
|
|
707
|
-
|
|
571
|
+
id: string;
|
|
572
|
+
address: string | null;
|
|
573
|
+
name: string;
|
|
574
|
+
email: string;
|
|
575
|
+
createdAt: Date;
|
|
576
|
+
updatedAt: Date;
|
|
577
|
+
deletedAt: Date | null;
|
|
578
|
+
phone: string | null;
|
|
579
|
+
notificationCount: number | null;
|
|
580
|
+
roles: {
|
|
708
581
|
id: string;
|
|
709
|
-
|
|
710
|
-
name: string;
|
|
711
|
-
email: string;
|
|
582
|
+
description: string | null;
|
|
712
583
|
createdAt: Date;
|
|
713
584
|
updatedAt: Date;
|
|
714
585
|
deletedAt: Date | null;
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
586
|
+
systemName: string;
|
|
587
|
+
displayName: string;
|
|
588
|
+
permissions: {
|
|
718
589
|
id: string;
|
|
719
590
|
description: string | null;
|
|
720
591
|
createdAt: Date;
|
|
@@ -722,18 +593,8 @@ export declare const userContract: {
|
|
|
722
593
|
deletedAt: Date | null;
|
|
723
594
|
systemName: string;
|
|
724
595
|
displayName: string;
|
|
725
|
-
permissions: {
|
|
726
|
-
id: string;
|
|
727
|
-
description: string | null;
|
|
728
|
-
createdAt: Date;
|
|
729
|
-
updatedAt: Date;
|
|
730
|
-
deletedAt: Date | null;
|
|
731
|
-
systemName: string;
|
|
732
|
-
displayName: string;
|
|
733
|
-
}[];
|
|
734
596
|
}[];
|
|
735
|
-
};
|
|
736
|
-
requestId: string;
|
|
597
|
+
}[];
|
|
737
598
|
}>;
|
|
738
599
|
400: z.ZodObject<{
|
|
739
600
|
message: z.ZodString;
|
|
@@ -767,13 +628,14 @@ export declare const userContract: {
|
|
|
767
628
|
};
|
|
768
629
|
updateUser: {
|
|
769
630
|
body: z.ZodObject<{
|
|
770
|
-
id: z.ZodString;
|
|
771
631
|
address: z.ZodNullable<z.ZodString>;
|
|
772
632
|
name: z.ZodString;
|
|
773
633
|
email: z.ZodString;
|
|
774
634
|
phone: z.ZodNullable<z.ZodString>;
|
|
775
|
-
notificationCount: z.ZodNullable<z.ZodNumber
|
|
635
|
+
notificationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
776
636
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
637
|
+
password: z.ZodString;
|
|
638
|
+
id: z.ZodString;
|
|
777
639
|
newPassword: z.ZodString;
|
|
778
640
|
}, "strip", z.ZodTypeAny, {
|
|
779
641
|
id: string;
|
|
@@ -781,18 +643,20 @@ export declare const userContract: {
|
|
|
781
643
|
name: string;
|
|
782
644
|
email: string;
|
|
783
645
|
phone: string | null;
|
|
784
|
-
notificationCount: number | null;
|
|
785
646
|
roles: string[];
|
|
647
|
+
password: string;
|
|
786
648
|
newPassword: string;
|
|
649
|
+
notificationCount?: number | null | undefined;
|
|
787
650
|
}, {
|
|
788
651
|
id: string;
|
|
789
652
|
address: string | null;
|
|
790
653
|
name: string;
|
|
791
654
|
email: string;
|
|
792
655
|
phone: string | null;
|
|
793
|
-
notificationCount: number | null;
|
|
794
656
|
roles: string[];
|
|
657
|
+
password: string;
|
|
795
658
|
newPassword: string;
|
|
659
|
+
notificationCount?: number | null | undefined;
|
|
796
660
|
}>;
|
|
797
661
|
summary: "Update a user.";
|
|
798
662
|
method: "PATCH";
|
|
@@ -1035,7 +899,7 @@ export declare const userContract: {
|
|
|
1035
899
|
}>>>;
|
|
1036
900
|
};
|
|
1037
901
|
deleteUser: {
|
|
1038
|
-
body:
|
|
902
|
+
body: null;
|
|
1039
903
|
summary: "Delete a user.";
|
|
1040
904
|
method: "DELETE";
|
|
1041
905
|
pathParams: z.ZodObject<{
|
|
@@ -1046,7 +910,26 @@ export declare const userContract: {
|
|
|
1046
910
|
id: string;
|
|
1047
911
|
}>;
|
|
1048
912
|
responses: {
|
|
1049
|
-
200: z.
|
|
913
|
+
200: z.ZodObject<{
|
|
914
|
+
requestId: z.ZodString;
|
|
915
|
+
message: z.ZodString;
|
|
916
|
+
}, "strip", z.ZodTypeAny, {
|
|
917
|
+
message: string;
|
|
918
|
+
requestId: string;
|
|
919
|
+
}, {
|
|
920
|
+
message: string;
|
|
921
|
+
requestId: string;
|
|
922
|
+
}>;
|
|
923
|
+
500: z.ZodObject<{
|
|
924
|
+
message: z.ZodString;
|
|
925
|
+
error: z.ZodAny;
|
|
926
|
+
}, "strip", z.ZodTypeAny, {
|
|
927
|
+
message: string;
|
|
928
|
+
error?: any;
|
|
929
|
+
}, {
|
|
930
|
+
message: string;
|
|
931
|
+
error?: any;
|
|
932
|
+
}>;
|
|
1050
933
|
};
|
|
1051
934
|
path: "user/:id";
|
|
1052
935
|
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGlE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEjE,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGlE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEjE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/user/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/user/schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrB,CAAC"}
|