@dakkitor/api-contracts 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abilities/abilities.contract.d.ts +6 -2
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +45 -1
- package/dist/abilities/abilities.contract.spec.js +98 -0
- package/dist/abilities/first-agent.abilities.json +8 -14
- package/dist/abilities/outreach.abilities.json +25 -0
- package/dist/abilities/second-agent.abilities.json +4 -13
- package/dist/actives/actives.contract.d.ts +3618 -3479
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/actives/actives.contract.js +2 -0
- package/dist/actives/actives.contract.spec.d.ts +2 -0
- package/dist/actives/actives.contract.spec.d.ts.map +1 -0
- package/dist/actives/actives.contract.spec.js +35 -0
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1087 -1087
- package/dist/auth/auth.contract.d.ts +108 -108
- package/dist/bookings/bookings.contract.d.ts +6644 -6452
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +718 -718
- package/dist/calls-feed/calls-feed.contract.d.ts +86 -86
- package/dist/client-contacts/client-contacts.contract.d.ts +469 -469
- package/dist/clients/clients.contract.d.ts +203 -203
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2713 -2713
- package/dist/collaborations/collaborations.contract.d.ts +2270 -2270
- package/dist/common/common-schemas.d.ts +12 -12
- package/dist/companies/companies.contract.d.ts +74 -74
- package/dist/crews/crews.contract.d.ts +253 -253
- package/dist/cron-executions/cron-executions.contract.d.ts +182 -182
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2723 -2723
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +378 -378
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +1117 -1087
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +16 -16
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +2 -2
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5818 -5372
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +34 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts +4 -4
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/outreach-pool-summary.contract.spec.js +39 -0
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +148 -148
- package/dist/curated-workers/curated-workers.contract.d.ts +789 -789
- package/dist/dashboards/agent-daily-metrics.contract.d.ts +2 -2
- package/dist/dashboards/dashboard-widgets.contract.d.ts +180 -180
- package/dist/dashboards/dashboard.contract.d.ts +12 -12
- package/dist/document-intake/document-intake.contract.d.ts +601 -601
- package/dist/export-jobs/export-jobs.contract.d.ts +694 -694
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +74 -74
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/interactions/interactions.contract.d.ts +6 -6
- package/dist/job-clusters/job-clusters.contract.d.ts +112 -112
- package/dist/jobs/job-moderation-fields.spec.d.ts +2 -0
- package/dist/jobs/job-moderation-fields.spec.d.ts.map +1 -0
- package/dist/jobs/job-moderation-fields.spec.js +72 -0
- package/dist/jobs/jobs.contract.d.ts +4773 -4525
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/jobs/jobs.contract.js +48 -0
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +141 -141
- package/dist/lead-assignments/lead-assignments.contract.d.ts +911 -911
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +209 -209
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +77 -77
- package/dist/leads/leads.contract.d.ts +283 -283
- package/dist/locations/locations.contract.d.ts +49 -49
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/offices/offices.contract.d.ts +34 -34
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +11 -0
- package/dist/outreach/__tests__/outreach-requests.contract.spec.js +50 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +14 -3
- package/dist/outreach/lab-outreach.contract.d.ts +1110 -0
- package/dist/outreach/lab-outreach.contract.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.js +174 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/lab-outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/lab-outreach.contract.spec.js +90 -0
- package/dist/outreach/outreach-requests.contract.d.ts +946 -217
- package/dist/outreach/outreach-requests.contract.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.contract.js +23 -3
- package/dist/outreach/outreach-requests.schemas.d.ts +65 -10
- package/dist/outreach/outreach-requests.schemas.d.ts.map +1 -1
- package/dist/outreach/outreach-requests.schemas.js +6 -0
- package/dist/outreach/outreach.contract.d.ts +300 -38
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +18 -0
- package/dist/outreach/outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/outreach.contract.spec.js +57 -0
- package/dist/outreach/outreach.schemas.d.ts +2 -2
- package/dist/own-research/own-research.contract.d.ts +775 -775
- package/dist/postcodes/postcodes.contract.d.ts +24 -24
- package/dist/proofs/proof-type.enum.d.ts +4 -4
- package/dist/proofs/proofs.contract.d.ts +363 -363
- package/dist/proofs/proofs.dtos.d.ts +124 -124
- package/dist/qualifications/qualifications.contract.d.ts +38 -38
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts +829 -0
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.js +79 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.contract.spec.js +146 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +443 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-lab-fleet.schemas.js +138 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +680 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.js +67 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-sessions.contract.spec.js +129 -0
- package/dist/relay-pods/relay-pods.contract.d.ts +1569 -0
- package/dist/relay-pods/relay-pods.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.js +188 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-pods.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.contract.spec.js +141 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts +415 -0
- package/dist/relay-pods/relay-pods.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-pods.schemas.js +112 -0
- package/dist/shared/live-booking.schema.d.ts +4 -4
- package/dist/shared/summary-schemas.d.ts +6 -6
- package/dist/sheets-sync/sheets-sync.contract.d.ts +939 -939
- package/dist/telegram/telegram.contract.d.ts +22 -22
- package/dist/trades/trades.contract.d.ts +90 -90
- package/dist/user-access-grants/user-access-grants.contract.d.ts +165 -165
- package/dist/users/__tests__/assignable-roles.spec.d.ts +2 -0
- package/dist/users/__tests__/assignable-roles.spec.d.ts.map +1 -0
- package/dist/users/__tests__/assignable-roles.spec.js +41 -0
- package/dist/users/users.contract.d.ts +399 -393
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +11 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +585 -527
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +278 -236
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts.map +1 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.js +1 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +153 -153
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +59 -59
- package/dist/workers/workers.contract.d.ts +2919 -2919
- package/package.json +1 -1
- package/dist/bookings/bookings.contract.spec.d.ts +0 -2
- package/dist/bookings/bookings.contract.spec.d.ts.map +0 -1
- package/dist/bookings/bookings.contract.spec.js +0 -11
|
@@ -10,14 +10,14 @@ export declare const ActiveStatusBatchEntrySchema: z.ZodObject<{
|
|
|
10
10
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
date: string;
|
|
13
|
-
activeId: string;
|
|
14
13
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
15
14
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
15
|
+
activeId: string;
|
|
16
16
|
}, {
|
|
17
17
|
date: string;
|
|
18
|
-
activeId: string;
|
|
19
18
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
20
19
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
20
|
+
activeId: string;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const ActiveStatusNotificationPayloadSchema: z.ZodObject<{
|
|
23
23
|
workerId: z.ZodString;
|
|
@@ -32,35 +32,35 @@ export declare const ActiveStatusNotificationPayloadSchema: z.ZodObject<{
|
|
|
32
32
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
date: string;
|
|
35
|
-
activeId: string;
|
|
36
35
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
37
36
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
37
|
+
activeId: string;
|
|
38
38
|
}, {
|
|
39
39
|
date: string;
|
|
40
|
-
activeId: string;
|
|
41
40
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
42
41
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
42
|
+
activeId: string;
|
|
43
43
|
}>, "many">;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
workerName: string | null;
|
|
46
45
|
entries: {
|
|
47
46
|
date: string;
|
|
48
|
-
activeId: string;
|
|
49
47
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
50
48
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
49
|
+
activeId: string;
|
|
51
50
|
}[];
|
|
51
|
+
workerName: string | null;
|
|
52
52
|
workerId: string;
|
|
53
53
|
actorId: string;
|
|
54
54
|
actorName: string | null;
|
|
55
55
|
openedAt: string;
|
|
56
56
|
}, {
|
|
57
|
-
workerName: string | null;
|
|
58
57
|
entries: {
|
|
59
58
|
date: string;
|
|
60
|
-
activeId: string;
|
|
61
59
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
62
60
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
61
|
+
activeId: string;
|
|
63
62
|
}[];
|
|
63
|
+
workerName: string | null;
|
|
64
64
|
workerId: string;
|
|
65
65
|
actorId: string;
|
|
66
66
|
actorName: string | null;
|
|
@@ -119,35 +119,35 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
119
119
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
date: string;
|
|
122
|
-
activeId: string;
|
|
123
122
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
124
123
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
124
|
+
activeId: string;
|
|
125
125
|
}, {
|
|
126
126
|
date: string;
|
|
127
|
-
activeId: string;
|
|
128
127
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
129
128
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
129
|
+
activeId: string;
|
|
130
130
|
}>, "many">;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
workerName: string | null;
|
|
133
132
|
entries: {
|
|
134
133
|
date: string;
|
|
135
|
-
activeId: string;
|
|
136
134
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
137
135
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
136
|
+
activeId: string;
|
|
138
137
|
}[];
|
|
138
|
+
workerName: string | null;
|
|
139
139
|
workerId: string;
|
|
140
140
|
actorId: string;
|
|
141
141
|
actorName: string | null;
|
|
142
142
|
openedAt: string;
|
|
143
143
|
}, {
|
|
144
|
-
workerName: string | null;
|
|
145
144
|
entries: {
|
|
146
145
|
date: string;
|
|
147
|
-
activeId: string;
|
|
148
146
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
149
147
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
148
|
+
activeId: string;
|
|
150
149
|
}[];
|
|
150
|
+
workerName: string | null;
|
|
151
151
|
workerId: string;
|
|
152
152
|
actorId: string;
|
|
153
153
|
actorName: string | null;
|
|
@@ -160,13 +160,13 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
160
160
|
kind: "ACTIVE_STATUS";
|
|
161
161
|
refId: string;
|
|
162
162
|
payload: {
|
|
163
|
-
workerName: string | null;
|
|
164
163
|
entries: {
|
|
165
164
|
date: string;
|
|
166
|
-
activeId: string;
|
|
167
165
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
168
166
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
167
|
+
activeId: string;
|
|
169
168
|
}[];
|
|
169
|
+
workerName: string | null;
|
|
170
170
|
workerId: string;
|
|
171
171
|
actorId: string;
|
|
172
172
|
actorName: string | null;
|
|
@@ -178,13 +178,13 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
178
178
|
kind: "ACTIVE_STATUS";
|
|
179
179
|
refId: string;
|
|
180
180
|
payload: {
|
|
181
|
-
workerName: string | null;
|
|
182
181
|
entries: {
|
|
183
182
|
date: string;
|
|
184
|
-
activeId: string;
|
|
185
183
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
186
184
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
185
|
+
activeId: string;
|
|
187
186
|
}[];
|
|
187
|
+
workerName: string | null;
|
|
188
188
|
workerId: string;
|
|
189
189
|
actorId: string;
|
|
190
190
|
actorName: string | null;
|
|
@@ -295,35 +295,35 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
295
295
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
296
296
|
}, "strip", z.ZodTypeAny, {
|
|
297
297
|
date: string;
|
|
298
|
-
activeId: string;
|
|
299
298
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
300
299
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
300
|
+
activeId: string;
|
|
301
301
|
}, {
|
|
302
302
|
date: string;
|
|
303
|
-
activeId: string;
|
|
304
303
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
305
304
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
305
|
+
activeId: string;
|
|
306
306
|
}>, "many">;
|
|
307
307
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
workerName: string | null;
|
|
309
308
|
entries: {
|
|
310
309
|
date: string;
|
|
311
|
-
activeId: string;
|
|
312
310
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
313
311
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
312
|
+
activeId: string;
|
|
314
313
|
}[];
|
|
314
|
+
workerName: string | null;
|
|
315
315
|
workerId: string;
|
|
316
316
|
actorId: string;
|
|
317
317
|
actorName: string | null;
|
|
318
318
|
openedAt: string;
|
|
319
319
|
}, {
|
|
320
|
-
workerName: string | null;
|
|
321
320
|
entries: {
|
|
322
321
|
date: string;
|
|
323
|
-
activeId: string;
|
|
324
322
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
325
323
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
324
|
+
activeId: string;
|
|
326
325
|
}[];
|
|
326
|
+
workerName: string | null;
|
|
327
327
|
workerId: string;
|
|
328
328
|
actorId: string;
|
|
329
329
|
actorName: string | null;
|
|
@@ -336,13 +336,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
336
336
|
kind: "ACTIVE_STATUS";
|
|
337
337
|
refId: string;
|
|
338
338
|
payload: {
|
|
339
|
-
workerName: string | null;
|
|
340
339
|
entries: {
|
|
341
340
|
date: string;
|
|
342
|
-
activeId: string;
|
|
343
341
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
344
342
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
343
|
+
activeId: string;
|
|
345
344
|
}[];
|
|
345
|
+
workerName: string | null;
|
|
346
346
|
workerId: string;
|
|
347
347
|
actorId: string;
|
|
348
348
|
actorName: string | null;
|
|
@@ -354,13 +354,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
354
354
|
kind: "ACTIVE_STATUS";
|
|
355
355
|
refId: string;
|
|
356
356
|
payload: {
|
|
357
|
-
workerName: string | null;
|
|
358
357
|
entries: {
|
|
359
358
|
date: string;
|
|
360
|
-
activeId: string;
|
|
361
359
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
362
360
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
361
|
+
activeId: string;
|
|
363
362
|
}[];
|
|
363
|
+
workerName: string | null;
|
|
364
364
|
workerId: string;
|
|
365
365
|
actorId: string;
|
|
366
366
|
actorName: string | null;
|
|
@@ -461,13 +461,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
461
461
|
kind: "ACTIVE_STATUS";
|
|
462
462
|
refId: string;
|
|
463
463
|
payload: {
|
|
464
|
-
workerName: string | null;
|
|
465
464
|
entries: {
|
|
466
465
|
date: string;
|
|
467
|
-
activeId: string;
|
|
468
466
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
469
467
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
468
|
+
activeId: string;
|
|
470
469
|
}[];
|
|
470
|
+
workerName: string | null;
|
|
471
471
|
workerId: string;
|
|
472
472
|
actorId: string;
|
|
473
473
|
actorName: string | null;
|
|
@@ -504,13 +504,13 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
504
504
|
kind: "ACTIVE_STATUS";
|
|
505
505
|
refId: string;
|
|
506
506
|
payload: {
|
|
507
|
-
workerName: string | null;
|
|
508
507
|
entries: {
|
|
509
508
|
date: string;
|
|
510
|
-
activeId: string;
|
|
511
509
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
512
510
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
511
|
+
activeId: string;
|
|
513
512
|
}[];
|
|
513
|
+
workerName: string | null;
|
|
514
514
|
workerId: string;
|
|
515
515
|
actorId: string;
|
|
516
516
|
actorName: string | null;
|
|
@@ -543,9 +543,6 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
543
543
|
}>;
|
|
544
544
|
export declare const notificationsContract: {
|
|
545
545
|
list: {
|
|
546
|
-
metadata: {
|
|
547
|
-
tags: string[];
|
|
548
|
-
};
|
|
549
546
|
query: z.ZodObject<{
|
|
550
547
|
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
551
548
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -553,6 +550,9 @@ export declare const notificationsContract: {
|
|
|
553
550
|
}, {
|
|
554
551
|
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
555
552
|
}>;
|
|
553
|
+
metadata: {
|
|
554
|
+
tags: string[];
|
|
555
|
+
};
|
|
556
556
|
summary: "List notifications for the current user (undismissed only).";
|
|
557
557
|
method: "GET";
|
|
558
558
|
path: "/v2/notifications";
|
|
@@ -567,16 +567,16 @@ export declare const notificationsContract: {
|
|
|
567
567
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
568
568
|
}, "strip", z.ZodTypeAny, {
|
|
569
569
|
message: string;
|
|
570
|
-
path: string;
|
|
571
570
|
code: string;
|
|
571
|
+
path: string;
|
|
572
572
|
statusCode: number;
|
|
573
573
|
timestamp: string;
|
|
574
574
|
details?: unknown;
|
|
575
575
|
correlationId?: string | undefined;
|
|
576
576
|
}, {
|
|
577
577
|
message: string;
|
|
578
|
-
path: string;
|
|
579
578
|
code: string;
|
|
579
|
+
path: string;
|
|
580
580
|
statusCode: number;
|
|
581
581
|
timestamp: string;
|
|
582
582
|
details?: unknown;
|
|
@@ -600,35 +600,35 @@ export declare const notificationsContract: {
|
|
|
600
600
|
toStatus: z.ZodEnum<["PENDING", "ACTIVE", "VACATION", "LEFT_THE_SITE", "MEDICAL_LEAVE", "DAY_OFF", "INJURY", "OFF_SCHEDULE"]>;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
602
|
date: string;
|
|
603
|
-
activeId: string;
|
|
604
603
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
605
604
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
605
|
+
activeId: string;
|
|
606
606
|
}, {
|
|
607
607
|
date: string;
|
|
608
|
-
activeId: string;
|
|
609
608
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
610
609
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
610
|
+
activeId: string;
|
|
611
611
|
}>, "many">;
|
|
612
612
|
}, "strip", z.ZodTypeAny, {
|
|
613
|
-
workerName: string | null;
|
|
614
613
|
entries: {
|
|
615
614
|
date: string;
|
|
616
|
-
activeId: string;
|
|
617
615
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
618
616
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
617
|
+
activeId: string;
|
|
619
618
|
}[];
|
|
619
|
+
workerName: string | null;
|
|
620
620
|
workerId: string;
|
|
621
621
|
actorId: string;
|
|
622
622
|
actorName: string | null;
|
|
623
623
|
openedAt: string;
|
|
624
624
|
}, {
|
|
625
|
-
workerName: string | null;
|
|
626
625
|
entries: {
|
|
627
626
|
date: string;
|
|
628
|
-
activeId: string;
|
|
629
627
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
630
628
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
629
|
+
activeId: string;
|
|
631
630
|
}[];
|
|
631
|
+
workerName: string | null;
|
|
632
632
|
workerId: string;
|
|
633
633
|
actorId: string;
|
|
634
634
|
actorName: string | null;
|
|
@@ -641,13 +641,13 @@ export declare const notificationsContract: {
|
|
|
641
641
|
kind: "ACTIVE_STATUS";
|
|
642
642
|
refId: string;
|
|
643
643
|
payload: {
|
|
644
|
-
workerName: string | null;
|
|
645
644
|
entries: {
|
|
646
645
|
date: string;
|
|
647
|
-
activeId: string;
|
|
648
646
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
649
647
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
648
|
+
activeId: string;
|
|
650
649
|
}[];
|
|
650
|
+
workerName: string | null;
|
|
651
651
|
workerId: string;
|
|
652
652
|
actorId: string;
|
|
653
653
|
actorName: string | null;
|
|
@@ -659,13 +659,13 @@ export declare const notificationsContract: {
|
|
|
659
659
|
kind: "ACTIVE_STATUS";
|
|
660
660
|
refId: string;
|
|
661
661
|
payload: {
|
|
662
|
-
workerName: string | null;
|
|
663
662
|
entries: {
|
|
664
663
|
date: string;
|
|
665
|
-
activeId: string;
|
|
666
664
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
667
665
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
666
|
+
activeId: string;
|
|
668
667
|
}[];
|
|
668
|
+
workerName: string | null;
|
|
669
669
|
workerId: string;
|
|
670
670
|
actorId: string;
|
|
671
671
|
actorName: string | null;
|
|
@@ -766,13 +766,13 @@ export declare const notificationsContract: {
|
|
|
766
766
|
kind: "ACTIVE_STATUS";
|
|
767
767
|
refId: string;
|
|
768
768
|
payload: {
|
|
769
|
-
workerName: string | null;
|
|
770
769
|
entries: {
|
|
771
770
|
date: string;
|
|
772
|
-
activeId: string;
|
|
773
771
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
774
772
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
773
|
+
activeId: string;
|
|
775
774
|
}[];
|
|
775
|
+
workerName: string | null;
|
|
776
776
|
workerId: string;
|
|
777
777
|
actorId: string;
|
|
778
778
|
actorName: string | null;
|
|
@@ -809,13 +809,13 @@ export declare const notificationsContract: {
|
|
|
809
809
|
kind: "ACTIVE_STATUS";
|
|
810
810
|
refId: string;
|
|
811
811
|
payload: {
|
|
812
|
-
workerName: string | null;
|
|
813
812
|
entries: {
|
|
814
813
|
date: string;
|
|
815
|
-
activeId: string;
|
|
816
814
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
817
815
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
816
|
+
activeId: string;
|
|
818
817
|
}[];
|
|
818
|
+
workerName: string | null;
|
|
819
819
|
workerId: string;
|
|
820
820
|
actorId: string;
|
|
821
821
|
actorName: string | null;
|
|
@@ -874,16 +874,16 @@ export declare const notificationsContract: {
|
|
|
874
874
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
875
875
|
}, "strip", z.ZodTypeAny, {
|
|
876
876
|
message: string;
|
|
877
|
-
path: string;
|
|
878
877
|
code: string;
|
|
878
|
+
path: string;
|
|
879
879
|
statusCode: number;
|
|
880
880
|
timestamp: string;
|
|
881
881
|
details?: unknown;
|
|
882
882
|
correlationId?: string | undefined;
|
|
883
883
|
}, {
|
|
884
884
|
message: string;
|
|
885
|
-
path: string;
|
|
886
885
|
code: string;
|
|
886
|
+
path: string;
|
|
887
887
|
statusCode: number;
|
|
888
888
|
timestamp: string;
|
|
889
889
|
details?: unknown;
|
|
@@ -900,16 +900,16 @@ export declare const notificationsContract: {
|
|
|
900
900
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
901
901
|
}, "strip", z.ZodTypeAny, {
|
|
902
902
|
message: string;
|
|
903
|
-
path: string;
|
|
904
903
|
code: string;
|
|
904
|
+
path: string;
|
|
905
905
|
statusCode: number;
|
|
906
906
|
timestamp: string;
|
|
907
907
|
details?: unknown;
|
|
908
908
|
correlationId?: string | undefined;
|
|
909
909
|
}, {
|
|
910
910
|
message: string;
|
|
911
|
-
path: string;
|
|
912
911
|
code: string;
|
|
912
|
+
path: string;
|
|
913
913
|
statusCode: number;
|
|
914
914
|
timestamp: string;
|
|
915
915
|
details?: unknown;
|
|
@@ -925,16 +925,16 @@ export declare const notificationsContract: {
|
|
|
925
925
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
926
926
|
}, "strip", z.ZodTypeAny, {
|
|
927
927
|
message: string;
|
|
928
|
-
path: string;
|
|
929
928
|
code: string;
|
|
929
|
+
path: string;
|
|
930
930
|
statusCode: number;
|
|
931
931
|
timestamp: string;
|
|
932
932
|
details?: unknown;
|
|
933
933
|
correlationId?: string | undefined;
|
|
934
934
|
}, {
|
|
935
935
|
message: string;
|
|
936
|
-
path: string;
|
|
937
936
|
code: string;
|
|
937
|
+
path: string;
|
|
938
938
|
statusCode: number;
|
|
939
939
|
timestamp: string;
|
|
940
940
|
details?: unknown;
|
|
@@ -943,9 +943,6 @@ export declare const notificationsContract: {
|
|
|
943
943
|
};
|
|
944
944
|
};
|
|
945
945
|
dismissAll: {
|
|
946
|
-
metadata: {
|
|
947
|
-
tags: string[];
|
|
948
|
-
};
|
|
949
946
|
query: z.ZodObject<{
|
|
950
947
|
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
951
948
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -953,6 +950,9 @@ export declare const notificationsContract: {
|
|
|
953
950
|
}, {
|
|
954
951
|
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
955
952
|
}>;
|
|
953
|
+
metadata: {
|
|
954
|
+
tags: string[];
|
|
955
|
+
};
|
|
956
956
|
summary: "Soft-delete all the user notifications of a kind.";
|
|
957
957
|
method: "POST";
|
|
958
958
|
body: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
@@ -968,16 +968,16 @@ export declare const notificationsContract: {
|
|
|
968
968
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
969
969
|
}, "strip", z.ZodTypeAny, {
|
|
970
970
|
message: string;
|
|
971
|
-
path: string;
|
|
972
971
|
code: string;
|
|
972
|
+
path: string;
|
|
973
973
|
statusCode: number;
|
|
974
974
|
timestamp: string;
|
|
975
975
|
details?: unknown;
|
|
976
976
|
correlationId?: string | undefined;
|
|
977
977
|
}, {
|
|
978
978
|
message: string;
|
|
979
|
-
path: string;
|
|
980
979
|
code: string;
|
|
980
|
+
path: string;
|
|
981
981
|
statusCode: number;
|
|
982
982
|
timestamp: string;
|
|
983
983
|
details?: unknown;
|
|
@@ -987,9 +987,6 @@ export declare const notificationsContract: {
|
|
|
987
987
|
};
|
|
988
988
|
};
|
|
989
989
|
markAllSeen: {
|
|
990
|
-
metadata: {
|
|
991
|
-
tags: string[];
|
|
992
|
-
};
|
|
993
990
|
query: z.ZodObject<{
|
|
994
991
|
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
995
992
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -997,6 +994,9 @@ export declare const notificationsContract: {
|
|
|
997
994
|
}, {
|
|
998
995
|
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
999
996
|
}>;
|
|
997
|
+
metadata: {
|
|
998
|
+
tags: string[];
|
|
999
|
+
};
|
|
1000
1000
|
summary: "Set lastSeenAt to now for (current user, kind).";
|
|
1001
1001
|
method: "POST";
|
|
1002
1002
|
body: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
@@ -1012,16 +1012,16 @@ export declare const notificationsContract: {
|
|
|
1012
1012
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1013
1013
|
}, "strip", z.ZodTypeAny, {
|
|
1014
1014
|
message: string;
|
|
1015
|
-
path: string;
|
|
1016
1015
|
code: string;
|
|
1016
|
+
path: string;
|
|
1017
1017
|
statusCode: number;
|
|
1018
1018
|
timestamp: string;
|
|
1019
1019
|
details?: unknown;
|
|
1020
1020
|
correlationId?: string | undefined;
|
|
1021
1021
|
}, {
|
|
1022
1022
|
message: string;
|
|
1023
|
-
path: string;
|
|
1024
1023
|
code: string;
|
|
1024
|
+
path: string;
|
|
1025
1025
|
statusCode: number;
|
|
1026
1026
|
timestamp: string;
|
|
1027
1027
|
details?: unknown;
|