@dakkitor/api-contracts 1.1.9 → 1.1.11

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.
Files changed (92) hide show
  1. package/dist/actives/actives.contract.d.ts +263 -263
  2. package/dist/actives/actives.contract.d.ts.map +1 -1
  3. package/dist/actives/actives.contract.js +9 -17
  4. package/dist/agent-client-links/agent-client-links.contract.d.ts +1905 -0
  5. package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -0
  6. package/dist/agent-client-links/agent-client-links.contract.js +127 -0
  7. package/dist/auth/auth.contract.d.ts +319 -0
  8. package/dist/auth/auth.contract.d.ts.map +1 -0
  9. package/dist/auth/auth.contract.js +63 -0
  10. package/dist/bookings/bookings.contract.d.ts +2183 -0
  11. package/dist/bookings/bookings.contract.d.ts.map +1 -0
  12. package/dist/bookings/bookings.contract.js +278 -0
  13. package/dist/call-history/call-history.contract.d.ts +1164 -0
  14. package/dist/call-history/call-history.contract.d.ts.map +1 -0
  15. package/dist/call-history/call-history.contract.js +254 -0
  16. package/dist/client-contacts/client-contacts.contract.d.ts +421 -472
  17. package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
  18. package/dist/client-contacts/client-contacts.contract.js +26 -15
  19. package/dist/clients/clients.contract.d.ts +336 -308
  20. package/dist/clients/clients.contract.d.ts.map +1 -1
  21. package/dist/clients/clients.contract.js +49 -52
  22. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3013 -0
  23. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -0
  24. package/dist/collaboration-checkings/collaboration-checkings.contract.js +247 -0
  25. package/dist/collaborations/collaborations.contract.d.ts +2229 -0
  26. package/dist/collaborations/collaborations.contract.d.ts.map +1 -0
  27. package/dist/collaborations/collaborations.contract.js +284 -0
  28. package/dist/common/common-schemas.d.ts +120 -0
  29. package/dist/common/common-schemas.d.ts.map +1 -0
  30. package/dist/common/common-schemas.js +296 -0
  31. package/dist/common/error-schemas.d.ts +6 -6
  32. package/dist/common/openapi-metadata.d.ts +6 -0
  33. package/dist/common/openapi-metadata.d.ts.map +1 -1
  34. package/dist/common/pagination-query.schema.d.ts +17 -0
  35. package/dist/common/pagination-query.schema.d.ts.map +1 -0
  36. package/dist/common/pagination-query.schema.js +15 -0
  37. package/dist/common/pagination.schema.d.ts +2 -2
  38. package/dist/companies/companies.contract.d.ts +1108 -0
  39. package/dist/companies/companies.contract.d.ts.map +1 -0
  40. package/dist/companies/companies.contract.js +164 -0
  41. package/dist/cron-executions/cron-executions.contract.d.ts +1643 -0
  42. package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -0
  43. package/dist/cron-executions/cron-executions.contract.js +271 -0
  44. package/dist/curated-workers/curated-workers.contract.d.ts +3183 -0
  45. package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -0
  46. package/dist/curated-workers/curated-workers.contract.js +444 -0
  47. package/dist/dashboards/agent-daily-metrics.contract.d.ts +639 -0
  48. package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -0
  49. package/dist/dashboards/agent-daily-metrics.contract.js +118 -0
  50. package/dist/files/files.contract.d.ts +1258 -0
  51. package/dist/files/files.contract.d.ts.map +1 -0
  52. package/dist/files/files.contract.js +205 -0
  53. package/dist/health/health.contract.d.ts +161 -0
  54. package/dist/health/health.contract.d.ts.map +1 -0
  55. package/dist/health/health.contract.js +52 -0
  56. package/dist/index.d.ts +28596 -3088
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +68 -0
  59. package/dist/jobs/jobs.contract.d.ts +2303 -0
  60. package/dist/jobs/jobs.contract.d.ts.map +1 -0
  61. package/dist/jobs/jobs.contract.js +295 -0
  62. package/dist/lead-assignments/lead-assignments.contract.d.ts +1826 -0
  63. package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -0
  64. package/dist/lead-assignments/lead-assignments.contract.js +187 -0
  65. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +1147 -0
  66. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -0
  67. package/dist/lead-distribution/agent-lead-distribution.contract.js +154 -0
  68. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +1085 -0
  69. package/dist/lead-distribution/lead-distribution-config.contract.d.ts.map +1 -0
  70. package/dist/lead-distribution/lead-distribution-config.contract.js +196 -0
  71. package/dist/leads/leads.contract.d.ts +1690 -0
  72. package/dist/leads/leads.contract.d.ts.map +1 -0
  73. package/dist/leads/leads.contract.js +328 -0
  74. package/dist/locations/locations.contract.d.ts +974 -0
  75. package/dist/locations/locations.contract.d.ts.map +1 -0
  76. package/dist/locations/locations.contract.js +154 -0
  77. package/dist/postcodes/postcodes.contract.d.ts +370 -0
  78. package/dist/postcodes/postcodes.contract.d.ts.map +1 -0
  79. package/dist/postcodes/postcodes.contract.js +90 -0
  80. package/dist/qualifications/qualifications.contract.d.ts +1489 -0
  81. package/dist/qualifications/qualifications.contract.d.ts.map +1 -0
  82. package/dist/qualifications/qualifications.contract.js +215 -0
  83. package/dist/trades/trades.contract.d.ts +799 -0
  84. package/dist/trades/trades.contract.d.ts.map +1 -0
  85. package/dist/trades/trades.contract.js +112 -0
  86. package/dist/users/users.contract.d.ts +315 -299
  87. package/dist/users/users.contract.d.ts.map +1 -1
  88. package/dist/users/users.contract.js +13 -29
  89. package/dist/workers/workers.contract.d.ts +3376 -0
  90. package/dist/workers/workers.contract.d.ts.map +1 -0
  91. package/dist/workers/workers.contract.js +363 -0
  92. package/package.json +4 -3
