@dakkitor/api-contracts 1.5.0 → 1.7.0
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/abilities/abilities.contract.d.ts +6 -2
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +45 -1
- package/dist/abilities/abilities.contract.spec.js +98 -0
- package/dist/abilities/first-agent.abilities.json +8 -14
- package/dist/abilities/outreach.abilities.json +25 -0
- package/dist/abilities/second-agent.abilities.json +4 -13
- package/dist/actives/actives.contract.d.ts +3618 -3479
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +2 -0
- package/dist/actives/actives.contract.spec.d.ts +2 -0
- package/dist/actives/actives.contract.spec.d.ts.map +1 -0
- package/dist/actives/actives.contract.spec.js +35 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
- package/dist/auth/auth.contract.d.ts +108 -108
- package/dist/bookings/bookings.contract.d.ts +6644 -6452
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +718 -718
- package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
- package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
- package/dist/clients/clients.contract.d.ts +203 -203
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
- package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
- package/dist/common/common-schemas.d.ts +12 -12
- package/dist/companies/companies.contract.d.ts +74 -74
- package/dist/crews/crews.contract.d.ts +253 -253
- package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2723 -2723
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +378 -378
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +1117 -1087
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5818 -5372
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +34 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +148 -148
- package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
- package/dist/dashboards/dashboard-widgets.contract.d.ts +180 -180
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/document-intake/document-intake.contract.d.ts +601 -601
- package/dist/export-jobs/export-jobs.contract.d.ts +694 -694
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +74 -74
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/interactions/interactions.contract.d.ts +6 -6
- package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
- package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
- package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
- package/dist/jobs/job-moderation-fields.spec.js +72 -0
- package/dist/jobs/jobs.contract.d.ts +4773 -4525
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +48 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
- package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
- package/dist/leads/leads.contract.d.ts +283 -283
- package/dist/locations/locations.contract.d.ts +49 -49
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/offices/offices.contract.d.ts +34 -34
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +11 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.js +50 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
- package/dist/outreach/lab-outreach.contract.d.ts +1110 -0
- package/dist/outreach/lab-outreach.contract.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.js +174 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.spec.js +90 -0
- package/dist/outreach/outreach-requests.contract.d.ts +946 -217
- package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.contract.js +23 -3
- package/dist/outreach/outreach-requests.schemas.d.ts +65 -10
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.schemas.js +6 -0
- package/dist/outreach/outreach.contract.d.ts +300 -38
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +18 -0
- package/dist/outreach/outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/outreach.contract.spec.js +57 -0
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/own-research/own-research.contract.d.ts +775 -775
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/proofs/proof-type.enum.d.ts +4 -4
- package/dist/proofs/proofs.contract.d.ts +363 -363
- package/dist/proofs/proofs.dtos.d.ts +124 -124
- package/dist/qualifications/qualifications.contract.d.ts +38 -38
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts +829 -0
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.js +79 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.js +146 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +443 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.js +138 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
- package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
- package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.js +188 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.schemas.js +112 -0
- package/dist/shared/live-booking.schema.d.ts +4 -4
- package/dist/shared/summary-schemas.d.ts +6 -6
- package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
- package/dist/telegram/telegram.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +90 -90
- package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
- package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
- package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
- package/dist/users/__tests__/assignable-roles.spec.js +41 -0
- package/dist/users/users.contract.d.ts +399 -393
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +11 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
- package/dist/workers/workers.contract.d.ts +2919 -2919
- package/package.json +1 -1
- package/dist/bookings/bookings.contract.spec.d.ts +0 -2
- package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
- package/dist/bookings/bookings.contract.spec.js +0 -11
|
@@ -39,28 +39,28 @@ export declare const CreateProofBatchSchema: z.ZodDiscriminatedUnion<"category",
|
|
|
39
39
|
verified?: boolean | undefined;
|
|
40
40
|
}>, "many">;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
type: "
|
|
42
|
+
type: "WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER";
|
|
43
43
|
photos: {
|
|
44
44
|
fileId: string;
|
|
45
45
|
verified: boolean;
|
|
46
46
|
comment?: string | undefined;
|
|
47
47
|
}[];
|
|
48
48
|
}, {
|
|
49
|
-
type: "
|
|
49
|
+
type: "WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER";
|
|
50
50
|
photos: {
|
|
51
51
|
fileId: string;
|
|
52
52
|
comment?: string | undefined;
|
|
53
53
|
verified?: boolean | undefined;
|
|
54
54
|
}[];
|
|
55
55
|
}>, "many">, {
|
|
56
|
-
type: "
|
|
56
|
+
type: "WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER";
|
|
57
57
|
photos: {
|
|
58
58
|
fileId: string;
|
|
59
59
|
verified: boolean;
|
|
60
60
|
comment?: string | undefined;
|
|
61
61
|
}[];
|
|
62
62
|
}[], {
|
|
63
|
-
type: "
|
|
63
|
+
type: "WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER";
|
|
64
64
|
photos: {
|
|
65
65
|
fileId: string;
|
|
66
66
|
comment?: string | undefined;
|
|
@@ -68,14 +68,14 @@ export declare const CreateProofBatchSchema: z.ZodDiscriminatedUnion<"category",
|
|
|
68
68
|
}[];
|
|
69
69
|
}[]>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
category: "POST";
|
|
72
71
|
forUserId: string;
|
|
72
|
+
category: "POST";
|
|
73
73
|
linkedEntities: {
|
|
74
74
|
entityType: "BOOKING" | "JOB";
|
|
75
75
|
entityId: string;
|
|
76
76
|
}[];
|
|
77
77
|
sections: {
|
|
78
|
-
type: "
|
|
78
|
+
type: "WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER";
|
|
79
79
|
photos: {
|
|
80
80
|
fileId: string;
|
|
81
81
|
verified: boolean;
|
|
@@ -84,10 +84,10 @@ export declare const CreateProofBatchSchema: z.ZodDiscriminatedUnion<"category",
|
|
|
84
84
|
}[];
|
|
85
85
|
proofDate?: string | undefined;
|
|
86
86
|
}, {
|
|
87
|
-
category: "POST";
|
|
88
87
|
forUserId: string;
|
|
88
|
+
category: "POST";
|
|
89
89
|
sections: {
|
|
90
|
-
type: "
|
|
90
|
+
type: "WHATSAPP" | "OTHER" | "FACEBOOK" | "TELEGRAM" | "VIBER";
|
|
91
91
|
photos: {
|
|
92
92
|
fileId: string;
|
|
93
93
|
comment?: string | undefined;
|
|
@@ -129,28 +129,28 @@ export declare const CreateProofBatchSchema: z.ZodDiscriminatedUnion<"category",
|
|
|
129
129
|
verified?: boolean | undefined;
|
|
130
130
|
}>, "many">;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
type: "
|
|
132
|
+
type: "DISTANCE" | "CONFIRMATION" | "MORNING_STATUS";
|
|
133
133
|
photos: {
|
|
134
134
|
fileId: string;
|
|
135
135
|
verified: boolean;
|
|
136
136
|
comment?: string | undefined;
|
|
137
137
|
}[];
|
|
138
138
|
}, {
|
|
139
|
-
type: "
|
|
139
|
+
type: "DISTANCE" | "CONFIRMATION" | "MORNING_STATUS";
|
|
140
140
|
photos: {
|
|
141
141
|
fileId: string;
|
|
142
142
|
comment?: string | undefined;
|
|
143
143
|
verified?: boolean | undefined;
|
|
144
144
|
}[];
|
|
145
145
|
}>, "many">, {
|
|
146
|
-
type: "
|
|
146
|
+
type: "DISTANCE" | "CONFIRMATION" | "MORNING_STATUS";
|
|
147
147
|
photos: {
|
|
148
148
|
fileId: string;
|
|
149
149
|
verified: boolean;
|
|
150
150
|
comment?: string | undefined;
|
|
151
151
|
}[];
|
|
152
152
|
}[], {
|
|
153
|
-
type: "
|
|
153
|
+
type: "DISTANCE" | "CONFIRMATION" | "MORNING_STATUS";
|
|
154
154
|
photos: {
|
|
155
155
|
fileId: string;
|
|
156
156
|
comment?: string | undefined;
|
|
@@ -158,14 +158,14 @@ export declare const CreateProofBatchSchema: z.ZodDiscriminatedUnion<"category",
|
|
|
158
158
|
}[];
|
|
159
159
|
}[]>;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
category: "BOOKING";
|
|
162
161
|
forUserId: string;
|
|
162
|
+
category: "BOOKING";
|
|
163
163
|
linkedEntities: {
|
|
164
164
|
entityType: "BOOKING" | "JOB";
|
|
165
165
|
entityId: string;
|
|
166
166
|
}[];
|
|
167
167
|
sections: {
|
|
168
|
-
type: "
|
|
168
|
+
type: "DISTANCE" | "CONFIRMATION" | "MORNING_STATUS";
|
|
169
169
|
photos: {
|
|
170
170
|
fileId: string;
|
|
171
171
|
verified: boolean;
|
|
@@ -174,14 +174,14 @@ export declare const CreateProofBatchSchema: z.ZodDiscriminatedUnion<"category",
|
|
|
174
174
|
}[];
|
|
175
175
|
proofDate?: string | undefined;
|
|
176
176
|
}, {
|
|
177
|
-
category: "BOOKING";
|
|
178
177
|
forUserId: string;
|
|
178
|
+
category: "BOOKING";
|
|
179
179
|
linkedEntities: {
|
|
180
180
|
entityType: "BOOKING" | "JOB";
|
|
181
181
|
entityId: string;
|
|
182
182
|
}[];
|
|
183
183
|
sections: {
|
|
184
|
-
type: "
|
|
184
|
+
type: "DISTANCE" | "CONFIRMATION" | "MORNING_STATUS";
|
|
185
185
|
photos: {
|
|
186
186
|
fileId: string;
|
|
187
187
|
comment?: string | undefined;
|
|
@@ -222,66 +222,66 @@ export declare const UpdateProofSchema: z.ZodObject<{
|
|
|
222
222
|
comment: z.ZodNullable<z.ZodString>;
|
|
223
223
|
position: z.ZodNumber;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
position: number;
|
|
225
226
|
comment: string | null;
|
|
226
227
|
verified: boolean;
|
|
227
|
-
position: number;
|
|
228
228
|
id?: string | undefined;
|
|
229
229
|
fileId?: string | undefined;
|
|
230
230
|
}, {
|
|
231
|
+
position: number;
|
|
231
232
|
comment: string | null;
|
|
232
233
|
verified: boolean;
|
|
233
|
-
position: number;
|
|
234
234
|
id?: string | undefined;
|
|
235
235
|
fileId?: string | undefined;
|
|
236
236
|
}>, {
|
|
237
|
+
position: number;
|
|
237
238
|
comment: string | null;
|
|
238
239
|
verified: boolean;
|
|
239
|
-
position: number;
|
|
240
240
|
id?: string | undefined;
|
|
241
241
|
fileId?: string | undefined;
|
|
242
242
|
}, {
|
|
243
|
+
position: number;
|
|
243
244
|
comment: string | null;
|
|
244
245
|
verified: boolean;
|
|
245
|
-
position: number;
|
|
246
246
|
id?: string | undefined;
|
|
247
247
|
fileId?: string | undefined;
|
|
248
248
|
}>, "many">;
|
|
249
249
|
}, "strip", z.ZodTypeAny, {
|
|
250
|
-
type: "
|
|
250
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
251
251
|
photos: {
|
|
252
|
+
position: number;
|
|
252
253
|
comment: string | null;
|
|
253
254
|
verified: boolean;
|
|
254
|
-
position: number;
|
|
255
255
|
id?: string | undefined;
|
|
256
256
|
fileId?: string | undefined;
|
|
257
257
|
}[];
|
|
258
258
|
id?: string | undefined;
|
|
259
259
|
}, {
|
|
260
|
-
type: "
|
|
260
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
261
261
|
photos: {
|
|
262
|
+
position: number;
|
|
262
263
|
comment: string | null;
|
|
263
264
|
verified: boolean;
|
|
264
|
-
position: number;
|
|
265
265
|
id?: string | undefined;
|
|
266
266
|
fileId?: string | undefined;
|
|
267
267
|
}[];
|
|
268
268
|
id?: string | undefined;
|
|
269
269
|
}>, "many">, {
|
|
270
|
-
type: "
|
|
270
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
271
271
|
photos: {
|
|
272
|
+
position: number;
|
|
272
273
|
comment: string | null;
|
|
273
274
|
verified: boolean;
|
|
274
|
-
position: number;
|
|
275
275
|
id?: string | undefined;
|
|
276
276
|
fileId?: string | undefined;
|
|
277
277
|
}[];
|
|
278
278
|
id?: string | undefined;
|
|
279
279
|
}[], {
|
|
280
|
-
type: "
|
|
280
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
281
281
|
photos: {
|
|
282
|
+
position: number;
|
|
282
283
|
comment: string | null;
|
|
283
284
|
verified: boolean;
|
|
284
|
-
position: number;
|
|
285
285
|
id?: string | undefined;
|
|
286
286
|
fileId?: string | undefined;
|
|
287
287
|
}[];
|
|
@@ -296,11 +296,11 @@ export declare const UpdateProofSchema: z.ZodObject<{
|
|
|
296
296
|
entityId: string;
|
|
297
297
|
}[] | undefined;
|
|
298
298
|
sections?: {
|
|
299
|
-
type: "
|
|
299
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
300
300
|
photos: {
|
|
301
|
+
position: number;
|
|
301
302
|
comment: string | null;
|
|
302
303
|
verified: boolean;
|
|
303
|
-
position: number;
|
|
304
304
|
id?: string | undefined;
|
|
305
305
|
fileId?: string | undefined;
|
|
306
306
|
}[];
|
|
@@ -315,11 +315,11 @@ export declare const UpdateProofSchema: z.ZodObject<{
|
|
|
315
315
|
entityId: string;
|
|
316
316
|
}[] | undefined;
|
|
317
317
|
sections?: {
|
|
318
|
-
type: "
|
|
318
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
319
319
|
photos: {
|
|
320
|
+
position: number;
|
|
320
321
|
comment: string | null;
|
|
321
322
|
verified: boolean;
|
|
322
|
-
position: number;
|
|
323
323
|
id?: string | undefined;
|
|
324
324
|
fileId?: string | undefined;
|
|
325
325
|
}[];
|
|
@@ -345,27 +345,27 @@ export declare const ProofPhotoResponseSchema: z.ZodObject<{
|
|
|
345
345
|
createdAt: string;
|
|
346
346
|
updatedAt: string;
|
|
347
347
|
fileId: string;
|
|
348
|
+
position: number;
|
|
348
349
|
comment: string | null;
|
|
349
350
|
verified: boolean;
|
|
350
|
-
position: number;
|
|
351
351
|
sectionId: string;
|
|
352
352
|
verifiedAt: string | null;
|
|
353
353
|
verifiedById: string | null;
|
|
354
|
-
fileUrl?: string | undefined;
|
|
355
354
|
fileName?: string | undefined;
|
|
355
|
+
fileUrl?: string | undefined;
|
|
356
356
|
}, {
|
|
357
357
|
id: string;
|
|
358
358
|
createdAt: string;
|
|
359
359
|
updatedAt: string;
|
|
360
360
|
fileId: string;
|
|
361
|
+
position: number;
|
|
361
362
|
comment: string | null;
|
|
362
363
|
verified: boolean;
|
|
363
|
-
position: number;
|
|
364
364
|
sectionId: string;
|
|
365
365
|
verifiedAt: string | null;
|
|
366
366
|
verifiedById: string | null;
|
|
367
|
-
fileUrl?: string | undefined;
|
|
368
367
|
fileName?: string | undefined;
|
|
368
|
+
fileUrl?: string | undefined;
|
|
369
369
|
}>;
|
|
370
370
|
export declare const ProofSectionResponseSchema: z.ZodObject<{
|
|
371
371
|
id: z.ZodString;
|
|
@@ -388,34 +388,34 @@ export declare const ProofSectionResponseSchema: z.ZodObject<{
|
|
|
388
388
|
createdAt: string;
|
|
389
389
|
updatedAt: string;
|
|
390
390
|
fileId: string;
|
|
391
|
+
position: number;
|
|
391
392
|
comment: string | null;
|
|
392
393
|
verified: boolean;
|
|
393
|
-
position: number;
|
|
394
394
|
sectionId: string;
|
|
395
395
|
verifiedAt: string | null;
|
|
396
396
|
verifiedById: string | null;
|
|
397
|
-
fileUrl?: string | undefined;
|
|
398
397
|
fileName?: string | undefined;
|
|
398
|
+
fileUrl?: string | undefined;
|
|
399
399
|
}, {
|
|
400
400
|
id: string;
|
|
401
401
|
createdAt: string;
|
|
402
402
|
updatedAt: string;
|
|
403
403
|
fileId: string;
|
|
404
|
+
position: number;
|
|
404
405
|
comment: string | null;
|
|
405
406
|
verified: boolean;
|
|
406
|
-
position: number;
|
|
407
407
|
sectionId: string;
|
|
408
408
|
verifiedAt: string | null;
|
|
409
409
|
verifiedById: string | null;
|
|
410
|
-
fileUrl?: string | undefined;
|
|
411
410
|
fileName?: string | undefined;
|
|
411
|
+
fileUrl?: string | undefined;
|
|
412
412
|
}>, "many">;
|
|
413
413
|
photoCount: z.ZodNumber;
|
|
414
414
|
verifiedCount: z.ZodNumber;
|
|
415
415
|
createdAt: z.ZodString;
|
|
416
416
|
updatedAt: z.ZodString;
|
|
417
417
|
}, "strip", z.ZodTypeAny, {
|
|
418
|
-
type: "
|
|
418
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
419
419
|
id: string;
|
|
420
420
|
createdAt: string;
|
|
421
421
|
updatedAt: string;
|
|
@@ -424,19 +424,19 @@ export declare const ProofSectionResponseSchema: z.ZodObject<{
|
|
|
424
424
|
createdAt: string;
|
|
425
425
|
updatedAt: string;
|
|
426
426
|
fileId: string;
|
|
427
|
+
position: number;
|
|
427
428
|
comment: string | null;
|
|
428
429
|
verified: boolean;
|
|
429
|
-
position: number;
|
|
430
430
|
sectionId: string;
|
|
431
431
|
verifiedAt: string | null;
|
|
432
432
|
verifiedById: string | null;
|
|
433
|
-
fileUrl?: string | undefined;
|
|
434
433
|
fileName?: string | undefined;
|
|
434
|
+
fileUrl?: string | undefined;
|
|
435
435
|
}[];
|
|
436
436
|
photoCount: number;
|
|
437
437
|
verifiedCount: number;
|
|
438
438
|
}, {
|
|
439
|
-
type: "
|
|
439
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
440
440
|
id: string;
|
|
441
441
|
createdAt: string;
|
|
442
442
|
updatedAt: string;
|
|
@@ -445,14 +445,14 @@ export declare const ProofSectionResponseSchema: z.ZodObject<{
|
|
|
445
445
|
createdAt: string;
|
|
446
446
|
updatedAt: string;
|
|
447
447
|
fileId: string;
|
|
448
|
+
position: number;
|
|
448
449
|
comment: string | null;
|
|
449
450
|
verified: boolean;
|
|
450
|
-
position: number;
|
|
451
451
|
sectionId: string;
|
|
452
452
|
verifiedAt: string | null;
|
|
453
453
|
verifiedById: string | null;
|
|
454
|
-
fileUrl?: string | undefined;
|
|
455
454
|
fileName?: string | undefined;
|
|
455
|
+
fileUrl?: string | undefined;
|
|
456
456
|
}[];
|
|
457
457
|
photoCount: number;
|
|
458
458
|
verifiedCount: number;
|
|
@@ -591,34 +591,34 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
591
591
|
createdAt: string;
|
|
592
592
|
updatedAt: string;
|
|
593
593
|
fileId: string;
|
|
594
|
+
position: number;
|
|
594
595
|
comment: string | null;
|
|
595
596
|
verified: boolean;
|
|
596
|
-
position: number;
|
|
597
597
|
sectionId: string;
|
|
598
598
|
verifiedAt: string | null;
|
|
599
599
|
verifiedById: string | null;
|
|
600
|
-
fileUrl?: string | undefined;
|
|
601
600
|
fileName?: string | undefined;
|
|
601
|
+
fileUrl?: string | undefined;
|
|
602
602
|
}, {
|
|
603
603
|
id: string;
|
|
604
604
|
createdAt: string;
|
|
605
605
|
updatedAt: string;
|
|
606
606
|
fileId: string;
|
|
607
|
+
position: number;
|
|
607
608
|
comment: string | null;
|
|
608
609
|
verified: boolean;
|
|
609
|
-
position: number;
|
|
610
610
|
sectionId: string;
|
|
611
611
|
verifiedAt: string | null;
|
|
612
612
|
verifiedById: string | null;
|
|
613
|
-
fileUrl?: string | undefined;
|
|
614
613
|
fileName?: string | undefined;
|
|
614
|
+
fileUrl?: string | undefined;
|
|
615
615
|
}>, "many">;
|
|
616
616
|
photoCount: z.ZodNumber;
|
|
617
617
|
verifiedCount: z.ZodNumber;
|
|
618
618
|
createdAt: z.ZodString;
|
|
619
619
|
updatedAt: z.ZodString;
|
|
620
620
|
}, "strip", z.ZodTypeAny, {
|
|
621
|
-
type: "
|
|
621
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
622
622
|
id: string;
|
|
623
623
|
createdAt: string;
|
|
624
624
|
updatedAt: string;
|
|
@@ -627,19 +627,19 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
627
627
|
createdAt: string;
|
|
628
628
|
updatedAt: string;
|
|
629
629
|
fileId: string;
|
|
630
|
+
position: number;
|
|
630
631
|
comment: string | null;
|
|
631
632
|
verified: boolean;
|
|
632
|
-
position: number;
|
|
633
633
|
sectionId: string;
|
|
634
634
|
verifiedAt: string | null;
|
|
635
635
|
verifiedById: string | null;
|
|
636
|
-
fileUrl?: string | undefined;
|
|
637
636
|
fileName?: string | undefined;
|
|
637
|
+
fileUrl?: string | undefined;
|
|
638
638
|
}[];
|
|
639
639
|
photoCount: number;
|
|
640
640
|
verifiedCount: number;
|
|
641
641
|
}, {
|
|
642
|
-
type: "
|
|
642
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
643
643
|
id: string;
|
|
644
644
|
createdAt: string;
|
|
645
645
|
updatedAt: string;
|
|
@@ -648,14 +648,14 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
648
648
|
createdAt: string;
|
|
649
649
|
updatedAt: string;
|
|
650
650
|
fileId: string;
|
|
651
|
+
position: number;
|
|
651
652
|
comment: string | null;
|
|
652
653
|
verified: boolean;
|
|
653
|
-
position: number;
|
|
654
654
|
sectionId: string;
|
|
655
655
|
verifiedAt: string | null;
|
|
656
656
|
verifiedById: string | null;
|
|
657
|
-
fileUrl?: string | undefined;
|
|
658
657
|
fileName?: string | undefined;
|
|
658
|
+
fileUrl?: string | undefined;
|
|
659
659
|
}[];
|
|
660
660
|
photoCount: number;
|
|
661
661
|
verifiedCount: number;
|
|
@@ -683,11 +683,24 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
683
683
|
description: string | null;
|
|
684
684
|
createdAt: string;
|
|
685
685
|
updatedAt: string;
|
|
686
|
-
|
|
686
|
+
createdById: string;
|
|
687
687
|
forUserId: string;
|
|
688
|
+
createdBy: {
|
|
689
|
+
id: string;
|
|
690
|
+
firstName: string;
|
|
691
|
+
lastName: string;
|
|
692
|
+
phoneNumbers: {
|
|
693
|
+
id: string;
|
|
694
|
+
phoneNumber: string;
|
|
695
|
+
isPrimary: boolean;
|
|
696
|
+
description?: string | null | undefined;
|
|
697
|
+
}[];
|
|
698
|
+
deletedAt?: string | null | undefined;
|
|
699
|
+
};
|
|
700
|
+
category: "POST" | "BOOKING";
|
|
688
701
|
proofDate: string;
|
|
689
702
|
sections: {
|
|
690
|
-
type: "
|
|
703
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
691
704
|
id: string;
|
|
692
705
|
createdAt: string;
|
|
693
706
|
updatedAt: string;
|
|
@@ -696,14 +709,14 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
696
709
|
createdAt: string;
|
|
697
710
|
updatedAt: string;
|
|
698
711
|
fileId: string;
|
|
712
|
+
position: number;
|
|
699
713
|
comment: string | null;
|
|
700
714
|
verified: boolean;
|
|
701
|
-
position: number;
|
|
702
715
|
sectionId: string;
|
|
703
716
|
verifiedAt: string | null;
|
|
704
717
|
verifiedById: string | null;
|
|
705
|
-
fileUrl?: string | undefined;
|
|
706
718
|
fileName?: string | undefined;
|
|
719
|
+
fileUrl?: string | undefined;
|
|
707
720
|
}[];
|
|
708
721
|
photoCount: number;
|
|
709
722
|
verifiedCount: number;
|
|
@@ -721,19 +734,6 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
721
734
|
}[];
|
|
722
735
|
deletedAt?: string | null | undefined;
|
|
723
736
|
};
|
|
724
|
-
createdById: string;
|
|
725
|
-
createdBy: {
|
|
726
|
-
id: string;
|
|
727
|
-
firstName: string;
|
|
728
|
-
lastName: string;
|
|
729
|
-
phoneNumbers: {
|
|
730
|
-
id: string;
|
|
731
|
-
phoneNumber: string;
|
|
732
|
-
isPrimary: boolean;
|
|
733
|
-
description?: string | null | undefined;
|
|
734
|
-
}[];
|
|
735
|
-
deletedAt?: string | null | undefined;
|
|
736
|
-
};
|
|
737
737
|
entityLinks: {
|
|
738
738
|
id: string;
|
|
739
739
|
entityType: "BOOKING" | "JOB";
|
|
@@ -746,11 +746,24 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
746
746
|
description: string | null;
|
|
747
747
|
createdAt: string;
|
|
748
748
|
updatedAt: string;
|
|
749
|
-
|
|
749
|
+
createdById: string;
|
|
750
750
|
forUserId: string;
|
|
751
|
+
createdBy: {
|
|
752
|
+
id: string;
|
|
753
|
+
firstName: string;
|
|
754
|
+
lastName: string;
|
|
755
|
+
phoneNumbers?: {
|
|
756
|
+
id: string;
|
|
757
|
+
phoneNumber: string;
|
|
758
|
+
description?: string | null | undefined;
|
|
759
|
+
isPrimary?: boolean | undefined;
|
|
760
|
+
}[] | undefined;
|
|
761
|
+
deletedAt?: string | Date | null | undefined;
|
|
762
|
+
};
|
|
763
|
+
category: "POST" | "BOOKING";
|
|
751
764
|
proofDate: string;
|
|
752
765
|
sections: {
|
|
753
|
-
type: "
|
|
766
|
+
type: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS";
|
|
754
767
|
id: string;
|
|
755
768
|
createdAt: string;
|
|
756
769
|
updatedAt: string;
|
|
@@ -759,14 +772,14 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
759
772
|
createdAt: string;
|
|
760
773
|
updatedAt: string;
|
|
761
774
|
fileId: string;
|
|
775
|
+
position: number;
|
|
762
776
|
comment: string | null;
|
|
763
777
|
verified: boolean;
|
|
764
|
-
position: number;
|
|
765
778
|
sectionId: string;
|
|
766
779
|
verifiedAt: string | null;
|
|
767
780
|
verifiedById: string | null;
|
|
768
|
-
fileUrl?: string | undefined;
|
|
769
781
|
fileName?: string | undefined;
|
|
782
|
+
fileUrl?: string | undefined;
|
|
770
783
|
}[];
|
|
771
784
|
photoCount: number;
|
|
772
785
|
verifiedCount: number;
|
|
@@ -784,19 +797,6 @@ export declare const ProofResponseSchema: z.ZodObject<{
|
|
|
784
797
|
}[] | undefined;
|
|
785
798
|
deletedAt?: string | Date | null | undefined;
|
|
786
799
|
};
|
|
787
|
-
createdById: string;
|
|
788
|
-
createdBy: {
|
|
789
|
-
id: string;
|
|
790
|
-
firstName: string;
|
|
791
|
-
lastName: string;
|
|
792
|
-
phoneNumbers?: {
|
|
793
|
-
id: string;
|
|
794
|
-
phoneNumber: string;
|
|
795
|
-
description?: string | null | undefined;
|
|
796
|
-
isPrimary?: boolean | undefined;
|
|
797
|
-
}[] | undefined;
|
|
798
|
-
deletedAt?: string | Date | null | undefined;
|
|
799
|
-
};
|
|
800
800
|
entityLinks: {
|
|
801
801
|
id: string;
|
|
802
802
|
entityType: "BOOKING" | "JOB";
|
|
@@ -840,36 +840,36 @@ export declare const FilterProofsSchema: z.ZodObject<{
|
|
|
840
840
|
}, "strip", z.ZodTypeAny, {
|
|
841
841
|
limit: number;
|
|
842
842
|
page: number;
|
|
843
|
-
type?: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS" | undefined;
|
|
844
843
|
sort?: {
|
|
845
844
|
field: "createdAt";
|
|
846
845
|
order: "ASC" | "DESC";
|
|
847
846
|
}[] | null | undefined;
|
|
847
|
+
type?: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS" | undefined;
|
|
848
848
|
createdAt?: {
|
|
849
849
|
from?: string | null | undefined;
|
|
850
850
|
to?: string | null | undefined;
|
|
851
851
|
} | undefined;
|
|
852
|
-
category?: "POST" | "BOOKING" | undefined;
|
|
853
|
-
forUserId?: string | undefined;
|
|
854
|
-
verified?: "all" | "partial" | "none" | undefined;
|
|
855
852
|
createdById?: string | undefined;
|
|
853
|
+
forUserId?: string | undefined;
|
|
854
|
+
category?: "POST" | "BOOKING" | undefined;
|
|
855
|
+
verified?: "all" | "none" | "partial" | undefined;
|
|
856
856
|
linkedBookingId?: string | undefined;
|
|
857
857
|
}, {
|
|
858
|
-
limit?: number | undefined;
|
|
859
|
-
page?: number | undefined;
|
|
860
|
-
type?: "FACEBOOK" | "TELEGRAM" | "WHATSAPP" | "VIBER" | "OTHER" | "CONFIRMATION" | "DISTANCE" | "MORNING_STATUS" | undefined;
|
|
861
858
|
sort?: {
|
|
862
859
|
field: "createdAt";
|
|
863
860
|
order: "ASC" | "DESC";
|
|
864
861
|
}[] | null | undefined;
|
|
862
|
+
type?: "WHATSAPP" | "OTHER" | "DISTANCE" | "FACEBOOK" | "TELEGRAM" | "VIBER" | "CONFIRMATION" | "MORNING_STATUS" | undefined;
|
|
863
|
+
limit?: number | undefined;
|
|
864
|
+
page?: number | undefined;
|
|
865
865
|
createdAt?: {
|
|
866
866
|
from?: string | null | undefined;
|
|
867
867
|
to?: string | null | undefined;
|
|
868
868
|
} | undefined;
|
|
869
|
-
category?: "POST" | "BOOKING" | undefined;
|
|
870
|
-
forUserId?: string | undefined;
|
|
871
|
-
verified?: "all" | "partial" | "none" | undefined;
|
|
872
869
|
createdById?: string | undefined;
|
|
870
|
+
forUserId?: string | undefined;
|
|
871
|
+
category?: "POST" | "BOOKING" | undefined;
|
|
872
|
+
verified?: "all" | "none" | "partial" | undefined;
|
|
873
873
|
linkedBookingId?: string | undefined;
|
|
874
874
|
}>;
|
|
875
875
|
export type FilterProofs = z.infer<typeof FilterProofsSchema>;
|
|
@@ -895,8 +895,8 @@ export declare const LinkedBookingSummarySchema: z.ZodObject<{
|
|
|
895
895
|
}, "strip", z.ZodTypeAny, {
|
|
896
896
|
type: "BOOKING";
|
|
897
897
|
id: string;
|
|
898
|
-
startDate: string | null;
|
|
899
898
|
createdAt: string;
|
|
899
|
+
startDate: string | null;
|
|
900
900
|
worker: {
|
|
901
901
|
id: string;
|
|
902
902
|
firstName: string;
|
|
@@ -905,8 +905,8 @@ export declare const LinkedBookingSummarySchema: z.ZodObject<{
|
|
|
905
905
|
}, {
|
|
906
906
|
type: "BOOKING";
|
|
907
907
|
id: string;
|
|
908
|
-
startDate: string | null;
|
|
909
908
|
createdAt: string;
|
|
909
|
+
startDate: string | null;
|
|
910
910
|
worker: {
|
|
911
911
|
id: string;
|
|
912
912
|
firstName: string;
|
|
@@ -966,8 +966,9 @@ export declare const LinkedJobSummarySchema: z.ZodObject<{
|
|
|
966
966
|
}, "strip", z.ZodTypeAny, {
|
|
967
967
|
type: "JOB";
|
|
968
968
|
id: string;
|
|
969
|
-
createdAt: string;
|
|
970
969
|
postcode: string | null;
|
|
970
|
+
createdAt: string;
|
|
971
|
+
tradeId: string;
|
|
971
972
|
createdBy: {
|
|
972
973
|
id: string;
|
|
973
974
|
firstName: string;
|
|
@@ -980,12 +981,12 @@ export declare const LinkedJobSummarySchema: z.ZodObject<{
|
|
|
980
981
|
}[];
|
|
981
982
|
deletedAt?: string | null | undefined;
|
|
982
983
|
};
|
|
983
|
-
tradeId: string;
|
|
984
984
|
}, {
|
|
985
985
|
type: "JOB";
|
|
986
986
|
id: string;
|
|
987
|
-
createdAt: string;
|
|
988
987
|
postcode: string | null;
|
|
988
|
+
createdAt: string;
|
|
989
|
+
tradeId: string;
|
|
989
990
|
createdBy: {
|
|
990
991
|
id: string;
|
|
991
992
|
firstName: string;
|
|
@@ -998,7 +999,6 @@ export declare const LinkedJobSummarySchema: z.ZodObject<{
|
|
|
998
999
|
}[] | undefined;
|
|
999
1000
|
deletedAt?: string | Date | null | undefined;
|
|
1000
1001
|
};
|
|
1001
|
-
tradeId: string;
|
|
1002
1002
|
}>;
|
|
1003
1003
|
export declare const LinkedEntitySummarySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1004
1004
|
type: z.ZodLiteral<"BOOKING">;
|
|
@@ -1021,8 +1021,8 @@ export declare const LinkedEntitySummarySchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1021
1021
|
}, "strip", z.ZodTypeAny, {
|
|
1022
1022
|
type: "BOOKING";
|
|
1023
1023
|
id: string;
|
|
1024
|
-
startDate: string | null;
|
|
1025
1024
|
createdAt: string;
|
|
1025
|
+
startDate: string | null;
|
|
1026
1026
|
worker: {
|
|
1027
1027
|
id: string;
|
|
1028
1028
|
firstName: string;
|
|
@@ -1031,8 +1031,8 @@ export declare const LinkedEntitySummarySchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1031
1031
|
}, {
|
|
1032
1032
|
type: "BOOKING";
|
|
1033
1033
|
id: string;
|
|
1034
|
-
startDate: string | null;
|
|
1035
1034
|
createdAt: string;
|
|
1035
|
+
startDate: string | null;
|
|
1036
1036
|
worker: {
|
|
1037
1037
|
id: string;
|
|
1038
1038
|
firstName: string;
|
|
@@ -1091,8 +1091,9 @@ export declare const LinkedEntitySummarySchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1091
1091
|
}, "strip", z.ZodTypeAny, {
|
|
1092
1092
|
type: "JOB";
|
|
1093
1093
|
id: string;
|
|
1094
|
-
createdAt: string;
|
|
1095
1094
|
postcode: string | null;
|
|
1095
|
+
createdAt: string;
|
|
1096
|
+
tradeId: string;
|
|
1096
1097
|
createdBy: {
|
|
1097
1098
|
id: string;
|
|
1098
1099
|
firstName: string;
|
|
@@ -1105,12 +1106,12 @@ export declare const LinkedEntitySummarySchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1105
1106
|
}[];
|
|
1106
1107
|
deletedAt?: string | null | undefined;
|
|
1107
1108
|
};
|
|
1108
|
-
tradeId: string;
|
|
1109
1109
|
}, {
|
|
1110
1110
|
type: "JOB";
|
|
1111
1111
|
id: string;
|
|
1112
|
-
createdAt: string;
|
|
1113
1112
|
postcode: string | null;
|
|
1113
|
+
createdAt: string;
|
|
1114
|
+
tradeId: string;
|
|
1114
1115
|
createdBy: {
|
|
1115
1116
|
id: string;
|
|
1116
1117
|
firstName: string;
|
|
@@ -1123,7 +1124,6 @@ export declare const LinkedEntitySummarySchema: z.ZodDiscriminatedUnion<"type",
|
|
|
1123
1124
|
}[] | undefined;
|
|
1124
1125
|
deletedAt?: string | Date | null | undefined;
|
|
1125
1126
|
};
|
|
1126
|
-
tradeId: string;
|
|
1127
1127
|
}>]>;
|
|
1128
1128
|
export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
1129
1129
|
items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1147,8 +1147,8 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1147
1147
|
}, "strip", z.ZodTypeAny, {
|
|
1148
1148
|
type: "BOOKING";
|
|
1149
1149
|
id: string;
|
|
1150
|
-
startDate: string | null;
|
|
1151
1150
|
createdAt: string;
|
|
1151
|
+
startDate: string | null;
|
|
1152
1152
|
worker: {
|
|
1153
1153
|
id: string;
|
|
1154
1154
|
firstName: string;
|
|
@@ -1157,8 +1157,8 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1157
1157
|
}, {
|
|
1158
1158
|
type: "BOOKING";
|
|
1159
1159
|
id: string;
|
|
1160
|
-
startDate: string | null;
|
|
1161
1160
|
createdAt: string;
|
|
1161
|
+
startDate: string | null;
|
|
1162
1162
|
worker: {
|
|
1163
1163
|
id: string;
|
|
1164
1164
|
firstName: string;
|
|
@@ -1217,8 +1217,9 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1217
1217
|
}, "strip", z.ZodTypeAny, {
|
|
1218
1218
|
type: "JOB";
|
|
1219
1219
|
id: string;
|
|
1220
|
-
createdAt: string;
|
|
1221
1220
|
postcode: string | null;
|
|
1221
|
+
createdAt: string;
|
|
1222
|
+
tradeId: string;
|
|
1222
1223
|
createdBy: {
|
|
1223
1224
|
id: string;
|
|
1224
1225
|
firstName: string;
|
|
@@ -1231,12 +1232,12 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1231
1232
|
}[];
|
|
1232
1233
|
deletedAt?: string | null | undefined;
|
|
1233
1234
|
};
|
|
1234
|
-
tradeId: string;
|
|
1235
1235
|
}, {
|
|
1236
1236
|
type: "JOB";
|
|
1237
1237
|
id: string;
|
|
1238
|
-
createdAt: string;
|
|
1239
1238
|
postcode: string | null;
|
|
1239
|
+
createdAt: string;
|
|
1240
|
+
tradeId: string;
|
|
1240
1241
|
createdBy: {
|
|
1241
1242
|
id: string;
|
|
1242
1243
|
firstName: string;
|
|
@@ -1249,14 +1250,13 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1249
1250
|
}[] | undefined;
|
|
1250
1251
|
deletedAt?: string | Date | null | undefined;
|
|
1251
1252
|
};
|
|
1252
|
-
tradeId: string;
|
|
1253
1253
|
}>]>, "many">;
|
|
1254
1254
|
}, "strip", z.ZodTypeAny, {
|
|
1255
1255
|
items: ({
|
|
1256
1256
|
type: "BOOKING";
|
|
1257
1257
|
id: string;
|
|
1258
|
-
startDate: string | null;
|
|
1259
1258
|
createdAt: string;
|
|
1259
|
+
startDate: string | null;
|
|
1260
1260
|
worker: {
|
|
1261
1261
|
id: string;
|
|
1262
1262
|
firstName: string;
|
|
@@ -1265,8 +1265,9 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1265
1265
|
} | {
|
|
1266
1266
|
type: "JOB";
|
|
1267
1267
|
id: string;
|
|
1268
|
-
createdAt: string;
|
|
1269
1268
|
postcode: string | null;
|
|
1269
|
+
createdAt: string;
|
|
1270
|
+
tradeId: string;
|
|
1270
1271
|
createdBy: {
|
|
1271
1272
|
id: string;
|
|
1272
1273
|
firstName: string;
|
|
@@ -1279,14 +1280,13 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1279
1280
|
}[];
|
|
1280
1281
|
deletedAt?: string | null | undefined;
|
|
1281
1282
|
};
|
|
1282
|
-
tradeId: string;
|
|
1283
1283
|
})[];
|
|
1284
1284
|
}, {
|
|
1285
1285
|
items: ({
|
|
1286
1286
|
type: "BOOKING";
|
|
1287
1287
|
id: string;
|
|
1288
|
-
startDate: string | null;
|
|
1289
1288
|
createdAt: string;
|
|
1289
|
+
startDate: string | null;
|
|
1290
1290
|
worker: {
|
|
1291
1291
|
id: string;
|
|
1292
1292
|
firstName: string;
|
|
@@ -1295,8 +1295,9 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1295
1295
|
} | {
|
|
1296
1296
|
type: "JOB";
|
|
1297
1297
|
id: string;
|
|
1298
|
-
createdAt: string;
|
|
1299
1298
|
postcode: string | null;
|
|
1299
|
+
createdAt: string;
|
|
1300
|
+
tradeId: string;
|
|
1300
1301
|
createdBy: {
|
|
1301
1302
|
id: string;
|
|
1302
1303
|
firstName: string;
|
|
@@ -1309,7 +1310,6 @@ export declare const LinkedEntitiesResponseSchema: z.ZodObject<{
|
|
|
1309
1310
|
}[] | undefined;
|
|
1310
1311
|
deletedAt?: string | Date | null | undefined;
|
|
1311
1312
|
};
|
|
1312
|
-
tradeId: string;
|
|
1313
1313
|
})[];
|
|
1314
1314
|
}>;
|
|
1315
1315
|
export type LinkedBookingSummary = z.infer<typeof LinkedBookingSummarySchema>;
|