@dakkitor/api-contracts 1.8.0 → 1.9.1
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 +1 -1
- package/dist/abilities/abilities.contract.d.ts.map +1 -1
- package/dist/abilities/abilities.contract.js +1 -0
- package/dist/abilities/abilities.contract.spec.js +11 -0
- package/dist/abilities/second-agent.abilities.json +16 -0
- package/dist/actives/actives.contract.d.ts +6327 -6196
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1148 -1046
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +23 -23
- package/dist/bookings/bookings.contract.d.ts +9238 -9006
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/call-history/call-history.contract.d.ts +768 -731
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +99 -92
- package/dist/calls-feed/calls-feed.contract.d.ts.map +1 -1
- package/dist/candidate-calling/candidate-calling.contract.d.ts +13397 -0
- package/dist/candidate-calling/candidate-calling.contract.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.js +206 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts +2 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.d.ts.map +1 -0
- package/dist/candidate-calling/candidate-calling.contract.spec.js +193 -0
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +2738 -2634
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2281 -2184
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.d.ts +7 -7
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +1 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +2663 -2045
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +37 -4
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +228 -228
- package/dist/curated-worker-leads/contact-history.spec.js +55 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +1928 -1928
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +36 -36
- package/dist/curated-workers/curated-workers.contract.d.ts +1195 -1195
- package/dist/dashboards/dashboard-widgets.contract.d.ts +396 -396
- package/dist/dashboards/dashboard.contract.d.ts +16 -16
- package/dist/export-jobs/export-jobs.contract.d.ts +675 -675
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/jobs/jobs.contract.d.ts +7903 -7645
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +72 -72
- package/dist/lead-assignments/lead-assignments.contract.d.ts +999 -928
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +244 -220
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/leads/leads.contract.d.ts +259 -259
- package/dist/notifications/notifications.contract.d.ts +67 -67
- package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
- package/dist/outreach/outreach.contract.d.ts +583 -162
- package/dist/outreach/outreach.contract.d.ts.map +1 -1
- package/dist/outreach/outreach.contract.js +50 -1
- package/dist/outreach/relay-hub-outreach.contract.d.ts +299 -121
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -1
- package/dist/outreach/relay-hub-outreach.contract.js +10 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +26 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts +94 -0
- package/dist/outreach/relay-hub-outreach.schemas.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.schemas.js +15 -0
- package/dist/own-research/check-phone-response.spec.d.ts +2 -0
- package/dist/own-research/check-phone-response.spec.d.ts.map +1 -0
- package/dist/own-research/check-phone-response.spec.js +54 -0
- package/dist/own-research/own-research.contract.d.ts +801 -716
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -1
- package/dist/user-access-grants/user-access-grants.contract.d.ts +179 -179
- package/dist/users/users.contract.d.ts +227 -198
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +9 -1
- package/dist/users/users.contract.spec.js +39 -0
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +124 -124
- package/dist/workers/workers.contract.d.ts +2761 -2717
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +12 -0
- package/package.json +1 -1
|
@@ -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;
|
|
13
14
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
14
15
|
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;
|
|
18
19
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
19
20
|
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,22 +32,22 @@ 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;
|
|
35
36
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
36
37
|
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;
|
|
40
41
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
41
42
|
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
45
|
workerName: string | null;
|
|
46
46
|
entries: {
|
|
47
47
|
date: string;
|
|
48
|
+
activeId: string;
|
|
48
49
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
49
50
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
50
|
-
activeId: string;
|
|
51
51
|
}[];
|
|
52
52
|
workerId: string;
|
|
53
53
|
actorId: string;
|
|
@@ -57,9 +57,9 @@ export declare const ActiveStatusNotificationPayloadSchema: z.ZodObject<{
|
|
|
57
57
|
workerName: string | null;
|
|
58
58
|
entries: {
|
|
59
59
|
date: string;
|
|
60
|
+
activeId: string;
|
|
60
61
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
61
62
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
62
|
-
activeId: string;
|
|
63
63
|
}[];
|
|
64
64
|
workerId: string;
|
|
65
65
|
actorId: string;
|
|
@@ -119,22 +119,22 @@ 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;
|
|
122
123
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
123
124
|
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;
|
|
127
128
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
128
129
|
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
132
|
workerName: string | null;
|
|
133
133
|
entries: {
|
|
134
134
|
date: string;
|
|
135
|
+
activeId: string;
|
|
135
136
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
136
137
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
137
|
-
activeId: string;
|
|
138
138
|
}[];
|
|
139
139
|
workerId: string;
|
|
140
140
|
actorId: string;
|
|
@@ -144,9 +144,9 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
144
144
|
workerName: string | null;
|
|
145
145
|
entries: {
|
|
146
146
|
date: string;
|
|
147
|
+
activeId: string;
|
|
147
148
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
148
149
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
149
|
-
activeId: string;
|
|
150
150
|
}[];
|
|
151
151
|
workerId: string;
|
|
152
152
|
actorId: string;
|
|
@@ -155,17 +155,17 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
155
155
|
}>;
|
|
156
156
|
createdAt: z.ZodString;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
id: string;
|
|
159
158
|
createdAt: string;
|
|
159
|
+
id: string;
|
|
160
160
|
kind: "ACTIVE_STATUS";
|
|
161
161
|
refId: string;
|
|
162
162
|
payload: {
|
|
163
163
|
workerName: string | null;
|
|
164
164
|
entries: {
|
|
165
165
|
date: string;
|
|
166
|
+
activeId: string;
|
|
166
167
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
167
168
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
168
|
-
activeId: string;
|
|
169
169
|
}[];
|
|
170
170
|
workerId: string;
|
|
171
171
|
actorId: string;
|
|
@@ -173,17 +173,17 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
173
173
|
openedAt: string;
|
|
174
174
|
};
|
|
175
175
|
}, {
|
|
176
|
-
id: string;
|
|
177
176
|
createdAt: string;
|
|
177
|
+
id: string;
|
|
178
178
|
kind: "ACTIVE_STATUS";
|
|
179
179
|
refId: string;
|
|
180
180
|
payload: {
|
|
181
181
|
workerName: string | null;
|
|
182
182
|
entries: {
|
|
183
183
|
date: string;
|
|
184
|
+
activeId: string;
|
|
184
185
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
185
186
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
186
|
-
activeId: string;
|
|
187
187
|
}[];
|
|
188
188
|
workerId: string;
|
|
189
189
|
actorId: string;
|
|
@@ -212,8 +212,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
212
212
|
}>;
|
|
213
213
|
createdAt: z.ZodString;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
id: string;
|
|
216
215
|
createdAt: string;
|
|
216
|
+
id: string;
|
|
217
217
|
kind: "AI_MERGE_MISMATCH";
|
|
218
218
|
refId: string;
|
|
219
219
|
payload: {
|
|
@@ -223,8 +223,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
223
223
|
workerNames: string[];
|
|
224
224
|
};
|
|
225
225
|
}, {
|
|
226
|
-
id: string;
|
|
227
226
|
createdAt: string;
|
|
227
|
+
id: string;
|
|
228
228
|
kind: "AI_MERGE_MISMATCH";
|
|
229
229
|
refId: string;
|
|
230
230
|
payload: {
|
|
@@ -255,8 +255,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
255
255
|
}>;
|
|
256
256
|
createdAt: z.ZodString;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
id: string;
|
|
259
258
|
createdAt: string;
|
|
259
|
+
id: string;
|
|
260
260
|
kind: "AI_MERGE_APPLIED";
|
|
261
261
|
refId: string;
|
|
262
262
|
payload: {
|
|
@@ -266,8 +266,8 @@ export declare const NotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
266
266
|
workerNames: string[];
|
|
267
267
|
};
|
|
268
268
|
}, {
|
|
269
|
-
id: string;
|
|
270
269
|
createdAt: string;
|
|
270
|
+
id: string;
|
|
271
271
|
kind: "AI_MERGE_APPLIED";
|
|
272
272
|
refId: string;
|
|
273
273
|
payload: {
|
|
@@ -295,22 +295,22 @@ 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;
|
|
298
299
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
299
300
|
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;
|
|
303
304
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
304
305
|
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
308
|
workerName: string | null;
|
|
309
309
|
entries: {
|
|
310
310
|
date: string;
|
|
311
|
+
activeId: string;
|
|
311
312
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
312
313
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
313
|
-
activeId: string;
|
|
314
314
|
}[];
|
|
315
315
|
workerId: string;
|
|
316
316
|
actorId: string;
|
|
@@ -320,9 +320,9 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
320
320
|
workerName: string | null;
|
|
321
321
|
entries: {
|
|
322
322
|
date: string;
|
|
323
|
+
activeId: string;
|
|
323
324
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
324
325
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
325
|
-
activeId: string;
|
|
326
326
|
}[];
|
|
327
327
|
workerId: string;
|
|
328
328
|
actorId: string;
|
|
@@ -331,17 +331,17 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
331
331
|
}>;
|
|
332
332
|
createdAt: z.ZodString;
|
|
333
333
|
}, "strip", z.ZodTypeAny, {
|
|
334
|
-
id: string;
|
|
335
334
|
createdAt: string;
|
|
335
|
+
id: string;
|
|
336
336
|
kind: "ACTIVE_STATUS";
|
|
337
337
|
refId: string;
|
|
338
338
|
payload: {
|
|
339
339
|
workerName: string | null;
|
|
340
340
|
entries: {
|
|
341
341
|
date: string;
|
|
342
|
+
activeId: string;
|
|
342
343
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
343
344
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
344
|
-
activeId: string;
|
|
345
345
|
}[];
|
|
346
346
|
workerId: string;
|
|
347
347
|
actorId: string;
|
|
@@ -349,17 +349,17 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
349
349
|
openedAt: string;
|
|
350
350
|
};
|
|
351
351
|
}, {
|
|
352
|
-
id: string;
|
|
353
352
|
createdAt: string;
|
|
353
|
+
id: string;
|
|
354
354
|
kind: "ACTIVE_STATUS";
|
|
355
355
|
refId: string;
|
|
356
356
|
payload: {
|
|
357
357
|
workerName: string | null;
|
|
358
358
|
entries: {
|
|
359
359
|
date: string;
|
|
360
|
+
activeId: string;
|
|
360
361
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
361
362
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
362
|
-
activeId: string;
|
|
363
363
|
}[];
|
|
364
364
|
workerId: string;
|
|
365
365
|
actorId: string;
|
|
@@ -388,8 +388,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
388
388
|
}>;
|
|
389
389
|
createdAt: z.ZodString;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
id: string;
|
|
392
391
|
createdAt: string;
|
|
392
|
+
id: string;
|
|
393
393
|
kind: "AI_MERGE_MISMATCH";
|
|
394
394
|
refId: string;
|
|
395
395
|
payload: {
|
|
@@ -399,8 +399,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
399
399
|
workerNames: string[];
|
|
400
400
|
};
|
|
401
401
|
}, {
|
|
402
|
-
id: string;
|
|
403
402
|
createdAt: string;
|
|
403
|
+
id: string;
|
|
404
404
|
kind: "AI_MERGE_MISMATCH";
|
|
405
405
|
refId: string;
|
|
406
406
|
payload: {
|
|
@@ -431,8 +431,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
431
431
|
}>;
|
|
432
432
|
createdAt: z.ZodString;
|
|
433
433
|
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
id: string;
|
|
435
434
|
createdAt: string;
|
|
435
|
+
id: string;
|
|
436
436
|
kind: "AI_MERGE_APPLIED";
|
|
437
437
|
refId: string;
|
|
438
438
|
payload: {
|
|
@@ -442,8 +442,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
442
442
|
workerNames: string[];
|
|
443
443
|
};
|
|
444
444
|
}, {
|
|
445
|
-
id: string;
|
|
446
445
|
createdAt: string;
|
|
446
|
+
id: string;
|
|
447
447
|
kind: "AI_MERGE_APPLIED";
|
|
448
448
|
refId: string;
|
|
449
449
|
payload: {
|
|
@@ -456,17 +456,17 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
456
456
|
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
457
457
|
}, "strip", z.ZodTypeAny, {
|
|
458
458
|
items: ({
|
|
459
|
-
id: string;
|
|
460
459
|
createdAt: string;
|
|
460
|
+
id: string;
|
|
461
461
|
kind: "ACTIVE_STATUS";
|
|
462
462
|
refId: string;
|
|
463
463
|
payload: {
|
|
464
464
|
workerName: string | null;
|
|
465
465
|
entries: {
|
|
466
466
|
date: string;
|
|
467
|
+
activeId: string;
|
|
467
468
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
468
469
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
469
|
-
activeId: string;
|
|
470
470
|
}[];
|
|
471
471
|
workerId: string;
|
|
472
472
|
actorId: string;
|
|
@@ -474,8 +474,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
474
474
|
openedAt: string;
|
|
475
475
|
};
|
|
476
476
|
} | {
|
|
477
|
-
id: string;
|
|
478
477
|
createdAt: string;
|
|
478
|
+
id: string;
|
|
479
479
|
kind: "AI_MERGE_MISMATCH";
|
|
480
480
|
refId: string;
|
|
481
481
|
payload: {
|
|
@@ -485,8 +485,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
485
485
|
workerNames: string[];
|
|
486
486
|
};
|
|
487
487
|
} | {
|
|
488
|
-
id: string;
|
|
489
488
|
createdAt: string;
|
|
489
|
+
id: string;
|
|
490
490
|
kind: "AI_MERGE_APPLIED";
|
|
491
491
|
refId: string;
|
|
492
492
|
payload: {
|
|
@@ -499,17 +499,17 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
499
499
|
lastSeenAt: string | null;
|
|
500
500
|
}, {
|
|
501
501
|
items: ({
|
|
502
|
-
id: string;
|
|
503
502
|
createdAt: string;
|
|
503
|
+
id: string;
|
|
504
504
|
kind: "ACTIVE_STATUS";
|
|
505
505
|
refId: string;
|
|
506
506
|
payload: {
|
|
507
507
|
workerName: string | null;
|
|
508
508
|
entries: {
|
|
509
509
|
date: string;
|
|
510
|
+
activeId: string;
|
|
510
511
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
511
512
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
512
|
-
activeId: string;
|
|
513
513
|
}[];
|
|
514
514
|
workerId: string;
|
|
515
515
|
actorId: string;
|
|
@@ -517,8 +517,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
517
517
|
openedAt: string;
|
|
518
518
|
};
|
|
519
519
|
} | {
|
|
520
|
-
id: string;
|
|
521
520
|
createdAt: string;
|
|
521
|
+
id: string;
|
|
522
522
|
kind: "AI_MERGE_MISMATCH";
|
|
523
523
|
refId: string;
|
|
524
524
|
payload: {
|
|
@@ -528,8 +528,8 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
528
528
|
workerNames: string[];
|
|
529
529
|
};
|
|
530
530
|
} | {
|
|
531
|
-
id: string;
|
|
532
531
|
createdAt: string;
|
|
532
|
+
id: string;
|
|
533
533
|
kind: "AI_MERGE_APPLIED";
|
|
534
534
|
refId: string;
|
|
535
535
|
payload: {
|
|
@@ -543,6 +543,9 @@ export declare const NotificationListResponseSchema: z.ZodObject<{
|
|
|
543
543
|
}>;
|
|
544
544
|
export declare const notificationsContract: {
|
|
545
545
|
list: {
|
|
546
|
+
metadata: {
|
|
547
|
+
tags: string[];
|
|
548
|
+
};
|
|
546
549
|
query: z.ZodObject<{
|
|
547
550
|
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
548
551
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -550,9 +553,6 @@ export declare const notificationsContract: {
|
|
|
550
553
|
}, {
|
|
551
554
|
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
552
555
|
}>;
|
|
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";
|
|
@@ -600,22 +600,22 @@ 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;
|
|
603
604
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
604
605
|
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;
|
|
608
609
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
609
610
|
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
613
|
workerName: string | null;
|
|
614
614
|
entries: {
|
|
615
615
|
date: string;
|
|
616
|
+
activeId: string;
|
|
616
617
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
617
618
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
618
|
-
activeId: string;
|
|
619
619
|
}[];
|
|
620
620
|
workerId: string;
|
|
621
621
|
actorId: string;
|
|
@@ -625,9 +625,9 @@ export declare const notificationsContract: {
|
|
|
625
625
|
workerName: string | null;
|
|
626
626
|
entries: {
|
|
627
627
|
date: string;
|
|
628
|
+
activeId: string;
|
|
628
629
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
629
630
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
630
|
-
activeId: string;
|
|
631
631
|
}[];
|
|
632
632
|
workerId: string;
|
|
633
633
|
actorId: string;
|
|
@@ -636,17 +636,17 @@ export declare const notificationsContract: {
|
|
|
636
636
|
}>;
|
|
637
637
|
createdAt: z.ZodString;
|
|
638
638
|
}, "strip", z.ZodTypeAny, {
|
|
639
|
-
id: string;
|
|
640
639
|
createdAt: string;
|
|
640
|
+
id: string;
|
|
641
641
|
kind: "ACTIVE_STATUS";
|
|
642
642
|
refId: string;
|
|
643
643
|
payload: {
|
|
644
644
|
workerName: string | null;
|
|
645
645
|
entries: {
|
|
646
646
|
date: string;
|
|
647
|
+
activeId: string;
|
|
647
648
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
648
649
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
649
|
-
activeId: string;
|
|
650
650
|
}[];
|
|
651
651
|
workerId: string;
|
|
652
652
|
actorId: string;
|
|
@@ -654,17 +654,17 @@ export declare const notificationsContract: {
|
|
|
654
654
|
openedAt: string;
|
|
655
655
|
};
|
|
656
656
|
}, {
|
|
657
|
-
id: string;
|
|
658
657
|
createdAt: string;
|
|
658
|
+
id: string;
|
|
659
659
|
kind: "ACTIVE_STATUS";
|
|
660
660
|
refId: string;
|
|
661
661
|
payload: {
|
|
662
662
|
workerName: string | null;
|
|
663
663
|
entries: {
|
|
664
664
|
date: string;
|
|
665
|
+
activeId: string;
|
|
665
666
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
666
667
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
667
|
-
activeId: string;
|
|
668
668
|
}[];
|
|
669
669
|
workerId: string;
|
|
670
670
|
actorId: string;
|
|
@@ -693,8 +693,8 @@ export declare const notificationsContract: {
|
|
|
693
693
|
}>;
|
|
694
694
|
createdAt: z.ZodString;
|
|
695
695
|
}, "strip", z.ZodTypeAny, {
|
|
696
|
-
id: string;
|
|
697
696
|
createdAt: string;
|
|
697
|
+
id: string;
|
|
698
698
|
kind: "AI_MERGE_MISMATCH";
|
|
699
699
|
refId: string;
|
|
700
700
|
payload: {
|
|
@@ -704,8 +704,8 @@ export declare const notificationsContract: {
|
|
|
704
704
|
workerNames: string[];
|
|
705
705
|
};
|
|
706
706
|
}, {
|
|
707
|
-
id: string;
|
|
708
707
|
createdAt: string;
|
|
708
|
+
id: string;
|
|
709
709
|
kind: "AI_MERGE_MISMATCH";
|
|
710
710
|
refId: string;
|
|
711
711
|
payload: {
|
|
@@ -736,8 +736,8 @@ export declare const notificationsContract: {
|
|
|
736
736
|
}>;
|
|
737
737
|
createdAt: z.ZodString;
|
|
738
738
|
}, "strip", z.ZodTypeAny, {
|
|
739
|
-
id: string;
|
|
740
739
|
createdAt: string;
|
|
740
|
+
id: string;
|
|
741
741
|
kind: "AI_MERGE_APPLIED";
|
|
742
742
|
refId: string;
|
|
743
743
|
payload: {
|
|
@@ -747,8 +747,8 @@ export declare const notificationsContract: {
|
|
|
747
747
|
workerNames: string[];
|
|
748
748
|
};
|
|
749
749
|
}, {
|
|
750
|
-
id: string;
|
|
751
750
|
createdAt: string;
|
|
751
|
+
id: string;
|
|
752
752
|
kind: "AI_MERGE_APPLIED";
|
|
753
753
|
refId: string;
|
|
754
754
|
payload: {
|
|
@@ -761,17 +761,17 @@ export declare const notificationsContract: {
|
|
|
761
761
|
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
762
762
|
}, "strip", z.ZodTypeAny, {
|
|
763
763
|
items: ({
|
|
764
|
-
id: string;
|
|
765
764
|
createdAt: string;
|
|
765
|
+
id: string;
|
|
766
766
|
kind: "ACTIVE_STATUS";
|
|
767
767
|
refId: string;
|
|
768
768
|
payload: {
|
|
769
769
|
workerName: string | null;
|
|
770
770
|
entries: {
|
|
771
771
|
date: string;
|
|
772
|
+
activeId: string;
|
|
772
773
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
773
774
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
774
|
-
activeId: string;
|
|
775
775
|
}[];
|
|
776
776
|
workerId: string;
|
|
777
777
|
actorId: string;
|
|
@@ -779,8 +779,8 @@ export declare const notificationsContract: {
|
|
|
779
779
|
openedAt: string;
|
|
780
780
|
};
|
|
781
781
|
} | {
|
|
782
|
-
id: string;
|
|
783
782
|
createdAt: string;
|
|
783
|
+
id: string;
|
|
784
784
|
kind: "AI_MERGE_MISMATCH";
|
|
785
785
|
refId: string;
|
|
786
786
|
payload: {
|
|
@@ -790,8 +790,8 @@ export declare const notificationsContract: {
|
|
|
790
790
|
workerNames: string[];
|
|
791
791
|
};
|
|
792
792
|
} | {
|
|
793
|
-
id: string;
|
|
794
793
|
createdAt: string;
|
|
794
|
+
id: string;
|
|
795
795
|
kind: "AI_MERGE_APPLIED";
|
|
796
796
|
refId: string;
|
|
797
797
|
payload: {
|
|
@@ -804,17 +804,17 @@ export declare const notificationsContract: {
|
|
|
804
804
|
lastSeenAt: string | null;
|
|
805
805
|
}, {
|
|
806
806
|
items: ({
|
|
807
|
-
id: string;
|
|
808
807
|
createdAt: string;
|
|
808
|
+
id: string;
|
|
809
809
|
kind: "ACTIVE_STATUS";
|
|
810
810
|
refId: string;
|
|
811
811
|
payload: {
|
|
812
812
|
workerName: string | null;
|
|
813
813
|
entries: {
|
|
814
814
|
date: string;
|
|
815
|
+
activeId: string;
|
|
815
816
|
fromStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE" | null;
|
|
816
817
|
toStatus: "ACTIVE" | "PENDING" | "VACATION" | "LEFT_THE_SITE" | "MEDICAL_LEAVE" | "DAY_OFF" | "INJURY" | "OFF_SCHEDULE";
|
|
817
|
-
activeId: string;
|
|
818
818
|
}[];
|
|
819
819
|
workerId: string;
|
|
820
820
|
actorId: string;
|
|
@@ -822,8 +822,8 @@ export declare const notificationsContract: {
|
|
|
822
822
|
openedAt: string;
|
|
823
823
|
};
|
|
824
824
|
} | {
|
|
825
|
-
id: string;
|
|
826
825
|
createdAt: string;
|
|
826
|
+
id: string;
|
|
827
827
|
kind: "AI_MERGE_MISMATCH";
|
|
828
828
|
refId: string;
|
|
829
829
|
payload: {
|
|
@@ -833,8 +833,8 @@ export declare const notificationsContract: {
|
|
|
833
833
|
workerNames: string[];
|
|
834
834
|
};
|
|
835
835
|
} | {
|
|
836
|
-
id: string;
|
|
837
836
|
createdAt: string;
|
|
837
|
+
id: string;
|
|
838
838
|
kind: "AI_MERGE_APPLIED";
|
|
839
839
|
refId: string;
|
|
840
840
|
payload: {
|
|
@@ -943,6 +943,9 @@ export declare const notificationsContract: {
|
|
|
943
943
|
};
|
|
944
944
|
};
|
|
945
945
|
dismissAll: {
|
|
946
|
+
metadata: {
|
|
947
|
+
tags: string[];
|
|
948
|
+
};
|
|
946
949
|
query: z.ZodObject<{
|
|
947
950
|
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
948
951
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -950,9 +953,6 @@ export declare const notificationsContract: {
|
|
|
950
953
|
}, {
|
|
951
954
|
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
952
955
|
}>;
|
|
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, {}, {}>;
|
|
@@ -987,6 +987,9 @@ export declare const notificationsContract: {
|
|
|
987
987
|
};
|
|
988
988
|
};
|
|
989
989
|
markAllSeen: {
|
|
990
|
+
metadata: {
|
|
991
|
+
tags: string[];
|
|
992
|
+
};
|
|
990
993
|
query: z.ZodObject<{
|
|
991
994
|
kind: z.ZodEnum<["ACTIVE_STATUS", "AI_MERGE_MISMATCH", "AI_MERGE_APPLIED"]>;
|
|
992
995
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -994,9 +997,6 @@ export declare const notificationsContract: {
|
|
|
994
997
|
}, {
|
|
995
998
|
kind: "ACTIVE_STATUS" | "AI_MERGE_MISMATCH" | "AI_MERGE_APPLIED";
|
|
996
999
|
}>;
|
|
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, {}, {}>;
|
|
@@ -17,6 +17,39 @@ const widened = outreach_contract_1.ClaimNextOutreachBodySchema.safeParse({
|
|
|
17
17
|
node_assert_1.default.ok(widened.success);
|
|
18
18
|
node_assert_1.default.equal(Object.prototype.hasOwnProperty.call(widened.data, 'maxCommuteMinutes'), false);
|
|
19
19
|
node_assert_1.default.ok(!outreach_contract_1.ClaimNextOutreachBodySchema.safeParse({}).success);
|
|
20
|
+
// The agent lane is a separate, strict envelope. These fields are the frozen
|
|
21
|
+
// proof of the exact Hub reservation that authorized this launch; ordinary
|
|
22
|
+
// legacy claim callers never need (and cannot accidentally acquire) it.
|
|
23
|
+
const AGENT_CLAIM_BODY = {
|
|
24
|
+
deviceId: 'rack-01',
|
|
25
|
+
authority: {
|
|
26
|
+
launchId: '0ce54488-598f-49a9-8c1a-ff843799c206',
|
|
27
|
+
campaignId: '0ce54488-598f-49a9-8c1a-ff843799c206',
|
|
28
|
+
jobId: 'b683831e-c98c-44c0-b75d-bd0356713f4e',
|
|
29
|
+
claimedLifecycleVersion: 7,
|
|
30
|
+
reservationCorrelationId: '9d84efb7-1ef1-4450-ad4d-22297806781f',
|
|
31
|
+
assignedPodId: '771db561-0701-4469-9e49-de618a07f8ac',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
node_assert_1.default.ok(outreach_contract_1.AgentClaimNextOutreachBodySchema.safeParse(AGENT_CLAIM_BODY).success);
|
|
35
|
+
node_assert_1.default.ok(!outreach_contract_1.AgentClaimNextOutreachBodySchema.safeParse({
|
|
36
|
+
...AGENT_CLAIM_BODY,
|
|
37
|
+
authority: {
|
|
38
|
+
...AGENT_CLAIM_BODY.authority,
|
|
39
|
+
campaignId: 'bb49aedf-e17b-45bf-9087-5bf18ec7e2f0',
|
|
40
|
+
},
|
|
41
|
+
}).success, 'campaign and launch identities are one stable authority');
|
|
42
|
+
node_assert_1.default.ok(!outreach_contract_1.AgentClaimNextOutreachBodySchema.safeParse({
|
|
43
|
+
...AGENT_CLAIM_BODY,
|
|
44
|
+
maxCommuteMinutes: 240,
|
|
45
|
+
}).success, 'agent authority rejects rather than strips unexpected widening fields');
|
|
46
|
+
node_assert_1.default.ok(!outreach_contract_1.AgentClaimNextOutreachBodySchema.safeParse({
|
|
47
|
+
deviceId: AGENT_CLAIM_BODY.deviceId,
|
|
48
|
+
authority: {
|
|
49
|
+
...AGENT_CLAIM_BODY.authority,
|
|
50
|
+
claimedLifecycleVersion: -1,
|
|
51
|
+
},
|
|
52
|
+
}).success);
|
|
20
53
|
// --- TTL -------------------------------------------------------------------
|
|
21
54
|
node_assert_1.default.equal(outreach_contract_1.OUTREACH_LEASE_TTL_MINUTES, 15);
|
|
22
55
|
// --- CLAIMED ---------------------------------------------------------------
|