@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
|
@@ -4,6 +4,7 @@ export * from './outreach-requests.schemas';
|
|
|
4
4
|
export declare const OutreachRequestQueueItemSchema: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
jobId: z.ZodString;
|
|
7
|
+
requestedByUserId: z.ZodString;
|
|
7
8
|
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
8
9
|
eligibleAtRequest: z.ZodNumber;
|
|
9
10
|
requestedByName: z.ZodNullable<z.ZodString>;
|
|
@@ -11,6 +12,34 @@ export declare const OutreachRequestQueueItemSchema: z.ZodObject<{
|
|
|
11
12
|
createdAt: z.ZodString;
|
|
12
13
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
13
14
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
slug: z.ZodString;
|
|
18
|
+
displayName: z.ZodString;
|
|
19
|
+
ownerUserId: z.ZodString;
|
|
20
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
21
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
22
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
23
|
+
}, "strict", z.ZodTypeAny, {
|
|
24
|
+
id: string;
|
|
25
|
+
status: "ACTIVE" | "INACTIVE";
|
|
26
|
+
slug: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
ownerUserId: string;
|
|
29
|
+
ownerName: string | null;
|
|
30
|
+
publicBaseUrl: string;
|
|
31
|
+
}, {
|
|
32
|
+
id: string;
|
|
33
|
+
status: "ACTIVE" | "INACTIVE";
|
|
34
|
+
slug: string;
|
|
35
|
+
displayName: string;
|
|
36
|
+
ownerUserId: string;
|
|
37
|
+
ownerName: string | null;
|
|
38
|
+
publicBaseUrl: string;
|
|
39
|
+
}>>;
|
|
40
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
41
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
42
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
14
43
|
} & {
|
|
15
44
|
job: z.ZodObject<{
|
|
16
45
|
title: z.ZodString;
|
|
@@ -19,66 +48,96 @@ export declare const OutreachRequestQueueItemSchema: z.ZodObject<{
|
|
|
19
48
|
locationText: z.ZodNullable<z.ZodString>;
|
|
20
49
|
createdByName: z.ZodNullable<z.ZodString>;
|
|
21
50
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
createdByName: string | null;
|
|
23
51
|
title: string;
|
|
24
52
|
trade: string | null;
|
|
25
53
|
payText: string | null;
|
|
26
54
|
locationText: string | null;
|
|
27
|
-
}, {
|
|
28
55
|
createdByName: string | null;
|
|
56
|
+
}, {
|
|
29
57
|
title: string;
|
|
30
58
|
trade: string | null;
|
|
31
59
|
payText: string | null;
|
|
32
60
|
locationText: string | null;
|
|
61
|
+
createdByName: string | null;
|
|
33
62
|
}>;
|
|
34
63
|
}, "strip", z.ZodTypeAny, {
|
|
35
64
|
id: string;
|
|
36
|
-
createdAt: string;
|
|
37
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
38
65
|
jobId: string;
|
|
66
|
+
requestedByUserId: string;
|
|
67
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
68
|
+
eligibleAtRequest: number;
|
|
69
|
+
requestedByName: string | null;
|
|
70
|
+
contactedCount: number;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
startedAt: string | null;
|
|
73
|
+
completedAt: string | null;
|
|
74
|
+
assignedPod: {
|
|
75
|
+
id: string;
|
|
76
|
+
status: "ACTIVE" | "INACTIVE";
|
|
77
|
+
slug: string;
|
|
78
|
+
displayName: string;
|
|
79
|
+
ownerUserId: string;
|
|
80
|
+
ownerName: string | null;
|
|
81
|
+
publicBaseUrl: string;
|
|
82
|
+
} | null;
|
|
83
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
84
|
+
terminalCampaignId: string | null;
|
|
85
|
+
terminalAt: string | null;
|
|
39
86
|
job: {
|
|
40
|
-
createdByName: string | null;
|
|
41
87
|
title: string;
|
|
42
88
|
trade: string | null;
|
|
43
89
|
payText: string | null;
|
|
44
90
|
locationText: string | null;
|
|
91
|
+
createdByName: string | null;
|
|
45
92
|
};
|
|
46
|
-
startedAt: string | null;
|
|
47
|
-
completedAt: string | null;
|
|
48
|
-
requestedByName: string | null;
|
|
49
|
-
contactedCount: number;
|
|
50
|
-
eligibleAtRequest: number;
|
|
51
93
|
}, {
|
|
52
94
|
id: string;
|
|
53
|
-
createdAt: string;
|
|
54
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
55
95
|
jobId: string;
|
|
96
|
+
requestedByUserId: string;
|
|
97
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
98
|
+
eligibleAtRequest: number;
|
|
99
|
+
requestedByName: string | null;
|
|
100
|
+
contactedCount: number;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
startedAt: string | null;
|
|
103
|
+
completedAt: string | null;
|
|
104
|
+
assignedPod: {
|
|
105
|
+
id: string;
|
|
106
|
+
status: "ACTIVE" | "INACTIVE";
|
|
107
|
+
slug: string;
|
|
108
|
+
displayName: string;
|
|
109
|
+
ownerUserId: string;
|
|
110
|
+
ownerName: string | null;
|
|
111
|
+
publicBaseUrl: string;
|
|
112
|
+
} | null;
|
|
113
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
114
|
+
terminalCampaignId: string | null;
|
|
115
|
+
terminalAt: string | null;
|
|
56
116
|
job: {
|
|
57
|
-
createdByName: string | null;
|
|
58
117
|
title: string;
|
|
59
118
|
trade: string | null;
|
|
60
119
|
payText: string | null;
|
|
61
120
|
locationText: string | null;
|
|
121
|
+
createdByName: string | null;
|
|
62
122
|
};
|
|
63
|
-
startedAt: string | null;
|
|
64
|
-
completedAt: string | null;
|
|
65
|
-
requestedByName: string | null;
|
|
66
|
-
contactedCount: number;
|
|
67
|
-
eligibleAtRequest: number;
|
|
68
123
|
}>;
|
|
69
124
|
export type OutreachRequestQueueItem = z.infer<typeof OutreachRequestQueueItemSchema>;
|
|
70
125
|
export declare const CreateOutreachRequestBodySchema: z.ZodObject<{
|
|
71
126
|
jobId: z.ZodString;
|
|
127
|
+
targetPodId: z.ZodOptional<z.ZodString>;
|
|
72
128
|
}, "strip", z.ZodTypeAny, {
|
|
73
129
|
jobId: string;
|
|
130
|
+
targetPodId?: string | undefined;
|
|
74
131
|
}, {
|
|
75
132
|
jobId: string;
|
|
133
|
+
targetPodId?: string | undefined;
|
|
76
134
|
}>;
|
|
77
135
|
export type CreateOutreachRequestBody = z.infer<typeof CreateOutreachRequestBodySchema>;
|
|
78
136
|
export declare const ListOutreachRequestsResponseSchema: z.ZodObject<{
|
|
79
137
|
items: z.ZodArray<z.ZodObject<{
|
|
80
138
|
id: z.ZodString;
|
|
81
139
|
jobId: z.ZodString;
|
|
140
|
+
requestedByUserId: z.ZodString;
|
|
82
141
|
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
83
142
|
eligibleAtRequest: z.ZodNumber;
|
|
84
143
|
requestedByName: z.ZodNullable<z.ZodString>;
|
|
@@ -86,6 +145,34 @@ export declare const ListOutreachRequestsResponseSchema: z.ZodObject<{
|
|
|
86
145
|
createdAt: z.ZodString;
|
|
87
146
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
88
147
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
148
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
slug: z.ZodString;
|
|
151
|
+
displayName: z.ZodString;
|
|
152
|
+
ownerUserId: z.ZodString;
|
|
153
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
154
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
155
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
156
|
+
}, "strict", z.ZodTypeAny, {
|
|
157
|
+
id: string;
|
|
158
|
+
status: "ACTIVE" | "INACTIVE";
|
|
159
|
+
slug: string;
|
|
160
|
+
displayName: string;
|
|
161
|
+
ownerUserId: string;
|
|
162
|
+
ownerName: string | null;
|
|
163
|
+
publicBaseUrl: string;
|
|
164
|
+
}, {
|
|
165
|
+
id: string;
|
|
166
|
+
status: "ACTIVE" | "INACTIVE";
|
|
167
|
+
slug: string;
|
|
168
|
+
displayName: string;
|
|
169
|
+
ownerUserId: string;
|
|
170
|
+
ownerName: string | null;
|
|
171
|
+
publicBaseUrl: string;
|
|
172
|
+
}>>;
|
|
173
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
174
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
175
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
89
176
|
} & {
|
|
90
177
|
job: z.ZodObject<{
|
|
91
178
|
title: z.ZodString;
|
|
@@ -94,107 +181,162 @@ export declare const ListOutreachRequestsResponseSchema: z.ZodObject<{
|
|
|
94
181
|
locationText: z.ZodNullable<z.ZodString>;
|
|
95
182
|
createdByName: z.ZodNullable<z.ZodString>;
|
|
96
183
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
createdByName: string | null;
|
|
98
184
|
title: string;
|
|
99
185
|
trade: string | null;
|
|
100
186
|
payText: string | null;
|
|
101
187
|
locationText: string | null;
|
|
102
|
-
}, {
|
|
103
188
|
createdByName: string | null;
|
|
189
|
+
}, {
|
|
104
190
|
title: string;
|
|
105
191
|
trade: string | null;
|
|
106
192
|
payText: string | null;
|
|
107
193
|
locationText: string | null;
|
|
194
|
+
createdByName: string | null;
|
|
108
195
|
}>;
|
|
109
196
|
}, "strip", z.ZodTypeAny, {
|
|
110
197
|
id: string;
|
|
111
|
-
createdAt: string;
|
|
112
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
113
198
|
jobId: string;
|
|
199
|
+
requestedByUserId: string;
|
|
200
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
201
|
+
eligibleAtRequest: number;
|
|
202
|
+
requestedByName: string | null;
|
|
203
|
+
contactedCount: number;
|
|
204
|
+
createdAt: string;
|
|
205
|
+
startedAt: string | null;
|
|
206
|
+
completedAt: string | null;
|
|
207
|
+
assignedPod: {
|
|
208
|
+
id: string;
|
|
209
|
+
status: "ACTIVE" | "INACTIVE";
|
|
210
|
+
slug: string;
|
|
211
|
+
displayName: string;
|
|
212
|
+
ownerUserId: string;
|
|
213
|
+
ownerName: string | null;
|
|
214
|
+
publicBaseUrl: string;
|
|
215
|
+
} | null;
|
|
216
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
217
|
+
terminalCampaignId: string | null;
|
|
218
|
+
terminalAt: string | null;
|
|
114
219
|
job: {
|
|
115
|
-
createdByName: string | null;
|
|
116
220
|
title: string;
|
|
117
221
|
trade: string | null;
|
|
118
222
|
payText: string | null;
|
|
119
223
|
locationText: string | null;
|
|
224
|
+
createdByName: string | null;
|
|
120
225
|
};
|
|
121
|
-
startedAt: string | null;
|
|
122
|
-
completedAt: string | null;
|
|
123
|
-
requestedByName: string | null;
|
|
124
|
-
contactedCount: number;
|
|
125
|
-
eligibleAtRequest: number;
|
|
126
226
|
}, {
|
|
127
227
|
id: string;
|
|
128
|
-
createdAt: string;
|
|
129
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
130
228
|
jobId: string;
|
|
229
|
+
requestedByUserId: string;
|
|
230
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
231
|
+
eligibleAtRequest: number;
|
|
232
|
+
requestedByName: string | null;
|
|
233
|
+
contactedCount: number;
|
|
234
|
+
createdAt: string;
|
|
235
|
+
startedAt: string | null;
|
|
236
|
+
completedAt: string | null;
|
|
237
|
+
assignedPod: {
|
|
238
|
+
id: string;
|
|
239
|
+
status: "ACTIVE" | "INACTIVE";
|
|
240
|
+
slug: string;
|
|
241
|
+
displayName: string;
|
|
242
|
+
ownerUserId: string;
|
|
243
|
+
ownerName: string | null;
|
|
244
|
+
publicBaseUrl: string;
|
|
245
|
+
} | null;
|
|
246
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
247
|
+
terminalCampaignId: string | null;
|
|
248
|
+
terminalAt: string | null;
|
|
131
249
|
job: {
|
|
132
|
-
createdByName: string | null;
|
|
133
250
|
title: string;
|
|
134
251
|
trade: string | null;
|
|
135
252
|
payText: string | null;
|
|
136
253
|
locationText: string | null;
|
|
254
|
+
createdByName: string | null;
|
|
137
255
|
};
|
|
138
|
-
startedAt: string | null;
|
|
139
|
-
completedAt: string | null;
|
|
140
|
-
requestedByName: string | null;
|
|
141
|
-
contactedCount: number;
|
|
142
|
-
eligibleAtRequest: number;
|
|
143
256
|
}>, "many">;
|
|
144
257
|
}, "strip", z.ZodTypeAny, {
|
|
145
258
|
items: {
|
|
146
259
|
id: string;
|
|
147
|
-
createdAt: string;
|
|
148
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
149
260
|
jobId: string;
|
|
261
|
+
requestedByUserId: string;
|
|
262
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
263
|
+
eligibleAtRequest: number;
|
|
264
|
+
requestedByName: string | null;
|
|
265
|
+
contactedCount: number;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
startedAt: string | null;
|
|
268
|
+
completedAt: string | null;
|
|
269
|
+
assignedPod: {
|
|
270
|
+
id: string;
|
|
271
|
+
status: "ACTIVE" | "INACTIVE";
|
|
272
|
+
slug: string;
|
|
273
|
+
displayName: string;
|
|
274
|
+
ownerUserId: string;
|
|
275
|
+
ownerName: string | null;
|
|
276
|
+
publicBaseUrl: string;
|
|
277
|
+
} | null;
|
|
278
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
279
|
+
terminalCampaignId: string | null;
|
|
280
|
+
terminalAt: string | null;
|
|
150
281
|
job: {
|
|
151
|
-
createdByName: string | null;
|
|
152
282
|
title: string;
|
|
153
283
|
trade: string | null;
|
|
154
284
|
payText: string | null;
|
|
155
285
|
locationText: string | null;
|
|
286
|
+
createdByName: string | null;
|
|
156
287
|
};
|
|
157
|
-
startedAt: string | null;
|
|
158
|
-
completedAt: string | null;
|
|
159
|
-
requestedByName: string | null;
|
|
160
|
-
contactedCount: number;
|
|
161
|
-
eligibleAtRequest: number;
|
|
162
288
|
}[];
|
|
163
289
|
}, {
|
|
164
290
|
items: {
|
|
165
291
|
id: string;
|
|
166
|
-
createdAt: string;
|
|
167
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
168
292
|
jobId: string;
|
|
293
|
+
requestedByUserId: string;
|
|
294
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
295
|
+
eligibleAtRequest: number;
|
|
296
|
+
requestedByName: string | null;
|
|
297
|
+
contactedCount: number;
|
|
298
|
+
createdAt: string;
|
|
299
|
+
startedAt: string | null;
|
|
300
|
+
completedAt: string | null;
|
|
301
|
+
assignedPod: {
|
|
302
|
+
id: string;
|
|
303
|
+
status: "ACTIVE" | "INACTIVE";
|
|
304
|
+
slug: string;
|
|
305
|
+
displayName: string;
|
|
306
|
+
ownerUserId: string;
|
|
307
|
+
ownerName: string | null;
|
|
308
|
+
publicBaseUrl: string;
|
|
309
|
+
} | null;
|
|
310
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
311
|
+
terminalCampaignId: string | null;
|
|
312
|
+
terminalAt: string | null;
|
|
169
313
|
job: {
|
|
170
|
-
createdByName: string | null;
|
|
171
314
|
title: string;
|
|
172
315
|
trade: string | null;
|
|
173
316
|
payText: string | null;
|
|
174
317
|
locationText: string | null;
|
|
318
|
+
createdByName: string | null;
|
|
175
319
|
};
|
|
176
|
-
startedAt: string | null;
|
|
177
|
-
completedAt: string | null;
|
|
178
|
-
requestedByName: string | null;
|
|
179
|
-
contactedCount: number;
|
|
180
|
-
eligibleAtRequest: number;
|
|
181
320
|
}[];
|
|
182
321
|
}>;
|
|
183
322
|
export type ListOutreachRequestsResponse = z.infer<typeof ListOutreachRequestsResponseSchema>;
|
|
184
323
|
export declare const outreachRequestsContract: {
|
|
185
324
|
create: {
|
|
186
|
-
description: string;
|
|
187
325
|
metadata: {
|
|
188
326
|
tags: string[];
|
|
189
327
|
};
|
|
190
328
|
summary: "Mark a job for outreach";
|
|
329
|
+
description: string;
|
|
191
330
|
method: "POST";
|
|
192
331
|
body: z.ZodObject<{
|
|
193
332
|
jobId: z.ZodString;
|
|
333
|
+
targetPodId: z.ZodOptional<z.ZodString>;
|
|
194
334
|
}, "strip", z.ZodTypeAny, {
|
|
195
335
|
jobId: string;
|
|
336
|
+
targetPodId?: string | undefined;
|
|
196
337
|
}, {
|
|
197
338
|
jobId: string;
|
|
339
|
+
targetPodId?: string | undefined;
|
|
198
340
|
}>;
|
|
199
341
|
path: "/v2/outreach/requests";
|
|
200
342
|
responses: {
|
|
@@ -207,17 +349,17 @@ export declare const outreachRequestsContract: {
|
|
|
207
349
|
path: z.ZodString;
|
|
208
350
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
209
351
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
message: string;
|
|
211
|
-
path: string;
|
|
212
352
|
code: string;
|
|
353
|
+
path: string;
|
|
354
|
+
message: string;
|
|
213
355
|
statusCode: number;
|
|
214
356
|
timestamp: string;
|
|
215
357
|
details?: unknown;
|
|
216
358
|
correlationId?: string | undefined;
|
|
217
359
|
}, {
|
|
218
|
-
message: string;
|
|
219
|
-
path: string;
|
|
220
360
|
code: string;
|
|
361
|
+
path: string;
|
|
362
|
+
message: string;
|
|
221
363
|
statusCode: number;
|
|
222
364
|
timestamp: string;
|
|
223
365
|
details?: unknown;
|
|
@@ -232,17 +374,17 @@ export declare const outreachRequestsContract: {
|
|
|
232
374
|
path: z.ZodString;
|
|
233
375
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
234
376
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
message: string;
|
|
236
|
-
path: string;
|
|
237
377
|
code: string;
|
|
378
|
+
path: string;
|
|
379
|
+
message: string;
|
|
238
380
|
statusCode: number;
|
|
239
381
|
timestamp: string;
|
|
240
382
|
details?: unknown;
|
|
241
383
|
correlationId?: string | undefined;
|
|
242
384
|
}, {
|
|
243
|
-
message: string;
|
|
244
|
-
path: string;
|
|
245
385
|
code: string;
|
|
386
|
+
path: string;
|
|
387
|
+
message: string;
|
|
246
388
|
statusCode: number;
|
|
247
389
|
timestamp: string;
|
|
248
390
|
details?: unknown;
|
|
@@ -257,17 +399,17 @@ export declare const outreachRequestsContract: {
|
|
|
257
399
|
path: z.ZodString;
|
|
258
400
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
259
401
|
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
message: string;
|
|
261
|
-
path: string;
|
|
262
402
|
code: string;
|
|
403
|
+
path: string;
|
|
404
|
+
message: string;
|
|
263
405
|
statusCode: number;
|
|
264
406
|
timestamp: string;
|
|
265
407
|
details?: unknown;
|
|
266
408
|
correlationId?: string | undefined;
|
|
267
409
|
}, {
|
|
268
|
-
message: string;
|
|
269
|
-
path: string;
|
|
270
410
|
code: string;
|
|
411
|
+
path: string;
|
|
412
|
+
message: string;
|
|
271
413
|
statusCode: number;
|
|
272
414
|
timestamp: string;
|
|
273
415
|
details?: unknown;
|
|
@@ -282,17 +424,17 @@ export declare const outreachRequestsContract: {
|
|
|
282
424
|
path: z.ZodString;
|
|
283
425
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
284
426
|
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
message: string;
|
|
286
|
-
path: string;
|
|
287
427
|
code: string;
|
|
428
|
+
path: string;
|
|
429
|
+
message: string;
|
|
288
430
|
statusCode: number;
|
|
289
431
|
timestamp: string;
|
|
290
432
|
details?: unknown;
|
|
291
433
|
correlationId?: string | undefined;
|
|
292
434
|
}, {
|
|
293
|
-
message: string;
|
|
294
|
-
path: string;
|
|
295
435
|
code: string;
|
|
436
|
+
path: string;
|
|
437
|
+
message: string;
|
|
296
438
|
statusCode: number;
|
|
297
439
|
timestamp: string;
|
|
298
440
|
details?: unknown;
|
|
@@ -301,6 +443,7 @@ export declare const outreachRequestsContract: {
|
|
|
301
443
|
200: z.ZodObject<{
|
|
302
444
|
id: z.ZodString;
|
|
303
445
|
jobId: z.ZodString;
|
|
446
|
+
requestedByUserId: z.ZodString;
|
|
304
447
|
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
305
448
|
eligibleAtRequest: z.ZodNumber;
|
|
306
449
|
requestedByName: z.ZodNullable<z.ZodString>;
|
|
@@ -308,26 +451,80 @@ export declare const outreachRequestsContract: {
|
|
|
308
451
|
createdAt: z.ZodString;
|
|
309
452
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
310
453
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
454
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
455
|
+
id: z.ZodString;
|
|
456
|
+
slug: z.ZodString;
|
|
457
|
+
displayName: z.ZodString;
|
|
458
|
+
ownerUserId: z.ZodString;
|
|
459
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
460
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
461
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
462
|
+
}, "strict", z.ZodTypeAny, {
|
|
463
|
+
id: string;
|
|
464
|
+
status: "ACTIVE" | "INACTIVE";
|
|
465
|
+
slug: string;
|
|
466
|
+
displayName: string;
|
|
467
|
+
ownerUserId: string;
|
|
468
|
+
ownerName: string | null;
|
|
469
|
+
publicBaseUrl: string;
|
|
470
|
+
}, {
|
|
471
|
+
id: string;
|
|
472
|
+
status: "ACTIVE" | "INACTIVE";
|
|
473
|
+
slug: string;
|
|
474
|
+
displayName: string;
|
|
475
|
+
ownerUserId: string;
|
|
476
|
+
ownerName: string | null;
|
|
477
|
+
publicBaseUrl: string;
|
|
478
|
+
}>>;
|
|
479
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
480
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
481
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
311
482
|
}, "strip", z.ZodTypeAny, {
|
|
312
483
|
id: string;
|
|
313
|
-
createdAt: string;
|
|
314
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
315
484
|
jobId: string;
|
|
316
|
-
|
|
317
|
-
|
|
485
|
+
requestedByUserId: string;
|
|
486
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
487
|
+
eligibleAtRequest: number;
|
|
318
488
|
requestedByName: string | null;
|
|
319
489
|
contactedCount: number;
|
|
320
|
-
eligibleAtRequest: number;
|
|
321
|
-
}, {
|
|
322
|
-
id: string;
|
|
323
490
|
createdAt: string;
|
|
324
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
325
|
-
jobId: string;
|
|
326
491
|
startedAt: string | null;
|
|
327
492
|
completedAt: string | null;
|
|
493
|
+
assignedPod: {
|
|
494
|
+
id: string;
|
|
495
|
+
status: "ACTIVE" | "INACTIVE";
|
|
496
|
+
slug: string;
|
|
497
|
+
displayName: string;
|
|
498
|
+
ownerUserId: string;
|
|
499
|
+
ownerName: string | null;
|
|
500
|
+
publicBaseUrl: string;
|
|
501
|
+
} | null;
|
|
502
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
503
|
+
terminalCampaignId: string | null;
|
|
504
|
+
terminalAt: string | null;
|
|
505
|
+
}, {
|
|
506
|
+
id: string;
|
|
507
|
+
jobId: string;
|
|
508
|
+
requestedByUserId: string;
|
|
509
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
510
|
+
eligibleAtRequest: number;
|
|
328
511
|
requestedByName: string | null;
|
|
329
512
|
contactedCount: number;
|
|
330
|
-
|
|
513
|
+
createdAt: string;
|
|
514
|
+
startedAt: string | null;
|
|
515
|
+
completedAt: string | null;
|
|
516
|
+
assignedPod: {
|
|
517
|
+
id: string;
|
|
518
|
+
status: "ACTIVE" | "INACTIVE";
|
|
519
|
+
slug: string;
|
|
520
|
+
displayName: string;
|
|
521
|
+
ownerUserId: string;
|
|
522
|
+
ownerName: string | null;
|
|
523
|
+
publicBaseUrl: string;
|
|
524
|
+
} | null;
|
|
525
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
526
|
+
terminalCampaignId: string | null;
|
|
527
|
+
terminalAt: string | null;
|
|
331
528
|
}>;
|
|
332
529
|
404: z.ZodObject<{
|
|
333
530
|
statusCode: z.ZodNumber;
|
|
@@ -338,17 +535,17 @@ export declare const outreachRequestsContract: {
|
|
|
338
535
|
path: z.ZodString;
|
|
339
536
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
340
537
|
}, "strip", z.ZodTypeAny, {
|
|
341
|
-
message: string;
|
|
342
|
-
path: string;
|
|
343
538
|
code: string;
|
|
539
|
+
path: string;
|
|
540
|
+
message: string;
|
|
344
541
|
statusCode: number;
|
|
345
542
|
timestamp: string;
|
|
346
543
|
details?: unknown;
|
|
347
544
|
correlationId?: string | undefined;
|
|
348
545
|
}, {
|
|
349
|
-
message: string;
|
|
350
|
-
path: string;
|
|
351
546
|
code: string;
|
|
547
|
+
path: string;
|
|
548
|
+
message: string;
|
|
352
549
|
statusCode: number;
|
|
353
550
|
timestamp: string;
|
|
354
551
|
details?: unknown;
|
|
@@ -357,7 +554,6 @@ export declare const outreachRequestsContract: {
|
|
|
357
554
|
};
|
|
358
555
|
};
|
|
359
556
|
cancel: {
|
|
360
|
-
description: string;
|
|
361
557
|
metadata: {
|
|
362
558
|
tags: string[];
|
|
363
559
|
};
|
|
@@ -369,6 +565,7 @@ export declare const outreachRequestsContract: {
|
|
|
369
565
|
id: string;
|
|
370
566
|
}>;
|
|
371
567
|
summary: "Withdraw an outreach request";
|
|
568
|
+
description: string;
|
|
372
569
|
method: "POST";
|
|
373
570
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
374
571
|
path: "/v2/outreach/requests/:id/cancel";
|
|
@@ -382,17 +579,17 @@ export declare const outreachRequestsContract: {
|
|
|
382
579
|
path: z.ZodString;
|
|
383
580
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
384
581
|
}, "strip", z.ZodTypeAny, {
|
|
385
|
-
message: string;
|
|
386
|
-
path: string;
|
|
387
582
|
code: string;
|
|
583
|
+
path: string;
|
|
584
|
+
message: string;
|
|
388
585
|
statusCode: number;
|
|
389
586
|
timestamp: string;
|
|
390
587
|
details?: unknown;
|
|
391
588
|
correlationId?: string | undefined;
|
|
392
589
|
}, {
|
|
393
|
-
message: string;
|
|
394
|
-
path: string;
|
|
395
590
|
code: string;
|
|
591
|
+
path: string;
|
|
592
|
+
message: string;
|
|
396
593
|
statusCode: number;
|
|
397
594
|
timestamp: string;
|
|
398
595
|
details?: unknown;
|
|
@@ -407,23 +604,159 @@ export declare const outreachRequestsContract: {
|
|
|
407
604
|
path: z.ZodString;
|
|
408
605
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
409
606
|
}, "strip", z.ZodTypeAny, {
|
|
607
|
+
code: string;
|
|
608
|
+
path: string;
|
|
410
609
|
message: string;
|
|
610
|
+
statusCode: number;
|
|
611
|
+
timestamp: string;
|
|
612
|
+
details?: unknown;
|
|
613
|
+
correlationId?: string | undefined;
|
|
614
|
+
}, {
|
|
615
|
+
code: string;
|
|
411
616
|
path: string;
|
|
617
|
+
message: string;
|
|
618
|
+
statusCode: number;
|
|
619
|
+
timestamp: string;
|
|
620
|
+
details?: unknown;
|
|
621
|
+
correlationId?: string | undefined;
|
|
622
|
+
}>;
|
|
623
|
+
403: z.ZodObject<{
|
|
624
|
+
statusCode: z.ZodNumber;
|
|
625
|
+
message: z.ZodString;
|
|
626
|
+
code: z.ZodString;
|
|
627
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
628
|
+
timestamp: z.ZodString;
|
|
629
|
+
path: z.ZodString;
|
|
630
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
631
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
632
|
code: string;
|
|
633
|
+
path: string;
|
|
634
|
+
message: string;
|
|
413
635
|
statusCode: number;
|
|
414
636
|
timestamp: string;
|
|
415
637
|
details?: unknown;
|
|
416
638
|
correlationId?: string | undefined;
|
|
417
639
|
}, {
|
|
640
|
+
code: string;
|
|
641
|
+
path: string;
|
|
418
642
|
message: string;
|
|
643
|
+
statusCode: number;
|
|
644
|
+
timestamp: string;
|
|
645
|
+
details?: unknown;
|
|
646
|
+
correlationId?: string | undefined;
|
|
647
|
+
}>;
|
|
648
|
+
500: z.ZodObject<{
|
|
649
|
+
statusCode: z.ZodNumber;
|
|
650
|
+
message: z.ZodString;
|
|
651
|
+
code: z.ZodString;
|
|
652
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
653
|
+
timestamp: z.ZodString;
|
|
654
|
+
path: z.ZodString;
|
|
655
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
656
|
+
}, "strip", z.ZodTypeAny, {
|
|
657
|
+
code: string;
|
|
419
658
|
path: string;
|
|
659
|
+
message: string;
|
|
660
|
+
statusCode: number;
|
|
661
|
+
timestamp: string;
|
|
662
|
+
details?: unknown;
|
|
663
|
+
correlationId?: string | undefined;
|
|
664
|
+
}, {
|
|
420
665
|
code: string;
|
|
666
|
+
path: string;
|
|
667
|
+
message: string;
|
|
421
668
|
statusCode: number;
|
|
422
669
|
timestamp: string;
|
|
423
670
|
details?: unknown;
|
|
424
671
|
correlationId?: string | undefined;
|
|
425
672
|
}>;
|
|
426
|
-
|
|
673
|
+
200: z.ZodObject<{
|
|
674
|
+
id: z.ZodString;
|
|
675
|
+
jobId: z.ZodString;
|
|
676
|
+
requestedByUserId: z.ZodString;
|
|
677
|
+
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
678
|
+
eligibleAtRequest: z.ZodNumber;
|
|
679
|
+
requestedByName: z.ZodNullable<z.ZodString>;
|
|
680
|
+
contactedCount: z.ZodNumber;
|
|
681
|
+
createdAt: z.ZodString;
|
|
682
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
683
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
684
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
685
|
+
id: z.ZodString;
|
|
686
|
+
slug: z.ZodString;
|
|
687
|
+
displayName: z.ZodString;
|
|
688
|
+
ownerUserId: z.ZodString;
|
|
689
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
690
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
691
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
692
|
+
}, "strict", z.ZodTypeAny, {
|
|
693
|
+
id: string;
|
|
694
|
+
status: "ACTIVE" | "INACTIVE";
|
|
695
|
+
slug: string;
|
|
696
|
+
displayName: string;
|
|
697
|
+
ownerUserId: string;
|
|
698
|
+
ownerName: string | null;
|
|
699
|
+
publicBaseUrl: string;
|
|
700
|
+
}, {
|
|
701
|
+
id: string;
|
|
702
|
+
status: "ACTIVE" | "INACTIVE";
|
|
703
|
+
slug: string;
|
|
704
|
+
displayName: string;
|
|
705
|
+
ownerUserId: string;
|
|
706
|
+
ownerName: string | null;
|
|
707
|
+
publicBaseUrl: string;
|
|
708
|
+
}>>;
|
|
709
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
710
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
711
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
712
|
+
}, "strip", z.ZodTypeAny, {
|
|
713
|
+
id: string;
|
|
714
|
+
jobId: string;
|
|
715
|
+
requestedByUserId: string;
|
|
716
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
717
|
+
eligibleAtRequest: number;
|
|
718
|
+
requestedByName: string | null;
|
|
719
|
+
contactedCount: number;
|
|
720
|
+
createdAt: string;
|
|
721
|
+
startedAt: string | null;
|
|
722
|
+
completedAt: string | null;
|
|
723
|
+
assignedPod: {
|
|
724
|
+
id: string;
|
|
725
|
+
status: "ACTIVE" | "INACTIVE";
|
|
726
|
+
slug: string;
|
|
727
|
+
displayName: string;
|
|
728
|
+
ownerUserId: string;
|
|
729
|
+
ownerName: string | null;
|
|
730
|
+
publicBaseUrl: string;
|
|
731
|
+
} | null;
|
|
732
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
733
|
+
terminalCampaignId: string | null;
|
|
734
|
+
terminalAt: string | null;
|
|
735
|
+
}, {
|
|
736
|
+
id: string;
|
|
737
|
+
jobId: string;
|
|
738
|
+
requestedByUserId: string;
|
|
739
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
740
|
+
eligibleAtRequest: number;
|
|
741
|
+
requestedByName: string | null;
|
|
742
|
+
contactedCount: number;
|
|
743
|
+
createdAt: string;
|
|
744
|
+
startedAt: string | null;
|
|
745
|
+
completedAt: string | null;
|
|
746
|
+
assignedPod: {
|
|
747
|
+
id: string;
|
|
748
|
+
status: "ACTIVE" | "INACTIVE";
|
|
749
|
+
slug: string;
|
|
750
|
+
displayName: string;
|
|
751
|
+
ownerUserId: string;
|
|
752
|
+
ownerName: string | null;
|
|
753
|
+
publicBaseUrl: string;
|
|
754
|
+
} | null;
|
|
755
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
756
|
+
terminalCampaignId: string | null;
|
|
757
|
+
terminalAt: string | null;
|
|
758
|
+
}>;
|
|
759
|
+
404: z.ZodObject<{
|
|
427
760
|
statusCode: z.ZodNumber;
|
|
428
761
|
message: z.ZodString;
|
|
429
762
|
code: z.ZodString;
|
|
@@ -432,23 +765,98 @@ export declare const outreachRequestsContract: {
|
|
|
432
765
|
path: z.ZodString;
|
|
433
766
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
434
767
|
}, "strip", z.ZodTypeAny, {
|
|
768
|
+
code: string;
|
|
769
|
+
path: string;
|
|
435
770
|
message: string;
|
|
771
|
+
statusCode: number;
|
|
772
|
+
timestamp: string;
|
|
773
|
+
details?: unknown;
|
|
774
|
+
correlationId?: string | undefined;
|
|
775
|
+
}, {
|
|
776
|
+
code: string;
|
|
436
777
|
path: string;
|
|
778
|
+
message: string;
|
|
779
|
+
statusCode: number;
|
|
780
|
+
timestamp: string;
|
|
781
|
+
details?: unknown;
|
|
782
|
+
correlationId?: string | undefined;
|
|
783
|
+
}>;
|
|
784
|
+
409: z.ZodObject<{
|
|
785
|
+
statusCode: z.ZodNumber;
|
|
786
|
+
message: z.ZodString;
|
|
787
|
+
code: z.ZodString;
|
|
788
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
789
|
+
timestamp: z.ZodString;
|
|
790
|
+
path: z.ZodString;
|
|
791
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
793
|
code: string;
|
|
794
|
+
path: string;
|
|
795
|
+
message: string;
|
|
438
796
|
statusCode: number;
|
|
439
797
|
timestamp: string;
|
|
440
798
|
details?: unknown;
|
|
441
799
|
correlationId?: string | undefined;
|
|
442
800
|
}, {
|
|
801
|
+
code: string;
|
|
802
|
+
path: string;
|
|
443
803
|
message: string;
|
|
804
|
+
statusCode: number;
|
|
805
|
+
timestamp: string;
|
|
806
|
+
details?: unknown;
|
|
807
|
+
correlationId?: string | undefined;
|
|
808
|
+
}>;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
reassign: {
|
|
812
|
+
metadata: {
|
|
813
|
+
tags: string[];
|
|
814
|
+
};
|
|
815
|
+
pathParams: z.ZodObject<{
|
|
816
|
+
id: z.ZodString;
|
|
817
|
+
}, "strip", z.ZodTypeAny, {
|
|
818
|
+
id: string;
|
|
819
|
+
}, {
|
|
820
|
+
id: string;
|
|
821
|
+
}>;
|
|
822
|
+
summary: "Reassign a pending outreach request to another Relay pod";
|
|
823
|
+
description: "PENDING only. Rejects non-PENDING requests with 409. Returns the request with its updated assigned pod snapshot.";
|
|
824
|
+
method: "POST";
|
|
825
|
+
body: z.ZodObject<{
|
|
826
|
+
targetPodId: z.ZodString;
|
|
827
|
+
}, "strict", z.ZodTypeAny, {
|
|
828
|
+
targetPodId: string;
|
|
829
|
+
}, {
|
|
830
|
+
targetPodId: string;
|
|
831
|
+
}>;
|
|
832
|
+
path: "/v2/outreach/requests/:id/reassign";
|
|
833
|
+
responses: {
|
|
834
|
+
400: z.ZodObject<{
|
|
835
|
+
statusCode: z.ZodNumber;
|
|
836
|
+
message: z.ZodString;
|
|
837
|
+
code: z.ZodString;
|
|
838
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
839
|
+
timestamp: z.ZodString;
|
|
840
|
+
path: z.ZodString;
|
|
841
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
842
|
+
}, "strip", z.ZodTypeAny, {
|
|
843
|
+
code: string;
|
|
444
844
|
path: string;
|
|
845
|
+
message: string;
|
|
846
|
+
statusCode: number;
|
|
847
|
+
timestamp: string;
|
|
848
|
+
details?: unknown;
|
|
849
|
+
correlationId?: string | undefined;
|
|
850
|
+
}, {
|
|
445
851
|
code: string;
|
|
852
|
+
path: string;
|
|
853
|
+
message: string;
|
|
446
854
|
statusCode: number;
|
|
447
855
|
timestamp: string;
|
|
448
856
|
details?: unknown;
|
|
449
857
|
correlationId?: string | undefined;
|
|
450
858
|
}>;
|
|
451
|
-
|
|
859
|
+
401: z.ZodObject<{
|
|
452
860
|
statusCode: z.ZodNumber;
|
|
453
861
|
message: z.ZodString;
|
|
454
862
|
code: z.ZodString;
|
|
@@ -457,17 +865,67 @@ export declare const outreachRequestsContract: {
|
|
|
457
865
|
path: z.ZodString;
|
|
458
866
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
459
867
|
}, "strip", z.ZodTypeAny, {
|
|
868
|
+
code: string;
|
|
869
|
+
path: string;
|
|
460
870
|
message: string;
|
|
871
|
+
statusCode: number;
|
|
872
|
+
timestamp: string;
|
|
873
|
+
details?: unknown;
|
|
874
|
+
correlationId?: string | undefined;
|
|
875
|
+
}, {
|
|
876
|
+
code: string;
|
|
461
877
|
path: string;
|
|
878
|
+
message: string;
|
|
879
|
+
statusCode: number;
|
|
880
|
+
timestamp: string;
|
|
881
|
+
details?: unknown;
|
|
882
|
+
correlationId?: string | undefined;
|
|
883
|
+
}>;
|
|
884
|
+
403: z.ZodObject<{
|
|
885
|
+
statusCode: z.ZodNumber;
|
|
886
|
+
message: z.ZodString;
|
|
887
|
+
code: z.ZodString;
|
|
888
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
889
|
+
timestamp: z.ZodString;
|
|
890
|
+
path: z.ZodString;
|
|
891
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
892
|
+
}, "strip", z.ZodTypeAny, {
|
|
462
893
|
code: string;
|
|
894
|
+
path: string;
|
|
895
|
+
message: string;
|
|
463
896
|
statusCode: number;
|
|
464
897
|
timestamp: string;
|
|
465
898
|
details?: unknown;
|
|
466
899
|
correlationId?: string | undefined;
|
|
467
900
|
}, {
|
|
901
|
+
code: string;
|
|
902
|
+
path: string;
|
|
468
903
|
message: string;
|
|
904
|
+
statusCode: number;
|
|
905
|
+
timestamp: string;
|
|
906
|
+
details?: unknown;
|
|
907
|
+
correlationId?: string | undefined;
|
|
908
|
+
}>;
|
|
909
|
+
500: z.ZodObject<{
|
|
910
|
+
statusCode: z.ZodNumber;
|
|
911
|
+
message: z.ZodString;
|
|
912
|
+
code: z.ZodString;
|
|
913
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
914
|
+
timestamp: z.ZodString;
|
|
915
|
+
path: z.ZodString;
|
|
916
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
917
|
+
}, "strip", z.ZodTypeAny, {
|
|
918
|
+
code: string;
|
|
469
919
|
path: string;
|
|
920
|
+
message: string;
|
|
921
|
+
statusCode: number;
|
|
922
|
+
timestamp: string;
|
|
923
|
+
details?: unknown;
|
|
924
|
+
correlationId?: string | undefined;
|
|
925
|
+
}, {
|
|
470
926
|
code: string;
|
|
927
|
+
path: string;
|
|
928
|
+
message: string;
|
|
471
929
|
statusCode: number;
|
|
472
930
|
timestamp: string;
|
|
473
931
|
details?: unknown;
|
|
@@ -476,6 +934,7 @@ export declare const outreachRequestsContract: {
|
|
|
476
934
|
200: z.ZodObject<{
|
|
477
935
|
id: z.ZodString;
|
|
478
936
|
jobId: z.ZodString;
|
|
937
|
+
requestedByUserId: z.ZodString;
|
|
479
938
|
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
480
939
|
eligibleAtRequest: z.ZodNumber;
|
|
481
940
|
requestedByName: z.ZodNullable<z.ZodString>;
|
|
@@ -483,26 +942,80 @@ export declare const outreachRequestsContract: {
|
|
|
483
942
|
createdAt: z.ZodString;
|
|
484
943
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
485
944
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
945
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
946
|
+
id: z.ZodString;
|
|
947
|
+
slug: z.ZodString;
|
|
948
|
+
displayName: z.ZodString;
|
|
949
|
+
ownerUserId: z.ZodString;
|
|
950
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
951
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
952
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
953
|
+
}, "strict", z.ZodTypeAny, {
|
|
954
|
+
id: string;
|
|
955
|
+
status: "ACTIVE" | "INACTIVE";
|
|
956
|
+
slug: string;
|
|
957
|
+
displayName: string;
|
|
958
|
+
ownerUserId: string;
|
|
959
|
+
ownerName: string | null;
|
|
960
|
+
publicBaseUrl: string;
|
|
961
|
+
}, {
|
|
962
|
+
id: string;
|
|
963
|
+
status: "ACTIVE" | "INACTIVE";
|
|
964
|
+
slug: string;
|
|
965
|
+
displayName: string;
|
|
966
|
+
ownerUserId: string;
|
|
967
|
+
ownerName: string | null;
|
|
968
|
+
publicBaseUrl: string;
|
|
969
|
+
}>>;
|
|
970
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
971
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
972
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
486
973
|
}, "strip", z.ZodTypeAny, {
|
|
487
974
|
id: string;
|
|
488
|
-
createdAt: string;
|
|
489
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
490
975
|
jobId: string;
|
|
491
|
-
|
|
492
|
-
|
|
976
|
+
requestedByUserId: string;
|
|
977
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
978
|
+
eligibleAtRequest: number;
|
|
493
979
|
requestedByName: string | null;
|
|
494
980
|
contactedCount: number;
|
|
495
|
-
|
|
981
|
+
createdAt: string;
|
|
982
|
+
startedAt: string | null;
|
|
983
|
+
completedAt: string | null;
|
|
984
|
+
assignedPod: {
|
|
985
|
+
id: string;
|
|
986
|
+
status: "ACTIVE" | "INACTIVE";
|
|
987
|
+
slug: string;
|
|
988
|
+
displayName: string;
|
|
989
|
+
ownerUserId: string;
|
|
990
|
+
ownerName: string | null;
|
|
991
|
+
publicBaseUrl: string;
|
|
992
|
+
} | null;
|
|
993
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
994
|
+
terminalCampaignId: string | null;
|
|
995
|
+
terminalAt: string | null;
|
|
496
996
|
}, {
|
|
497
997
|
id: string;
|
|
998
|
+
jobId: string;
|
|
999
|
+
requestedByUserId: string;
|
|
1000
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1001
|
+
eligibleAtRequest: number;
|
|
1002
|
+
requestedByName: string | null;
|
|
1003
|
+
contactedCount: number;
|
|
498
1004
|
createdAt: string;
|
|
499
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
500
|
-
jobId: string;
|
|
501
1005
|
startedAt: string | null;
|
|
502
1006
|
completedAt: string | null;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
1007
|
+
assignedPod: {
|
|
1008
|
+
id: string;
|
|
1009
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1010
|
+
slug: string;
|
|
1011
|
+
displayName: string;
|
|
1012
|
+
ownerUserId: string;
|
|
1013
|
+
ownerName: string | null;
|
|
1014
|
+
publicBaseUrl: string;
|
|
1015
|
+
} | null;
|
|
1016
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1017
|
+
terminalCampaignId: string | null;
|
|
1018
|
+
terminalAt: string | null;
|
|
506
1019
|
}>;
|
|
507
1020
|
404: z.ZodObject<{
|
|
508
1021
|
statusCode: z.ZodNumber;
|
|
@@ -513,17 +1026,42 @@ export declare const outreachRequestsContract: {
|
|
|
513
1026
|
path: z.ZodString;
|
|
514
1027
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
515
1028
|
}, "strip", z.ZodTypeAny, {
|
|
516
|
-
message: string;
|
|
517
|
-
path: string;
|
|
518
1029
|
code: string;
|
|
1030
|
+
path: string;
|
|
1031
|
+
message: string;
|
|
519
1032
|
statusCode: number;
|
|
520
1033
|
timestamp: string;
|
|
521
1034
|
details?: unknown;
|
|
522
1035
|
correlationId?: string | undefined;
|
|
523
1036
|
}, {
|
|
1037
|
+
code: string;
|
|
1038
|
+
path: string;
|
|
524
1039
|
message: string;
|
|
1040
|
+
statusCode: number;
|
|
1041
|
+
timestamp: string;
|
|
1042
|
+
details?: unknown;
|
|
1043
|
+
correlationId?: string | undefined;
|
|
1044
|
+
}>;
|
|
1045
|
+
409: z.ZodObject<{
|
|
1046
|
+
statusCode: z.ZodNumber;
|
|
1047
|
+
message: z.ZodString;
|
|
1048
|
+
code: z.ZodString;
|
|
1049
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
1050
|
+
timestamp: z.ZodString;
|
|
1051
|
+
path: z.ZodString;
|
|
1052
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
code: string;
|
|
525
1055
|
path: string;
|
|
1056
|
+
message: string;
|
|
1057
|
+
statusCode: number;
|
|
1058
|
+
timestamp: string;
|
|
1059
|
+
details?: unknown;
|
|
1060
|
+
correlationId?: string | undefined;
|
|
1061
|
+
}, {
|
|
526
1062
|
code: string;
|
|
1063
|
+
path: string;
|
|
1064
|
+
message: string;
|
|
527
1065
|
statusCode: number;
|
|
528
1066
|
timestamp: string;
|
|
529
1067
|
details?: unknown;
|
|
@@ -532,18 +1070,18 @@ export declare const outreachRequestsContract: {
|
|
|
532
1070
|
};
|
|
533
1071
|
};
|
|
534
1072
|
list: {
|
|
535
|
-
description: string;
|
|
536
1073
|
metadata: {
|
|
537
1074
|
tags: string[];
|
|
538
1075
|
};
|
|
539
1076
|
query: z.ZodObject<{
|
|
540
1077
|
status: z.ZodOptional<z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>>;
|
|
541
1078
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
status?: "PENDING" | "
|
|
1079
|
+
status?: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
543
1080
|
}, {
|
|
544
|
-
status?: "PENDING" | "
|
|
1081
|
+
status?: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED" | undefined;
|
|
545
1082
|
}>;
|
|
546
1083
|
summary: "The open outreach queue";
|
|
1084
|
+
description: string;
|
|
547
1085
|
method: "GET";
|
|
548
1086
|
path: "/v2/outreach/requests";
|
|
549
1087
|
responses: {
|
|
@@ -556,17 +1094,17 @@ export declare const outreachRequestsContract: {
|
|
|
556
1094
|
path: z.ZodString;
|
|
557
1095
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
558
1096
|
}, "strip", z.ZodTypeAny, {
|
|
559
|
-
message: string;
|
|
560
|
-
path: string;
|
|
561
1097
|
code: string;
|
|
1098
|
+
path: string;
|
|
1099
|
+
message: string;
|
|
562
1100
|
statusCode: number;
|
|
563
1101
|
timestamp: string;
|
|
564
1102
|
details?: unknown;
|
|
565
1103
|
correlationId?: string | undefined;
|
|
566
1104
|
}, {
|
|
567
|
-
message: string;
|
|
568
|
-
path: string;
|
|
569
1105
|
code: string;
|
|
1106
|
+
path: string;
|
|
1107
|
+
message: string;
|
|
570
1108
|
statusCode: number;
|
|
571
1109
|
timestamp: string;
|
|
572
1110
|
details?: unknown;
|
|
@@ -581,17 +1119,17 @@ export declare const outreachRequestsContract: {
|
|
|
581
1119
|
path: z.ZodString;
|
|
582
1120
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
583
1121
|
}, "strip", z.ZodTypeAny, {
|
|
584
|
-
message: string;
|
|
585
|
-
path: string;
|
|
586
1122
|
code: string;
|
|
1123
|
+
path: string;
|
|
1124
|
+
message: string;
|
|
587
1125
|
statusCode: number;
|
|
588
1126
|
timestamp: string;
|
|
589
1127
|
details?: unknown;
|
|
590
1128
|
correlationId?: string | undefined;
|
|
591
1129
|
}, {
|
|
592
|
-
message: string;
|
|
593
|
-
path: string;
|
|
594
1130
|
code: string;
|
|
1131
|
+
path: string;
|
|
1132
|
+
message: string;
|
|
595
1133
|
statusCode: number;
|
|
596
1134
|
timestamp: string;
|
|
597
1135
|
details?: unknown;
|
|
@@ -606,17 +1144,17 @@ export declare const outreachRequestsContract: {
|
|
|
606
1144
|
path: z.ZodString;
|
|
607
1145
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
608
1146
|
}, "strip", z.ZodTypeAny, {
|
|
609
|
-
message: string;
|
|
610
|
-
path: string;
|
|
611
1147
|
code: string;
|
|
1148
|
+
path: string;
|
|
1149
|
+
message: string;
|
|
612
1150
|
statusCode: number;
|
|
613
1151
|
timestamp: string;
|
|
614
1152
|
details?: unknown;
|
|
615
1153
|
correlationId?: string | undefined;
|
|
616
1154
|
}, {
|
|
617
|
-
message: string;
|
|
618
|
-
path: string;
|
|
619
1155
|
code: string;
|
|
1156
|
+
path: string;
|
|
1157
|
+
message: string;
|
|
620
1158
|
statusCode: number;
|
|
621
1159
|
timestamp: string;
|
|
622
1160
|
details?: unknown;
|
|
@@ -631,17 +1169,17 @@ export declare const outreachRequestsContract: {
|
|
|
631
1169
|
path: z.ZodString;
|
|
632
1170
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
633
1171
|
}, "strip", z.ZodTypeAny, {
|
|
634
|
-
message: string;
|
|
635
|
-
path: string;
|
|
636
1172
|
code: string;
|
|
1173
|
+
path: string;
|
|
1174
|
+
message: string;
|
|
637
1175
|
statusCode: number;
|
|
638
1176
|
timestamp: string;
|
|
639
1177
|
details?: unknown;
|
|
640
1178
|
correlationId?: string | undefined;
|
|
641
1179
|
}, {
|
|
642
|
-
message: string;
|
|
643
|
-
path: string;
|
|
644
1180
|
code: string;
|
|
1181
|
+
path: string;
|
|
1182
|
+
message: string;
|
|
645
1183
|
statusCode: number;
|
|
646
1184
|
timestamp: string;
|
|
647
1185
|
details?: unknown;
|
|
@@ -651,6 +1189,7 @@ export declare const outreachRequestsContract: {
|
|
|
651
1189
|
items: z.ZodArray<z.ZodObject<{
|
|
652
1190
|
id: z.ZodString;
|
|
653
1191
|
jobId: z.ZodString;
|
|
1192
|
+
requestedByUserId: z.ZodString;
|
|
654
1193
|
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
655
1194
|
eligibleAtRequest: z.ZodNumber;
|
|
656
1195
|
requestedByName: z.ZodNullable<z.ZodString>;
|
|
@@ -658,6 +1197,34 @@ export declare const outreachRequestsContract: {
|
|
|
658
1197
|
createdAt: z.ZodString;
|
|
659
1198
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
660
1199
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1200
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
1201
|
+
id: z.ZodString;
|
|
1202
|
+
slug: z.ZodString;
|
|
1203
|
+
displayName: z.ZodString;
|
|
1204
|
+
ownerUserId: z.ZodString;
|
|
1205
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
1206
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
1207
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1208
|
+
}, "strict", z.ZodTypeAny, {
|
|
1209
|
+
id: string;
|
|
1210
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1211
|
+
slug: string;
|
|
1212
|
+
displayName: string;
|
|
1213
|
+
ownerUserId: string;
|
|
1214
|
+
ownerName: string | null;
|
|
1215
|
+
publicBaseUrl: string;
|
|
1216
|
+
}, {
|
|
1217
|
+
id: string;
|
|
1218
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1219
|
+
slug: string;
|
|
1220
|
+
displayName: string;
|
|
1221
|
+
ownerUserId: string;
|
|
1222
|
+
ownerName: string | null;
|
|
1223
|
+
publicBaseUrl: string;
|
|
1224
|
+
}>>;
|
|
1225
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
1226
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
1227
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
661
1228
|
} & {
|
|
662
1229
|
job: z.ZodObject<{
|
|
663
1230
|
title: z.ZodString;
|
|
@@ -666,96 +1233,147 @@ export declare const outreachRequestsContract: {
|
|
|
666
1233
|
locationText: z.ZodNullable<z.ZodString>;
|
|
667
1234
|
createdByName: z.ZodNullable<z.ZodString>;
|
|
668
1235
|
}, "strip", z.ZodTypeAny, {
|
|
669
|
-
createdByName: string | null;
|
|
670
1236
|
title: string;
|
|
671
1237
|
trade: string | null;
|
|
672
1238
|
payText: string | null;
|
|
673
1239
|
locationText: string | null;
|
|
674
|
-
}, {
|
|
675
1240
|
createdByName: string | null;
|
|
1241
|
+
}, {
|
|
676
1242
|
title: string;
|
|
677
1243
|
trade: string | null;
|
|
678
1244
|
payText: string | null;
|
|
679
1245
|
locationText: string | null;
|
|
1246
|
+
createdByName: string | null;
|
|
680
1247
|
}>;
|
|
681
1248
|
}, "strip", z.ZodTypeAny, {
|
|
682
1249
|
id: string;
|
|
683
|
-
createdAt: string;
|
|
684
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
685
1250
|
jobId: string;
|
|
1251
|
+
requestedByUserId: string;
|
|
1252
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1253
|
+
eligibleAtRequest: number;
|
|
1254
|
+
requestedByName: string | null;
|
|
1255
|
+
contactedCount: number;
|
|
1256
|
+
createdAt: string;
|
|
1257
|
+
startedAt: string | null;
|
|
1258
|
+
completedAt: string | null;
|
|
1259
|
+
assignedPod: {
|
|
1260
|
+
id: string;
|
|
1261
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1262
|
+
slug: string;
|
|
1263
|
+
displayName: string;
|
|
1264
|
+
ownerUserId: string;
|
|
1265
|
+
ownerName: string | null;
|
|
1266
|
+
publicBaseUrl: string;
|
|
1267
|
+
} | null;
|
|
1268
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1269
|
+
terminalCampaignId: string | null;
|
|
1270
|
+
terminalAt: string | null;
|
|
686
1271
|
job: {
|
|
687
|
-
createdByName: string | null;
|
|
688
1272
|
title: string;
|
|
689
1273
|
trade: string | null;
|
|
690
1274
|
payText: string | null;
|
|
691
1275
|
locationText: string | null;
|
|
1276
|
+
createdByName: string | null;
|
|
692
1277
|
};
|
|
693
|
-
startedAt: string | null;
|
|
694
|
-
completedAt: string | null;
|
|
695
|
-
requestedByName: string | null;
|
|
696
|
-
contactedCount: number;
|
|
697
|
-
eligibleAtRequest: number;
|
|
698
1278
|
}, {
|
|
699
1279
|
id: string;
|
|
700
|
-
createdAt: string;
|
|
701
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
702
1280
|
jobId: string;
|
|
1281
|
+
requestedByUserId: string;
|
|
1282
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1283
|
+
eligibleAtRequest: number;
|
|
1284
|
+
requestedByName: string | null;
|
|
1285
|
+
contactedCount: number;
|
|
1286
|
+
createdAt: string;
|
|
1287
|
+
startedAt: string | null;
|
|
1288
|
+
completedAt: string | null;
|
|
1289
|
+
assignedPod: {
|
|
1290
|
+
id: string;
|
|
1291
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1292
|
+
slug: string;
|
|
1293
|
+
displayName: string;
|
|
1294
|
+
ownerUserId: string;
|
|
1295
|
+
ownerName: string | null;
|
|
1296
|
+
publicBaseUrl: string;
|
|
1297
|
+
} | null;
|
|
1298
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1299
|
+
terminalCampaignId: string | null;
|
|
1300
|
+
terminalAt: string | null;
|
|
703
1301
|
job: {
|
|
704
|
-
createdByName: string | null;
|
|
705
1302
|
title: string;
|
|
706
1303
|
trade: string | null;
|
|
707
1304
|
payText: string | null;
|
|
708
1305
|
locationText: string | null;
|
|
1306
|
+
createdByName: string | null;
|
|
709
1307
|
};
|
|
710
|
-
startedAt: string | null;
|
|
711
|
-
completedAt: string | null;
|
|
712
|
-
requestedByName: string | null;
|
|
713
|
-
contactedCount: number;
|
|
714
|
-
eligibleAtRequest: number;
|
|
715
1308
|
}>, "many">;
|
|
716
1309
|
}, "strip", z.ZodTypeAny, {
|
|
717
1310
|
items: {
|
|
718
1311
|
id: string;
|
|
719
|
-
createdAt: string;
|
|
720
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
721
1312
|
jobId: string;
|
|
1313
|
+
requestedByUserId: string;
|
|
1314
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1315
|
+
eligibleAtRequest: number;
|
|
1316
|
+
requestedByName: string | null;
|
|
1317
|
+
contactedCount: number;
|
|
1318
|
+
createdAt: string;
|
|
1319
|
+
startedAt: string | null;
|
|
1320
|
+
completedAt: string | null;
|
|
1321
|
+
assignedPod: {
|
|
1322
|
+
id: string;
|
|
1323
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1324
|
+
slug: string;
|
|
1325
|
+
displayName: string;
|
|
1326
|
+
ownerUserId: string;
|
|
1327
|
+
ownerName: string | null;
|
|
1328
|
+
publicBaseUrl: string;
|
|
1329
|
+
} | null;
|
|
1330
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1331
|
+
terminalCampaignId: string | null;
|
|
1332
|
+
terminalAt: string | null;
|
|
722
1333
|
job: {
|
|
723
|
-
createdByName: string | null;
|
|
724
1334
|
title: string;
|
|
725
1335
|
trade: string | null;
|
|
726
1336
|
payText: string | null;
|
|
727
1337
|
locationText: string | null;
|
|
1338
|
+
createdByName: string | null;
|
|
728
1339
|
};
|
|
729
|
-
startedAt: string | null;
|
|
730
|
-
completedAt: string | null;
|
|
731
|
-
requestedByName: string | null;
|
|
732
|
-
contactedCount: number;
|
|
733
|
-
eligibleAtRequest: number;
|
|
734
1340
|
}[];
|
|
735
1341
|
}, {
|
|
736
1342
|
items: {
|
|
737
1343
|
id: string;
|
|
738
|
-
createdAt: string;
|
|
739
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
740
1344
|
jobId: string;
|
|
1345
|
+
requestedByUserId: string;
|
|
1346
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1347
|
+
eligibleAtRequest: number;
|
|
1348
|
+
requestedByName: string | null;
|
|
1349
|
+
contactedCount: number;
|
|
1350
|
+
createdAt: string;
|
|
1351
|
+
startedAt: string | null;
|
|
1352
|
+
completedAt: string | null;
|
|
1353
|
+
assignedPod: {
|
|
1354
|
+
id: string;
|
|
1355
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1356
|
+
slug: string;
|
|
1357
|
+
displayName: string;
|
|
1358
|
+
ownerUserId: string;
|
|
1359
|
+
ownerName: string | null;
|
|
1360
|
+
publicBaseUrl: string;
|
|
1361
|
+
} | null;
|
|
1362
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1363
|
+
terminalCampaignId: string | null;
|
|
1364
|
+
terminalAt: string | null;
|
|
741
1365
|
job: {
|
|
742
|
-
createdByName: string | null;
|
|
743
1366
|
title: string;
|
|
744
1367
|
trade: string | null;
|
|
745
1368
|
payText: string | null;
|
|
746
1369
|
locationText: string | null;
|
|
1370
|
+
createdByName: string | null;
|
|
747
1371
|
};
|
|
748
|
-
startedAt: string | null;
|
|
749
|
-
completedAt: string | null;
|
|
750
|
-
requestedByName: string | null;
|
|
751
|
-
contactedCount: number;
|
|
752
|
-
eligibleAtRequest: number;
|
|
753
1372
|
}[];
|
|
754
1373
|
}>;
|
|
755
1374
|
};
|
|
756
1375
|
};
|
|
757
1376
|
start: {
|
|
758
|
-
description: string;
|
|
759
1377
|
metadata: {
|
|
760
1378
|
tags: string[];
|
|
761
1379
|
};
|
|
@@ -767,6 +1385,7 @@ export declare const outreachRequestsContract: {
|
|
|
767
1385
|
id: string;
|
|
768
1386
|
}>;
|
|
769
1387
|
summary: "Mark a request as being worked";
|
|
1388
|
+
description: string;
|
|
770
1389
|
method: "POST";
|
|
771
1390
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
772
1391
|
path: "/v2/outreach/requests/:id/start";
|
|
@@ -780,17 +1399,17 @@ export declare const outreachRequestsContract: {
|
|
|
780
1399
|
path: z.ZodString;
|
|
781
1400
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
782
1401
|
}, "strip", z.ZodTypeAny, {
|
|
783
|
-
message: string;
|
|
784
|
-
path: string;
|
|
785
1402
|
code: string;
|
|
1403
|
+
path: string;
|
|
1404
|
+
message: string;
|
|
786
1405
|
statusCode: number;
|
|
787
1406
|
timestamp: string;
|
|
788
1407
|
details?: unknown;
|
|
789
1408
|
correlationId?: string | undefined;
|
|
790
1409
|
}, {
|
|
791
|
-
message: string;
|
|
792
|
-
path: string;
|
|
793
1410
|
code: string;
|
|
1411
|
+
path: string;
|
|
1412
|
+
message: string;
|
|
794
1413
|
statusCode: number;
|
|
795
1414
|
timestamp: string;
|
|
796
1415
|
details?: unknown;
|
|
@@ -805,17 +1424,17 @@ export declare const outreachRequestsContract: {
|
|
|
805
1424
|
path: z.ZodString;
|
|
806
1425
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
807
1426
|
}, "strip", z.ZodTypeAny, {
|
|
808
|
-
message: string;
|
|
809
|
-
path: string;
|
|
810
1427
|
code: string;
|
|
1428
|
+
path: string;
|
|
1429
|
+
message: string;
|
|
811
1430
|
statusCode: number;
|
|
812
1431
|
timestamp: string;
|
|
813
1432
|
details?: unknown;
|
|
814
1433
|
correlationId?: string | undefined;
|
|
815
1434
|
}, {
|
|
816
|
-
message: string;
|
|
817
|
-
path: string;
|
|
818
1435
|
code: string;
|
|
1436
|
+
path: string;
|
|
1437
|
+
message: string;
|
|
819
1438
|
statusCode: number;
|
|
820
1439
|
timestamp: string;
|
|
821
1440
|
details?: unknown;
|
|
@@ -830,17 +1449,17 @@ export declare const outreachRequestsContract: {
|
|
|
830
1449
|
path: z.ZodString;
|
|
831
1450
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
832
1451
|
}, "strip", z.ZodTypeAny, {
|
|
833
|
-
message: string;
|
|
834
|
-
path: string;
|
|
835
1452
|
code: string;
|
|
1453
|
+
path: string;
|
|
1454
|
+
message: string;
|
|
836
1455
|
statusCode: number;
|
|
837
1456
|
timestamp: string;
|
|
838
1457
|
details?: unknown;
|
|
839
1458
|
correlationId?: string | undefined;
|
|
840
1459
|
}, {
|
|
841
|
-
message: string;
|
|
842
|
-
path: string;
|
|
843
1460
|
code: string;
|
|
1461
|
+
path: string;
|
|
1462
|
+
message: string;
|
|
844
1463
|
statusCode: number;
|
|
845
1464
|
timestamp: string;
|
|
846
1465
|
details?: unknown;
|
|
@@ -855,17 +1474,17 @@ export declare const outreachRequestsContract: {
|
|
|
855
1474
|
path: z.ZodString;
|
|
856
1475
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
857
1476
|
}, "strip", z.ZodTypeAny, {
|
|
858
|
-
message: string;
|
|
859
|
-
path: string;
|
|
860
1477
|
code: string;
|
|
1478
|
+
path: string;
|
|
1479
|
+
message: string;
|
|
861
1480
|
statusCode: number;
|
|
862
1481
|
timestamp: string;
|
|
863
1482
|
details?: unknown;
|
|
864
1483
|
correlationId?: string | undefined;
|
|
865
1484
|
}, {
|
|
866
|
-
message: string;
|
|
867
|
-
path: string;
|
|
868
1485
|
code: string;
|
|
1486
|
+
path: string;
|
|
1487
|
+
message: string;
|
|
869
1488
|
statusCode: number;
|
|
870
1489
|
timestamp: string;
|
|
871
1490
|
details?: unknown;
|
|
@@ -874,6 +1493,7 @@ export declare const outreachRequestsContract: {
|
|
|
874
1493
|
200: z.ZodObject<{
|
|
875
1494
|
id: z.ZodString;
|
|
876
1495
|
jobId: z.ZodString;
|
|
1496
|
+
requestedByUserId: z.ZodString;
|
|
877
1497
|
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
878
1498
|
eligibleAtRequest: z.ZodNumber;
|
|
879
1499
|
requestedByName: z.ZodNullable<z.ZodString>;
|
|
@@ -881,26 +1501,80 @@ export declare const outreachRequestsContract: {
|
|
|
881
1501
|
createdAt: z.ZodString;
|
|
882
1502
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
883
1503
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1504
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
1505
|
+
id: z.ZodString;
|
|
1506
|
+
slug: z.ZodString;
|
|
1507
|
+
displayName: z.ZodString;
|
|
1508
|
+
ownerUserId: z.ZodString;
|
|
1509
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
1510
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
1511
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1512
|
+
}, "strict", z.ZodTypeAny, {
|
|
1513
|
+
id: string;
|
|
1514
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1515
|
+
slug: string;
|
|
1516
|
+
displayName: string;
|
|
1517
|
+
ownerUserId: string;
|
|
1518
|
+
ownerName: string | null;
|
|
1519
|
+
publicBaseUrl: string;
|
|
1520
|
+
}, {
|
|
1521
|
+
id: string;
|
|
1522
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1523
|
+
slug: string;
|
|
1524
|
+
displayName: string;
|
|
1525
|
+
ownerUserId: string;
|
|
1526
|
+
ownerName: string | null;
|
|
1527
|
+
publicBaseUrl: string;
|
|
1528
|
+
}>>;
|
|
1529
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
1530
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
1531
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
884
1532
|
}, "strip", z.ZodTypeAny, {
|
|
885
1533
|
id: string;
|
|
886
|
-
createdAt: string;
|
|
887
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
888
1534
|
jobId: string;
|
|
889
|
-
|
|
890
|
-
|
|
1535
|
+
requestedByUserId: string;
|
|
1536
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1537
|
+
eligibleAtRequest: number;
|
|
891
1538
|
requestedByName: string | null;
|
|
892
1539
|
contactedCount: number;
|
|
893
|
-
eligibleAtRequest: number;
|
|
894
|
-
}, {
|
|
895
|
-
id: string;
|
|
896
1540
|
createdAt: string;
|
|
897
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
898
|
-
jobId: string;
|
|
899
1541
|
startedAt: string | null;
|
|
900
1542
|
completedAt: string | null;
|
|
1543
|
+
assignedPod: {
|
|
1544
|
+
id: string;
|
|
1545
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1546
|
+
slug: string;
|
|
1547
|
+
displayName: string;
|
|
1548
|
+
ownerUserId: string;
|
|
1549
|
+
ownerName: string | null;
|
|
1550
|
+
publicBaseUrl: string;
|
|
1551
|
+
} | null;
|
|
1552
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1553
|
+
terminalCampaignId: string | null;
|
|
1554
|
+
terminalAt: string | null;
|
|
1555
|
+
}, {
|
|
1556
|
+
id: string;
|
|
1557
|
+
jobId: string;
|
|
1558
|
+
requestedByUserId: string;
|
|
1559
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1560
|
+
eligibleAtRequest: number;
|
|
901
1561
|
requestedByName: string | null;
|
|
902
1562
|
contactedCount: number;
|
|
903
|
-
|
|
1563
|
+
createdAt: string;
|
|
1564
|
+
startedAt: string | null;
|
|
1565
|
+
completedAt: string | null;
|
|
1566
|
+
assignedPod: {
|
|
1567
|
+
id: string;
|
|
1568
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1569
|
+
slug: string;
|
|
1570
|
+
displayName: string;
|
|
1571
|
+
ownerUserId: string;
|
|
1572
|
+
ownerName: string | null;
|
|
1573
|
+
publicBaseUrl: string;
|
|
1574
|
+
} | null;
|
|
1575
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1576
|
+
terminalCampaignId: string | null;
|
|
1577
|
+
terminalAt: string | null;
|
|
904
1578
|
}>;
|
|
905
1579
|
404: z.ZodObject<{
|
|
906
1580
|
statusCode: z.ZodNumber;
|
|
@@ -911,17 +1585,17 @@ export declare const outreachRequestsContract: {
|
|
|
911
1585
|
path: z.ZodString;
|
|
912
1586
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
913
1587
|
}, "strip", z.ZodTypeAny, {
|
|
914
|
-
message: string;
|
|
915
|
-
path: string;
|
|
916
1588
|
code: string;
|
|
1589
|
+
path: string;
|
|
1590
|
+
message: string;
|
|
917
1591
|
statusCode: number;
|
|
918
1592
|
timestamp: string;
|
|
919
1593
|
details?: unknown;
|
|
920
1594
|
correlationId?: string | undefined;
|
|
921
1595
|
}, {
|
|
922
|
-
message: string;
|
|
923
|
-
path: string;
|
|
924
1596
|
code: string;
|
|
1597
|
+
path: string;
|
|
1598
|
+
message: string;
|
|
925
1599
|
statusCode: number;
|
|
926
1600
|
timestamp: string;
|
|
927
1601
|
details?: unknown;
|
|
@@ -930,7 +1604,6 @@ export declare const outreachRequestsContract: {
|
|
|
930
1604
|
};
|
|
931
1605
|
};
|
|
932
1606
|
complete: {
|
|
933
|
-
description: string;
|
|
934
1607
|
metadata: {
|
|
935
1608
|
tags: string[];
|
|
936
1609
|
};
|
|
@@ -942,6 +1615,7 @@ export declare const outreachRequestsContract: {
|
|
|
942
1615
|
id: string;
|
|
943
1616
|
}>;
|
|
944
1617
|
summary: "Mark a request as drained or ended";
|
|
1618
|
+
description: string;
|
|
945
1619
|
method: "POST";
|
|
946
1620
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
947
1621
|
path: "/v2/outreach/requests/:id/complete";
|
|
@@ -955,17 +1629,17 @@ export declare const outreachRequestsContract: {
|
|
|
955
1629
|
path: z.ZodString;
|
|
956
1630
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
957
1631
|
}, "strip", z.ZodTypeAny, {
|
|
958
|
-
message: string;
|
|
959
|
-
path: string;
|
|
960
1632
|
code: string;
|
|
1633
|
+
path: string;
|
|
1634
|
+
message: string;
|
|
961
1635
|
statusCode: number;
|
|
962
1636
|
timestamp: string;
|
|
963
1637
|
details?: unknown;
|
|
964
1638
|
correlationId?: string | undefined;
|
|
965
1639
|
}, {
|
|
966
|
-
message: string;
|
|
967
|
-
path: string;
|
|
968
1640
|
code: string;
|
|
1641
|
+
path: string;
|
|
1642
|
+
message: string;
|
|
969
1643
|
statusCode: number;
|
|
970
1644
|
timestamp: string;
|
|
971
1645
|
details?: unknown;
|
|
@@ -980,17 +1654,17 @@ export declare const outreachRequestsContract: {
|
|
|
980
1654
|
path: z.ZodString;
|
|
981
1655
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
982
1656
|
}, "strip", z.ZodTypeAny, {
|
|
983
|
-
message: string;
|
|
984
|
-
path: string;
|
|
985
1657
|
code: string;
|
|
1658
|
+
path: string;
|
|
1659
|
+
message: string;
|
|
986
1660
|
statusCode: number;
|
|
987
1661
|
timestamp: string;
|
|
988
1662
|
details?: unknown;
|
|
989
1663
|
correlationId?: string | undefined;
|
|
990
1664
|
}, {
|
|
991
|
-
message: string;
|
|
992
|
-
path: string;
|
|
993
1665
|
code: string;
|
|
1666
|
+
path: string;
|
|
1667
|
+
message: string;
|
|
994
1668
|
statusCode: number;
|
|
995
1669
|
timestamp: string;
|
|
996
1670
|
details?: unknown;
|
|
@@ -1005,17 +1679,17 @@ export declare const outreachRequestsContract: {
|
|
|
1005
1679
|
path: z.ZodString;
|
|
1006
1680
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1007
1681
|
}, "strip", z.ZodTypeAny, {
|
|
1008
|
-
message: string;
|
|
1009
|
-
path: string;
|
|
1010
1682
|
code: string;
|
|
1683
|
+
path: string;
|
|
1684
|
+
message: string;
|
|
1011
1685
|
statusCode: number;
|
|
1012
1686
|
timestamp: string;
|
|
1013
1687
|
details?: unknown;
|
|
1014
1688
|
correlationId?: string | undefined;
|
|
1015
1689
|
}, {
|
|
1016
|
-
message: string;
|
|
1017
|
-
path: string;
|
|
1018
1690
|
code: string;
|
|
1691
|
+
path: string;
|
|
1692
|
+
message: string;
|
|
1019
1693
|
statusCode: number;
|
|
1020
1694
|
timestamp: string;
|
|
1021
1695
|
details?: unknown;
|
|
@@ -1030,17 +1704,17 @@ export declare const outreachRequestsContract: {
|
|
|
1030
1704
|
path: z.ZodString;
|
|
1031
1705
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1032
1706
|
}, "strip", z.ZodTypeAny, {
|
|
1033
|
-
message: string;
|
|
1034
|
-
path: string;
|
|
1035
1707
|
code: string;
|
|
1708
|
+
path: string;
|
|
1709
|
+
message: string;
|
|
1036
1710
|
statusCode: number;
|
|
1037
1711
|
timestamp: string;
|
|
1038
1712
|
details?: unknown;
|
|
1039
1713
|
correlationId?: string | undefined;
|
|
1040
1714
|
}, {
|
|
1041
|
-
message: string;
|
|
1042
|
-
path: string;
|
|
1043
1715
|
code: string;
|
|
1716
|
+
path: string;
|
|
1717
|
+
message: string;
|
|
1044
1718
|
statusCode: number;
|
|
1045
1719
|
timestamp: string;
|
|
1046
1720
|
details?: unknown;
|
|
@@ -1049,6 +1723,7 @@ export declare const outreachRequestsContract: {
|
|
|
1049
1723
|
200: z.ZodObject<{
|
|
1050
1724
|
id: z.ZodString;
|
|
1051
1725
|
jobId: z.ZodString;
|
|
1726
|
+
requestedByUserId: z.ZodString;
|
|
1052
1727
|
status: z.ZodEnum<["PENDING", "RUNNING", "COMPLETED", "CANCELLED"]>;
|
|
1053
1728
|
eligibleAtRequest: z.ZodNumber;
|
|
1054
1729
|
requestedByName: z.ZodNullable<z.ZodString>;
|
|
@@ -1056,26 +1731,80 @@ export declare const outreachRequestsContract: {
|
|
|
1056
1731
|
createdAt: z.ZodString;
|
|
1057
1732
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
1058
1733
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
1734
|
+
assignedPod: z.ZodNullable<z.ZodObject<{
|
|
1735
|
+
id: z.ZodString;
|
|
1736
|
+
slug: z.ZodString;
|
|
1737
|
+
displayName: z.ZodString;
|
|
1738
|
+
ownerUserId: z.ZodString;
|
|
1739
|
+
ownerName: z.ZodNullable<z.ZodString>;
|
|
1740
|
+
publicBaseUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
1741
|
+
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
1742
|
+
}, "strict", z.ZodTypeAny, {
|
|
1743
|
+
id: string;
|
|
1744
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1745
|
+
slug: string;
|
|
1746
|
+
displayName: string;
|
|
1747
|
+
ownerUserId: string;
|
|
1748
|
+
ownerName: string | null;
|
|
1749
|
+
publicBaseUrl: string;
|
|
1750
|
+
}, {
|
|
1751
|
+
id: string;
|
|
1752
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1753
|
+
slug: string;
|
|
1754
|
+
displayName: string;
|
|
1755
|
+
ownerUserId: string;
|
|
1756
|
+
ownerName: string | null;
|
|
1757
|
+
publicBaseUrl: string;
|
|
1758
|
+
}>>;
|
|
1759
|
+
terminalReason: z.ZodNullable<z.ZodLiteral<"LAB_RUN_COMPLETED">>;
|
|
1760
|
+
terminalCampaignId: z.ZodNullable<z.ZodString>;
|
|
1761
|
+
terminalAt: z.ZodNullable<z.ZodString>;
|
|
1059
1762
|
}, "strip", z.ZodTypeAny, {
|
|
1060
1763
|
id: string;
|
|
1061
|
-
createdAt: string;
|
|
1062
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
1063
1764
|
jobId: string;
|
|
1064
|
-
|
|
1065
|
-
|
|
1765
|
+
requestedByUserId: string;
|
|
1766
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1767
|
+
eligibleAtRequest: number;
|
|
1066
1768
|
requestedByName: string | null;
|
|
1067
1769
|
contactedCount: number;
|
|
1068
|
-
eligibleAtRequest: number;
|
|
1069
|
-
}, {
|
|
1070
|
-
id: string;
|
|
1071
1770
|
createdAt: string;
|
|
1072
|
-
status: "PENDING" | "COMPLETED" | "CANCELLED" | "RUNNING";
|
|
1073
|
-
jobId: string;
|
|
1074
1771
|
startedAt: string | null;
|
|
1075
1772
|
completedAt: string | null;
|
|
1773
|
+
assignedPod: {
|
|
1774
|
+
id: string;
|
|
1775
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1776
|
+
slug: string;
|
|
1777
|
+
displayName: string;
|
|
1778
|
+
ownerUserId: string;
|
|
1779
|
+
ownerName: string | null;
|
|
1780
|
+
publicBaseUrl: string;
|
|
1781
|
+
} | null;
|
|
1782
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1783
|
+
terminalCampaignId: string | null;
|
|
1784
|
+
terminalAt: string | null;
|
|
1785
|
+
}, {
|
|
1786
|
+
id: string;
|
|
1787
|
+
jobId: string;
|
|
1788
|
+
requestedByUserId: string;
|
|
1789
|
+
status: "PENDING" | "RUNNING" | "COMPLETED" | "CANCELLED";
|
|
1790
|
+
eligibleAtRequest: number;
|
|
1076
1791
|
requestedByName: string | null;
|
|
1077
1792
|
contactedCount: number;
|
|
1078
|
-
|
|
1793
|
+
createdAt: string;
|
|
1794
|
+
startedAt: string | null;
|
|
1795
|
+
completedAt: string | null;
|
|
1796
|
+
assignedPod: {
|
|
1797
|
+
id: string;
|
|
1798
|
+
status: "ACTIVE" | "INACTIVE";
|
|
1799
|
+
slug: string;
|
|
1800
|
+
displayName: string;
|
|
1801
|
+
ownerUserId: string;
|
|
1802
|
+
ownerName: string | null;
|
|
1803
|
+
publicBaseUrl: string;
|
|
1804
|
+
} | null;
|
|
1805
|
+
terminalReason: "LAB_RUN_COMPLETED" | null;
|
|
1806
|
+
terminalCampaignId: string | null;
|
|
1807
|
+
terminalAt: string | null;
|
|
1079
1808
|
}>;
|
|
1080
1809
|
404: z.ZodObject<{
|
|
1081
1810
|
statusCode: z.ZodNumber;
|
|
@@ -1086,17 +1815,17 @@ export declare const outreachRequestsContract: {
|
|
|
1086
1815
|
path: z.ZodString;
|
|
1087
1816
|
correlationId: z.ZodOptional<z.ZodString>;
|
|
1088
1817
|
}, "strip", z.ZodTypeAny, {
|
|
1089
|
-
message: string;
|
|
1090
|
-
path: string;
|
|
1091
1818
|
code: string;
|
|
1819
|
+
path: string;
|
|
1820
|
+
message: string;
|
|
1092
1821
|
statusCode: number;
|
|
1093
1822
|
timestamp: string;
|
|
1094
1823
|
details?: unknown;
|
|
1095
1824
|
correlationId?: string | undefined;
|
|
1096
1825
|
}, {
|
|
1097
|
-
message: string;
|
|
1098
|
-
path: string;
|
|
1099
1826
|
code: string;
|
|
1827
|
+
path: string;
|
|
1828
|
+
message: string;
|
|
1100
1829
|
statusCode: number;
|
|
1101
1830
|
timestamp: string;
|
|
1102
1831
|
details?: unknown;
|