@epilot/journey-client 0.4.1 → 0.4.3
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/definition.js +1 -1
- package/dist/openapi.d.ts +48 -0
- package/package.json +12 -11
- package/LICENSE +0 -21
- package/src/openapi.d.ts +0 -1430
package/src/openapi.d.ts
DELETED
|
@@ -1,1430 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
import type {
|
|
4
|
-
OpenAPIClient,
|
|
5
|
-
Parameters,
|
|
6
|
-
UnknownParamsObject,
|
|
7
|
-
OperationResponse,
|
|
8
|
-
AxiosRequestConfig,
|
|
9
|
-
} from 'openapi-client-axios';
|
|
10
|
-
|
|
11
|
-
declare namespace Components {
|
|
12
|
-
namespace Schemas {
|
|
13
|
-
/**
|
|
14
|
-
* A single button option data
|
|
15
|
-
*/
|
|
16
|
-
export interface ButtonOption {
|
|
17
|
-
/**
|
|
18
|
-
* The value of the button
|
|
19
|
-
* example:
|
|
20
|
-
* Button Hidden Value
|
|
21
|
-
*/
|
|
22
|
-
value?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The label of the button
|
|
25
|
-
* example:
|
|
26
|
-
* Button Label
|
|
27
|
-
*/
|
|
28
|
-
label?: string;
|
|
29
|
-
}
|
|
30
|
-
export interface GenerateDocumentRequest {
|
|
31
|
-
/**
|
|
32
|
-
* Entity id for the template being used
|
|
33
|
-
* example:
|
|
34
|
-
* 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p
|
|
35
|
-
*/
|
|
36
|
-
file_id: string;
|
|
37
|
-
/**
|
|
38
|
-
* Custom values for variables in the template. Takes the higher precedence than others.
|
|
39
|
-
*/
|
|
40
|
-
context_data: {
|
|
41
|
-
additionalProperties?: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Language code for the document
|
|
45
|
-
* example:
|
|
46
|
-
* de
|
|
47
|
-
*/
|
|
48
|
-
language?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface GenerateDocumentResponse {
|
|
51
|
-
job_id?: string; // uuid
|
|
52
|
-
/**
|
|
53
|
-
* Status of the job
|
|
54
|
-
*/
|
|
55
|
-
job_status?: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED";
|
|
56
|
-
/**
|
|
57
|
-
* A message explaining the progress
|
|
58
|
-
*/
|
|
59
|
-
message?: string;
|
|
60
|
-
pdf_output?: {
|
|
61
|
-
/**
|
|
62
|
-
* Pre-signed S3 GET URL for PDF preview
|
|
63
|
-
* example:
|
|
64
|
-
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf
|
|
65
|
-
*/
|
|
66
|
-
preview_url?: string;
|
|
67
|
-
/**
|
|
68
|
-
* example:
|
|
69
|
-
* {
|
|
70
|
-
* "s3ref": {
|
|
71
|
-
* "bucket": "document-api-preview-prod",
|
|
72
|
-
* "key": "preview/my-template.pdf"
|
|
73
|
-
* }
|
|
74
|
-
* }
|
|
75
|
-
*/
|
|
76
|
-
output_document?: {
|
|
77
|
-
/**
|
|
78
|
-
* Generated document filename for PDF
|
|
79
|
-
* example:
|
|
80
|
-
* my-template-OR-001.pdf
|
|
81
|
-
*/
|
|
82
|
-
filename?: string;
|
|
83
|
-
s3ref?: S3Reference;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
docx_output?: {
|
|
87
|
-
/**
|
|
88
|
-
* Pre-signed S3 GET URL for DOCX preview
|
|
89
|
-
* example:
|
|
90
|
-
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx
|
|
91
|
-
*/
|
|
92
|
-
preview_url?: string;
|
|
93
|
-
/**
|
|
94
|
-
* example:
|
|
95
|
-
* {
|
|
96
|
-
* "s3ref": {
|
|
97
|
-
* "bucket": "document-api-preview-prod",
|
|
98
|
-
* "key": "preview/my-template.docx"
|
|
99
|
-
* }
|
|
100
|
-
* }
|
|
101
|
-
*/
|
|
102
|
-
output_document?: {
|
|
103
|
-
/**
|
|
104
|
-
* Generated document filename for DOCX
|
|
105
|
-
* example:
|
|
106
|
-
* my-template-OR-001.docx
|
|
107
|
-
*/
|
|
108
|
-
filename?: string;
|
|
109
|
-
s3ref?: S3Reference;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* List of variables and its corresponding replaced values from the document template
|
|
114
|
-
*/
|
|
115
|
-
variable_payload?: {
|
|
116
|
-
additionalProperties?: string;
|
|
117
|
-
};
|
|
118
|
-
template_settings?: /* Template Settings for document generation */ TemplateSettings;
|
|
119
|
-
}
|
|
120
|
-
export interface GetJourneysResponse {
|
|
121
|
-
}
|
|
122
|
-
export interface GetSettingsForJourney {
|
|
123
|
-
/**
|
|
124
|
-
* ID of an organization in epilot platform
|
|
125
|
-
* example:
|
|
126
|
-
* 739224
|
|
127
|
-
*/
|
|
128
|
-
organizationId?: string;
|
|
129
|
-
/**
|
|
130
|
-
* The canary flag controls update frequency of epilot application: when true, customers receive continuous updates; when false, they only get updates with new version releases.
|
|
131
|
-
* example:
|
|
132
|
-
* true
|
|
133
|
-
*/
|
|
134
|
-
canary?: boolean;
|
|
135
|
-
}
|
|
136
|
-
export interface Journey {
|
|
137
|
-
[name: string]: any;
|
|
138
|
-
journeyId?: string;
|
|
139
|
-
organizationId: string;
|
|
140
|
-
brandId?: string;
|
|
141
|
-
name: string;
|
|
142
|
-
steps: {
|
|
143
|
-
showStepName?: boolean | null;
|
|
144
|
-
title?: string | null;
|
|
145
|
-
subTitle?: string | null;
|
|
146
|
-
showStepSubtitle?: boolean | null;
|
|
147
|
-
showStepper?: boolean | null;
|
|
148
|
-
showStepperLabels?: boolean | null;
|
|
149
|
-
hideNextButton?: boolean | null;
|
|
150
|
-
name: string;
|
|
151
|
-
stepId?: string;
|
|
152
|
-
schema: any;
|
|
153
|
-
uischema: any;
|
|
154
|
-
maxWidth?: "small" | "medium" | "large" | "extra large";
|
|
155
|
-
}[];
|
|
156
|
-
design?: {
|
|
157
|
-
logoUrl?: string | null;
|
|
158
|
-
theme: {
|
|
159
|
-
[name: string]: any;
|
|
160
|
-
};
|
|
161
|
-
designTokens?: {
|
|
162
|
-
[key: string]: any;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
rules?: {
|
|
166
|
-
type: "inject" | "injectWithKey";
|
|
167
|
-
sourceType: "journey" | "step" | "block";
|
|
168
|
-
source: string;
|
|
169
|
-
target: string;
|
|
170
|
-
}[];
|
|
171
|
-
logics?: {
|
|
172
|
-
autoGeneratedId?: string;
|
|
173
|
-
conditions: string[];
|
|
174
|
-
actions: string[];
|
|
175
|
-
}[];
|
|
176
|
-
contextSchema?: {
|
|
177
|
-
type: string;
|
|
178
|
-
paramKey: string;
|
|
179
|
-
isRequired?: boolean;
|
|
180
|
-
shouldLoadEntity?: boolean;
|
|
181
|
-
}[];
|
|
182
|
-
/**
|
|
183
|
-
* Journey Template
|
|
184
|
-
* example:
|
|
185
|
-
* Sales template (Premium)
|
|
186
|
-
*/
|
|
187
|
-
journey_type?: string;
|
|
188
|
-
settings?: {
|
|
189
|
-
embedOptions?: {
|
|
190
|
-
mode?: "full-screen" | "inline";
|
|
191
|
-
lang?: "de" | "en" | "fr";
|
|
192
|
-
width?: string;
|
|
193
|
-
topBar?: boolean;
|
|
194
|
-
scrollToTop?: boolean;
|
|
195
|
-
button?: {
|
|
196
|
-
text?: string | null;
|
|
197
|
-
align?: "left" | "center" | "right";
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
safeModeAutomation?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* DEPRECATED - This API will return hardcoded value of false. Please note that this field is internal to epilot and should not be used by external clients. If you wish to get the canary flag, please use the /v1/journey/{id}/settings API.
|
|
203
|
-
*/
|
|
204
|
-
canary?: boolean;
|
|
205
|
-
designId: string;
|
|
206
|
-
templateId?: string;
|
|
207
|
-
entityId?: string | null;
|
|
208
|
-
mappingsAutomationId?: string;
|
|
209
|
-
targetedCustomer?: string;
|
|
210
|
-
description?: string | null;
|
|
211
|
-
organizationSettings?: {
|
|
212
|
-
[name: string]: boolean;
|
|
213
|
-
} | null;
|
|
214
|
-
publicToken?: string | null;
|
|
215
|
-
runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
|
|
216
|
-
filePurposes?: string[];
|
|
217
|
-
entityTags?: string[];
|
|
218
|
-
/**
|
|
219
|
-
* @deprecated Use addressSuggestionsFileId instead
|
|
220
|
-
*/
|
|
221
|
-
addressSuggestionsFileUrl?: string | null;
|
|
222
|
-
addressSuggestionsFileId?: string | null;
|
|
223
|
-
/**
|
|
224
|
-
* This property is deprecated and will be removed in a future version
|
|
225
|
-
*/
|
|
226
|
-
useNewDesign?: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* If true, some journey input labels are in Austrian format
|
|
229
|
-
*/
|
|
230
|
-
useAustrianLabels?: boolean;
|
|
231
|
-
/**
|
|
232
|
-
* If true, the journey shows an icon to toggle dark mode
|
|
233
|
-
*/
|
|
234
|
-
enableDarkMode?: boolean;
|
|
235
|
-
accessMode?: "PUBLIC" | "PRIVATE";
|
|
236
|
-
isPublished?: boolean;
|
|
237
|
-
status?: string;
|
|
238
|
-
isActive?: boolean;
|
|
239
|
-
savingProgress?: {
|
|
240
|
-
savingMode?: "auto" | "local" | "remote" | "none";
|
|
241
|
-
supportedVersion?: number;
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
|
|
245
|
-
*/
|
|
246
|
-
thirdPartyCookies?: boolean;
|
|
247
|
-
};
|
|
248
|
-
createdBy?: string;
|
|
249
|
-
/**
|
|
250
|
-
* If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
|
|
251
|
-
*/
|
|
252
|
-
__lastModifiedAt?: string | null;
|
|
253
|
-
createdAt: string;
|
|
254
|
-
lastModifiedAt: string;
|
|
255
|
-
deletedAt?: string;
|
|
256
|
-
version: number;
|
|
257
|
-
revisions: number;
|
|
258
|
-
featureFlags?: {
|
|
259
|
-
[name: string]: any;
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
export interface JourneyAuditInfo {
|
|
263
|
-
createdAt: string;
|
|
264
|
-
lastModifiedAt: string;
|
|
265
|
-
deletedAt?: string;
|
|
266
|
-
version: number;
|
|
267
|
-
revisions: number;
|
|
268
|
-
}
|
|
269
|
-
export interface JourneyCreationRequest {
|
|
270
|
-
[name: string]: any;
|
|
271
|
-
journeyId?: string;
|
|
272
|
-
organizationId: string;
|
|
273
|
-
brandId?: string;
|
|
274
|
-
name: string;
|
|
275
|
-
steps: {
|
|
276
|
-
showStepName?: boolean | null;
|
|
277
|
-
title?: string | null;
|
|
278
|
-
subTitle?: string | null;
|
|
279
|
-
showStepSubtitle?: boolean | null;
|
|
280
|
-
showStepper?: boolean | null;
|
|
281
|
-
showStepperLabels?: boolean | null;
|
|
282
|
-
hideNextButton?: boolean | null;
|
|
283
|
-
name: string;
|
|
284
|
-
stepId?: string;
|
|
285
|
-
schema: any;
|
|
286
|
-
uischema: any;
|
|
287
|
-
maxWidth?: "small" | "medium" | "large" | "extra large";
|
|
288
|
-
}[];
|
|
289
|
-
design?: {
|
|
290
|
-
logoUrl?: string | null;
|
|
291
|
-
theme: {
|
|
292
|
-
[name: string]: any;
|
|
293
|
-
};
|
|
294
|
-
designTokens?: {
|
|
295
|
-
[key: string]: any;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
rules?: {
|
|
299
|
-
type: "inject" | "injectWithKey";
|
|
300
|
-
sourceType: "journey" | "step" | "block";
|
|
301
|
-
source: string;
|
|
302
|
-
target: string;
|
|
303
|
-
}[];
|
|
304
|
-
logics?: {
|
|
305
|
-
autoGeneratedId?: string;
|
|
306
|
-
conditions: string[];
|
|
307
|
-
actions: string[];
|
|
308
|
-
}[];
|
|
309
|
-
contextSchema?: {
|
|
310
|
-
type: string;
|
|
311
|
-
paramKey: string;
|
|
312
|
-
isRequired?: boolean;
|
|
313
|
-
shouldLoadEntity?: boolean;
|
|
314
|
-
}[];
|
|
315
|
-
/**
|
|
316
|
-
* Journey Template
|
|
317
|
-
* example:
|
|
318
|
-
* Sales template (Premium)
|
|
319
|
-
*/
|
|
320
|
-
journey_type?: string;
|
|
321
|
-
settings?: {
|
|
322
|
-
embedOptions?: {
|
|
323
|
-
mode?: "full-screen" | "inline";
|
|
324
|
-
lang?: "de" | "en" | "fr";
|
|
325
|
-
width?: string;
|
|
326
|
-
topBar?: boolean;
|
|
327
|
-
scrollToTop?: boolean;
|
|
328
|
-
button?: {
|
|
329
|
-
text?: string | null;
|
|
330
|
-
align?: "left" | "center" | "right";
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
safeModeAutomation?: boolean;
|
|
334
|
-
/**
|
|
335
|
-
* DEPRECATED - This API will return hardcoded value of false. Please note that this field is internal to epilot and should not be used by external clients. If you wish to get the canary flag, please use the /v1/journey/{id}/settings API.
|
|
336
|
-
*/
|
|
337
|
-
canary?: boolean;
|
|
338
|
-
designId: string;
|
|
339
|
-
templateId?: string;
|
|
340
|
-
entityId?: string | null;
|
|
341
|
-
mappingsAutomationId?: string;
|
|
342
|
-
targetedCustomer?: string;
|
|
343
|
-
description?: string | null;
|
|
344
|
-
organizationSettings?: {
|
|
345
|
-
[name: string]: boolean;
|
|
346
|
-
} | null;
|
|
347
|
-
publicToken?: string | null;
|
|
348
|
-
runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
|
|
349
|
-
filePurposes?: string[];
|
|
350
|
-
entityTags?: string[];
|
|
351
|
-
/**
|
|
352
|
-
* @deprecated Use addressSuggestionsFileId instead
|
|
353
|
-
*/
|
|
354
|
-
addressSuggestionsFileUrl?: string | null;
|
|
355
|
-
addressSuggestionsFileId?: string | null;
|
|
356
|
-
/**
|
|
357
|
-
* This property is deprecated and will be removed in a future version
|
|
358
|
-
*/
|
|
359
|
-
useNewDesign?: boolean;
|
|
360
|
-
/**
|
|
361
|
-
* If true, some journey input labels are in Austrian format
|
|
362
|
-
*/
|
|
363
|
-
useAustrianLabels?: boolean;
|
|
364
|
-
/**
|
|
365
|
-
* If true, the journey shows an icon to toggle dark mode
|
|
366
|
-
*/
|
|
367
|
-
enableDarkMode?: boolean;
|
|
368
|
-
accessMode?: "PUBLIC" | "PRIVATE";
|
|
369
|
-
isPublished?: boolean;
|
|
370
|
-
status?: string;
|
|
371
|
-
isActive?: boolean;
|
|
372
|
-
savingProgress?: {
|
|
373
|
-
savingMode?: "auto" | "local" | "remote" | "none";
|
|
374
|
-
supportedVersion?: number;
|
|
375
|
-
};
|
|
376
|
-
/**
|
|
377
|
-
* If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
|
|
378
|
-
*/
|
|
379
|
-
thirdPartyCookies?: boolean;
|
|
380
|
-
};
|
|
381
|
-
createdBy?: string;
|
|
382
|
-
/**
|
|
383
|
-
* If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
|
|
384
|
-
*/
|
|
385
|
-
__lastModifiedAt?: string | null;
|
|
386
|
-
}
|
|
387
|
-
export interface JourneyCreationRequestV2 {
|
|
388
|
-
journeyId?: string;
|
|
389
|
-
brandId?: string;
|
|
390
|
-
name: string;
|
|
391
|
-
steps: {
|
|
392
|
-
showStepName?: boolean | null;
|
|
393
|
-
title?: string | null;
|
|
394
|
-
subTitle?: string | null;
|
|
395
|
-
showStepSubtitle?: boolean | null;
|
|
396
|
-
showStepper?: boolean | null;
|
|
397
|
-
showStepperLabels?: boolean | null;
|
|
398
|
-
hideNextButton?: boolean | null;
|
|
399
|
-
name: string;
|
|
400
|
-
stepId?: string;
|
|
401
|
-
schema: any;
|
|
402
|
-
uischema: any;
|
|
403
|
-
maxWidth?: "small" | "medium" | "large" | "extra large";
|
|
404
|
-
}[];
|
|
405
|
-
design?: {
|
|
406
|
-
logoUrl?: string | null;
|
|
407
|
-
theme?: {
|
|
408
|
-
[name: string]: any;
|
|
409
|
-
};
|
|
410
|
-
designTokens?: {
|
|
411
|
-
[key: string]: any;
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
rules?: {
|
|
415
|
-
type: "inject" | "injectWithKey";
|
|
416
|
-
sourceType: "journey" | "step" | "block";
|
|
417
|
-
source: string;
|
|
418
|
-
target: string;
|
|
419
|
-
}[];
|
|
420
|
-
logics?: {
|
|
421
|
-
autoGeneratedId?: string;
|
|
422
|
-
conditions: string[];
|
|
423
|
-
actions: string[];
|
|
424
|
-
}[];
|
|
425
|
-
contextSchema?: {
|
|
426
|
-
type: string;
|
|
427
|
-
paramKey: string;
|
|
428
|
-
isRequired?: boolean;
|
|
429
|
-
shouldLoadEntity?: boolean;
|
|
430
|
-
}[];
|
|
431
|
-
/**
|
|
432
|
-
* Journey Template
|
|
433
|
-
* example:
|
|
434
|
-
* Sales template (Premium)
|
|
435
|
-
*/
|
|
436
|
-
journey_type?: string;
|
|
437
|
-
settings?: {
|
|
438
|
-
embedOptions?: {
|
|
439
|
-
mode?: "full-screen" | "inline";
|
|
440
|
-
lang?: "de" | "en" | "fr";
|
|
441
|
-
width?: string;
|
|
442
|
-
topBar?: boolean;
|
|
443
|
-
scrollToTop?: boolean;
|
|
444
|
-
button?: {
|
|
445
|
-
text?: string | null;
|
|
446
|
-
align?: "left" | "center" | "right";
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
safeModeAutomation?: boolean;
|
|
450
|
-
designId?: string;
|
|
451
|
-
entityId?: string | null;
|
|
452
|
-
mappingsAutomationId?: string;
|
|
453
|
-
templateId?: string;
|
|
454
|
-
targetedCustomer?: string;
|
|
455
|
-
description?: string | null;
|
|
456
|
-
runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
|
|
457
|
-
filePurposes?: string[];
|
|
458
|
-
entityTags?: string[];
|
|
459
|
-
/**
|
|
460
|
-
* @deprecated Use addressSuggestionsFileId instead
|
|
461
|
-
*/
|
|
462
|
-
addressSuggestionsFileUrl?: string | null;
|
|
463
|
-
addressSuggestionsFileId?: string | null;
|
|
464
|
-
/**
|
|
465
|
-
* This property is deprecated and will be removed in a future version
|
|
466
|
-
*/
|
|
467
|
-
useNewDesign?: boolean;
|
|
468
|
-
/**
|
|
469
|
-
* If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent.
|
|
470
|
-
*/
|
|
471
|
-
thirdPartyCookies?: boolean;
|
|
472
|
-
accessMode?: "PUBLIC" | "PRIVATE";
|
|
473
|
-
/**
|
|
474
|
-
* If true, the journey shows an icon to toggle dark mode
|
|
475
|
-
*/
|
|
476
|
-
enableDarkMode?: boolean;
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* Manifest/Blueprint ID used to create/update the entity
|
|
480
|
-
*/
|
|
481
|
-
_manifest?: string /* uuid */[];
|
|
482
|
-
}
|
|
483
|
-
export interface JourneyFeatureFlags {
|
|
484
|
-
featureFlags?: {
|
|
485
|
-
[name: string]: any;
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
export type JourneyProductsResponse = {
|
|
489
|
-
type?: string;
|
|
490
|
-
_schema?: string;
|
|
491
|
-
_title?: string;
|
|
492
|
-
name?: string;
|
|
493
|
-
_id?: string;
|
|
494
|
-
_org?: string;
|
|
495
|
-
code?: string;
|
|
496
|
-
description?: string;
|
|
497
|
-
feature?: any[];
|
|
498
|
-
product_images?: any[];
|
|
499
|
-
legal_footnote?: string;
|
|
500
|
-
product_downloads?: any[];
|
|
501
|
-
price?: {
|
|
502
|
-
[key: string]: any;
|
|
503
|
-
};
|
|
504
|
-
}[];
|
|
505
|
-
export interface JourneyResponse {
|
|
506
|
-
createdJourney?: Journey;
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
|
|
510
|
-
*
|
|
511
|
-
*/
|
|
512
|
-
export interface PatchUpdateJourneyRequest {
|
|
513
|
-
[name: string]: any;
|
|
514
|
-
/**
|
|
515
|
-
* example:
|
|
516
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
517
|
-
*/
|
|
518
|
-
journeyId: string; // uuid
|
|
519
|
-
/**
|
|
520
|
-
* If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
|
|
521
|
-
*/
|
|
522
|
-
__lastModifiedAt?: string | null;
|
|
523
|
-
}
|
|
524
|
-
export interface S3Reference {
|
|
525
|
-
/**
|
|
526
|
-
* example:
|
|
527
|
-
* document-api-prod
|
|
528
|
-
*/
|
|
529
|
-
bucket: string;
|
|
530
|
-
/**
|
|
531
|
-
* example:
|
|
532
|
-
* uploads/my-template.pdf
|
|
533
|
-
*/
|
|
534
|
-
key: string;
|
|
535
|
-
}
|
|
536
|
-
export interface SearchJourneysQueryRequest {
|
|
537
|
-
/**
|
|
538
|
-
* Lucene query syntax
|
|
539
|
-
* See https://lucene.apache.org/core/2_9_4/queryparsersyntax.html ; https://www.elastic.co/guide/en/kibana/current/lucene-query.html
|
|
540
|
-
*
|
|
541
|
-
* example:
|
|
542
|
-
* _tags:*Flex*
|
|
543
|
-
*/
|
|
544
|
-
q?: string;
|
|
545
|
-
/**
|
|
546
|
-
* The offset of the first result to return.
|
|
547
|
-
* See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
|
|
548
|
-
*
|
|
549
|
-
* example:
|
|
550
|
-
* 0
|
|
551
|
-
*/
|
|
552
|
-
from?: number;
|
|
553
|
-
/**
|
|
554
|
-
* The maximum number of results to return.
|
|
555
|
-
* See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html
|
|
556
|
-
*
|
|
557
|
-
* example:
|
|
558
|
-
* 25
|
|
559
|
-
*/
|
|
560
|
-
size?: number;
|
|
561
|
-
/**
|
|
562
|
-
* The sort order. Follows Lucene syntax.
|
|
563
|
-
*
|
|
564
|
-
* example:
|
|
565
|
-
* _created_at:desc
|
|
566
|
-
*/
|
|
567
|
-
sort?: string;
|
|
568
|
-
}
|
|
569
|
-
export interface SearchJourneysResponse {
|
|
570
|
-
/**
|
|
571
|
-
* The total number of hits.
|
|
572
|
-
*
|
|
573
|
-
* example:
|
|
574
|
-
* 1
|
|
575
|
-
*/
|
|
576
|
-
hits?: number;
|
|
577
|
-
/**
|
|
578
|
-
* The results.
|
|
579
|
-
*
|
|
580
|
-
*/
|
|
581
|
-
results?: {
|
|
582
|
-
/**
|
|
583
|
-
* Journey Entity ID
|
|
584
|
-
* example:
|
|
585
|
-
* e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8
|
|
586
|
-
*/
|
|
587
|
-
_id?: string; // uuid
|
|
588
|
-
/**
|
|
589
|
-
* Entity Schema (journey always in this case)
|
|
590
|
-
* example:
|
|
591
|
-
* journey
|
|
592
|
-
*/
|
|
593
|
-
_schema?: string;
|
|
594
|
-
/**
|
|
595
|
-
* Journey Entity Title
|
|
596
|
-
* example:
|
|
597
|
-
* Journey Entity Title
|
|
598
|
-
*/
|
|
599
|
-
_title?: string;
|
|
600
|
-
/**
|
|
601
|
-
* Organization ID
|
|
602
|
-
* example:
|
|
603
|
-
* 739224
|
|
604
|
-
*/
|
|
605
|
-
_org?: string;
|
|
606
|
-
/**
|
|
607
|
-
* example:
|
|
608
|
-
* 2020-01-01T00:00:00.000Z
|
|
609
|
-
*/
|
|
610
|
-
_created_at?: string; // date-time
|
|
611
|
-
/**
|
|
612
|
-
* example:
|
|
613
|
-
* 2020-01-01T00:00:00.000Z
|
|
614
|
-
*/
|
|
615
|
-
_updated_at?: string; // date-time
|
|
616
|
-
_tags?: string[];
|
|
617
|
-
/**
|
|
618
|
-
* Manifest ID used to create/update the entity
|
|
619
|
-
*/
|
|
620
|
-
_manifest?: string /* uuid */[];
|
|
621
|
-
/**
|
|
622
|
-
* Journey Name
|
|
623
|
-
* example:
|
|
624
|
-
* Journey Name
|
|
625
|
-
*/
|
|
626
|
-
journey_name?: string;
|
|
627
|
-
/**
|
|
628
|
-
* Journey config ID
|
|
629
|
-
* example:
|
|
630
|
-
* de7df470-253e-11ed-9174-116b8a718c0a
|
|
631
|
-
*/
|
|
632
|
-
journey_id?: string; // uuid
|
|
633
|
-
/**
|
|
634
|
-
* Journey Template
|
|
635
|
-
* example:
|
|
636
|
-
* Sales template
|
|
637
|
-
*/
|
|
638
|
-
journey_type?: string;
|
|
639
|
-
/**
|
|
640
|
-
* Journey Design Name
|
|
641
|
-
* example:
|
|
642
|
-
* Design EPILOT
|
|
643
|
-
*/
|
|
644
|
-
design?: string;
|
|
645
|
-
created_by?: {
|
|
646
|
-
/**
|
|
647
|
-
* User ID
|
|
648
|
-
* example:
|
|
649
|
-
* 12345
|
|
650
|
-
*/
|
|
651
|
-
id?: string;
|
|
652
|
-
}[];
|
|
653
|
-
/**
|
|
654
|
-
* Journey Version
|
|
655
|
-
*/
|
|
656
|
-
journey_version?: "Flex";
|
|
657
|
-
}[];
|
|
658
|
-
}
|
|
659
|
-
/**
|
|
660
|
-
* Template Settings for document generation
|
|
661
|
-
*/
|
|
662
|
-
export interface TemplateSettings {
|
|
663
|
-
/**
|
|
664
|
-
* Custom margins for the document
|
|
665
|
-
*/
|
|
666
|
-
custom_margins?: {
|
|
667
|
-
/**
|
|
668
|
-
* Top margin in cm
|
|
669
|
-
* example:
|
|
670
|
-
* 2.54
|
|
671
|
-
*/
|
|
672
|
-
top?: number;
|
|
673
|
-
/**
|
|
674
|
-
* Bottom margin in cm
|
|
675
|
-
* example:
|
|
676
|
-
* 2.54
|
|
677
|
-
*/
|
|
678
|
-
bottom?: number;
|
|
679
|
-
};
|
|
680
|
-
/**
|
|
681
|
-
* Suggested margins for the document
|
|
682
|
-
*/
|
|
683
|
-
suggested_margins?: {
|
|
684
|
-
/**
|
|
685
|
-
* Top margin in cm
|
|
686
|
-
* example:
|
|
687
|
-
* 2.54
|
|
688
|
-
*/
|
|
689
|
-
top?: number;
|
|
690
|
-
/**
|
|
691
|
-
* Bottom margin in cm
|
|
692
|
-
* example:
|
|
693
|
-
* 2.54
|
|
694
|
-
*/
|
|
695
|
-
bottom?: number;
|
|
696
|
-
};
|
|
697
|
-
/**
|
|
698
|
-
* Display margin guidelines (applicable to partial generation only)
|
|
699
|
-
* example:
|
|
700
|
-
* true
|
|
701
|
-
*/
|
|
702
|
-
display_margin_guidelines?: boolean;
|
|
703
|
-
/**
|
|
704
|
-
* Enable data table margin autofix
|
|
705
|
-
* example:
|
|
706
|
-
* false
|
|
707
|
-
*/
|
|
708
|
-
enable_data_table_margin_autofix?: boolean;
|
|
709
|
-
/**
|
|
710
|
-
* A flag that indicates whether the template has 1 or more data tables in it
|
|
711
|
-
* example:
|
|
712
|
-
* false
|
|
713
|
-
*/
|
|
714
|
-
template_with_datatable?: boolean;
|
|
715
|
-
/**
|
|
716
|
-
* Enables the persistance of template settings
|
|
717
|
-
* example:
|
|
718
|
-
* false
|
|
719
|
-
*/
|
|
720
|
-
enabled_template_settings_persistence?: boolean;
|
|
721
|
-
/**
|
|
722
|
-
* An indication that the page margins are misconfigured
|
|
723
|
-
* example:
|
|
724
|
-
* false
|
|
725
|
-
*/
|
|
726
|
-
misconfigured_margins?: boolean;
|
|
727
|
-
/**
|
|
728
|
-
* The file entity id, used when persisting a new template version with updated settings
|
|
729
|
-
* example:
|
|
730
|
-
* 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p
|
|
731
|
-
*/
|
|
732
|
-
file_entity_id?: string; // uuid
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
declare namespace Paths {
|
|
737
|
-
namespace CreateJourney {
|
|
738
|
-
namespace Parameters {
|
|
739
|
-
/**
|
|
740
|
-
* example:
|
|
741
|
-
* true
|
|
742
|
-
*/
|
|
743
|
-
export type SkipAutomation = string; // Yn
|
|
744
|
-
}
|
|
745
|
-
export interface QueryParameters {
|
|
746
|
-
skipAutomation?: /**
|
|
747
|
-
* example:
|
|
748
|
-
* true
|
|
749
|
-
*/
|
|
750
|
-
Parameters.SkipAutomation /* Yn */;
|
|
751
|
-
}
|
|
752
|
-
export type RequestBody = Components.Schemas.JourneyCreationRequest;
|
|
753
|
-
namespace Responses {
|
|
754
|
-
export type $201 = Components.Schemas.Journey;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
namespace CreateJourneyV2 {
|
|
758
|
-
namespace Parameters {
|
|
759
|
-
/**
|
|
760
|
-
* example:
|
|
761
|
-
* true
|
|
762
|
-
*/
|
|
763
|
-
export type SkipAutomation = string; // Yn
|
|
764
|
-
}
|
|
765
|
-
export interface QueryParameters {
|
|
766
|
-
skipAutomation?: /**
|
|
767
|
-
* example:
|
|
768
|
-
* true
|
|
769
|
-
*/
|
|
770
|
-
Parameters.SkipAutomation /* Yn */;
|
|
771
|
-
}
|
|
772
|
-
export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
|
|
773
|
-
namespace Responses {
|
|
774
|
-
export type $201 = Components.Schemas.JourneyCreationRequestV2;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
namespace GenerateDocument {
|
|
778
|
-
export type RequestBody = Components.Schemas.GenerateDocumentRequest;
|
|
779
|
-
namespace Responses {
|
|
780
|
-
export type $200 = Components.Schemas.GenerateDocumentResponse;
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
namespace GetButtonOptions {
|
|
784
|
-
namespace Parameters {
|
|
785
|
-
/**
|
|
786
|
-
* example:
|
|
787
|
-
* 535ef74a-dd66-4d01-94a9-725016e70d1c
|
|
788
|
-
*/
|
|
789
|
-
export type FileId = string;
|
|
790
|
-
}
|
|
791
|
-
export interface QueryParameters {
|
|
792
|
-
fileId: /**
|
|
793
|
-
* example:
|
|
794
|
-
* 535ef74a-dd66-4d01-94a9-725016e70d1c
|
|
795
|
-
*/
|
|
796
|
-
Parameters.FileId;
|
|
797
|
-
}
|
|
798
|
-
namespace Responses {
|
|
799
|
-
export type $200 = /* A single button option data */ Components.Schemas.ButtonOption[];
|
|
800
|
-
export interface $400 {
|
|
801
|
-
/**
|
|
802
|
-
* example:
|
|
803
|
-
* UTF-8 encoding error while processing CSV content
|
|
804
|
-
*/
|
|
805
|
-
message?: string;
|
|
806
|
-
/**
|
|
807
|
-
* example:
|
|
808
|
-
* Please ensure your CSV file is properly encoded in UTF-8 format
|
|
809
|
-
*/
|
|
810
|
-
details?: string;
|
|
811
|
-
}
|
|
812
|
-
export interface $404 {
|
|
813
|
-
/**
|
|
814
|
-
* example:
|
|
815
|
-
* journey not found
|
|
816
|
-
*/
|
|
817
|
-
message?: string;
|
|
818
|
-
}
|
|
819
|
-
export interface $500 {
|
|
820
|
-
/**
|
|
821
|
-
* example:
|
|
822
|
-
* Unknown API Error
|
|
823
|
-
*/
|
|
824
|
-
message?: string;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
namespace GetJourney {
|
|
829
|
-
namespace Parameters {
|
|
830
|
-
/**
|
|
831
|
-
* example:
|
|
832
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
833
|
-
*/
|
|
834
|
-
export type Id = string; // uuid
|
|
835
|
-
export type OrgId = string;
|
|
836
|
-
export type Source = string;
|
|
837
|
-
}
|
|
838
|
-
export interface PathParameters {
|
|
839
|
-
id: /**
|
|
840
|
-
* example:
|
|
841
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
842
|
-
*/
|
|
843
|
-
Parameters.Id /* uuid */;
|
|
844
|
-
}
|
|
845
|
-
export interface QueryParameters {
|
|
846
|
-
source?: Parameters.Source;
|
|
847
|
-
orgId?: Parameters.OrgId;
|
|
848
|
-
}
|
|
849
|
-
namespace Responses {
|
|
850
|
-
export type $200 = Components.Schemas.Journey;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
namespace GetJourneyProducts {
|
|
854
|
-
namespace Parameters {
|
|
855
|
-
export type City = string;
|
|
856
|
-
/**
|
|
857
|
-
* example:
|
|
858
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
859
|
-
*/
|
|
860
|
-
export type Id = string; // uuid
|
|
861
|
-
export type PostalCode = string;
|
|
862
|
-
export type Source = string;
|
|
863
|
-
export type Street = string;
|
|
864
|
-
export type StreetNumber = string;
|
|
865
|
-
}
|
|
866
|
-
export interface PathParameters {
|
|
867
|
-
id: /**
|
|
868
|
-
* example:
|
|
869
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
870
|
-
*/
|
|
871
|
-
Parameters.Id /* uuid */;
|
|
872
|
-
}
|
|
873
|
-
export interface QueryParameters {
|
|
874
|
-
source?: Parameters.Source;
|
|
875
|
-
postal_code?: Parameters.PostalCode;
|
|
876
|
-
city?: Parameters.City;
|
|
877
|
-
street?: Parameters.Street;
|
|
878
|
-
street_number?: Parameters.StreetNumber;
|
|
879
|
-
}
|
|
880
|
-
namespace Responses {
|
|
881
|
-
export type $200 = Components.Schemas.JourneyProductsResponse;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
namespace GetJourneyV2 {
|
|
885
|
-
namespace Parameters {
|
|
886
|
-
/**
|
|
887
|
-
* example:
|
|
888
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
889
|
-
*/
|
|
890
|
-
export type Id = string; // uuid
|
|
891
|
-
}
|
|
892
|
-
export interface PathParameters {
|
|
893
|
-
id: /**
|
|
894
|
-
* example:
|
|
895
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
896
|
-
*/
|
|
897
|
-
Parameters.Id /* uuid */;
|
|
898
|
-
}
|
|
899
|
-
namespace Responses {
|
|
900
|
-
export type $200 = Components.Schemas.JourneyCreationRequestV2;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
namespace GetJourneysByOrgId {
|
|
904
|
-
namespace Parameters {
|
|
905
|
-
/**
|
|
906
|
-
* example:
|
|
907
|
-
* true
|
|
908
|
-
*/
|
|
909
|
-
export type Hydrate = string;
|
|
910
|
-
/**
|
|
911
|
-
* example:
|
|
912
|
-
* 123
|
|
913
|
-
*/
|
|
914
|
-
export type Id = string;
|
|
915
|
-
}
|
|
916
|
-
export interface PathParameters {
|
|
917
|
-
id: /**
|
|
918
|
-
* example:
|
|
919
|
-
* 123
|
|
920
|
-
*/
|
|
921
|
-
Parameters.Id;
|
|
922
|
-
}
|
|
923
|
-
export interface QueryParameters {
|
|
924
|
-
hydrate?: /**
|
|
925
|
-
* example:
|
|
926
|
-
* true
|
|
927
|
-
*/
|
|
928
|
-
Parameters.Hydrate;
|
|
929
|
-
}
|
|
930
|
-
namespace Responses {
|
|
931
|
-
export type $200 = Components.Schemas.GetJourneysResponse;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
namespace GetSettingsForJourney {
|
|
935
|
-
namespace Parameters {
|
|
936
|
-
/**
|
|
937
|
-
* example:
|
|
938
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
939
|
-
*/
|
|
940
|
-
export type Id = string; // uuid
|
|
941
|
-
}
|
|
942
|
-
export interface PathParameters {
|
|
943
|
-
id: /**
|
|
944
|
-
* example:
|
|
945
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
946
|
-
*/
|
|
947
|
-
Parameters.Id /* uuid */;
|
|
948
|
-
}
|
|
949
|
-
namespace Responses {
|
|
950
|
-
export type $200 = Components.Schemas.GetSettingsForJourney;
|
|
951
|
-
export interface $404 {
|
|
952
|
-
/**
|
|
953
|
-
* example:
|
|
954
|
-
* journey not found
|
|
955
|
-
*/
|
|
956
|
-
message?: string;
|
|
957
|
-
}
|
|
958
|
-
export interface $500 {
|
|
959
|
-
/**
|
|
960
|
-
* example:
|
|
961
|
-
* Unknown API Error
|
|
962
|
-
*/
|
|
963
|
-
message?: string;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
namespace PatchUpdateJourney {
|
|
968
|
-
export type RequestBody = /**
|
|
969
|
-
* Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
|
|
970
|
-
*
|
|
971
|
-
*/
|
|
972
|
-
Components.Schemas.PatchUpdateJourneyRequest;
|
|
973
|
-
namespace Responses {
|
|
974
|
-
export type $200 = Components.Schemas.JourneyResponse;
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
namespace PatchUpdateJourneyV2 {
|
|
978
|
-
export type RequestBody = /**
|
|
979
|
-
* Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
|
|
980
|
-
*
|
|
981
|
-
*/
|
|
982
|
-
Components.Schemas.PatchUpdateJourneyRequest;
|
|
983
|
-
namespace Responses {
|
|
984
|
-
export type $200 = Components.Schemas.JourneyCreationRequestV2;
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
namespace RemoveJourney {
|
|
988
|
-
namespace Parameters {
|
|
989
|
-
/**
|
|
990
|
-
* example:
|
|
991
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
992
|
-
*/
|
|
993
|
-
export type Id = string; // uuid
|
|
994
|
-
}
|
|
995
|
-
export interface PathParameters {
|
|
996
|
-
id: /**
|
|
997
|
-
* example:
|
|
998
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
999
|
-
*/
|
|
1000
|
-
Parameters.Id /* uuid */;
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
namespace RemoveJourneyV2 {
|
|
1004
|
-
namespace Parameters {
|
|
1005
|
-
/**
|
|
1006
|
-
* example:
|
|
1007
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
1008
|
-
*/
|
|
1009
|
-
export type Id = string; // uuid
|
|
1010
|
-
}
|
|
1011
|
-
export interface PathParameters {
|
|
1012
|
-
id: /**
|
|
1013
|
-
* example:
|
|
1014
|
-
* 509cdffe-424f-457a-95c2-9708c304ce77
|
|
1015
|
-
*/
|
|
1016
|
-
Parameters.Id /* uuid */;
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
namespace SearchJourneys {
|
|
1020
|
-
export type RequestBody = Components.Schemas.SearchJourneysQueryRequest;
|
|
1021
|
-
namespace Responses {
|
|
1022
|
-
export type $200 = Components.Schemas.SearchJourneysResponse;
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
namespace UpdateJourney {
|
|
1026
|
-
export type RequestBody = Components.Schemas.JourneyCreationRequest;
|
|
1027
|
-
namespace Responses {
|
|
1028
|
-
export interface $204 {
|
|
1029
|
-
}
|
|
1030
|
-
export interface $409 {
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
namespace UpdateJourneyV2 {
|
|
1035
|
-
export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
|
|
1036
|
-
namespace Responses {
|
|
1037
|
-
export type $200 = Components.Schemas.JourneyCreationRequestV2;
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
export interface OperationMethods {
|
|
1044
|
-
/**
|
|
1045
|
-
* getJourneysByOrgId - getJourneysByOrgId
|
|
1046
|
-
*
|
|
1047
|
-
* Get all journeys by organization id
|
|
1048
|
-
*/
|
|
1049
|
-
'getJourneysByOrgId'(
|
|
1050
|
-
parameters?: Parameters<Paths.GetJourneysByOrgId.QueryParameters & Paths.GetJourneysByOrgId.PathParameters> | null,
|
|
1051
|
-
data?: any,
|
|
1052
|
-
config?: AxiosRequestConfig
|
|
1053
|
-
): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
|
|
1054
|
-
/**
|
|
1055
|
-
* getJourney - getJourney
|
|
1056
|
-
*
|
|
1057
|
-
* Get journey by id. Private journeys requires valid private token to be passed
|
|
1058
|
-
*/
|
|
1059
|
-
'getJourney'(
|
|
1060
|
-
parameters?: Parameters<Paths.GetJourney.QueryParameters & Paths.GetJourney.PathParameters> | null,
|
|
1061
|
-
data?: any,
|
|
1062
|
-
config?: AxiosRequestConfig
|
|
1063
|
-
): OperationResponse<Paths.GetJourney.Responses.$200>
|
|
1064
|
-
/**
|
|
1065
|
-
* removeJourney - removeJourney
|
|
1066
|
-
*
|
|
1067
|
-
* Remove journey by id
|
|
1068
|
-
*/
|
|
1069
|
-
'removeJourney'(
|
|
1070
|
-
parameters?: Parameters<Paths.RemoveJourney.PathParameters> | null,
|
|
1071
|
-
data?: any,
|
|
1072
|
-
config?: AxiosRequestConfig
|
|
1073
|
-
): OperationResponse<any>
|
|
1074
|
-
/**
|
|
1075
|
-
* getJourneyProducts - getJourneyProducts
|
|
1076
|
-
*
|
|
1077
|
-
* Get products available in the journey by id. requires public journey token to be passed.
|
|
1078
|
-
*/
|
|
1079
|
-
'getJourneyProducts'(
|
|
1080
|
-
parameters?: Parameters<Paths.GetJourneyProducts.QueryParameters & Paths.GetJourneyProducts.PathParameters> | null,
|
|
1081
|
-
data?: any,
|
|
1082
|
-
config?: AxiosRequestConfig
|
|
1083
|
-
): OperationResponse<Paths.GetJourneyProducts.Responses.$200>
|
|
1084
|
-
/**
|
|
1085
|
-
* updateJourney - updateJourney
|
|
1086
|
-
*
|
|
1087
|
-
* Update a Journey
|
|
1088
|
-
*/
|
|
1089
|
-
'updateJourney'(
|
|
1090
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1091
|
-
data?: Paths.UpdateJourney.RequestBody,
|
|
1092
|
-
config?: AxiosRequestConfig
|
|
1093
|
-
): OperationResponse<Paths.UpdateJourney.Responses.$204>
|
|
1094
|
-
/**
|
|
1095
|
-
* createJourney - createJourney
|
|
1096
|
-
*
|
|
1097
|
-
* Create a Journey
|
|
1098
|
-
*/
|
|
1099
|
-
'createJourney'(
|
|
1100
|
-
parameters?: Parameters<Paths.CreateJourney.QueryParameters> | null,
|
|
1101
|
-
data?: Paths.CreateJourney.RequestBody,
|
|
1102
|
-
config?: AxiosRequestConfig
|
|
1103
|
-
): OperationResponse<Paths.CreateJourney.Responses.$201>
|
|
1104
|
-
/**
|
|
1105
|
-
* patchUpdateJourney - patchUpdateJourney
|
|
1106
|
-
*
|
|
1107
|
-
* Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
|
|
1108
|
-
*/
|
|
1109
|
-
'patchUpdateJourney'(
|
|
1110
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1111
|
-
data?: Paths.PatchUpdateJourney.RequestBody,
|
|
1112
|
-
config?: AxiosRequestConfig
|
|
1113
|
-
): OperationResponse<Paths.PatchUpdateJourney.Responses.$200>
|
|
1114
|
-
/**
|
|
1115
|
-
* searchJourneys - searchJourneys
|
|
1116
|
-
*
|
|
1117
|
-
* Search Journeys
|
|
1118
|
-
*/
|
|
1119
|
-
'searchJourneys'(
|
|
1120
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1121
|
-
data?: Paths.SearchJourneys.RequestBody,
|
|
1122
|
-
config?: AxiosRequestConfig
|
|
1123
|
-
): OperationResponse<Paths.SearchJourneys.Responses.$200>
|
|
1124
|
-
/**
|
|
1125
|
-
* generateDocument - generateDocument
|
|
1126
|
-
*
|
|
1127
|
-
* Builds document generated from a template with journey values."
|
|
1128
|
-
*
|
|
1129
|
-
* Supported input document types:
|
|
1130
|
-
* - .docx
|
|
1131
|
-
*
|
|
1132
|
-
* Supported output document types:
|
|
1133
|
-
* - .pdf
|
|
1134
|
-
* - .docx but limited to only text based variables
|
|
1135
|
-
*
|
|
1136
|
-
* Uses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.
|
|
1137
|
-
* Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.
|
|
1138
|
-
*
|
|
1139
|
-
*/
|
|
1140
|
-
'generateDocument'(
|
|
1141
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1142
|
-
data?: Paths.GenerateDocument.RequestBody,
|
|
1143
|
-
config?: AxiosRequestConfig
|
|
1144
|
-
): OperationResponse<Paths.GenerateDocument.Responses.$200>
|
|
1145
|
-
/**
|
|
1146
|
-
* updateJourneyV2 - updateJourneyV2
|
|
1147
|
-
*
|
|
1148
|
-
* Update a Journey
|
|
1149
|
-
*/
|
|
1150
|
-
'updateJourneyV2'(
|
|
1151
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1152
|
-
data?: Paths.UpdateJourneyV2.RequestBody,
|
|
1153
|
-
config?: AxiosRequestConfig
|
|
1154
|
-
): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
|
|
1155
|
-
/**
|
|
1156
|
-
* createJourneyV2 - createJourneyV2
|
|
1157
|
-
*
|
|
1158
|
-
* Create a Journey
|
|
1159
|
-
*/
|
|
1160
|
-
'createJourneyV2'(
|
|
1161
|
-
parameters?: Parameters<Paths.CreateJourneyV2.QueryParameters> | null,
|
|
1162
|
-
data?: Paths.CreateJourneyV2.RequestBody,
|
|
1163
|
-
config?: AxiosRequestConfig
|
|
1164
|
-
): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
|
|
1165
|
-
/**
|
|
1166
|
-
* patchUpdateJourneyV2 - patchUpdateJourneyV2
|
|
1167
|
-
*
|
|
1168
|
-
* Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
|
|
1169
|
-
*/
|
|
1170
|
-
'patchUpdateJourneyV2'(
|
|
1171
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1172
|
-
data?: Paths.PatchUpdateJourneyV2.RequestBody,
|
|
1173
|
-
config?: AxiosRequestConfig
|
|
1174
|
-
): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
|
|
1175
|
-
/**
|
|
1176
|
-
* getJourneyV2 - getJourneyV2
|
|
1177
|
-
*
|
|
1178
|
-
* Get journey by id
|
|
1179
|
-
*/
|
|
1180
|
-
'getJourneyV2'(
|
|
1181
|
-
parameters?: Parameters<Paths.GetJourneyV2.PathParameters> | null,
|
|
1182
|
-
data?: any,
|
|
1183
|
-
config?: AxiosRequestConfig
|
|
1184
|
-
): OperationResponse<Paths.GetJourneyV2.Responses.$200>
|
|
1185
|
-
/**
|
|
1186
|
-
* removeJourneyV2 - removeJourneyV2
|
|
1187
|
-
*
|
|
1188
|
-
* Remove journey by id
|
|
1189
|
-
*/
|
|
1190
|
-
'removeJourneyV2'(
|
|
1191
|
-
parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
|
|
1192
|
-
data?: any,
|
|
1193
|
-
config?: AxiosRequestConfig
|
|
1194
|
-
): OperationResponse<any>
|
|
1195
|
-
/**
|
|
1196
|
-
* getSettingsForJourney - getSettingsForJourney
|
|
1197
|
-
*
|
|
1198
|
-
* Get settings related to the journey using journey ID.
|
|
1199
|
-
*/
|
|
1200
|
-
'getSettingsForJourney'(
|
|
1201
|
-
parameters?: Parameters<Paths.GetSettingsForJourney.PathParameters> | null,
|
|
1202
|
-
data?: any,
|
|
1203
|
-
config?: AxiosRequestConfig
|
|
1204
|
-
): OperationResponse<Paths.GetSettingsForJourney.Responses.$200>
|
|
1205
|
-
/**
|
|
1206
|
-
* getButtonOptions - getButtonOptions
|
|
1207
|
-
*
|
|
1208
|
-
* Get button options from a csv file.
|
|
1209
|
-
*/
|
|
1210
|
-
'getButtonOptions'(
|
|
1211
|
-
parameters?: Parameters<Paths.GetButtonOptions.QueryParameters> | null,
|
|
1212
|
-
data?: any,
|
|
1213
|
-
config?: AxiosRequestConfig
|
|
1214
|
-
): OperationResponse<Paths.GetButtonOptions.Responses.$200>
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
export interface PathsDictionary {
|
|
1218
|
-
['/v1/journey/organization/{id}']: {
|
|
1219
|
-
/**
|
|
1220
|
-
* getJourneysByOrgId - getJourneysByOrgId
|
|
1221
|
-
*
|
|
1222
|
-
* Get all journeys by organization id
|
|
1223
|
-
*/
|
|
1224
|
-
'get'(
|
|
1225
|
-
parameters?: Parameters<Paths.GetJourneysByOrgId.QueryParameters & Paths.GetJourneysByOrgId.PathParameters> | null,
|
|
1226
|
-
data?: any,
|
|
1227
|
-
config?: AxiosRequestConfig
|
|
1228
|
-
): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
|
|
1229
|
-
}
|
|
1230
|
-
['/v1/journey/configuration/{id}']: {
|
|
1231
|
-
/**
|
|
1232
|
-
* getJourney - getJourney
|
|
1233
|
-
*
|
|
1234
|
-
* Get journey by id. Private journeys requires valid private token to be passed
|
|
1235
|
-
*/
|
|
1236
|
-
'get'(
|
|
1237
|
-
parameters?: Parameters<Paths.GetJourney.QueryParameters & Paths.GetJourney.PathParameters> | null,
|
|
1238
|
-
data?: any,
|
|
1239
|
-
config?: AxiosRequestConfig
|
|
1240
|
-
): OperationResponse<Paths.GetJourney.Responses.$200>
|
|
1241
|
-
/**
|
|
1242
|
-
* removeJourney - removeJourney
|
|
1243
|
-
*
|
|
1244
|
-
* Remove journey by id
|
|
1245
|
-
*/
|
|
1246
|
-
'delete'(
|
|
1247
|
-
parameters?: Parameters<Paths.RemoveJourney.PathParameters> | null,
|
|
1248
|
-
data?: any,
|
|
1249
|
-
config?: AxiosRequestConfig
|
|
1250
|
-
): OperationResponse<any>
|
|
1251
|
-
}
|
|
1252
|
-
['/v1/journey/products/{id}']: {
|
|
1253
|
-
/**
|
|
1254
|
-
* getJourneyProducts - getJourneyProducts
|
|
1255
|
-
*
|
|
1256
|
-
* Get products available in the journey by id. requires public journey token to be passed.
|
|
1257
|
-
*/
|
|
1258
|
-
'get'(
|
|
1259
|
-
parameters?: Parameters<Paths.GetJourneyProducts.QueryParameters & Paths.GetJourneyProducts.PathParameters> | null,
|
|
1260
|
-
data?: any,
|
|
1261
|
-
config?: AxiosRequestConfig
|
|
1262
|
-
): OperationResponse<Paths.GetJourneyProducts.Responses.$200>
|
|
1263
|
-
}
|
|
1264
|
-
['/v1/journey/configuration']: {
|
|
1265
|
-
/**
|
|
1266
|
-
* createJourney - createJourney
|
|
1267
|
-
*
|
|
1268
|
-
* Create a Journey
|
|
1269
|
-
*/
|
|
1270
|
-
'post'(
|
|
1271
|
-
parameters?: Parameters<Paths.CreateJourney.QueryParameters> | null,
|
|
1272
|
-
data?: Paths.CreateJourney.RequestBody,
|
|
1273
|
-
config?: AxiosRequestConfig
|
|
1274
|
-
): OperationResponse<Paths.CreateJourney.Responses.$201>
|
|
1275
|
-
/**
|
|
1276
|
-
* updateJourney - updateJourney
|
|
1277
|
-
*
|
|
1278
|
-
* Update a Journey
|
|
1279
|
-
*/
|
|
1280
|
-
'put'(
|
|
1281
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1282
|
-
data?: Paths.UpdateJourney.RequestBody,
|
|
1283
|
-
config?: AxiosRequestConfig
|
|
1284
|
-
): OperationResponse<Paths.UpdateJourney.Responses.$204>
|
|
1285
|
-
/**
|
|
1286
|
-
* patchUpdateJourney - patchUpdateJourney
|
|
1287
|
-
*
|
|
1288
|
-
* Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
|
|
1289
|
-
*/
|
|
1290
|
-
'patch'(
|
|
1291
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1292
|
-
data?: Paths.PatchUpdateJourney.RequestBody,
|
|
1293
|
-
config?: AxiosRequestConfig
|
|
1294
|
-
): OperationResponse<Paths.PatchUpdateJourney.Responses.$200>
|
|
1295
|
-
}
|
|
1296
|
-
['/v1/journey/configuration/search']: {
|
|
1297
|
-
/**
|
|
1298
|
-
* searchJourneys - searchJourneys
|
|
1299
|
-
*
|
|
1300
|
-
* Search Journeys
|
|
1301
|
-
*/
|
|
1302
|
-
'post'(
|
|
1303
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1304
|
-
data?: Paths.SearchJourneys.RequestBody,
|
|
1305
|
-
config?: AxiosRequestConfig
|
|
1306
|
-
): OperationResponse<Paths.SearchJourneys.Responses.$200>
|
|
1307
|
-
}
|
|
1308
|
-
['/v1/journey/document:generate']: {
|
|
1309
|
-
/**
|
|
1310
|
-
* generateDocument - generateDocument
|
|
1311
|
-
*
|
|
1312
|
-
* Builds document generated from a template with journey values."
|
|
1313
|
-
*
|
|
1314
|
-
* Supported input document types:
|
|
1315
|
-
* - .docx
|
|
1316
|
-
*
|
|
1317
|
-
* Supported output document types:
|
|
1318
|
-
* - .pdf
|
|
1319
|
-
* - .docx but limited to only text based variables
|
|
1320
|
-
*
|
|
1321
|
-
* Uses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.
|
|
1322
|
-
* Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.
|
|
1323
|
-
*
|
|
1324
|
-
*/
|
|
1325
|
-
'post'(
|
|
1326
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1327
|
-
data?: Paths.GenerateDocument.RequestBody,
|
|
1328
|
-
config?: AxiosRequestConfig
|
|
1329
|
-
): OperationResponse<Paths.GenerateDocument.Responses.$200>
|
|
1330
|
-
}
|
|
1331
|
-
['/v2/journey/configuration']: {
|
|
1332
|
-
/**
|
|
1333
|
-
* createJourneyV2 - createJourneyV2
|
|
1334
|
-
*
|
|
1335
|
-
* Create a Journey
|
|
1336
|
-
*/
|
|
1337
|
-
'post'(
|
|
1338
|
-
parameters?: Parameters<Paths.CreateJourneyV2.QueryParameters> | null,
|
|
1339
|
-
data?: Paths.CreateJourneyV2.RequestBody,
|
|
1340
|
-
config?: AxiosRequestConfig
|
|
1341
|
-
): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
|
|
1342
|
-
/**
|
|
1343
|
-
* updateJourneyV2 - updateJourneyV2
|
|
1344
|
-
*
|
|
1345
|
-
* Update a Journey
|
|
1346
|
-
*/
|
|
1347
|
-
'put'(
|
|
1348
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1349
|
-
data?: Paths.UpdateJourneyV2.RequestBody,
|
|
1350
|
-
config?: AxiosRequestConfig
|
|
1351
|
-
): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
|
|
1352
|
-
/**
|
|
1353
|
-
* patchUpdateJourneyV2 - patchUpdateJourneyV2
|
|
1354
|
-
*
|
|
1355
|
-
* Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
|
|
1356
|
-
*/
|
|
1357
|
-
'patch'(
|
|
1358
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1359
|
-
data?: Paths.PatchUpdateJourneyV2.RequestBody,
|
|
1360
|
-
config?: AxiosRequestConfig
|
|
1361
|
-
): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
|
|
1362
|
-
}
|
|
1363
|
-
['/v2/journey/configuration/{id}']: {
|
|
1364
|
-
/**
|
|
1365
|
-
* getJourneyV2 - getJourneyV2
|
|
1366
|
-
*
|
|
1367
|
-
* Get journey by id
|
|
1368
|
-
*/
|
|
1369
|
-
'get'(
|
|
1370
|
-
parameters?: Parameters<Paths.GetJourneyV2.PathParameters> | null,
|
|
1371
|
-
data?: any,
|
|
1372
|
-
config?: AxiosRequestConfig
|
|
1373
|
-
): OperationResponse<Paths.GetJourneyV2.Responses.$200>
|
|
1374
|
-
/**
|
|
1375
|
-
* removeJourneyV2 - removeJourneyV2
|
|
1376
|
-
*
|
|
1377
|
-
* Remove journey by id
|
|
1378
|
-
*/
|
|
1379
|
-
'delete'(
|
|
1380
|
-
parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
|
|
1381
|
-
data?: any,
|
|
1382
|
-
config?: AxiosRequestConfig
|
|
1383
|
-
): OperationResponse<any>
|
|
1384
|
-
}
|
|
1385
|
-
['/v1/journey/{id}/settings']: {
|
|
1386
|
-
/**
|
|
1387
|
-
* getSettingsForJourney - getSettingsForJourney
|
|
1388
|
-
*
|
|
1389
|
-
* Get settings related to the journey using journey ID.
|
|
1390
|
-
*/
|
|
1391
|
-
'get'(
|
|
1392
|
-
parameters?: Parameters<Paths.GetSettingsForJourney.PathParameters> | null,
|
|
1393
|
-
data?: any,
|
|
1394
|
-
config?: AxiosRequestConfig
|
|
1395
|
-
): OperationResponse<Paths.GetSettingsForJourney.Responses.$200>
|
|
1396
|
-
}
|
|
1397
|
-
['/v1/journey/button-options']: {
|
|
1398
|
-
/**
|
|
1399
|
-
* getButtonOptions - getButtonOptions
|
|
1400
|
-
*
|
|
1401
|
-
* Get button options from a csv file.
|
|
1402
|
-
*/
|
|
1403
|
-
'get'(
|
|
1404
|
-
parameters?: Parameters<Paths.GetButtonOptions.QueryParameters> | null,
|
|
1405
|
-
data?: any,
|
|
1406
|
-
config?: AxiosRequestConfig
|
|
1407
|
-
): OperationResponse<Paths.GetButtonOptions.Responses.$200>
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
export type ButtonOption = Components.Schemas.ButtonOption;
|
|
1415
|
-
export type GenerateDocumentRequest = Components.Schemas.GenerateDocumentRequest;
|
|
1416
|
-
export type GenerateDocumentResponse = Components.Schemas.GenerateDocumentResponse;
|
|
1417
|
-
export type GetJourneysResponse = Components.Schemas.GetJourneysResponse;
|
|
1418
|
-
export type GetSettingsForJourney = Components.Schemas.GetSettingsForJourney;
|
|
1419
|
-
export type Journey = Components.Schemas.Journey;
|
|
1420
|
-
export type JourneyAuditInfo = Components.Schemas.JourneyAuditInfo;
|
|
1421
|
-
export type JourneyCreationRequest = Components.Schemas.JourneyCreationRequest;
|
|
1422
|
-
export type JourneyCreationRequestV2 = Components.Schemas.JourneyCreationRequestV2;
|
|
1423
|
-
export type JourneyFeatureFlags = Components.Schemas.JourneyFeatureFlags;
|
|
1424
|
-
export type JourneyProductsResponse = Components.Schemas.JourneyProductsResponse;
|
|
1425
|
-
export type JourneyResponse = Components.Schemas.JourneyResponse;
|
|
1426
|
-
export type PatchUpdateJourneyRequest = Components.Schemas.PatchUpdateJourneyRequest;
|
|
1427
|
-
export type S3Reference = Components.Schemas.S3Reference;
|
|
1428
|
-
export type SearchJourneysQueryRequest = Components.Schemas.SearchJourneysQueryRequest;
|
|
1429
|
-
export type SearchJourneysResponse = Components.Schemas.SearchJourneysResponse;
|
|
1430
|
-
export type TemplateSettings = Components.Schemas.TemplateSettings;
|