@@ -0,0 +1,1085 @@
1
+ import { z } from 'zod';
2
+ export declare const LeadDistributionConfigSortableFieldsSchema: z.ZodEnum<["name", "createdAt", "isActive"]>;
3
+ export type LeadDistributionConfigSortableFields = z.infer<typeof LeadDistributionConfigSortableFieldsSchema>;
4
+ export declare const LeadDistributionConfigSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ name: z.ZodString;
7
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ lowShare: z.ZodNumber;
9
+ mediumShare: z.ZodNumber;
10
+ highShare: z.ZodNumber;
11
+ mediumMinWeight: z.ZodNumber;
12
+ highMinWeight: z.ZodNumber;
13
+ isActive: z.ZodBoolean;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ name: string;
17
+ isActive: boolean;
18
+ lowShare: number;
19
+ mediumShare: number;
20
+ highShare: number;
21
+ mediumMinWeight: number;
22
+ highMinWeight: number;
23
+ description?: string | null | undefined;
24
+ }, {
25
+ id: string;
26
+ name: string;
27
+ isActive: boolean;
28
+ lowShare: number;
29
+ mediumShare: number;
30
+ highShare: number;
31
+ mediumMinWeight: number;
32
+ highMinWeight: number;
33
+ description?: string | null | undefined;
34
+ }>;
35
+ export declare const CreateLeadDistributionConfigSchema: z.ZodObject<{
36
+ name: z.ZodString;
37
+ description: z.ZodOptional<z.ZodString>;
38
+ lowShare: z.ZodNumber;
39
+ mediumShare: z.ZodNumber;
40
+ highShare: z.ZodNumber;
41
+ mediumMinWeight: z.ZodDefault<z.ZodNumber>;
42
+ highMinWeight: z.ZodDefault<z.ZodNumber>;
43
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ name: string;
46
+ lowShare: number;
47
+ mediumShare: number;
48
+ highShare: number;
49
+ mediumMinWeight: number;
50
+ highMinWeight: number;
51
+ description?: string | undefined;
52
+ isActive?: boolean | undefined;
53
+ }, {
54
+ name: string;
55
+ lowShare: number;
56
+ mediumShare: number;
57
+ highShare: number;
58
+ description?: string | undefined;
59
+ isActive?: boolean | undefined;
60
+ mediumMinWeight?: number | undefined;
61
+ highMinWeight?: number | undefined;
62
+ }>;
63
+ export declare const UpdateLeadDistributionConfigSchema: z.ZodObject<{
64
+ name: z.ZodOptional<z.ZodString>;
65
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
66
+ lowShare: z.ZodOptional<z.ZodNumber>;
67
+ mediumShare: z.ZodOptional<z.ZodNumber>;
68
+ highShare: z.ZodOptional<z.ZodNumber>;
69
+ mediumMinWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
70
+ highMinWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
71
+ isActive: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ description?: string | undefined;
74
+ name?: string | undefined;
75
+ isActive?: boolean | undefined;
76
+ lowShare?: number | undefined;
77
+ mediumShare?: number | undefined;
78
+ highShare?: number | undefined;
79
+ mediumMinWeight?: number | undefined;
80
+ highMinWeight?: number | undefined;
81
+ }, {
82
+ description?: string | undefined;
83
+ name?: string | undefined;
84
+ isActive?: boolean | undefined;
85
+ lowShare?: number | undefined;
86
+ mediumShare?: number | undefined;
87
+ highShare?: number | undefined;
88
+ mediumMinWeight?: number | undefined;
89
+ highMinWeight?: number | undefined;
90
+ }>;
91
+ export declare const FilterLeadDistributionConfigSchema: z.ZodObject<{
92
+ limit: z.ZodDefault<z.ZodNumber>;
93
+ page: z.ZodDefault<z.ZodNumber>;
94
+ } & {
95
+ name: z.ZodOptional<z.ZodString>;
96
+ isActive: z.ZodOptional<z.ZodBoolean>;
97
+ sortBy: z.ZodOptional<z.ZodEnum<["name", "createdAt", "isActive"]>>;
98
+ sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ limit: number;
101
+ page: number;
102
+ sortBy?: "createdAt" | "name" | "isActive" | undefined;
103
+ sortOrder?: "ASC" | "DESC" | undefined;
104
+ name?: string | undefined;
105
+ isActive?: boolean | undefined;
106
+ }, {
107
+ limit?: number | undefined;
108
+ page?: number | undefined;
109
+ sortBy?: "createdAt" | "name" | "isActive" | undefined;
110
+ sortOrder?: "ASC" | "DESC" | undefined;
111
+ name?: string | undefined;
112
+ isActive?: boolean | undefined;
113
+ }>;
114
+ export declare const PaginatedLeadDistributionConfigResponseSchema: z.ZodObject<{
115
+ items: z.ZodArray<z.ZodObject<{
116
+ id: z.ZodString;
117
+ name: z.ZodString;
118
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ lowShare: z.ZodNumber;
120
+ mediumShare: z.ZodNumber;
121
+ highShare: z.ZodNumber;
122
+ mediumMinWeight: z.ZodNumber;
123
+ highMinWeight: z.ZodNumber;
124
+ isActive: z.ZodBoolean;
125
+ }, "strip", z.ZodTypeAny, {
126
+ id: string;
127
+ name: string;
128
+ isActive: boolean;
129
+ lowShare: number;
130
+ mediumShare: number;
131
+ highShare: number;
132
+ mediumMinWeight: number;
133
+ highMinWeight: number;
134
+ description?: string | null | undefined;
135
+ }, {
136
+ id: string;
137
+ name: string;
138
+ isActive: boolean;
139
+ lowShare: number;
140
+ mediumShare: number;
141
+ highShare: number;
142
+ mediumMinWeight: number;
143
+ highMinWeight: number;
144
+ description?: string | null | undefined;
145
+ }>, "many">;
146
+ totalCount: z.ZodNumber;
147
+ limit: z.ZodNumber;
148
+ skip: z.ZodNumber;
149
+ currentPage: z.ZodNumber;
150
+ totalPages: z.ZodNumber;
151
+ }, "strip", z.ZodTypeAny, {
152
+ limit: number;
153
+ items: {
154
+ id: string;
155
+ name: string;
156
+ isActive: boolean;
157
+ lowShare: number;
158
+ mediumShare: number;
159
+ highShare: number;
160
+ mediumMinWeight: number;
161
+ highMinWeight: number;
162
+ description?: string | null | undefined;
163
+ }[];
164
+ totalCount: number;
165
+ skip: number;
166
+ currentPage: number;
167
+ totalPages: number;
168
+ }, {
169
+ limit: number;
170
+ items: {
171
+ id: string;
172
+ name: string;
173
+ isActive: boolean;
174
+ lowShare: number;
175
+ mediumShare: number;
176
+ highShare: number;
177
+ mediumMinWeight: number;
178
+ highMinWeight: number;
179
+ description?: string | null | undefined;
180
+ }[];
181
+ totalCount: number;
182
+ skip: number;
183
+ currentPage: number;
184
+ totalPages: number;
185
+ }>;
186
+ export type LeadDistributionConfig = z.infer<typeof LeadDistributionConfigSchema>;
187
+ export type CreateLeadDistributionConfig = z.infer<typeof CreateLeadDistributionConfigSchema>;
188
+ export type UpdateLeadDistributionConfig = z.infer<typeof UpdateLeadDistributionConfigSchema>;
189
+ export type FilterLeadDistributionConfig = z.infer<typeof FilterLeadDistributionConfigSchema>;
190
+ export type PaginatedLeadDistributionConfigResponse = z.infer<typeof PaginatedLeadDistributionConfigResponseSchema>;
191
+ export declare const leadDistributionConfigContract: {
192
+ findAll: {
193
+ query: z.ZodObject<{
194
+ limit: z.ZodDefault<z.ZodNumber>;
195
+ page: z.ZodDefault<z.ZodNumber>;
196
+ } & {
197
+ name: z.ZodOptional<z.ZodString>;
198
+ isActive: z.ZodOptional<z.ZodBoolean>;
199
+ sortBy: z.ZodOptional<z.ZodEnum<["name", "createdAt", "isActive"]>>;
200
+ sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ limit: number;
203
+ page: number;
204
+ sortBy?: "createdAt" | "name" | "isActive" | undefined;
205
+ sortOrder?: "ASC" | "DESC" | undefined;
206
+ name?: string | undefined;
207
+ isActive?: boolean | undefined;
208
+ }, {
209
+ limit?: number | undefined;
210
+ page?: number | undefined;
211
+ sortBy?: "createdAt" | "name" | "isActive" | undefined;
212
+ sortOrder?: "ASC" | "DESC" | undefined;
213
+ name?: string | undefined;
214
+ isActive?: boolean | undefined;
215
+ }>;
216
+ metadata: {
217
+ tags: string[];
218
+ };
219
+ summary: "List all lead distribution configs";
220
+ method: "GET";
221
+ path: "/v2/lead-distribution-configs";
222
+ responses: {
223
+ 400: z.ZodObject<{
224
+ statusCode: z.ZodNumber;
225
+ message: z.ZodString;
226
+ code: z.ZodString;
227
+ details: z.ZodOptional<z.ZodUnknown>;
228
+ timestamp: z.ZodString;
229
+ path: z.ZodString;
230
+ correlationId: z.ZodOptional<z.ZodString>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ code: string;
233
+ path: string;
234
+ message: string;
235
+ statusCode: number;
236
+ timestamp: string;
237
+ details?: unknown;
238
+ correlationId?: string | undefined;
239
+ }, {
240
+ code: string;
241
+ path: string;
242
+ message: string;
243
+ statusCode: number;
244
+ timestamp: string;
245
+ details?: unknown;
246
+ correlationId?: string | undefined;
247
+ }>;
248
+ 401: z.ZodObject<{
249
+ statusCode: z.ZodNumber;
250
+ message: z.ZodString;
251
+ code: z.ZodString;
252
+ details: z.ZodOptional<z.ZodUnknown>;
253
+ timestamp: z.ZodString;
254
+ path: z.ZodString;
255
+ correlationId: z.ZodOptional<z.ZodString>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ code: string;
258
+ path: string;
259
+ message: string;
260
+ statusCode: number;
261
+ timestamp: string;
262
+ details?: unknown;
263
+ correlationId?: string | undefined;
264
+ }, {
265
+ code: string;
266
+ path: string;
267
+ message: string;
268
+ statusCode: number;
269
+ timestamp: string;
270
+ details?: unknown;
271
+ correlationId?: string | undefined;
272
+ }>;
273
+ 500: z.ZodObject<{
274
+ statusCode: z.ZodNumber;
275
+ message: z.ZodString;
276
+ code: z.ZodString;
277
+ details: z.ZodOptional<z.ZodUnknown>;
278
+ timestamp: z.ZodString;
279
+ path: z.ZodString;
280
+ correlationId: z.ZodOptional<z.ZodString>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ code: string;
283
+ path: string;
284
+ message: string;
285
+ statusCode: number;
286
+ timestamp: string;
287
+ details?: unknown;
288
+ correlationId?: string | undefined;
289
+ }, {
290
+ code: string;
291
+ path: string;
292
+ message: string;
293
+ statusCode: number;
294
+ timestamp: string;
295
+ details?: unknown;
296
+ correlationId?: string | undefined;
297
+ }>;
298
+ 200: z.ZodObject<{
299
+ items: z.ZodArray<z.ZodObject<{
300
+ id: z.ZodString;
301
+ name: z.ZodString;
302
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ lowShare: z.ZodNumber;
304
+ mediumShare: z.ZodNumber;
305
+ highShare: z.ZodNumber;
306
+ mediumMinWeight: z.ZodNumber;
307
+ highMinWeight: z.ZodNumber;
308
+ isActive: z.ZodBoolean;
309
+ }, "strip", z.ZodTypeAny, {
310
+ id: string;
311
+ name: string;
312
+ isActive: boolean;
313
+ lowShare: number;
314
+ mediumShare: number;
315
+ highShare: number;
316
+ mediumMinWeight: number;
317
+ highMinWeight: number;
318
+ description?: string | null | undefined;
319
+ }, {
320
+ id: string;
321
+ name: string;
322
+ isActive: boolean;
323
+ lowShare: number;
324
+ mediumShare: number;
325
+ highShare: number;
326
+ mediumMinWeight: number;
327
+ highMinWeight: number;
328
+ description?: string | null | undefined;
329
+ }>, "many">;
330
+ totalCount: z.ZodNumber;
331
+ limit: z.ZodNumber;
332
+ skip: z.ZodNumber;
333
+ currentPage: z.ZodNumber;
334
+ totalPages: z.ZodNumber;
335
+ }, "strip", z.ZodTypeAny, {
336
+ limit: number;
337
+ items: {
338
+ id: string;
339
+ name: string;
340
+ isActive: boolean;
341
+ lowShare: number;
342
+ mediumShare: number;
343
+ highShare: number;
344
+ mediumMinWeight: number;
345
+ highMinWeight: number;
346
+ description?: string | null | undefined;
347
+ }[];
348
+ totalCount: number;
349
+ skip: number;
350
+ currentPage: number;
351
+ totalPages: number;
352
+ }, {
353
+ limit: number;
354
+ items: {
355
+ id: string;
356
+ name: string;
357
+ isActive: boolean;
358
+ lowShare: number;
359
+ mediumShare: number;
360
+ highShare: number;
361
+ mediumMinWeight: number;
362
+ highMinWeight: number;
363
+ description?: string | null | undefined;
364
+ }[];
365
+ totalCount: number;
366
+ skip: number;
367
+ currentPage: number;
368
+ totalPages: number;
369
+ }>;
370
+ 403: z.ZodObject<{
371
+ statusCode: z.ZodNumber;
372
+ message: z.ZodString;
373
+ code: z.ZodString;
374
+ details: z.ZodOptional<z.ZodUnknown>;
375
+ timestamp: z.ZodString;
376
+ path: z.ZodString;
377
+ correlationId: z.ZodOptional<z.ZodString>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ code: string;
380
+ path: string;
381
+ message: string;
382
+ statusCode: number;
383
+ timestamp: string;
384
+ details?: unknown;
385
+ correlationId?: string | undefined;
386
+ }, {
387
+ code: string;
388
+ path: string;
389
+ message: string;
390
+ statusCode: number;
391
+ timestamp: string;
392
+ details?: unknown;
393
+ correlationId?: string | undefined;
394
+ }>;
395
+ };
396
+ };
397
+ findOne: {
398
+ metadata: {
399
+ tags: string[];
400
+ };
401
+ pathParams: z.ZodObject<{
402
+ id: z.ZodString;
403
+ }, "strip", z.ZodTypeAny, {
404
+ id: string;
405
+ }, {
406
+ id: string;
407
+ }>;
408
+ summary: "Get a lead distribution config by ID";
409
+ method: "GET";
410
+ path: "/v2/lead-distribution-configs/:id";
411
+ responses: {
412
+ 400: z.ZodObject<{
413
+ statusCode: z.ZodNumber;
414
+ message: z.ZodString;
415
+ code: z.ZodString;
416
+ details: z.ZodOptional<z.ZodUnknown>;
417
+ timestamp: z.ZodString;
418
+ path: z.ZodString;
419
+ correlationId: z.ZodOptional<z.ZodString>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ code: string;
422
+ path: string;
423
+ message: string;
424
+ statusCode: number;
425
+ timestamp: string;
426
+ details?: unknown;
427
+ correlationId?: string | undefined;
428
+ }, {
429
+ code: string;
430
+ path: string;
431
+ message: string;
432
+ statusCode: number;
433
+ timestamp: string;
434
+ details?: unknown;
435
+ correlationId?: string | undefined;
436
+ }>;
437
+ 401: z.ZodObject<{
438
+ statusCode: z.ZodNumber;
439
+ message: z.ZodString;
440
+ code: z.ZodString;
441
+ details: z.ZodOptional<z.ZodUnknown>;
442
+ timestamp: z.ZodString;
443
+ path: z.ZodString;
444
+ correlationId: z.ZodOptional<z.ZodString>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ code: string;
447
+ path: string;
448
+ message: string;
449
+ statusCode: number;
450
+ timestamp: string;
451
+ details?: unknown;
452
+ correlationId?: string | undefined;
453
+ }, {
454
+ code: string;
455
+ path: string;
456
+ message: string;
457
+ statusCode: number;
458
+ timestamp: string;
459
+ details?: unknown;
460
+ correlationId?: string | undefined;
461
+ }>;
462
+ 500: z.ZodObject<{
463
+ statusCode: z.ZodNumber;
464
+ message: z.ZodString;
465
+ code: z.ZodString;
466
+ details: z.ZodOptional<z.ZodUnknown>;
467
+ timestamp: z.ZodString;
468
+ path: z.ZodString;
469
+ correlationId: z.ZodOptional<z.ZodString>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ code: string;
472
+ path: string;
473
+ message: string;
474
+ statusCode: number;
475
+ timestamp: string;
476
+ details?: unknown;
477
+ correlationId?: string | undefined;
478
+ }, {
479
+ code: string;
480
+ path: string;
481
+ message: string;
482
+ statusCode: number;
483
+ timestamp: string;
484
+ details?: unknown;
485
+ correlationId?: string | undefined;
486
+ }>;
487
+ 200: z.ZodObject<{
488
+ id: z.ZodString;
489
+ name: z.ZodString;
490
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
491
+ lowShare: z.ZodNumber;
492
+ mediumShare: z.ZodNumber;
493
+ highShare: z.ZodNumber;
494
+ mediumMinWeight: z.ZodNumber;
495
+ highMinWeight: z.ZodNumber;
496
+ isActive: z.ZodBoolean;
497
+ }, "strip", z.ZodTypeAny, {
498
+ id: string;
499
+ name: string;
500
+ isActive: boolean;
501
+ lowShare: number;
502
+ mediumShare: number;
503
+ highShare: number;
504
+ mediumMinWeight: number;
505
+ highMinWeight: number;
506
+ description?: string | null | undefined;
507
+ }, {
508
+ id: string;
509
+ name: string;
510
+ isActive: boolean;
511
+ lowShare: number;
512
+ mediumShare: number;
513
+ highShare: number;
514
+ mediumMinWeight: number;
515
+ highMinWeight: number;
516
+ description?: string | null | undefined;
517
+ }>;
518
+ 404: z.ZodObject<{
519
+ statusCode: z.ZodNumber;
520
+ message: z.ZodString;
521
+ code: z.ZodString;
522
+ details: z.ZodOptional<z.ZodUnknown>;
523
+ timestamp: z.ZodString;
524
+ path: z.ZodString;
525
+ correlationId: z.ZodOptional<z.ZodString>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ code: string;
528
+ path: string;
529
+ message: string;
530
+ statusCode: number;
531
+ timestamp: string;
532
+ details?: unknown;
533
+ correlationId?: string | undefined;
534
+ }, {
535
+ code: string;
536
+ path: string;
537
+ message: string;
538
+ statusCode: number;
539
+ timestamp: string;
540
+ details?: unknown;
541
+ correlationId?: string | undefined;
542
+ }>;
543
+ 403: z.ZodObject<{
544
+ statusCode: z.ZodNumber;
545
+ message: z.ZodString;
546
+ code: z.ZodString;
547
+ details: z.ZodOptional<z.ZodUnknown>;
548
+ timestamp: z.ZodString;
549
+ path: z.ZodString;
550
+ correlationId: z.ZodOptional<z.ZodString>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ code: string;
553
+ path: string;
554
+ message: string;
555
+ statusCode: number;
556
+ timestamp: string;
557
+ details?: unknown;
558
+ correlationId?: string | undefined;
559
+ }, {
560
+ code: string;
561
+ path: string;
562
+ message: string;
563
+ statusCode: number;
564
+ timestamp: string;
565
+ details?: unknown;
566
+ correlationId?: string | undefined;
567
+ }>;
568
+ };
569
+ };
570
+ create: {
571
+ metadata: {
572
+ tags: string[];
573
+ };
574
+ summary: "Create a new lead distribution config";
575
+ method: "POST";
576
+ body: z.ZodObject<{
577
+ name: z.ZodString;
578
+ description: z.ZodOptional<z.ZodString>;
579
+ lowShare: z.ZodNumber;
580
+ mediumShare: z.ZodNumber;
581
+ highShare: z.ZodNumber;
582
+ mediumMinWeight: z.ZodDefault<z.ZodNumber>;
583
+ highMinWeight: z.ZodDefault<z.ZodNumber>;
584
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ name: string;
587
+ lowShare: number;
588
+ mediumShare: number;
589
+ highShare: number;
590
+ mediumMinWeight: number;
591
+ highMinWeight: number;
592
+ description?: string | undefined;
593
+ isActive?: boolean | undefined;
594
+ }, {
595
+ name: string;
596
+ lowShare: number;
597
+ mediumShare: number;
598
+ highShare: number;
599
+ description?: string | undefined;
600
+ isActive?: boolean | undefined;
601
+ mediumMinWeight?: number | undefined;
602
+ highMinWeight?: number | undefined;
603
+ }>;
604
+ path: "/v2/lead-distribution-configs";
605
+ responses: {
606
+ 400: z.ZodObject<{
607
+ statusCode: z.ZodNumber;
608
+ message: z.ZodString;
609
+ code: z.ZodString;
610
+ details: z.ZodOptional<z.ZodUnknown>;
611
+ timestamp: z.ZodString;
612
+ path: z.ZodString;
613
+ correlationId: z.ZodOptional<z.ZodString>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ code: string;
616
+ path: string;
617
+ message: string;
618
+ statusCode: number;
619
+ timestamp: string;
620
+ details?: unknown;
621
+ correlationId?: string | undefined;
622
+ }, {
623
+ code: string;
624
+ path: string;
625
+ message: string;
626
+ statusCode: number;
627
+ timestamp: string;
628
+ details?: unknown;
629
+ correlationId?: string | undefined;
630
+ }>;
631
+ 401: z.ZodObject<{
632
+ statusCode: z.ZodNumber;
633
+ message: z.ZodString;
634
+ code: z.ZodString;
635
+ details: z.ZodOptional<z.ZodUnknown>;
636
+ timestamp: z.ZodString;
637
+ path: z.ZodString;
638
+ correlationId: z.ZodOptional<z.ZodString>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ code: string;
641
+ path: string;
642
+ message: string;
643
+ statusCode: number;
644
+ timestamp: string;
645
+ details?: unknown;
646
+ correlationId?: string | undefined;
647
+ }, {
648
+ code: string;
649
+ path: string;
650
+ message: string;
651
+ statusCode: number;
652
+ timestamp: string;
653
+ details?: unknown;
654
+ correlationId?: string | undefined;
655
+ }>;
656
+ 500: z.ZodObject<{
657
+ statusCode: z.ZodNumber;
658
+ message: z.ZodString;
659
+ code: z.ZodString;
660
+ details: z.ZodOptional<z.ZodUnknown>;
661
+ timestamp: z.ZodString;
662
+ path: z.ZodString;
663
+ correlationId: z.ZodOptional<z.ZodString>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ code: string;
666
+ path: string;
667
+ message: string;
668
+ statusCode: number;
669
+ timestamp: string;
670
+ details?: unknown;
671
+ correlationId?: string | undefined;
672
+ }, {
673
+ code: string;
674
+ path: string;
675
+ message: string;
676
+ statusCode: number;
677
+ timestamp: string;
678
+ details?: unknown;
679
+ correlationId?: string | undefined;
680
+ }>;
681
+ 201: z.ZodObject<{
682
+ id: z.ZodString;
683
+ name: z.ZodString;
684
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
+ lowShare: z.ZodNumber;
686
+ mediumShare: z.ZodNumber;
687
+ highShare: z.ZodNumber;
688
+ mediumMinWeight: z.ZodNumber;
689
+ highMinWeight: z.ZodNumber;
690
+ isActive: z.ZodBoolean;
691
+ }, "strip", z.ZodTypeAny, {
692
+ id: string;
693
+ name: string;
694
+ isActive: boolean;
695
+ lowShare: number;
696
+ mediumShare: number;
697
+ highShare: number;
698
+ mediumMinWeight: number;
699
+ highMinWeight: number;
700
+ description?: string | null | undefined;
701
+ }, {
702
+ id: string;
703
+ name: string;
704
+ isActive: boolean;
705
+ lowShare: number;
706
+ mediumShare: number;
707
+ highShare: number;
708
+ mediumMinWeight: number;
709
+ highMinWeight: number;
710
+ description?: string | null | undefined;
711
+ }>;
712
+ 403: z.ZodObject<{
713
+ statusCode: z.ZodNumber;
714
+ message: z.ZodString;
715
+ code: z.ZodString;
716
+ details: z.ZodOptional<z.ZodUnknown>;
717
+ timestamp: z.ZodString;
718
+ path: z.ZodString;
719
+ correlationId: z.ZodOptional<z.ZodString>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ code: string;
722
+ path: string;
723
+ message: string;
724
+ statusCode: number;
725
+ timestamp: string;
726
+ details?: unknown;
727
+ correlationId?: string | undefined;
728
+ }, {
729
+ code: string;
730
+ path: string;
731
+ message: string;
732
+ statusCode: number;
733
+ timestamp: string;
734
+ details?: unknown;
735
+ correlationId?: string | undefined;
736
+ }>;
737
+ };
738
+ };
739
+ update: {
740
+ metadata: {
741
+ tags: string[];
742
+ };
743
+ pathParams: z.ZodObject<{
744
+ id: z.ZodString;
745
+ }, "strip", z.ZodTypeAny, {
746
+ id: string;
747
+ }, {
748
+ id: string;
749
+ }>;
750
+ summary: "Update an existing lead distribution config";
751
+ method: "PATCH";
752
+ body: z.ZodObject<{
753
+ name: z.ZodOptional<z.ZodString>;
754
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
755
+ lowShare: z.ZodOptional<z.ZodNumber>;
756
+ mediumShare: z.ZodOptional<z.ZodNumber>;
757
+ highShare: z.ZodOptional<z.ZodNumber>;
758
+ mediumMinWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
759
+ highMinWeight: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
760
+ isActive: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ description?: string | undefined;
763
+ name?: string | undefined;
764
+ isActive?: boolean | undefined;
765
+ lowShare?: number | undefined;
766
+ mediumShare?: number | undefined;
767
+ highShare?: number | undefined;
768
+ mediumMinWeight?: number | undefined;
769
+ highMinWeight?: number | undefined;
770
+ }, {
771
+ description?: string | undefined;
772
+ name?: string | undefined;
773
+ isActive?: boolean | undefined;
774
+ lowShare?: number | undefined;
775
+ mediumShare?: number | undefined;
776
+ highShare?: number | undefined;
777
+ mediumMinWeight?: number | undefined;
778
+ highMinWeight?: number | undefined;
779
+ }>;
780
+ path: "/v2/lead-distribution-configs/:id";
781
+ responses: {
782
+ 400: z.ZodObject<{
783
+ statusCode: z.ZodNumber;
784
+ message: z.ZodString;
785
+ code: z.ZodString;
786
+ details: z.ZodOptional<z.ZodUnknown>;
787
+ timestamp: z.ZodString;
788
+ path: z.ZodString;
789
+ correlationId: z.ZodOptional<z.ZodString>;
790
+ }, "strip", z.ZodTypeAny, {
791
+ code: string;
792
+ path: string;
793
+ message: string;
794
+ statusCode: number;
795
+ timestamp: string;
796
+ details?: unknown;
797
+ correlationId?: string | undefined;
798
+ }, {
799
+ code: string;
800
+ path: string;
801
+ message: string;
802
+ statusCode: number;
803
+ timestamp: string;
804
+ details?: unknown;
805
+ correlationId?: string | undefined;
806
+ }>;
807
+ 401: z.ZodObject<{
808
+ statusCode: z.ZodNumber;
809
+ message: z.ZodString;
810
+ code: z.ZodString;
811
+ details: z.ZodOptional<z.ZodUnknown>;
812
+ timestamp: z.ZodString;
813
+ path: z.ZodString;
814
+ correlationId: z.ZodOptional<z.ZodString>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ code: string;
817
+ path: string;
818
+ message: string;
819
+ statusCode: number;
820
+ timestamp: string;
821
+ details?: unknown;
822
+ correlationId?: string | undefined;
823
+ }, {
824
+ code: string;
825
+ path: string;
826
+ message: string;
827
+ statusCode: number;
828
+ timestamp: string;
829
+ details?: unknown;
830
+ correlationId?: string | undefined;
831
+ }>;
832
+ 500: z.ZodObject<{
833
+ statusCode: z.ZodNumber;
834
+ message: z.ZodString;
835
+ code: z.ZodString;
836
+ details: z.ZodOptional<z.ZodUnknown>;
837
+ timestamp: z.ZodString;
838
+ path: z.ZodString;
839
+ correlationId: z.ZodOptional<z.ZodString>;
840
+ }, "strip", z.ZodTypeAny, {
841
+ code: string;
842
+ path: string;
843
+ message: string;
844
+ statusCode: number;
845
+ timestamp: string;
846
+ details?: unknown;
847
+ correlationId?: string | undefined;
848
+ }, {
849
+ code: string;
850
+ path: string;
851
+ message: string;
852
+ statusCode: number;
853
+ timestamp: string;
854
+ details?: unknown;
855
+ correlationId?: string | undefined;
856
+ }>;
857
+ 200: z.ZodObject<{
858
+ id: z.ZodString;
859
+ name: z.ZodString;
860
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
861
+ lowShare: z.ZodNumber;
862
+ mediumShare: z.ZodNumber;
863
+ highShare: z.ZodNumber;
864
+ mediumMinWeight: z.ZodNumber;
865
+ highMinWeight: z.ZodNumber;
866
+ isActive: z.ZodBoolean;
867
+ }, "strip", z.ZodTypeAny, {
868
+ id: string;
869
+ name: string;
870
+ isActive: boolean;
871
+ lowShare: number;
872
+ mediumShare: number;
873
+ highShare: number;
874
+ mediumMinWeight: number;
875
+ highMinWeight: number;
876
+ description?: string | null | undefined;
877
+ }, {
878
+ id: string;
879
+ name: string;
880
+ isActive: boolean;
881
+ lowShare: number;
882
+ mediumShare: number;
883
+ highShare: number;
884
+ mediumMinWeight: number;
885
+ highMinWeight: number;
886
+ description?: string | null | undefined;
887
+ }>;
888
+ 404: z.ZodObject<{
889
+ statusCode: z.ZodNumber;
890
+ message: z.ZodString;
891
+ code: z.ZodString;
892
+ details: z.ZodOptional<z.ZodUnknown>;
893
+ timestamp: z.ZodString;
894
+ path: z.ZodString;
895
+ correlationId: z.ZodOptional<z.ZodString>;
896
+ }, "strip", z.ZodTypeAny, {
897
+ code: string;
898
+ path: string;
899
+ message: string;
900
+ statusCode: number;
901
+ timestamp: string;
902
+ details?: unknown;
903
+ correlationId?: string | undefined;
904
+ }, {
905
+ code: string;
906
+ path: string;
907
+ message: string;
908
+ statusCode: number;
909
+ timestamp: string;
910
+ details?: unknown;
911
+ correlationId?: string | undefined;
912
+ }>;
913
+ 403: z.ZodObject<{
914
+ statusCode: z.ZodNumber;
915
+ message: z.ZodString;
916
+ code: z.ZodString;
917
+ details: z.ZodOptional<z.ZodUnknown>;
918
+ timestamp: z.ZodString;
919
+ path: z.ZodString;
920
+ correlationId: z.ZodOptional<z.ZodString>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ code: string;
923
+ path: string;
924
+ message: string;
925
+ statusCode: number;
926
+ timestamp: string;
927
+ details?: unknown;
928
+ correlationId?: string | undefined;
929
+ }, {
930
+ code: string;
931
+ path: string;
932
+ message: string;
933
+ statusCode: number;
934
+ timestamp: string;
935
+ details?: unknown;
936
+ correlationId?: string | undefined;
937
+ }>;
938
+ };
939
+ };
940
+ remove: {
941
+ metadata: {
942
+ tags: string[];
943
+ };
944
+ pathParams: z.ZodObject<{
945
+ id: z.ZodString;
946
+ }, "strip", z.ZodTypeAny, {
947
+ id: string;
948
+ }, {
949
+ id: string;
950
+ }>;
951
+ summary: "Delete a lead distribution config";
952
+ method: "DELETE";
953
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
954
+ path: "/v2/lead-distribution-configs/:id";
955
+ responses: {
956
+ 400: z.ZodObject<{
957
+ statusCode: z.ZodNumber;
958
+ message: z.ZodString;
959
+ code: z.ZodString;
960
+ details: z.ZodOptional<z.ZodUnknown>;
961
+ timestamp: z.ZodString;
962
+ path: z.ZodString;
963
+ correlationId: z.ZodOptional<z.ZodString>;
964
+ }, "strip", z.ZodTypeAny, {
965
+ code: string;
966
+ path: string;
967
+ message: string;
968
+ statusCode: number;
969
+ timestamp: string;
970
+ details?: unknown;
971
+ correlationId?: string | undefined;
972
+ }, {
973
+ code: string;
974
+ path: string;
975
+ message: string;
976
+ statusCode: number;
977
+ timestamp: string;
978
+ details?: unknown;
979
+ correlationId?: string | undefined;
980
+ }>;
981
+ 401: z.ZodObject<{
982
+ statusCode: z.ZodNumber;
983
+ message: z.ZodString;
984
+ code: z.ZodString;
985
+ details: z.ZodOptional<z.ZodUnknown>;
986
+ timestamp: z.ZodString;
987
+ path: z.ZodString;
988
+ correlationId: z.ZodOptional<z.ZodString>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ code: string;
991
+ path: string;
992
+ message: string;
993
+ statusCode: number;
994
+ timestamp: string;
995
+ details?: unknown;
996
+ correlationId?: string | undefined;
997
+ }, {
998
+ code: string;
999
+ path: string;
1000
+ message: string;
1001
+ statusCode: number;
1002
+ timestamp: string;
1003
+ details?: unknown;
1004
+ correlationId?: string | undefined;
1005
+ }>;
1006
+ 500: z.ZodObject<{
1007
+ statusCode: z.ZodNumber;
1008
+ message: z.ZodString;
1009
+ code: z.ZodString;
1010
+ details: z.ZodOptional<z.ZodUnknown>;
1011
+ timestamp: z.ZodString;
1012
+ path: z.ZodString;
1013
+ correlationId: z.ZodOptional<z.ZodString>;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ code: string;
1016
+ path: string;
1017
+ message: string;
1018
+ statusCode: number;
1019
+ timestamp: string;
1020
+ details?: unknown;
1021
+ correlationId?: string | undefined;
1022
+ }, {
1023
+ code: string;
1024
+ path: string;
1025
+ message: string;
1026
+ statusCode: number;
1027
+ timestamp: string;
1028
+ details?: unknown;
1029
+ correlationId?: string | undefined;
1030
+ }>;
1031
+ 204: z.ZodUndefined;
1032
+ 404: z.ZodObject<{
1033
+ statusCode: z.ZodNumber;
1034
+ message: z.ZodString;
1035
+ code: z.ZodString;
1036
+ details: z.ZodOptional<z.ZodUnknown>;
1037
+ timestamp: z.ZodString;
1038
+ path: z.ZodString;
1039
+ correlationId: z.ZodOptional<z.ZodString>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ code: string;
1042
+ path: string;
1043
+ message: string;
1044
+ statusCode: number;
1045
+ timestamp: string;
1046
+ details?: unknown;
1047
+ correlationId?: string | undefined;
1048
+ }, {
1049
+ code: string;
1050
+ path: string;
1051
+ message: string;
1052
+ statusCode: number;
1053
+ timestamp: string;
1054
+ details?: unknown;
1055
+ correlationId?: string | undefined;
1056
+ }>;
1057
+ 403: z.ZodObject<{
1058
+ statusCode: z.ZodNumber;
1059
+ message: z.ZodString;
1060
+ code: z.ZodString;
1061
+ details: z.ZodOptional<z.ZodUnknown>;
1062
+ timestamp: z.ZodString;
1063
+ path: z.ZodString;
1064
+ correlationId: z.ZodOptional<z.ZodString>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ code: string;
1067
+ path: string;
1068
+ message: string;
1069
+ statusCode: number;
1070
+ timestamp: string;
1071
+ details?: unknown;
1072
+ correlationId?: string | undefined;
1073
+ }, {
1074
+ code: string;
1075
+ path: string;
1076
+ message: string;
1077
+ statusCode: number;
1078
+ timestamp: string;
1079
+ details?: unknown;
1080
+ correlationId?: string | undefined;
1081
+ }>;
1082
+ };
1083
+ };
1084
+ };
1085
+ //# sourceMappingURL=lead-distribution-config.contract.d.ts.map