@dakkitor/api-contracts 1.7.1 → 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 +50 -19
- package/dist/abilities/interconnection.abilities.json +6 -0
- package/dist/abilities/outreach.abilities.json +0 -7
- package/dist/abilities/second-agent.abilities.json +18 -91
- package/dist/abilities/team-leads.json +1 -0
- package/dist/abilities/worker-curator.abilities.json +2 -0
- package/dist/actives/actives.contract.d.ts +7083 -6905
- package/dist/actives/actives.contract.d.ts.map +1 -1
- package/dist/agent-client-links/agent-client-links.contract.d.ts +1645 -1543
- package/dist/agent-client-links/agent-client-links.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.d.ts +73 -67
- package/dist/auth/auth.contract.d.ts.map +1 -1
- package/dist/auth/auth.contract.js +1 -0
- package/dist/bookings/backdate-guard.spec.d.ts +2 -0
- package/dist/bookings/backdate-guard.spec.d.ts.map +1 -0
- package/dist/bookings/backdate-guard.spec.js +80 -0
- package/dist/bookings/bookings.contract.d.ts +11169 -10843
- package/dist/bookings/bookings.contract.d.ts.map +1 -1
- package/dist/bookings/bookings.contract.js +26 -2
- package/dist/call-history/call-history.contract.d.ts +913 -876
- package/dist/call-history/call-history.contract.d.ts.map +1 -1
- package/dist/calls-feed/calls-feed.contract.d.ts +126 -119
- 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/client-contacts/client-contacts.contract.d.ts +290 -290
- package/dist/clients/clients.contract.d.ts +110 -110
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts +3052 -2948
- package/dist/collaboration-checkings/collaboration-checkings.contract.d.ts.map +1 -1
- package/dist/collaborations/collaborations.contract.d.ts +2640 -2543
- package/dist/collaborations/collaborations.contract.d.ts.map +1 -1
- package/dist/common/common-schemas.d.ts +13 -13
- package/dist/common/common-schemas.d.ts.map +1 -1
- package/dist/common/common-schemas.js +1 -0
- package/dist/common/nino.d.ts +8 -0
- package/dist/common/nino.d.ts.map +1 -0
- package/dist/common/nino.js +26 -0
- package/dist/common/nino.spec.d.ts +2 -0
- package/dist/common/nino.spec.d.ts.map +1 -0
- package/dist/common/nino.spec.js +32 -0
- package/dist/companies/companies.contract.d.ts +30 -30
- package/dist/crews/crews.contract.d.ts +300 -300
- package/dist/cron-executions/cron-executions.contract.d.ts +26 -13
- package/dist/cron-executions/cron-executions.contract.d.ts.map +1 -1
- package/dist/cron-executions/cron-executions.contract.js +2 -0
- package/dist/cron-executions/cron-executions.contract.spec.d.ts +2 -0
- package/dist/cron-executions/cron-executions.contract.spec.d.ts.map +1 -0
- package/dist/cron-executions/cron-executions.contract.spec.js +27 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.d.ts +2 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/candidate-booking-date-fields.spec.js +59 -0
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts +3483 -2798
- package/dist/curated-worker-leads/candidate-coordination.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/candidate-coordination.contract.js +59 -10
- package/dist/curated-worker-leads/candidate-coordination.contract.spec.js +11 -0
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts +429 -386
- package/dist/curated-worker-leads/candidate-edit-session.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/contact-history.spec.js +56 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts +2 -85
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.js +17 -41
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.d.ts +2 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.d.ts.map +1 -0
- package/dist/curated-worker-leads/curated-worker-lead-config.contract.spec.js +30 -0
- package/dist/curated-worker-leads/job-feed-match-counts.contract.spec.js +30 -0
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts +5821 -5144
- package/dist/curated-worker-leads/jobs-tab.contract.d.ts.map +1 -1
- package/dist/curated-worker-leads/jobs-tab.contract.js +64 -12
- package/dist/curated-worker-leads/owned-jobs-tab.contract.d.ts +96 -96
- package/dist/curated-workers/curated-workers.contract.d.ts +1518 -1307
- package/dist/curated-workers/curated-workers.contract.d.ts.map +1 -1
- package/dist/curated-workers/curated-workers.contract.js +37 -6
- package/dist/dashboards/dashboard-widgets.contract.d.ts +425 -455
- package/dist/dashboards/dashboard-widgets.contract.d.ts.map +1 -1
- package/dist/dashboards/dashboard-widgets.contract.js +1 -11
- package/dist/dashboards/dashboard-widgets.retirement.spec.d.ts +2 -0
- package/dist/dashboards/dashboard-widgets.retirement.spec.d.ts.map +1 -0
- package/dist/dashboards/dashboard-widgets.retirement.spec.js +22 -0
- package/dist/dashboards/dashboard.contract.d.ts +16 -16
- package/dist/document-intake/document-intake.automation.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.automation.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.automation.spec.js +469 -0
- package/dist/document-intake/document-intake.card-side.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.card-side.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.card-side.spec.js +51 -0
- package/dist/document-intake/document-intake.contract.d.ts +9421 -1071
- package/dist/document-intake/document-intake.contract.d.ts.map +1 -1
- package/dist/document-intake/document-intake.contract.js +219 -5
- package/dist/document-intake/document-intake.contract.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.contract.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.contract.spec.js +37 -0
- package/dist/document-intake/document-intake.nino.spec.d.ts +2 -0
- package/dist/document-intake/document-intake.nino.spec.d.ts.map +1 -0
- package/dist/document-intake/document-intake.nino.spec.js +42 -0
- package/dist/export-jobs/export-jobs.contract.d.ts +670 -670
- package/dist/exports-events/exports-events.schemas.d.ts +4 -4
- package/dist/files/files.contract.d.ts +36 -36
- package/dist/index.d.ts +21 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -9
- package/dist/job-clusters/job-clusters.contract.d.ts +52 -52
- package/dist/jobs/jobs.contract.d.ts +8714 -8456
- package/dist/jobs/jobs.contract.d.ts.map +1 -1
- package/dist/kpi-impersonation/kpi-impersonation.contract.d.ts +102 -102
- package/dist/lead-assignments/lead-assignments.contract.d.ts +1290 -1219
- package/dist/lead-assignments/lead-assignments.contract.d.ts.map +1 -1
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts +330 -306
- package/dist/lead-distribution/agent-lead-distribution.contract.d.ts.map +1 -1
- package/dist/lead-distribution/lead-distribution-config.contract.d.ts +10 -10
- package/dist/leads/leads.contract.d.ts +245 -245
- package/dist/locations/locations.contract.d.ts +46 -46
- package/dist/notifications/notifications.contract.d.ts +85 -85
- package/dist/offices/offices.contract.d.ts +24 -24
- package/dist/outreach/__tests__/outreach-claim.test.js +33 -0
- package/dist/outreach/__tests__/outreach-contract-additions.spec.js +27 -0
- package/dist/outreach/__tests__/outreach-routes.test.js +8 -0
- package/dist/outreach/lab-outreach.contract.d.ts +48 -48
- package/dist/outreach/outreach-requests.contract.d.ts +272 -272
- package/dist/outreach/outreach-requests.schemas.d.ts +14 -14
- 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/outreach.schemas.d.ts +2 -2
- package/dist/outreach/relay-hub-outreach.contract.d.ts +1334 -0
- package/dist/outreach/relay-hub-outreach.contract.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.contract.js +113 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.d.ts +2 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.d.ts.map +1 -0
- package/dist/outreach/relay-hub-outreach.contract.spec.js +145 -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 +1152 -1067
- package/dist/own-research/own-research.contract.d.ts.map +1 -1
- package/dist/own-research/own-research.contract.js +6 -1
- package/dist/proofs/proofs.contract.d.ts +196 -196
- package/dist/proofs/proofs.dtos.d.ts +104 -104
- package/dist/qualifications/qualifications.contract.d.ts +22 -22
- package/dist/realtime/realtime-telemetry.contract.d.ts +181 -0
- package/dist/realtime/realtime-telemetry.contract.d.ts.map +1 -0
- package/dist/realtime/realtime-telemetry.contract.js +81 -0
- package/dist/realtime/realtime-telemetry.contract.spec.d.ts +2 -0
- package/dist/realtime/realtime-telemetry.contract.spec.d.ts.map +1 -0
- package/dist/realtime/realtime-telemetry.contract.spec.js +41 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.d.ts +9 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.d.ts.map +1 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.js +17 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.d.ts +2 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.d.ts.map +1 -0
- package/dist/relay-pods/build-relay-pod-membership-rules.spec.js +20 -0
- package/dist/relay-pods/relay-hub.contract.d.ts +1463 -0
- package/dist/relay-pods/relay-hub.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.contract.js +140 -0
- package/dist/relay-pods/relay-hub.contract.spec.d.ts +2 -0
- package/dist/relay-pods/relay-hub.contract.spec.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.contract.spec.js +180 -0
- package/dist/relay-pods/relay-hub.schemas.d.ts +577 -0
- package/dist/relay-pods/relay-hub.schemas.d.ts.map +1 -0
- package/dist/relay-pods/relay-hub.schemas.js +158 -0
- package/dist/relay-pods/relay-lab-fleet.contract.d.ts +81 -81
- package/dist/relay-pods/relay-lab-fleet.schemas.d.ts +53 -53
- package/dist/{curated-worker-leads/lead-agent-area.contract.d.ts → relay-pods/relay-pod-members.contract.d.ts} +233 -126
- package/dist/relay-pods/relay-pod-members.contract.d.ts.map +1 -0
- package/dist/relay-pods/relay-pod-members.contract.js +73 -0
- package/dist/relay-pods/relay-pod-sessions.contract.d.ts +58 -58
- package/dist/relay-pods/relay-pods.contract.d.ts +169 -169
- package/dist/relay-pods/relay-pods.schemas.d.ts +46 -46
- package/dist/shared/summary-schemas.d.ts +10 -10
- package/dist/sheets-sync/__tests__/sheets-sync-events.schemas.test.js +22 -2
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts +30 -0
- package/dist/sheets-sync/sheets-sync-events.schemas.d.ts.map +1 -1
- package/dist/sheets-sync/sheets-sync-events.schemas.js +16 -1
- package/dist/sheets-sync/sheets-sync.contract.d.ts +829 -262
- package/dist/sheets-sync/sheets-sync.contract.d.ts.map +1 -1
- package/dist/sheets-sync/sheets-sync.contract.js +156 -34
- package/dist/telegram/telegram.contract.d.ts +12 -12
- package/dist/trades/trades.contract.d.ts +16 -16
- package/dist/user-access-grants/user-access-grants.contract.d.ts +383 -383
- package/dist/users/__tests__/assignable-roles.spec.js +1 -1
- package/dist/users/users.contract.d.ts +462 -431
- package/dist/users/users.contract.d.ts.map +1 -1
- package/dist/users/users.contract.js +19 -8
- package/dist/users/users.contract.spec.js +54 -0
- package/dist/voice-screener/voice-screener.contract.d.ts +237 -0
- package/dist/voice-screener/voice-screener.contract.d.ts.map +1 -0
- package/dist/voice-screener/voice-screener.contract.js +89 -0
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts +500 -260
- package/dist/worker-identity-cases/worker-identity-cases.contract.d.ts.map +1 -1
- package/dist/worker-identity-cases/worker-identity-cases.contract.js +17 -1
- package/dist/worker-merge-proposals/worker-merge-proposals.contract.d.ts +130 -130
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.contract.d.ts +151 -151
- package/dist/worker-source-identity-conflicts/worker-source-identity-conflicts.schemas.d.ts +15 -15
- package/dist/workers/do-not-contact.contract.d.ts +4 -4
- package/dist/workers/qualification-back-proof.spec.d.ts +2 -0
- package/dist/workers/qualification-back-proof.spec.d.ts.map +1 -0
- package/dist/workers/qualification-back-proof.spec.js +39 -0
- package/dist/workers/workers.contract.d.ts +3416 -3178
- package/dist/workers/workers.contract.d.ts.map +1 -1
- package/dist/workers/workers.contract.js +17 -0
- package/package.json +1 -1
- package/dist/curated-worker-leads/consent-queue.contract.d.ts +0 -4527
- package/dist/curated-worker-leads/consent-queue.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/consent-queue.contract.js +0 -201
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts +0 -135
- package/dist/curated-worker-leads/curated-worker-leads.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/curated-worker-leads.contract.js +0 -32
- package/dist/curated-worker-leads/lead-agent-area.contract.d.ts.map +0 -1
- package/dist/curated-worker-leads/lead-agent-area.contract.js +0 -51
|
@@ -9,21 +9,21 @@ export declare const RelayPodSummarySchema: z.ZodObject<{
|
|
|
9
9
|
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
10
10
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
11
11
|
}, "strict", z.ZodTypeAny, {
|
|
12
|
+
status: "ACTIVE" | "INACTIVE";
|
|
12
13
|
id: string;
|
|
13
14
|
slug: string;
|
|
14
15
|
displayName: string;
|
|
15
16
|
ownerUserId: string;
|
|
16
17
|
ownerName: string | null;
|
|
17
18
|
publicBaseUrl: string;
|
|
18
|
-
status: "ACTIVE" | "INACTIVE";
|
|
19
19
|
}, {
|
|
20
|
+
status: "ACTIVE" | "INACTIVE";
|
|
20
21
|
id: string;
|
|
21
22
|
slug: string;
|
|
22
23
|
displayName: string;
|
|
23
24
|
ownerUserId: string;
|
|
24
25
|
ownerName: string | null;
|
|
25
26
|
publicBaseUrl: string;
|
|
26
|
-
status: "ACTIVE" | "INACTIVE";
|
|
27
27
|
}>;
|
|
28
28
|
export declare const RelayPodCredentialMetadataSchema: z.ZodObject<{
|
|
29
29
|
id: z.ZodString;
|
|
@@ -34,18 +34,18 @@ export declare const RelayPodCredentialMetadataSchema: z.ZodObject<{
|
|
|
34
34
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
35
35
|
}, "strict", z.ZodTypeAny, {
|
|
36
36
|
id: string;
|
|
37
|
-
tokenIdentifier: string;
|
|
38
37
|
createdAt: string;
|
|
39
38
|
expiresAt: string | null;
|
|
40
39
|
revokedAt: string | null;
|
|
41
40
|
lastUsedAt: string | null;
|
|
41
|
+
tokenIdentifier: string;
|
|
42
42
|
}, {
|
|
43
43
|
id: string;
|
|
44
|
-
tokenIdentifier: string;
|
|
45
44
|
createdAt: string;
|
|
46
45
|
expiresAt: string | null;
|
|
47
46
|
revokedAt: string | null;
|
|
48
47
|
lastUsedAt: string | null;
|
|
48
|
+
tokenIdentifier: string;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const RelayPodCredentialCreatedSchema: z.ZodObject<{
|
|
51
51
|
credential: z.ZodObject<{
|
|
@@ -57,38 +57,38 @@ export declare const RelayPodCredentialCreatedSchema: z.ZodObject<{
|
|
|
57
57
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
58
58
|
}, "strict", z.ZodTypeAny, {
|
|
59
59
|
id: string;
|
|
60
|
-
tokenIdentifier: string;
|
|
61
60
|
createdAt: string;
|
|
62
61
|
expiresAt: string | null;
|
|
63
62
|
revokedAt: string | null;
|
|
64
63
|
lastUsedAt: string | null;
|
|
64
|
+
tokenIdentifier: string;
|
|
65
65
|
}, {
|
|
66
66
|
id: string;
|
|
67
|
-
tokenIdentifier: string;
|
|
68
67
|
createdAt: string;
|
|
69
68
|
expiresAt: string | null;
|
|
70
69
|
revokedAt: string | null;
|
|
71
70
|
lastUsedAt: string | null;
|
|
71
|
+
tokenIdentifier: string;
|
|
72
72
|
}>;
|
|
73
73
|
token: z.ZodString;
|
|
74
74
|
}, "strict", z.ZodTypeAny, {
|
|
75
75
|
credential: {
|
|
76
76
|
id: string;
|
|
77
|
-
tokenIdentifier: string;
|
|
78
77
|
createdAt: string;
|
|
79
78
|
expiresAt: string | null;
|
|
80
79
|
revokedAt: string | null;
|
|
81
80
|
lastUsedAt: string | null;
|
|
81
|
+
tokenIdentifier: string;
|
|
82
82
|
};
|
|
83
83
|
token: string;
|
|
84
84
|
}, {
|
|
85
85
|
credential: {
|
|
86
86
|
id: string;
|
|
87
|
-
tokenIdentifier: string;
|
|
88
87
|
createdAt: string;
|
|
89
88
|
expiresAt: string | null;
|
|
90
89
|
revokedAt: string | null;
|
|
91
90
|
lastUsedAt: string | null;
|
|
91
|
+
tokenIdentifier: string;
|
|
92
92
|
};
|
|
93
93
|
token: string;
|
|
94
94
|
}>;
|
|
@@ -110,57 +110,57 @@ export declare const RelayPodSchema: z.ZodObject<{
|
|
|
110
110
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
111
111
|
}, "strict", z.ZodTypeAny, {
|
|
112
112
|
id: string;
|
|
113
|
-
tokenIdentifier: string;
|
|
114
113
|
createdAt: string;
|
|
115
114
|
expiresAt: string | null;
|
|
116
115
|
revokedAt: string | null;
|
|
117
116
|
lastUsedAt: string | null;
|
|
117
|
+
tokenIdentifier: string;
|
|
118
118
|
}, {
|
|
119
119
|
id: string;
|
|
120
|
-
tokenIdentifier: string;
|
|
121
120
|
createdAt: string;
|
|
122
121
|
expiresAt: string | null;
|
|
123
122
|
revokedAt: string | null;
|
|
124
123
|
lastUsedAt: string | null;
|
|
124
|
+
tokenIdentifier: string;
|
|
125
125
|
}>, "many">;
|
|
126
126
|
createdAt: z.ZodString;
|
|
127
127
|
updatedAt: z.ZodString;
|
|
128
128
|
}, "strict", z.ZodTypeAny, {
|
|
129
|
+
status: "ACTIVE" | "INACTIVE";
|
|
129
130
|
id: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
createdAt: string;
|
|
130
133
|
slug: string;
|
|
131
134
|
displayName: string;
|
|
132
135
|
ownerUserId: string;
|
|
133
136
|
ownerName: string | null;
|
|
134
137
|
publicBaseUrl: string;
|
|
135
|
-
status: "ACTIVE" | "INACTIVE";
|
|
136
|
-
createdAt: string;
|
|
137
138
|
credentials: {
|
|
138
139
|
id: string;
|
|
139
|
-
tokenIdentifier: string;
|
|
140
140
|
createdAt: string;
|
|
141
141
|
expiresAt: string | null;
|
|
142
142
|
revokedAt: string | null;
|
|
143
143
|
lastUsedAt: string | null;
|
|
144
|
+
tokenIdentifier: string;
|
|
144
145
|
}[];
|
|
145
|
-
updatedAt: string;
|
|
146
146
|
}, {
|
|
147
|
+
status: "ACTIVE" | "INACTIVE";
|
|
147
148
|
id: string;
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
createdAt: string;
|
|
148
151
|
slug: string;
|
|
149
152
|
displayName: string;
|
|
150
153
|
ownerUserId: string;
|
|
151
154
|
ownerName: string | null;
|
|
152
155
|
publicBaseUrl: string;
|
|
153
|
-
status: "ACTIVE" | "INACTIVE";
|
|
154
|
-
createdAt: string;
|
|
155
156
|
credentials: {
|
|
156
157
|
id: string;
|
|
157
|
-
tokenIdentifier: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
expiresAt: string | null;
|
|
160
160
|
revokedAt: string | null;
|
|
161
161
|
lastUsedAt: string | null;
|
|
162
|
+
tokenIdentifier: string;
|
|
162
163
|
}[];
|
|
163
|
-
updatedAt: string;
|
|
164
164
|
}>;
|
|
165
165
|
export declare const RelayAbilityConditionsSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
166
166
|
export declare const RelayAbilityRuleSchema: z.ZodObject<{
|
|
@@ -190,14 +190,14 @@ export declare const RelayPodSessionExchangeSchema: z.ZodObject<{
|
|
|
190
190
|
impersonatedBy: z.ZodNullable<z.ZodString>;
|
|
191
191
|
}, "strict", z.ZodTypeAny, {
|
|
192
192
|
id: string;
|
|
193
|
-
displayName: string;
|
|
194
193
|
email: string;
|
|
195
194
|
impersonatedBy: string | null;
|
|
195
|
+
displayName: string;
|
|
196
196
|
}, {
|
|
197
197
|
id: string;
|
|
198
|
-
displayName: string;
|
|
199
198
|
email: string;
|
|
200
199
|
impersonatedBy: string | null;
|
|
200
|
+
displayName: string;
|
|
201
201
|
}>;
|
|
202
202
|
pod: z.ZodObject<{
|
|
203
203
|
id: z.ZodString;
|
|
@@ -208,21 +208,21 @@ export declare const RelayPodSessionExchangeSchema: z.ZodObject<{
|
|
|
208
208
|
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
209
209
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
210
210
|
}, "strict", z.ZodTypeAny, {
|
|
211
|
+
status: "ACTIVE" | "INACTIVE";
|
|
211
212
|
id: string;
|
|
212
213
|
slug: string;
|
|
213
214
|
displayName: string;
|
|
214
215
|
ownerUserId: string;
|
|
215
216
|
ownerName: string | null;
|
|
216
217
|
publicBaseUrl: string;
|
|
217
|
-
status: "ACTIVE" | "INACTIVE";
|
|
218
218
|
}, {
|
|
219
|
+
status: "ACTIVE" | "INACTIVE";
|
|
219
220
|
id: string;
|
|
220
221
|
slug: string;
|
|
221
222
|
displayName: string;
|
|
222
223
|
ownerUserId: string;
|
|
223
224
|
ownerName: string | null;
|
|
224
225
|
publicBaseUrl: string;
|
|
225
|
-
status: "ACTIVE" | "INACTIVE";
|
|
226
226
|
}>;
|
|
227
227
|
rules: z.ZodArray<z.ZodObject<{
|
|
228
228
|
action: z.ZodString;
|
|
@@ -241,23 +241,23 @@ export declare const RelayPodSessionExchangeSchema: z.ZodObject<{
|
|
|
241
241
|
inverted?: boolean | undefined;
|
|
242
242
|
}>, "many">;
|
|
243
243
|
}, "strict", z.ZodTypeAny, {
|
|
244
|
-
expiresAt: string;
|
|
245
|
-
sessionId: string;
|
|
246
|
-
accessType: "OWNER" | "ADMIN";
|
|
247
244
|
user: {
|
|
248
245
|
id: string;
|
|
249
|
-
displayName: string;
|
|
250
246
|
email: string;
|
|
251
247
|
impersonatedBy: string | null;
|
|
248
|
+
displayName: string;
|
|
252
249
|
};
|
|
250
|
+
expiresAt: string;
|
|
251
|
+
sessionId: string;
|
|
252
|
+
accessType: "ADMIN" | "OWNER";
|
|
253
253
|
pod: {
|
|
254
|
+
status: "ACTIVE" | "INACTIVE";
|
|
254
255
|
id: string;
|
|
255
256
|
slug: string;
|
|
256
257
|
displayName: string;
|
|
257
258
|
ownerUserId: string;
|
|
258
259
|
ownerName: string | null;
|
|
259
260
|
publicBaseUrl: string;
|
|
260
|
-
status: "ACTIVE" | "INACTIVE";
|
|
261
261
|
};
|
|
262
262
|
rules: {
|
|
263
263
|
action: string;
|
|
@@ -266,23 +266,23 @@ export declare const RelayPodSessionExchangeSchema: z.ZodObject<{
|
|
|
266
266
|
inverted?: boolean | undefined;
|
|
267
267
|
}[];
|
|
268
268
|
}, {
|
|
269
|
-
expiresAt: string;
|
|
270
|
-
sessionId: string;
|
|
271
|
-
accessType: "OWNER" | "ADMIN";
|
|
272
269
|
user: {
|
|
273
270
|
id: string;
|
|
274
|
-
displayName: string;
|
|
275
271
|
email: string;
|
|
276
272
|
impersonatedBy: string | null;
|
|
273
|
+
displayName: string;
|
|
277
274
|
};
|
|
275
|
+
expiresAt: string;
|
|
276
|
+
sessionId: string;
|
|
277
|
+
accessType: "ADMIN" | "OWNER";
|
|
278
278
|
pod: {
|
|
279
|
+
status: "ACTIVE" | "INACTIVE";
|
|
279
280
|
id: string;
|
|
280
281
|
slug: string;
|
|
281
282
|
displayName: string;
|
|
282
283
|
ownerUserId: string;
|
|
283
284
|
ownerName: string | null;
|
|
284
285
|
publicBaseUrl: string;
|
|
285
|
-
status: "ACTIVE" | "INACTIVE";
|
|
286
286
|
};
|
|
287
287
|
rules: {
|
|
288
288
|
action: string;
|
|
@@ -302,14 +302,14 @@ export declare const RelayPodSessionValidationSchema: z.ZodObject<{
|
|
|
302
302
|
impersonatedBy: z.ZodNullable<z.ZodString>;
|
|
303
303
|
}, "strict", z.ZodTypeAny, {
|
|
304
304
|
id: string;
|
|
305
|
-
displayName: string;
|
|
306
305
|
email: string;
|
|
307
306
|
impersonatedBy: string | null;
|
|
307
|
+
displayName: string;
|
|
308
308
|
}, {
|
|
309
309
|
id: string;
|
|
310
|
-
displayName: string;
|
|
311
310
|
email: string;
|
|
312
311
|
impersonatedBy: string | null;
|
|
312
|
+
displayName: string;
|
|
313
313
|
}>;
|
|
314
314
|
pod: z.ZodObject<{
|
|
315
315
|
id: z.ZodString;
|
|
@@ -320,21 +320,21 @@ export declare const RelayPodSessionValidationSchema: z.ZodObject<{
|
|
|
320
320
|
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
321
321
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
322
322
|
}, "strict", z.ZodTypeAny, {
|
|
323
|
+
status: "ACTIVE" | "INACTIVE";
|
|
323
324
|
id: string;
|
|
324
325
|
slug: string;
|
|
325
326
|
displayName: string;
|
|
326
327
|
ownerUserId: string;
|
|
327
328
|
ownerName: string | null;
|
|
328
329
|
publicBaseUrl: string;
|
|
329
|
-
status: "ACTIVE" | "INACTIVE";
|
|
330
330
|
}, {
|
|
331
|
+
status: "ACTIVE" | "INACTIVE";
|
|
331
332
|
id: string;
|
|
332
333
|
slug: string;
|
|
333
334
|
displayName: string;
|
|
334
335
|
ownerUserId: string;
|
|
335
336
|
ownerName: string | null;
|
|
336
337
|
publicBaseUrl: string;
|
|
337
|
-
status: "ACTIVE" | "INACTIVE";
|
|
338
338
|
}>;
|
|
339
339
|
rules: z.ZodArray<z.ZodObject<{
|
|
340
340
|
action: z.ZodString;
|
|
@@ -353,23 +353,23 @@ export declare const RelayPodSessionValidationSchema: z.ZodObject<{
|
|
|
353
353
|
inverted?: boolean | undefined;
|
|
354
354
|
}>, "many">;
|
|
355
355
|
}, "strict", z.ZodTypeAny, {
|
|
356
|
-
expiresAt: string;
|
|
357
|
-
sessionId: string;
|
|
358
|
-
accessType: "OWNER" | "ADMIN";
|
|
359
356
|
user: {
|
|
360
357
|
id: string;
|
|
361
|
-
displayName: string;
|
|
362
358
|
email: string;
|
|
363
359
|
impersonatedBy: string | null;
|
|
360
|
+
displayName: string;
|
|
364
361
|
};
|
|
362
|
+
expiresAt: string;
|
|
363
|
+
sessionId: string;
|
|
364
|
+
accessType: "ADMIN" | "OWNER";
|
|
365
365
|
pod: {
|
|
366
|
+
status: "ACTIVE" | "INACTIVE";
|
|
366
367
|
id: string;
|
|
367
368
|
slug: string;
|
|
368
369
|
displayName: string;
|
|
369
370
|
ownerUserId: string;
|
|
370
371
|
ownerName: string | null;
|
|
371
372
|
publicBaseUrl: string;
|
|
372
|
-
status: "ACTIVE" | "INACTIVE";
|
|
373
373
|
};
|
|
374
374
|
rules: {
|
|
375
375
|
action: string;
|
|
@@ -378,23 +378,23 @@ export declare const RelayPodSessionValidationSchema: z.ZodObject<{
|
|
|
378
378
|
inverted?: boolean | undefined;
|
|
379
379
|
}[];
|
|
380
380
|
}, {
|
|
381
|
-
expiresAt: string;
|
|
382
|
-
sessionId: string;
|
|
383
|
-
accessType: "OWNER" | "ADMIN";
|
|
384
381
|
user: {
|
|
385
382
|
id: string;
|
|
386
|
-
displayName: string;
|
|
387
383
|
email: string;
|
|
388
384
|
impersonatedBy: string | null;
|
|
385
|
+
displayName: string;
|
|
389
386
|
};
|
|
387
|
+
expiresAt: string;
|
|
388
|
+
sessionId: string;
|
|
389
|
+
accessType: "ADMIN" | "OWNER";
|
|
390
390
|
pod: {
|
|
391
|
+
status: "ACTIVE" | "INACTIVE";
|
|
391
392
|
id: string;
|
|
392
393
|
slug: string;
|
|
393
394
|
displayName: string;
|
|
394
395
|
ownerUserId: string;
|
|
395
396
|
ownerName: string | null;
|
|
396
397
|
publicBaseUrl: string;
|
|
397
|
-
status: "ACTIVE" | "INACTIVE";
|
|
398
398
|
};
|
|
399
399
|
rules: {
|
|
400
400
|
action: string;
|
|
@@ -42,8 +42,8 @@ export declare const UserSummarySchema: z.ZodObject<{
|
|
|
42
42
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
id: string;
|
|
45
|
-
firstName: string;
|
|
46
45
|
lastName: string;
|
|
46
|
+
firstName: string;
|
|
47
47
|
phoneNumbers: {
|
|
48
48
|
id: string;
|
|
49
49
|
phoneNumber: string;
|
|
@@ -53,8 +53,8 @@ export declare const UserSummarySchema: z.ZodObject<{
|
|
|
53
53
|
deletedAt?: string | null | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
id: string;
|
|
56
|
-
firstName: string;
|
|
57
56
|
lastName: string;
|
|
57
|
+
firstName: string;
|
|
58
58
|
phoneNumbers?: {
|
|
59
59
|
id: string;
|
|
60
60
|
phoneNumber: string;
|
|
@@ -82,13 +82,13 @@ export declare const LocationSummarySchema: z.ZodObject<{
|
|
|
82
82
|
adminDistrict: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
83
83
|
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
postcode?: string | null | undefined;
|
|
86
85
|
address?: string | null | undefined;
|
|
86
|
+
postcode?: string | null | undefined;
|
|
87
87
|
adminDistrict?: string | null | undefined;
|
|
88
88
|
postTown?: string | null | undefined;
|
|
89
89
|
}, {
|
|
90
|
-
postcode?: string | null | undefined;
|
|
91
90
|
address?: string | null | undefined;
|
|
91
|
+
postcode?: string | null | undefined;
|
|
92
92
|
adminDistrict?: string | null | undefined;
|
|
93
93
|
postTown?: string | null | undefined;
|
|
94
94
|
}>;
|
|
@@ -139,8 +139,8 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
139
139
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodDate, z.ZodNull]>, string | null, string | Date | null>>>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
id: string;
|
|
142
|
-
firstName: string;
|
|
143
142
|
lastName: string;
|
|
143
|
+
firstName: string;
|
|
144
144
|
phoneNumbers: {
|
|
145
145
|
id: string;
|
|
146
146
|
phoneNumber: string;
|
|
@@ -150,8 +150,8 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
150
150
|
deletedAt?: string | null | undefined;
|
|
151
151
|
}, {
|
|
152
152
|
id: string;
|
|
153
|
-
firstName: string;
|
|
154
153
|
lastName: string;
|
|
154
|
+
firstName: string;
|
|
155
155
|
phoneNumbers?: {
|
|
156
156
|
id: string;
|
|
157
157
|
phoneNumber: string;
|
|
@@ -162,8 +162,8 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
162
162
|
}>>>;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
164
|
status?: string | null | undefined;
|
|
165
|
-
id?: string | null | undefined;
|
|
166
165
|
userId?: string | null | undefined;
|
|
166
|
+
id?: string | null | undefined;
|
|
167
167
|
client?: {
|
|
168
168
|
id: string;
|
|
169
169
|
name: string;
|
|
@@ -174,8 +174,8 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
174
174
|
} | null | undefined;
|
|
175
175
|
user?: {
|
|
176
176
|
id: string;
|
|
177
|
-
firstName: string;
|
|
178
177
|
lastName: string;
|
|
178
|
+
firstName: string;
|
|
179
179
|
phoneNumbers: {
|
|
180
180
|
id: string;
|
|
181
181
|
phoneNumber: string;
|
|
@@ -186,8 +186,8 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
186
186
|
} | null | undefined;
|
|
187
187
|
}, {
|
|
188
188
|
status?: string | null | undefined;
|
|
189
|
-
id?: string | null | undefined;
|
|
190
189
|
userId?: string | null | undefined;
|
|
190
|
+
id?: string | null | undefined;
|
|
191
191
|
client?: {
|
|
192
192
|
id: string;
|
|
193
193
|
name: string;
|
|
@@ -198,8 +198,8 @@ export declare const CollaborationSummarySchema: z.ZodObject<{
|
|
|
198
198
|
} | null | undefined;
|
|
199
199
|
user?: {
|
|
200
200
|
id: string;
|
|
201
|
-
firstName: string;
|
|
202
201
|
lastName: string;
|
|
202
|
+
firstName: string;
|
|
203
203
|
phoneNumbers?: {
|
|
204
204
|
id: string;
|
|
205
205
|
phoneNumber: string;
|
|
@@ -11,10 +11,30 @@ node_assert_1.default.ok(sheets_sync_events_schemas_1.CheckYellowCompletedSchema
|
|
|
11
11
|
lastSyncedAt: '2026-05-21T10:00:00.000Z',
|
|
12
12
|
lastRowCount: 250,
|
|
13
13
|
}).success);
|
|
14
|
-
node_assert_1.default.equal(sheets_sync_events_schemas_1.CheckYellowCompletedSchema.safeParse({
|
|
14
|
+
node_assert_1.default.equal(sheets_sync_events_schemas_1.CheckYellowCompletedSchema.safeParse({
|
|
15
|
+
lastSyncedAt: '...',
|
|
16
|
+
lastRowCount: -1,
|
|
17
|
+
}).success, false);
|
|
15
18
|
node_assert_1.default.ok(sheets_sync_events_schemas_1.CheckYellowFailedSchema.safeParse({
|
|
16
19
|
lastError: 'boom',
|
|
17
20
|
lastErrorAt: '2026-05-21T11:00:00.000Z',
|
|
18
21
|
}).success);
|
|
19
|
-
node_assert_1.default.ok(sheets_sync_events_schemas_1.CheckYellowCompletedSchema.safeParse({ lastSyncedAt: null, lastRowCount: 0 })
|
|
22
|
+
node_assert_1.default.ok(sheets_sync_events_schemas_1.CheckYellowCompletedSchema.safeParse({ lastSyncedAt: null, lastRowCount: 0 })
|
|
23
|
+
.success);
|
|
24
|
+
node_assert_1.default.equal(sheets_sync_events_schemas_1.SheetsSyncEventType.ACTIVES_TODAY_COMPLETED, 'actives-today:completed');
|
|
25
|
+
node_assert_1.default.ok(sheets_sync_events_schemas_1.ActivesTodayStartedSchema.safeParse({}).success);
|
|
26
|
+
node_assert_1.default.ok(sheets_sync_events_schemas_1.ActivesTodayCompletedSchema.safeParse({
|
|
27
|
+
lastSyncedAt: '2026-05-21T10:00:00.000Z',
|
|
28
|
+
lastRowCount: 250,
|
|
29
|
+
}).success);
|
|
30
|
+
node_assert_1.default.equal(sheets_sync_events_schemas_1.ActivesTodayCompletedSchema.safeParse({
|
|
31
|
+
lastSyncedAt: '...',
|
|
32
|
+
lastRowCount: -1,
|
|
33
|
+
}).success, false);
|
|
34
|
+
node_assert_1.default.ok(sheets_sync_events_schemas_1.ActivesTodayFailedSchema.safeParse({
|
|
35
|
+
lastError: 'boom',
|
|
36
|
+
lastErrorAt: '2026-05-21T11:00:00.000Z',
|
|
37
|
+
}).success);
|
|
38
|
+
node_assert_1.default.ok(sheets_sync_events_schemas_1.ActivesTodayCompletedSchema.safeParse({ lastSyncedAt: null, lastRowCount: 0 })
|
|
39
|
+
.success);
|
|
20
40
|
console.log('sheets-sync-events schemas OK');
|
|
@@ -11,6 +11,9 @@ export declare const SheetsSyncEventType: {
|
|
|
11
11
|
readonly CHECK_YELLOW_STARTED: "check-yellow:started";
|
|
12
12
|
readonly CHECK_YELLOW_COMPLETED: "check-yellow:completed";
|
|
13
13
|
readonly CHECK_YELLOW_FAILED: "check-yellow:failed";
|
|
14
|
+
readonly ACTIVES_TODAY_STARTED: "actives-today:started";
|
|
15
|
+
readonly ACTIVES_TODAY_COMPLETED: "actives-today:completed";
|
|
16
|
+
readonly ACTIVES_TODAY_FAILED: "actives-today:failed";
|
|
14
17
|
};
|
|
15
18
|
export type SheetsSyncEventType = (typeof SheetsSyncEventType)[keyof typeof SheetsSyncEventType];
|
|
16
19
|
/** 'check-yellow:started' — the worker picked up the flush. No payload. */
|
|
@@ -40,4 +43,31 @@ export declare const CheckYellowFailedSchema: z.ZodObject<{
|
|
|
40
43
|
lastErrorAt: string;
|
|
41
44
|
}>;
|
|
42
45
|
export type CheckYellowFailed = z.infer<typeof CheckYellowFailedSchema>;
|
|
46
|
+
/** 'actives-today:started' — the worker picked up the flush. No payload. */
|
|
47
|
+
export declare const ActivesTodayStartedSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
48
|
+
export type ActivesTodayStarted = z.infer<typeof ActivesTodayStartedSchema>;
|
|
49
|
+
/** 'actives-today:completed' — a flush finished; carries the fresh persisted state. `lastSyncedAt` is null for a no-op completion (config incomplete). ISO timestamp when set. */
|
|
50
|
+
export declare const ActivesTodayCompletedSchema: z.ZodObject<{
|
|
51
|
+
lastSyncedAt: z.ZodNullable<z.ZodString>;
|
|
52
|
+
lastRowCount: z.ZodNumber;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
lastSyncedAt: string | null;
|
|
55
|
+
lastRowCount: number;
|
|
56
|
+
}, {
|
|
57
|
+
lastSyncedAt: string | null;
|
|
58
|
+
lastRowCount: number;
|
|
59
|
+
}>;
|
|
60
|
+
export type ActivesTodayCompleted = z.infer<typeof ActivesTodayCompletedSchema>;
|
|
61
|
+
/** 'actives-today:failed' — a flush failed; carries the persisted error. ISO timestamp. */
|
|
62
|
+
export declare const ActivesTodayFailedSchema: z.ZodObject<{
|
|
63
|
+
lastError: z.ZodString;
|
|
64
|
+
lastErrorAt: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
lastError: string;
|
|
67
|
+
lastErrorAt: string;
|
|
68
|
+
}, {
|
|
69
|
+
lastError: string;
|
|
70
|
+
lastErrorAt: string;
|
|
71
|
+
}>;
|
|
72
|
+
export type ActivesTodayFailed = z.infer<typeof ActivesTodayFailedSchema>;
|
|
43
73
|
//# sourceMappingURL=sheets-sync-events.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheets-sync-events.schemas.d.ts","sourceRoot":"","sources":["../../contracts/sheets-sync/sheets-sync-events.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2FAA2F;AAC3F,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"sheets-sync-events.schemas.d.ts","sourceRoot":"","sources":["../../contracts/sheets-sync/sheets-sync-events.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2FAA2F;AAC3F,eAAO,MAAM,mBAAmB;;;;;;;CAOtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,gDAAe,CAAC;AACrD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,iLAAiL;AACjL,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB,gDAAe,CAAC;AACtD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,kLAAkL;AAClL,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,2FAA2F;AAC3F,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CheckYellowFailedSchema = exports.CheckYellowCompletedSchema = exports.CheckYellowStartedSchema = exports.SheetsSyncEventType = void 0;
|
|
3
|
+
exports.ActivesTodayFailedSchema = exports.ActivesTodayCompletedSchema = exports.ActivesTodayStartedSchema = exports.CheckYellowFailedSchema = exports.CheckYellowCompletedSchema = exports.CheckYellowStartedSchema = exports.SheetsSyncEventType = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Event payload schemas for the CHECK YELLOW lifecycle on the shared
|
|
6
6
|
* /v2/events SSE channel. Mirrors exports-events.schemas.ts.
|
|
@@ -14,6 +14,9 @@ exports.SheetsSyncEventType = {
|
|
|
14
14
|
CHECK_YELLOW_STARTED: 'check-yellow:started',
|
|
15
15
|
CHECK_YELLOW_COMPLETED: 'check-yellow:completed',
|
|
16
16
|
CHECK_YELLOW_FAILED: 'check-yellow:failed',
|
|
17
|
+
ACTIVES_TODAY_STARTED: 'actives-today:started',
|
|
18
|
+
ACTIVES_TODAY_COMPLETED: 'actives-today:completed',
|
|
19
|
+
ACTIVES_TODAY_FAILED: 'actives-today:failed',
|
|
17
20
|
};
|
|
18
21
|
/** 'check-yellow:started' — the worker picked up the flush. No payload. */
|
|
19
22
|
exports.CheckYellowStartedSchema = zod_1.z.object({});
|
|
@@ -27,3 +30,15 @@ exports.CheckYellowFailedSchema = zod_1.z.object({
|
|
|
27
30
|
lastError: zod_1.z.string(),
|
|
28
31
|
lastErrorAt: zod_1.z.string().datetime(),
|
|
29
32
|
});
|
|
33
|
+
/** 'actives-today:started' — the worker picked up the flush. No payload. */
|
|
34
|
+
exports.ActivesTodayStartedSchema = zod_1.z.object({});
|
|
35
|
+
/** 'actives-today:completed' — a flush finished; carries the fresh persisted state. `lastSyncedAt` is null for a no-op completion (config incomplete). ISO timestamp when set. */
|
|
36
|
+
exports.ActivesTodayCompletedSchema = zod_1.z.object({
|
|
37
|
+
lastSyncedAt: zod_1.z.string().datetime().nullable(),
|
|
38
|
+
lastRowCount: zod_1.z.number().int().nonnegative(),
|
|
39
|
+
});
|
|
40
|
+
/** 'actives-today:failed' — a flush failed; carries the persisted error. ISO timestamp. */
|
|
41
|
+
exports.ActivesTodayFailedSchema = zod_1.z.object({
|
|
42
|
+
lastError: zod_1.z.string(),
|
|
43
|
+
lastErrorAt: zod_1.z.string().datetime(),
|
|
44
|
+
});
|