@dakkitor/api-contracts 1.1.131 → 1.1.133

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 (63) hide show
  1. package/dist/abilities/abilities.contract.d.ts +19 -13
  2. package/dist/abilities/abilities.contract.js +33 -18
  3. package/dist/abilities/first-agent.abilities.json +68 -56
  4. package/dist/abilities/second-agent.abilities.json +3 -3
  5. package/dist/abilities/team-leads.json +3 -6
  6. package/dist/actives/actives.contract.d.ts +6313 -6313
  7. package/dist/actives/actives.contract.js +92 -92
  8. package/dist/agent-client-links/agent-client-links.contract.d.ts +511 -511
  9. package/dist/auth/auth.contract.d.ts +16 -16
  10. package/dist/bookings/bookings.contract.d.ts +23378 -23378
  11. package/dist/call-history/call-history.contract.d.ts +366 -366
  12. package/dist/call-history/call-history.contract.js +67 -67
  13. package/dist/client-contacts/client-contacts.contract.d.ts +159 -159
  14. package/dist/clients/clients.contract.d.ts +72 -72
  15. package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +1330 -1330
  16. package/dist/collaborations/collaborations.contract.d.ts +1198 -1198
  17. package/dist/common/call-rating.schema.d.ts +12 -12
  18. package/dist/common/call-rating.schema.js +48 -40
  19. package/dist/common/common-schemas.d.ts +4 -4
  20. package/dist/common/common-schemas.d.ts.map +1 -1
  21. package/dist/common/common-schemas.js +1 -2
  22. package/dist/common/error-schemas.d.ts +11 -5
  23. package/dist/common/error-schemas.js +11 -8
  24. package/dist/common/openapi-metadata.d.ts +54 -44
  25. package/dist/common/openapi-metadata.js +135 -129
  26. package/dist/common/pagination-query.schema.d.ts +11 -5
  27. package/dist/common/pagination-query.schema.js +11 -8
  28. package/dist/companies/companies.contract.d.ts +40 -40
  29. package/dist/cron-executions/cron-executions.contract.d.ts +14 -14
  30. package/dist/curated-workers/curated-workers.contract.d.ts +211 -211
  31. package/dist/dashboards/agent-daily-metrics.contract.d.ts +798 -616
  32. package/dist/dashboards/agent-daily-metrics.contract.js +100 -89
  33. package/dist/dashboards/dashboard-widgets.contract.d.ts +75 -75
  34. package/dist/dashboards/dashboard-widgets.contract.js +89 -89
  35. package/dist/dashboards/dashboard.contract.d.ts +305 -215
  36. package/dist/files/files.contract.d.ts +1544 -1177
  37. package/dist/files/files.contract.js +177 -162
  38. package/dist/health/health.contract.d.ts +191 -144
  39. package/dist/health/health.contract.js +53 -40
  40. package/dist/index.d.ts +67 -67
  41. package/dist/jobs/jobs.contract.d.ts +2553 -2553
  42. package/dist/jobs/jobs.contract.js +150 -150
  43. package/dist/lead-assignments/lead-assignments.contract.d.ts +587 -587
  44. package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +239 -239
  45. package/dist/lead-distribution/lead-distribution-config.contract.d.ts +25 -25
  46. package/dist/leads/leads.contract.d.ts +108 -108
  47. package/dist/leads/leads.contract.js +119 -119
  48. package/dist/locations/locations.contract.d.ts +7 -7
  49. package/dist/monitoring/monitoring.contract.d.ts +13 -13
  50. package/dist/monitoring/monitoring.contract.js +37 -37
  51. package/dist/own-research/own-research.contract.d.ts +535 -134
  52. package/dist/own-research/own-research.contract.d.ts.map +1 -1
  53. package/dist/own-research/own-research.contract.js +88 -56
  54. package/dist/postcodes/postcodes.contract.d.ts +24 -24
  55. package/dist/qualifications/qualifications.contract.d.ts +1898 -1387
  56. package/dist/qualifications/qualifications.contract.js +193 -171
  57. package/dist/trades/trades.contract.d.ts +991 -763
  58. package/dist/trades/trades.contract.js +111 -89
  59. package/dist/users/users.contract.d.ts +202 -202
  60. package/dist/users/users.contract.js +121 -121
  61. package/dist/workers/workers.contract.d.ts +710 -710
  62. package/dist/workers/workers.contract.js +150 -150
  63. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";
