@dakkitor/api-contracts 1.1.33 → 1.1.34

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 +1 @@
1
- {"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAWM,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIQ,CAAC;AAE1D,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAWM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;EAUM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;EAS5C,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrD,CAAC;AAGL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAi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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFzC,CAAC"}
1
+ {"version":3,"file":"agent-lead-distribution.contract.d.ts","sourceRoot":"","sources":["../../contracts/lead-distribution/agent-lead-distribution.contract.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,iCAAiC,gDAEM,CAAC;AAErD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAGF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBM,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIQ,CAAC;AAE1D,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;EAiBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAgBM,CAAC;AAErD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;EAU5C,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrD,CAAC;AAGL,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFzC,CAAC"}
@@ -7,6 +7,7 @@ const zod_1 = require("zod");
7
7
  const error_schemas_1 = require("../common/error-schemas");
8
8
  const pagination_query_schema_1 = require("../common/pagination-query.schema");
9
9
  const pagination_schema_1 = require("../common/pagination.schema");
10
+ const companies_contract_1 = require("../companies/companies.contract");
10
11
  const users_contract_1 = require("../users/users.contract");
11
12
  (0, zod_openapi_1.extendZodWithOpenApi)(zod_1.z);
12
13
  const c = (0, core_1.initContract)();
@@ -25,6 +26,15 @@ exports.AgentLeadDistributionSchema = zod_1.z
25
26
  .nullable()
26
27
  .optional()
27
28
  .describe('Lead distribution config ID'),
29
+ companyId: zod_1.z
30
+ .string()
31
+ .uuid()
32
+ .nullable()
33
+ .optional()
34
+ .describe('Company ID associated with this agent distribution'),
35
+ company: companies_contract_1.CompanySchema.nullable()
36
+ .optional()
37
+ .describe('Company associated with this agent distribution'),
28
38
  })
29
39
  .openapi({ title: 'AgentLeadDistribution' });
30
40
  exports.AgentLeadDistributionWithAgentSchema = exports.AgentLeadDistributionSchema.extend({
@@ -41,6 +51,12 @@ exports.CreateAgentLeadDistributionSchema = zod_1.z
41
51
  .nullable()
42
52
  .optional()
43
53
  .describe('Lead distribution config ID'),
54
+ companyId: zod_1.z
55
+ .string()
56
+ .uuid()
57
+ .nullable()
58
+ .optional()
59
+ .describe('Search Company'),
44
60
  })
45
61
  .openapi({ title: 'CreateAgentLeadDistribution' });
46
62
  exports.UpdateAgentLeadDistributionSchema = zod_1.z
@@ -52,6 +68,12 @@ exports.UpdateAgentLeadDistributionSchema = zod_1.z
52
68
  .nullable()
53
69
  .optional()
54
70
  .describe('Lead distribution config ID'),
71
+ companyId: zod_1.z
72
+ .string()
73
+ .uuid()
74
+ .nullable()
75
+ .optional()
76
+ .describe('Company ID to associate with this agent distribution'),
55
77
  })
56
78
  .openapi({ title: 'UpdateAgentLeadDistribution' });
57
79
  exports.FilterAgentLeadDistributionSchema = pagination_query_schema_1.PaginationQuerySchema.extend({
@@ -62,6 +84,7 @@ exports.FilterAgentLeadDistributionSchema = pagination_query_schema_1.Pagination
62
84
  .uuid()
63
85
  .optional()
64
86
  .describe('Filter by lead distribution config ID'),
87
+ companyId: zod_1.z.string().uuid().optional().describe('Filter by company ID'),
65
88
  });
