@dakkitor/api-contracts 1.1.109 → 1.1.112

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 (31) hide show
  1. package/dist/actives/actives.contract.d.ts +3059 -3059
  2. package/dist/agent-client-links/agent-client-links.contract.d.ts +74 -74
  3. package/dist/bookings/bookings.contract.d.ts +11037 -11037
  4. package/dist/call-history/call-history.contract.d.ts +294 -294
  5. package/dist/client-contacts/client-contacts.contract.d.ts +186 -186
  6. package/dist/clients/clients.contract.d.ts +99 -99
  7. package/dist/clients/clients.contract.d.ts.map +1 -1
  8. package/dist/clients/clients.contract.js +5 -5
  9. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +440 -440
  10. package/dist/collaborations/collaborations.contract.d.ts +328 -328
  11. package/dist/companies/companies.contract.d.ts +22 -22
  12. package/dist/curated-workers/curated-workers.contract.d.ts +76 -76
  13. package/dist/dashboards/agent-daily-metrics.contract.d.ts +3 -3
  14. package/dist/dashboards/dashboard-widgets.contract.d.ts +224 -150
  15. package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
  16. package/dist/dashboards/dashboard-widgets.contract.js +124 -101
  17. package/dist/dashboards/dashboard.contract.d.ts +14 -14
  18. package/dist/files/files.contract.d.ts +24 -24
  19. package/dist/jobs/jobs.contract.d.ts +907 -907
  20. package/dist/lead-assignments/lead-assignments.contract.d.ts +160 -160
  21. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +34 -34
  22. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +7 -7
  23. package/dist/leads/leads.contract.d.ts +136 -136
  24. package/dist/postcodes/postcodes.contract.d.ts +18 -18
  25. package/dist/qualifications/qualifications.contract.d.ts +22 -22
  26. package/dist/trades/trades.contract.d.ts +16 -16
  27. package/dist/users/users.contract.d.ts +6 -6
  28. package/dist/workers/workers.contract.d.ts +288 -288
  29. package/package.json +41 -41
  30. package/dist/abilities/interconnection.json +0 -370
  31. package/dist/abilities/second-agent.abilities copy.json +0 -370
@@ -13,11 +13,11 @@ export declare const PostcodeAutocompleteResponseSchema: z.ZodObject<{
13
13
  id: z.ZodString;
14
14
  code: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
16
- id: string;
17
16
  code: string;
18
- }, {
19
17
  id: string;
18
+ }, {
20
19
  code: string;
20
+ id: string;
21
21
  }>;
22
22
  export declare const PostcodeSearchQuerySchema: z.ZodObject<{
23
23
  limit: z.ZodDefault<z.ZodNumber>;
@@ -40,12 +40,12 @@ export declare const PostcodeSearchResultSchema: z.ZodObject<{
40
40
  relevance: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  code: string;
43
- type: "area" | "district" | "sector" | "postcode";
43
+ type: "postcode" | "area" | "district" | "sector";
44
44
  relevance: number;
45
45
  description?: string | undefined;
46
46
  }, {
47
47
  code: string;
48
- type: "area" | "district" | "sector" | "postcode";
48
+ type: "postcode" | "area" | "district" | "sector";
49
49
  relevance: number;
50
50
  description?: string | undefined;
51
51
  }>;
@@ -53,11 +53,11 @@ export declare const PostcodeAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
53
53
  id: z.ZodString;
54
54
  code: z.ZodString;
55
55
  }, "strip", z.ZodTypeAny, {
56
- id: string;
57
56
  code: string;
58
- }, {
59
57
  id: string;
58
+ }, {
60
59
  code: string;
60
+ id: string;
61
61
  }>, "many">;
62
62
  export type PostcodeAutocompleteQuery = z.infer<typeof PostcodeAutocompleteQuerySchema>;
63
63
  export type PostcodeAutocompleteResponse = z.infer<typeof PostcodeAutocompleteResponseSchema>;
@@ -66,9 +66,6 @@ export type PostcodeSearchQuery = z.infer<typeof PostcodeSearchQuerySchema>;
66
66
  export type PostcodeSearchResult = z.infer<typeof PostcodeSearchResultSchema>;