1
+ 'use strict';
2
2
  /**
3
3
  * Project: Internal Recruitment Platform API
4
4
  * File: openapi-metadata.ts
@@ -7,149 +7,155 @@
7
7
  * This metadata structure matches the patterns from api-responses.decorator.ts and will be
8
8
  * used to post-process the generated OpenAPI spec.
9
9
  */
10
- Object.defineProperty(exports, "__esModule", { value: true });
10
+ Object.defineProperty(exports, '__esModule', { value: true });
11
11
  exports.createStandardMetadata = exports.STANDARD_ERROR_RESPONSES = void 0;
12
12
  /**
13
13
  * Standard error response examples and descriptions
14
14
  */
15
15
  exports.STANDARD_ERROR_RESPONSES = {
16
- 400: {
17
- description: 'Bad Request. The request could not be understood by the server due to malformed syntax or invalid data.',
18
- example: {
19
- statusCode: 400,
20
- message: 'Input validation failed or request is malformed.',
21
- code: 'VALIDATION_ERROR',
22
- timestamp: '2024-01-01T12:00:00.000Z',
23
- path: '/v2/example-endpoint',
24
- },
16
+ 400: {
17
+ description:
18
+ 'Bad Request. The request could not be understood by the server due to malformed syntax or invalid data.',
19
+ example: {
20
+ statusCode: 400,
21
+ message: 'Input validation failed or request is malformed.',
22
+ code: 'VALIDATION_ERROR',
23
+ timestamp: '2024-01-01T12:00:00.000Z',
24
+ path: '/v2/example-endpoint',
25
25
  },
26
- 401: {
27
- description: 'Unauthorized. The user is not authenticated or token is missing/invalid.',
28
- example: {
29
- statusCode: 401,
30
- message: 'Authentication required or token is invalid.',
31
- code: 'UNAUTHORIZED',
32
- timestamp: '2024-01-01T12:00:00.000Z',
33
- path: '/v2/example-endpoint',
34
- },
26
+ },
27
+ 401: {
28
+ description:
29
+ 'Unauthorized. The user is not authenticated or token is missing/invalid.',
30
+ example: {
31
+ statusCode: 401,
32
+ message: 'Authentication required or token is invalid.',
33
+ code: 'UNAUTHORIZED',
34
+ timestamp: '2024-01-01T12:00:00.000Z',
35
+ path: '/v2/example-endpoint',
35
36
  },
36
- 403: {
37
- description: 'Forbidden. The user does not have the necessary permissions for this resource.',
38
- example: {
39
- statusCode: 403,
40
- message: 'Access to this resource is forbidden.',
41
- code: 'FORBIDDEN',
42
- timestamp: '2024-01-01T12:00:00.000Z',
43
- path: '/v2/example-endpoint',
44
- },
37
+ },
38
+ 403: {
39
+ description:
40
+ 'Forbidden. The user does not have the necessary permissions for this resource.',
41
+ example: {
42
+ statusCode: 403,
43
+ message: 'Access to this resource is forbidden.',
44
+ code: 'FORBIDDEN',
45
+ timestamp: '2024-01-01T12:00:00.000Z',
46
+ path: '/v2/example-endpoint',
45
47
  },
46
- 404: {
47
- description: 'Not Found. The requested resource could not be found.',
48
- example: {
49
- statusCode: 404,
50
- message: 'The requested resource could not be found.',
51
- code: 'RESOURCE_NOT_FOUND',
52
- timestamp: '2024-01-01T12:00:00.000Z',
53
- path: '/v2/example-endpoint',
54
- },
48
+ },
49
+ 404: {
50
+ description: 'Not Found. The requested resource could not be found.',
51
+ example: {
52
+ statusCode: 404,
53
+ message: 'The requested resource could not be found.',
54
+ code: 'RESOURCE_NOT_FOUND',
55
+ timestamp: '2024-01-01T12:00:00.000Z',
56
+ path: '/v2/example-endpoint',
55
57
  },
56
- 409: {
57
- description: 'Conflict. The resource already exists.',
58
- example: {
59
- statusCode: 409,
60
- message: 'A conflict occurred with the current state of the resource.',
61
- code: 'RESOURCE_CONFLICT',
62
- timestamp: '2024-01-01T12:00:00.000Z',
63
- path: '/v2/example-endpoint',
64
- },
58
+ },
59
+ 409: {
60
+ description: 'Conflict. The resource already exists.',
61
+ example: {
62
+ statusCode: 409,
63
+ message: 'A conflict occurred with the current state of the resource.',
64
+ code: 'RESOURCE_CONFLICT',
65
+ timestamp: '2024-01-01T12:00:00.000Z',
66
+ path: '/v2/example-endpoint',
65
67
  },
66
- 500: {
67
- description: 'Internal Server Error. An unexpected error occurred on the server.',
68
- example: {
69
- statusCode: 500,
70
- message: 'An unexpected error occurred on the server.',
71
- code: 'INTERNAL_SERVER_ERROR',
72
- timestamp: '2024-01-01T12:00:00.000Z',
73
- path: '/v2/example-endpoint',
74
- },
68
+ },
69
+ 500: {
70
+ description:
71
+ 'Internal Server Error. An unexpected error occurred on the server.',
72
+ example: {
73
+ statusCode: 500,
74
+ message: 'An unexpected error occurred on the server.',
75
+ code: 'INTERNAL_SERVER_ERROR',
76
+ timestamp: '2024-01-01T12:00:00.000Z',
77
+ path: '/v2/example-endpoint',
75
78
  },
79
+ },
76
80
  };
77
81
  /**
78
82
  * Helper to create metadata for standard CRUD operations
79
83
  */
80
84
  exports.createStandardMetadata = {
81
- /**
82
- * Metadata for CREATE operations (201)
83
- */
84
- create: (customResponses) => ({
85
- responses: {
86
- 201: {
87
- description: 'Resource created successfully.',
88
- },
89
- ...exports.STANDARD_ERROR_RESPONSES,
90
- 409: exports.STANDARD_ERROR_RESPONSES[409],
91
- ...customResponses,
92
- },
93
- }),
94
- /**
95
- * Metadata for FIND ONE operations (200)
96
- */
97
- findOne: (customResponses) => ({
98
- responses: {
99
- 200: {
100
- description: 'Resource retrieved successfully.',
101
- },
102
- ...exports.STANDARD_ERROR_RESPONSES,
103
- 404: exports.STANDARD_ERROR_RESPONSES[404],
104
- ...customResponses,
105
- },
106
- }),
107
- /**
108
- * Metadata for FIND ALL operations (200)
109
- */
110
- findAll: (customResponses) => ({
111
- responses: {
112
- 200: {
113
- description: 'Resources retrieved successfully.',
114
- },
115
- ...exports.STANDARD_ERROR_RESPONSES,
116
- ...customResponses,
117
- },
118
- }),
119
- /**
120
- * Metadata for UPDATE operations (200)
121
- */
122
- update: (customResponses) => ({
123
- responses: {
124
- 200: {
125
- description: 'Resource updated successfully.',
126
- },
127
- ...exports.STANDARD_ERROR_RESPONSES,
128
- 404: exports.STANDARD_ERROR_RESPONSES[404],
129
- 409: {
130
- description: 'Conflict. The resource already exists or the update causes a conflict.',
131
- example: {
132
- statusCode: 409,
133
- message: 'A conflict occurred with the current state of the resource during update.',
134
- code: 'RESOURCE_CONFLICT',
135
- timestamp: '2024-01-01T12:00:00.000Z',
136
- path: '/v2/example-endpoint',
137
- },
138
- },
139
- ...customResponses,
140
- },
141
- }),
142
- /**
143
- * Metadata for DELETE operations (204)
144
- */
145
- delete: (customResponses) => ({
146
- responses: {
147
- 204: {
148
- description: 'Resource deleted successfully.',
149
- },
150
- ...exports.STANDARD_ERROR_RESPONSES,
151
- 404: exports.STANDARD_ERROR_RESPONSES[404],
152
- ...customResponses,
85
+ /**
86
+ * Metadata for CREATE operations (201)
87
+ */
88
+ create: (customResponses) => ({
89
+ responses: {
90
+ 201: {
91
+ description: 'Resource created successfully.',
92
+ },
93
+ ...exports.STANDARD_ERROR_RESPONSES,
94
+ 409: exports.STANDARD_ERROR_RESPONSES[409],
95
+ ...customResponses,
96
+ },
97
+ }),
98
+ /**
99
+ * Metadata for FIND ONE operations (200)
100
+ */
101
+ findOne: (customResponses) => ({
102
+ responses: {
103
+ 200: {
104
+ description: 'Resource retrieved successfully.',
105
+ },
106
+ ...exports.STANDARD_ERROR_RESPONSES,
107
+ 404: exports.STANDARD_ERROR_RESPONSES[404],
108
+ ...customResponses,
109
+ },
110
+ }),
111
+ /**
112
+ * Metadata for FIND ALL operations (200)
113
+ */
114
+ findAll: (customResponses) => ({
115
+ responses: {
116
+ 200: {
117
+ description: 'Resources retrieved successfully.',
118
+ },
119
+ ...exports.STANDARD_ERROR_RESPONSES,
120
+ ...customResponses,
121
+ },
122
+ }),
123
+ /**
124
+ * Metadata for UPDATE operations (200)
125
+ */
126
+ update: (customResponses) => ({
127
+ responses: {
128
+ 200: {
129
+ description: 'Resource updated successfully.',
130
+ },
131
+ ...exports.STANDARD_ERROR_RESPONSES,
132
+ 404: exports.STANDARD_ERROR_RESPONSES[404],
133
+ 409: {
134
+ description:
135
+ 'Conflict. The resource already exists or the update causes a conflict.',
136
+ example: {
137
+ statusCode: 409,
138
+ message:
139
+ 'A conflict occurred with the current state of the resource during update.',
140
+ code: 'RESOURCE_CONFLICT',
141
+ timestamp: '2024-01-01T12:00:00.000Z',
142
+ path: '/v2/example-endpoint',
153
143
  },
154
- }),
144
+ },
145
+ ...customResponses,
146
+ },
147
+ }),
148
+ /**
149
+ * Metadata for DELETE operations (204)
150
+ */
151
+ delete: (customResponses) => ({
152
+ responses: {
153
+ 204: {
154
+ description: 'Resource deleted successfully.',
155
+ },
156
+ ...exports.STANDARD_ERROR_RESPONSES,
157
+ 404: exports.STANDARD_ERROR_RESPONSES[404],
158
+ ...customResponses,
159
+ },
160
+ }),
155
161
  };
@@ -3,15 +3,21 @@ import { z } from 'zod';
3
3
  * Common pagination query parameters schema for API requests.
4
4
  * Provides standard page and limit parameters with sensible defaults.
5
5
  */
6
- export declare const PaginationQuerySchema: z.ZodObject<{
6
+ export declare const PaginationQuerySchema: z.ZodObject<
7
+ {
7
8
  limit: z.ZodDefault<z.ZodNumber>;
8
9
  page: z.ZodDefault<z.ZodNumber>;
9
- }, "strip", z.ZodTypeAny, {
10
+ },
11
+ 'strip',
12
+ z.ZodTypeAny,
13
+ {
10
14
  limit: number;
11
15
  page: number;
12
- }, {
16
+ },
17
+ {
13
18
  limit?: number | undefined;
14
19
  page?: number | undefined;
15
- }>;
20
+ }
21
+ >;
16
22
  export type PaginationQuery = z.infer<typeof PaginationQuerySchema>;
17
- //# sourceMappingURL=pagination-query.schema.d.ts.map
23
+ //# sourceMappingURL=pagination-query.schema.d.ts.map
@@ -1,15 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.PaginationQuerySchema = void 0;
4
- const zod_1 = require("zod");
4
+ const zod_1 = require('zod');
5
5
  /**
6
6
  * Common pagination query parameters schema for API requests.
7
7
  * Provides standard page and limit parameters with sensible defaults.
8
8
  */
9
9
  exports.PaginationQuerySchema = zod_1.z.object({
10
- limit: zod_1.z.coerce
11
- .number()
12
- .default(50)
13
- .describe('The number of items to return per page.'),
14
- page: zod_1.z.coerce.number().default(1).describe('The page number to retrieve.'),
10
+ limit: zod_1.z.coerce
11
+ .number()
12
+ .default(50)
13
+ .describe('The number of items to return per page.'),
14
+ page: zod_1.z.coerce
15
+ .number()
16
+ .default(1)
17
+ .describe('The page number to retrieve.'),
15
18
  });
@@ -8,13 +8,13 @@ export declare const CompanySchema: z.ZodObject<{
8
8
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
9
9
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- id: string;
12
11
  name: string;
12
+ id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  }, {
16
- id: string;
17
16
  name: string;
17
+ id: string;
18
18
  createdAt: string | Date;
19
19
  updatedAt: string | Date;
20
20
  }>;
@@ -40,37 +40,37 @@ export declare const FilterCompanySchema: z.ZodObject<{
40
40
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "createdAt", "updatedAt"]>>>;
41
41
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- limit: number;
44
43
  page: number;
44
+ limit: number;
45
45
  name?: string | null | undefined;
46
46
  sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
47
47
  sortOrder?: "ASC" | "DESC" | null | undefined;
48
48
  }, {
49
49
  name?: string | null | undefined;
50
- limit?: number | undefined;
51
- page?: number | undefined;
52
50
  sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
53
51
  sortOrder?: "ASC" | "DESC" | null | undefined;
52
+ page?: number | undefined;
53
+ limit?: number | undefined;
54
54
  }>;
55
55
  export declare const CompanyAutocompleteResponseSchema: z.ZodObject<{
56
56
  id: z.ZodString;
57
57
  name: z.ZodString;
58
58
  }, "strip", z.ZodTypeAny, {
59
- id: string;
60
59
  name: string;
61
- }, {
62
60
  id: string;
61
+ }, {
63
62
  name: string;
63
+ id: string;
64
64
  }>;
65
65
  export declare const CompanyAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
66
66
  id: z.ZodString;
67
67
  name: z.ZodString;
68
68
  }, "strip", z.ZodTypeAny, {
69
- id: string;
70
69
  name: string;
71
- }, {
72
70
  id: string;
71
+ }, {
73
72
  name: string;
73
+ id: string;
74
74
  }>, "many">;
75
75
  export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
76
76
  items: z.ZodArray<z.ZodObject<{
@@ -79,13 +79,13 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
79
79
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
80
80
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
81
81
  }, "strip", z.ZodTypeAny, {
82
- id: string;
83
82
  name: string;
83
+ id: string;
84
84
  createdAt: string;
85
85
  updatedAt: string;
86
86
  }, {
87
- id: string;
88
87
  name: string;
88
+ id: string;
89
89
  createdAt: string | Date;
90
90
  updatedAt: string | Date;
91
91
  }>, "many">;
@@ -97,8 +97,8 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
97
97
  }, "strip", z.ZodTypeAny, {
98
98
  limit: number;
99
99
  items: {
100
- id: string;
101
100
  name: string;
101
+ id: string;
102
102
  createdAt: string;
103
103
  updatedAt: string;
104
104
  }[];
@@ -109,8 +109,8 @@ export declare const CompaniesPaginatedResponseSchema: z.ZodObject<{
109
109
  }, {
110
110
  limit: number;
111
111
  items: {
112
- id: string;
113
112
  name: string;
113
+ id: string;
114
114
  createdAt: string | Date;
115
115
  updatedAt: string | Date;
116
116
  }[];
@@ -252,13 +252,13 @@ export declare const companiesContractRouter: {
252
252
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
253
253
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
254
254
  }, "strip", z.ZodTypeAny, {
255
- id: string;
256
255
  name: string;
256
+ id: string;
257
257
  createdAt: string;
258
258
  updatedAt: string;
259
259
  }, {
260
- id: string;
261
260
  name: string;
261
+ id: string;
262
262
  createdAt: string | Date;
263
263
  updatedAt: string | Date;
264
264
  }>;
@@ -290,12 +290,6 @@ export declare const companiesContractRouter: {
290
290
  };
291
291
  };
292
292
  findAll: {
293
- metadata: {
294
- tags: string[];
295
- openApi: {
296
- operationId: string;
297
- };
298
- };
299
293
  query: z.ZodObject<{
300
294
  limit: z.ZodDefault<z.ZodNumber>;
301
295
  page: z.ZodDefault<z.ZodNumber>;
@@ -304,18 +298,24 @@ export declare const companiesContractRouter: {
304
298
  sortBy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["name", "createdAt", "updatedAt"]>>>;
305
299
  sortOrder: z.ZodNullable<z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>>;
306
300
  }, "strip", z.ZodTypeAny, {
307
- limit: number;
308
301
  page: number;
302
+ limit: number;
309
303
  name?: string | null | undefined;
310
304
  sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
311
305
  sortOrder?: "ASC" | "DESC" | null | undefined;
312
306
  }, {
313
307
  name?: string | null | undefined;
314
- limit?: number | undefined;
315
- page?: number | undefined;
316
308
  sortBy?: "name" | "createdAt" | "updatedAt" | null | undefined;
317
309
  sortOrder?: "ASC" | "DESC" | null | undefined;
310
+ page?: number | undefined;
311
+ limit?: number | undefined;
318
312
  }>;
313
+ metadata: {
314
+ tags: string[];
315
+ openApi: {
316
+ operationId: string;
317
+ };
318
+ };
319
319
  summary: "Get all companies";
320
320
  method: "GET";
321
321
  path: "/v2/companies";
@@ -427,13 +427,13 @@ export declare const companiesContractRouter: {
427
427
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
428
428
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
429
429
  }, "strip", z.ZodTypeAny, {
430
- id: string;
431
430
  name: string;
431
+ id: string;
432
432
  createdAt: string;
433
433
  updatedAt: string;
434
434
  }, {
435
- id: string;
436
435
  name: string;
436
+ id: string;
437
437
  createdAt: string | Date;
438
438
  updatedAt: string | Date;
439
439
  }>, "many">;
@@ -445,8 +445,8 @@ export declare const companiesContractRouter: {
445
445
  }, "strip", z.ZodTypeAny, {
446
446
  limit: number;
447
447
  items: {
448
- id: string;
449
448
  name: string;
449
+ id: string;
450
450
  createdAt: string;
451
451
  updatedAt: string;
452
452
  }[];
@@ -457,8 +457,8 @@ export declare const companiesContractRouter: {
457
457
  }, {
458
458
  limit: number;
459
459
  items: {
460
- id: string;
461
460
  name: string;
461
+ id: string;
462
462
  createdAt: string | Date;
463
463
  updatedAt: string | Date;
464
464
  }[];
@@ -470,12 +470,6 @@ export declare const companiesContractRouter: {
470
470
  };
471
471
  };
472
472
  autocomplete: {
473
- metadata: {
474
- tags: string[];
475
- openApi: {
476
- operationId: string;
477
- };
478
- };
479
473
  query: z.ZodObject<{
480
474
  query: z.ZodOptional<z.ZodString>;
481
475
  id: z.ZodOptional<z.ZodString>;
@@ -486,6 +480,12 @@ export declare const companiesContractRouter: {
486
480
  id?: string | undefined;
487
481
  query?: string | undefined;
488
482
  }>;
483
+ metadata: {
484
+ tags: string[];
485
+ openApi: {
486
+ operationId: string;
487
+ };
488
+ };
489
489
  summary: "Get companies for autocomplete";
490
490
  method: "GET";
491
491
  path: "/v2/companies/autocomplete";
@@ -594,11 +594,11 @@ export declare const companiesContractRouter: {
594
594
  id: z.ZodString;
595
595
  name: z.ZodString;
596
596
  }, "strip", z.ZodTypeAny, {
597
- id: string;
598
597
  name: string;
599
- }, {
600
598
  id: string;
599
+ }, {
601
600
  name: string;
601
+ id: string;
602
602
  }>, "many">;
603
603
  };
604
604
  };
@@ -726,13 +726,13 @@ export declare const companiesContractRouter: {
726
726
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
727
727
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
728
728
  }, "strip", z.ZodTypeAny, {
729
- id: string;
730
729
  name: string;
730
+ id: string;
731
731
  createdAt: string;
732
732
  updatedAt: string;
733
733
  }, {
734
- id: string;
735
734
  name: string;
735
+ id: string;
736
736
  createdAt: string | Date;
737
737
  updatedAt: string | Date;
738
738
  }>;
@@ -894,13 +894,13 @@ export declare const companiesContractRouter: {
894
894
  createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
895
895
  updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
896
896
  }, "strip", z.ZodTypeAny, {
897
- id: string;
898
897
  name: string;
898
+ id: string;
899
899
  createdAt: string;
900
900
  updatedAt: string;
901
901
  }, {
902
- id: string;
903
902
  name: string;
903
+ id: string;
904
904
  createdAt: string | Date;
905
905
  updatedAt: string | Date;
906
906
  }>;