@dakkitor/api-contracts 1.1.10 → 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.
- package/dist/actives/actives.contract.d.ts +104 -104
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +3 -6
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1905 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -0
- package/dist/agent-client-links/agent-client-links.contract.js +127 -0
- package/dist/auth/auth.contract.d.ts +319 -0
- package/dist/auth/auth.contract.d.ts.map +1 -0
- package/dist/auth/auth.contract.js +63 -0
- package/dist/bookings/bookings.contract.d.ts +273 -182
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +25 -33
- package/dist/call-history/call-history.contract.d.ts +1164 -0
- package/dist/call-history/call-history.contract.d.ts.map +1 -0
- package/dist/call-history/call-history.contract.js +254 -0
- package/dist/client-contacts/client-contacts.contract.d.ts +215 -268
- package/dist/client-contacts/client-contacts.contract.d.ts.map +1 -1
- package/dist/client-contacts/client-contacts.contract.js +21 -10
- package/dist/clients/clients.contract.d.ts +153 -125
- package/dist/clients/clients.contract.d.ts.map +1 -1
- package/dist/clients/clients.contract.js +44 -29
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3013 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.js +247 -0
- package/dist/collaborations/collaborations.contract.d.ts +2229 -0
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -0
- package/dist/collaborations/collaborations.contract.js +284 -0
- package/dist/common/common-schemas.d.ts +100 -0
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +268 -1
- package/dist/common/openapi-metadata.d.ts +6 -0
- package/dist/common/openapi-metadata.d.ts.map +1 -1
- package/dist/companies/companies.contract.d.ts +1108 -0
- package/dist/companies/companies.contract.d.ts.map +1 -0
- package/dist/companies/companies.contract.js +164 -0
- package/dist/cron-executions/cron-executions.contract.d.ts +1643 -0
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -0
- package/dist/cron-executions/cron-executions.contract.js +271 -0
- package/dist/curated-workers/curated-workers.contract.d.ts +3183 -0
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -0
- package/dist/curated-workers/curated-workers.contract.js +444 -0
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +639 -0
- package/dist/dashboards/agent-daily-metrics.contract.d.ts.map +1 -0
- package/dist/dashboards/agent-daily-metrics.contract.js +118 -0
- package/dist/files/files.contract.d.ts +1258 -0
- package/dist/files/files.contract.d.ts.map +1 -0
- package/dist/files/files.contract.js +205 -0
- package/dist/health/health.contract.d.ts +161 -0
- package/dist/health/health.contract.d.ts.map +1 -0
- package/dist/health/health.contract.js +52 -0
- package/dist/index.d.ts +27370 -3319
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +63 -0
- package/dist/jobs/jobs.contract.d.ts +2303 -0
- package/dist/jobs/jobs.contract.d.ts.map +1 -0
- package/dist/jobs/jobs.contract.js +295 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1826 -0
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -0
- package/dist/lead-assignments/lead-assignments.contract.js +187 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +1147 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -0
- package/dist/lead-distribution/agent-lead-distribution.contract.js +154 -0
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +1085 -0
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts.map +1 -0
- package/dist/lead-distribution/lead-distribution-config.contract.js +196 -0
- package/dist/leads/leads.contract.d.ts +1690 -0
- package/dist/leads/leads.contract.d.ts.map +1 -0
- package/dist/leads/leads.contract.js +328 -0
- package/dist/locations/locations.contract.d.ts +974 -0
- package/dist/locations/locations.contract.d.ts.map +1 -0
- package/dist/locations/locations.contract.js +154 -0
- package/dist/postcodes/postcodes.contract.d.ts +370 -0
- package/dist/postcodes/postcodes.contract.d.ts.map +1 -0
- package/dist/postcodes/postcodes.contract.js +90 -0
- package/dist/qualifications/qualifications.contract.d.ts +1489 -0
- package/dist/qualifications/qualifications.contract.d.ts.map +1 -0
- package/dist/qualifications/qualifications.contract.js +215 -0
- package/dist/trades/trades.contract.d.ts +799 -0
- package/dist/trades/trades.contract.d.ts.map +1 -0
- package/dist/trades/trades.contract.js +112 -0
- package/dist/users/users.contract.d.ts +102 -96
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +9 -21
- package/dist/workers/workers.contract.d.ts +3376 -0
- package/dist/workers/workers.contract.d.ts.map +1 -0
- package/dist/workers/workers.contract.js +363 -0
- package/package.json +4 -3
|
@@ -45,7 +45,6 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
45
45
|
}>;
|
|
46
46
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
47
47
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
48
|
-
version: z.ZodNumber;
|
|
49
48
|
agentClientLinks: z.ZodObject<{
|
|
50
49
|
agentId: z.ZodString;
|
|
51
50
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -54,41 +53,39 @@ export declare const ClientSchema: z.ZodObject<{
|
|
|
54
53
|
agentId: string;
|
|
55
54
|
}>;
|
|
56
55
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
58
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
56
|
id: string;
|
|
57
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
61
58
|
name: string;
|
|
62
|
-
director: string;
|
|
63
59
|
crn: string;
|
|
64
60
|
govLink: string;
|
|
61
|
+
director: string;
|
|
65
62
|
lastUpdatedBy: {
|
|
66
63
|
id: string;
|
|
67
64
|
firstName: string;
|
|
68
65
|
lastName: string;
|
|
69
66
|
email: string;
|
|
70
67
|
};
|
|
71
|
-
|
|
68
|
+
createdAt: string;
|
|
69
|
+
updatedAt: string;
|
|
72
70
|
agentClientLinks: {
|
|
73
71
|
agentId: string;
|
|
74
72
|
};
|
|
75
73
|
blacklistReason?: string | null | undefined;
|
|
76
74
|
}, {
|
|
77
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
78
|
-
createdAt: string | Date;
|
|
79
|
-
updatedAt: string | Date;
|
|
80
75
|
id: string;
|
|
76
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
81
77
|
name: string;
|
|
82
|
-
director: string;
|
|
83
78
|
crn: string;
|
|
84
79
|
govLink: string;
|
|
80
|
+
director: string;
|
|
85
81
|
lastUpdatedBy: {
|
|
86
82
|
id: string;
|
|
87
83
|
firstName: string;
|
|
88
84
|
lastName: string;
|
|
89
85
|
email: string;
|
|
90
86
|
};
|
|
91
|
-
|
|
87
|
+
createdAt: string | Date;
|
|
88
|
+
updatedAt: string | Date;
|
|
92
89
|
agentClientLinks: {
|
|
93
90
|
agentId: string;
|
|
94
91
|
};
|
|
@@ -100,14 +97,18 @@ export declare const CreateClientSchema: z.ZodObject<{
|
|
|
100
97
|
director: z.ZodString;
|
|
101
98
|
}, "strip", z.ZodTypeAny, {
|
|
102
99
|
name: string;
|
|
103
|
-
director: string;
|
|
104
100
|
govLink: string;
|
|
101
|
+
director: string;
|
|
105
102
|
}, {
|
|
106
103
|
name: string;
|
|
107
|
-
director: string;
|
|
108
104
|
govLink: string;
|
|
105
|
+
director: string;
|
|
109
106
|
}>;
|
|
110
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Base schema for UpdateClient without refinements.
|
|
109
|
+
* Use this for form field introspection on the frontend.
|
|
110
|
+
*/
|
|
111
|
+
export declare const UpdateClientBaseSchema: z.ZodObject<{
|
|
111
112
|
name: z.ZodOptional<z.ZodString>;
|
|
112
113
|
govLink: z.ZodOptional<z.ZodString>;
|
|
113
114
|
director: z.ZodOptional<z.ZodString>;
|
|
@@ -116,26 +117,70 @@ export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
117
|
}, "strip", z.ZodTypeAny, {
|
|
117
118
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
118
119
|
name?: string | undefined;
|
|
119
|
-
director?: string | undefined;
|
|
120
120
|
govLink?: string | undefined;
|
|
121
|
+
director?: string | undefined;
|
|
121
122
|
blacklistReason?: string | null | undefined;
|
|
122
123
|
}, {
|
|
123
124
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
124
125
|
name?: string | undefined;
|
|
126
|
+
govLink?: string | undefined;
|
|
125
127
|
director?: string | undefined;
|
|
128
|
+
blacklistReason?: string | null | undefined;
|
|
129
|
+
}>;
|
|
130
|
+
/**
|
|
131
|
+
* Conditional validation rules for UpdateClient.
|
|
132
|
+
* Export these so the frontend can apply them based on context/abilities.
|
|
133
|
+
*/
|
|
134
|
+
export declare const UpdateClientRefinements: {
|
|
135
|
+
readonly blacklistReasonRequired: {
|
|
136
|
+
/** Fields that trigger this refinement */
|
|
137
|
+
readonly dependsOn: readonly ["status"];
|
|
138
|
+
/** Field that this refinement validates */
|
|
139
|
+
readonly validates: "blacklistReason";
|
|
140
|
+
/** Condition description for UI hints */
|
|
141
|
+
readonly condition: "status === \"BLACKLISTED\"";
|
|
142
|
+
/** Error message when validation fails */
|
|
143
|
+
readonly message: "blacklistReason is required when status is BLACKLISTED";
|
|
144
|
+
/** The actual refinement function */
|
|
145
|
+
readonly check: (data: {
|
|
146
|
+
status?: ClientStatus;
|
|
147
|
+
blacklistReason?: string | null;
|
|
148
|
+
}) => boolean;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Full UpdateClient schema with all refinements applied.
|
|
153
|
+
* Use this for API validation.
|
|
154
|
+
*/
|
|
155
|
+
export declare const UpdateClientSchema: z.ZodEffects<z.ZodObject<{
|
|
156
|
+
name: z.ZodOptional<z.ZodString>;
|
|
157
|
+
govLink: z.ZodOptional<z.ZodString>;
|
|
158
|
+
director: z.ZodOptional<z.ZodString>;
|
|
159
|
+
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING_VERIFICATION", "BLACKLISTED"]>>;
|
|
160
|
+
blacklistReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
163
|
+
name?: string | undefined;
|
|
126
164
|
govLink?: string | undefined;
|
|
165
|
+
director?: string | undefined;
|
|
127
166
|
blacklistReason?: string | null | undefined;
|
|
128
|
-
}
|
|
167
|
+
}, {
|
|
129
168
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
130
169
|
name?: string | undefined;
|
|
170
|
+
govLink?: string | undefined;
|
|
131
171
|
director?: string | undefined;
|
|
172
|
+
blacklistReason?: string | null | undefined;
|
|
173
|
+
}>, {
|
|
174
|
+
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
175
|
+
name?: string | undefined;
|
|
132
176
|
govLink?: string | undefined;
|
|
177
|
+
director?: string | undefined;
|
|
133
178
|
blacklistReason?: string | null | undefined;
|
|
134
179
|
}, {
|
|
135
180
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
136
181
|
name?: string | undefined;
|
|
137
|
-
director?: string | undefined;
|
|
138
182
|
govLink?: string | undefined;
|
|
183
|
+
director?: string | undefined;
|
|
139
184
|
blacklistReason?: string | null | undefined;
|
|
140
185
|
}>;
|
|
141
186
|
export declare const FilterClientSchema: z.ZodObject<{
|
|
@@ -161,26 +206,26 @@ export declare const FilterClientSchema: z.ZodObject<{
|
|
|
161
206
|
limit: number;
|
|
162
207
|
page: number;
|
|
163
208
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
209
|
+
name?: string | null | undefined;
|
|
210
|
+
director?: string | null | undefined;
|
|
164
211
|
createdAt?: {
|
|
165
212
|
from?: string | null | undefined;
|
|
166
213
|
to?: string | null | undefined;
|
|
167
214
|
} | null | undefined;
|
|
168
|
-
sortBy?: "
|
|
215
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
169
216
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
170
|
-
name?: string | null | undefined;
|
|
171
|
-
director?: string | null | undefined;
|
|
172
217
|
}, {
|
|
173
218
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
174
|
-
|
|
175
|
-
|
|
219
|
+
name?: string | null | undefined;
|
|
220
|
+
director?: string | null | undefined;
|
|
176
221
|
createdAt?: {
|
|
177
222
|
from?: string | null | undefined;
|
|
178
223
|
to?: string | null | undefined;
|
|
179
224
|
} | null | undefined;
|
|
180
|
-
|
|
225
|
+
limit?: number | undefined;
|
|
226
|
+
page?: number | undefined;
|
|
227
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
181
228
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
182
|
-
name?: string | null | undefined;
|
|
183
|
-
director?: string | null | undefined;
|
|
184
229
|
}>;
|
|
185
230
|
export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
186
231
|
id: z.ZodString;
|
|
@@ -192,17 +237,17 @@ export declare const ClientAutocompleteResponseSchema: z.ZodObject<{
|
|
|
192
237
|
id: string;
|
|
193
238
|
name: string;
|
|
194
239
|
}>;
|
|
195
|
-
export declare const
|
|
196
|
-
|
|
197
|
-
|
|
240
|
+
export declare const ClientAutocompleteArraySchema: z.ZodArray<z.ZodObject<{
|
|
241
|
+
id: z.ZodString;
|
|
242
|
+
name: z.ZodString;
|
|
198
243
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
id
|
|
200
|
-
|
|
244
|
+
id: string;
|
|
245
|
+
name: string;
|
|
201
246
|
}, {
|
|
202
|
-
id
|
|
203
|
-
|
|
204
|
-
}>;
|
|
205
|
-
export declare const
|
|
247
|
+
id: string;
|
|
248
|
+
name: string;
|
|
249
|
+
}>, "many">;
|
|
250
|
+
export declare const PaginatedClientResponseSchema: z.ZodObject<{
|
|
206
251
|
items: z.ZodArray<z.ZodObject<{
|
|
207
252
|
id: z.ZodString;
|
|
208
253
|
name: z.ZodString;
|
|
@@ -229,7 +274,6 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
229
274
|
}>;
|
|
230
275
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
231
276
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
232
|
-
version: z.ZodNumber;
|
|
233
277
|
agentClientLinks: z.ZodObject<{
|
|
234
278
|
agentId: z.ZodString;
|
|
235
279
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -238,41 +282,39 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
238
282
|
agentId: string;
|
|
239
283
|
}>;
|
|
240
284
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
242
|
-
createdAt: string;
|
|
243
|
-
updatedAt: string;
|
|
244
285
|
id: string;
|
|
286
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
245
287
|
name: string;
|
|
246
|
-
director: string;
|
|
247
288
|
crn: string;
|
|
248
289
|
govLink: string;
|
|
290
|
+
director: string;
|
|
249
291
|
lastUpdatedBy: {
|
|
250
292
|
id: string;
|
|
251
293
|
firstName: string;
|
|
252
294
|
lastName: string;
|
|
253
295
|
email: string;
|
|
254
296
|
};
|
|
255
|
-
|
|
297
|
+
createdAt: string;
|
|
298
|
+
updatedAt: string;
|
|
256
299
|
agentClientLinks: {
|
|
257
300
|
agentId: string;
|
|
258
301
|
};
|
|
259
302
|
blacklistReason?: string | null | undefined;
|
|
260
303
|
}, {
|
|
261
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
262
|
-
createdAt: string | Date;
|
|
263
|
-
updatedAt: string | Date;
|
|
264
304
|
id: string;
|
|
305
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
265
306
|
name: string;
|
|
266
|
-
director: string;
|
|
267
307
|
crn: string;
|
|
268
308
|
govLink: string;
|
|
309
|
+
director: string;
|
|
269
310
|
lastUpdatedBy: {
|
|
270
311
|
id: string;
|
|
271
312
|
firstName: string;
|
|
272
313
|
lastName: string;
|
|
273
314
|
email: string;
|
|
274
315
|
};
|
|
275
|
-
|
|
316
|
+
createdAt: string | Date;
|
|
317
|
+
updatedAt: string | Date;
|
|
276
318
|
agentClientLinks: {
|
|
277
319
|
agentId: string;
|
|
278
320
|
};
|
|
@@ -286,21 +328,20 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
286
328
|
}, "strip", z.ZodTypeAny, {
|
|
287
329
|
limit: number;
|
|
288
330
|
items: {
|
|
289
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
290
|
-
createdAt: string;
|
|
291
|
-
updatedAt: string;
|
|
292
331
|
id: string;
|
|
332
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
293
333
|
name: string;
|
|
294
|
-
director: string;
|
|
295
334
|
crn: string;
|
|
296
335
|
govLink: string;
|
|
336
|
+
director: string;
|
|
297
337
|
lastUpdatedBy: {
|
|
298
338
|
id: string;
|
|
299
339
|
firstName: string;
|
|
300
340
|
lastName: string;
|
|
301
341
|
email: string;
|
|
302
342
|
};
|
|
303
|
-
|
|
343
|
+
createdAt: string;
|
|
344
|
+
updatedAt: string;
|
|
304
345
|
agentClientLinks: {
|
|
305
346
|
agentId: string;
|
|
306
347
|
};
|
|
@@ -313,21 +354,20 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
313
354
|
}, {
|
|
314
355
|
limit: number;
|
|
315
356
|
items: {
|
|
316
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
317
|
-
createdAt: string | Date;
|
|
318
|
-
updatedAt: string | Date;
|
|
319
357
|
id: string;
|
|
358
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
320
359
|
name: string;
|
|
321
|
-
director: string;
|
|
322
360
|
crn: string;
|
|
323
361
|
govLink: string;
|
|
362
|
+
director: string;
|
|
324
363
|
lastUpdatedBy: {
|
|
325
364
|
id: string;
|
|
326
365
|
firstName: string;
|
|
327
366
|
lastName: string;
|
|
328
367
|
email: string;
|
|
329
368
|
};
|
|
330
|
-
|
|
369
|
+
createdAt: string | Date;
|
|
370
|
+
updatedAt: string | Date;
|
|
331
371
|
agentClientLinks: {
|
|
332
372
|
agentId: string;
|
|
333
373
|
};
|
|
@@ -340,11 +380,13 @@ export declare const PaginatedResponseSchema: z.ZodObject<{
|
|
|
340
380
|
}>;
|
|
341
381
|
export type Client = z.infer<typeof ClientSchema>;
|
|
342
382
|
export type CreateClient = z.infer<typeof CreateClientSchema>;
|
|
383
|
+
export type UpdateClientBase = z.infer<typeof UpdateClientBaseSchema>;
|
|
343
384
|
export type UpdateClient = z.infer<typeof UpdateClientSchema>;
|
|
344
385
|
export type FilterClient = z.infer<typeof FilterClientSchema>;
|
|
386
|
+
export type ClientUser = z.infer<typeof ClientUserSchema>;
|
|
345
387
|
export type ClientAutocompleteResponse = z.infer<typeof ClientAutocompleteResponseSchema>;
|
|
346
|
-
export type
|
|
347
|
-
export type
|
|
388
|
+
export type ClientAutocompleteArray = z.infer<typeof ClientAutocompleteArraySchema>;
|
|
389
|
+
export type PaginatedClientResponse = z.infer<typeof PaginatedClientResponseSchema>;
|
|
348
390
|
export declare const clientsContractRouter: {
|
|
349
391
|
create: {
|
|
350
392
|
metadata: {
|
|
@@ -361,12 +403,12 @@ export declare const clientsContractRouter: {
|
|
|
361
403
|
director: z.ZodString;
|
|
362
404
|
}, "strip", z.ZodTypeAny, {
|
|
363
405
|
name: string;
|
|
364
|
-
director: string;
|
|
365
406
|
govLink: string;
|
|
407
|
+
director: string;
|
|
366
408
|
}, {
|
|
367
409
|
name: string;
|
|
368
|
-
director: string;
|
|
369
410
|
govLink: string;
|
|
411
|
+
director: string;
|
|
370
412
|
}>;
|
|
371
413
|
path: "/v2/clients";
|
|
372
414
|
responses: {
|
|
@@ -496,7 +538,6 @@ export declare const clientsContractRouter: {
|
|
|
496
538
|
}>;
|
|
497
539
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
498
540
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
499
|
-
version: z.ZodNumber;
|
|
500
541
|
agentClientLinks: z.ZodObject<{
|
|
501
542
|
agentId: z.ZodString;
|
|
502
543
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -505,41 +546,39 @@ export declare const clientsContractRouter: {
|
|
|
505
546
|
agentId: string;
|
|
506
547
|
}>;
|
|
507
548
|
}, "strip", z.ZodTypeAny, {
|
|
508
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
509
|
-
createdAt: string;
|
|
510
|
-
updatedAt: string;
|
|
511
549
|
id: string;
|
|
550
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
512
551
|
name: string;
|
|
513
|
-
director: string;
|
|
514
552
|
crn: string;
|
|
515
553
|
govLink: string;
|
|
554
|
+
director: string;
|
|
516
555
|
lastUpdatedBy: {
|
|
517
556
|
id: string;
|
|
518
557
|
firstName: string;
|
|
519
558
|
lastName: string;
|
|
520
559
|
email: string;
|
|
521
560
|
};
|
|
522
|
-
|
|
561
|
+
createdAt: string;
|
|
562
|
+
updatedAt: string;
|
|
523
563
|
agentClientLinks: {
|
|
524
564
|
agentId: string;
|
|
525
565
|
};
|
|
526
566
|
blacklistReason?: string | null | undefined;
|
|
527
567
|
}, {
|
|
528
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
529
|
-
createdAt: string | Date;
|
|
530
|
-
updatedAt: string | Date;
|
|
531
568
|
id: string;
|
|
569
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
532
570
|
name: string;
|
|
533
|
-
director: string;
|
|
534
571
|
crn: string;
|
|
535
572
|
govLink: string;
|
|
573
|
+
director: string;
|
|
536
574
|
lastUpdatedBy: {
|
|
537
575
|
id: string;
|
|
538
576
|
firstName: string;
|
|
539
577
|
lastName: string;
|
|
540
578
|
email: string;
|
|
541
579
|
};
|
|
542
|
-
|
|
580
|
+
createdAt: string | Date;
|
|
581
|
+
updatedAt: string | Date;
|
|
543
582
|
agentClientLinks: {
|
|
544
583
|
agentId: string;
|
|
545
584
|
};
|
|
@@ -602,26 +641,26 @@ export declare const clientsContractRouter: {
|
|
|
602
641
|
limit: number;
|
|
603
642
|
page: number;
|
|
604
643
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
644
|
+
name?: string | null | undefined;
|
|
645
|
+
director?: string | null | undefined;
|
|
605
646
|
createdAt?: {
|
|
606
647
|
from?: string | null | undefined;
|
|
607
648
|
to?: string | null | undefined;
|
|
608
649
|
} | null | undefined;
|
|
609
|
-
sortBy?: "
|
|
650
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
610
651
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
611
|
-
name?: string | null | undefined;
|
|
612
|
-
director?: string | null | undefined;
|
|
613
652
|
}, {
|
|
614
653
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | null | undefined;
|
|
615
|
-
|
|
616
|
-
|
|
654
|
+
name?: string | null | undefined;
|
|
655
|
+
director?: string | null | undefined;
|
|
617
656
|
createdAt?: {
|
|
618
657
|
from?: string | null | undefined;
|
|
619
658
|
to?: string | null | undefined;
|
|
620
659
|
} | null | undefined;
|
|
621
|
-
|
|
660
|
+
limit?: number | undefined;
|
|
661
|
+
page?: number | undefined;
|
|
662
|
+
sortBy?: "name" | "director" | "createdAt" | "updatedAt" | null | undefined;
|
|
622
663
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
623
|
-
name?: string | null | undefined;
|
|
624
|
-
director?: string | null | undefined;
|
|
625
664
|
}>;
|
|
626
665
|
summary: "Get all clients";
|
|
627
666
|
method: "GET";
|
|
@@ -754,7 +793,6 @@ export declare const clientsContractRouter: {
|
|
|
754
793
|
}>;
|
|
755
794
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
756
795
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
757
|
-
version: z.ZodNumber;
|
|
758
796
|
agentClientLinks: z.ZodObject<{
|
|
759
797
|
agentId: z.ZodString;
|
|
760
798
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -763,41 +801,39 @@ export declare const clientsContractRouter: {
|
|
|
763
801
|
agentId: string;
|
|
764
802
|
}>;
|
|
765
803
|
}, "strip", z.ZodTypeAny, {
|
|
766
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
767
|
-
createdAt: string;
|
|
768
|
-
updatedAt: string;
|
|
769
804
|
id: string;
|
|
805
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
770
806
|
name: string;
|
|
771
|
-
director: string;
|
|
772
807
|
crn: string;
|
|
773
808
|
govLink: string;
|
|
809
|
+
director: string;
|
|
774
810
|
lastUpdatedBy: {
|
|
775
811
|
id: string;
|
|
776
812
|
firstName: string;
|
|
777
813
|
lastName: string;
|
|
778
814
|
email: string;
|
|
779
815
|
};
|
|
780
|
-
|
|
816
|
+
createdAt: string;
|
|
817
|
+
updatedAt: string;
|
|
781
818
|
agentClientLinks: {
|
|
782
819
|
agentId: string;
|
|
783
820
|
};
|
|
784
821
|
blacklistReason?: string | null | undefined;
|
|
785
822
|
}, {
|
|
786
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
787
|
-
createdAt: string | Date;
|
|
788
|
-
updatedAt: string | Date;
|
|
789
823
|
id: string;
|
|
824
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
790
825
|
name: string;
|
|
791
|
-
director: string;
|
|
792
826
|
crn: string;
|
|
793
827
|
govLink: string;
|
|
828
|
+
director: string;
|
|
794
829
|
lastUpdatedBy: {
|
|
795
830
|
id: string;
|
|
796
831
|
firstName: string;
|
|
797
832
|
lastName: string;
|
|
798
833
|
email: string;
|
|
799
834
|
};
|
|
800
|
-
|
|
835
|
+
createdAt: string | Date;
|
|
836
|
+
updatedAt: string | Date;
|
|
801
837
|
agentClientLinks: {
|
|
802
838
|
agentId: string;
|
|
803
839
|
};
|
|
@@ -811,21 +847,20 @@ export declare const clientsContractRouter: {
|
|
|
811
847
|
}, "strip", z.ZodTypeAny, {
|
|
812
848
|
limit: number;
|
|
813
849
|
items: {
|
|
814
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
815
|
-
createdAt: string;
|
|
816
|
-
updatedAt: string;
|
|
817
850
|
id: string;
|
|
851
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
818
852
|
name: string;
|
|
819
|
-
director: string;
|
|
820
853
|
crn: string;
|
|
821
854
|
govLink: string;
|
|
855
|
+
director: string;
|
|
822
856
|
lastUpdatedBy: {
|
|
823
857
|
id: string;
|
|
824
858
|
firstName: string;
|
|
825
859
|
lastName: string;
|
|
826
860
|
email: string;
|
|
827
861
|
};
|
|
828
|
-
|
|
862
|
+
createdAt: string;
|
|
863
|
+
updatedAt: string;
|
|
829
864
|
agentClientLinks: {
|
|
830
865
|
agentId: string;
|
|
831
866
|
};
|
|
@@ -838,21 +873,20 @@ export declare const clientsContractRouter: {
|
|
|
838
873
|
}, {
|
|
839
874
|
limit: number;
|
|
840
875
|
items: {
|
|
841
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
842
|
-
createdAt: string | Date;
|
|
843
|
-
updatedAt: string | Date;
|
|
844
876
|
id: string;
|
|
877
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
845
878
|
name: string;
|
|
846
|
-
director: string;
|
|
847
879
|
crn: string;
|
|
848
880
|
govLink: string;
|
|
881
|
+
director: string;
|
|
849
882
|
lastUpdatedBy: {
|
|
850
883
|
id: string;
|
|
851
884
|
firstName: string;
|
|
852
885
|
lastName: string;
|
|
853
886
|
email: string;
|
|
854
887
|
};
|
|
855
|
-
|
|
888
|
+
createdAt: string | Date;
|
|
889
|
+
updatedAt: string | Date;
|
|
856
890
|
agentClientLinks: {
|
|
857
891
|
agentId: string;
|
|
858
892
|
};
|
|
@@ -1142,7 +1176,6 @@ export declare const clientsContractRouter: {
|
|
|
1142
1176
|
}>;
|
|
1143
1177
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1144
1178
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1145
|
-
version: z.ZodNumber;
|
|
1146
1179
|
agentClientLinks: z.ZodObject<{
|
|
1147
1180
|
agentId: z.ZodString;
|
|
1148
1181
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1151,41 +1184,39 @@ export declare const clientsContractRouter: {
|
|
|
1151
1184
|
agentId: string;
|
|
1152
1185
|
}>;
|
|
1153
1186
|
}, "strip", z.ZodTypeAny, {
|
|
1154
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1155
|
-
createdAt: string;
|
|
1156
|
-
updatedAt: string;
|
|
1157
1187
|
id: string;
|
|
1188
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1158
1189
|
name: string;
|
|
1159
|
-
director: string;
|
|
1160
1190
|
crn: string;
|
|
1161
1191
|
govLink: string;
|
|
1192
|
+
director: string;
|
|
1162
1193
|
lastUpdatedBy: {
|
|
1163
1194
|
id: string;
|
|
1164
1195
|
firstName: string;
|
|
1165
1196
|
lastName: string;
|
|
1166
1197
|
email: string;
|
|
1167
1198
|
};
|
|
1168
|
-
|
|
1199
|
+
createdAt: string;
|
|
1200
|
+
updatedAt: string;
|
|
1169
1201
|
agentClientLinks: {
|
|
1170
1202
|
agentId: string;
|
|
1171
1203
|
};
|
|
1172
1204
|
blacklistReason?: string | null | undefined;
|
|
1173
1205
|
}, {
|
|
1174
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1175
|
-
createdAt: string | Date;
|
|
1176
|
-
updatedAt: string | Date;
|
|
1177
1206
|
id: string;
|
|
1207
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1178
1208
|
name: string;
|
|
1179
|
-
director: string;
|
|
1180
1209
|
crn: string;
|
|
1181
1210
|
govLink: string;
|
|
1211
|
+
director: string;
|
|
1182
1212
|
lastUpdatedBy: {
|
|
1183
1213
|
id: string;
|
|
1184
1214
|
firstName: string;
|
|
1185
1215
|
lastName: string;
|
|
1186
1216
|
email: string;
|
|
1187
1217
|
};
|
|
1188
|
-
|
|
1218
|
+
createdAt: string | Date;
|
|
1219
|
+
updatedAt: string | Date;
|
|
1189
1220
|
agentClientLinks: {
|
|
1190
1221
|
agentId: string;
|
|
1191
1222
|
};
|
|
@@ -1243,26 +1274,26 @@ export declare const clientsContractRouter: {
|
|
|
1243
1274
|
}, "strip", z.ZodTypeAny, {
|
|
1244
1275
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1245
1276
|
name?: string | undefined;
|
|
1246
|
-
director?: string | undefined;
|
|
1247
1277
|
govLink?: string | undefined;
|
|
1278
|
+
director?: string | undefined;
|
|
1248
1279
|
blacklistReason?: string | null | undefined;
|
|
1249
1280
|
}, {
|
|
1250
1281
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1251
1282
|
name?: string | undefined;
|
|
1252
|
-
director?: string | undefined;
|
|
1253
1283
|
govLink?: string | undefined;
|
|
1284
|
+
director?: string | undefined;
|
|
1254
1285
|
blacklistReason?: string | null | undefined;
|
|
1255
1286
|
}>, {
|
|
1256
1287
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1257
1288
|
name?: string | undefined;
|
|
1258
|
-
director?: string | undefined;
|
|
1259
1289
|
govLink?: string | undefined;
|
|
1290
|
+
director?: string | undefined;
|
|
1260
1291
|
blacklistReason?: string | null | undefined;
|
|
1261
1292
|
}, {
|
|
1262
1293
|
status?: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED" | undefined;
|
|
1263
1294
|
name?: string | undefined;
|
|
1264
|
-
director?: string | undefined;
|
|
1265
1295
|
govLink?: string | undefined;
|
|
1296
|
+
director?: string | undefined;
|
|
1266
1297
|
blacklistReason?: string | null | undefined;
|
|
1267
1298
|
}>;
|
|
1268
1299
|
path: "/v2/clients/:id";
|
|
@@ -1393,7 +1424,6 @@ export declare const clientsContractRouter: {
|
|
|
1393
1424
|
}>;
|
|
1394
1425
|
createdAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1395
1426
|
updatedAt: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate]>, string, string | Date>;
|
|
1396
|
-
version: z.ZodNumber;
|
|
1397
1427
|
agentClientLinks: z.ZodObject<{
|
|
1398
1428
|
agentId: z.ZodString;
|
|
1399
1429
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1402,41 +1432,39 @@ export declare const clientsContractRouter: {
|
|
|
1402
1432
|
agentId: string;
|
|
1403
1433
|
}>;
|
|
1404
1434
|
}, "strip", z.ZodTypeAny, {
|
|
1405
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1406
|
-
createdAt: string;
|
|
1407
|
-
updatedAt: string;
|
|
1408
1435
|
id: string;
|
|
1436
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1409
1437
|
name: string;
|
|
1410
|
-
director: string;
|
|
1411
1438
|
crn: string;
|
|
1412
1439
|
govLink: string;
|
|
1440
|
+
director: string;
|
|
1413
1441
|
lastUpdatedBy: {
|
|
1414
1442
|
id: string;
|
|
1415
1443
|
firstName: string;
|
|
1416
1444
|
lastName: string;
|
|
1417
1445
|
email: string;
|
|
1418
1446
|
};
|
|
1419
|
-
|
|
1447
|
+
createdAt: string;
|
|
1448
|
+
updatedAt: string;
|
|
1420
1449
|
agentClientLinks: {
|
|
1421
1450
|
agentId: string;
|
|
1422
1451
|
};
|
|
1423
1452
|
blacklistReason?: string | null | undefined;
|
|
1424
1453
|
}, {
|
|
1425
|
-
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1426
|
-
createdAt: string | Date;
|
|
1427
|
-
updatedAt: string | Date;
|
|
1428
1454
|
id: string;
|
|
1455
|
+
status: "APPROVED" | "PENDING_VERIFICATION" | "BLACKLISTED";
|
|
1429
1456
|
name: string;
|
|
1430
|
-
director: string;
|
|
1431
1457
|
crn: string;
|
|
1432
1458
|
govLink: string;
|
|
1459
|
+
director: string;
|
|
1433
1460
|
lastUpdatedBy: {
|
|
1434
1461
|
id: string;
|
|
1435
1462
|
firstName: string;
|
|
1436
1463
|
lastName: string;
|
|
1437
1464
|
email: string;
|
|
1438
1465
|
};
|
|
1439
|
-
|
|
1466
|
+
createdAt: string | Date;
|
|
1467
|
+
updatedAt: string | Date;
|
|
1440
1468
|
agentClientLinks: {
|
|
1441
1469
|
agentId: string;
|
|
1442
1470
|
};
|