@kl1/contracts 1.3.0 → 1.3.2

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.
@@ -14,7 +14,7 @@ export declare const whatsappContract: {
14
14
  lastMessage: z.ZodOptional<z.ZodString>;
15
15
  handleTime: z.ZodOptional<z.ZodNumber>;
16
16
  isLatest: z.ZodBoolean;
17
- direction: z.ZodEnum<[string, ...string[]]>;
17
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
18
18
  metadata: z.ZodOptional<z.ZodAny>;
19
19
  createdAt: z.ZodString;
20
20
  updatedAt: z.ZodString;
@@ -436,7 +436,7 @@ export declare const whatsappContract: {
436
436
  connectedUserName?: string | null | undefined;
437
437
  connectedUserId?: string | null | undefined;
438
438
  };
439
- direction: string;
439
+ direction: "incoming" | "outgoing" | "system";
440
440
  createdAt: string;
441
441
  updatedAt: string;
442
442
  actor: {
@@ -528,7 +528,7 @@ export declare const whatsappContract: {
528
528
  connectedUserName?: string | null | undefined;
529
529
  connectedUserId?: string | null | undefined;
530
530
  };
531
- direction: string;
531
+ direction: "incoming" | "outgoing" | "system";
532
532
  createdAt: string;
533
533
  updatedAt: string;
534
534
  actor: {
@@ -573,8 +573,8 @@ export declare const whatsappContract: {
573
573
  message: z.ZodObject<{
574
574
  id: z.ZodOptional<z.ZodString>;
575
575
  message: z.ZodOptional<z.ZodString>;
576
- direction: z.ZodEnum<[string, ...string[]]>;
577
- type: z.ZodEnum<[string, ...string[]]>;
576
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
577
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
578
578
  readAt: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDate, z.ZodString]>>>;
579
579
  metadata: z.ZodOptional<z.ZodAny>;
580
580
  platformId: z.ZodOptional<z.ZodString>;
@@ -631,7 +631,7 @@ export declare const whatsappContract: {
631
631
  label: z.ZodOptional<z.ZodString>;
632
632
  }, "strip", z.ZodTypeAny, {
633
633
  type: string;
634
- direction: string;
634
+ direction: "incoming" | "outgoing" | "system";
635
635
  message?: string | undefined;
636
636
  id?: string | undefined;
637
637
  url?: string | undefined;
@@ -666,7 +666,7 @@ export declare const whatsappContract: {
666
666
  editedAt?: string | Date | null | undefined;
667
667
  }, {
668
668
  type: string;
669
- direction: string;
669
+ direction: "incoming" | "outgoing" | "system";
670
670
  message?: string | undefined;
671
671
  id?: string | undefined;
672
672
  url?: string | undefined;
@@ -703,7 +703,7 @@ export declare const whatsappContract: {
703
703
  }, "strip", z.ZodTypeAny, {
704
704
  message: {
705
705
  type: string;
706
- direction: string;
706
+ direction: "incoming" | "outgoing" | "system";
707
707
  message?: string | undefined;
708
708
  id?: string | undefined;
709
709
  url?: string | undefined;
@@ -788,7 +788,7 @@ export declare const whatsappContract: {
788
788
  connectedUserName?: string | null | undefined;
789
789
  connectedUserId?: string | null | undefined;
790
790
  };
791
- direction: string;
791
+ direction: "incoming" | "outgoing" | "system";
792
792
  createdAt: string;
793
793
  updatedAt: string;
794
794
  actor: {
@@ -834,7 +834,7 @@ export declare const whatsappContract: {
834
834
  }, {
835
835
  message: {
836
836
  type: string;
837
- direction: string;
837
+ direction: "incoming" | "outgoing" | "system";
838
838
  message?: string | undefined;
839
839
  id?: string | undefined;
840
840
  url?: string | undefined;
@@ -919,7 +919,7 @@ export declare const whatsappContract: {
919
919
  connectedUserName?: string | null | undefined;
920
920
  connectedUserId?: string | null | undefined;
921
921
  };
922
- direction: string;
922
+ direction: "incoming" | "outgoing" | "system";
923
923
  createdAt: string;
924
924
  updatedAt: string;
925
925
  actor: {
@@ -976,8 +976,8 @@ export declare const whatsappContract: {
976
976
  deletedAt: z.ZodNullable<z.ZodDate>;
977
977
  }, {
978
978
  message: z.ZodString;
979
- direction: z.ZodEnum<[string, ...string[]]>;
980
- type: z.ZodEnum<[string, ...string[]]>;
979
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
980
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
981
981
  readAt: z.ZodDate;
982
982
  metadata: z.ZodAny;
983
983
  platformId: z.ZodString;
@@ -1004,7 +1004,7 @@ export declare const whatsappContract: {
1004
1004
  firstResponseTime: z.ZodNumber;
1005
1005
  isLatest: z.ZodBoolean;
1006
1006
  isBotRoom: z.ZodBoolean;
1007
- direction: z.ZodEnum<[string, ...string[]]>;
1007
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
1008
1008
  platformContact: z.ZodObject<{
1009
1009
  id: z.ZodString;
1010
1010
  createdAt: z.ZodDate;
@@ -3689,7 +3689,7 @@ export declare const whatsappContract: {
3689
3689
  integrationId: string;
3690
3690
  } | null;
3691
3691
  };
3692
- direction: string;
3692
+ direction: "incoming" | "outgoing" | "system";
3693
3693
  status: number;
3694
3694
  createdAt: Date;
3695
3695
  updatedAt: Date;
@@ -4118,7 +4118,7 @@ export declare const whatsappContract: {
4118
4118
  integrationId: string;
4119
4119
  } | null;
4120
4120
  };
4121
- direction: string;
4121
+ direction: "incoming" | "outgoing" | "system";
4122
4122
  status: number;
4123
4123
  createdAt: Date;
4124
4124
  updatedAt: Date;
@@ -4492,8 +4492,8 @@ export declare const whatsappContract: {
4492
4492
  deletedAt: z.ZodNullable<z.ZodDate>;
4493
4493
  }, {
4494
4494
  message: z.ZodString;
4495
- direction: z.ZodEnum<[string, ...string[]]>;
4496
- type: z.ZodEnum<[string, ...string[]]>;
4495
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
4496
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
4497
4497
  readAt: z.ZodDate;
4498
4498
  metadata: z.ZodAny;
4499
4499
  platformId: z.ZodString;
@@ -5159,7 +5159,7 @@ export declare const whatsappContract: {
5159
5159
  message: string;
5160
5160
  id: string;
5161
5161
  url: string;
5162
- direction: string;
5162
+ direction: "incoming" | "outgoing" | "system";
5163
5163
  createdAt: Date;
5164
5164
  updatedAt: Date;
5165
5165
  deletedAt: Date | null;
@@ -5321,7 +5321,7 @@ export declare const whatsappContract: {
5321
5321
  message: string;
5322
5322
  id: string;
5323
5323
  url: string;
5324
- direction: string;
5324
+ direction: "incoming" | "outgoing" | "system";
5325
5325
  createdAt: Date;
5326
5326
  updatedAt: Date;
5327
5327
  deletedAt: Date | null;
@@ -6127,8 +6127,8 @@ export declare const whatsappContract: {
6127
6127
  deletedAt: z.ZodNullable<z.ZodDate>;
6128
6128
  }, {
6129
6129
  message: z.ZodString;
6130
- direction: z.ZodEnum<[string, ...string[]]>;
6131
- type: z.ZodEnum<[string, ...string[]]>;
6130
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
6131
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
6132
6132
  readAt: z.ZodDate;
6133
6133
  metadata: z.ZodAny;
6134
6134
  platformId: z.ZodString;
@@ -6155,7 +6155,7 @@ export declare const whatsappContract: {
6155
6155
  firstResponseTime: z.ZodNumber;
6156
6156
  isLatest: z.ZodBoolean;
6157
6157
  isBotRoom: z.ZodBoolean;
6158
- direction: z.ZodEnum<[string, ...string[]]>;
6158
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
6159
6159
  platformContact: z.ZodObject<{
6160
6160
  id: z.ZodString;
6161
6161
  createdAt: z.ZodDate;
@@ -8840,7 +8840,7 @@ export declare const whatsappContract: {
8840
8840
  integrationId: string;
8841
8841
  } | null;
8842
8842
  };
8843
- direction: string;
8843
+ direction: "incoming" | "outgoing" | "system";
8844
8844
  status: number;
8845
8845
  createdAt: Date;
8846
8846
  updatedAt: Date;
@@ -9269,7 +9269,7 @@ export declare const whatsappContract: {
9269
9269
  integrationId: string;
9270
9270
  } | null;
9271
9271
  };
9272
- direction: string;
9272
+ direction: "incoming" | "outgoing" | "system";
9273
9273
  status: number;
9274
9274
  createdAt: Date;
9275
9275
  updatedAt: Date;
@@ -9643,8 +9643,8 @@ export declare const whatsappContract: {
9643
9643
  deletedAt: z.ZodNullable<z.ZodDate>;
9644
9644
  }, {
9645
9645
  message: z.ZodString;
9646
- direction: z.ZodEnum<[string, ...string[]]>;
9647
- type: z.ZodEnum<[string, ...string[]]>;
9646
+ direction: z.ZodUnion<[z.ZodLiteral<"incoming">, z.ZodLiteral<"outgoing">, z.ZodLiteral<"system">]>;
9647
+ type: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
9648
9648
  readAt: z.ZodDate;
9649
9649
  metadata: z.ZodAny;
9650
9650
  platformId: z.ZodString;
@@ -10310,7 +10310,7 @@ export declare const whatsappContract: {
10310
10310
  message: string;
10311
10311
  id: string;
10312
10312
  url: string;
10313
- direction: string;
10313
+ direction: "incoming" | "outgoing" | "system";
10314
10314
  createdAt: Date;
10315
10315
  updatedAt: Date;
10316
10316
  deletedAt: Date | null;
@@ -10472,7 +10472,7 @@ export declare const whatsappContract: {
10472
10472
  message: string;
10473
10473
  id: string;
10474
10474
  url: string;
10475
- direction: string;
10475
+ direction: "incoming" | "outgoing" | "system";
10476
10476
  createdAt: Date;
10477
10477
  updatedAt: Date;
10478
10478
  deletedAt: Date | null;
@@ -11275,7 +11275,7 @@ export declare const whatsappContract: {
11275
11275
  message: string;
11276
11276
  id: string;
11277
11277
  url: string;
11278
- direction: string;
11278
+ direction: "incoming" | "outgoing" | "system";
11279
11279
  createdAt: Date;
11280
11280
  updatedAt: Date;
11281
11281
  deletedAt: Date | null;
@@ -11478,7 +11478,7 @@ export declare const whatsappContract: {
11478
11478
  integrationId: string;
11479
11479
  } | null;
11480
11480
  };
11481
- direction: string;
11481
+ direction: "incoming" | "outgoing" | "system";
11482
11482
  status: number;
11483
11483
  createdAt: Date;
11484
11484
  updatedAt: Date;
@@ -11830,7 +11830,7 @@ export declare const whatsappContract: {
11830
11830
  message: string;
11831
11831
  id: string;
11832
11832
  url: string;
11833
- direction: string;
11833
+ direction: "incoming" | "outgoing" | "system";
11834
11834
  createdAt: Date;
11835
11835
  updatedAt: Date;
11836
11836
  deletedAt: Date | null;
@@ -12041,7 +12041,7 @@ export declare const whatsappContract: {
12041
12041
  message: string;
12042
12042
  id: string;
12043
12043
  url: string;
12044
- direction: string;
12044
+ direction: "incoming" | "outgoing" | "system";
12045
12045
  createdAt: Date;
12046
12046
  updatedAt: Date;
12047
12047
  deletedAt: Date | null;
@@ -12244,7 +12244,7 @@ export declare const whatsappContract: {
12244
12244
  integrationId: string;
12245
12245
  } | null;
12246
12246
  };
12247
- direction: string;
12247
+ direction: "incoming" | "outgoing" | "system";
12248
12248
  status: number;
12249
12249
  createdAt: Date;
12250
12250
  updatedAt: Date;
@@ -12596,7 +12596,7 @@ export declare const whatsappContract: {
12596
12596
  message: string;
12597
12597
  id: string;
12598
12598
  url: string;
12599
- direction: string;
12599
+ direction: "incoming" | "outgoing" | "system";
12600
12600
  createdAt: Date;
12601
12601
  updatedAt: Date;
12602
12602
  deletedAt: Date | null;
@@ -12808,7 +12808,7 @@ export declare const whatsappContract: {
12808
12808
  message: string;
12809
12809
  id: string;
12810
12810
  url: string;
12811
- direction: string;
12811
+ direction: "incoming" | "outgoing" | "system";
12812
12812
  createdAt: Date;
12813
12813
  updatedAt: Date;
12814
12814
  deletedAt: Date | null;
@@ -13011,7 +13011,7 @@ export declare const whatsappContract: {
13011
13011
  integrationId: string;
13012
13012
  } | null;
13013
13013
  };
13014
- direction: string;
13014
+ direction: "incoming" | "outgoing" | "system";
13015
13015
  status: number;
13016
13016
  createdAt: Date;
13017
13017
  updatedAt: Date;
@@ -13363,7 +13363,7 @@ export declare const whatsappContract: {
13363
13363
  message: string;
13364
13364
  id: string;
13365
13365
  url: string;
13366
- direction: string;
13366
+ direction: "incoming" | "outgoing" | "system";
13367
13367
  createdAt: Date;
13368
13368
  updatedAt: Date;
13369
13369
  deletedAt: Date | null;
@@ -13574,7 +13574,7 @@ export declare const whatsappContract: {
13574
13574
  message: string;
13575
13575
  id: string;
13576
13576
  url: string;
13577
- direction: string;
13577
+ direction: "incoming" | "outgoing" | "system";
13578
13578
  createdAt: Date;
13579
13579
  updatedAt: Date;
13580
13580
  deletedAt: Date | null;
@@ -13777,7 +13777,7 @@ export declare const whatsappContract: {
13777
13777
  integrationId: string;
13778
13778
  } | null;
13779
13779
  };
13780
- direction: string;
13780
+ direction: "incoming" | "outgoing" | "system";
13781
13781
  status: number;
13782
13782
  createdAt: Date;
13783
13783
  updatedAt: Date;
@@ -14129,7 +14129,7 @@ export declare const whatsappContract: {
14129
14129
  message: string;
14130
14130
  id: string;
14131
14131
  url: string;
14132
- direction: string;
14132
+ direction: "incoming" | "outgoing" | "system";
14133
14133
  createdAt: Date;
14134
14134
  updatedAt: Date;
14135
14135
  deletedAt: Date | null;
@@ -14341,7 +14341,7 @@ export declare const whatsappContract: {
14341
14341
  message: string;
14342
14342
  id: string;
14343
14343
  url: string;
14344
- direction: string;
14344
+ direction: "incoming" | "outgoing" | "system";
14345
14345
  createdAt: Date;
14346
14346
  updatedAt: Date;
14347
14347
  deletedAt: Date | null;
@@ -14544,7 +14544,7 @@ export declare const whatsappContract: {
14544
14544
  integrationId: string;
14545
14545
  } | null;
14546
14546
  };
14547
- direction: string;
14547
+ direction: "incoming" | "outgoing" | "system";
14548
14548
  status: number;
14549
14549
  createdAt: Date;
14550
14550
  updatedAt: Date;
@@ -14896,7 +14896,7 @@ export declare const whatsappContract: {
14896
14896
  message: string;
14897
14897
  id: string;
14898
14898
  url: string;
14899
- direction: string;
14899
+ direction: "incoming" | "outgoing" | "system";
14900
14900
  createdAt: Date;
14901
14901
  updatedAt: Date;
14902
14902
  deletedAt: Date | null;
@@ -15107,7 +15107,7 @@ export declare const whatsappContract: {
15107
15107
  message: string;
15108
15108
  id: string;
15109
15109
  url: string;
15110
- direction: string;
15110
+ direction: "incoming" | "outgoing" | "system";
15111
15111
  createdAt: Date;
15112
15112
  updatedAt: Date;
15113
15113
  deletedAt: Date | null;
@@ -15310,7 +15310,7 @@ export declare const whatsappContract: {
15310
15310
  integrationId: string;
15311
15311
  } | null;
15312
15312
  };
15313
- direction: string;
15313
+ direction: "incoming" | "outgoing" | "system";
15314
15314
  status: number;
15315
15315
  createdAt: Date;
15316
15316
  updatedAt: Date;
@@ -15662,7 +15662,7 @@ export declare const whatsappContract: {
15662
15662
  message: string;
15663
15663
  id: string;
15664
15664
  url: string;
15665
- direction: string;
15665
+ direction: "incoming" | "outgoing" | "system";
15666
15666
  createdAt: Date;
15667
15667
  updatedAt: Date;
15668
15668
  deletedAt: Date | null;
@@ -15876,7 +15876,7 @@ export declare const whatsappContract: {
15876
15876
  message: string;
15877
15877
  id: string;
15878
15878
  url: string;
15879
- direction: string;
15879
+ direction: "incoming" | "outgoing" | "system";
15880
15880
  createdAt: Date;
15881
15881
  updatedAt: Date;
15882
15882
  deletedAt: Date | null;
@@ -16079,7 +16079,7 @@ export declare const whatsappContract: {
16079
16079
  integrationId: string;
16080
16080
  } | null;
16081
16081
  };
16082
- direction: string;
16082
+ direction: "incoming" | "outgoing" | "system";
16083
16083
  status: number;
16084
16084
  createdAt: Date;
16085
16085
  updatedAt: Date;
@@ -16431,7 +16431,7 @@ export declare const whatsappContract: {
16431
16431
  message: string;
16432
16432
  id: string;
16433
16433
  url: string;
16434
- direction: string;
16434
+ direction: "incoming" | "outgoing" | "system";
16435
16435
  createdAt: Date;
16436
16436
  updatedAt: Date;
16437
16437
  deletedAt: Date | null;
@@ -16642,7 +16642,7 @@ export declare const whatsappContract: {
16642
16642
  message: string;
16643
16643
  id: string;
16644
16644
  url: string;
16645
- direction: string;
16645
+ direction: "incoming" | "outgoing" | "system";
16646
16646
  createdAt: Date;
16647
16647
  updatedAt: Date;
16648
16648
  deletedAt: Date | null;
@@ -16845,7 +16845,7 @@ export declare const whatsappContract: {
16845
16845
  integrationId: string;
16846
16846
  } | null;
16847
16847
  };
16848
- direction: string;
16848
+ direction: "incoming" | "outgoing" | "system";
16849
16849
  status: number;
16850
16850
  createdAt: Date;
16851
16851
  updatedAt: Date;
@@ -17197,7 +17197,7 @@ export declare const whatsappContract: {
17197
17197
  message: string;
17198
17198
  id: string;
17199
17199
  url: string;
17200
- direction: string;
17200
+ direction: "incoming" | "outgoing" | "system";
17201
17201
  createdAt: Date;
17202
17202
  updatedAt: Date;
17203
17203
  deletedAt: Date | null;
@@ -17412,7 +17412,7 @@ export declare const whatsappContract: {
17412
17412
  message: string;
17413
17413
  id: string;
17414
17414
  url: string;
17415
- direction: string;
17415
+ direction: "incoming" | "outgoing" | "system";
17416
17416
  createdAt: Date;
17417
17417
  updatedAt: Date;
17418
17418
  deletedAt: Date | null;
@@ -17615,7 +17615,7 @@ export declare const whatsappContract: {
17615
17615
  integrationId: string;
17616
17616
  } | null;
17617
17617
  };
17618
- direction: string;
17618
+ direction: "incoming" | "outgoing" | "system";
17619
17619
  status: number;
17620
17620
  createdAt: Date;
17621
17621
  updatedAt: Date;
@@ -17967,7 +17967,7 @@ export declare const whatsappContract: {
17967
17967
  message: string;
17968
17968
  id: string;
17969
17969
  url: string;
17970
- direction: string;
17970
+ direction: "incoming" | "outgoing" | "system";
17971
17971
  createdAt: Date;
17972
17972
  updatedAt: Date;
17973
17973
  deletedAt: Date | null;
@@ -18178,7 +18178,7 @@ export declare const whatsappContract: {
18178
18178
  message: string;
18179
18179
  id: string;
18180
18180
  url: string;
18181
- direction: string;
18181
+ direction: "incoming" | "outgoing" | "system";
18182
18182
  createdAt: Date;
18183
18183
  updatedAt: Date;
18184
18184
  deletedAt: Date | null;
@@ -18381,7 +18381,7 @@ export declare const whatsappContract: {
18381
18381
  integrationId: string;
18382
18382
  } | null;
18383
18383
  };
18384
- direction: string;
18384
+ direction: "incoming" | "outgoing" | "system";
18385
18385
  status: number;
18386
18386
  createdAt: Date;
18387
18387
  updatedAt: Date;
@@ -18733,7 +18733,7 @@ export declare const whatsappContract: {
18733
18733
  message: string;
18734
18734
  id: string;
18735
18735
  url: string;
18736
- direction: string;
18736
+ direction: "incoming" | "outgoing" | "system";
18737
18737
  createdAt: Date;
18738
18738
  updatedAt: Date;
18739
18739
  deletedAt: Date | null;