-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapollo.oas.types.d.ts
498 lines (490 loc) · 14 KB
/
apollo.oas.types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
'/v1/emailer_campaigns/{id}': {
get: operations['getEmailerCampaign']
}
'/v1/emailer_campaigns': {
post: operations['createEmailerCampaign']
}
'/v1/emailer_campaigns/{id}/add_contact_ids': {
post: operations['addContactIdsToEmailerCampaign']
}
'/v1/emailer_steps': {
post: operations['createEmailerStep']
}
'/v1/emailer_steps/{id}': {
delete: operations['deleteEmailerStep']
}
'/v1/emailer_touches/{id}': {
put: operations['updateEmailerTouch']
}
'/v1/contacts/{id}': {
get: operations['getContact']
}
'/v1/contacts/search': {
post: operations['searchContacts']
}
'/v1/email_accounts': {
get: operations['listEmailAccounts']
}
'/v1/emailer_campaigns/check_contacts_deployability': {
/** @description Check if contacts are deployable to a sequence, primarily used to check if contacts are already in another sequence. */
post: operations['checkContactsDeployability']
}
}
export type webhooks = Record<string, never>
export interface components {
schemas: {
emailer_campaign: {
id: string
name?: string | null
/** Format: date-time */
created_at: string
/** @enum {string} */
permissions?: 'team_can_use' | 'team_can_view' | 'private'
active: boolean
archived: boolean
label_ids: string[]
num_steps?: number | null
user_id?: string | null
unique_scheduled?: components['schemas']['metric']
unique_delivered?: components['schemas']['metric']
unique_bounced?: components['schemas']['metric']
unique_opened?: components['schemas']['metric']
unique_replied?: components['schemas']['metric']
unique_demoed?: components['schemas']['metric']
unique_clicked?: components['schemas']['metric']
unique_unsubscribed?: components['schemas']['metric']
bounce_rate?: components['schemas']['metric']
open_rate?: components['schemas']['metric']
click_rate?: components['schemas']['metric']
reply_rate?: components['schemas']['metric']
spam_blocked_rate?: components['schemas']['metric']
opt_out_rate?: components['schemas']['metric']
demo_rate?: components['schemas']['metric']
}
metric: number | 'loading' | null
emailer_step: {
id: string
emailer_campaign_id: string
position?: number | null
wait_time?: number | null
type: components['schemas']['emailer_step_type']
wait_mode: components['schemas']['emailer_step_wait_mode']
note?: string | null
max_emails_per_day?: number | null
exact_datetime?: string | null
priority?: string | null
auto_skip_in_x_days?: number | null
counts?: {
active?: number | null
paused?: number | null
finished?: number | null
bounced?: number | null
spam_blocked?: number | null
hard_bounced?: number | null
not_sent?: number | null
} | null
}
/** @enum {string} */
emailer_step_type:
| 'auto_email'
| 'manual_email'
| 'call'
| 'action_item'
| 'linkedin_step_message'
| 'linkedin_step_connect'
| 'linkedin_step_view_profile'
| 'linkedin_step_interact_post'
/** @enum {string} */
emailer_step_wait_mode: 'second' | 'minute' | 'hour' | 'day'
emailer_touch: {
id: string
emailer_step_id?: string | null
emailer_template_id?: string | null
emailer_template?: components['schemas']['emailer_template'] | null
status?: string | null
/** @enum {string|null} */
type?: 'reply_to_thread' | 'new_thread'
include_signature?: boolean | null
has_personalized_opener?: boolean | null
personalized_opener_fallback_option?: string | null
generic_personalized_opener?: string | null
unique_scheduled?: components['schemas']['metric']
unique_delivered?: components['schemas']['metric']
unique_bounced?: components['schemas']['metric']
unique_opened?: components['schemas']['metric']
unique_replied?: components['schemas']['metric']
bounce_rate?: components['schemas']['metric']
open_rate?: components['schemas']['metric']
reply_rate?: components['schemas']['metric']
demo_rate?: components['schemas']['metric']
unique_demoed?: components['schemas']['metric']
unique_clicked?: components['schemas']['metric']
click_rate?: components['schemas']['metric']
unique_unsubscribed?: components['schemas']['metric']
opt_out_rate?: components['schemas']['metric']
unique_hard_bounced?: components['schemas']['metric']
unique_spam_blocked?: components['schemas']['metric']
hard_bounce_rate?: components['schemas']['metric']
spam_block_rate?: components['schemas']['metric']
}
emailer_template: {
id: string
name?: string | null
user_id?: string | null
subject?: string | null
archived?: boolean | null
/** Format: date-time */
created_at?: string | null
global?: boolean | null
body_text?: string | null
folder_id?: string | null
body_html?: string | null
creation_type?: string | null
label_ids?: string[] | null
prompt_id?: string | null
}
contact: {
id: string
first_name?: string
last_name?: string
name?: string
/** Format: uri */
linkedin_url?: string
title?: string
organization_name?: string
organization_id?: string
headline?: string
/** Format: uri */
photo_url?: string
/** Format: date-time */
updated_at?: string
label_ids?: string[]
/** Format: email */
email?: string
/** @description Need to test this out... */
phone_numbers?: string[]
emailer_campaign_ids?: string[]
contact_campaign_statuses: {
id: string
send_email_from_email_account_id: string
emailer_campaign_id: string
[key: string]: unknown
}[]
[key: string]: unknown
}
email_account: {
id: string
userId?: unknown
email?: unknown
createdAt?: unknown
updatedAt?: unknown
lastModifiedAt?: unknown
isDeleted?: unknown
rawData?: unknown
isDisabled?: unknown
[key: string]: unknown
}
}
responses: never
parameters: never
requestBodies: never
headers: never
pathItems: never
}
export type $defs = Record<string, never>
export type external = Record<string, never>
export interface operations {
getEmailerCampaign: {
parameters: {
path: {
id: string
}
}
requestBody?: {
content: {
'application/json': unknown
}
}
responses: {
200: {
content: {
'application/json': {
emailer_campaign: components['schemas']['emailer_campaign']
emailer_steps?: components['schemas']['emailer_step'][] | null
emailer_touches?: components['schemas']['emailer_touch'][] | null
emailer_templates?:
| components['schemas']['emailer_template'][]
| null
}
}
}
}
}
createEmailerCampaign: {
requestBody?: {
content: {
'application/json': {
name?: string | null
/** @enum {string} */
permissions?: 'team_can_use' | 'team_can_view' | 'private'
user_id?: string | null
label_ids?: string[]
active?: boolean
}
}
}
responses: {
200: {
content: {
'application/json': {
emailer_campaign: components['schemas']['emailer_campaign']
emailer_steps?: components['schemas']['emailer_step'][] | null
emailer_touches?: components['schemas']['emailer_touch'][] | null
emailer_templates?:
| components['schemas']['emailer_template'][]
| null
}
}
}
}
}
addContactIdsToEmailerCampaign: {
parameters: {
path: {
id: string
}
}
requestBody?: {
content: {
'application/json': {
contact_ids: string[]
emailer_campaign_id: string
send_email_from_email_account_id: string
userId?: string | null
/**
* @description
* By default Apollo will not add contact to more than one sequence at a time. However if we pass "true"
* to this field, it will add the contact to the sequence even if they are already in another sequence.
*/
sequence_active_in_other_campaigns?: boolean
}
}
}
responses: {
200: {
content: {
'application/json': {
contacts: components['schemas']['contact'][]
}
}
}
}
}
createEmailerStep: {
requestBody?: {
content: {
'application/json': {
emailer_campaign_id: string
priority?: string | null
position?: number | null
type: components['schemas']['emailer_step_type']
wait_mode: components['schemas']['emailer_step_wait_mode']
wait_time?: number | null
exact_datetime?: string | null
note?: string | null
}
}
}
responses: {
200: {
content: {
'application/json': {
emailer_step: components['schemas']['emailer_step']
emailer_touch?: components['schemas']['emailer_touch'] | null
emailer_template?: components['schemas']['emailer_template'] | null
}
}
}
}
}
deleteEmailerStep: {
parameters: {
path: {
id: string
}
}
requestBody?: {
content: {
'application/json': unknown
}
}
responses: {
200: {
content: {
'application/json': {
emailer_step: {
id: string
deleted: boolean
}
}
}
}
}
}
updateEmailerTouch: {
parameters: {
path: {
id: string
}
}
requestBody?: {
content: {
'application/json': {
id: string
emailer_step_id?: string | null
emailer_template?: components['schemas']['emailer_template'] | null
/** @enum {string|null} */
type?: 'reply_to_thread' | 'new_thread'
}
}
}
responses: {
200: {
content: {
'application/json': {
emailer_touch: components['schemas']['emailer_touch']
}
}
}
}
}
getContact: {
parameters: {
path: {
id: string
}
}
requestBody?: {
content: {
'application/json': unknown
}
}
responses: {
200: {
content: {
'application/json': {
contact: components['schemas']['contact']
}
}
}
}
}
searchContacts: {
requestBody?: {
content: {
'application/json': {
/** @description The contact's name, title, company, or email */
q_keywords?: string
/** @description An array of stage ids the contact must belong to. Refer to /contact_stages to get a list of possible stage ids. */
contact_stage_ids?: string[]
/**
* @description Possible values: "contact_last_activity_date", "contact_email_last_opened_at", "contact_email_last_clicked_at", "contact_created_at", or "contact_updated_at"
* @enum {string}
*/
sort_by_field?:
| 'contact_last_activity_date'
| 'contact_email_last_opened_at'
| 'contact_email_last_clicked_at'
| 'contact_created_at'
| 'contact_updated_at'
/** @description Possible values: true or false */
sort_ascending?: boolean
/** @description Which page to return. Defaults to 1 */
page?: number
}
}
}
responses: {
200: {
content: {
'application/json': {
contacts: components['schemas']['contact'][]
pagination: {
page: number
per_page: number
total_entries: number
total_pages: number
}
}
}
}
}
}
listEmailAccounts: {
requestBody?: {
content: {
'application/json': unknown
}
}
responses: {
200: {
content: {
'application/json': {
email_accounts: components['schemas']['email_account'][]
}
}
}
}
}
/** @description Check if contacts are deployable to a sequence, primarily used to check if contacts are already in another sequence. */
checkContactsDeployability: {
requestBody?: {
content: {
'application/json': {
contact_ids: string[]
emailer_campaign_id?: string
}
}
}
responses: {
200: {
content: {
'application/json': {
num_active_in_other_campaigns: number
num_finished_in_other_campaigns: number
num_same_company: number
num_no_email: number
num_unverified_email: number
num_without_ownership_permission: number
num_with_job_change_contacts: number
sample_active_in_other_campaigns_contacts: {
id: string
name: string
}[]
sample_finished_in_other_campaigns_contacts: unknown[]
sample_same_company_contacts: unknown[]
sample_no_email_contacts: unknown[]
sample_unverified_email_contacts: unknown[]
sample_without_ownership_permission: unknown[]
sample_with_job_change_contacts: unknown[]
show_warning: boolean
num_total_dangerous_contacts: number
}
}
}
}
}
}
export interface oasTypes {
components: components
external: external
operations: operations
paths: paths
webhooks: webhooks
}
export default oasTypes