@dakkitor/api-contracts 1.5.0 → 1.6.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 +1137 -1107
- 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 +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -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 +13 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
- package/dist/outreach/outreach-requests.contract.d.ts +862 -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 +56 -10
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.schemas.js +3 -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 +54 -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-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
|
@@ -40,29 +40,29 @@ export declare const FilterExportJobSchema: z.ZodObject<{
|
|
|
40
40
|
order: "ASC" | "DESC";
|
|
41
41
|
}>, "many">>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
page: number;
|
|
44
43
|
limit: number;
|
|
45
|
-
|
|
44
|
+
page: number;
|
|
46
45
|
sort?: {
|
|
47
46
|
field: "status" | "entity" | "requestedAt" | "completedAt";
|
|
48
47
|
order: "ASC" | "DESC";
|
|
49
48
|
}[] | null | undefined;
|
|
49
|
+
status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
|
|
50
|
+
entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
|
|
50
51
|
userId?: string | undefined;
|
|
51
|
-
entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
|
|
52
52
|
requestedAt?: {
|
|
53
53
|
from?: string | null | undefined;
|
|
54
54
|
to?: string | null | undefined;
|
|
55
55
|
} | null | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
|
|
58
57
|
sort?: {
|
|
59
58
|
field: "status" | "entity" | "requestedAt" | "completedAt";
|
|
60
59
|
order: "ASC" | "DESC";
|
|
61
60
|
}[] | null | undefined;
|
|
62
|
-
|
|
61
|
+
status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
|
|
63
62
|
limit?: number | undefined;
|
|
63
|
+
page?: number | undefined;
|
|
64
|
+
entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
|
|
64
65
|
userId?: string | undefined;
|
|
65
|
-
entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
|
|
66
66
|
requestedAt?: {
|
|
67
67
|
from?: string | null | undefined;
|
|
68
68
|
to?: string | null | undefined;
|
|
@@ -129,6 +129,7 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
129
129
|
radius?: number | null | undefined;
|
|
130
130
|
}>>>;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
userId?: string | null | undefined;
|
|
132
133
|
location?: {
|
|
133
134
|
postcode?: string | null | undefined;
|
|
134
135
|
radius?: number | null | undefined;
|
|
@@ -136,8 +137,8 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
136
137
|
tradeId?: string | null | undefined;
|
|
137
138
|
clientId?: string | null | undefined;
|
|
138
139
|
companyId?: string | null | undefined;
|
|
139
|
-
userId?: string | null | undefined;
|
|
140
140
|
}, {
|
|
141
|
+
userId?: string | null | undefined;
|
|
141
142
|
location?: {
|
|
142
143
|
postcode?: string | null | undefined;
|
|
143
144
|
radius?: number | null | undefined;
|
|
@@ -145,37 +146,37 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
145
146
|
tradeId?: string | null | undefined;
|
|
146
147
|
clientId?: string | null | undefined;
|
|
147
148
|
companyId?: string | null | undefined;
|
|
148
|
-
userId?: string | null | undefined;
|
|
149
149
|
}>>>;
|
|
150
150
|
sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
151
151
|
field: z.ZodEnum<["date", "startDate", "workerName", "status", "hoursWorked", "payRate", "receivedRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "postcode", "firstAgent", "createdAt", "updatedAt"]>;
|
|
152
152
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
field: "
|
|
154
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
155
155
|
order: "ASC" | "DESC";
|
|
156
156
|
}, {
|
|
157
|
-
field: "
|
|
157
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
158
158
|
order: "ASC" | "DESC";
|
|
159
159
|
}>, "many">>>;
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
page: number;
|
|
162
161
|
limit: number;
|
|
163
|
-
|
|
164
|
-
minRate?: number | null | undefined;
|
|
165
|
-
maxRate?: number | null | undefined;
|
|
166
|
-
} | null | undefined;
|
|
167
|
-
status?: {
|
|
168
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
169
|
-
} | null | undefined;
|
|
162
|
+
page: number;
|
|
170
163
|
sort?: {
|
|
171
|
-
field: "
|
|
164
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
172
165
|
order: "ASC" | "DESC";
|
|
173
166
|
}[] | null | undefined;
|
|
167
|
+
status?: {
|
|
168
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
169
|
+
} | null | undefined;
|
|
174
170
|
date?: {
|
|
175
171
|
from?: string | null | undefined;
|
|
176
172
|
to?: string | null | undefined;
|
|
177
173
|
} | null | undefined;
|
|
174
|
+
pay?: {
|
|
175
|
+
minRate?: number | null | undefined;
|
|
176
|
+
maxRate?: number | null | undefined;
|
|
177
|
+
} | null | undefined;
|
|
178
178
|
job?: {
|
|
179
|
+
userId?: string | null | undefined;
|
|
179
180
|
location?: {
|
|
180
181
|
postcode?: string | null | undefined;
|
|
181
182
|
radius?: number | null | undefined;
|
|
@@ -183,7 +184,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
183
184
|
tradeId?: string | null | undefined;
|
|
184
185
|
clientId?: string | null | undefined;
|
|
185
186
|
companyId?: string | null | undefined;
|
|
186
|
-
userId?: string | null | undefined;
|
|
187
187
|
} | null | undefined;
|
|
188
188
|
workerName?: {
|
|
189
189
|
value?: string | undefined;
|
|
@@ -191,24 +191,25 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
191
191
|
} | null | undefined;
|
|
192
192
|
agentId?: string | null | undefined;
|
|
193
193
|
}, {
|
|
194
|
-
pay?: {
|
|
195
|
-
minRate?: number | null | undefined;
|
|
196
|
-
maxRate?: number | null | undefined;
|
|
197
|
-
} | null | undefined;
|
|
198
|
-
status?: {
|
|
199
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
200
|
-
} | null | undefined;
|
|
201
194
|
sort?: {
|
|
202
|
-
field: "
|
|
195
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
203
196
|
order: "ASC" | "DESC";
|
|
204
197
|
}[] | null | undefined;
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
status?: {
|
|
199
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
200
|
+
} | null | undefined;
|
|
207
201
|
date?: {
|
|
208
202
|
from?: string | null | undefined;
|
|
209
203
|
to?: string | null | undefined;
|
|
210
204
|
} | null | undefined;
|
|
205
|
+
limit?: number | undefined;
|
|
206
|
+
page?: number | undefined;
|
|
207
|
+
pay?: {
|
|
208
|
+
minRate?: number | null | undefined;
|
|
209
|
+
maxRate?: number | null | undefined;
|
|
210
|
+
} | null | undefined;
|
|
211
211
|
job?: {
|
|
212
|
+
userId?: string | null | undefined;
|
|
212
213
|
location?: {
|
|
213
214
|
postcode?: string | null | undefined;
|
|
214
215
|
radius?: number | null | undefined;
|
|
@@ -216,7 +217,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
216
217
|
tradeId?: string | null | undefined;
|
|
217
218
|
clientId?: string | null | undefined;
|
|
218
219
|
companyId?: string | null | undefined;
|
|
219
|
-
userId?: string | null | undefined;
|
|
220
220
|
} | null | undefined;
|
|
221
221
|
workerName?: {
|
|
222
222
|
value?: string | undefined;
|
|
@@ -240,26 +240,26 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
240
240
|
field: string;
|
|
241
241
|
dir: "ASC" | "DESC";
|
|
242
242
|
}[];
|
|
243
|
-
entity: "actives";
|
|
244
243
|
filter: {
|
|
245
|
-
page: number;
|
|
246
244
|
limit: number;
|
|
247
|
-
|
|
248
|
-
minRate?: number | null | undefined;
|
|
249
|
-
maxRate?: number | null | undefined;
|
|
250
|
-
} | null | undefined;
|
|
251
|
-
status?: {
|
|
252
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
253
|
-
} | null | undefined;
|
|
245
|
+
page: number;
|
|
254
246
|
sort?: {
|
|
255
|
-
field: "
|
|
247
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
256
248
|
order: "ASC" | "DESC";
|
|
257
249
|
}[] | null | undefined;
|
|
250
|
+
status?: {
|
|
251
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
252
|
+
} | null | undefined;
|
|
258
253
|
date?: {
|
|
259
254
|
from?: string | null | undefined;
|
|
260
255
|
to?: string | null | undefined;
|
|
261
256
|
} | null | undefined;
|
|
257
|
+
pay?: {
|
|
258
|
+
minRate?: number | null | undefined;
|
|
259
|
+
maxRate?: number | null | undefined;
|
|
260
|
+
} | null | undefined;
|
|
262
261
|
job?: {
|
|
262
|
+
userId?: string | null | undefined;
|
|
263
263
|
location?: {
|
|
264
264
|
postcode?: string | null | undefined;
|
|
265
265
|
radius?: number | null | undefined;
|
|
@@ -267,7 +267,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
267
267
|
tradeId?: string | null | undefined;
|
|
268
268
|
clientId?: string | null | undefined;
|
|
269
269
|
companyId?: string | null | undefined;
|
|
270
|
-
userId?: string | null | undefined;
|
|
271
270
|
} | null | undefined;
|
|
272
271
|
workerName?: {
|
|
273
272
|
value?: string | undefined;
|
|
@@ -275,28 +274,29 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
275
274
|
} | null | undefined;
|
|
276
275
|
agentId?: string | null | undefined;
|
|
277
276
|
};
|
|
277
|
+
entity: "actives";
|
|
278
278
|
columns: string[];
|
|
279
279
|
}, {
|
|
280
|
-
entity: "actives";
|
|
281
280
|
filter: {
|
|
282
|
-
pay?: {
|
|
283
|
-
minRate?: number | null | undefined;
|
|
284
|
-
maxRate?: number | null | undefined;
|
|
285
|
-
} | null | undefined;
|
|
286
|
-
status?: {
|
|
287
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
288
|
-
} | null | undefined;
|
|
289
281
|
sort?: {
|
|
290
|
-
field: "
|
|
282
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
291
283
|
order: "ASC" | "DESC";
|
|
292
284
|
}[] | null | undefined;
|
|
293
|
-
|
|
294
|
-
|
|
285
|
+
status?: {
|
|
286
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
287
|
+
} | null | undefined;
|
|
295
288
|
date?: {
|
|
296
289
|
from?: string | null | undefined;
|
|
297
290
|
to?: string | null | undefined;
|
|
298
291
|
} | null | undefined;
|
|
292
|
+
limit?: number | undefined;
|
|
293
|
+
page?: number | undefined;
|
|
294
|
+
pay?: {
|
|
295
|
+
minRate?: number | null | undefined;
|
|
296
|
+
maxRate?: number | null | undefined;
|
|
297
|
+
} | null | undefined;
|
|
299
298
|
job?: {
|
|
299
|
+
userId?: string | null | undefined;
|
|
300
300
|
location?: {
|
|
301
301
|
postcode?: string | null | undefined;
|
|
302
302
|
radius?: number | null | undefined;
|
|
@@ -304,7 +304,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
304
304
|
tradeId?: string | null | undefined;
|
|
305
305
|
clientId?: string | null | undefined;
|
|
306
306
|
companyId?: string | null | undefined;
|
|
307
|
-
userId?: string | null | undefined;
|
|
308
307
|
} | null | undefined;
|
|
309
308
|
workerName?: {
|
|
310
309
|
value?: string | undefined;
|
|
@@ -312,6 +311,7 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
312
311
|
} | null | undefined;
|
|
313
312
|
agentId?: string | null | undefined;
|
|
314
313
|
};
|
|
314
|
+
entity: "actives";
|
|
315
315
|
columns: string[];
|
|
316
316
|
sort?: {
|
|
317
317
|
field: string;
|
|
@@ -348,10 +348,10 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
348
348
|
type: z.ZodOptional<z.ZodEnum<["REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "CONFIRMED"]>>;
|
|
349
349
|
}, "strip", z.ZodTypeAny, {
|
|
350
350
|
category: "ATTEMPT";
|
|
351
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
351
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
352
352
|
}, {
|
|
353
353
|
category: "ATTEMPT";
|
|
354
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
354
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
355
355
|
}>, z.ZodObject<{
|
|
356
356
|
category: z.ZodLiteral<"FAILED_START">;
|
|
357
357
|
type: z.ZodOptional<z.ZodEnum<["DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION"]>>;
|
|
@@ -405,6 +405,7 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
405
405
|
radius?: number | null | undefined;
|
|
406
406
|
}>>>;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
userId?: string | null | undefined;
|
|
408
409
|
location?: {
|
|
409
410
|
postcode?: string | null | undefined;
|
|
410
411
|
radius?: number | null | undefined;
|
|
@@ -412,8 +413,8 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
412
413
|
tradeId?: string | null | undefined;
|
|
413
414
|
clientId?: string | null | undefined;
|
|
414
415
|
companyId?: string | null | undefined;
|
|
415
|
-
userId?: string | null | undefined;
|
|
416
416
|
}, {
|
|
417
|
+
userId?: string | null | undefined;
|
|
417
418
|
location?: {
|
|
418
419
|
postcode?: string | null | undefined;
|
|
419
420
|
radius?: number | null | undefined;
|
|
@@ -421,7 +422,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
421
422
|
tradeId?: string | null | undefined;
|
|
422
423
|
clientId?: string | null | undefined;
|
|
423
424
|
companyId?: string | null | undefined;
|
|
424
|
-
userId?: string | null | undefined;
|
|
425
425
|
}>>>;
|
|
426
426
|
agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
427
427
|
endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -458,26 +458,22 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
458
458
|
field: z.ZodEnum<["status", "startDate", "endDate", "workerName", "payRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "createdAt", "updatedAt"]>;
|
|
459
459
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
460
460
|
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
field: "
|
|
461
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
462
462
|
order: "ASC" | "DESC";
|
|
463
463
|
}, {
|
|
464
|
-
field: "
|
|
464
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
465
465
|
order: "ASC" | "DESC";
|
|
466
466
|
}>, "many">>>;
|
|
467
467
|
}, "strip", z.ZodTypeAny, {
|
|
468
|
-
page: number;
|
|
469
468
|
limit: number;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
from?: string | null | undefined;
|
|
476
|
-
to?: string | null | undefined;
|
|
477
|
-
} | null | undefined;
|
|
469
|
+
page: number;
|
|
470
|
+
sort?: {
|
|
471
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
472
|
+
order: "ASC" | "DESC";
|
|
473
|
+
}[] | null | undefined;
|
|
478
474
|
status?: {
|
|
479
475
|
category: "ATTEMPT";
|
|
480
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
476
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
481
477
|
} | {
|
|
482
478
|
category: "FAILED_START";
|
|
483
479
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -491,19 +487,24 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
491
487
|
category: "CANCELLED";
|
|
492
488
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
493
489
|
} | null | undefined;
|
|
490
|
+
createdAt?: {
|
|
491
|
+
from?: string | null | undefined;
|
|
492
|
+
to?: string | null | undefined;
|
|
493
|
+
} | null | undefined;
|
|
494
|
+
updatedAt?: {
|
|
495
|
+
from?: string | null | undefined;
|
|
496
|
+
to?: string | null | undefined;
|
|
497
|
+
} | null | undefined;
|
|
494
498
|
startDate?: {
|
|
495
499
|
from?: string | null | undefined;
|
|
496
500
|
to?: string | null | undefined;
|
|
497
501
|
} | null | undefined;
|
|
498
|
-
sort?: {
|
|
499
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
500
|
-
order: "ASC" | "DESC";
|
|
501
|
-
}[] | null | undefined;
|
|
502
502
|
endDate?: {
|
|
503
503
|
from?: string | null | undefined;
|
|
504
504
|
to?: string | null | undefined;
|
|
505
505
|
} | null | undefined;
|
|
506
506
|
job?: {
|
|
507
|
+
userId?: string | null | undefined;
|
|
507
508
|
location?: {
|
|
508
509
|
postcode?: string | null | undefined;
|
|
509
510
|
radius?: number | null | undefined;
|
|
@@ -511,7 +512,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
511
512
|
tradeId?: string | null | undefined;
|
|
512
513
|
clientId?: string | null | undefined;
|
|
513
514
|
companyId?: string | null | undefined;
|
|
514
|
-
userId?: string | null | undefined;
|
|
515
515
|
} | null | undefined;
|
|
516
516
|
workerName?: {
|
|
517
517
|
value?: string | undefined;
|
|
@@ -519,17 +519,13 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
519
519
|
} | null | undefined;
|
|
520
520
|
agentId?: string | null | undefined;
|
|
521
521
|
}, {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
} | null | undefined;
|
|
526
|
-
createdAt?: {
|
|
527
|
-
from?: string | null | undefined;
|
|
528
|
-
to?: string | null | undefined;
|
|
529
|
-
} | null | undefined;
|
|
522
|
+
sort?: {
|
|
523
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
524
|
+
order: "ASC" | "DESC";
|
|
525
|
+
}[] | null | undefined;
|
|
530
526
|
status?: {
|
|
531
527
|
category: "ATTEMPT";
|
|
532
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
528
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
533
529
|
} | {
|
|
534
530
|
category: "FAILED_START";
|
|
535
531
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -543,21 +539,26 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
543
539
|
category: "CANCELLED";
|
|
544
540
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
545
541
|
} | null | undefined;
|
|
542
|
+
limit?: number | undefined;
|
|
543
|
+
page?: number | undefined;
|
|
544
|
+
createdAt?: {
|
|
545
|
+
from?: string | null | undefined;
|
|
546
|
+
to?: string | null | undefined;
|
|
547
|
+
} | null | undefined;
|
|
548
|
+
updatedAt?: {
|
|
549
|
+
from?: string | null | undefined;
|
|
550
|
+
to?: string | null | undefined;
|
|
551
|
+
} | null | undefined;
|
|
546
552
|
startDate?: {
|
|
547
553
|
from?: string | null | undefined;
|
|
548
554
|
to?: string | null | undefined;
|
|
549
555
|
} | null | undefined;
|
|
550
|
-
sort?: {
|
|
551
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
552
|
-
order: "ASC" | "DESC";
|
|
553
|
-
}[] | null | undefined;
|
|
554
|
-
page?: number | undefined;
|
|
555
|
-
limit?: number | undefined;
|
|
556
556
|
endDate?: {
|
|
557
557
|
from?: string | null | undefined;
|
|
558
558
|
to?: string | null | undefined;
|
|
559
559
|
} | null | undefined;
|
|
560
560
|
job?: {
|
|
561
|
+
userId?: string | null | undefined;
|
|
561
562
|
location?: {
|
|
562
563
|
postcode?: string | null | undefined;
|
|
563
564
|
radius?: number | null | undefined;
|
|
@@ -565,7 +566,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
565
566
|
tradeId?: string | null | undefined;
|
|
566
567
|
clientId?: string | null | undefined;
|
|
567
568
|
companyId?: string | null | undefined;
|
|
568
|
-
userId?: string | null | undefined;
|
|
569
569
|
} | null | undefined;
|
|
570
570
|
workerName?: {
|
|
571
571
|
value?: string | undefined;
|
|
@@ -589,21 +589,16 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
589
589
|
field: string;
|
|
590
590
|
dir: "ASC" | "DESC";
|
|
591
591
|
}[];
|
|
592
|
-
entity: "bookings";
|
|
593
592
|
filter: {
|
|
594
|
-
page: number;
|
|
595
593
|
limit: number;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
from?: string | null | undefined;
|
|
602
|
-
to?: string | null | undefined;
|
|
603
|
-
} | null | undefined;
|
|
594
|
+
page: number;
|
|
595
|
+
sort?: {
|
|
596
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
597
|
+
order: "ASC" | "DESC";
|
|
598
|
+
}[] | null | undefined;
|
|
604
599
|
status?: {
|
|
605
600
|
category: "ATTEMPT";
|
|
606
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
601
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
607
602
|
} | {
|
|
608
603
|
category: "FAILED_START";
|
|
609
604
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -617,19 +612,24 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
617
612
|
category: "CANCELLED";
|
|
618
613
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
619
614
|
} | null | undefined;
|
|
615
|
+
createdAt?: {
|
|
616
|
+
from?: string | null | undefined;
|
|
617
|
+
to?: string | null | undefined;
|
|
618
|
+
} | null | undefined;
|
|
619
|
+
updatedAt?: {
|
|
620
|
+
from?: string | null | undefined;
|
|
621
|
+
to?: string | null | undefined;
|
|
622
|
+
} | null | undefined;
|
|
620
623
|
startDate?: {
|
|
621
624
|
from?: string | null | undefined;
|
|
622
625
|
to?: string | null | undefined;
|
|
623
626
|
} | null | undefined;
|
|
624
|
-
sort?: {
|
|
625
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
626
|
-
order: "ASC" | "DESC";
|
|
627
|
-
}[] | null | undefined;
|
|
628
627
|
endDate?: {
|
|
629
628
|
from?: string | null | undefined;
|
|
630
629
|
to?: string | null | undefined;
|
|
631
630
|
} | null | undefined;
|
|
632
631
|
job?: {
|
|
632
|
+
userId?: string | null | undefined;
|
|
633
633
|
location?: {
|
|
634
634
|
postcode?: string | null | undefined;
|
|
635
635
|
radius?: number | null | undefined;
|
|
@@ -637,7 +637,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
637
637
|
tradeId?: string | null | undefined;
|
|
638
638
|
clientId?: string | null | undefined;
|
|
639
639
|
companyId?: string | null | undefined;
|
|
640
|
-
userId?: string | null | undefined;
|
|
641
640
|
} | null | undefined;
|
|
642
641
|
workerName?: {
|
|
643
642
|
value?: string | undefined;
|
|
@@ -645,21 +644,17 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
645
644
|
} | null | undefined;
|
|
646
645
|
agentId?: string | null | undefined;
|
|
647
646
|
};
|
|
647
|
+
entity: "bookings";
|
|
648
648
|
columns: string[];
|
|
649
649
|
}, {
|
|
650
|
-
entity: "bookings";
|
|
651
650
|
filter: {
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
} | null | undefined;
|
|
656
|
-
createdAt?: {
|
|
657
|
-
from?: string | null | undefined;
|
|
658
|
-
to?: string | null | undefined;
|
|
659
|
-
} | null | undefined;
|
|
651
|
+
sort?: {
|
|
652
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
653
|
+
order: "ASC" | "DESC";
|
|
654
|
+
}[] | null | undefined;
|
|
660
655
|
status?: {
|
|
661
656
|
category: "ATTEMPT";
|
|
662
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
657
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
663
658
|
} | {
|
|
664
659
|
category: "FAILED_START";
|
|
665
660
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -673,21 +668,26 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
673
668
|
category: "CANCELLED";
|
|
674
669
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
675
670
|
} | null | undefined;
|
|
671
|
+
limit?: number | undefined;
|
|
672
|
+
page?: number | undefined;
|
|
673
|
+
createdAt?: {
|
|
674
|
+
from?: string | null | undefined;
|
|
675
|
+
to?: string | null | undefined;
|
|
676
|
+
} | null | undefined;
|
|
677
|
+
updatedAt?: {
|
|
678
|
+
from?: string | null | undefined;
|
|
679
|
+
to?: string | null | undefined;
|
|
680
|
+
} | null | undefined;
|
|
676
681
|
startDate?: {
|
|
677
682
|
from?: string | null | undefined;
|
|
678
683
|
to?: string | null | undefined;
|
|
679
684
|
} | null | undefined;
|
|
680
|
-
sort?: {
|
|
681
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
682
|
-
order: "ASC" | "DESC";
|
|
683
|
-
}[] | null | undefined;
|
|
684
|
-
page?: number | undefined;
|
|
685
|
-
limit?: number | undefined;
|
|
686
685
|
endDate?: {
|
|
687
686
|
from?: string | null | undefined;
|
|
688
687
|
to?: string | null | undefined;
|
|
689
688
|
} | null | undefined;
|
|
690
689
|
job?: {
|
|
690
|
+
userId?: string | null | undefined;
|
|
691
691
|
location?: {
|
|
692
692
|
postcode?: string | null | undefined;
|
|
693
693
|
radius?: number | null | undefined;
|
|
@@ -695,7 +695,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
695
695
|
tradeId?: string | null | undefined;
|
|
696
696
|
clientId?: string | null | undefined;
|
|
697
697
|
companyId?: string | null | undefined;
|
|
698
|
-
userId?: string | null | undefined;
|
|
699
698
|
} | null | undefined;
|
|
700
699
|
workerName?: {
|
|
701
700
|
value?: string | undefined;
|
|
@@ -703,6 +702,7 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
703
702
|
} | null | undefined;
|
|
704
703
|
agentId?: string | null | undefined;
|
|
705
704
|
};
|
|
705
|
+
entity: "bookings";
|
|
706
706
|
columns: string[];
|
|
707
707
|
sort?: {
|
|
708
708
|
field: string;
|
|
@@ -751,17 +751,18 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
751
751
|
order: "ASC" | "DESC";
|
|
752
752
|
}>, "many">>>;
|
|
753
753
|
}, "strip", z.ZodTypeAny, {
|
|
754
|
-
page: number;
|
|
755
754
|
limit: number;
|
|
755
|
+
page: number;
|
|
756
|
+
sort?: {
|
|
757
|
+
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
758
|
+
order: "ASC" | "DESC";
|
|
759
|
+
}[] | null | undefined;
|
|
760
|
+
phoneNumber?: string | undefined;
|
|
756
761
|
createdAt?: {
|
|
757
762
|
from?: string | null | undefined;
|
|
758
763
|
to?: string | null | undefined;
|
|
759
764
|
} | null | undefined;
|
|
760
765
|
companyId?: string | undefined;
|
|
761
|
-
sort?: {
|
|
762
|
-
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
763
|
-
order: "ASC" | "DESC";
|
|
764
|
-
}[] | null | undefined;
|
|
765
766
|
agentId?: string | undefined;
|
|
766
767
|
rating?: {
|
|
767
768
|
from?: import("../common/call-rating.schema").CallRating | null | undefined;
|
|
@@ -770,19 +771,19 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
770
771
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
771
772
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
772
773
|
leadName?: string | undefined;
|
|
773
|
-
phoneNumber?: string | undefined;
|
|
774
774
|
}, {
|
|
775
|
-
createdAt?: {
|
|
776
|
-
from?: string | null | undefined;
|
|
777
|
-
to?: string | null | undefined;
|
|
778
|
-
} | null | undefined;
|
|
779
|
-
companyId?: string | undefined;
|
|
780
775
|
sort?: {
|
|
781
776
|
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
782
777
|
order: "ASC" | "DESC";
|
|
783
778
|
}[] | null | undefined;
|
|
784
|
-
|
|
779
|
+
phoneNumber?: string | undefined;
|
|
785
780
|
limit?: number | undefined;
|
|
781
|
+
page?: number | undefined;
|
|
782
|
+
createdAt?: {
|
|
783
|
+
from?: string | null | undefined;
|
|
784
|
+
to?: string | null | undefined;
|
|
785
|
+
} | null | undefined;
|
|
786
|
+
companyId?: string | undefined;
|
|
786
787
|
agentId?: string | undefined;
|
|
787
788
|
rating?: {
|
|
788
789
|
from?: unknown;
|
|
@@ -791,7 +792,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
791
792
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
792
793
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
793
794
|
leadName?: string | undefined;
|
|
794
|
-
phoneNumber?: string | undefined;
|
|
795
795
|
}>;
|
|
796
796
|
sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
797
797
|
field: z.ZodString;
|
|
@@ -809,19 +809,19 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
809
809
|
field: string;
|
|
810
810
|
dir: "ASC" | "DESC";
|
|
811
811
|
}[];
|
|
812
|
-
entity: "call-history";
|
|
813
812
|
filter: {
|
|
814
|
-
page: number;
|
|
815
813
|
limit: number;
|
|
814
|
+
page: number;
|
|
815
|
+
sort?: {
|
|
816
|
+
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
817
|
+
order: "ASC" | "DESC";
|
|
818
|
+
}[] | null | undefined;
|
|
819
|
+
phoneNumber?: string | undefined;
|
|
816
820
|
createdAt?: {
|
|
817
821
|
from?: string | null | undefined;
|
|
818
822
|
to?: string | null | undefined;
|
|
819
823
|
} | null | undefined;
|
|
820
824
|
companyId?: string | undefined;
|
|
821
|
-
sort?: {
|
|
822
|
-
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
823
|
-
order: "ASC" | "DESC";
|
|
824
|
-
}[] | null | undefined;
|
|
825
825
|
agentId?: string | undefined;
|
|
826
826
|
rating?: {
|
|
827
827
|
from?: import("../common/call-rating.schema").CallRating | null | undefined;
|
|
@@ -830,33 +830,33 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
830
830
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
831
831
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
832
832
|
leadName?: string | undefined;
|
|
833
|
-
phoneNumber?: string | undefined;
|
|
834
833
|
};
|
|
834
|
+
entity: "call-history";
|
|
835
835
|
columns: string[];
|
|
836
836
|
}, {
|
|
837
|
-
entity: "call-history";
|
|
838
837
|
filter: {
|
|
839
|
-
createdAt?: {
|
|
840
|
-
from?: string | null | undefined;
|
|
841
|
-
to?: string | null | undefined;
|
|
842
|
-
} | null | undefined;
|
|
843
|
-
companyId?: string | undefined;
|
|
844
838
|
sort?: {
|
|
845
839
|
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
846
840
|
order: "ASC" | "DESC";
|
|
847
841
|
}[] | null | undefined;
|
|
848
|
-
|
|
842
|
+
phoneNumber?: string | undefined;
|
|
849
843
|
limit?: number | undefined;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
from?:
|
|
853
|
-
to?:
|
|
844
|
+
page?: number | undefined;
|
|
845
|
+
createdAt?: {
|
|
846
|
+
from?: string | null | undefined;
|
|
847
|
+
to?: string | null | undefined;
|
|
848
|
+
} | null | undefined;
|
|
849
|
+
companyId?: string | undefined;
|
|
850
|
+
agentId?: string | undefined;
|
|
851
|
+
rating?: {
|
|
852
|
+
from?: unknown;
|
|
853
|
+
to?: unknown;
|
|
854
854
|
} | null | undefined;
|
|
855
855
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
856
856
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
857
857
|
leadName?: string | undefined;
|
|
858
|
-
phoneNumber?: string | undefined;
|
|
859
858
|
};
|
|
859
|
+
entity: "call-history";
|
|
860
860
|
columns: string[];
|
|
861
861
|
sort?: {
|
|
862
862
|
field: string;
|
|
@@ -930,24 +930,30 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
930
930
|
field: z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "creationSource", "createdAt", "updatedAt", "startDate"]>;
|
|
931
931
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
932
932
|
}, "strip", z.ZodTypeAny, {
|
|
933
|
-
field: "
|
|
933
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
934
934
|
order: "ASC" | "DESC";
|
|
935
935
|
}, {
|
|
936
|
-
field: "
|
|
936
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
937
937
|
order: "ASC" | "DESC";
|
|
938
938
|
}>, "many">>>;
|
|
939
939
|
}, "strip", z.ZodTypeAny, {
|
|
940
|
-
page: number;
|
|
941
940
|
limit: number;
|
|
942
|
-
|
|
941
|
+
page: number;
|
|
942
|
+
sort?: {
|
|
943
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
944
|
+
order: "ASC" | "DESC";
|
|
945
|
+
}[] | null | undefined;
|
|
946
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
947
|
+
description?: string | null | undefined;
|
|
948
|
+
createdAt?: {
|
|
943
949
|
from?: string | null | undefined;
|
|
944
950
|
to?: string | null | undefined;
|
|
945
951
|
} | null | undefined;
|
|
946
|
-
|
|
952
|
+
updatedAt?: {
|
|
947
953
|
from?: string | null | undefined;
|
|
948
954
|
to?: string | null | undefined;
|
|
949
955
|
} | null | undefined;
|
|
950
|
-
|
|
956
|
+
userId?: string | null | undefined;
|
|
951
957
|
location?: {
|
|
952
958
|
postcode?: string | null | undefined;
|
|
953
959
|
radius?: number | null | undefined;
|
|
@@ -956,7 +962,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
956
962
|
minRate?: number | null | undefined;
|
|
957
963
|
maxRate?: number | null | undefined;
|
|
958
964
|
} | null | undefined;
|
|
959
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
960
965
|
tradeId?: string | null | undefined;
|
|
961
966
|
qualificationFilters?: {
|
|
962
967
|
qualificationId?: string | undefined;
|
|
@@ -965,22 +970,25 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
965
970
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
966
971
|
clientId?: string | null | undefined;
|
|
967
972
|
companyId?: string | null | undefined;
|
|
973
|
+
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
974
|
+
}, {
|
|
968
975
|
sort?: {
|
|
969
|
-
field: "
|
|
976
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
970
977
|
order: "ASC" | "DESC";
|
|
971
978
|
}[] | null | undefined;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
979
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
980
|
+
description?: string | null | undefined;
|
|
981
|
+
limit?: number | undefined;
|
|
982
|
+
page?: number | undefined;
|
|
983
|
+
createdAt?: {
|
|
976
984
|
from?: string | null | undefined;
|
|
977
985
|
to?: string | null | undefined;
|
|
978
986
|
} | null | undefined;
|
|
979
|
-
|
|
987
|
+
updatedAt?: {
|
|
980
988
|
from?: string | null | undefined;
|
|
981
989
|
to?: string | null | undefined;
|
|
982
990
|
} | null | undefined;
|
|
983
|
-
|
|
991
|
+
userId?: string | null | undefined;
|
|
984
992
|
location?: {
|
|
985
993
|
postcode?: string | null | undefined;
|
|
986
994
|
radius?: number | null | undefined;
|
|
@@ -989,7 +997,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
989
997
|
minRate?: number | null | undefined;
|
|
990
998
|
maxRate?: number | null | undefined;
|
|
991
999
|
} | null | undefined;
|
|
992
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
993
1000
|
tradeId?: string | null | undefined;
|
|
994
1001
|
qualificationFilters?: {
|
|
995
1002
|
qualificationId?: string | undefined;
|
|
@@ -998,13 +1005,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
998
1005
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
999
1006
|
clientId?: string | null | undefined;
|
|
1000
1007
|
companyId?: string | null | undefined;
|
|
1001
|
-
sort?: {
|
|
1002
|
-
field: "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "status" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
1003
|
-
order: "ASC" | "DESC";
|
|
1004
|
-
}[] | null | undefined;
|
|
1005
|
-
page?: number | undefined;
|
|
1006
|
-
limit?: number | undefined;
|
|
1007
|
-
userId?: string | null | undefined;
|
|
1008
1008
|
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
1009
1009
|
}>;
|
|
1010
1010
|
sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1023,19 +1023,24 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1023
1023
|
field: string;
|
|
1024
1024
|
dir: "ASC" | "DESC";
|
|
1025
1025
|
}[];
|
|
1026
|
-
entity: "jobs";
|
|
1027
1026
|
filter: {
|
|
1028
|
-
page: number;
|
|
1029
1027
|
limit: number;
|
|
1030
|
-
|
|
1028
|
+
page: number;
|
|
1029
|
+
sort?: {
|
|
1030
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
1031
|
+
order: "ASC" | "DESC";
|
|
1032
|
+
}[] | null | undefined;
|
|
1033
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
1034
|
+
description?: string | null | undefined;
|
|
1035
|
+
createdAt?: {
|
|
1031
1036
|
from?: string | null | undefined;
|
|
1032
1037
|
to?: string | null | undefined;
|
|
1033
1038
|
} | null | undefined;
|
|
1034
|
-
|
|
1039
|
+
updatedAt?: {
|
|
1035
1040
|
from?: string | null | undefined;
|
|
1036
1041
|
to?: string | null | undefined;
|
|
1037
1042
|
} | null | undefined;
|
|
1038
|
-
|
|
1043
|
+
userId?: string | null | undefined;
|
|
1039
1044
|
location?: {
|
|
1040
1045
|
postcode?: string | null | undefined;
|
|
1041
1046
|
radius?: number | null | undefined;
|
|
@@ -1044,7 +1049,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1044
1049
|
minRate?: number | null | undefined;
|
|
1045
1050
|
maxRate?: number | null | undefined;
|
|
1046
1051
|
} | null | undefined;
|
|
1047
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
1048
1052
|
tradeId?: string | null | undefined;
|
|
1049
1053
|
qualificationFilters?: {
|
|
1050
1054
|
qualificationId?: string | undefined;
|
|
@@ -1053,26 +1057,29 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1053
1057
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
1054
1058
|
clientId?: string | null | undefined;
|
|
1055
1059
|
companyId?: string | null | undefined;
|
|
1056
|
-
sort?: {
|
|
1057
|
-
field: "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "status" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
1058
|
-
order: "ASC" | "DESC";
|
|
1059
|
-
}[] | null | undefined;
|
|
1060
|
-
userId?: string | null | undefined;
|
|
1061
1060
|
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
1062
1061
|
};
|
|
1062
|
+
entity: "jobs";
|
|
1063
1063
|
columns: string[];
|
|
1064
1064
|
}, {
|
|
1065
|
-
entity: "jobs";
|
|
1066
1065
|
filter: {
|
|
1067
|
-
|
|
1066
|
+
sort?: {
|
|
1067
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
1068
|
+
order: "ASC" | "DESC";
|
|
1069
|
+
}[] | null | undefined;
|
|
1070
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
1071
|
+
description?: string | null | undefined;
|
|
1072
|
+
limit?: number | undefined;
|
|
1073
|
+
page?: number | undefined;
|
|
1074
|
+
createdAt?: {
|
|
1068
1075
|
from?: string | null | undefined;
|
|
1069
1076
|
to?: string | null | undefined;
|
|
1070
1077
|
} | null | undefined;
|
|
1071
|
-
|
|
1078
|
+
updatedAt?: {
|
|
1072
1079
|
from?: string | null | undefined;
|
|
1073
1080
|
to?: string | null | undefined;
|
|
1074
1081
|
} | null | undefined;
|
|
1075
|
-
|
|
1082
|
+
userId?: string | null | undefined;
|
|
1076
1083
|
location?: {
|
|
1077
1084
|
postcode?: string | null | undefined;
|
|
1078
1085
|
radius?: number | null | undefined;
|
|
@@ -1081,7 +1088,6 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1081
1088
|
minRate?: number | null | undefined;
|
|
1082
1089
|
maxRate?: number | null | undefined;
|
|
1083
1090
|
} | null | undefined;
|
|
1084
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
1085
1091
|
tradeId?: string | null | undefined;
|
|
1086
1092
|
qualificationFilters?: {
|
|
1087
1093
|
qualificationId?: string | undefined;
|
|
@@ -1090,15 +1096,9 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1090
1096
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
1091
1097
|
clientId?: string | null | undefined;
|
|
1092
1098
|
companyId?: string | null | undefined;
|
|
1093
|
-
sort?: {
|
|
1094
|
-
field: "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "status" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
1095
|
-
order: "ASC" | "DESC";
|
|
1096
|
-
}[] | null | undefined;
|
|
1097
|
-
page?: number | undefined;
|
|
1098
|
-
limit?: number | undefined;
|
|
1099
|
-
userId?: string | null | undefined;
|
|
1100
1099
|
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
1101
1100
|
};
|
|
1101
|
+
entity: "jobs";
|
|
1102
1102
|
columns: string[];
|
|
1103
1103
|
sort?: {
|
|
1104
1104
|
field: string;
|
|
@@ -1114,13 +1114,13 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1114
1114
|
email: z.ZodOptional<z.ZodString>;
|
|
1115
1115
|
phone: z.ZodOptional<z.ZodString>;
|
|
1116
1116
|
roles: z.ZodOptional<z.ZodObject<{
|
|
1117
|
-
values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
1117
|
+
values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
1118
1118
|
requireAll: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
1119
1119
|
}, "strip", z.ZodTypeAny, {
|
|
1120
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1120
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1121
1121
|
requireAll?: boolean | undefined;
|
|
1122
1122
|
}, {
|
|
1123
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1123
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1124
1124
|
requireAll?: unknown;
|
|
1125
1125
|
}>>;
|
|
1126
1126
|
officeId: z.ZodOptional<z.ZodString>;
|
|
@@ -1149,60 +1149,60 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1149
1149
|
field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
|
|
1150
1150
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1151
1151
|
}, "strip", z.ZodTypeAny, {
|
|
1152
|
-
field: "
|
|
1152
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
1153
1153
|
order: "ASC" | "DESC";
|
|
1154
1154
|
}, {
|
|
1155
|
-
field: "
|
|
1155
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
1156
1156
|
order: "ASC" | "DESC";
|
|
1157
1157
|
}>, "many">>>;
|
|
1158
1158
|
}, "strip", z.ZodTypeAny, {
|
|
1159
|
-
page: number;
|
|
1160
1159
|
limit: number;
|
|
1160
|
+
page: number;
|
|
1161
|
+
sort?: {
|
|
1162
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
1163
|
+
order: "ASC" | "DESC";
|
|
1164
|
+
}[] | null | undefined;
|
|
1165
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1161
1166
|
name?: string | undefined;
|
|
1162
|
-
|
|
1163
|
-
from?: string | null | undefined;
|
|
1164
|
-
to?: string | null | undefined;
|
|
1165
|
-
} | null | undefined;
|
|
1167
|
+
email?: string | undefined;
|
|
1166
1168
|
createdAt?: {
|
|
1167
1169
|
from?: string | null | undefined;
|
|
1168
1170
|
to?: string | null | undefined;
|
|
1169
1171
|
} | null | undefined;
|
|
1170
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1171
|
-
sort?: {
|
|
1172
|
-
field: "createdAt" | "email" | "lastName" | "firstName" | "office";
|
|
1173
|
-
order: "ASC" | "DESC";
|
|
1174
|
-
}[] | null | undefined;
|
|
1175
|
-
phone?: string | undefined;
|
|
1176
|
-
email?: string | undefined;
|
|
1177
1172
|
roles?: {
|
|
1178
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1173
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1179
1174
|
requireAll?: boolean | undefined;
|
|
1180
1175
|
} | undefined;
|
|
1181
1176
|
officeId?: string | undefined;
|
|
1182
|
-
}, {
|
|
1183
|
-
name?: string | undefined;
|
|
1184
1177
|
updatedAt?: {
|
|
1185
1178
|
from?: string | null | undefined;
|
|
1186
1179
|
to?: string | null | undefined;
|
|
1187
1180
|
} | null | undefined;
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
to?: string | null | undefined;
|
|
1191
|
-
} | null | undefined;
|
|
1192
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1181
|
+
phone?: string | undefined;
|
|
1182
|
+
}, {
|
|
1193
1183
|
sort?: {
|
|
1194
|
-
field: "
|
|
1184
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
1195
1185
|
order: "ASC" | "DESC";
|
|
1196
1186
|
}[] | null | undefined;
|
|
1197
|
-
|
|
1187
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1188
|
+
name?: string | undefined;
|
|
1198
1189
|
limit?: number | undefined;
|
|
1199
|
-
|
|
1190
|
+
page?: number | undefined;
|
|
1200
1191
|
email?: string | undefined;
|
|
1192
|
+
createdAt?: {
|
|
1193
|
+
from?: string | null | undefined;
|
|
1194
|
+
to?: string | null | undefined;
|
|
1195
|
+
} | null | undefined;
|
|
1201
1196
|
roles?: {
|
|
1202
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1197
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1203
1198
|
requireAll?: unknown;
|
|
1204
1199
|
} | undefined;
|
|
1205
1200
|
officeId?: string | undefined;
|
|
1201
|
+
updatedAt?: {
|
|
1202
|
+
from?: string | null | undefined;
|
|
1203
|
+
to?: string | null | undefined;
|
|
1204
|
+
} | null | undefined;
|
|
1205
|
+
phone?: string | undefined;
|
|
1206
1206
|
}>;
|
|
1207
1207
|
sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1208
1208
|
field: z.ZodString;
|
|
@@ -1220,60 +1220,60 @@ export declare const CreateExportJobBodySchema: z.ZodDiscriminatedUnion<"entity"
|
|
|
1220
1220
|
field: string;
|
|
1221
1221
|
dir: "ASC" | "DESC";
|
|
1222
1222
|
}[];
|
|
1223
|
-
entity: "users";
|
|
1224
1223
|
filter: {
|
|
1225
|
-
page: number;
|
|
1226
1224
|
limit: number;
|
|
1225
|
+
page: number;
|
|
1226
|
+
sort?: {
|
|
1227
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
1228
|
+
order: "ASC" | "DESC";
|
|
1229
|
+
}[] | null | undefined;
|
|
1230
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1227
1231
|
name?: string | undefined;
|
|
1228
|
-
|
|
1229
|
-
from?: string | null | undefined;
|
|
1230
|
-
to?: string | null | undefined;
|
|
1231
|
-
} | null | undefined;
|
|
1232
|
+
email?: string | undefined;
|
|
1232
1233
|
createdAt?: {
|
|
1233
1234
|
from?: string | null | undefined;
|
|
1234
1235
|
to?: string | null | undefined;
|
|
1235
1236
|
} | null | undefined;
|
|
1236
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1237
|
-
sort?: {
|
|
1238
|
-
field: "createdAt" | "email" | "lastName" | "firstName" | "office";
|
|
1239
|
-
order: "ASC" | "DESC";
|
|
1240
|
-
}[] | null | undefined;
|
|
1241
|
-
phone?: string | undefined;
|
|
1242
|
-
email?: string | undefined;
|
|
1243
1237
|
roles?: {
|
|
1244
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1238
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1245
1239
|
requireAll?: boolean | undefined;
|
|
1246
1240
|
} | undefined;
|
|
1247
1241
|
officeId?: string | undefined;
|
|
1248
|
-
};
|
|
1249
|
-
columns: string[];
|
|
1250
|
-
}, {
|
|
1251
|
-
entity: "users";
|
|
1252
|
-
filter: {
|
|
1253
|
-
name?: string | undefined;
|
|
1254
1242
|
updatedAt?: {
|
|
1255
1243
|
from?: string | null | undefined;
|
|
1256
1244
|
to?: string | null | undefined;
|
|
1257
1245
|
} | null | undefined;
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1246
|
+
phone?: string | undefined;
|
|
1247
|
+
};
|
|
1248
|
+
entity: "users";
|
|
1249
|
+
columns: string[];
|
|
1250
|
+
}, {
|
|
1251
|
+
filter: {
|
|
1263
1252
|
sort?: {
|
|
1264
|
-
field: "
|
|
1253
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
1265
1254
|
order: "ASC" | "DESC";
|
|
1266
1255
|
}[] | null | undefined;
|
|
1267
|
-
|
|
1256
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1257
|
+
name?: string | undefined;
|
|
1268
1258
|
limit?: number | undefined;
|
|
1269
|
-
|
|
1259
|
+
page?: number | undefined;
|
|
1270
1260
|
email?: string | undefined;
|
|
1261
|
+
createdAt?: {
|
|
1262
|
+
from?: string | null | undefined;
|
|
1263
|
+
to?: string | null | undefined;
|
|
1264
|
+
} | null | undefined;
|
|
1271
1265
|
roles?: {
|
|
1272
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
1266
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
1273
1267
|
requireAll?: unknown;
|
|
1274
1268
|
} | undefined;
|
|
1275
1269
|
officeId?: string | undefined;
|
|
1270
|
+
updatedAt?: {
|
|
1271
|
+
from?: string | null | undefined;
|
|
1272
|
+
to?: string | null | undefined;
|
|
1273
|
+
} | null | undefined;
|
|
1274
|
+
phone?: string | undefined;
|
|
1276
1275
|
};
|
|
1276
|
+
entity: "users";
|
|
1277
1277
|
columns: string[];
|
|
1278
1278
|
sort?: {
|
|
1279
1279
|
field: string;
|
|
@@ -1306,8 +1306,8 @@ export declare const ExportJobSchema: z.ZodObject<{
|
|
|
1306
1306
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1307
1307
|
}, "strip", z.ZodTypeAny, {
|
|
1308
1308
|
id: string;
|
|
1309
|
-
lastName: string;
|
|
1310
1309
|
firstName: string;
|
|
1310
|
+
lastName: string;
|
|
1311
1311
|
phoneNumbers: {
|
|
1312
1312
|
id: string;
|
|
1313
1313
|
phoneNumber: string;
|
|
@@ -1317,8 +1317,8 @@ export declare const ExportJobSchema: z.ZodObject<{
|
|
|
1317
1317
|
deletedAt?: string | null | undefined;
|
|
1318
1318
|
}, {
|
|
1319
1319
|
id: string;
|
|
1320
|
-
lastName: string;
|
|
1321
1320
|
firstName: string;
|
|
1321
|
+
lastName: string;
|
|
1322
1322
|
phoneNumbers?: {
|
|
1323
1323
|
id: string;
|
|
1324
1324
|
phoneNumber: string;
|
|
@@ -1351,17 +1351,20 @@ export declare const ExportJobSchema: z.ZodObject<{
|
|
|
1351
1351
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1352
1352
|
expiresAt: z.ZodString;
|
|
1353
1353
|
}, "strip", z.ZodTypeAny, {
|
|
1354
|
-
id: string;
|
|
1355
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
1356
1354
|
sort: {
|
|
1357
1355
|
field: string;
|
|
1358
1356
|
dir: "ASC" | "DESC";
|
|
1359
1357
|
}[];
|
|
1358
|
+
filter: Record<string, unknown>;
|
|
1359
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
1360
|
+
id: string;
|
|
1361
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
1360
1362
|
userId: string;
|
|
1363
|
+
requestedAt: string;
|
|
1361
1364
|
user: {
|
|
1362
1365
|
id: string;
|
|
1363
|
-
lastName: string;
|
|
1364
1366
|
firstName: string;
|
|
1367
|
+
lastName: string;
|
|
1365
1368
|
phoneNumbers: {
|
|
1366
1369
|
id: string;
|
|
1367
1370
|
phoneNumber: string;
|
|
@@ -1370,26 +1373,26 @@ export declare const ExportJobSchema: z.ZodObject<{
|
|
|
1370
1373
|
}[];
|
|
1371
1374
|
deletedAt?: string | null | undefined;
|
|
1372
1375
|
} | null;
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
+
expiresAt: string;
|
|
1377
|
+
totalRows: number | null;
|
|
1378
|
+
errorMessage: string | null;
|
|
1379
|
+
completedAt: string | null;
|
|
1380
|
+
startedAt: string | null;
|
|
1376
1381
|
columns: string[];
|
|
1377
1382
|
rowsProcessed: number;
|
|
1378
1383
|
rowsSkipped: number;
|
|
1379
|
-
totalRows: number | null;
|
|
1380
1384
|
byteSize: number | null;
|
|
1381
|
-
errorMessage: string | null;
|
|
1382
|
-
startedAt: string | null;
|
|
1383
|
-
completedAt: string | null;
|
|
1384
|
-
expiresAt: string;
|
|
1385
1385
|
}, {
|
|
1386
|
+
filter: Record<string, unknown>;
|
|
1387
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
1386
1388
|
id: string;
|
|
1387
|
-
|
|
1389
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
1388
1390
|
userId: string;
|
|
1391
|
+
requestedAt: string;
|
|
1389
1392
|
user: {
|
|
1390
1393
|
id: string;
|
|
1391
|
-
lastName: string;
|
|
1392
1394
|
firstName: string;
|
|
1395
|
+
lastName: string;
|
|
1393
1396
|
phoneNumbers?: {
|
|
1394
1397
|
id: string;
|
|
1395
1398
|
phoneNumber: string;
|
|
@@ -1398,18 +1401,15 @@ export declare const ExportJobSchema: z.ZodObject<{
|
|
|
1398
1401
|
}[] | undefined;
|
|
1399
1402
|
deletedAt?: string | Date | null | undefined;
|
|
1400
1403
|
} | null;
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
+
expiresAt: string;
|
|
1405
|
+
totalRows: number | null;
|
|
1406
|
+
errorMessage: string | null;
|
|
1407
|
+
completedAt: string | null;
|
|
1408
|
+
startedAt: string | null;
|
|
1404
1409
|
columns: string[];
|
|
1405
1410
|
rowsProcessed: number;
|
|
1406
1411
|
rowsSkipped: number;
|
|
1407
|
-
totalRows: number | null;
|
|
1408
1412
|
byteSize: number | null;
|
|
1409
|
-
errorMessage: string | null;
|
|
1410
|
-
startedAt: string | null;
|
|
1411
|
-
completedAt: string | null;
|
|
1412
|
-
expiresAt: string;
|
|
1413
1413
|
sort?: {
|
|
1414
1414
|
field: string;
|
|
1415
1415
|
dir: "ASC" | "DESC";
|
|
@@ -1442,8 +1442,8 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1442
1442
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
1443
1443
|
}, "strip", z.ZodTypeAny, {
|
|
1444
1444
|
id: string;
|
|
1445
|
-
lastName: string;
|
|
1446
1445
|
firstName: string;
|
|
1446
|
+
lastName: string;
|
|
1447
1447
|
phoneNumbers: {
|
|
1448
1448
|
id: string;
|
|
1449
1449
|
phoneNumber: string;
|
|
@@ -1453,8 +1453,8 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1453
1453
|
deletedAt?: string | null | undefined;
|
|
1454
1454
|
}, {
|
|
1455
1455
|
id: string;
|
|
1456
|
-
lastName: string;
|
|
1457
1456
|
firstName: string;
|
|
1457
|
+
lastName: string;
|
|
1458
1458
|
phoneNumbers?: {
|
|
1459
1459
|
id: string;
|
|
1460
1460
|
phoneNumber: string;
|
|
@@ -1487,17 +1487,20 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1487
1487
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1488
1488
|
expiresAt: z.ZodString;
|
|
1489
1489
|
}, "strip", z.ZodTypeAny, {
|
|
1490
|
-
id: string;
|
|
1491
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
1492
1490
|
sort: {
|
|
1493
1491
|
field: string;
|
|
1494
1492
|
dir: "ASC" | "DESC";
|
|
1495
1493
|
}[];
|
|
1494
|
+
filter: Record<string, unknown>;
|
|
1495
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
1496
|
+
id: string;
|
|
1497
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
1496
1498
|
userId: string;
|
|
1499
|
+
requestedAt: string;
|
|
1497
1500
|
user: {
|
|
1498
1501
|
id: string;
|
|
1499
|
-
lastName: string;
|
|
1500
1502
|
firstName: string;
|
|
1503
|
+
lastName: string;
|
|
1501
1504
|
phoneNumbers: {
|
|
1502
1505
|
id: string;
|
|
1503
1506
|
phoneNumber: string;
|
|
@@ -1506,26 +1509,26 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1506
1509
|
}[];
|
|
1507
1510
|
deletedAt?: string | null | undefined;
|
|
1508
1511
|
} | null;
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
+
expiresAt: string;
|
|
1513
|
+
totalRows: number | null;
|
|
1514
|
+
errorMessage: string | null;
|
|
1515
|
+
completedAt: string | null;
|
|
1516
|
+
startedAt: string | null;
|
|
1512
1517
|
columns: string[];
|
|
1513
1518
|
rowsProcessed: number;
|
|
1514
1519
|
rowsSkipped: number;
|
|
1515
|
-
totalRows: number | null;
|
|
1516
1520
|
byteSize: number | null;
|
|
1517
|
-
errorMessage: string | null;
|
|
1518
|
-
startedAt: string | null;
|
|
1519
|
-
completedAt: string | null;
|
|
1520
|
-
expiresAt: string;
|
|
1521
1521
|
}, {
|
|
1522
|
+
filter: Record<string, unknown>;
|
|
1523
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
1522
1524
|
id: string;
|
|
1523
|
-
|
|
1525
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
1524
1526
|
userId: string;
|
|
1527
|
+
requestedAt: string;
|
|
1525
1528
|
user: {
|
|
1526
1529
|
id: string;
|
|
1527
|
-
lastName: string;
|
|
1528
1530
|
firstName: string;
|
|
1531
|
+
lastName: string;
|
|
1529
1532
|
phoneNumbers?: {
|
|
1530
1533
|
id: string;
|
|
1531
1534
|
phoneNumber: string;
|
|
@@ -1534,18 +1537,15 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1534
1537
|
}[] | undefined;
|
|
1535
1538
|
deletedAt?: string | Date | null | undefined;
|
|
1536
1539
|
} | null;
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
+
expiresAt: string;
|
|
1541
|
+
totalRows: number | null;
|
|
1542
|
+
errorMessage: string | null;
|
|
1543
|
+
completedAt: string | null;
|
|
1544
|
+
startedAt: string | null;
|
|
1540
1545
|
columns: string[];
|
|
1541
1546
|
rowsProcessed: number;
|
|
1542
1547
|
rowsSkipped: number;
|
|
1543
|
-
totalRows: number | null;
|
|
1544
1548
|
byteSize: number | null;
|
|
1545
|
-
errorMessage: string | null;
|
|
1546
|
-
startedAt: string | null;
|
|
1547
|
-
completedAt: string | null;
|
|
1548
|
-
expiresAt: string;
|
|
1549
1549
|
sort?: {
|
|
1550
1550
|
field: string;
|
|
1551
1551
|
dir: "ASC" | "DESC";
|
|
@@ -1559,17 +1559,20 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1559
1559
|
}, "strip", z.ZodTypeAny, {
|
|
1560
1560
|
limit: number;
|
|
1561
1561
|
items: {
|
|
1562
|
-
id: string;
|
|
1563
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
1564
1562
|
sort: {
|
|
1565
1563
|
field: string;
|
|
1566
1564
|
dir: "ASC" | "DESC";
|
|
1567
1565
|
}[];
|
|
1566
|
+
filter: Record<string, unknown>;
|
|
1567
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
1568
|
+
id: string;
|
|
1569
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
1568
1570
|
userId: string;
|
|
1571
|
+
requestedAt: string;
|
|
1569
1572
|
user: {
|
|
1570
1573
|
id: string;
|
|
1571
|
-
lastName: string;
|
|
1572
1574
|
firstName: string;
|
|
1575
|
+
lastName: string;
|
|
1573
1576
|
phoneNumbers: {
|
|
1574
1577
|
id: string;
|
|
1575
1578
|
phoneNumber: string;
|
|
@@ -1578,18 +1581,15 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1578
1581
|
}[];
|
|
1579
1582
|
deletedAt?: string | null | undefined;
|
|
1580
1583
|
} | null;
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
+
expiresAt: string;
|
|
1585
|
+
totalRows: number | null;
|
|
1586
|
+
errorMessage: string | null;
|
|
1587
|
+
completedAt: string | null;
|
|
1588
|
+
startedAt: string | null;
|
|
1584
1589
|
columns: string[];
|
|
1585
1590
|
rowsProcessed: number;
|
|
1586
1591
|
rowsSkipped: number;
|
|
1587
|
-
totalRows: number | null;
|
|
1588
1592
|
byteSize: number | null;
|
|
1589
|
-
errorMessage: string | null;
|
|
1590
|
-
startedAt: string | null;
|
|
1591
|
-
completedAt: string | null;
|
|
1592
|
-
expiresAt: string;
|
|
1593
1593
|
}[];
|
|
1594
1594
|
totalCount: number;
|
|
1595
1595
|
skip: number;
|
|
@@ -1598,13 +1598,16 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1598
1598
|
}, {
|
|
1599
1599
|
limit: number;
|
|
1600
1600
|
items: {
|
|
1601
|
+
filter: Record<string, unknown>;
|
|
1602
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
1601
1603
|
id: string;
|
|
1602
|
-
|
|
1604
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
1603
1605
|
userId: string;
|
|
1606
|
+
requestedAt: string;
|
|
1604
1607
|
user: {
|
|
1605
1608
|
id: string;
|
|
1606
|
-
lastName: string;
|
|
1607
1609
|
firstName: string;
|
|
1610
|
+
lastName: string;
|
|
1608
1611
|
phoneNumbers?: {
|
|
1609
1612
|
id: string;
|
|
1610
1613
|
phoneNumber: string;
|
|
@@ -1613,18 +1616,15 @@ export declare const PaginatedExportJobResponseSchema: z.ZodObject<{
|
|
|
1613
1616
|
}[] | undefined;
|
|
1614
1617
|
deletedAt?: string | Date | null | undefined;
|
|
1615
1618
|
} | null;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
+
expiresAt: string;
|
|
1620
|
+
totalRows: number | null;
|
|
1621
|
+
errorMessage: string | null;
|
|
1622
|
+
completedAt: string | null;
|
|
1623
|
+
startedAt: string | null;
|
|
1619
1624
|
columns: string[];
|
|
1620
1625
|
rowsProcessed: number;
|
|
1621
1626
|
rowsSkipped: number;
|
|
1622
|
-
totalRows: number | null;
|
|
1623
1627
|
byteSize: number | null;
|
|
1624
|
-
errorMessage: string | null;
|
|
1625
|
-
startedAt: string | null;
|
|
1626
|
-
completedAt: string | null;
|
|
1627
|
-
expiresAt: string;
|
|
1628
1628
|
sort?: {
|
|
1629
1629
|
field: string;
|
|
1630
1630
|
dir: "ASC" | "DESC";
|
|
@@ -1702,6 +1702,7 @@ export declare const exportJobsContract: {
|
|
|
1702
1702
|
radius?: number | null | undefined;
|
|
1703
1703
|
}>>>;
|
|
1704
1704
|
}, "strip", z.ZodTypeAny, {
|
|
1705
|
+
userId?: string | null | undefined;
|
|
1705
1706
|
location?: {
|
|
1706
1707
|
postcode?: string | null | undefined;
|
|
1707
1708
|
radius?: number | null | undefined;
|
|
@@ -1709,8 +1710,8 @@ export declare const exportJobsContract: {
|
|
|
1709
1710
|
tradeId?: string | null | undefined;
|
|
1710
1711
|
clientId?: string | null | undefined;
|
|
1711
1712
|
companyId?: string | null | undefined;
|
|
1712
|
-
userId?: string | null | undefined;
|
|
1713
1713
|
}, {
|
|
1714
|
+
userId?: string | null | undefined;
|
|
1714
1715
|
location?: {
|
|
1715
1716
|
postcode?: string | null | undefined;
|
|
1716
1717
|
radius?: number | null | undefined;
|
|
@@ -1718,37 +1719,37 @@ export declare const exportJobsContract: {
|
|
|
1718
1719
|
tradeId?: string | null | undefined;
|
|
1719
1720
|
clientId?: string | null | undefined;
|
|
1720
1721
|
companyId?: string | null | undefined;
|
|
1721
|
-
userId?: string | null | undefined;
|
|
1722
1722
|
}>>>;
|
|
1723
1723
|
sort: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1724
1724
|
field: z.ZodEnum<["date", "startDate", "workerName", "status", "hoursWorked", "payRate", "receivedRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "postcode", "firstAgent", "createdAt", "updatedAt"]>;
|
|
1725
1725
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1726
1726
|
}, "strip", z.ZodTypeAny, {
|
|
1727
|
-
field: "
|
|
1727
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
1728
1728
|
order: "ASC" | "DESC";
|
|
1729
1729
|
}, {
|
|
1730
|
-
field: "
|
|
1730
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
1731
1731
|
order: "ASC" | "DESC";
|
|
1732
1732
|
}>, "many">>>;
|
|
1733
1733
|
}, "strip", z.ZodTypeAny, {
|
|
1734
|
-
page: number;
|
|
1735
1734
|
limit: number;
|
|
1736
|
-
|
|
1737
|
-
minRate?: number | null | undefined;
|
|
1738
|
-
maxRate?: number | null | undefined;
|
|
1739
|
-
} | null | undefined;
|
|
1740
|
-
status?: {
|
|
1741
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1742
|
-
} | null | undefined;
|
|
1735
|
+
page: number;
|
|
1743
1736
|
sort?: {
|
|
1744
|
-
field: "
|
|
1737
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
1745
1738
|
order: "ASC" | "DESC";
|
|
1746
1739
|
}[] | null | undefined;
|
|
1740
|
+
status?: {
|
|
1741
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1742
|
+
} | null | undefined;
|
|
1747
1743
|
date?: {
|
|
1748
1744
|
from?: string | null | undefined;
|
|
1749
1745
|
to?: string | null | undefined;
|
|
1750
1746
|
} | null | undefined;
|
|
1747
|
+
pay?: {
|
|
1748
|
+
minRate?: number | null | undefined;
|
|
1749
|
+
maxRate?: number | null | undefined;
|
|
1750
|
+
} | null | undefined;
|
|
1751
1751
|
job?: {
|
|
1752
|
+
userId?: string | null | undefined;
|
|
1752
1753
|
location?: {
|
|
1753
1754
|
postcode?: string | null | undefined;
|
|
1754
1755
|
radius?: number | null | undefined;
|
|
@@ -1756,7 +1757,6 @@ export declare const exportJobsContract: {
|
|
|
1756
1757
|
tradeId?: string | null | undefined;
|
|
1757
1758
|
clientId?: string | null | undefined;
|
|
1758
1759
|
companyId?: string | null | undefined;
|
|
1759
|
-
userId?: string | null | undefined;
|
|
1760
1760
|
} | null | undefined;
|
|
1761
1761
|
workerName?: {
|
|
1762
1762
|
value?: string | undefined;
|
|
@@ -1764,24 +1764,25 @@ export declare const exportJobsContract: {
|
|
|
1764
1764
|
} | null | undefined;
|
|
1765
1765
|
agentId?: string | null | undefined;
|
|
1766
1766
|
}, {
|
|
1767
|
-
pay?: {
|
|
1768
|
-
minRate?: number | null | undefined;
|
|
1769
|
-
maxRate?: number | null | undefined;
|
|
1770
|
-
} | null | undefined;
|
|
1771
|
-
status?: {
|
|
1772
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1773
|
-
} | null | undefined;
|
|
1774
1767
|
sort?: {
|
|
1775
|
-
field: "
|
|
1768
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
1776
1769
|
order: "ASC" | "DESC";
|
|
1777
1770
|
}[] | null | undefined;
|
|
1778
|
-
|
|
1779
|
-
|
|
1771
|
+
status?: {
|
|
1772
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1773
|
+
} | null | undefined;
|
|
1780
1774
|
date?: {
|
|
1781
1775
|
from?: string | null | undefined;
|
|
1782
1776
|
to?: string | null | undefined;
|
|
1783
1777
|
} | null | undefined;
|
|
1778
|
+
limit?: number | undefined;
|
|
1779
|
+
page?: number | undefined;
|
|
1780
|
+
pay?: {
|
|
1781
|
+
minRate?: number | null | undefined;
|
|
1782
|
+
maxRate?: number | null | undefined;
|
|
1783
|
+
} | null | undefined;
|
|
1784
1784
|
job?: {
|
|
1785
|
+
userId?: string | null | undefined;
|
|
1785
1786
|
location?: {
|
|
1786
1787
|
postcode?: string | null | undefined;
|
|
1787
1788
|
radius?: number | null | undefined;
|
|
@@ -1789,7 +1790,6 @@ export declare const exportJobsContract: {
|
|
|
1789
1790
|
tradeId?: string | null | undefined;
|
|
1790
1791
|
clientId?: string | null | undefined;
|
|
1791
1792
|
companyId?: string | null | undefined;
|
|
1792
|
-
userId?: string | null | undefined;
|
|
1793
1793
|
} | null | undefined;
|
|
1794
1794
|
workerName?: {
|
|
1795
1795
|
value?: string | undefined;
|
|
@@ -1813,26 +1813,26 @@ export declare const exportJobsContract: {
|
|
|
1813
1813
|
field: string;
|
|
1814
1814
|
dir: "ASC" | "DESC";
|
|
1815
1815
|
}[];
|
|
1816
|
-
entity: "actives";
|
|
1817
1816
|
filter: {
|
|
1818
|
-
page: number;
|
|
1819
1817
|
limit: number;
|
|
1820
|
-
|
|
1821
|
-
minRate?: number | null | undefined;
|
|
1822
|
-
maxRate?: number | null | undefined;
|
|
1823
|
-
} | null | undefined;
|
|
1824
|
-
status?: {
|
|
1825
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1826
|
-
} | null | undefined;
|
|
1818
|
+
page: number;
|
|
1827
1819
|
sort?: {
|
|
1828
|
-
field: "
|
|
1820
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
1829
1821
|
order: "ASC" | "DESC";
|
|
1830
1822
|
}[] | null | undefined;
|
|
1823
|
+
status?: {
|
|
1824
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1825
|
+
} | null | undefined;
|
|
1831
1826
|
date?: {
|
|
1832
1827
|
from?: string | null | undefined;
|
|
1833
1828
|
to?: string | null | undefined;
|
|
1834
1829
|
} | null | undefined;
|
|
1830
|
+
pay?: {
|
|
1831
|
+
minRate?: number | null | undefined;
|
|
1832
|
+
maxRate?: number | null | undefined;
|
|
1833
|
+
} | null | undefined;
|
|
1835
1834
|
job?: {
|
|
1835
|
+
userId?: string | null | undefined;
|
|
1836
1836
|
location?: {
|
|
1837
1837
|
postcode?: string | null | undefined;
|
|
1838
1838
|
radius?: number | null | undefined;
|
|
@@ -1840,7 +1840,6 @@ export declare const exportJobsContract: {
|
|
|
1840
1840
|
tradeId?: string | null | undefined;
|
|
1841
1841
|
clientId?: string | null | undefined;
|
|
1842
1842
|
companyId?: string | null | undefined;
|
|
1843
|
-
userId?: string | null | undefined;
|
|
1844
1843
|
} | null | undefined;
|
|
1845
1844
|
workerName?: {
|
|
1846
1845
|
value?: string | undefined;
|
|
@@ -1848,28 +1847,29 @@ export declare const exportJobsContract: {
|
|
|
1848
1847
|
} | null | undefined;
|
|
1849
1848
|
agentId?: string | null | undefined;
|
|
1850
1849
|
};
|
|
1850
|
+
entity: "actives";
|
|
1851
1851
|
columns: string[];
|
|
1852
1852
|
}, {
|
|
1853
|
-
entity: "actives";
|
|
1854
1853
|
filter: {
|
|
1855
|
-
pay?: {
|
|
1856
|
-
minRate?: number | null | undefined;
|
|
1857
|
-
maxRate?: number | null | undefined;
|
|
1858
|
-
} | null | undefined;
|
|
1859
|
-
status?: {
|
|
1860
|
-
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1861
|
-
} | null | undefined;
|
|
1862
1854
|
sort?: {
|
|
1863
|
-
field: "
|
|
1855
|
+
field: "status" | "date" | "postcode" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "receivedRate" | "hoursWorked" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent" | "firstAgent";
|
|
1864
1856
|
order: "ASC" | "DESC";
|
|
1865
1857
|
}[] | null | undefined;
|
|
1866
|
-
|
|
1867
|
-
|
|
1858
|
+
status?: {
|
|
1859
|
+
status?: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | undefined;
|
|
1860
|
+
} | null | undefined;
|
|
1868
1861
|
date?: {
|
|
1869
1862
|
from?: string | null | undefined;
|
|
1870
1863
|
to?: string | null | undefined;
|
|
1871
1864
|
} | null | undefined;
|
|
1865
|
+
limit?: number | undefined;
|
|
1866
|
+
page?: number | undefined;
|
|
1867
|
+
pay?: {
|
|
1868
|
+
minRate?: number | null | undefined;
|
|
1869
|
+
maxRate?: number | null | undefined;
|
|
1870
|
+
} | null | undefined;
|
|
1872
1871
|
job?: {
|
|
1872
|
+
userId?: string | null | undefined;
|
|
1873
1873
|
location?: {
|
|
1874
1874
|
postcode?: string | null | undefined;
|
|
1875
1875
|
radius?: number | null | undefined;
|
|
@@ -1877,7 +1877,6 @@ export declare const exportJobsContract: {
|
|
|
1877
1877
|
tradeId?: string | null | undefined;
|
|
1878
1878
|
clientId?: string | null | undefined;
|
|
1879
1879
|
companyId?: string | null | undefined;
|
|
1880
|
-
userId?: string | null | undefined;
|
|
1881
1880
|
} | null | undefined;
|
|
1882
1881
|
workerName?: {
|
|
1883
1882
|
value?: string | undefined;
|
|
@@ -1885,6 +1884,7 @@ export declare const exportJobsContract: {
|
|
|
1885
1884
|
} | null | undefined;
|
|
1886
1885
|
agentId?: string | null | undefined;
|
|
1887
1886
|
};
|
|
1887
|
+
entity: "actives";
|
|
1888
1888
|
columns: string[];
|
|
1889
1889
|
sort?: {
|
|
1890
1890
|
field: string;
|
|
@@ -1921,10 +1921,10 @@ export declare const exportJobsContract: {
|
|
|
1921
1921
|
type: z.ZodOptional<z.ZodEnum<["REFUSED_BY_CLIENT", "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY", "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE", "REFUSED_BY_FIRST_JOB_FILLED", "REFUSED_BY_FIRST_IGNORED_DENIED", "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE", "WAITING_FOR_CONFIRMATION", "CONFIRMED"]>>;
|
|
1922
1922
|
}, "strip", z.ZodTypeAny, {
|
|
1923
1923
|
category: "ATTEMPT";
|
|
1924
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
1924
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
1925
1925
|
}, {
|
|
1926
1926
|
category: "ATTEMPT";
|
|
1927
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
1927
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
1928
1928
|
}>, z.ZodObject<{
|
|
1929
1929
|
category: z.ZodLiteral<"FAILED_START">;
|
|
1930
1930
|
type: z.ZodOptional<z.ZodEnum<["DIDNT_START_BECAUSE_OF_WORKER", "DIDNT_START_BECAUSE_OF_US", "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE", "DIDNT_START_BECAUSE_OF_AGENCY", "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS", "DIDNT_START_OVERBOOK_BY_CLIENT", "DIDNT_START_OVERBOOK_BY_US", "ANOTHER_SITUATION"]>>;
|
|
@@ -1978,6 +1978,7 @@ export declare const exportJobsContract: {
|
|
|
1978
1978
|
radius?: number | null | undefined;
|
|
1979
1979
|
}>>>;
|
|
1980
1980
|
}, "strip", z.ZodTypeAny, {
|
|
1981
|
+
userId?: string | null | undefined;
|
|
1981
1982
|
location?: {
|
|
1982
1983
|
postcode?: string | null | undefined;
|
|
1983
1984
|
radius?: number | null | undefined;
|
|
@@ -1985,8 +1986,8 @@ export declare const exportJobsContract: {
|
|
|
1985
1986
|
tradeId?: string | null | undefined;
|
|
1986
1987
|
clientId?: string | null | undefined;
|
|
1987
1988
|
companyId?: string | null | undefined;
|
|
1988
|
-
userId?: string | null | undefined;
|
|
1989
1989
|
}, {
|
|
1990
|
+
userId?: string | null | undefined;
|
|
1990
1991
|
location?: {
|
|
1991
1992
|
postcode?: string | null | undefined;
|
|
1992
1993
|
radius?: number | null | undefined;
|
|
@@ -1994,7 +1995,6 @@ export declare const exportJobsContract: {
|
|
|
1994
1995
|
tradeId?: string | null | undefined;
|
|
1995
1996
|
clientId?: string | null | undefined;
|
|
1996
1997
|
companyId?: string | null | undefined;
|
|
1997
|
-
userId?: string | null | undefined;
|
|
1998
1998
|
}>>>;
|
|
1999
1999
|
agentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2000
2000
|
endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -2031,26 +2031,22 @@ export declare const exportJobsContract: {
|
|
|
2031
2031
|
field: z.ZodEnum<["status", "startDate", "endDate", "workerName", "payRate", "secondAgent", "collaborationCompany", "collaborationClient", "collaborationAgent", "createdAt", "updatedAt"]>;
|
|
2032
2032
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
2033
2033
|
}, "strip", z.ZodTypeAny, {
|
|
2034
|
-
field: "
|
|
2034
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
2035
2035
|
order: "ASC" | "DESC";
|
|
2036
2036
|
}, {
|
|
2037
|
-
field: "
|
|
2037
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
2038
2038
|
order: "ASC" | "DESC";
|
|
2039
2039
|
}>, "many">>>;
|
|
2040
2040
|
}, "strip", z.ZodTypeAny, {
|
|
2041
|
-
page: number;
|
|
2042
2041
|
limit: number;
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
from?: string | null | undefined;
|
|
2049
|
-
to?: string | null | undefined;
|
|
2050
|
-
} | null | undefined;
|
|
2042
|
+
page: number;
|
|
2043
|
+
sort?: {
|
|
2044
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
2045
|
+
order: "ASC" | "DESC";
|
|
2046
|
+
}[] | null | undefined;
|
|
2051
2047
|
status?: {
|
|
2052
2048
|
category: "ATTEMPT";
|
|
2053
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
2049
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
2054
2050
|
} | {
|
|
2055
2051
|
category: "FAILED_START";
|
|
2056
2052
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -2064,19 +2060,24 @@ export declare const exportJobsContract: {
|
|
|
2064
2060
|
category: "CANCELLED";
|
|
2065
2061
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
2066
2062
|
} | null | undefined;
|
|
2063
|
+
createdAt?: {
|
|
2064
|
+
from?: string | null | undefined;
|
|
2065
|
+
to?: string | null | undefined;
|
|
2066
|
+
} | null | undefined;
|
|
2067
|
+
updatedAt?: {
|
|
2068
|
+
from?: string | null | undefined;
|
|
2069
|
+
to?: string | null | undefined;
|
|
2070
|
+
} | null | undefined;
|
|
2067
2071
|
startDate?: {
|
|
2068
2072
|
from?: string | null | undefined;
|
|
2069
2073
|
to?: string | null | undefined;
|
|
2070
2074
|
} | null | undefined;
|
|
2071
|
-
sort?: {
|
|
2072
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
2073
|
-
order: "ASC" | "DESC";
|
|
2074
|
-
}[] | null | undefined;
|
|
2075
2075
|
endDate?: {
|
|
2076
2076
|
from?: string | null | undefined;
|
|
2077
2077
|
to?: string | null | undefined;
|
|
2078
2078
|
} | null | undefined;
|
|
2079
2079
|
job?: {
|
|
2080
|
+
userId?: string | null | undefined;
|
|
2080
2081
|
location?: {
|
|
2081
2082
|
postcode?: string | null | undefined;
|
|
2082
2083
|
radius?: number | null | undefined;
|
|
@@ -2084,7 +2085,6 @@ export declare const exportJobsContract: {
|
|
|
2084
2085
|
tradeId?: string | null | undefined;
|
|
2085
2086
|
clientId?: string | null | undefined;
|
|
2086
2087
|
companyId?: string | null | undefined;
|
|
2087
|
-
userId?: string | null | undefined;
|
|
2088
2088
|
} | null | undefined;
|
|
2089
2089
|
workerName?: {
|
|
2090
2090
|
value?: string | undefined;
|
|
@@ -2092,17 +2092,13 @@ export declare const exportJobsContract: {
|
|
|
2092
2092
|
} | null | undefined;
|
|
2093
2093
|
agentId?: string | null | undefined;
|
|
2094
2094
|
}, {
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
} | null | undefined;
|
|
2099
|
-
createdAt?: {
|
|
2100
|
-
from?: string | null | undefined;
|
|
2101
|
-
to?: string | null | undefined;
|
|
2102
|
-
} | null | undefined;
|
|
2095
|
+
sort?: {
|
|
2096
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
2097
|
+
order: "ASC" | "DESC";
|
|
2098
|
+
}[] | null | undefined;
|
|
2103
2099
|
status?: {
|
|
2104
2100
|
category: "ATTEMPT";
|
|
2105
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
2101
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
2106
2102
|
} | {
|
|
2107
2103
|
category: "FAILED_START";
|
|
2108
2104
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -2116,21 +2112,26 @@ export declare const exportJobsContract: {
|
|
|
2116
2112
|
category: "CANCELLED";
|
|
2117
2113
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
2118
2114
|
} | null | undefined;
|
|
2115
|
+
limit?: number | undefined;
|
|
2116
|
+
page?: number | undefined;
|
|
2117
|
+
createdAt?: {
|
|
2118
|
+
from?: string | null | undefined;
|
|
2119
|
+
to?: string | null | undefined;
|
|
2120
|
+
} | null | undefined;
|
|
2121
|
+
updatedAt?: {
|
|
2122
|
+
from?: string | null | undefined;
|
|
2123
|
+
to?: string | null | undefined;
|
|
2124
|
+
} | null | undefined;
|
|
2119
2125
|
startDate?: {
|
|
2120
2126
|
from?: string | null | undefined;
|
|
2121
2127
|
to?: string | null | undefined;
|
|
2122
2128
|
} | null | undefined;
|
|
2123
|
-
sort?: {
|
|
2124
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
2125
|
-
order: "ASC" | "DESC";
|
|
2126
|
-
}[] | null | undefined;
|
|
2127
|
-
page?: number | undefined;
|
|
2128
|
-
limit?: number | undefined;
|
|
2129
2129
|
endDate?: {
|
|
2130
2130
|
from?: string | null | undefined;
|
|
2131
2131
|
to?: string | null | undefined;
|
|
2132
2132
|
} | null | undefined;
|
|
2133
2133
|
job?: {
|
|
2134
|
+
userId?: string | null | undefined;
|
|
2134
2135
|
location?: {
|
|
2135
2136
|
postcode?: string | null | undefined;
|
|
2136
2137
|
radius?: number | null | undefined;
|
|
@@ -2138,7 +2139,6 @@ export declare const exportJobsContract: {
|
|
|
2138
2139
|
tradeId?: string | null | undefined;
|
|
2139
2140
|
clientId?: string | null | undefined;
|
|
2140
2141
|
companyId?: string | null | undefined;
|
|
2141
|
-
userId?: string | null | undefined;
|
|
2142
2142
|
} | null | undefined;
|
|
2143
2143
|
workerName?: {
|
|
2144
2144
|
value?: string | undefined;
|
|
@@ -2162,21 +2162,16 @@ export declare const exportJobsContract: {
|
|
|
2162
2162
|
field: string;
|
|
2163
2163
|
dir: "ASC" | "DESC";
|
|
2164
2164
|
}[];
|
|
2165
|
-
entity: "bookings";
|
|
2166
2165
|
filter: {
|
|
2167
|
-
page: number;
|
|
2168
2166
|
limit: number;
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
from?: string | null | undefined;
|
|
2175
|
-
to?: string | null | undefined;
|
|
2176
|
-
} | null | undefined;
|
|
2167
|
+
page: number;
|
|
2168
|
+
sort?: {
|
|
2169
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
2170
|
+
order: "ASC" | "DESC";
|
|
2171
|
+
}[] | null | undefined;
|
|
2177
2172
|
status?: {
|
|
2178
2173
|
category: "ATTEMPT";
|
|
2179
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
2174
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
2180
2175
|
} | {
|
|
2181
2176
|
category: "FAILED_START";
|
|
2182
2177
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -2190,19 +2185,24 @@ export declare const exportJobsContract: {
|
|
|
2190
2185
|
category: "CANCELLED";
|
|
2191
2186
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
2192
2187
|
} | null | undefined;
|
|
2188
|
+
createdAt?: {
|
|
2189
|
+
from?: string | null | undefined;
|
|
2190
|
+
to?: string | null | undefined;
|
|
2191
|
+
} | null | undefined;
|
|
2192
|
+
updatedAt?: {
|
|
2193
|
+
from?: string | null | undefined;
|
|
2194
|
+
to?: string | null | undefined;
|
|
2195
|
+
} | null | undefined;
|
|
2193
2196
|
startDate?: {
|
|
2194
2197
|
from?: string | null | undefined;
|
|
2195
2198
|
to?: string | null | undefined;
|
|
2196
2199
|
} | null | undefined;
|
|
2197
|
-
sort?: {
|
|
2198
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
2199
|
-
order: "ASC" | "DESC";
|
|
2200
|
-
}[] | null | undefined;
|
|
2201
2200
|
endDate?: {
|
|
2202
2201
|
from?: string | null | undefined;
|
|
2203
2202
|
to?: string | null | undefined;
|
|
2204
2203
|
} | null | undefined;
|
|
2205
2204
|
job?: {
|
|
2205
|
+
userId?: string | null | undefined;
|
|
2206
2206
|
location?: {
|
|
2207
2207
|
postcode?: string | null | undefined;
|
|
2208
2208
|
radius?: number | null | undefined;
|
|
@@ -2210,7 +2210,6 @@ export declare const exportJobsContract: {
|
|
|
2210
2210
|
tradeId?: string | null | undefined;
|
|
2211
2211
|
clientId?: string | null | undefined;
|
|
2212
2212
|
companyId?: string | null | undefined;
|
|
2213
|
-
userId?: string | null | undefined;
|
|
2214
2213
|
} | null | undefined;
|
|
2215
2214
|
workerName?: {
|
|
2216
2215
|
value?: string | undefined;
|
|
@@ -2218,21 +2217,17 @@ export declare const exportJobsContract: {
|
|
|
2218
2217
|
} | null | undefined;
|
|
2219
2218
|
agentId?: string | null | undefined;
|
|
2220
2219
|
};
|
|
2220
|
+
entity: "bookings";
|
|
2221
2221
|
columns: string[];
|
|
2222
2222
|
}, {
|
|
2223
|
-
entity: "bookings";
|
|
2224
2223
|
filter: {
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
} | null | undefined;
|
|
2229
|
-
createdAt?: {
|
|
2230
|
-
from?: string | null | undefined;
|
|
2231
|
-
to?: string | null | undefined;
|
|
2232
|
-
} | null | undefined;
|
|
2224
|
+
sort?: {
|
|
2225
|
+
field: "status" | "createdAt" | "updatedAt" | "startDate" | "payRate" | "endDate" | "workerName" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "secondAgent";
|
|
2226
|
+
order: "ASC" | "DESC";
|
|
2227
|
+
}[] | null | undefined;
|
|
2233
2228
|
status?: {
|
|
2234
2229
|
category: "ATTEMPT";
|
|
2235
|
-
type?: "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" |
|
|
2230
|
+
type?: "CONFIRMED" | "REFUSED_BY_CLIENT" | "REFUSED_BY_FIRST_BECAUSE_OF_NATIONALITY" | "REFUSED_BY_FIRST_NOT_ENOUGH_EXPERIENCE" | "REFUSED_BY_FIRST_JOB_FILLED" | "REFUSED_BY_FIRST_IGNORED_DENIED" | "REFUSED_BY_FIRST_BECAUSE_OF_DISTANCE" | "WAITING_FOR_CONFIRMATION" | undefined;
|
|
2236
2231
|
} | {
|
|
2237
2232
|
category: "FAILED_START";
|
|
2238
2233
|
type?: "DIDNT_START_BECAUSE_OF_WORKER" | "DIDNT_START_BECAUSE_OF_US" | "DIDNT_START_BECAUSE_OF_CONSTRUCTION_SITE" | "DIDNT_START_BECAUSE_OF_AGENCY" | "DIDNT_START_BECAUSE_OF_TOOLS_REQUIREMENTS" | "DIDNT_START_OVERBOOK_BY_CLIENT" | "DIDNT_START_OVERBOOK_BY_US" | "ANOTHER_SITUATION" | undefined;
|
|
@@ -2246,21 +2241,26 @@ export declare const exportJobsContract: {
|
|
|
2246
2241
|
category: "CANCELLED";
|
|
2247
2242
|
type?: "CANCELLED" | "JOB_CANCELLED" | undefined;
|
|
2248
2243
|
} | null | undefined;
|
|
2244
|
+
limit?: number | undefined;
|
|
2245
|
+
page?: number | undefined;
|
|
2246
|
+
createdAt?: {
|
|
2247
|
+
from?: string | null | undefined;
|
|
2248
|
+
to?: string | null | undefined;
|
|
2249
|
+
} | null | undefined;
|
|
2250
|
+
updatedAt?: {
|
|
2251
|
+
from?: string | null | undefined;
|
|
2252
|
+
to?: string | null | undefined;
|
|
2253
|
+
} | null | undefined;
|
|
2249
2254
|
startDate?: {
|
|
2250
2255
|
from?: string | null | undefined;
|
|
2251
2256
|
to?: string | null | undefined;
|
|
2252
2257
|
} | null | undefined;
|
|
2253
|
-
sort?: {
|
|
2254
|
-
field: "updatedAt" | "createdAt" | "status" | "startDate" | "payRate" | "endDate" | "workerName" | "secondAgent" | "collaborationCompany" | "collaborationClient" | "collaborationAgent";
|
|
2255
|
-
order: "ASC" | "DESC";
|
|
2256
|
-
}[] | null | undefined;
|
|
2257
|
-
page?: number | undefined;
|
|
2258
|
-
limit?: number | undefined;
|
|
2259
2258
|
endDate?: {
|
|
2260
2259
|
from?: string | null | undefined;
|
|
2261
2260
|
to?: string | null | undefined;
|
|
2262
2261
|
} | null | undefined;
|
|
2263
2262
|
job?: {
|
|
2263
|
+
userId?: string | null | undefined;
|
|
2264
2264
|
location?: {
|
|
2265
2265
|
postcode?: string | null | undefined;
|
|
2266
2266
|
radius?: number | null | undefined;
|
|
@@ -2268,7 +2268,6 @@ export declare const exportJobsContract: {
|
|
|
2268
2268
|
tradeId?: string | null | undefined;
|
|
2269
2269
|
clientId?: string | null | undefined;
|
|
2270
2270
|
companyId?: string | null | undefined;
|
|
2271
|
-
userId?: string | null | undefined;
|
|
2272
2271
|
} | null | undefined;
|
|
2273
2272
|
workerName?: {
|
|
2274
2273
|
value?: string | undefined;
|
|
@@ -2276,6 +2275,7 @@ export declare const exportJobsContract: {
|
|
|
2276
2275
|
} | null | undefined;
|
|
2277
2276
|
agentId?: string | null | undefined;
|
|
2278
2277
|
};
|
|
2278
|
+
entity: "bookings";
|
|
2279
2279
|
columns: string[];
|
|
2280
2280
|
sort?: {
|
|
2281
2281
|
field: string;
|
|
@@ -2324,17 +2324,18 @@ export declare const exportJobsContract: {
|
|
|
2324
2324
|
order: "ASC" | "DESC";
|
|
2325
2325
|
}>, "many">>>;
|
|
2326
2326
|
}, "strip", z.ZodTypeAny, {
|
|
2327
|
-
page: number;
|
|
2328
2327
|
limit: number;
|
|
2328
|
+
page: number;
|
|
2329
|
+
sort?: {
|
|
2330
|
+
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
2331
|
+
order: "ASC" | "DESC";
|
|
2332
|
+
}[] | null | undefined;
|
|
2333
|
+
phoneNumber?: string | undefined;
|
|
2329
2334
|
createdAt?: {
|
|
2330
2335
|
from?: string | null | undefined;
|
|
2331
2336
|
to?: string | null | undefined;
|
|
2332
2337
|
} | null | undefined;
|
|
2333
2338
|
companyId?: string | undefined;
|
|
2334
|
-
sort?: {
|
|
2335
|
-
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
2336
|
-
order: "ASC" | "DESC";
|
|
2337
|
-
}[] | null | undefined;
|
|
2338
2339
|
agentId?: string | undefined;
|
|
2339
2340
|
rating?: {
|
|
2340
2341
|
from?: import("../common/call-rating.schema").CallRating | null | undefined;
|
|
@@ -2343,19 +2344,19 @@ export declare const exportJobsContract: {
|
|
|
2343
2344
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
2344
2345
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
2345
2346
|
leadName?: string | undefined;
|
|
2346
|
-
phoneNumber?: string | undefined;
|
|
2347
2347
|
}, {
|
|
2348
|
-
createdAt?: {
|
|
2349
|
-
from?: string | null | undefined;
|
|
2350
|
-
to?: string | null | undefined;
|
|
2351
|
-
} | null | undefined;
|
|
2352
|
-
companyId?: string | undefined;
|
|
2353
2348
|
sort?: {
|
|
2354
2349
|
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
2355
2350
|
order: "ASC" | "DESC";
|
|
2356
2351
|
}[] | null | undefined;
|
|
2357
|
-
|
|
2352
|
+
phoneNumber?: string | undefined;
|
|
2358
2353
|
limit?: number | undefined;
|
|
2354
|
+
page?: number | undefined;
|
|
2355
|
+
createdAt?: {
|
|
2356
|
+
from?: string | null | undefined;
|
|
2357
|
+
to?: string | null | undefined;
|
|
2358
|
+
} | null | undefined;
|
|
2359
|
+
companyId?: string | undefined;
|
|
2359
2360
|
agentId?: string | undefined;
|
|
2360
2361
|
rating?: {
|
|
2361
2362
|
from?: unknown;
|
|
@@ -2364,7 +2365,6 @@ export declare const exportJobsContract: {
|
|
|
2364
2365
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
2365
2366
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
2366
2367
|
leadName?: string | undefined;
|
|
2367
|
-
phoneNumber?: string | undefined;
|
|
2368
2368
|
}>;
|
|
2369
2369
|
sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2370
2370
|
field: z.ZodString;
|
|
@@ -2382,19 +2382,19 @@ export declare const exportJobsContract: {
|
|
|
2382
2382
|
field: string;
|
|
2383
2383
|
dir: "ASC" | "DESC";
|
|
2384
2384
|
}[];
|
|
2385
|
-
entity: "call-history";
|
|
2386
2385
|
filter: {
|
|
2387
|
-
page: number;
|
|
2388
2386
|
limit: number;
|
|
2387
|
+
page: number;
|
|
2388
|
+
sort?: {
|
|
2389
|
+
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
2390
|
+
order: "ASC" | "DESC";
|
|
2391
|
+
}[] | null | undefined;
|
|
2392
|
+
phoneNumber?: string | undefined;
|
|
2389
2393
|
createdAt?: {
|
|
2390
2394
|
from?: string | null | undefined;
|
|
2391
2395
|
to?: string | null | undefined;
|
|
2392
2396
|
} | null | undefined;
|
|
2393
2397
|
companyId?: string | undefined;
|
|
2394
|
-
sort?: {
|
|
2395
|
-
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
2396
|
-
order: "ASC" | "DESC";
|
|
2397
|
-
}[] | null | undefined;
|
|
2398
2398
|
agentId?: string | undefined;
|
|
2399
2399
|
rating?: {
|
|
2400
2400
|
from?: import("../common/call-rating.schema").CallRating | null | undefined;
|
|
@@ -2403,23 +2403,23 @@ export declare const exportJobsContract: {
|
|
|
2403
2403
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
2404
2404
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
2405
2405
|
leadName?: string | undefined;
|
|
2406
|
-
phoneNumber?: string | undefined;
|
|
2407
2406
|
};
|
|
2407
|
+
entity: "call-history";
|
|
2408
2408
|
columns: string[];
|
|
2409
2409
|
}, {
|
|
2410
|
-
entity: "call-history";
|
|
2411
2410
|
filter: {
|
|
2412
|
-
createdAt?: {
|
|
2413
|
-
from?: string | null | undefined;
|
|
2414
|
-
to?: string | null | undefined;
|
|
2415
|
-
} | null | undefined;
|
|
2416
|
-
companyId?: string | undefined;
|
|
2417
2411
|
sort?: {
|
|
2418
2412
|
field: import("../call-history/call-history.contract").CallHistorySortableFields;
|
|
2419
2413
|
order: "ASC" | "DESC";
|
|
2420
2414
|
}[] | null | undefined;
|
|
2421
|
-
|
|
2415
|
+
phoneNumber?: string | undefined;
|
|
2422
2416
|
limit?: number | undefined;
|
|
2417
|
+
page?: number | undefined;
|
|
2418
|
+
createdAt?: {
|
|
2419
|
+
from?: string | null | undefined;
|
|
2420
|
+
to?: string | null | undefined;
|
|
2421
|
+
} | null | undefined;
|
|
2422
|
+
companyId?: string | undefined;
|
|
2423
2423
|
agentId?: string | undefined;
|
|
2424
2424
|
rating?: {
|
|
2425
2425
|
from?: unknown;
|
|
@@ -2428,8 +2428,8 @@ export declare const exportJobsContract: {
|
|
|
2428
2428
|
callType?: import("../call-history/call-history.contract").CallType | undefined;
|
|
2429
2429
|
leadSource?: import("../call-history/call-history.contract").LeadSource | undefined;
|
|
2430
2430
|
leadName?: string | undefined;
|
|
2431
|
-
phoneNumber?: string | undefined;
|
|
2432
2431
|
};
|
|
2432
|
+
entity: "call-history";
|
|
2433
2433
|
columns: string[];
|
|
2434
2434
|
sort?: {
|
|
2435
2435
|
field: string;
|
|
@@ -2503,24 +2503,30 @@ export declare const exportJobsContract: {
|
|
|
2503
2503
|
field: z.ZodEnum<["description", "numberOfPositions", "status", "tradeId", "collaborationCompany", "collaborationClient", "collaborationAgent", "distance", "postcode", "payRate", "receivedRate", "workHours", "qualificationsCount", "creationSource", "createdAt", "updatedAt", "startDate"]>;
|
|
2504
2504
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
2505
2505
|
}, "strip", z.ZodTypeAny, {
|
|
2506
|
-
field: "
|
|
2506
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2507
2507
|
order: "ASC" | "DESC";
|
|
2508
2508
|
}, {
|
|
2509
|
-
field: "
|
|
2509
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2510
2510
|
order: "ASC" | "DESC";
|
|
2511
2511
|
}>, "many">>>;
|
|
2512
2512
|
}, "strip", z.ZodTypeAny, {
|
|
2513
|
-
page: number;
|
|
2514
2513
|
limit: number;
|
|
2515
|
-
|
|
2514
|
+
page: number;
|
|
2515
|
+
sort?: {
|
|
2516
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2517
|
+
order: "ASC" | "DESC";
|
|
2518
|
+
}[] | null | undefined;
|
|
2519
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2520
|
+
description?: string | null | undefined;
|
|
2521
|
+
createdAt?: {
|
|
2516
2522
|
from?: string | null | undefined;
|
|
2517
2523
|
to?: string | null | undefined;
|
|
2518
2524
|
} | null | undefined;
|
|
2519
|
-
|
|
2525
|
+
updatedAt?: {
|
|
2520
2526
|
from?: string | null | undefined;
|
|
2521
2527
|
to?: string | null | undefined;
|
|
2522
2528
|
} | null | undefined;
|
|
2523
|
-
|
|
2529
|
+
userId?: string | null | undefined;
|
|
2524
2530
|
location?: {
|
|
2525
2531
|
postcode?: string | null | undefined;
|
|
2526
2532
|
radius?: number | null | undefined;
|
|
@@ -2529,7 +2535,6 @@ export declare const exportJobsContract: {
|
|
|
2529
2535
|
minRate?: number | null | undefined;
|
|
2530
2536
|
maxRate?: number | null | undefined;
|
|
2531
2537
|
} | null | undefined;
|
|
2532
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2533
2538
|
tradeId?: string | null | undefined;
|
|
2534
2539
|
qualificationFilters?: {
|
|
2535
2540
|
qualificationId?: string | undefined;
|
|
@@ -2538,22 +2543,25 @@ export declare const exportJobsContract: {
|
|
|
2538
2543
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
2539
2544
|
clientId?: string | null | undefined;
|
|
2540
2545
|
companyId?: string | null | undefined;
|
|
2546
|
+
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
2547
|
+
}, {
|
|
2541
2548
|
sort?: {
|
|
2542
|
-
field: "
|
|
2549
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2543
2550
|
order: "ASC" | "DESC";
|
|
2544
2551
|
}[] | null | undefined;
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2552
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2553
|
+
description?: string | null | undefined;
|
|
2554
|
+
limit?: number | undefined;
|
|
2555
|
+
page?: number | undefined;
|
|
2556
|
+
createdAt?: {
|
|
2549
2557
|
from?: string | null | undefined;
|
|
2550
2558
|
to?: string | null | undefined;
|
|
2551
2559
|
} | null | undefined;
|
|
2552
|
-
|
|
2560
|
+
updatedAt?: {
|
|
2553
2561
|
from?: string | null | undefined;
|
|
2554
2562
|
to?: string | null | undefined;
|
|
2555
2563
|
} | null | undefined;
|
|
2556
|
-
|
|
2564
|
+
userId?: string | null | undefined;
|
|
2557
2565
|
location?: {
|
|
2558
2566
|
postcode?: string | null | undefined;
|
|
2559
2567
|
radius?: number | null | undefined;
|
|
@@ -2562,7 +2570,6 @@ export declare const exportJobsContract: {
|
|
|
2562
2570
|
minRate?: number | null | undefined;
|
|
2563
2571
|
maxRate?: number | null | undefined;
|
|
2564
2572
|
} | null | undefined;
|
|
2565
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2566
2573
|
tradeId?: string | null | undefined;
|
|
2567
2574
|
qualificationFilters?: {
|
|
2568
2575
|
qualificationId?: string | undefined;
|
|
@@ -2571,13 +2578,6 @@ export declare const exportJobsContract: {
|
|
|
2571
2578
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
2572
2579
|
clientId?: string | null | undefined;
|
|
2573
2580
|
companyId?: string | null | undefined;
|
|
2574
|
-
sort?: {
|
|
2575
|
-
field: "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "status" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2576
|
-
order: "ASC" | "DESC";
|
|
2577
|
-
}[] | null | undefined;
|
|
2578
|
-
page?: number | undefined;
|
|
2579
|
-
limit?: number | undefined;
|
|
2580
|
-
userId?: string | null | undefined;
|
|
2581
2581
|
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
2582
2582
|
}>;
|
|
2583
2583
|
sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -2596,19 +2596,24 @@ export declare const exportJobsContract: {
|
|
|
2596
2596
|
field: string;
|
|
2597
2597
|
dir: "ASC" | "DESC";
|
|
2598
2598
|
}[];
|
|
2599
|
-
entity: "jobs";
|
|
2600
2599
|
filter: {
|
|
2601
|
-
page: number;
|
|
2602
2600
|
limit: number;
|
|
2603
|
-
|
|
2601
|
+
page: number;
|
|
2602
|
+
sort?: {
|
|
2603
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2604
|
+
order: "ASC" | "DESC";
|
|
2605
|
+
}[] | null | undefined;
|
|
2606
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2607
|
+
description?: string | null | undefined;
|
|
2608
|
+
createdAt?: {
|
|
2604
2609
|
from?: string | null | undefined;
|
|
2605
2610
|
to?: string | null | undefined;
|
|
2606
2611
|
} | null | undefined;
|
|
2607
|
-
|
|
2612
|
+
updatedAt?: {
|
|
2608
2613
|
from?: string | null | undefined;
|
|
2609
2614
|
to?: string | null | undefined;
|
|
2610
2615
|
} | null | undefined;
|
|
2611
|
-
|
|
2616
|
+
userId?: string | null | undefined;
|
|
2612
2617
|
location?: {
|
|
2613
2618
|
postcode?: string | null | undefined;
|
|
2614
2619
|
radius?: number | null | undefined;
|
|
@@ -2617,7 +2622,6 @@ export declare const exportJobsContract: {
|
|
|
2617
2622
|
minRate?: number | null | undefined;
|
|
2618
2623
|
maxRate?: number | null | undefined;
|
|
2619
2624
|
} | null | undefined;
|
|
2620
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2621
2625
|
tradeId?: string | null | undefined;
|
|
2622
2626
|
qualificationFilters?: {
|
|
2623
2627
|
qualificationId?: string | undefined;
|
|
@@ -2626,26 +2630,29 @@ export declare const exportJobsContract: {
|
|
|
2626
2630
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
2627
2631
|
clientId?: string | null | undefined;
|
|
2628
2632
|
companyId?: string | null | undefined;
|
|
2629
|
-
sort?: {
|
|
2630
|
-
field: "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "status" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2631
|
-
order: "ASC" | "DESC";
|
|
2632
|
-
}[] | null | undefined;
|
|
2633
|
-
userId?: string | null | undefined;
|
|
2634
2633
|
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
2635
2634
|
};
|
|
2635
|
+
entity: "jobs";
|
|
2636
2636
|
columns: string[];
|
|
2637
2637
|
}, {
|
|
2638
|
-
entity: "jobs";
|
|
2639
2638
|
filter: {
|
|
2640
|
-
|
|
2639
|
+
sort?: {
|
|
2640
|
+
field: "status" | "description" | "postcode" | "createdAt" | "updatedAt" | "numberOfPositions" | "workHours" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2641
|
+
order: "ASC" | "DESC";
|
|
2642
|
+
}[] | null | undefined;
|
|
2643
|
+
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2644
|
+
description?: string | null | undefined;
|
|
2645
|
+
limit?: number | undefined;
|
|
2646
|
+
page?: number | undefined;
|
|
2647
|
+
createdAt?: {
|
|
2641
2648
|
from?: string | null | undefined;
|
|
2642
2649
|
to?: string | null | undefined;
|
|
2643
2650
|
} | null | undefined;
|
|
2644
|
-
|
|
2651
|
+
updatedAt?: {
|
|
2645
2652
|
from?: string | null | undefined;
|
|
2646
2653
|
to?: string | null | undefined;
|
|
2647
2654
|
} | null | undefined;
|
|
2648
|
-
|
|
2655
|
+
userId?: string | null | undefined;
|
|
2649
2656
|
location?: {
|
|
2650
2657
|
postcode?: string | null | undefined;
|
|
2651
2658
|
radius?: number | null | undefined;
|
|
@@ -2654,7 +2661,6 @@ export declare const exportJobsContract: {
|
|
|
2654
2661
|
minRate?: number | null | undefined;
|
|
2655
2662
|
maxRate?: number | null | undefined;
|
|
2656
2663
|
} | null | undefined;
|
|
2657
|
-
status?: "AVAILABLE" | "NOT_AVAILABLE" | null | undefined;
|
|
2658
2664
|
tradeId?: string | null | undefined;
|
|
2659
2665
|
qualificationFilters?: {
|
|
2660
2666
|
qualificationId?: string | undefined;
|
|
@@ -2663,15 +2669,9 @@ export declare const exportJobsContract: {
|
|
|
2663
2669
|
outreachRequested?: "only_with" | "only_without" | null | undefined;
|
|
2664
2670
|
clientId?: string | null | undefined;
|
|
2665
2671
|
companyId?: string | null | undefined;
|
|
2666
|
-
sort?: {
|
|
2667
|
-
field: "updatedAt" | "createdAt" | "postcode" | "description" | "numberOfPositions" | "workHours" | "status" | "tradeId" | "startDate" | "distance" | "payRate" | "receivedRate" | "qualificationsCount" | "collaborationCompany" | "collaborationClient" | "collaborationAgent" | "creationSource";
|
|
2668
|
-
order: "ASC" | "DESC";
|
|
2669
|
-
}[] | null | undefined;
|
|
2670
|
-
page?: number | undefined;
|
|
2671
|
-
limit?: number | undefined;
|
|
2672
|
-
userId?: string | null | undefined;
|
|
2673
2672
|
creationSource?: "BOT" | "MANUAL" | null | undefined;
|
|
2674
2673
|
};
|
|
2674
|
+
entity: "jobs";
|
|
2675
2675
|
columns: string[];
|
|
2676
2676
|
sort?: {
|
|
2677
2677
|
field: string;
|
|
@@ -2687,13 +2687,13 @@ export declare const exportJobsContract: {
|
|
|
2687
2687
|
email: z.ZodOptional<z.ZodString>;
|
|
2688
2688
|
phone: z.ZodOptional<z.ZodString>;
|
|
2689
2689
|
roles: z.ZodOptional<z.ZodObject<{
|
|
2690
|
-
values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION"]>, "many">>;
|
|
2690
|
+
values: z.ZodOptional<z.ZodArray<z.ZodEnum<["ADMIN", "SECOND_AGENT", "FIRST_AGENT", "COMPANY_CHECKING", "KPI", "TEAM_LEADS", "OFFICE_MANAGER", "WORKER_CURATOR", "INTERCONNECTION", "OUTREACH"]>, "many">>;
|
|
2691
2691
|
requireAll: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
2692
2692
|
}, "strip", z.ZodTypeAny, {
|
|
2693
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2693
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2694
2694
|
requireAll?: boolean | undefined;
|
|
2695
2695
|
}, {
|
|
2696
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2696
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2697
2697
|
requireAll?: unknown;
|
|
2698
2698
|
}>>;
|
|
2699
2699
|
officeId: z.ZodOptional<z.ZodString>;
|
|
@@ -2722,60 +2722,60 @@ export declare const exportJobsContract: {
|
|
|
2722
2722
|
field: z.ZodEnum<["lastName", "firstName", "email", "createdAt", "office"]>;
|
|
2723
2723
|
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
2724
2724
|
}, "strip", z.ZodTypeAny, {
|
|
2725
|
-
field: "
|
|
2725
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
2726
2726
|
order: "ASC" | "DESC";
|
|
2727
2727
|
}, {
|
|
2728
|
-
field: "
|
|
2728
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
2729
2729
|
order: "ASC" | "DESC";
|
|
2730
2730
|
}>, "many">>>;
|
|
2731
2731
|
}, "strip", z.ZodTypeAny, {
|
|
2732
|
-
page: number;
|
|
2733
2732
|
limit: number;
|
|
2733
|
+
page: number;
|
|
2734
|
+
sort?: {
|
|
2735
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
2736
|
+
order: "ASC" | "DESC";
|
|
2737
|
+
}[] | null | undefined;
|
|
2738
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2734
2739
|
name?: string | undefined;
|
|
2735
|
-
|
|
2736
|
-
from?: string | null | undefined;
|
|
2737
|
-
to?: string | null | undefined;
|
|
2738
|
-
} | null | undefined;
|
|
2740
|
+
email?: string | undefined;
|
|
2739
2741
|
createdAt?: {
|
|
2740
2742
|
from?: string | null | undefined;
|
|
2741
2743
|
to?: string | null | undefined;
|
|
2742
2744
|
} | null | undefined;
|
|
2743
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2744
|
-
sort?: {
|
|
2745
|
-
field: "createdAt" | "email" | "lastName" | "firstName" | "office";
|
|
2746
|
-
order: "ASC" | "DESC";
|
|
2747
|
-
}[] | null | undefined;
|
|
2748
|
-
phone?: string | undefined;
|
|
2749
|
-
email?: string | undefined;
|
|
2750
2745
|
roles?: {
|
|
2751
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2746
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2752
2747
|
requireAll?: boolean | undefined;
|
|
2753
2748
|
} | undefined;
|
|
2754
2749
|
officeId?: string | undefined;
|
|
2755
|
-
}, {
|
|
2756
|
-
name?: string | undefined;
|
|
2757
2750
|
updatedAt?: {
|
|
2758
2751
|
from?: string | null | undefined;
|
|
2759
2752
|
to?: string | null | undefined;
|
|
2760
2753
|
} | null | undefined;
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
to?: string | null | undefined;
|
|
2764
|
-
} | null | undefined;
|
|
2765
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2754
|
+
phone?: string | undefined;
|
|
2755
|
+
}, {
|
|
2766
2756
|
sort?: {
|
|
2767
|
-
field: "
|
|
2757
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
2768
2758
|
order: "ASC" | "DESC";
|
|
2769
2759
|
}[] | null | undefined;
|
|
2770
|
-
|
|
2760
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2761
|
+
name?: string | undefined;
|
|
2771
2762
|
limit?: number | undefined;
|
|
2772
|
-
|
|
2763
|
+
page?: number | undefined;
|
|
2773
2764
|
email?: string | undefined;
|
|
2765
|
+
createdAt?: {
|
|
2766
|
+
from?: string | null | undefined;
|
|
2767
|
+
to?: string | null | undefined;
|
|
2768
|
+
} | null | undefined;
|
|
2774
2769
|
roles?: {
|
|
2775
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2770
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2776
2771
|
requireAll?: unknown;
|
|
2777
2772
|
} | undefined;
|
|
2778
2773
|
officeId?: string | undefined;
|
|
2774
|
+
updatedAt?: {
|
|
2775
|
+
from?: string | null | undefined;
|
|
2776
|
+
to?: string | null | undefined;
|
|
2777
|
+
} | null | undefined;
|
|
2778
|
+
phone?: string | undefined;
|
|
2779
2779
|
}>;
|
|
2780
2780
|
sort: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2781
2781
|
field: z.ZodString;
|
|
@@ -2793,60 +2793,60 @@ export declare const exportJobsContract: {
|
|
|
2793
2793
|
field: string;
|
|
2794
2794
|
dir: "ASC" | "DESC";
|
|
2795
2795
|
}[];
|
|
2796
|
-
entity: "users";
|
|
2797
2796
|
filter: {
|
|
2798
|
-
page: number;
|
|
2799
2797
|
limit: number;
|
|
2798
|
+
page: number;
|
|
2799
|
+
sort?: {
|
|
2800
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
2801
|
+
order: "ASC" | "DESC";
|
|
2802
|
+
}[] | null | undefined;
|
|
2803
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2800
2804
|
name?: string | undefined;
|
|
2801
|
-
|
|
2802
|
-
from?: string | null | undefined;
|
|
2803
|
-
to?: string | null | undefined;
|
|
2804
|
-
} | null | undefined;
|
|
2805
|
+
email?: string | undefined;
|
|
2805
2806
|
createdAt?: {
|
|
2806
2807
|
from?: string | null | undefined;
|
|
2807
2808
|
to?: string | null | undefined;
|
|
2808
2809
|
} | null | undefined;
|
|
2809
|
-
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2810
|
-
sort?: {
|
|
2811
|
-
field: "createdAt" | "email" | "lastName" | "firstName" | "office";
|
|
2812
|
-
order: "ASC" | "DESC";
|
|
2813
|
-
}[] | null | undefined;
|
|
2814
|
-
phone?: string | undefined;
|
|
2815
|
-
email?: string | undefined;
|
|
2816
2810
|
roles?: {
|
|
2817
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2811
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2818
2812
|
requireAll?: boolean | undefined;
|
|
2819
2813
|
} | undefined;
|
|
2820
2814
|
officeId?: string | undefined;
|
|
2821
|
-
};
|
|
2822
|
-
columns: string[];
|
|
2823
|
-
}, {
|
|
2824
|
-
entity: "users";
|
|
2825
|
-
filter: {
|
|
2826
|
-
name?: string | undefined;
|
|
2827
2815
|
updatedAt?: {
|
|
2828
2816
|
from?: string | null | undefined;
|
|
2829
2817
|
to?: string | null | undefined;
|
|
2830
2818
|
} | null | undefined;
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2819
|
+
phone?: string | undefined;
|
|
2820
|
+
};
|
|
2821
|
+
entity: "users";
|
|
2822
|
+
columns: string[];
|
|
2823
|
+
}, {
|
|
2824
|
+
filter: {
|
|
2836
2825
|
sort?: {
|
|
2837
|
-
field: "
|
|
2826
|
+
field: "firstName" | "lastName" | "email" | "createdAt" | "office";
|
|
2838
2827
|
order: "ASC" | "DESC";
|
|
2839
2828
|
}[] | null | undefined;
|
|
2840
|
-
|
|
2829
|
+
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2830
|
+
name?: string | undefined;
|
|
2841
2831
|
limit?: number | undefined;
|
|
2842
|
-
|
|
2832
|
+
page?: number | undefined;
|
|
2843
2833
|
email?: string | undefined;
|
|
2834
|
+
createdAt?: {
|
|
2835
|
+
from?: string | null | undefined;
|
|
2836
|
+
to?: string | null | undefined;
|
|
2837
|
+
} | null | undefined;
|
|
2844
2838
|
roles?: {
|
|
2845
|
-
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION")[] | undefined;
|
|
2839
|
+
values?: ("ADMIN" | "SECOND_AGENT" | "FIRST_AGENT" | "COMPANY_CHECKING" | "KPI" | "TEAM_LEADS" | "OFFICE_MANAGER" | "WORKER_CURATOR" | "INTERCONNECTION" | "OUTREACH")[] | undefined;
|
|
2846
2840
|
requireAll?: unknown;
|
|
2847
2841
|
} | undefined;
|
|
2848
2842
|
officeId?: string | undefined;
|
|
2843
|
+
updatedAt?: {
|
|
2844
|
+
from?: string | null | undefined;
|
|
2845
|
+
to?: string | null | undefined;
|
|
2846
|
+
} | null | undefined;
|
|
2847
|
+
phone?: string | undefined;
|
|
2849
2848
|
};
|
|
2849
|
+
entity: "users";
|
|
2850
2850
|
columns: string[];
|
|
2851
2851
|
sort?: {
|
|
2852
2852
|
field: string;
|
|
@@ -2881,8 +2881,8 @@ export declare const exportJobsContract: {
|
|
|
2881
2881
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
2882
2882
|
}, "strip", z.ZodTypeAny, {
|
|
2883
2883
|
id: string;
|
|
2884
|
-
lastName: string;
|
|
2885
2884
|
firstName: string;
|
|
2885
|
+
lastName: string;
|
|
2886
2886
|
phoneNumbers: {
|
|
2887
2887
|
id: string;
|
|
2888
2888
|
phoneNumber: string;
|
|
@@ -2892,8 +2892,8 @@ export declare const exportJobsContract: {
|
|
|
2892
2892
|
deletedAt?: string | null | undefined;
|
|
2893
2893
|
}, {
|
|
2894
2894
|
id: string;
|
|
2895
|
-
lastName: string;
|
|
2896
2895
|
firstName: string;
|
|
2896
|
+
lastName: string;
|
|
2897
2897
|
phoneNumbers?: {
|
|
2898
2898
|
id: string;
|
|
2899
2899
|
phoneNumber: string;
|
|
@@ -2926,17 +2926,20 @@ export declare const exportJobsContract: {
|
|
|
2926
2926
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
2927
2927
|
expiresAt: z.ZodString;
|
|
2928
2928
|
}, "strip", z.ZodTypeAny, {
|
|
2929
|
-
id: string;
|
|
2930
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
2931
2929
|
sort: {
|
|
2932
2930
|
field: string;
|
|
2933
2931
|
dir: "ASC" | "DESC";
|
|
2934
2932
|
}[];
|
|
2933
|
+
filter: Record<string, unknown>;
|
|
2934
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
2935
|
+
id: string;
|
|
2936
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
2935
2937
|
userId: string;
|
|
2938
|
+
requestedAt: string;
|
|
2936
2939
|
user: {
|
|
2937
2940
|
id: string;
|
|
2938
|
-
lastName: string;
|
|
2939
2941
|
firstName: string;
|
|
2942
|
+
lastName: string;
|
|
2940
2943
|
phoneNumbers: {
|
|
2941
2944
|
id: string;
|
|
2942
2945
|
phoneNumber: string;
|
|
@@ -2945,26 +2948,26 @@ export declare const exportJobsContract: {
|
|
|
2945
2948
|
}[];
|
|
2946
2949
|
deletedAt?: string | null | undefined;
|
|
2947
2950
|
} | null;
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
+
expiresAt: string;
|
|
2952
|
+
totalRows: number | null;
|
|
2953
|
+
errorMessage: string | null;
|
|
2954
|
+
completedAt: string | null;
|
|
2955
|
+
startedAt: string | null;
|
|
2951
2956
|
columns: string[];
|
|
2952
2957
|
rowsProcessed: number;
|
|
2953
2958
|
rowsSkipped: number;
|
|
2954
|
-
totalRows: number | null;
|
|
2955
2959
|
byteSize: number | null;
|
|
2956
|
-
errorMessage: string | null;
|
|
2957
|
-
startedAt: string | null;
|
|
2958
|
-
completedAt: string | null;
|
|
2959
|
-
expiresAt: string;
|
|
2960
2960
|
}, {
|
|
2961
|
+
filter: Record<string, unknown>;
|
|
2962
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
2961
2963
|
id: string;
|
|
2962
|
-
|
|
2964
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
2963
2965
|
userId: string;
|
|
2966
|
+
requestedAt: string;
|
|
2964
2967
|
user: {
|
|
2965
2968
|
id: string;
|
|
2966
|
-
lastName: string;
|
|
2967
2969
|
firstName: string;
|
|
2970
|
+
lastName: string;
|
|
2968
2971
|
phoneNumbers?: {
|
|
2969
2972
|
id: string;
|
|
2970
2973
|
phoneNumber: string;
|
|
@@ -2973,18 +2976,15 @@ export declare const exportJobsContract: {
|
|
|
2973
2976
|
}[] | undefined;
|
|
2974
2977
|
deletedAt?: string | Date | null | undefined;
|
|
2975
2978
|
} | null;
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
+
expiresAt: string;
|
|
2980
|
+
totalRows: number | null;
|
|
2981
|
+
errorMessage: string | null;
|
|
2982
|
+
completedAt: string | null;
|
|
2983
|
+
startedAt: string | null;
|
|
2979
2984
|
columns: string[];
|
|
2980
2985
|
rowsProcessed: number;
|
|
2981
2986
|
rowsSkipped: number;
|
|
2982
|
-
totalRows: number | null;
|
|
2983
2987
|
byteSize: number | null;
|
|
2984
|
-
errorMessage: string | null;
|
|
2985
|
-
startedAt: string | null;
|
|
2986
|
-
completedAt: string | null;
|
|
2987
|
-
expiresAt: string;
|
|
2988
2988
|
sort?: {
|
|
2989
2989
|
field: string;
|
|
2990
2990
|
dir: "ASC" | "DESC";
|
|
@@ -3035,29 +3035,29 @@ export declare const exportJobsContract: {
|
|
|
3035
3035
|
order: "ASC" | "DESC";
|
|
3036
3036
|
}>, "many">>>;
|
|
3037
3037
|
}, "strip", z.ZodTypeAny, {
|
|
3038
|
-
page: number;
|
|
3039
3038
|
limit: number;
|
|
3040
|
-
|
|
3039
|
+
page: number;
|
|
3041
3040
|
sort?: {
|
|
3042
3041
|
field: "status" | "entity" | "requestedAt" | "completedAt";
|
|
3043
3042
|
order: "ASC" | "DESC";
|
|
3044
3043
|
}[] | null | undefined;
|
|
3044
|
+
status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
|
|
3045
|
+
entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
|
|
3045
3046
|
userId?: string | undefined;
|
|
3046
|
-
entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
|
|
3047
3047
|
requestedAt?: {
|
|
3048
3048
|
from?: string | null | undefined;
|
|
3049
3049
|
to?: string | null | undefined;
|
|
3050
3050
|
} | null | undefined;
|
|
3051
3051
|
}, {
|
|
3052
|
-
status?: "pending" | "processing" | "completed" | "failed" | "cancelled" | undefined;
|
|
3053
3052
|
sort?: {
|
|
3054
3053
|
field: "status" | "entity" | "requestedAt" | "completedAt";
|
|
3055
3054
|
order: "ASC" | "DESC";
|
|
3056
3055
|
}[] | null | undefined;
|
|
3057
|
-
|
|
3056
|
+
status?: "completed" | "cancelled" | "failed" | "pending" | "processing" | undefined;
|
|
3058
3057
|
limit?: number | undefined;
|
|
3058
|
+
page?: number | undefined;
|
|
3059
|
+
entity?: "jobs" | "bookings" | "actives" | "call-history" | "users" | undefined;
|
|
3059
3060
|
userId?: string | undefined;
|
|
3060
|
-
entity?: "actives" | "bookings" | "call-history" | "jobs" | "users" | undefined;
|
|
3061
3061
|
requestedAt?: {
|
|
3062
3062
|
from?: string | null | undefined;
|
|
3063
3063
|
to?: string | null | undefined;
|
|
@@ -3094,8 +3094,8 @@ export declare const exportJobsContract: {
|
|
|
3094
3094
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3095
3095
|
}, "strip", z.ZodTypeAny, {
|
|
3096
3096
|
id: string;
|
|
3097
|
-
lastName: string;
|
|
3098
3097
|
firstName: string;
|
|
3098
|
+
lastName: string;
|
|
3099
3099
|
phoneNumbers: {
|
|
3100
3100
|
id: string;
|
|
3101
3101
|
phoneNumber: string;
|
|
@@ -3105,8 +3105,8 @@ export declare const exportJobsContract: {
|
|
|
3105
3105
|
deletedAt?: string | null | undefined;
|
|
3106
3106
|
}, {
|
|
3107
3107
|
id: string;
|
|
3108
|
-
lastName: string;
|
|
3109
3108
|
firstName: string;
|
|
3109
|
+
lastName: string;
|
|
3110
3110
|
phoneNumbers?: {
|
|
3111
3111
|
id: string;
|
|
3112
3112
|
phoneNumber: string;
|
|
@@ -3139,17 +3139,20 @@ export declare const exportJobsContract: {
|
|
|
3139
3139
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
3140
3140
|
expiresAt: z.ZodString;
|
|
3141
3141
|
}, "strip", z.ZodTypeAny, {
|
|
3142
|
-
id: string;
|
|
3143
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
3144
3142
|
sort: {
|
|
3145
3143
|
field: string;
|
|
3146
3144
|
dir: "ASC" | "DESC";
|
|
3147
3145
|
}[];
|
|
3146
|
+
filter: Record<string, unknown>;
|
|
3147
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3148
|
+
id: string;
|
|
3149
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3148
3150
|
userId: string;
|
|
3151
|
+
requestedAt: string;
|
|
3149
3152
|
user: {
|
|
3150
3153
|
id: string;
|
|
3151
|
-
lastName: string;
|
|
3152
3154
|
firstName: string;
|
|
3155
|
+
lastName: string;
|
|
3153
3156
|
phoneNumbers: {
|
|
3154
3157
|
id: string;
|
|
3155
3158
|
phoneNumber: string;
|
|
@@ -3158,26 +3161,26 @@ export declare const exportJobsContract: {
|
|
|
3158
3161
|
}[];
|
|
3159
3162
|
deletedAt?: string | null | undefined;
|
|
3160
3163
|
} | null;
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
+
expiresAt: string;
|
|
3165
|
+
totalRows: number | null;
|
|
3166
|
+
errorMessage: string | null;
|
|
3167
|
+
completedAt: string | null;
|
|
3168
|
+
startedAt: string | null;
|
|
3164
3169
|
columns: string[];
|
|
3165
3170
|
rowsProcessed: number;
|
|
3166
3171
|
rowsSkipped: number;
|
|
3167
|
-
totalRows: number | null;
|
|
3168
3172
|
byteSize: number | null;
|
|
3169
|
-
errorMessage: string | null;
|
|
3170
|
-
startedAt: string | null;
|
|
3171
|
-
completedAt: string | null;
|
|
3172
|
-
expiresAt: string;
|
|
3173
3173
|
}, {
|
|
3174
|
+
filter: Record<string, unknown>;
|
|
3175
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3174
3176
|
id: string;
|
|
3175
|
-
|
|
3177
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3176
3178
|
userId: string;
|
|
3179
|
+
requestedAt: string;
|
|
3177
3180
|
user: {
|
|
3178
3181
|
id: string;
|
|
3179
|
-
lastName: string;
|
|
3180
3182
|
firstName: string;
|
|
3183
|
+
lastName: string;
|
|
3181
3184
|
phoneNumbers?: {
|
|
3182
3185
|
id: string;
|
|
3183
3186
|
phoneNumber: string;
|
|
@@ -3186,18 +3189,15 @@ export declare const exportJobsContract: {
|
|
|
3186
3189
|
}[] | undefined;
|
|
3187
3190
|
deletedAt?: string | Date | null | undefined;
|
|
3188
3191
|
} | null;
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
+
expiresAt: string;
|
|
3193
|
+
totalRows: number | null;
|
|
3194
|
+
errorMessage: string | null;
|
|
3195
|
+
completedAt: string | null;
|
|
3196
|
+
startedAt: string | null;
|
|
3192
3197
|
columns: string[];
|
|
3193
3198
|
rowsProcessed: number;
|
|
3194
3199
|
rowsSkipped: number;
|
|
3195
|
-
totalRows: number | null;
|
|
3196
3200
|
byteSize: number | null;
|
|
3197
|
-
errorMessage: string | null;
|
|
3198
|
-
startedAt: string | null;
|
|
3199
|
-
completedAt: string | null;
|
|
3200
|
-
expiresAt: string;
|
|
3201
3201
|
sort?: {
|
|
3202
3202
|
field: string;
|
|
3203
3203
|
dir: "ASC" | "DESC";
|
|
@@ -3211,17 +3211,20 @@ export declare const exportJobsContract: {
|
|
|
3211
3211
|
}, "strip", z.ZodTypeAny, {
|
|
3212
3212
|
limit: number;
|
|
3213
3213
|
items: {
|
|
3214
|
-
id: string;
|
|
3215
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
3216
3214
|
sort: {
|
|
3217
3215
|
field: string;
|
|
3218
3216
|
dir: "ASC" | "DESC";
|
|
3219
3217
|
}[];
|
|
3218
|
+
filter: Record<string, unknown>;
|
|
3219
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3220
|
+
id: string;
|
|
3221
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3220
3222
|
userId: string;
|
|
3223
|
+
requestedAt: string;
|
|
3221
3224
|
user: {
|
|
3222
3225
|
id: string;
|
|
3223
|
-
lastName: string;
|
|
3224
3226
|
firstName: string;
|
|
3227
|
+
lastName: string;
|
|
3225
3228
|
phoneNumbers: {
|
|
3226
3229
|
id: string;
|
|
3227
3230
|
phoneNumber: string;
|
|
@@ -3230,18 +3233,15 @@ export declare const exportJobsContract: {
|
|
|
3230
3233
|
}[];
|
|
3231
3234
|
deletedAt?: string | null | undefined;
|
|
3232
3235
|
} | null;
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
+
expiresAt: string;
|
|
3237
|
+
totalRows: number | null;
|
|
3238
|
+
errorMessage: string | null;
|
|
3239
|
+
completedAt: string | null;
|
|
3240
|
+
startedAt: string | null;
|
|
3236
3241
|
columns: string[];
|
|
3237
3242
|
rowsProcessed: number;
|
|
3238
3243
|
rowsSkipped: number;
|
|
3239
|
-
totalRows: number | null;
|
|
3240
3244
|
byteSize: number | null;
|
|
3241
|
-
errorMessage: string | null;
|
|
3242
|
-
startedAt: string | null;
|
|
3243
|
-
completedAt: string | null;
|
|
3244
|
-
expiresAt: string;
|
|
3245
3245
|
}[];
|
|
3246
3246
|
totalCount: number;
|
|
3247
3247
|
skip: number;
|
|
@@ -3250,13 +3250,16 @@ export declare const exportJobsContract: {
|
|
|
3250
3250
|
}, {
|
|
3251
3251
|
limit: number;
|
|
3252
3252
|
items: {
|
|
3253
|
+
filter: Record<string, unknown>;
|
|
3254
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3253
3255
|
id: string;
|
|
3254
|
-
|
|
3256
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3255
3257
|
userId: string;
|
|
3258
|
+
requestedAt: string;
|
|
3256
3259
|
user: {
|
|
3257
3260
|
id: string;
|
|
3258
|
-
lastName: string;
|
|
3259
3261
|
firstName: string;
|
|
3262
|
+
lastName: string;
|
|
3260
3263
|
phoneNumbers?: {
|
|
3261
3264
|
id: string;
|
|
3262
3265
|
phoneNumber: string;
|
|
@@ -3265,18 +3268,15 @@ export declare const exportJobsContract: {
|
|
|
3265
3268
|
}[] | undefined;
|
|
3266
3269
|
deletedAt?: string | Date | null | undefined;
|
|
3267
3270
|
} | null;
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
+
expiresAt: string;
|
|
3272
|
+
totalRows: number | null;
|
|
3273
|
+
errorMessage: string | null;
|
|
3274
|
+
completedAt: string | null;
|
|
3275
|
+
startedAt: string | null;
|
|
3271
3276
|
columns: string[];
|
|
3272
3277
|
rowsProcessed: number;
|
|
3273
3278
|
rowsSkipped: number;
|
|
3274
|
-
totalRows: number | null;
|
|
3275
3279
|
byteSize: number | null;
|
|
3276
|
-
errorMessage: string | null;
|
|
3277
|
-
startedAt: string | null;
|
|
3278
|
-
completedAt: string | null;
|
|
3279
|
-
expiresAt: string;
|
|
3280
3280
|
sort?: {
|
|
3281
3281
|
field: string;
|
|
3282
3282
|
dir: "ASC" | "DESC";
|
|
@@ -3327,8 +3327,8 @@ export declare const exportJobsContract: {
|
|
|
3327
3327
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3328
3328
|
}, "strip", z.ZodTypeAny, {
|
|
3329
3329
|
id: string;
|
|
3330
|
-
lastName: string;
|
|
3331
3330
|
firstName: string;
|
|
3331
|
+
lastName: string;
|
|
3332
3332
|
phoneNumbers: {
|
|
3333
3333
|
id: string;
|
|
3334
3334
|
phoneNumber: string;
|
|
@@ -3338,8 +3338,8 @@ export declare const exportJobsContract: {
|
|
|
3338
3338
|
deletedAt?: string | null | undefined;
|
|
3339
3339
|
}, {
|
|
3340
3340
|
id: string;
|
|
3341
|
-
lastName: string;
|
|
3342
3341
|
firstName: string;
|
|
3342
|
+
lastName: string;
|
|
3343
3343
|
phoneNumbers?: {
|
|
3344
3344
|
id: string;
|
|
3345
3345
|
phoneNumber: string;
|
|
@@ -3372,17 +3372,20 @@ export declare const exportJobsContract: {
|
|
|
3372
3372
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
3373
3373
|
expiresAt: z.ZodString;
|
|
3374
3374
|
}, "strip", z.ZodTypeAny, {
|
|
3375
|
-
id: string;
|
|
3376
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
3377
3375
|
sort: {
|
|
3378
3376
|
field: string;
|
|
3379
3377
|
dir: "ASC" | "DESC";
|
|
3380
3378
|
}[];
|
|
3379
|
+
filter: Record<string, unknown>;
|
|
3380
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3381
|
+
id: string;
|
|
3382
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3381
3383
|
userId: string;
|
|
3384
|
+
requestedAt: string;
|
|
3382
3385
|
user: {
|
|
3383
3386
|
id: string;
|
|
3384
|
-
lastName: string;
|
|
3385
3387
|
firstName: string;
|
|
3388
|
+
lastName: string;
|
|
3386
3389
|
phoneNumbers: {
|
|
3387
3390
|
id: string;
|
|
3388
3391
|
phoneNumber: string;
|
|
@@ -3391,26 +3394,26 @@ export declare const exportJobsContract: {
|
|
|
3391
3394
|
}[];
|
|
3392
3395
|
deletedAt?: string | null | undefined;
|
|
3393
3396
|
} | null;
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
+
expiresAt: string;
|
|
3398
|
+
totalRows: number | null;
|
|
3399
|
+
errorMessage: string | null;
|
|
3400
|
+
completedAt: string | null;
|
|
3401
|
+
startedAt: string | null;
|
|
3397
3402
|
columns: string[];
|
|
3398
3403
|
rowsProcessed: number;
|
|
3399
3404
|
rowsSkipped: number;
|
|
3400
|
-
totalRows: number | null;
|
|
3401
3405
|
byteSize: number | null;
|
|
3402
|
-
errorMessage: string | null;
|
|
3403
|
-
startedAt: string | null;
|
|
3404
|
-
completedAt: string | null;
|
|
3405
|
-
expiresAt: string;
|
|
3406
3406
|
}, {
|
|
3407
|
+
filter: Record<string, unknown>;
|
|
3408
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3407
3409
|
id: string;
|
|
3408
|
-
|
|
3410
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3409
3411
|
userId: string;
|
|
3412
|
+
requestedAt: string;
|
|
3410
3413
|
user: {
|
|
3411
3414
|
id: string;
|
|
3412
|
-
lastName: string;
|
|
3413
3415
|
firstName: string;
|
|
3416
|
+
lastName: string;
|
|
3414
3417
|
phoneNumbers?: {
|
|
3415
3418
|
id: string;
|
|
3416
3419
|
phoneNumber: string;
|
|
@@ -3419,18 +3422,15 @@ export declare const exportJobsContract: {
|
|
|
3419
3422
|
}[] | undefined;
|
|
3420
3423
|
deletedAt?: string | Date | null | undefined;
|
|
3421
3424
|
} | null;
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
+
expiresAt: string;
|
|
3426
|
+
totalRows: number | null;
|
|
3427
|
+
errorMessage: string | null;
|
|
3428
|
+
completedAt: string | null;
|
|
3429
|
+
startedAt: string | null;
|
|
3425
3430
|
columns: string[];
|
|
3426
3431
|
rowsProcessed: number;
|
|
3427
3432
|
rowsSkipped: number;
|
|
3428
|
-
totalRows: number | null;
|
|
3429
3433
|
byteSize: number | null;
|
|
3430
|
-
errorMessage: string | null;
|
|
3431
|
-
startedAt: string | null;
|
|
3432
|
-
completedAt: string | null;
|
|
3433
|
-
expiresAt: string;
|
|
3434
3434
|
sort?: {
|
|
3435
3435
|
field: string;
|
|
3436
3436
|
dir: "ASC" | "DESC";
|
|
@@ -3484,8 +3484,8 @@ export declare const exportJobsContract: {
|
|
|
3484
3484
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
3485
3485
|
}, "strip", z.ZodTypeAny, {
|
|
3486
3486
|
id: string;
|
|
3487
|
-
lastName: string;
|
|
3488
3487
|
firstName: string;
|
|
3488
|
+
lastName: string;
|
|
3489
3489
|
phoneNumbers: {
|
|
3490
3490
|
id: string;
|
|
3491
3491
|
phoneNumber: string;
|
|
@@ -3495,8 +3495,8 @@ export declare const exportJobsContract: {
|
|
|
3495
3495
|
deletedAt?: string | null | undefined;
|
|
3496
3496
|
}, {
|
|
3497
3497
|
id: string;
|
|
3498
|
-
lastName: string;
|
|
3499
3498
|
firstName: string;
|
|
3499
|
+
lastName: string;
|
|
3500
3500
|
phoneNumbers?: {
|
|
3501
3501
|
id: string;
|
|
3502
3502
|
phoneNumber: string;
|
|
@@ -3529,17 +3529,20 @@ export declare const exportJobsContract: {
|
|
|
3529
3529
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
3530
3530
|
expiresAt: z.ZodString;
|
|
3531
3531
|
}, "strip", z.ZodTypeAny, {
|
|
3532
|
-
id: string;
|
|
3533
|
-
status: "pending" | "processing" | "completed" | "failed" | "cancelled";
|
|
3534
3532
|
sort: {
|
|
3535
3533
|
field: string;
|
|
3536
3534
|
dir: "ASC" | "DESC";
|
|
3537
3535
|
}[];
|
|
3536
|
+
filter: Record<string, unknown>;
|
|
3537
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3538
|
+
id: string;
|
|
3539
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3538
3540
|
userId: string;
|
|
3541
|
+
requestedAt: string;
|
|
3539
3542
|
user: {
|
|
3540
3543
|
id: string;
|
|
3541
|
-
lastName: string;
|
|
3542
3544
|
firstName: string;
|
|
3545
|
+
lastName: string;
|
|
3543
3546
|
phoneNumbers: {
|
|
3544
3547
|
id: string;
|
|
3545
3548
|
phoneNumber: string;
|
|
@@ -3548,26 +3551,26 @@ export declare const exportJobsContract: {
|
|
|
3548
3551
|
}[];
|
|
3549
3552
|
deletedAt?: string | null | undefined;
|
|
3550
3553
|
} | null;
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
+
expiresAt: string;
|
|
3555
|
+
totalRows: number | null;
|
|
3556
|
+
errorMessage: string | null;
|
|
3557
|
+
completedAt: string | null;
|
|
3558
|
+
startedAt: string | null;
|
|
3554
3559
|
columns: string[];
|
|
3555
3560
|
rowsProcessed: number;
|
|
3556
3561
|
rowsSkipped: number;
|
|
3557
|
-
totalRows: number | null;
|
|
3558
3562
|
byteSize: number | null;
|
|
3559
|
-
errorMessage: string | null;
|
|
3560
|
-
startedAt: string | null;
|
|
3561
|
-
completedAt: string | null;
|
|
3562
|
-
expiresAt: string;
|
|
3563
3563
|
}, {
|
|
3564
|
+
filter: Record<string, unknown>;
|
|
3565
|
+
status: "completed" | "cancelled" | "failed" | "pending" | "processing";
|
|
3564
3566
|
id: string;
|
|
3565
|
-
|
|
3567
|
+
entity: "jobs" | "bookings" | "actives" | "call-history" | "users";
|
|
3566
3568
|
userId: string;
|
|
3569
|
+
requestedAt: string;
|
|
3567
3570
|
user: {
|
|
3568
3571
|
id: string;
|
|
3569
|
-
lastName: string;
|
|
3570
3572
|
firstName: string;
|
|
3573
|
+
lastName: string;
|
|
3571
3574
|
phoneNumbers?: {
|
|
3572
3575
|
id: string;
|
|
3573
3576
|
phoneNumber: string;
|
|
@@ -3576,18 +3579,15 @@ export declare const exportJobsContract: {
|
|
|
3576
3579
|
}[] | undefined;
|
|
3577
3580
|
deletedAt?: string | Date | null | undefined;
|
|
3578
3581
|
} | null;
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
+
expiresAt: string;
|
|
3583
|
+
totalRows: number | null;
|
|
3584
|
+
errorMessage: string | null;
|
|
3585
|
+
completedAt: string | null;
|
|
3586
|
+
startedAt: string | null;
|
|
3582
3587
|
columns: string[];
|
|
3583
3588
|
rowsProcessed: number;
|
|
3584
3589
|
rowsSkipped: number;
|
|
3585
|
-
totalRows: number | null;
|
|
3586
3590
|
byteSize: number | null;
|
|
3587
|
-
errorMessage: string | null;
|
|
3588
|
-
startedAt: string | null;
|
|
3589
|
-
completedAt: string | null;
|
|
3590
|
-
expiresAt: string;
|
|
3591
3591
|
sort?: {
|
|
3592
3592
|
field: string;
|
|
3593
3593
|
dir: "ASC" | "DESC";
|