66
89
  exports.PaginatedAgentLeadDistributionResponseSchema = (0, pagination_schema_1.createPaginatedResponseSchema)(exports.AgentLeadDistributionWithAgentSchema).openapi({
67
90
  title: 'PaginatedAgentLeadDistributionResponse',
@@ -31,11 +31,11 @@ export declare const LeadSchema: z.ZodObject<{
31
31
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
32
32
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- createdAt: string;
35
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
36
34
  id: string;
37
- updatedAt: string;
38
35
  name: string;
36
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
37
+ createdAt: string;
38
+ updatedAt: string;
39
39
  phoneNumber: string;
40
40
  source: string;
41
41
  totalCalls?: number | null | undefined;
@@ -44,11 +44,11 @@ export declare const LeadSchema: z.ZodObject<{
44
44
  blacklistReason?: string | null | undefined;
45
45
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
46
46
  }, {
47
- createdAt: string | Date;
48
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
49
47
  id: string;
50
- updatedAt: string | Date;
51
48
  name: string;
49
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
50
+ createdAt: string | Date;
51
+ updatedAt: string | Date;
52
52
  phoneNumber: string;
53
53
  source: string;
54
54
  totalCalls?: number | null | undefined;
@@ -92,14 +92,14 @@ export declare const UpdateLeadSchema: z.ZodObject<{
92
92
  blacklistReason: z.ZodOptional<z.ZodString>;
93
93
  source: z.ZodOptional<z.ZodString>;
94
94
  }, "strip", z.ZodTypeAny, {
95
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
96
95
  name?: string | undefined;
96
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
97
97
  phoneNumber?: string | undefined;
98
98
  source?: string | undefined;
99
99
  blacklistReason?: string | undefined;
100
100
  }, {
101
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
102
101
  name?: string | undefined;
102
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
103
103
  phoneNumber?: string | undefined;
104
104
  source?: string | undefined;
105
105
  blacklistReason?: string | undefined;
@@ -125,9 +125,9 @@ export declare const FilterLeadSchema: z.ZodObject<{
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  limit: number;
127
127
  page: number;
128
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
129
128
  name?: string | null | undefined;
130
- sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
129
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
130
+ sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
131
131
  sortOrder?: "ASC" | "DESC" | null | undefined;
132
132
  phoneNumber?: string | null | undefined;
133
133
  source?: string | null | undefined;
@@ -137,11 +137,11 @@ export declare const FilterLeadSchema: z.ZodObject<{
137
137
  minConversionRate?: number | null | undefined;
138
138
  minTotalCalls?: number | null | undefined;
139
139
  }, {
140
+ name?: string | null | undefined;
140
141
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
141
142
  limit?: number | undefined;
142
143
  page?: number | undefined;
143
- name?: string | null | undefined;
144
- sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
144
+ sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
145
145
  sortOrder?: "ASC" | "DESC" | null | undefined;
146
146
  phoneNumber?: string | null | undefined;
147
147
  source?: string | null | undefined;
@@ -167,8 +167,8 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
167
167
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
168
168
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
169
169
  }, "strip", z.ZodTypeAny, {
170
- createdAt: string;
171
170
  id: string;
171
+ createdAt: string;
172
172
  updatedAt: string;
173
173
  agentId: string;
174
174
  leadId: string;
@@ -179,8 +179,8 @@ export declare const LeadCallHistoryResponseSchema: z.ZodObject<{
179
179
  ratingWeight: number;
180
180
  notes?: string | null | undefined;
181
181
  }, {
182
- createdAt: string | Date;
183
182
  id: string;
183
+ createdAt: string | Date;
184
184
  updatedAt: string | Date;
185
185
  agentId: string;
186
186
  leadId: string;
@@ -269,11 +269,11 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
269
269
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
270
270
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
271
271
  }, "strip", z.ZodTypeAny, {
272
- createdAt: string;
273
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
274
272
  id: string;
275
- updatedAt: string;
276
273
  name: string;
274
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
275
+ createdAt: string;
276
+ updatedAt: string;
277
277
  phoneNumber: string;
278
278
  source: string;
279
279
  totalCalls?: number | null | undefined;
@@ -282,11 +282,11 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
282
282
  blacklistReason?: string | null | undefined;
283
283
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
284
284
  }, {
285
- createdAt: string | Date;
286
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
287
285
  id: string;
288
- updatedAt: string | Date;
289
286
  name: string;
287
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
288
+ createdAt: string | Date;
289
+ updatedAt: string | Date;
290
290
  phoneNumber: string;
291
291
  source: string;
292
292
  totalCalls?: number | null | undefined;
@@ -303,11 +303,11 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  limit: number;
305
305
  items: {
306
- createdAt: string;
307
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
308
306
  id: string;
309
- updatedAt: string;
310
307
  name: string;
308
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
309
+ createdAt: string;
310
+ updatedAt: string;
311
311
  phoneNumber: string;
312
312
  source: string;
313
313
  totalCalls?: number | null | undefined;
@@ -323,11 +323,11 @@ export declare const PaginatedLeadResponseSchema: z.ZodObject<{
323
323
  }, {
324
324
  limit: number;
325
325
  items: {
326
- createdAt: string | Date;
327
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
328
326
  id: string;
329
- updatedAt: string | Date;
330
327
  name: string;
328
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
329
+ createdAt: string | Date;
330
+ updatedAt: string | Date;
331
331
  phoneNumber: string;
332
332
  source: string;
333
333
  totalCalls?: number | null | undefined;
@@ -497,11 +497,11 @@ export declare const leadsContractRouter: {
497
497
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
498
498
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
499
499
  }, "strip", z.ZodTypeAny, {
500
- createdAt: string;
501
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
502
500
  id: string;
503
- updatedAt: string;
504
501
  name: string;
502
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
503
+ createdAt: string;
504
+ updatedAt: string;
505
505
  phoneNumber: string;
506
506
  source: string;
507
507
  totalCalls?: number | null | undefined;
@@ -510,11 +510,11 @@ export declare const leadsContractRouter: {
510
510
  blacklistReason?: string | null | undefined;
511
511
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
512
512
  }, {
513
- createdAt: string | Date;
514
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
515
513
  id: string;
516
- updatedAt: string | Date;
517
514
  name: string;
515
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
516
+ createdAt: string | Date;
517
+ updatedAt: string | Date;
518
518
  phoneNumber: string;
519
519
  source: string;
520
520
  totalCalls?: number | null | undefined;
@@ -575,9 +575,9 @@ export declare const leadsContractRouter: {
575
575
  }, "strip", z.ZodTypeAny, {
576
576
  limit: number;
577
577
  page: number;
578
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
579
578
  name?: string | null | undefined;
580
- sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
579
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
580
+ sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
581
581
  sortOrder?: "ASC" | "DESC" | null | undefined;
582
582
  phoneNumber?: string | null | undefined;
583
583
  source?: string | null | undefined;
@@ -587,11 +587,11 @@ export declare const leadsContractRouter: {
587
587
  minConversionRate?: number | null | undefined;
588
588
  minTotalCalls?: number | null | undefined;
589
589
  }, {
590
+ name?: string | null | undefined;
590
591
  status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | null | undefined;
591
592
  limit?: number | undefined;
592
593
  page?: number | undefined;
593
- name?: string | null | undefined;
594
- sortBy?: "createdAt" | "status" | "updatedAt" | "name" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
594
+ sortBy?: "name" | "status" | "createdAt" | "updatedAt" | "phoneNumber" | "totalCalls" | "source" | "qualityScore" | "conversionRate" | null | undefined;
595
595
  sortOrder?: "ASC" | "DESC" | null | undefined;
596
596
  phoneNumber?: string | null | undefined;
597
597
  source?: string | null | undefined;
@@ -720,11 +720,11 @@ export declare const leadsContractRouter: {
720
720
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
721
721
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
722
722
  }, "strip", z.ZodTypeAny, {
723
- createdAt: string;
724
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
725
723
  id: string;
726
- updatedAt: string;
727
724
  name: string;
725
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
726
+ createdAt: string;
727
+ updatedAt: string;
728
728
  phoneNumber: string;
729
729
  source: string;
730
730
  totalCalls?: number | null | undefined;
@@ -733,11 +733,11 @@ export declare const leadsContractRouter: {
733
733
  blacklistReason?: string | null | undefined;
734
734
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
735
735
  }, {
736
- createdAt: string | Date;
737
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
738
736
  id: string;
739
- updatedAt: string | Date;
740
737
  name: string;
738
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
739
+ createdAt: string | Date;
740
+ updatedAt: string | Date;
741
741
  phoneNumber: string;
742
742
  source: string;
743
743
  totalCalls?: number | null | undefined;
@@ -754,11 +754,11 @@ export declare const leadsContractRouter: {
754
754
  }, "strip", z.ZodTypeAny, {
755
755
  limit: number;
756
756
  items: {
757
- createdAt: string;
758
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
759
757
  id: string;
760
- updatedAt: string;
761
758
  name: string;
759
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
760
+ createdAt: string;
761
+ updatedAt: string;
762
762
  phoneNumber: string;
763
763
  source: string;
764
764
  totalCalls?: number | null | undefined;
@@ -774,11 +774,11 @@ export declare const leadsContractRouter: {
774
774
  }, {
775
775
  limit: number;
776
776
  items: {
777
- createdAt: string | Date;
778
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
779
777
  id: string;
780
- updatedAt: string | Date;
781
778
  name: string;
779
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
780
+ createdAt: string | Date;
781
+ updatedAt: string | Date;
782
782
  phoneNumber: string;
783
783
  source: string;
784
784
  totalCalls?: number | null | undefined;
@@ -926,11 +926,11 @@ export declare const leadsContractRouter: {
926
926
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
927
927
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
928
928
  }, "strip", z.ZodTypeAny, {
929
- createdAt: string;
930
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
931
929
  id: string;
932
- updatedAt: string;
933
930
  name: string;
931
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
932
+ createdAt: string;
933
+ updatedAt: string;
934
934
  phoneNumber: string;
935
935
  source: string;
936
936
  totalCalls?: number | null | undefined;
@@ -939,11 +939,11 @@ export declare const leadsContractRouter: {
939
939
  blacklistReason?: string | null | undefined;
940
940
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
941
941
  }, {
942
- createdAt: string | Date;
943
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
944
942
  id: string;
945
- updatedAt: string | Date;
946
943
  name: string;
944
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
945
+ createdAt: string | Date;
946
+ updatedAt: string | Date;
947
947
  phoneNumber: string;
948
948
  source: string;
949
949
  totalCalls?: number | null | undefined;
@@ -1002,14 +1002,14 @@ export declare const leadsContractRouter: {
1002
1002
  blacklistReason: z.ZodOptional<z.ZodString>;
1003
1003
  source: z.ZodOptional<z.ZodString>;
1004
1004
  }, "strip", z.ZodTypeAny, {
1005
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1006
1005
  name?: string | undefined;
1006
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1007
1007
  phoneNumber?: string | undefined;
1008
1008
  source?: string | undefined;
1009
1009
  blacklistReason?: string | undefined;
1010
1010
  }, {
1011
- status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1012
1011
  name?: string | undefined;
1012
+ status?: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED" | undefined;
1013
1013
  phoneNumber?: string | undefined;
1014
1014
  source?: string | undefined;
1015
1015
  blacklistReason?: string | undefined;
@@ -1130,11 +1130,11 @@ export declare const leadsContractRouter: {
1130
1130
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1131
1131
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1132
1132
  }, "strip", z.ZodTypeAny, {
1133
- createdAt: string;
1134
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1135
1133
  id: string;
1136
- updatedAt: string;
1137
1134
  name: string;
1135
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1136
+ createdAt: string;
1137
+ updatedAt: string;
1138
1138
  phoneNumber: string;
1139
1139
  source: string;
1140
1140
  totalCalls?: number | null | undefined;
@@ -1143,11 +1143,11 @@ export declare const leadsContractRouter: {
1143
1143
  blacklistReason?: string | null | undefined;
1144
1144
  qualityTier?: "high" | "medium" | "low" | "untested" | null | undefined;
1145
1145
  }, {
1146
- createdAt: string | Date;
1147
- status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1148
1146
  id: string;
1149
- updatedAt: string | Date;
1150
1147
  name: string;
1148
+ status: "AVAILABLE" | "ASSIGNED" | "BLACKLISTED";
1149
+ createdAt: string | Date;
1150
+ updatedAt: string | Date;
1151
1151
  phoneNumber: string;
1152
1152
  source: string;
1153
1153
  totalCalls?: number | null | undefined;
@@ -1502,8 +1502,8 @@ export declare const leadsContractRouter: {
1502
1502
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1503
1503
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
1504
1504
  }, "strip", z.ZodTypeAny, {
1505
- createdAt: string;
1506
1505
  id: string;
1506
+ createdAt: string;
1507
1507
  updatedAt: string;
1508
1508
  agentId: string;
1509
1509
  leadId: string;
@@ -1514,8 +1514,8 @@ export declare const leadsContractRouter: {
1514
1514
  ratingWeight: number;
1515
1515
  notes?: string | null | undefined;
1516
1516
  }, {
1517
- createdAt: string | Date;
1518
1517
  id: string;
1518
+ createdAt: string | Date;
1519
1519
  updatedAt: string | Date;
1520
1520
  agentId: string;
1521
1521
  leadId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakkitor/api-contracts",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "TypeScript API contracts using ts-rest and Zod",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",