@epilot/journey-client 0.3.9 → 0.3.11

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