67
67
  export declare const postcodesContract: {
68
68
  autocomplete: {
69
- metadata: {
70
- tags: string[];
71
- };
72
69
  query: z.ZodObject<{
73
70
  query: z.ZodOptional<z.ZodString>;
74
71
  id: z.ZodOptional<z.ZodString>;
@@ -79,6 +76,9 @@ export declare const postcodesContract: {
79
76
  id?: string | undefined;
80
77
  query?: string | undefined;
81
78
  }>;
79
+ metadata: {
80
+ tags: string[];
81
+ };
82
82
  summary: "Get postcodes for autocomplete";
83
83
  method: "GET";
84
84
  path: "/v1/postcodes/autocomplete";
@@ -187,18 +187,15 @@ export declare const postcodesContract: {
187
187
  id: z.ZodString;
188
188
  code: z.ZodString;
189
189
  }, "strip", z.ZodTypeAny, {
190
- id: string;
191
190
  code: string;
192
- }, {
193
191
  id: string;
192
+ }, {
194
193
  code: string;
194
+ id: string;
195
195
  }>, "many">;
196
196
  };
197
197
  };
198
198
  search: {
199
- metadata: {
200
- tags: string[];
201
- };
202
199
  query: z.ZodObject<{
203
200
  limit: z.ZodDefault<z.ZodNumber>;
204
201
  page: z.ZodDefault<z.ZodNumber>;
@@ -213,6 +210,9 @@ export declare const postcodesContract: {
213
210
  limit?: number | undefined;
214
211
  page?: number | undefined;
215
212
  }>;
213
+ metadata: {
214
+ tags: string[];
215
+ };
216
216
  summary: "Search postcodes";
217
217
  method: "GET";
218
218
  path: "/v1/postcodes/search";
@@ -325,12 +325,12 @@ export declare const postcodesContract: {
325
325
  relevance: z.ZodNumber;
326
326
  }, "strip", z.ZodTypeAny, {
327
327
  code: string;
328
- type: "area" | "district" | "sector" | "postcode";
328
+ type: "postcode" | "area" | "district" | "sector";
329
329
  relevance: number;
330
330
  description?: string | undefined;
331
331
  }, {
332
332
  code: string;
333
- type: "area" | "district" | "sector" | "postcode";
333
+ type: "postcode" | "area" | "district" | "sector";
334
334
  relevance: number;
335
335
  description?: string | undefined;
336
336
  }>, "many">;
@@ -343,7 +343,7 @@ export declare const postcodesContract: {
343
343
  limit: number;
344
344
  items: {
345
345
  code: string;
346
- type: "area" | "district" | "sector" | "postcode";
346
+ type: "postcode" | "area" | "district" | "sector";
347
347
  relevance: number;
348
348
  description?: string | undefined;
349
349
  }[];
@@ -355,7 +355,7 @@ export declare const postcodesContract: {
355
355
  limit: number;
356
356
  items: {
357
357
  code: string;
358
- type: "area" | "district" | "sector" | "postcode";
358
+ type: "postcode" | "area" | "district" | "sector";
359
359
  relevance: number;
360
360
  description?: string | undefined;
361
361
  }[];
@@ -25,16 +25,16 @@ export declare const QualificationSchema: z.ZodObject<{
25
25
  }>, "many">;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  id: string;
28
- name: string;
29
28
  description: string | null;
29
+ name: string;
30
30
  types: {
31
31
  id: string;
32
32
  name: string;
33
33
  }[];
34
34
  }, {
35
35
  id: string;
36
- name: string;
37
36
  description: string | null;
37
+ name: string;
38
38
  types: {
39
39
  id: string;
40
40
  name: string;
@@ -58,14 +58,14 @@ export declare const CreateQualificationSchema: z.ZodObject<{
58
58
  name: string;
59
59
  }>, "many">>;
60
60
  }, "strip", z.ZodTypeAny, {
61
- name: string;
62
61
  description: string;
62
+ name: string;
63
63
  types?: {
64
64
  name: string;
65
65
  }[] | undefined;
66
66
  }, {
67
- name: string;
68
67
  description: string;
68
+ name: string;
69
69
  types?: {
70
70
  name: string;
71
71
  }[] | undefined;
@@ -94,15 +94,15 @@ export declare const UpdateQualificationSchema: z.ZodObject<{
94
94
  id?: string | undefined;
95
95
  }>, "many">>;
96
96
  }, "strip", z.ZodTypeAny, {
97
- name?: string | undefined;
98
97
  description?: string | undefined;
98
+ name?: string | undefined;
99
99
  types?: {
100
100
  name: string;
101
101
  id?: string | undefined;
102
102
  }[] | undefined;
103
103
  }, {
104
- name?: string | undefined;
105
104
  description?: string | undefined;
105
+ name?: string | undefined;
106
106
  types?: {
107
107
  name: string;
108
108
  id?: string | undefined;
@@ -131,16 +131,16 @@ export declare const QualificationArraySchema: z.ZodArray<z.ZodObject<{
131
131
  }>, "many">;
132
132
  }, "strip", z.ZodTypeAny, {
133
133
  id: string;
134
- name: string;
135
134
  description: string | null;
135
+ name: string;
136
136
  types: {
137
137
  id: string;
138
138
  name: string;
139
139
  }[];
140
140
  }, {
141
141
  id: string;
142
- name: string;
143
142
  description: string | null;
143
+ name: string;
144
144
  types: {
145
145
  id: string;
146
146
  name: string;
@@ -171,14 +171,14 @@ export declare const qualificationsContract: {
171
171
  name: string;
172
172
  }>, "many">>;
173
173
  }, "strip", z.ZodTypeAny, {
174
- name: string;
175
174
  description: string;
175
+ name: string;
176
176
  types?: {
177
177
  name: string;
178
178
  }[] | undefined;
179
179
  }, {
180
- name: string;
181
180
  description: string;
181
+ name: string;
182
182
  types?: {
183
183
  name: string;
184
184
  }[] | undefined;
@@ -301,16 +301,16 @@ export declare const qualificationsContract: {
301
301
  }>, "many">;
302
302
  }, "strip", z.ZodTypeAny, {
303
303
  id: string;
304
- name: string;
305
304
  description: string | null;
305
+ name: string;
306
306
  types: {
307
307
  id: string;
308
308
  name: string;
309
309
  }[];
310
310
  }, {
311
311
  id: string;
312
- name: string;
313
312
  description: string | null;
313
+ name: string;
314
314
  types: {
315
315
  id: string;
316
316
  name: string;
@@ -467,16 +467,16 @@ export declare const qualificationsContract: {
467
467
  }>, "many">;
468
468
  }, "strip", z.ZodTypeAny, {
469
469
  id: string;
470
- name: string;
471
470
  description: string | null;
471
+ name: string;
472
472
  types: {
473
473
  id: string;
474
474
  name: string;
475
475
  }[];
476
476
  }, {
477
477
  id: string;
478
- name: string;
479
478
  description: string | null;
479
+ name: string;
480
480
  types: {
481
481
  id: string;
482
482
  name: string;
@@ -615,16 +615,16 @@ export declare const qualificationsContract: {
615
615
  }>, "many">;
616
616
  }, "strip", z.ZodTypeAny, {
617
617
  id: string;
618
- name: string;
619
618
  description: string | null;
619
+ name: string;
620
620
  types: {
621
621
  id: string;
622
622
  name: string;
623
623
  }[];
624
624
  }, {
625
625
  id: string;
626
- name: string;
627
626
  description: string | null;
627
+ name: string;
628
628
  types: {
629
629
  id: string;
630
630
  name: string;
@@ -684,15 +684,15 @@ export declare const qualificationsContract: {
684
684
  id?: string | undefined;
685
685
  }>, "many">>;
686
686
  }, "strip", z.ZodTypeAny, {
687
- name?: string | undefined;
688
687
  description?: string | undefined;
688
+ name?: string | undefined;
689
689
  types?: {
690
690
  name: string;
691
691
  id?: string | undefined;
692
692
  }[] | undefined;
693
693
  }, {
694
- name?: string | undefined;
695
694
  description?: string | undefined;
695
+ name?: string | undefined;
696
696
  types?: {
697
697
  name: string;
698
698
  id?: string | undefined;
@@ -816,16 +816,16 @@ export declare const qualificationsContract: {
816
816
  }>, "many">;
817
817
  }, "strip", z.ZodTypeAny, {
818
818
  id: string;
819
- name: string;
820
819
  description: string | null;
820
+ name: string;
821
821
  types: {
822
822
  id: string;
823
823
  name: string;
824
824
  }[];
825
825
  }, {
826
826
  id: string;
827
- name: string;
828
827
  description: string | null;
828
+ name: string;
829
829
  types: {
830
830
  id: string;
831
831
  name: string;
@@ -1140,16 +1140,16 @@ export declare const qualificationsContract: {
1140
1140
  }>, "many">;
1141
1141
  }, "strip", z.ZodTypeAny, {
1142
1142
  id: string;
1143
- name: string;
1144
1143
  description: string | null;
1144
+ name: string;
1145
1145
  types: {
1146
1146
  id: string;
1147
1147
  name: string;
1148
1148
  }[];
1149
1149
  }, {
1150
1150
  id: string;
1151
- name: string;
1152
1151
  description: string | null;
1152
+ name: string;
1153
1153
  types: {
1154
1154
  id: string;
1155
1155
  name: string;
@@ -5,12 +5,12 @@ export declare const TradeSchema: z.ZodObject<{
5
5
  description: z.ZodNullable<z.ZodString>;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  id: string;
8
- name: string;
9
8
  description: string | null;
9
+ name: string;
10
10
  }, {
11
11
  id: string;
12
- name: string;
13
12
  description: string | null;
13
+ name: string;
14
14
  }>;
15
15
  export declare const CreateTradeSchema: z.ZodObject<{
16
16
  name: z.ZodString;
@@ -26,11 +26,11 @@ export declare const UpdateTradeSchema: z.ZodObject<{
26
26
  name: z.ZodOptional<z.ZodString>;
27
27
  description: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- name?: string | undefined;
30
29
  description?: string | undefined;
31
- }, {
32
30
  name?: string | undefined;
31
+ }, {
33
32
  description?: string | undefined;
33
+ name?: string | undefined;
34
34
  }>;
35
35
  export declare const TradeArraySchema: z.ZodArray<z.ZodObject<{
36
36
  id: z.ZodString;
@@ -38,12 +38,12 @@ export declare const TradeArraySchema: z.ZodArray<z.ZodObject<{
38
38
  description: z.ZodNullable<z.ZodString>;
39
39
  }, "strip", z.ZodTypeAny, {
40
40
  id: string;
41
- name: string;
42
41
  description: string | null;
42
+ name: string;
43
43
  }, {
44
44
  id: string;
45
- name: string;
46
45
  description: string | null;
46
+ name: string;
47
47
  }>, "many">;
48
48
  export type Trade = z.infer<typeof TradeSchema>;
49
49
  export type TradeArray = z.infer<typeof TradeArraySchema>;
@@ -174,12 +174,12 @@ export declare const tradesContract: {
174
174
  description: z.ZodNullable<z.ZodString>;
175
175
  }, "strip", z.ZodTypeAny, {
176
176
  id: string;
177
- name: string;
178
177
  description: string | null;
178
+ name: string;
179
179
  }, {
180
180
  id: string;
181
- name: string;
182
181
  description: string | null;
182
+ name: string;
183
183
  }>;
184
184
  409: z.ZodObject<{
185
185
  statusCode: z.ZodNumber;
@@ -322,12 +322,12 @@ export declare const tradesContract: {
322
322
  description: z.ZodNullable<z.ZodString>;
323
323
  }, "strip", z.ZodTypeAny, {
324
324
  id: string;
325
- name: string;
326
325
  description: string | null;
326
+ name: string;
327
327
  }, {
328
328
  id: string;
329
- name: string;
330
329
  description: string | null;
330
+ name: string;
331
331
  }>, "many">;
332
332
  };
333
333
  };
@@ -452,12 +452,12 @@ export declare const tradesContract: {
452
452
  description: z.ZodNullable<z.ZodString>;
453
453
  }, "strip", z.ZodTypeAny, {
454
454
  id: string;
455
- name: string;
456
455
  description: string | null;
456
+ name: string;
457
457
  }, {
458
458
  id: string;
459
- name: string;
460
459
  description: string | null;
460
+ name: string;
461
461
  }>;
462
462
  404: z.ZodObject<{
463
463
  statusCode: z.ZodNumber;
@@ -503,11 +503,11 @@ export declare const tradesContract: {
503
503
  name: z.ZodOptional<z.ZodString>;
504
504
  description: z.ZodOptional<z.ZodString>;
505
505
  }, "strip", z.ZodTypeAny, {
506
- name?: string | undefined;
507
506
  description?: string | undefined;
508
- }, {
509
507
  name?: string | undefined;
508
+ }, {
510
509
  description?: string | undefined;
510
+ name?: string | undefined;
511
511
  }>;
512
512
  path: "/v2/trades/:id";
513
513
  responses: {
@@ -617,12 +617,12 @@ export declare const tradesContract: {
617
617
  description: z.ZodNullable<z.ZodString>;
618
618
  }, "strip", z.ZodTypeAny, {
619
619
  id: string;
620
- name: string;
621
620
  description: string | null;
621
+ name: string;
622
622
  }, {
623
623
  id: string;
624
- name: string;
625
624
  description: string | null;
625
+ name: string;
626
626
  }>;
627
627
  404: z.ZodObject<{
628
628
  statusCode: z.ZodNumber;
@@ -271,9 +271,9 @@ export declare const FilterUserSchema: z.ZodObject<{
271
271
  limit: number;
272
272
  page: number;
273
273
  name?: string | undefined;
274
+ email?: string | undefined;
274
275
  sortBy?: "createdAt" | "firstName" | "lastName" | "email" | undefined;
275
276
  sortOrder?: "ASC" | "DESC" | undefined;
276
- email?: string | undefined;
277
277
  roles?: {
278
278
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
279
279
  requireAll?: boolean | undefined;
@@ -281,12 +281,12 @@ export declare const FilterUserSchema: z.ZodObject<{
281
281
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | undefined;
282
282
  phone?: string | undefined;
283
283
  }, {
284
+ name?: string | undefined;
285
+ email?: string | undefined;
284
286
  limit?: number | undefined;
285
287
  page?: number | undefined;
286
- name?: string | undefined;
287
288
  sortBy?: "createdAt" | "firstName" | "lastName" | "email" | undefined;
288
289
  sortOrder?: "ASC" | "DESC" | undefined;
289
- email?: string | undefined;
290
290
  roles?: {
291
291
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
292
292
  requireAll?: unknown;
@@ -763,9 +763,9 @@ export declare const usersContract: {
763
763
  limit: number;
764
764
  page: number;
765
765
  name?: string | undefined;
766
+ email?: string | undefined;
766
767
  sortBy?: "createdAt" | "firstName" | "lastName" | "email" | undefined;
767
768
  sortOrder?: "ASC" | "DESC" | undefined;
768
- email?: string | undefined;
769
769
  roles?: {
770
770
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
771
771
  requireAll?: boolean | undefined;
@@ -773,12 +773,12 @@ export declare const usersContract: {
773
773
  office?: "ALBANIA" | "CRAIOVA" | "DANI" | "GABI_RECRUTARE" | "GEORGIA" | "INDIA" | "IONITA" | "MARIUS_DRAGAN" | "MAX_MANGU" | "MAXIM_VADIM" | "MD_BOGDAN" | "MD_DANIEL_CHISINAU" | "NEACSU" | "ROBERT_DENIS" | "ROBERT_RADU" | "VICTORIEI_MIRIAM" | "VIZIRU" | "Y_INDIVIDUALS_RECRUITMENT" | undefined;
774
774
  phone?: string | undefined;
775
775
  }, {
776
+ name?: string | undefined;
777
+ email?: string | undefined;
776
778
  limit?: number | undefined;
777
779
  page?: number | undefined;
778
- name?: string | undefined;
779
780
  sortBy?: "createdAt" | "firstName" | "lastName" | "email" | undefined;
780
781
  sortOrder?: "ASC" | "DESC" | undefined;
781
- email?: string | undefined;
782
782
  roles?: {
783
783
  values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS")[] | undefined;
784
784
  requireAll?: unknown;