@dakkitor/api-contracts 1.1.37 → 1.1.38

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.
@@ -33,10 +33,10 @@ export declare const LeadSchema: z.ZodObject<{
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  id: string;
35
35
  name: string;
36
+ phoneNumber: string;
36
37
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
37
38
  createdAt: string;
38
39
  updatedAt: string;
39
- phoneNumber: string;
40
40
  source: string;
41
41
  totalCalls?: number | null | undefined;
42
42
  qualityScore?: number | null | undefined;
@@ -46,10 +46,10 @@ export declare const LeadSchema: z.ZodObject<{
46
46
  }, {
47
47
  id: string;
48
48
  name: string;
49
+ phoneNumber: string;
49
50
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
50
51
  createdAt: string | Date;
51
52
  updatedAt: string | Date;
52
- phoneNumber: string;
53
53
  source: string;
54
54
  totalCalls?: number | null | undefined;
55
55
  qualityScore?: number | null | undefined;
@@ -93,14 +93,14 @@ export declare const UpdateLeadSchema: z.ZodObject<{
93
93
  source: z.ZodOptional<z.ZodString>;
94
94
  }, "strip", z.ZodTypeAny, {
95
95
  name?: string | undefined;
96
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
97
96
  phoneNumber?: string | undefined;
97
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
98
98
  source?: string | undefined;
99
99
  blacklistReason?: string | undefined;
100
100
  }, {
101
101
  name?: string | undefined;
102
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
103
102
  phoneNumber?: string | undefined;
103
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
104
104
  source?: string | undefined;
105
105
  blacklistReason?: string | undefined;
106
106
  }>;
@@ -126,10 +126,10 @@ export declare const FilterLeadSchema: z.ZodObject<{
126
126
  limit: number;
127
127
  page: number;
128
128
  name?: string | null | undefined;
129
+ phoneNumber?: string | null | undefined;
129
130
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
130
- sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
131
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
131
132
  sortOrder?: "ASC" | "DESC" | null | undefined;
132
- phoneNumber?: string | null | undefined;
133
133
  source?: string | null | undefined;
134
134
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
135
135
  minQualityScore?: number | null | undefined;
@@ -138,12 +138,12 @@ export declare const FilterLeadSchema: z.ZodObject<{
138
138
  minTotalCalls?: number | null | undefined;
139
139
  }, {
140
140
  name?: string | null | undefined;
141
+ phoneNumber?: string | null | undefined;
141
142
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
142
143
  limit?: number | undefined;
143
144
  page?: number | undefined;
144
- sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
145
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
145
146
  sortOrder?: "ASC" | "DESC" | null | undefined;
146
- phoneNumber?: string | null | undefined;
147
147
  source?: string | null | undefined;
148
148
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
149
149
  minQualityScore?: number | null | undefined;
@@ -168,11 +168,11 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
168
168
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
169
169
  }, "strip", z.ZodTypeAny, {
170
170
  id: string;
171
+ assignmentId: string;
172
+ leadId: string;
173
+ agentId: string;
171
174
  createdAt: string;
172
175
  updatedAt: string;
173
- agentId: string;
174
- leadId: string;
175
- assignmentId: string;
176
176
  callDate: string;
177
177
  callType: import("../call-history/call-history.contract").CallType;
178
178
  rating: import("../common/call-rating.schema").CallRating;
@@ -180,11 +180,11 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
180
180
  notes?: string | null | undefined;
181
181
  }, {
182
182
  id: string;
183
+ assignmentId: string;
184
+ leadId: string;
185
+ agentId: string;
183
186
  createdAt: string | Date;
184
187
  updatedAt: string | Date;
185
- agentId: string;
186
- leadId: string;
187
- assignmentId: string;
188
188
  callDate: string | Date;
189
189
  callType: import("../call-history/call-history.contract").CallType;
190
190
  rating: import("../common/call-rating.schema").CallRating;
@@ -271,10 +271,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
271
271
  }, "strip", z.ZodTypeAny, {
272
272
  id: string;
273
273
  name: string;
274
+ phoneNumber: string;
274
275
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
275
276
  createdAt: string;
276
277
  updatedAt: string;
277
- phoneNumber: string;
278
278
  source: string;
279
279
  totalCalls?: number | null | undefined;
280
280
  qualityScore?: number | null | undefined;
@@ -284,10 +284,10 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
284
284
  }, {
285
285
  id: string;
286
286
  name: string;
287
+ phoneNumber: string;
287
288
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
288
289
  createdAt: string | Date;
289
290
  updatedAt: string | Date;
290
- phoneNumber: string;
291
291
  source: string;
292
292
  totalCalls?: number | null | undefined;
293
293
  qualityScore?: number | null | undefined;
@@ -301,14 +301,13 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
301
301
  currentPage: z.ZodNumber;
302
302
  totalPages: z.ZodNumber;
303
303
  }, "strip", z.ZodTypeAny, {
304
- limit: number;
305
304
  items: {
306
305
  id: string;
307
306
  name: string;
307
+ phoneNumber: string;
308
308
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
309
309
  createdAt: string;
310
310
  updatedAt: string;
311
- phoneNumber: string;
312
311
  source: string;
313
312
  totalCalls?: number | null | undefined;
314
313
  qualityScore?: number | null | undefined;
@@ -317,18 +316,18 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
317
316
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
318
317
  }[];
319
318
  totalCount: number;
319
+ limit: number;
320
320
  skip: number;
321
321
  currentPage: number;
322
322
  totalPages: number;
323
323
  }, {
324
- limit: number;
325
324
  items: {
326
325
  id: string;
327
326
  name: string;
327
+ phoneNumber: string;
328
328
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
329
329
  createdAt: string | Date;
330
330
  updatedAt: string | Date;
331
- phoneNumber: string;
332
331
  source: string;
333
332
  totalCalls?: number | null | undefined;
334
333
  qualityScore?: number | null | undefined;
@@ -337,6 +336,7 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
337
336
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
338
337
  }[];
339
338
  totalCount: number;
339
+ limit: number;
340
340
  skip: number;
341
341
  currentPage: number;
342
342
  totalPages: number;
@@ -499,10 +499,10 @@ export declare const leadsContractRouter: {
499
499
  }, "strip", z.ZodTypeAny, {
500
500
  id: string;
501
501
  name: string;
502
+ phoneNumber: string;
502
503
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
503
504
  createdAt: string;
504
505
  updatedAt: string;
505
- phoneNumber: string;
506
506
  source: string;
507
507
  totalCalls?: number | null | undefined;
508
508
  qualityScore?: number | null | undefined;
@@ -512,10 +512,10 @@ export declare const leadsContractRouter: {
512
512
  }, {
513
513
  id: string;
514
514
  name: string;
515
+ phoneNumber: string;
515
516
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
516
517
  createdAt: string | Date;
517
518
  updatedAt: string | Date;
518
- phoneNumber: string;
519
519
  source: string;
520
520
  totalCalls?: number | null | undefined;
521
521
  qualityScore?: number | null | undefined;
@@ -576,10 +576,10 @@ export declare const leadsContractRouter: {
576
576
  limit: number;
577
577
  page: number;
578
578
  name?: string | null | undefined;
579
+ phoneNumber?: string | null | undefined;
579
580
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
580
- sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
581
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
581
582
  sortOrder?: "ASC" | "DESC" | null | undefined;
582
- phoneNumber?: string | null | undefined;
583
583
  source?: string | null | undefined;
584
584
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
585
585
  minQualityScore?: number | null | undefined;
@@ -588,12 +588,12 @@ export declare const leadsContractRouter: {
588
588
  minTotalCalls?: number | null | undefined;
589
589
  }, {
590
590
  name?: string | null | undefined;
591
+ phoneNumber?: string | null | undefined;
591
592
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
592
593
  limit?: number | undefined;
593
594
  page?: number | undefined;
594
- sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
595
+ sortBy?: "name" | "phoneNumber" | "status" | "createdAt" | "updatedAt" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
595
596
  sortOrder?: "ASC" | "DESC" | null | undefined;
596
- phoneNumber?: string | null | undefined;
597
597
  source?: string | null | undefined;
598
598
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
599
599
  minQualityScore?: number | null | undefined;
@@ -722,10 +722,10 @@ export declare const leadsContractRouter: {
722
722
  }, "strip", z.ZodTypeAny, {
723
723
  id: string;
724
724
  name: string;
725
+ phoneNumber: string;
725
726
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
726
727
  createdAt: string;
727
728
  updatedAt: string;
728
- phoneNumber: string;
729
729
  source: string;
730
730
  totalCalls?: number | null | undefined;
731
731
  qualityScore?: number | null | undefined;
@@ -735,10 +735,10 @@ export declare const leadsContractRouter: {
735
735
  }, {
736
736
  id: string;
737
737
  name: string;
738
+ phoneNumber: string;
738
739
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
739
740
  createdAt: string | Date;
740
741
  updatedAt: string | Date;
741
- phoneNumber: string;
742
742
  source: string;
743
743
  totalCalls?: number | null | undefined;
744
744
  qualityScore?: number | null | undefined;
@@ -752,14 +752,13 @@ export declare const leadsContractRouter: {
752
752
  currentPage: z.ZodNumber;
753
753
  totalPages: z.ZodNumber;
754
754
  }, "strip", z.ZodTypeAny, {
755
- limit: number;
756
755
  items: {
757
756
  id: string;
758
757
  name: string;
758
+ phoneNumber: string;
759
759
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
760
760
  createdAt: string;
761
761
  updatedAt: string;
762
- phoneNumber: string;
763
762
  source: string;
764
763
  totalCalls?: number | null | undefined;
765
764
  qualityScore?: number | null | undefined;
@@ -768,18 +767,18 @@ export declare const leadsContractRouter: {
768
767
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
769
768
  }[];
770
769
  totalCount: number;
770
+ limit: number;
771
771
  skip: number;
772
772
  currentPage: number;
773
773
  totalPages: number;
774
774
  }, {
775
- limit: number;
776
775
  items: {
777
776
  id: string;
778
777
  name: string;
778
+ phoneNumber: string;
779
779
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
780
780
  createdAt: string | Date;
781
781
  updatedAt: string | Date;
782
- phoneNumber: string;
783
782
  source: string;
784
783
  totalCalls?: number | null | undefined;
785
784
  qualityScore?: number | null | undefined;
@@ -788,6 +787,7 @@ export declare const leadsContractRouter: {
788
787
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
789
788
  }[];
790
789
  totalCount: number;
790
+ limit: number;
791
791
  skip: number;
792
792
  currentPage: number;
793
793
  totalPages: number;
@@ -928,10 +928,10 @@ export declare const leadsContractRouter: {
928
928
  }, "strip", z.ZodTypeAny, {
929
929
  id: string;
930
930
  name: string;
931
+ phoneNumber: string;
931
932
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
932
933
  createdAt: string;
933
934
  updatedAt: string;
934
- phoneNumber: string;
935
935
  source: string;
936
936
  totalCalls?: number | null | undefined;
937
937
  qualityScore?: number | null | undefined;
@@ -941,10 +941,10 @@ export declare const leadsContractRouter: {
941
941
  }, {
942
942
  id: string;
943
943
  name: string;
944
+ phoneNumber: string;
944
945
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
945
946
  createdAt: string | Date;
946
947
  updatedAt: string | Date;
947
- phoneNumber: string;
948
948
  source: string;
949
949
  totalCalls?: number | null | undefined;
950
950
  qualityScore?: number | null | undefined;
@@ -1003,14 +1003,14 @@ export declare const leadsContractRouter: {
1003
1003
  source: z.ZodOptional<z.ZodString>;
1004
1004
  }, "strip", z.ZodTypeAny, {
1005
1005
  name?: string | undefined;
1006
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1007
1006
  phoneNumber?: string | undefined;
1007
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1008
1008
  source?: string | undefined;
1009
1009
  blacklistReason?: string | undefined;
1010
1010
  }, {
1011
1011
  name?: string | undefined;
1012
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1013
1012
  phoneNumber?: string | undefined;
1013
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1014
1014
  source?: string | undefined;
1015
1015
  blacklistReason?: string | undefined;
1016
1016
  }>;
@@ -1132,10 +1132,10 @@ export declare const leadsContractRouter: {
1132
1132
  }, "strip", z.ZodTypeAny, {
1133
1133
  id: string;
1134
1134
  name: string;
1135
+ phoneNumber: string;
1135
1136
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1136
1137
  createdAt: string;
1137
1138
  updatedAt: string;
1138
- phoneNumber: string;
1139
1139
  source: string;
1140
1140
  totalCalls?: number | null | undefined;
1141
1141
  qualityScore?: number | null | undefined;
@@ -1145,10 +1145,10 @@ export declare const leadsContractRouter: {
1145
1145
  }, {
1146
1146
  id: string;
1147
1147
  name: string;
1148
+ phoneNumber: string;
1148
1149
  status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1149
1150
  createdAt: string | Date;
1150
1151
  updatedAt: string | Date;
1151
- phoneNumber: string;
1152
1152
  source: string;
1153
1153
  totalCalls?: number | null | undefined;
1154
1154
  qualityScore?: number | null | undefined;
@@ -1503,11 +1503,11 @@ export declare const leadsContractRouter: {
1503
1503
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1504
1504
  }, "strip", z.ZodTypeAny, {
1505
1505
  id: string;
1506
+ assignmentId: string;
1507
+ leadId: string;
1508
+ agentId: string;
1506
1509
  createdAt: string;
1507
1510
  updatedAt: string;
1508
- agentId: string;
1509
- leadId: string;
1510
- assignmentId: string;
1511
1511
  callDate: string;
1512
1512
  callType: import("../call-history/call-history.contract").CallType;
1513
1513
  rating: import("../common/call-rating.schema").CallRating;
@@ -1515,11 +1515,11 @@ export declare const leadsContractRouter: {
1515
1515
  notes?: string | null | undefined;
1516
1516
  }, {
1517
1517
  id: string;
1518
+ assignmentId: string;
1519
+ leadId: string;
1520
+ agentId: string;
1518
1521
  createdAt: string | Date;
1519
1522
  updatedAt: string | Date;
1520
- agentId: string;
1521
- leadId: string;
1522
- assignmentId: string;
1523
1523
  callDate: string | Date;
1524
1524
  callType: import("../call-history/call-history.contract").CallType;
1525
1525
  rating: import("../common/call-rating.schema").CallRating;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",