@kl1/contracts 1.0.99-uat → 1.1.0-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 +957 -832
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +956 -832
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +57 -57
- package/dist/src/chat/schema.d.ts +8 -8
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +15 -15
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +2103 -1260
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/instagram/index.d.ts +12 -12
- package/dist/src/line/index.d.ts +12 -12
- package/dist/src/mail/account-contract.d.ts +132 -132
- package/dist/src/mail/index.d.ts +10 -0
- package/dist/src/mail/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +1612 -1152
- package/dist/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/src/mail/mail-server-contract.d.ts +477 -18
- package/dist/src/mail/mail-server-contract.d.ts.map +1 -1
- package/dist/src/mail/message-contract.d.ts +54 -54
- package/dist/src/mail/room-contract.d.ts +951 -948
- package/dist/src/mail/room-contract.d.ts.map +1 -1
- package/dist/src/mail/schemas/account-validation.schema.d.ts +140 -140
- package/dist/src/mail/schemas/account-validation.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/account.schema.d.ts +32 -32
- package/dist/src/mail/schemas/message.schema.d.ts +42 -42
- package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/room-validation.schema.d.ts +319 -316
- package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/room.schema.d.ts +683 -259
- package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
- package/dist/src/messenger/index.d.ts +12 -12
- package/dist/src/user/index.d.ts +388 -4
- package/dist/src/user/index.d.ts.map +1 -1
- package/dist/src/user/validation.d.ts +7 -0
- package/dist/src/user/validation.d.ts.map +1 -1
- package/dist/src/viber/index.d.ts +12 -12
- package/package.json +1 -1
@@ -159,12 +159,12 @@ export declare const accountContract: {
|
|
159
159
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
160
160
|
name: z.ZodString;
|
161
161
|
smtpHost: z.ZodString;
|
162
|
-
smtpPort: z.
|
163
|
-
smtpTlsPort: z.
|
162
|
+
smtpPort: z.ZodNumber;
|
163
|
+
smtpTlsPort: z.ZodNumber;
|
164
164
|
useTlsForSmtp: z.ZodBoolean;
|
165
165
|
imapHost: z.ZodString;
|
166
|
-
imapPort: z.
|
167
|
-
imapTlsPort: z.
|
166
|
+
imapPort: z.ZodNumber;
|
167
|
+
imapTlsPort: z.ZodNumber;
|
168
168
|
useTlsForImap: z.ZodBoolean;
|
169
169
|
}, "strip", z.ZodTypeAny, {
|
170
170
|
id: string;
|
@@ -173,12 +173,12 @@ export declare const accountContract: {
|
|
173
173
|
updatedAt: Date;
|
174
174
|
deletedAt: Date | null;
|
175
175
|
smtpHost: string;
|
176
|
-
smtpPort:
|
177
|
-
smtpTlsPort:
|
176
|
+
smtpPort: number;
|
177
|
+
smtpTlsPort: number;
|
178
178
|
useTlsForSmtp: boolean;
|
179
179
|
imapHost: string;
|
180
|
-
imapPort:
|
181
|
-
imapTlsPort:
|
180
|
+
imapPort: number;
|
181
|
+
imapTlsPort: number;
|
182
182
|
useTlsForImap: boolean;
|
183
183
|
}, {
|
184
184
|
id: string;
|
@@ -187,12 +187,12 @@ export declare const accountContract: {
|
|
187
187
|
updatedAt: Date;
|
188
188
|
deletedAt: Date | null;
|
189
189
|
smtpHost: string;
|
190
|
-
smtpPort:
|
191
|
-
smtpTlsPort:
|
190
|
+
smtpPort: number;
|
191
|
+
smtpTlsPort: number;
|
192
192
|
useTlsForSmtp: boolean;
|
193
193
|
imapHost: string;
|
194
|
-
imapPort:
|
195
|
-
imapTlsPort:
|
194
|
+
imapPort: number;
|
195
|
+
imapTlsPort: number;
|
196
196
|
useTlsForImap: boolean;
|
197
197
|
}>;
|
198
198
|
state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
|
@@ -213,12 +213,12 @@ export declare const accountContract: {
|
|
213
213
|
updatedAt: Date;
|
214
214
|
deletedAt: Date | null;
|
215
215
|
smtpHost: string;
|
216
|
-
smtpPort:
|
217
|
-
smtpTlsPort:
|
216
|
+
smtpPort: number;
|
217
|
+
smtpTlsPort: number;
|
218
218
|
useTlsForSmtp: boolean;
|
219
219
|
imapHost: string;
|
220
|
-
imapPort:
|
221
|
-
imapTlsPort:
|
220
|
+
imapPort: number;
|
221
|
+
imapTlsPort: number;
|
222
222
|
useTlsForImap: boolean;
|
223
223
|
};
|
224
224
|
}, {
|
@@ -238,12 +238,12 @@ export declare const accountContract: {
|
|
238
238
|
updatedAt: Date;
|
239
239
|
deletedAt: Date | null;
|
240
240
|
smtpHost: string;
|
241
|
-
smtpPort:
|
242
|
-
smtpTlsPort:
|
241
|
+
smtpPort: number;
|
242
|
+
smtpTlsPort: number;
|
243
243
|
useTlsForSmtp: boolean;
|
244
244
|
imapHost: string;
|
245
|
-
imapPort:
|
246
|
-
imapTlsPort:
|
245
|
+
imapPort: number;
|
246
|
+
imapTlsPort: number;
|
247
247
|
useTlsForImap: boolean;
|
248
248
|
};
|
249
249
|
}>;
|
@@ -265,12 +265,12 @@ export declare const accountContract: {
|
|
265
265
|
updatedAt: Date;
|
266
266
|
deletedAt: Date | null;
|
267
267
|
smtpHost: string;
|
268
|
-
smtpPort:
|
269
|
-
smtpTlsPort:
|
268
|
+
smtpPort: number;
|
269
|
+
smtpTlsPort: number;
|
270
270
|
useTlsForSmtp: boolean;
|
271
271
|
imapHost: string;
|
272
|
-
imapPort:
|
273
|
-
imapTlsPort:
|
272
|
+
imapPort: number;
|
273
|
+
imapTlsPort: number;
|
274
274
|
useTlsForImap: boolean;
|
275
275
|
};
|
276
276
|
};
|
@@ -293,12 +293,12 @@ export declare const accountContract: {
|
|
293
293
|
updatedAt: Date;
|
294
294
|
deletedAt: Date | null;
|
295
295
|
smtpHost: string;
|
296
|
-
smtpPort:
|
297
|
-
smtpTlsPort:
|
296
|
+
smtpPort: number;
|
297
|
+
smtpTlsPort: number;
|
298
298
|
useTlsForSmtp: boolean;
|
299
299
|
imapHost: string;
|
300
|
-
imapPort:
|
301
|
-
imapTlsPort:
|
300
|
+
imapPort: number;
|
301
|
+
imapTlsPort: number;
|
302
302
|
useTlsForImap: boolean;
|
303
303
|
};
|
304
304
|
};
|
@@ -403,12 +403,12 @@ export declare const accountContract: {
|
|
403
403
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
404
404
|
name: z.ZodString;
|
405
405
|
smtpHost: z.ZodString;
|
406
|
-
smtpPort: z.
|
407
|
-
smtpTlsPort: z.
|
406
|
+
smtpPort: z.ZodNumber;
|
407
|
+
smtpTlsPort: z.ZodNumber;
|
408
408
|
useTlsForSmtp: z.ZodBoolean;
|
409
409
|
imapHost: z.ZodString;
|
410
|
-
imapPort: z.
|
411
|
-
imapTlsPort: z.
|
410
|
+
imapPort: z.ZodNumber;
|
411
|
+
imapTlsPort: z.ZodNumber;
|
412
412
|
useTlsForImap: z.ZodBoolean;
|
413
413
|
}, "strip", z.ZodTypeAny, {
|
414
414
|
id: string;
|
@@ -417,12 +417,12 @@ export declare const accountContract: {
|
|
417
417
|
updatedAt: Date;
|
418
418
|
deletedAt: Date | null;
|
419
419
|
smtpHost: string;
|
420
|
-
smtpPort:
|
421
|
-
smtpTlsPort:
|
420
|
+
smtpPort: number;
|
421
|
+
smtpTlsPort: number;
|
422
422
|
useTlsForSmtp: boolean;
|
423
423
|
imapHost: string;
|
424
|
-
imapPort:
|
425
|
-
imapTlsPort:
|
424
|
+
imapPort: number;
|
425
|
+
imapTlsPort: number;
|
426
426
|
useTlsForImap: boolean;
|
427
427
|
}, {
|
428
428
|
id: string;
|
@@ -431,12 +431,12 @@ export declare const accountContract: {
|
|
431
431
|
updatedAt: Date;
|
432
432
|
deletedAt: Date | null;
|
433
433
|
smtpHost: string;
|
434
|
-
smtpPort:
|
435
|
-
smtpTlsPort:
|
434
|
+
smtpPort: number;
|
435
|
+
smtpTlsPort: number;
|
436
436
|
useTlsForSmtp: boolean;
|
437
437
|
imapHost: string;
|
438
|
-
imapPort:
|
439
|
-
imapTlsPort:
|
438
|
+
imapPort: number;
|
439
|
+
imapTlsPort: number;
|
440
440
|
useTlsForImap: boolean;
|
441
441
|
}>>;
|
442
442
|
state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>>;
|
@@ -456,12 +456,12 @@ export declare const accountContract: {
|
|
456
456
|
updatedAt: Date;
|
457
457
|
deletedAt: Date | null;
|
458
458
|
smtpHost: string;
|
459
|
-
smtpPort:
|
460
|
-
smtpTlsPort:
|
459
|
+
smtpPort: number;
|
460
|
+
smtpTlsPort: number;
|
461
461
|
useTlsForSmtp: boolean;
|
462
462
|
imapHost: string;
|
463
|
-
imapPort:
|
464
|
-
imapTlsPort:
|
463
|
+
imapPort: number;
|
464
|
+
imapTlsPort: number;
|
465
465
|
useTlsForImap: boolean;
|
466
466
|
} | undefined;
|
467
467
|
state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
|
@@ -481,12 +481,12 @@ export declare const accountContract: {
|
|
481
481
|
updatedAt: Date;
|
482
482
|
deletedAt: Date | null;
|
483
483
|
smtpHost: string;
|
484
|
-
smtpPort:
|
485
|
-
smtpTlsPort:
|
484
|
+
smtpPort: number;
|
485
|
+
smtpTlsPort: number;
|
486
486
|
useTlsForSmtp: boolean;
|
487
487
|
imapHost: string;
|
488
|
-
imapPort:
|
489
|
-
imapTlsPort:
|
488
|
+
imapPort: number;
|
489
|
+
imapTlsPort: number;
|
490
490
|
useTlsForImap: boolean;
|
491
491
|
} | undefined;
|
492
492
|
state?: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset" | undefined;
|
@@ -549,12 +549,12 @@ export declare const accountContract: {
|
|
549
549
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
550
550
|
name: z.ZodString;
|
551
551
|
smtpHost: z.ZodString;
|
552
|
-
smtpPort: z.
|
553
|
-
smtpTlsPort: z.
|
552
|
+
smtpPort: z.ZodNumber;
|
553
|
+
smtpTlsPort: z.ZodNumber;
|
554
554
|
useTlsForSmtp: z.ZodBoolean;
|
555
555
|
imapHost: z.ZodString;
|
556
|
-
imapPort: z.
|
557
|
-
imapTlsPort: z.
|
556
|
+
imapPort: z.ZodNumber;
|
557
|
+
imapTlsPort: z.ZodNumber;
|
558
558
|
useTlsForImap: z.ZodBoolean;
|
559
559
|
}, "strip", z.ZodTypeAny, {
|
560
560
|
id: string;
|
@@ -563,12 +563,12 @@ export declare const accountContract: {
|
|
563
563
|
updatedAt: Date;
|
564
564
|
deletedAt: Date | null;
|
565
565
|
smtpHost: string;
|
566
|
-
smtpPort:
|
567
|
-
smtpTlsPort:
|
566
|
+
smtpPort: number;
|
567
|
+
smtpTlsPort: number;
|
568
568
|
useTlsForSmtp: boolean;
|
569
569
|
imapHost: string;
|
570
|
-
imapPort:
|
571
|
-
imapTlsPort:
|
570
|
+
imapPort: number;
|
571
|
+
imapTlsPort: number;
|
572
572
|
useTlsForImap: boolean;
|
573
573
|
}, {
|
574
574
|
id: string;
|
@@ -577,12 +577,12 @@ export declare const accountContract: {
|
|
577
577
|
updatedAt: Date;
|
578
578
|
deletedAt: Date | null;
|
579
579
|
smtpHost: string;
|
580
|
-
smtpPort:
|
581
|
-
smtpTlsPort:
|
580
|
+
smtpPort: number;
|
581
|
+
smtpTlsPort: number;
|
582
582
|
useTlsForSmtp: boolean;
|
583
583
|
imapHost: string;
|
584
|
-
imapPort:
|
585
|
-
imapTlsPort:
|
584
|
+
imapPort: number;
|
585
|
+
imapTlsPort: number;
|
586
586
|
useTlsForImap: boolean;
|
587
587
|
}>;
|
588
588
|
state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
|
@@ -603,12 +603,12 @@ export declare const accountContract: {
|
|
603
603
|
updatedAt: Date;
|
604
604
|
deletedAt: Date | null;
|
605
605
|
smtpHost: string;
|
606
|
-
smtpPort:
|
607
|
-
smtpTlsPort:
|
606
|
+
smtpPort: number;
|
607
|
+
smtpTlsPort: number;
|
608
608
|
useTlsForSmtp: boolean;
|
609
609
|
imapHost: string;
|
610
|
-
imapPort:
|
611
|
-
imapTlsPort:
|
610
|
+
imapPort: number;
|
611
|
+
imapTlsPort: number;
|
612
612
|
useTlsForImap: boolean;
|
613
613
|
};
|
614
614
|
}, {
|
@@ -628,12 +628,12 @@ export declare const accountContract: {
|
|
628
628
|
updatedAt: Date;
|
629
629
|
deletedAt: Date | null;
|
630
630
|
smtpHost: string;
|
631
|
-
smtpPort:
|
632
|
-
smtpTlsPort:
|
631
|
+
smtpPort: number;
|
632
|
+
smtpTlsPort: number;
|
633
633
|
useTlsForSmtp: boolean;
|
634
634
|
imapHost: string;
|
635
|
-
imapPort:
|
636
|
-
imapTlsPort:
|
635
|
+
imapPort: number;
|
636
|
+
imapTlsPort: number;
|
637
637
|
useTlsForImap: boolean;
|
638
638
|
};
|
639
639
|
}>;
|
@@ -655,12 +655,12 @@ export declare const accountContract: {
|
|
655
655
|
updatedAt: Date;
|
656
656
|
deletedAt: Date | null;
|
657
657
|
smtpHost: string;
|
658
|
-
smtpPort:
|
659
|
-
smtpTlsPort:
|
658
|
+
smtpPort: number;
|
659
|
+
smtpTlsPort: number;
|
660
660
|
useTlsForSmtp: boolean;
|
661
661
|
imapHost: string;
|
662
|
-
imapPort:
|
663
|
-
imapTlsPort:
|
662
|
+
imapPort: number;
|
663
|
+
imapTlsPort: number;
|
664
664
|
useTlsForImap: boolean;
|
665
665
|
};
|
666
666
|
};
|
@@ -683,12 +683,12 @@ export declare const accountContract: {
|
|
683
683
|
updatedAt: Date;
|
684
684
|
deletedAt: Date | null;
|
685
685
|
smtpHost: string;
|
686
|
-
smtpPort:
|
687
|
-
smtpTlsPort:
|
686
|
+
smtpPort: number;
|
687
|
+
smtpTlsPort: number;
|
688
688
|
useTlsForSmtp: boolean;
|
689
689
|
imapHost: string;
|
690
|
-
imapPort:
|
691
|
-
imapTlsPort:
|
690
|
+
imapPort: number;
|
691
|
+
imapTlsPort: number;
|
692
692
|
useTlsForImap: boolean;
|
693
693
|
};
|
694
694
|
};
|
@@ -773,12 +773,12 @@ export declare const accountContract: {
|
|
773
773
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
774
774
|
name: z.ZodString;
|
775
775
|
smtpHost: z.ZodString;
|
776
|
-
smtpPort: z.
|
777
|
-
smtpTlsPort: z.
|
776
|
+
smtpPort: z.ZodNumber;
|
777
|
+
smtpTlsPort: z.ZodNumber;
|
778
778
|
useTlsForSmtp: z.ZodBoolean;
|
779
779
|
imapHost: z.ZodString;
|
780
|
-
imapPort: z.
|
781
|
-
imapTlsPort: z.
|
780
|
+
imapPort: z.ZodNumber;
|
781
|
+
imapTlsPort: z.ZodNumber;
|
782
782
|
useTlsForImap: z.ZodBoolean;
|
783
783
|
}, "strip", z.ZodTypeAny, {
|
784
784
|
id: string;
|
@@ -787,12 +787,12 @@ export declare const accountContract: {
|
|
787
787
|
updatedAt: Date;
|
788
788
|
deletedAt: Date | null;
|
789
789
|
smtpHost: string;
|
790
|
-
smtpPort:
|
791
|
-
smtpTlsPort:
|
790
|
+
smtpPort: number;
|
791
|
+
smtpTlsPort: number;
|
792
792
|
useTlsForSmtp: boolean;
|
793
793
|
imapHost: string;
|
794
|
-
imapPort:
|
795
|
-
imapTlsPort:
|
794
|
+
imapPort: number;
|
795
|
+
imapTlsPort: number;
|
796
796
|
useTlsForImap: boolean;
|
797
797
|
}, {
|
798
798
|
id: string;
|
@@ -801,12 +801,12 @@ export declare const accountContract: {
|
|
801
801
|
updatedAt: Date;
|
802
802
|
deletedAt: Date | null;
|
803
803
|
smtpHost: string;
|
804
|
-
smtpPort:
|
805
|
-
smtpTlsPort:
|
804
|
+
smtpPort: number;
|
805
|
+
smtpTlsPort: number;
|
806
806
|
useTlsForSmtp: boolean;
|
807
807
|
imapHost: string;
|
808
|
-
imapPort:
|
809
|
-
imapTlsPort:
|
808
|
+
imapPort: number;
|
809
|
+
imapTlsPort: number;
|
810
810
|
useTlsForImap: boolean;
|
811
811
|
}>;
|
812
812
|
state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
|
@@ -827,12 +827,12 @@ export declare const accountContract: {
|
|
827
827
|
updatedAt: Date;
|
828
828
|
deletedAt: Date | null;
|
829
829
|
smtpHost: string;
|
830
|
-
smtpPort:
|
831
|
-
smtpTlsPort:
|
830
|
+
smtpPort: number;
|
831
|
+
smtpTlsPort: number;
|
832
832
|
useTlsForSmtp: boolean;
|
833
833
|
imapHost: string;
|
834
|
-
imapPort:
|
835
|
-
imapTlsPort:
|
834
|
+
imapPort: number;
|
835
|
+
imapTlsPort: number;
|
836
836
|
useTlsForImap: boolean;
|
837
837
|
};
|
838
838
|
}, {
|
@@ -852,12 +852,12 @@ export declare const accountContract: {
|
|
852
852
|
updatedAt: Date;
|
853
853
|
deletedAt: Date | null;
|
854
854
|
smtpHost: string;
|
855
|
-
smtpPort:
|
856
|
-
smtpTlsPort:
|
855
|
+
smtpPort: number;
|
856
|
+
smtpTlsPort: number;
|
857
857
|
useTlsForSmtp: boolean;
|
858
858
|
imapHost: string;
|
859
|
-
imapPort:
|
860
|
-
imapTlsPort:
|
859
|
+
imapPort: number;
|
860
|
+
imapTlsPort: number;
|
861
861
|
useTlsForImap: boolean;
|
862
862
|
};
|
863
863
|
}>;
|
@@ -879,12 +879,12 @@ export declare const accountContract: {
|
|
879
879
|
updatedAt: Date;
|
880
880
|
deletedAt: Date | null;
|
881
881
|
smtpHost: string;
|
882
|
-
smtpPort:
|
883
|
-
smtpTlsPort:
|
882
|
+
smtpPort: number;
|
883
|
+
smtpTlsPort: number;
|
884
884
|
useTlsForSmtp: boolean;
|
885
885
|
imapHost: string;
|
886
|
-
imapPort:
|
887
|
-
imapTlsPort:
|
886
|
+
imapPort: number;
|
887
|
+
imapTlsPort: number;
|
888
888
|
useTlsForImap: boolean;
|
889
889
|
};
|
890
890
|
};
|
@@ -907,12 +907,12 @@ export declare const accountContract: {
|
|
907
907
|
updatedAt: Date;
|
908
908
|
deletedAt: Date | null;
|
909
909
|
smtpHost: string;
|
910
|
-
smtpPort:
|
911
|
-
smtpTlsPort:
|
910
|
+
smtpPort: number;
|
911
|
+
smtpTlsPort: number;
|
912
912
|
useTlsForSmtp: boolean;
|
913
913
|
imapHost: string;
|
914
|
-
imapPort:
|
915
|
-
imapTlsPort:
|
914
|
+
imapPort: number;
|
915
|
+
imapTlsPort: number;
|
916
916
|
useTlsForImap: boolean;
|
917
917
|
};
|
918
918
|
};
|
@@ -997,12 +997,12 @@ export declare const accountContract: {
|
|
997
997
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
998
998
|
name: z.ZodString;
|
999
999
|
smtpHost: z.ZodString;
|
1000
|
-
smtpPort: z.
|
1001
|
-
smtpTlsPort: z.
|
1000
|
+
smtpPort: z.ZodNumber;
|
1001
|
+
smtpTlsPort: z.ZodNumber;
|
1002
1002
|
useTlsForSmtp: z.ZodBoolean;
|
1003
1003
|
imapHost: z.ZodString;
|
1004
|
-
imapPort: z.
|
1005
|
-
imapTlsPort: z.
|
1004
|
+
imapPort: z.ZodNumber;
|
1005
|
+
imapTlsPort: z.ZodNumber;
|
1006
1006
|
useTlsForImap: z.ZodBoolean;
|
1007
1007
|
}, "strip", z.ZodTypeAny, {
|
1008
1008
|
id: string;
|
@@ -1011,12 +1011,12 @@ export declare const accountContract: {
|
|
1011
1011
|
updatedAt: Date;
|
1012
1012
|
deletedAt: Date | null;
|
1013
1013
|
smtpHost: string;
|
1014
|
-
smtpPort:
|
1015
|
-
smtpTlsPort:
|
1014
|
+
smtpPort: number;
|
1015
|
+
smtpTlsPort: number;
|
1016
1016
|
useTlsForSmtp: boolean;
|
1017
1017
|
imapHost: string;
|
1018
|
-
imapPort:
|
1019
|
-
imapTlsPort:
|
1018
|
+
imapPort: number;
|
1019
|
+
imapTlsPort: number;
|
1020
1020
|
useTlsForImap: boolean;
|
1021
1021
|
}, {
|
1022
1022
|
id: string;
|
@@ -1025,12 +1025,12 @@ export declare const accountContract: {
|
|
1025
1025
|
updatedAt: Date;
|
1026
1026
|
deletedAt: Date | null;
|
1027
1027
|
smtpHost: string;
|
1028
|
-
smtpPort:
|
1029
|
-
smtpTlsPort:
|
1028
|
+
smtpPort: number;
|
1029
|
+
smtpTlsPort: number;
|
1030
1030
|
useTlsForSmtp: boolean;
|
1031
1031
|
imapHost: string;
|
1032
|
-
imapPort:
|
1033
|
-
imapTlsPort:
|
1032
|
+
imapPort: number;
|
1033
|
+
imapTlsPort: number;
|
1034
1034
|
useTlsForImap: boolean;
|
1035
1035
|
}>;
|
1036
1036
|
state: z.ZodUnion<[z.ZodLiteral<"init">, z.ZodLiteral<"syncing">, z.ZodLiteral<"connecting">, z.ZodLiteral<"connected">, z.ZodLiteral<"disconnected">, z.ZodLiteral<"authenticationError">, z.ZodLiteral<"connectError">, z.ZodLiteral<"unset">]>;
|
@@ -1051,12 +1051,12 @@ export declare const accountContract: {
|
|
1051
1051
|
updatedAt: Date;
|
1052
1052
|
deletedAt: Date | null;
|
1053
1053
|
smtpHost: string;
|
1054
|
-
smtpPort:
|
1055
|
-
smtpTlsPort:
|
1054
|
+
smtpPort: number;
|
1055
|
+
smtpTlsPort: number;
|
1056
1056
|
useTlsForSmtp: boolean;
|
1057
1057
|
imapHost: string;
|
1058
|
-
imapPort:
|
1059
|
-
imapTlsPort:
|
1058
|
+
imapPort: number;
|
1059
|
+
imapTlsPort: number;
|
1060
1060
|
useTlsForImap: boolean;
|
1061
1061
|
};
|
1062
1062
|
}, {
|
@@ -1076,12 +1076,12 @@ export declare const accountContract: {
|
|
1076
1076
|
updatedAt: Date;
|
1077
1077
|
deletedAt: Date | null;
|
1078
1078
|
smtpHost: string;
|
1079
|
-
smtpPort:
|
1080
|
-
smtpTlsPort:
|
1079
|
+
smtpPort: number;
|
1080
|
+
smtpTlsPort: number;
|
1081
1081
|
useTlsForSmtp: boolean;
|
1082
1082
|
imapHost: string;
|
1083
|
-
imapPort:
|
1084
|
-
imapTlsPort:
|
1083
|
+
imapPort: number;
|
1084
|
+
imapTlsPort: number;
|
1085
1085
|
useTlsForImap: boolean;
|
1086
1086
|
};
|
1087
1087
|
}>;
|
@@ -1103,12 +1103,12 @@ export declare const accountContract: {
|
|
1103
1103
|
updatedAt: Date;
|
1104
1104
|
deletedAt: Date | null;
|
1105
1105
|
smtpHost: string;
|
1106
|
-
smtpPort:
|
1107
|
-
smtpTlsPort:
|
1106
|
+
smtpPort: number;
|
1107
|
+
smtpTlsPort: number;
|
1108
1108
|
useTlsForSmtp: boolean;
|
1109
1109
|
imapHost: string;
|
1110
|
-
imapPort:
|
1111
|
-
imapTlsPort:
|
1110
|
+
imapPort: number;
|
1111
|
+
imapTlsPort: number;
|
1112
1112
|
useTlsForImap: boolean;
|
1113
1113
|
};
|
1114
1114
|
};
|
@@ -1131,12 +1131,12 @@ export declare const accountContract: {
|
|
1131
1131
|
updatedAt: Date;
|
1132
1132
|
deletedAt: Date | null;
|
1133
1133
|
smtpHost: string;
|
1134
|
-
smtpPort:
|
1135
|
-
smtpTlsPort:
|
1134
|
+
smtpPort: number;
|
1135
|
+
smtpTlsPort: number;
|
1136
1136
|
useTlsForSmtp: boolean;
|
1137
1137
|
imapHost: string;
|
1138
|
-
imapPort:
|
1139
|
-
imapTlsPort:
|
1138
|
+
imapPort: number;
|
1139
|
+
imapTlsPort: number;
|
1140
1140
|
useTlsForImap: boolean;
|
1141
1141
|
};
|
1142
1142
|
};
|
package/dist/src/mail/index.d.ts
CHANGED
@@ -2,7 +2,17 @@ import z from 'zod';
|
|
2
2
|
import { AccountContractsValidationSchemas } from './schemas/account-validation.schema';
|
3
3
|
import { MessageContractsValidationsSchema } from './schemas/message-validation.schema';
|
4
4
|
import { RoomContractsValidationSchema } from './schemas/room-validation.schema';
|
5
|
+
import { MailAccountSchema, MailServerSchema } from './schemas/account.schema';
|
6
|
+
import { MessageSchema } from './schemas/message.schema';
|
7
|
+
import { AttachmentSchema, MailRoomSchema, MailUserSchema, MessagesAndLogsSchema } from './schemas/room.schema';
|
5
8
|
export * from './mail-contract';
|
9
|
+
export type MailServer = z.infer<typeof MailServerSchema>;
|
10
|
+
export type MailAccount = z.infer<typeof MailAccountSchema>;
|
11
|
+
export type MailMessage = z.infer<typeof MessageSchema>;
|
12
|
+
export type Attachment = z.infer<typeof AttachmentSchema>;
|
13
|
+
export type MailRoom = z.infer<typeof MailRoomSchema>;
|
14
|
+
export type MailParticipant = z.infer<typeof MailUserSchema>;
|
15
|
+
export type MessagesAndLogs = z.infer<typeof MessagesAndLogsSchema>;
|
6
16
|
export type AccountCreateRequest = z.infer<typeof AccountContractsValidationSchemas.create.input>;
|
7
17
|
export type AccountUpdateRequest = z.infer<typeof AccountContractsValidationSchemas.update.input>;
|
8
18
|
export type SubmitMessageRequest = z.infer<typeof MessageContractsValidationsSchema.submit.input>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mail/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mail/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAE/B,cAAc,iBAAiB,CAAC;AAEhC,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,iCAAiC,CAAC,MAAM,CAAC,KAAK,CACtD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,iCAAiC,CAAC,MAAM,CAAC,KAAK,CACtD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CACxC,OAAO,iCAAiC,CAAC,MAAM,CAAC,KAAK,CACtD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,iCAAiC,CAAC,MAAM,CAAC,MAAM,CACvD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACrC,OAAO,6BAA6B,CAAC,MAAM,CAAC,KAAK,CAClD,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CACtC,OAAO,6BAA6B,CAAC,MAAM,CAAC,MAAM,CACnD,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CACrC,OAAO,6BAA6B,CAAC,MAAM,CAAC,KAAK,CAClD,CAAC"}
|