@epilot/journey-client 0.4.6 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +352 -2
- package/package.json +2 -1
- package/src/openapi.d.ts +352 -2
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={799:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(871));t.default=o.default},871:e=>{e.exports=JSON.parse('{"openapi":"3.0.0","info":{"title":"Journey API","description":"API to configure journeys","version":"1.0.0"},"security":[{"EpilotAuth":[]}],"tags":[{"name":"Journeys","description":"Journey operations"},{"name":"Journeys V2","description":"Journey V2 operations"},{"name":"journey_schema","x-displayName":"Journey","description":"<SchemaDefinition schemaRef=\\"#/components/schemas/Journey\\" />\\n"}],"x-tagGroups":[{"name":"APIs","tags":["Journeys","Journeys V2"]},{"name":"Schemas","tags":["journey_schema"]}],"paths":{"/v1/journey/organization/{id}":{"get":{"operationId":"getJourneysByOrgId","summary":"getJourneysByOrgId","description":"Get all journeys by organization id","tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Organization ID","required":true,"schema":{"type":"string","example":"123"}},{"name":"hydrate","in":"query","description":"Hydrate","required":false,"schema":{"type":"string","example":"true"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetJourneysResponse"}}}}}}},"/v1/journey/configuration/{id}":{"get":{"operationId":"getJourney","summary":"getJourney","description":"Get journey by id. Private journeys requires valid private token to be passed","security":[{},{"EpilotAuth":[]}],"tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}},{"name":"source","in":"query","description":"What source ID. Journey or Entity ID","required":false,"schema":{"type":"string"}},{"name":"orgId","in":"query","description":"Organization ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}}}},"delete":{"operationId":"removeJourney","summary":"removeJourney","description":"Remove journey by id","tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{}}}}},"/v1/journey/products/{id}":{"get":{"operationId":"getJourneyProducts","summary":"getJourneyProducts","description":"Get products available in the journey by id. requires public journey token to be passed.","security":[{"EpilotAuth":[]}],"tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}},{"name":"source","in":"query","description":"What source ID. Journey or Entity ID","required":false,"schema":{"type":"string"}},{"name":"postal_code","in":"query","description":"Zip Code for availibility","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","description":"city for availibility","required":false,"schema":{"type":"string"}},{"name":"street","in":"query","description":"street name for availibility","required":false,"schema":{"type":"string"}},{"name":"street_number","in":"query","description":"street number for availibility","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyProductsResponse"}}}}}}},"/v1/journey/configuration":{"post":{"operationId":"createJourney","summary":"createJourney","description":"Create a Journey","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequest"}}},"description":"Payload"},"parameters":[{"name":"skipAutomation","in":"query","description":"skip creating an Automation (it takes Yn format \\"true, yes, 1, y\\")","required":false,"schema":{"type":"string","format":"Yn","example":true}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}}}},"put":{"operationId":"updateJourney","summary":"updateJourney","description":"Update a Journey","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequest"}}},"description":"Payload"},"parameters":[],"responses":{"204":{"description":"Success","headers":{"X-Resource-Revisions":{"schema":{"type":"integer","minimum":0},"description":"Last revisions number of the updated resource"}}},"409":{"description":"The Journey has been modified since your last read, please refresh it and try again"}}},"patch":{"operationId":"patchUpdateJourney","summary":"patchUpdateJourney","description":"Update a Journey (partially / patch). Support for nested properties updates (e.g. \\"property[0].name\\").","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchUpdateJourneyRequest"},"example":{"journeyId":"509cdffe-424f-457a-95c2-9708c304ce77","name":"New Journey Name","steps[0].uischema.elements[0].products":["123456","654321"]}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyResponse"}}}}}}},"/v1/journey/configuration/search":{"post":{"operationId":"searchJourneys","summary":"searchJourneys","description":"Search Journeys","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchJourneysQueryRequest"}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchJourneysResponse"}}}}}}},"/v1/journey/document:generate":{"post":{"operationId":"generateDocument","summary":"generateDocument","description":"Builds document generated from a template with journey values.\\"\\n\\nSupported input document types:\\n- .docx\\n\\nSupported output document types:\\n- .pdf\\n- .docx but limited to only text based variables\\n\\nUses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.\\nUses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.\\n","security":[{},{"EpilotAuth":[]}],"tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDocumentRequest"}}}},"responses":{"200":{"description":"Generated document output","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDocumentResponse"}}}}}}},"/v2/journey/configuration":{"post":{"operationId":"createJourneyV2","summary":"createJourneyV2","description":"Create a Journey","tags":["Journeys V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}},"description":"Payload"},"parameters":[{"name":"skipAutomation","in":"query","description":"skip creating an Automation (it takes Yn format \\"true, yes, 1, y\\")","required":false,"schema":{"type":"string","format":"Yn","example":true}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}}}},"put":{"operationId":"updateJourneyV2","summary":"updateJourneyV2","description":"Update a Journey","tags":["Journeys V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}}}},"patch":{"operationId":"patchUpdateJourneyV2","summary":"patchUpdateJourneyV2","description":"Update a Journey (partially / patch). Support for nested properties updates (e.g. \\"property[0].name\\").","tags":["Journeys V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchUpdateJourneyRequest"},"example":{"journeyId":"509cdffe-424f-457a-95c2-9708c304ce77","name":"New Journey Name","steps[0].uischema.elements[0].products":["123456","654321"]}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}}}}},"/v2/journey/configuration/{id}":{"get":{"operationId":"getJourneyV2","summary":"getJourneyV2","description":"Get journey by id","security":[],"tags":["Journeys V2"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}}}},"delete":{"operationId":"removeJourneyV2","summary":"removeJourneyV2","description":"Remove journey by id","tags":["Journeys V2"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{}}}}},"/v1/journey/{id}/settings":{"get":{"operationId":"getSettingsForJourney","summary":"getSettingsForJourney","description":"Get settings related to the journey using journey ID.","tags":["Journeys"],"security":[{}],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSettingsForJourney"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"journey not found"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unknown API Error"}}}}}}}}},"/v1/journey/button-options":{"get":{"operationId":"getButtonOptions","summary":"getButtonOptions","description":"Get button options from a csv file.","security":[{"EpilotAuth":[]}],"tags":["Journeys"],"parameters":[{"in":"query","name":"fileId","required":true,"description":"file id to get button options from","schema":{"type":"string","example":"535ef74a-dd66-4d01-94a9-725016e70d1c"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ButtonOption"}}}}},"400":{"description":"Bad Request - Invalid file or content","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"UTF-8 encoding error while processing CSV content"},"details":{"type":"string","example":"Please ensure your CSV file is properly encoded in UTF-8 format"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"journey not found"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unknown API Error"}}}}}}}}}},"components":{"schemas":{"GetJourneysResponse":{"type":"object"},"JourneyResponse":{"type":"object","properties":{"createdJourney":{"$ref":"#/components/schemas/Journey"}}},"JourneyProductsResponse":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"_schema":{"type":"string"},"_title":{"type":"string"},"name":{"type":"string"},"_id":{"type":"string"},"_org":{"type":"string"},"code":{"type":"string"},"description":{"type":"string"},"feature":{"type":"array"},"product_images":{"type":"array"},"legal_footnote":{"type":"string"},"product_downloads":{"type":"array"},"price":{"type":"object"}}}},"PatchUpdateJourneyRequest":{"type":"object","properties":{"journeyId":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"},"__lastModifiedAt":{"type":"string","description":"If passed with value of null, the API won\'t modify the lastModifiedAt field on updating the journey","nullable":true}},"additionalProperties":true,"description":"Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.\\n","required":["journeyId"]},"JourneyCreationRequest":{"type":"object","properties":{"journeyId":{"type":"string"},"organizationId":{"type":"string"},"brandId":{"type":"string"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"showStepName":{"type":"boolean","nullable":true},"title":{"type":"string","nullable":true},"subTitle":{"type":"string","nullable":true},"showStepSubtitle":{"type":"boolean","nullable":true},"showStepper":{"type":"boolean","nullable":true},"showStepperLabels":{"type":"boolean","nullable":true},"hideNextButton":{"type":"boolean","nullable":true},"name":{"type":"string"},"stepId":{"type":"string"},"schema":{},"uischema":{},"maxWidth":{"type":"string","enum":["small","medium","large","extra large"]}},"required":["name","schema","uischema"]}},"design":{"type":"object","properties":{"logoUrl":{"type":"string","nullable":true},"theme":{"type":"object","additionalProperties":{}},"designTokens":{"type":"object"}},"additionalProperties":false},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["inject","injectWithKey"]},"sourceType":{"type":"string","enum":["journey","step","block"]},"source":{"type":"string"},"target":{"type":"string"}},"required":["type","sourceType","source","target"],"additionalProperties":false}},"logics":{"type":"array","items":{"type":"object","properties":{"autoGeneratedId":{"type":"string"},"conditions":{"type":"array","items":{"type":"string"}},"actions":{"type":"array","items":{"type":"string"}}},"required":["conditions","actions"],"additionalProperties":false}},"contextSchema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the context schema item"},"type":{"type":"string","description":"Type of the parameter. It could be either an entity slug, or a text"},"paramKey":{"type":"string","description":"Expected key to be received in the context"},"isRequired":{"type":"boolean","description":"Indicates if a value is expected to be provided"},"shouldLoadEntity":{"type":"boolean","description":"If type is not text, we can instruct the journey to fetch the entity id we receive as value"}},"required":["paramKey","type"],"additionalProperties":false}},"journey_type":{"type":"string","description":"Journey Template","example":"Sales template (Premium)"},"settings":{"type":"object","properties":{"embedOptions":{"type":"object","properties":{"mode":{"type":"string","enum":["full-screen","inline"]},"lang":{"type":"string","enum":["de","en","fr"]},"width":{"type":"string"},"topBar":{"type":"boolean"},"scrollToTop":{"type":"boolean"},"button":{"type":"object","properties":{"text":{"type":"string","nullable":true},"align":{"type":"string","enum":["left","center","right"]}}}}},"safeModeAutomation":{"type":"boolean"},"canary":{"deprecated":true,"description":"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.","type":"boolean"},"designId":{"type":"string"},"templateId":{"type":"string"},"entityId":{"type":"string","nullable":true},"mappingsAutomationId":{"type":"string"},"targetedCustomer":{"type":"string"},"description":{"type":"string","nullable":true},"organizationSettings":{"type":"object","additionalProperties":{"type":"boolean"},"nullable":true},"publicToken":{"type":"string","nullable":true},"runtimeEntities":{"type":"array","items":{"type":"string","enum":["ORDER","OPPORTUNITY"]}},"filePurposes":{"type":"array","items":{"type":"string"}},"entityTags":{"type":"array","items":{"type":"string"}},"addressSuggestionsFileUrl":{"type":"string","nullable":true,"deprecated":true,"description":"@deprecated Use addressSuggestionsFileId instead"},"addressSuggestionsFileId":{"type":"string","nullable":true},"useNewDesign":{"type":"boolean","deprecated":true,"description":"This property is deprecated and will be removed in a future version"},"useAustrianLabels":{"type":"boolean","description":"If true, some journey input labels are in Austrian format"},"enableDarkMode":{"type":"boolean","description":"If true, the journey shows an icon to toggle dark mode"},"accessMode":{"type":"string","enum":["PUBLIC","PRIVATE"]},"isPublished":{"type":"boolean"},"status":{"type":"string"},"isActive":{"type":"boolean"},"savingProgress":{"type":"object","properties":{"savingMode":{"type":"string","enum":["auto","local","remote","none"]},"supportedVersion":{"type":"number"}}},"thirdPartyCookies":{"type":"boolean","description":"If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent."}},"required":["designId"],"additionalProperties":false},"validationRules":{"$ref":"#/components/schemas/ValidationRuleRef"},"createdBy":{"type":"string"},"__lastModifiedAt":{"type":"string","description":"If passed with value of null, the API won\'t modify the lastModifiedAt field on updating the journey","nullable":true}},"required":["organizationId","name","steps"],"additionalProperties":true},"JourneyCreationRequestV2":{"type":"object","properties":{"journeyId":{"type":"string"},"brandId":{"type":"string"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"showStepName":{"type":"boolean","nullable":true},"title":{"type":"string","nullable":true},"subTitle":{"type":"string","nullable":true},"showStepSubtitle":{"type":"boolean","nullable":true},"showStepper":{"type":"boolean","nullable":true},"showStepperLabels":{"type":"boolean","nullable":true},"hideNextButton":{"type":"boolean","nullable":true},"name":{"type":"string"},"stepId":{"type":"string"},"schema":{},"uischema":{},"maxWidth":{"type":"string","enum":["small","medium","large","extra large"]}},"required":["name","schema","uischema"]}},"design":{"type":"object","properties":{"logoUrl":{"type":"string","nullable":true},"theme":{"type":"object","additionalProperties":{}},"designTokens":{"type":"object"}},"additionalProperties":false},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["inject","injectWithKey"]},"sourceType":{"type":"string","enum":["journey","step","block"]},"source":{"type":"string"},"target":{"type":"string"}},"required":["type","sourceType","source","target"],"additionalProperties":false}},"logics":{"type":"array","items":{"type":"object","properties":{"autoGeneratedId":{"type":"string"},"conditions":{"type":"array","items":{"type":"string"}},"actions":{"type":"array","items":{"type":"string"}}},"required":["conditions","actions"],"additionalProperties":false}},"contextSchema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the context schema item"},"type":{"type":"string","description":"Type of the parameter. It could be either an entity slug, or a text"},"paramKey":{"type":"string","description":"Expected key to be received in the context"},"isRequired":{"type":"boolean","description":"Indicates if a value is expected to be provided"},"shouldLoadEntity":{"type":"boolean","description":"If type is not text, we can instruct the journey to fetch the entity id we receive as value"}},"required":["paramKey","type"],"additionalProperties":false}},"journey_type":{"type":"string","description":"Journey Template","example":"Sales template (Premium)"},"settings":{"type":"object","properties":{"embedOptions":{"type":"object","properties":{"mode":{"type":"string","enum":["full-screen","inline"]},"lang":{"type":"string","enum":["de","en","fr"]},"width":{"type":"string"},"topBar":{"type":"boolean"},"scrollToTop":{"type":"boolean"},"button":{"type":"object","properties":{"text":{"type":"string","nullable":true},"align":{"type":"string","enum":["left","center","right"]}}}}},"safeModeAutomation":{"type":"boolean"},"designId":{"type":"string"},"entityId":{"type":"string","nullable":true},"mappingsAutomationId":{"type":"string"},"templateId":{"type":"string"},"targetedCustomer":{"type":"string"},"description":{"type":"string","nullable":true},"publicToken":{"type":"string","nullable":true},"runtimeEntities":{"type":"array","items":{"type":"string","enum":["ORDER","OPPORTUNITY"]}},"filePurposes":{"type":"array","items":{"type":"string"}},"entityTags":{"type":"array","items":{"type":"string"}},"addressSuggestionsFileUrl":{"type":"string","nullable":true,"deprecated":true,"description":"@deprecated Use addressSuggestionsFileId instead"},"addressSuggestionsFileId":{"type":"string","nullable":true},"useNewDesign":{"type":"boolean","deprecated":true,"description":"This property is deprecated and will be removed in a future version"},"thirdPartyCookies":{"type":"boolean","description":"If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent."},"accessMode":{"type":"string","enum":["PUBLIC","PRIVATE"]},"enableDarkMode":{"type":"boolean","description":"If true, the journey shows an icon to toggle dark mode"}},"additionalProperties":false},"validationRules":{"$ref":"#/components/schemas/ValidationRuleRef"},"_manifest":{"type":"array","description":"Manifest/Blueprint ID used to create/update the entity","items":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"}}},"required":["name","steps"]},"SearchJourneysQueryRequest":{"type":"object","properties":{"q":{"type":"string","description":"Lucene query syntax\\nSee https://lucene.apache.org/core/2_9_4/queryparsersyntax.html ; https://www.elastic.co/guide/en/kibana/current/lucene-query.html\\n","example":"_tags:*Flex*","default":"*"},"from":{"type":"integer","description":"The offset of the first result to return.\\nSee https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html\\n","example":0,"default":0},"size":{"type":"integer","description":"The maximum number of results to return.\\nSee https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html\\n","example":25,"default":25},"sort":{"type":"string","description":"The sort order. Follows Lucene syntax.\\n","example":"_created_at:desc","default":"_created_at:desc"}}},"SearchJourneysResponse":{"type":"object","properties":{"hits":{"type":"number","description":"The total number of hits.\\n","example":1},"results":{"type":"array","description":"The results.\\n","items":{"type":"object","properties":{"_id":{"type":"string","description":"Journey Entity ID","format":"uuid","example":"e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8"},"_schema":{"type":"string","description":"Entity Schema (journey always in this case)","example":"journey"},"_title":{"type":"string","description":"Journey Entity Title","example":"Journey Entity Title"},"_org":{"type":"string","description":"Organization ID","example":"739224"},"_created_at":{"type":"string","format":"date-time","example":"2020-01-01T00:00:00.000Z"},"_updated_at":{"type":"string","format":"date-time","example":"2020-01-01T00:00:00.000Z"},"_tags":{"type":"array","items":{"type":"string","example":"Flex"}},"_manifest":{"type":"array","description":"Manifest ID used to create/update the entity","items":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"}},"journey_name":{"type":"string","description":"Journey Name","example":"Journey Name"},"journey_id":{"type":"string","format":"uuid","description":"Journey config ID","example":"de7df470-253e-11ed-9174-116b8a718c0a"},"journey_type":{"type":"string","description":"Journey Template","example":"Sales template"},"design":{"type":"string","description":"Journey Design Name","example":"Design EPILOT"},"created_by":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"User ID","example":"12345"}}}},"journey_version":{"type":"string","description":"Journey Version","enum":["Flex"]}}}}}},"Journey":{"allOf":[{"$ref":"#/components/schemas/JourneyCreationRequest"},{"$ref":"#/components/schemas/JourneyAuditInfo"},{"$ref":"#/components/schemas/JourneyFeatureFlags"}]},"JourneyFeatureFlags":{"type":"object","properties":{"featureFlags":{"type":"object","additionalProperties":true}}},"JourneyAuditInfo":{"type":"object","properties":{"createdAt":{"type":"string"},"lastModifiedAt":{"type":"string"},"deletedAt":{"type":"string"},"version":{"type":"number"},"revisions":{"type":"number"}},"required":["createdAt","lastModifiedAt","version","revisions"]},"S3Reference":{"type":"object","properties":{"bucket":{"type":"string","example":"document-api-prod"},"key":{"type":"string","example":"uploads/my-template.pdf"}},"required":["bucket","key"]},"TemplateSettings":{"type":"object","description":"Template Settings for document generation","properties":{"custom_margins":{"description":"Custom margins for the document","type":"object","properties":{"top":{"description":"Top margin in cm","type":"number","example":2.54},"bottom":{"description":"Bottom margin in cm","type":"number","example":2.54}}},"suggested_margins":{"description":"Suggested margins for the document","type":"object","properties":{"top":{"description":"Top margin in cm","type":"number","example":2.54},"bottom":{"description":"Bottom margin in cm","type":"number","example":2.54}}},"display_margin_guidelines":{"description":"Display margin guidelines (applicable to partial generation only)","type":"boolean","example":true},"enable_data_table_margin_autofix":{"description":"Enable data table margin autofix","type":"boolean","example":false},"template_with_datatable":{"description":"A flag that indicates whether the template has 1 or more data tables in it","type":"boolean","example":false},"enabled_template_settings_persistence":{"description":"Enables the persistance of template settings","type":"boolean","example":false},"misconfigured_margins":{"description":"An indication that the page margins are misconfigured","type":"boolean","example":false},"file_entity_id":{"description":"The file entity id, used when persisting a new template version with updated settings","type":"string","format":"uuid","example":"1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p"}}},"GenerateDocumentResponse":{"type":"object","properties":{"job_id":{"type":"string","format":"uuid"},"job_status":{"description":"Status of the job","type":"string","enum":["STARTED","PROCESSING","SUCCESS","FAILED"]},"message":{"description":"A message explaining the progress","type":"string"},"pdf_output":{"type":"object","properties":{"preview_url":{"description":"Pre-signed S3 GET URL for PDF preview","type":"string","example":"https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf"},"output_document":{"type":"object","properties":{"filename":{"description":"Generated document filename for PDF","type":"string","example":"my-template-OR-001.pdf"},"s3ref":{"$ref":"#/components/schemas/S3Reference"}},"example":{"s3ref":{"bucket":"document-api-preview-prod","key":"preview/my-template.pdf"}}}}},"docx_output":{"type":"object","properties":{"preview_url":{"description":"Pre-signed S3 GET URL for DOCX preview","type":"string","example":"https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx"},"output_document":{"type":"object","properties":{"filename":{"description":"Generated document filename for DOCX","type":"string","example":"my-template-OR-001.docx"},"s3ref":{"$ref":"#/components/schemas/S3Reference"}},"example":{"s3ref":{"bucket":"document-api-preview-prod","key":"preview/my-template.docx"}}}}},"variable_payload":{"description":"List of variables and its corresponding replaced values from the document template","type":"object","properties":{"additionalProperties":{"type":"string"}}},"template_settings":{"$ref":"#/components/schemas/TemplateSettings"}}},"GenerateDocumentRequest":{"type":"object","properties":{"file_id":{"description":"Entity id for the template being used","type":"string","example":"1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p"},"context_data":{"description":"Custom values for variables in the template. Takes the higher precedence than others.","type":"object","properties":{"additionalProperties":{"type":"string"}}},"language":{"description":"Language code for the document","type":"string","example":"de"}},"required":["file_id","context_data"]},"GetSettingsForJourney":{"type":"object","properties":{"organizationId":{"type":"string","description":"ID of an organization in epilot platform","example":"739224"},"canary":{"type":"boolean","description":"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.","example":true}}},"ButtonOption":{"type":"object","description":"A single button option data","properties":{"value":{"type":"string","example":"Button Hidden Value","description":"The value of the button"},"label":{"type":"string","example":"Button Label","description":"The label of the button"}}},"ValidationRuleRef":{"type":"object","description":"References to validation rules organized by blocks and fields.\\nMaps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).\\n","additionalProperties":{"oneOf":[{"type":"string","description":"Rule ID for block-level validation"},{"$ref":"#/components/schemas/RuleRef"}]},"example":{"block1":"rule123","block2":{"field1":"rule456","field2":"rule789"}}},"RuleRef":{"type":"object","description":"Field-level rule references within a block.\\nMaps field names to rule IDs.\\n","additionalProperties":{"type":"string","description":"Rule ID for field-level validation"},"example":{"firstName":"rule123","lastName":"rule456","email":"rule789"}}},"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Authorization Bearer Token - public access token / user token","bearerFormat":"JWT"}}},"servers":[{"url":"https://journey-config.sls.epilot.io"},{"url":"https://journey-config.sls.epilot.io"}]}')}},t={},r=function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}(799),n=exports;for(var o in r)n[o]=r[o];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={799:function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(r(871));t.default=o.default},871:e=>{e.exports=JSON.parse('{"openapi":"3.0.0","info":{"title":"Journey API","description":"API to configure journeys","version":"1.4.0"},"security":[{"EpilotAuth":[]}],"tags":[{"name":"Journeys","description":"Journey operations"},{"name":"Journeys V2","description":"Journey V2 operations"},{"name":"journey_schema","x-displayName":"Journey","description":"<SchemaDefinition schemaRef=\\"#/components/schemas/Journey\\" />\\n"}],"x-tagGroups":[{"name":"APIs","tags":["Journeys","Journeys V2"]},{"name":"Schemas","tags":["journey_schema"]}],"paths":{"/v1/journey/organization/{id}":{"get":{"operationId":"getJourneysByOrgId","summary":"getJourneysByOrgId","description":"Get all journeys by organization id","tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Organization ID","required":true,"schema":{"type":"string","example":"123"}},{"name":"hydrate","in":"query","description":"Hydrate","required":false,"schema":{"type":"string","example":"true"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetJourneysResponse"}}}}}}},"/v1/journey/configuration/{id}":{"get":{"operationId":"getJourney","summary":"getJourney","description":"Get journey by id. Private journeys requires valid private token to be passed","security":[{},{"EpilotAuth":[]},{"PortalAuth":[]}],"tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}},{"name":"source","in":"query","description":"What source ID. Journey or Entity ID","required":false,"schema":{"type":"string"}},{"name":"orgId","in":"query","description":"Organization ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}}}},"delete":{"operationId":"removeJourney","summary":"removeJourney","description":"Remove journey by id","tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{}},"404":{"description":"Journey not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"journey not found"}}}}}}}}},"/v1/journey/products/{id}":{"get":{"operationId":"getJourneyProducts","summary":"getJourneyProducts","description":"Get products available in the journey by id. requires public journey token to be passed.","security":[{"EpilotAuth":[]}],"tags":["Journeys"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}},{"name":"source","in":"query","description":"What source ID. Journey or Entity ID","required":false,"schema":{"type":"string"}},{"name":"postal_code","in":"query","description":"Zip Code for availibility","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","description":"city for availibility","required":false,"schema":{"type":"string"}},{"name":"street","in":"query","description":"street name for availibility","required":false,"schema":{"type":"string"}},{"name":"street_number","in":"query","description":"street number for availibility","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyProductsResponse"}}}}}}},"/v1/journey/configuration":{"post":{"operationId":"createJourney","summary":"createJourney","description":"Create a Journey","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequest"}}},"description":"Payload"},"parameters":[{"name":"skipAutomation","in":"query","description":"skip creating an Automation (it takes Yn format \\"true, yes, 1, y\\")","required":false,"schema":{"type":"string","format":"Yn","example":"true"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}},"400":{"description":"Validation failed (when validation mode is STRICT)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyValidationError"}}}}}},"put":{"operationId":"updateJourney","summary":"updateJourney","description":"Update a Journey","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequest"}}},"description":"Payload"},"parameters":[],"responses":{"204":{"description":"Success","headers":{"X-Resource-Revisions":{"schema":{"type":"integer","minimum":0},"description":"Last revisions number of the updated resource"}}},"400":{"description":"Validation failed (when validation mode is STRICT)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyValidationError"}}}},"409":{"description":"The Journey has been modified since your last read, please refresh it and try again"}}},"patch":{"operationId":"patchUpdateJourney","summary":"patchUpdateJourney","description":"Update a Journey (partially / patch). Support for nested properties updates (e.g. \\"property[0].name\\").","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchUpdateJourneyRequest"},"example":{"journeyId":"509cdffe-424f-457a-95c2-9708c304ce77","name":"New Journey Name","steps[0].uischema.elements[0].products":["123456","654321"]}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyResponse"}}}},"400":{"description":"Validation failed (when validation mode is STRICT)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyValidationError"}}}},"404":{"description":"Journey or associated entity not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"journey not found"}}}}}}}}},"/v1/journey/configuration/search":{"post":{"operationId":"searchJourneys","summary":"searchJourneys","description":"Search Journeys","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchJourneysQueryRequest"}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchJourneysResponse"}}}}}}},"/v1/journey/document:generate":{"post":{"operationId":"generateDocument","summary":"generateDocument","description":"Builds document generated from a template with journey values.\\"\\n\\nSupported input document types:\\n- .docx\\n\\nSupported output document types:\\n- .pdf\\n- .docx but limited to only text based variables\\n\\nUses [Document API](https://gitlab.com/e-pilot/product/file-management/document-api) to generate the document.\\nUses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document.\\n","security":[{},{"EpilotAuth":[]}],"tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDocumentRequest"}}}},"responses":{"200":{"description":"Generated document output","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDocumentResponse"}}}}}}},"/v2/journey/configuration":{"post":{"operationId":"createJourneyV2","summary":"createJourneyV2","description":"Create a Journey","tags":["Journeys V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}},"description":"Payload"},"parameters":[{"name":"skipAutomation","in":"query","description":"skip creating an Automation (it takes Yn format \\"true, yes, 1, y\\")","required":false,"schema":{"type":"string","format":"Yn","example":"true"}}],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}},"400":{"description":"Validation failed (when validation mode is STRICT)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyValidationError"}}}}}},"put":{"operationId":"updateJourneyV2","summary":"updateJourneyV2","description":"Update a Journey","tags":["Journeys V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}},"400":{"description":"Validation failed (when validation mode is STRICT)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyValidationError"}}}},"404":{"description":"Journey or associated entity not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"journey not found"}}}}}}}},"patch":{"operationId":"patchUpdateJourneyV2","summary":"patchUpdateJourneyV2","description":"Update a Journey (partially / patch). Support for nested properties updates (e.g. \\"property[0].name\\").","tags":["Journeys V2"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchUpdateJourneyRequest"},"example":{"journeyId":"509cdffe-424f-457a-95c2-9708c304ce77","name":"New Journey Name","steps[0].uischema.elements[0].products":["123456","654321"]}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}},"400":{"description":"Validation failed (when validation mode is STRICT)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyValidationError"}}}},"404":{"description":"Journey or associated entity not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"journey not found"}}}}}}}}},"/v2/journey/configuration/{id}":{"get":{"operationId":"getJourneyV2","summary":"getJourneyV2","description":"Get journey by id","security":[],"tags":["Journeys V2"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequestV2"}}}}}},"delete":{"operationId":"removeJourneyV2","summary":"removeJourneyV2","description":"Remove journey by id","tags":["Journeys V2"],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{}}}}},"/v1/journey/{id}/settings":{"get":{"operationId":"getSettingsForJourney","summary":"getSettingsForJourney","description":"Get settings related to the journey using journey ID.","tags":["Journeys"],"security":[{}],"parameters":[{"name":"id","in":"path","description":"Journey ID","required":true,"schema":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSettingsForJourney"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"journey not found"}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unknown API Error"}}}}}}}}},"/v1/journey/button-options":{"get":{"operationId":"getButtonOptions","summary":"getButtonOptions","description":"Get button options from a csv file.","security":[{"EpilotAuth":[]}],"tags":["Journeys"],"parameters":[{"in":"query","name":"fileId","required":true,"description":"file id to get button options from","schema":{"type":"string","example":"535ef74a-dd66-4d01-94a9-725016e70d1c"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ButtonOption"}}}}},"400":{"description":"Bad Request - Invalid file or content","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"UTF-8 encoding error while processing CSV content"},"details":{"type":"string","example":"Please ensure your CSV file is properly encoded in UTF-8 format"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"File with ID 535ef74a-dd66-4d01-94a9-725016e70d1c not found."}}}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","example":"Unknown API Error"}}}}}}}}}},"components":{"schemas":{"GetJourneysResponse":{"type":"object"},"JourneyResponse":{"type":"object","properties":{"createdJourney":{"$ref":"#/components/schemas/Journey"}}},"JourneyProductsResponse":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"_schema":{"type":"string"},"_title":{"type":"string"},"name":{"type":"string"},"_id":{"type":"string"},"_org":{"type":"string"},"code":{"type":"string"},"description":{"type":"string"},"feature":{"type":"array","items":{}},"product_images":{"type":"array","items":{}},"legal_footnote":{"type":"string"},"product_downloads":{"type":"array","items":{}},"price":{"type":"object"}}}},"PatchUpdateJourneyRequest":{"type":"object","properties":{"journeyId":{"type":"string","format":"uuid","example":"509cdffe-424f-457a-95c2-9708c304ce77"},"__lastModifiedAt":{"type":"string","description":"If passed with value of null, the API won\'t modify the lastModifiedAt field on updating the journey","nullable":true}},"additionalProperties":true,"description":"Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.\\n","required":["journeyId"]},"JourneyCreationRequest":{"type":"object","properties":{"journeyId":{"type":"string"},"organizationId":{"type":"string"},"brandId":{"type":"string"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"showStepName":{"type":"boolean","nullable":true},"title":{"type":"string","nullable":true},"subTitle":{"type":"string","nullable":true},"showStepSubtitle":{"type":"boolean","nullable":true},"showStepper":{"type":"boolean","nullable":true},"showStepperLabels":{"type":"boolean","nullable":true},"hideNextButton":{"type":"boolean","nullable":true},"name":{"type":"string"},"stepId":{"type":"string"},"schema":{},"uischema":{},"maxWidth":{"type":"string","enum":["small","medium","large","extra large"]}},"required":["name","schema","uischema"]}},"design":{"type":"object","properties":{"logoUrl":{"type":"string","nullable":true},"theme":{"type":"object","additionalProperties":{}},"designTokens":{"type":"object"}},"additionalProperties":false},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["inject","injectWithKey"]},"sourceType":{"type":"string","enum":["journey","step","block"]},"source":{"type":"string"},"target":{"type":"string"}},"required":["type","sourceType","source","target"],"additionalProperties":false}},"logics":{"type":"array","items":{"type":"object","properties":{"autoGeneratedId":{"type":"string"},"conditions":{"type":"array","items":{"type":"string"}},"actions":{"type":"array","items":{"type":"string"}}},"required":["conditions","actions"],"additionalProperties":false}},"logicsV4":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for logic. Use uuidv7"},"protected":{"type":"boolean","description":"If true, logic can\'t be manipulated by the configuring user"},"action":{"type":"string","description":"Indicates which action to take in case logic evaluates to true"},"triggeredOn":{"type":"string","description":"Indicates when the logic should be evaluated"},"conditions":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"operator":{"type":"string","description":"Operator to be applied between the fact value and the value"},"functionName":{"type":"string","description":"If operator is a custom function, this needs to be provided"},"fact":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for a fact"},"referenceType":{"type":"string","description":"Indicates reference type (block or context parameter)"},"referenceId":{"type":"string","description":"Id of the reference"},"path":{"type":"string","description":"Path to a property. Used if only part of the value is needed"},"meaning":{"type":"string","description":"If path is a reference, indicates the intention of it"}}},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}}]},"args":{"type":"object"}}}}},"settings":{"type":"object","description":"Logic specific settings. Will vary by type of logic"}}}},"contextSchema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the context schema item"},"type":{"type":"string","description":"Type of the parameter. It could be either an entity slug, or a text"},"paramKey":{"type":"string","description":"Expected key to be received in the context"},"isRequired":{"type":"boolean","description":"Indicates if a value is expected to be provided"},"shouldLoadEntity":{"type":"boolean","description":"If type is not text, we can instruct the journey to fetch the entity id we receive as value"}},"required":["paramKey","type"],"additionalProperties":false}},"journey_type":{"type":"string","description":"Journey Template","example":"Sales template (Premium)"},"settings":{"type":"object","properties":{"embedOptions":{"type":"object","properties":{"mode":{"type":"string","enum":["full-screen","inline"]},"lang":{"type":"string","enum":["de","en","fr"]},"width":{"type":"string"},"topBar":{"type":"boolean"},"scrollToTop":{"type":"boolean"},"button":{"type":"object","properties":{"text":{"type":"string","nullable":true},"align":{"type":"string","enum":["left","center","right"]}}}}},"safeModeAutomation":{"type":"boolean"},"canary":{"deprecated":true,"description":"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.","type":"boolean"},"designId":{"type":"string"},"templateId":{"type":"string"},"entityId":{"type":"string","nullable":true},"mappingsAutomationId":{"type":"string"},"targetedCustomer":{"type":"string"},"description":{"type":"string","nullable":true},"organizationSettings":{"type":"object","additionalProperties":{"type":"boolean"},"nullable":true},"publicToken":{"type":"string","nullable":true},"runtimeEntities":{"type":"array","items":{"type":"string","enum":["ORDER","OPPORTUNITY"]}},"filePurposes":{"type":"array","items":{"type":"string"}},"entityTags":{"type":"array","items":{"type":"string"}},"addressSuggestionsFileUrl":{"type":"string","nullable":true,"deprecated":true,"description":"@deprecated Use addressSuggestionsFileId instead"},"addressSuggestionsFileId":{"type":"string","nullable":true},"addressSuggestionsCountryCode":{"type":"string","nullable":true,"description":"Country code for address format (e.g. DE, AT, CH, LU)"},"addressSuggestionsEnableAutoComplete":{"type":"boolean","description":"Whether address auto-complete is enabled"},"addressSuggestionsSource":{"type":"array","items":{"type":"string"},"description":"Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)"},"addressSuggestionsEnableFreeText":{"type":"boolean","description":"Whether free text input is allowed when auto-complete is on"},"useNewDesign":{"type":"boolean","deprecated":true,"description":"This property is deprecated and will be removed in a future version"},"useAustrianLabels":{"type":"boolean","description":"If true, some journey input labels are in Austrian format"},"enableDarkMode":{"type":"boolean","description":"If true, the journey shows an icon to toggle dark mode"},"accessMode":{"type":"string","enum":["PUBLIC","PRIVATE"]},"isPublished":{"type":"boolean"},"status":{"type":"string"},"isActive":{"type":"boolean"},"savingProgress":{"type":"object","properties":{"savingMode":{"type":"string","enum":["auto","local","remote","none"]},"supportedVersion":{"type":"number"}}},"thirdPartyCookies":{"type":"boolean","description":"If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent."}},"required":["designId"],"additionalProperties":false},"validationRules":{"$ref":"#/components/schemas/ValidationRuleRef"},"createdBy":{"type":"string"},"updatedBy":{"type":"string","nullable":true},"__lastModifiedAt":{"type":"string","description":"If passed with value of null, the API won\'t modify the lastModifiedAt field on updating the journey","nullable":true}},"required":["organizationId","name","steps"],"additionalProperties":true},"JourneyCreationRequestV2":{"type":"object","properties":{"journeyId":{"type":"string"},"brandId":{"type":"string"},"name":{"type":"string"},"steps":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"showStepName":{"type":"boolean","nullable":true},"title":{"type":"string","nullable":true},"subTitle":{"type":"string","nullable":true},"showStepSubtitle":{"type":"boolean","nullable":true},"showStepper":{"type":"boolean","nullable":true},"showStepperLabels":{"type":"boolean","nullable":true},"hideNextButton":{"type":"boolean","nullable":true},"name":{"type":"string"},"stepId":{"type":"string"},"schema":{},"uischema":{},"maxWidth":{"type":"string","enum":["small","medium","large","extra large"]}},"required":["name","schema","uischema"]}},"design":{"type":"object","properties":{"logoUrl":{"type":"string","nullable":true},"theme":{"type":"object","additionalProperties":{}},"designTokens":{"type":"object"}},"additionalProperties":false},"rules":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["inject","injectWithKey"]},"sourceType":{"type":"string","enum":["journey","step","block"]},"source":{"type":"string"},"target":{"type":"string"}},"required":["type","sourceType","source","target"],"additionalProperties":false}},"logics":{"type":"array","items":{"type":"object","properties":{"autoGeneratedId":{"type":"string"},"conditions":{"type":"array","items":{"type":"string"}},"actions":{"type":"array","items":{"type":"string"}}},"required":["conditions","actions"],"additionalProperties":false}},"logicsV4":{"type":"object","additionalProperties":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for logic. Use uuidv7"},"protected":{"type":"boolean","description":"If true, logic can\'t be manipulated by the configuring user"},"action":{"type":"string","description":"Indicates which action to take in case logic evaluates to true"},"triggeredOn":{"type":"string","description":"Indicates when the logic should be evaluated"},"conditions":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"operator":{"type":"string","description":"Operator to be applied between the fact value and the value"},"functionName":{"type":"string","description":"If operator is a custom function, this needs to be provided"},"fact":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for a fact"},"referenceType":{"type":"string","description":"Indicates reference type (block or context parameter)"},"referenceId":{"type":"string","description":"Id of the reference"},"path":{"type":"string","description":"Path to a property. Used if only part of the value is needed"},"meaning":{"type":"string","description":"If path is a reference, indicates the intention of it"}}},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"object"},{"type":"array","items":{}}]},"args":{"type":"object"}}}}},"settings":{"type":"object","description":"Logic specific settings. Will vary by type of logic"}}}},"contextSchema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for the context schema item"},"type":{"type":"string","description":"Type of the parameter. It could be either an entity slug, or a text"},"paramKey":{"type":"string","description":"Expected key to be received in the context"},"isRequired":{"type":"boolean","description":"Indicates if a value is expected to be provided"},"shouldLoadEntity":{"type":"boolean","description":"If type is not text, we can instruct the journey to fetch the entity id we receive as value"}},"required":["paramKey","type"],"additionalProperties":false}},"journey_type":{"type":"string","description":"Journey Template","example":"Sales template (Premium)"},"settings":{"type":"object","properties":{"embedOptions":{"type":"object","properties":{"mode":{"type":"string","enum":["full-screen","inline"]},"lang":{"type":"string","enum":["de","en","fr"]},"width":{"type":"string"},"topBar":{"type":"boolean"},"scrollToTop":{"type":"boolean"},"button":{"type":"object","properties":{"text":{"type":"string","nullable":true},"align":{"type":"string","enum":["left","center","right"]}}}}},"safeModeAutomation":{"type":"boolean"},"designId":{"type":"string"},"entityId":{"type":"string","nullable":true},"mappingsAutomationId":{"type":"string"},"templateId":{"type":"string"},"targetedCustomer":{"type":"string"},"description":{"type":"string","nullable":true},"publicToken":{"type":"string","nullable":true},"runtimeEntities":{"type":"array","items":{"type":"string","enum":["ORDER","OPPORTUNITY"]}},"filePurposes":{"type":"array","items":{"type":"string"}},"entityTags":{"type":"array","items":{"type":"string"}},"addressSuggestionsFileUrl":{"type":"string","nullable":true,"deprecated":true,"description":"@deprecated Use addressSuggestionsFileId instead"},"addressSuggestionsFileId":{"type":"string","nullable":true},"addressSuggestionsCountryCode":{"type":"string","nullable":true,"description":"Country code for address format (e.g. DE, AT, CH, LU)"},"addressSuggestionsEnableAutoComplete":{"type":"boolean","description":"Whether address auto-complete is enabled"},"addressSuggestionsSource":{"type":"array","items":{"type":"string"},"description":"Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)"},"addressSuggestionsEnableFreeText":{"type":"boolean","description":"Whether free text input is allowed when auto-complete is on"},"useNewDesign":{"type":"boolean","deprecated":true,"description":"This property is deprecated and will be removed in a future version"},"thirdPartyCookies":{"type":"boolean","description":"If false, third-party cookies are disabled to comply with GDPR regulations without asking for consent."},"accessMode":{"type":"string","enum":["PUBLIC","PRIVATE"]},"enableDarkMode":{"type":"boolean","description":"If true, the journey shows an icon to toggle dark mode"}},"additionalProperties":false},"validationRules":{"$ref":"#/components/schemas/ValidationRuleRef"},"_manifest":{"type":"array","description":"Manifest/Blueprint ID used to create/update the entity","items":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"}}},"required":["name","steps"]},"SearchJourneysQueryRequest":{"type":"object","properties":{"q":{"type":"string","description":"Lucene query syntax\\nSee https://lucene.apache.org/core/2_9_4/queryparsersyntax.html ; https://www.elastic.co/guide/en/kibana/current/lucene-query.html\\n","example":"_tags:*Flex*","default":"*"},"from":{"type":"integer","description":"The offset of the first result to return.\\nSee https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html\\n","example":0,"default":0},"size":{"type":"integer","description":"The maximum number of results to return.\\nSee https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html\\n","example":25,"default":25},"sort":{"type":"string","description":"The sort order. Follows Lucene syntax.\\n","example":"_created_at:desc","default":"_created_at:desc"}}},"SearchJourneysResponse":{"type":"object","properties":{"hits":{"type":"number","description":"The total number of hits.\\n","example":1},"results":{"type":"array","description":"The results.\\n","items":{"type":"object","properties":{"_id":{"type":"string","description":"Journey Entity ID","format":"uuid","example":"e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8"},"_schema":{"type":"string","description":"Entity Schema (journey always in this case)","example":"journey"},"_title":{"type":"string","description":"Journey Entity Title","example":"Journey Entity Title"},"_org":{"type":"string","description":"Organization ID","example":"739224"},"_created_at":{"type":"string","format":"date-time","example":"2020-01-01T00:00:00.000Z"},"_updated_at":{"type":"string","format":"date-time","example":"2020-01-01T00:00:00.000Z"},"_tags":{"type":"array","items":{"type":"string","example":"Flex"}},"_manifest":{"type":"array","description":"Manifest ID used to create/update the entity","items":{"type":"string","format":"uuid","example":"123e4567-e89b-12d3-a456-426614174000"}},"journey_name":{"type":"string","description":"Journey Name","example":"Journey Name"},"journey_id":{"type":"string","format":"uuid","description":"Journey config ID","example":"de7df470-253e-11ed-9174-116b8a718c0a"},"journey_type":{"type":"string","description":"Journey Template","example":"Sales template"},"design":{"type":"string","description":"Journey Design Name","example":"Design EPILOT"},"created_by":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"User ID","example":"12345"}}}},"journey_version":{"type":"string","description":"Journey Version","enum":["Flex"]}}}}}},"Journey":{"allOf":[{"$ref":"#/components/schemas/JourneyCreationRequest"},{"$ref":"#/components/schemas/JourneyAuditInfo"},{"$ref":"#/components/schemas/JourneyFeatureFlags"}]},"JourneyFeatureFlags":{"type":"object","properties":{"featureFlags":{"type":"object","additionalProperties":true}}},"JourneyAuditInfo":{"type":"object","properties":{"createdAt":{"type":"string"},"lastModifiedAt":{"type":"string"},"deletedAt":{"type":"string"},"version":{"type":"number"},"revisions":{"type":"number"}},"required":["createdAt","lastModifiedAt","version","revisions"]},"JourneyValidationResponse":{"type":"object","properties":{"valid":{"type":"boolean","description":"Whether the journey configuration is valid"},"errors":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Pattern type (e.g. PatternA_DotsInStepId)"},"severity":{"type":"string","enum":["critical","high","medium","low"]},"message":{"type":"string"},"affectedStepIds":{"type":"array","items":{"type":"string"}},"count":{"type":"integer"},"autoFix":{"type":"object","properties":{"feasible":{"type":"boolean"},"confidence":{"type":"string","enum":["high","medium","low"]},"reason":{"type":"string"},"details":{"type":"string"}}}}},"description":"List of detected validation errors"},"warnings":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"}}},"description":"List of warnings (non-critical issues)"}},"required":["valid","errors"]},"JourneyValidationError":{"type":"object","properties":{"error":{"type":"string","example":"ValidationError","description":"Error type identifier"},"message":{"type":"string","example":"Journey configuration validation failed","description":"High-level error message"},"details":{"type":"array","items":{"type":"object","properties":{"pattern":{"type":"string","description":"Validation pattern that failed"},"severity":{"type":"string","enum":["critical","high","medium","low"]},"message":{"type":"string","description":"Detailed error message"},"count":{"type":"integer","description":"Number of issues found"}}},"description":"Detailed validation errors for each pattern that failed"}},"required":["error","message","details"]},"S3Reference":{"type":"object","properties":{"bucket":{"type":"string","example":"document-api-prod"},"key":{"type":"string","example":"uploads/my-template.pdf"}},"required":["bucket","key"]},"TemplateSettings":{"type":"object","description":"Template Settings for document generation","properties":{"custom_margins":{"description":"Custom margins for the document","type":"object","properties":{"top":{"description":"Top margin in cm","type":"number","example":2.54},"bottom":{"description":"Bottom margin in cm","type":"number","example":2.54}}},"suggested_margins":{"description":"Suggested margins for the document","type":"object","properties":{"top":{"description":"Top margin in cm","type":"number","example":2.54},"bottom":{"description":"Bottom margin in cm","type":"number","example":2.54}}},"display_margin_guidelines":{"description":"Display margin guidelines (applicable to partial generation only)","type":"boolean","example":true},"enable_data_table_margin_autofix":{"description":"Enable data table margin autofix","type":"boolean","example":false},"template_with_datatable":{"description":"A flag that indicates whether the template has 1 or more data tables in it","type":"boolean","example":false},"enabled_template_settings_persistence":{"description":"Enables the persistance of template settings","type":"boolean","example":false},"misconfigured_margins":{"description":"An indication that the page margins are misconfigured","type":"boolean","example":false},"file_entity_id":{"description":"The file entity id, used when persisting a new template version with updated settings","type":"string","format":"uuid","example":"1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"}}},"GenerateDocumentResponse":{"type":"object","properties":{"job_id":{"type":"string","format":"uuid"},"job_status":{"description":"Status of the job","type":"string","enum":["STARTED","PROCESSING","SUCCESS","FAILED"]},"message":{"description":"A message explaining the progress","type":"string"},"pdf_output":{"type":"object","properties":{"preview_url":{"description":"Pre-signed S3 GET URL for PDF preview","type":"string","example":"https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf"},"output_document":{"type":"object","properties":{"filename":{"description":"Generated document filename for PDF","type":"string","example":"my-template-OR-001.pdf"},"s3ref":{"$ref":"#/components/schemas/S3Reference"}},"example":{"s3ref":{"bucket":"document-api-preview-prod","key":"preview/my-template.pdf"}}}}},"docx_output":{"type":"object","properties":{"preview_url":{"description":"Pre-signed S3 GET URL for DOCX preview","type":"string","example":"https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx"},"output_document":{"type":"object","properties":{"filename":{"description":"Generated document filename for DOCX","type":"string","example":"my-template-OR-001.docx"},"s3ref":{"$ref":"#/components/schemas/S3Reference"}},"example":{"s3ref":{"bucket":"document-api-preview-prod","key":"preview/my-template.docx"}}}}},"variable_payload":{"description":"List of variables and its corresponding replaced values from the document template","type":"object","properties":{"additionalProperties":{"type":"string"}}},"template_settings":{"$ref":"#/components/schemas/TemplateSettings"}}},"GenerateDocumentRequest":{"type":"object","properties":{"file_id":{"description":"Entity id for the template being used","type":"string","example":"1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p"},"context_data":{"description":"Custom values for variables in the template. Takes the higher precedence than others.","type":"object","properties":{"additionalProperties":{"type":"string"}}},"language":{"description":"Language code for the document","type":"string","example":"de"}},"required":["file_id","context_data"]},"GetSettingsForJourney":{"type":"object","properties":{"organizationId":{"type":"string","description":"ID of an organization in epilot platform","example":"739224"},"canary":{"type":"boolean","description":"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.","example":true},"thirdPartyCookies":{"type":"boolean","description":"When set to false, third-party cookies and resources should be completely disabled to comply with GDPR regulations.","example":true}}},"ButtonOption":{"type":"object","description":"A single button option data","properties":{"value":{"type":"string","example":"Button Hidden Value","description":"The value of the button"},"label":{"type":"string","example":"Button Label","description":"The label of the button"}}},"ValidationRuleRef":{"type":"object","description":"References to validation rules organized by blocks and fields.\\nMaps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).\\n","additionalProperties":{"oneOf":[{"type":"string","description":"Rule ID for block-level validation"},{"$ref":"#/components/schemas/RuleRef"}]},"example":{"block1":"rule123","block2":{"field1":"rule456","field2":"rule789"}}},"RuleRef":{"type":"object","description":"Field-level rule references within a block.\\nMaps field names to rule IDs.\\n","additionalProperties":{"type":"string","description":"Rule ID for field-level validation"},"example":{"firstName":"rule123","lastName":"rule456","email":"rule789"}}},"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Authorization Bearer Token - public access token / user token","bearerFormat":"JWT"},"PortalAuth":{"type":"http","scheme":"bearer","description":"Portal Authorization Bearer Token","bearerFormat":"JWT"}}},"servers":[{"url":"https://journey-config.sls.epilot.io"}]}')}},t={},r=function r(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return e[i].call(n.exports,n,n.exports,r),n.exports}(799),i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -132,6 +132,12 @@ declare namespace Components {
|
|
|
132
132
|
* true
|
|
133
133
|
*/
|
|
134
134
|
canary?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* When set to false, third-party cookies and resources should be completely disabled to comply with GDPR regulations.
|
|
137
|
+
* example:
|
|
138
|
+
* true
|
|
139
|
+
*/
|
|
140
|
+
thirdPartyCookies?: boolean;
|
|
135
141
|
}
|
|
136
142
|
export interface Journey {
|
|
137
143
|
[name: string]: any;
|
|
@@ -173,6 +179,70 @@ declare namespace Components {
|
|
|
173
179
|
conditions: string[];
|
|
174
180
|
actions: string[];
|
|
175
181
|
}[];
|
|
182
|
+
logicsV4?: {
|
|
183
|
+
[name: string]: {
|
|
184
|
+
/**
|
|
185
|
+
* Unique identifier for logic. Use uuidv7
|
|
186
|
+
*/
|
|
187
|
+
id?: string; // uuid
|
|
188
|
+
/**
|
|
189
|
+
* If true, logic can't be manipulated by the configuring user
|
|
190
|
+
*/
|
|
191
|
+
protected?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Indicates which action to take in case logic evaluates to true
|
|
194
|
+
*/
|
|
195
|
+
action?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Indicates when the logic should be evaluated
|
|
198
|
+
*/
|
|
199
|
+
triggeredOn?: string;
|
|
200
|
+
conditions?: {
|
|
201
|
+
/**
|
|
202
|
+
* Operator to be applied between the fact value and the value
|
|
203
|
+
*/
|
|
204
|
+
operator?: string;
|
|
205
|
+
/**
|
|
206
|
+
* If operator is a custom function, this needs to be provided
|
|
207
|
+
*/
|
|
208
|
+
functionName?: string;
|
|
209
|
+
fact?: {
|
|
210
|
+
/**
|
|
211
|
+
* Unique identifier for a fact
|
|
212
|
+
*/
|
|
213
|
+
id?: string; // uuid
|
|
214
|
+
/**
|
|
215
|
+
* Indicates reference type (block or context parameter)
|
|
216
|
+
*/
|
|
217
|
+
referenceType?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Id of the reference
|
|
220
|
+
*/
|
|
221
|
+
referenceId?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Path to a property. Used if only part of the value is needed
|
|
224
|
+
*/
|
|
225
|
+
path?: string;
|
|
226
|
+
/**
|
|
227
|
+
* If path is a reference, indicates the intention of it
|
|
228
|
+
*/
|
|
229
|
+
meaning?: string;
|
|
230
|
+
};
|
|
231
|
+
value?: string | number | boolean | {
|
|
232
|
+
[key: string]: any;
|
|
233
|
+
} | any[];
|
|
234
|
+
args?: {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
};
|
|
237
|
+
}[][];
|
|
238
|
+
/**
|
|
239
|
+
* Logic specific settings. Will vary by type of logic
|
|
240
|
+
*/
|
|
241
|
+
settings?: {
|
|
242
|
+
[key: string]: any;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
176
246
|
contextSchema?: {
|
|
177
247
|
/**
|
|
178
248
|
* Unique identifier for the context schema item
|
|
@@ -236,6 +306,22 @@ declare namespace Components {
|
|
|
236
306
|
*/
|
|
237
307
|
addressSuggestionsFileUrl?: string | null;
|
|
238
308
|
addressSuggestionsFileId?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* Country code for address format (e.g. DE, AT, CH, LU)
|
|
311
|
+
*/
|
|
312
|
+
addressSuggestionsCountryCode?: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Whether address auto-complete is enabled
|
|
315
|
+
*/
|
|
316
|
+
addressSuggestionsEnableAutoComplete?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)
|
|
319
|
+
*/
|
|
320
|
+
addressSuggestionsSource?: string[];
|
|
321
|
+
/**
|
|
322
|
+
* Whether free text input is allowed when auto-complete is on
|
|
323
|
+
*/
|
|
324
|
+
addressSuggestionsEnableFreeText?: boolean;
|
|
239
325
|
/**
|
|
240
326
|
* This property is deprecated and will be removed in a future version
|
|
241
327
|
*/
|
|
@@ -276,6 +362,7 @@ declare namespace Components {
|
|
|
276
362
|
*/
|
|
277
363
|
ValidationRuleRef;
|
|
278
364
|
createdBy?: string;
|
|
365
|
+
updatedBy?: string | null;
|
|
279
366
|
/**
|
|
280
367
|
* If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
|
|
281
368
|
*/
|
|
@@ -336,6 +423,70 @@ declare namespace Components {
|
|
|
336
423
|
conditions: string[];
|
|
337
424
|
actions: string[];
|
|
338
425
|
}[];
|
|
426
|
+
logicsV4?: {
|
|
427
|
+
[name: string]: {
|
|
428
|
+
/**
|
|
429
|
+
* Unique identifier for logic. Use uuidv7
|
|
430
|
+
*/
|
|
431
|
+
id?: string; // uuid
|
|
432
|
+
/**
|
|
433
|
+
* If true, logic can't be manipulated by the configuring user
|
|
434
|
+
*/
|
|
435
|
+
protected?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* Indicates which action to take in case logic evaluates to true
|
|
438
|
+
*/
|
|
439
|
+
action?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Indicates when the logic should be evaluated
|
|
442
|
+
*/
|
|
443
|
+
triggeredOn?: string;
|
|
444
|
+
conditions?: {
|
|
445
|
+
/**
|
|
446
|
+
* Operator to be applied between the fact value and the value
|
|
447
|
+
*/
|
|
448
|
+
operator?: string;
|
|
449
|
+
/**
|
|
450
|
+
* If operator is a custom function, this needs to be provided
|
|
451
|
+
*/
|
|
452
|
+
functionName?: string;
|
|
453
|
+
fact?: {
|
|
454
|
+
/**
|
|
455
|
+
* Unique identifier for a fact
|
|
456
|
+
*/
|
|
457
|
+
id?: string; // uuid
|
|
458
|
+
/**
|
|
459
|
+
* Indicates reference type (block or context parameter)
|
|
460
|
+
*/
|
|
461
|
+
referenceType?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Id of the reference
|
|
464
|
+
*/
|
|
465
|
+
referenceId?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Path to a property. Used if only part of the value is needed
|
|
468
|
+
*/
|
|
469
|
+
path?: string;
|
|
470
|
+
/**
|
|
471
|
+
* If path is a reference, indicates the intention of it
|
|
472
|
+
*/
|
|
473
|
+
meaning?: string;
|
|
474
|
+
};
|
|
475
|
+
value?: string | number | boolean | {
|
|
476
|
+
[key: string]: any;
|
|
477
|
+
} | any[];
|
|
478
|
+
args?: {
|
|
479
|
+
[key: string]: any;
|
|
480
|
+
};
|
|
481
|
+
}[][];
|
|
482
|
+
/**
|
|
483
|
+
* Logic specific settings. Will vary by type of logic
|
|
484
|
+
*/
|
|
485
|
+
settings?: {
|
|
486
|
+
[key: string]: any;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
339
490
|
contextSchema?: {
|
|
340
491
|
/**
|
|
341
492
|
* Unique identifier for the context schema item
|
|
@@ -399,6 +550,22 @@ declare namespace Components {
|
|
|
399
550
|
*/
|
|
400
551
|
addressSuggestionsFileUrl?: string | null;
|
|
401
552
|
addressSuggestionsFileId?: string | null;
|
|
553
|
+
/**
|
|
554
|
+
* Country code for address format (e.g. DE, AT, CH, LU)
|
|
555
|
+
*/
|
|
556
|
+
addressSuggestionsCountryCode?: string | null;
|
|
557
|
+
/**
|
|
558
|
+
* Whether address auto-complete is enabled
|
|
559
|
+
*/
|
|
560
|
+
addressSuggestionsEnableAutoComplete?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)
|
|
563
|
+
*/
|
|
564
|
+
addressSuggestionsSource?: string[];
|
|
565
|
+
/**
|
|
566
|
+
* Whether free text input is allowed when auto-complete is on
|
|
567
|
+
*/
|
|
568
|
+
addressSuggestionsEnableFreeText?: boolean;
|
|
402
569
|
/**
|
|
403
570
|
* This property is deprecated and will be removed in a future version
|
|
404
571
|
*/
|
|
@@ -439,6 +606,7 @@ declare namespace Components {
|
|
|
439
606
|
*/
|
|
440
607
|
ValidationRuleRef;
|
|
441
608
|
createdBy?: string;
|
|
609
|
+
updatedBy?: string | null;
|
|
442
610
|
/**
|
|
443
611
|
* If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
|
|
444
612
|
*/
|
|
@@ -482,6 +650,70 @@ declare namespace Components {
|
|
|
482
650
|
conditions: string[];
|
|
483
651
|
actions: string[];
|
|
484
652
|
}[];
|
|
653
|
+
logicsV4?: {
|
|
654
|
+
[name: string]: {
|
|
655
|
+
/**
|
|
656
|
+
* Unique identifier for logic. Use uuidv7
|
|
657
|
+
*/
|
|
658
|
+
id?: string; // uuid
|
|
659
|
+
/**
|
|
660
|
+
* If true, logic can't be manipulated by the configuring user
|
|
661
|
+
*/
|
|
662
|
+
protected?: boolean;
|
|
663
|
+
/**
|
|
664
|
+
* Indicates which action to take in case logic evaluates to true
|
|
665
|
+
*/
|
|
666
|
+
action?: string;
|
|
667
|
+
/**
|
|
668
|
+
* Indicates when the logic should be evaluated
|
|
669
|
+
*/
|
|
670
|
+
triggeredOn?: string;
|
|
671
|
+
conditions?: {
|
|
672
|
+
/**
|
|
673
|
+
* Operator to be applied between the fact value and the value
|
|
674
|
+
*/
|
|
675
|
+
operator?: string;
|
|
676
|
+
/**
|
|
677
|
+
* If operator is a custom function, this needs to be provided
|
|
678
|
+
*/
|
|
679
|
+
functionName?: string;
|
|
680
|
+
fact?: {
|
|
681
|
+
/**
|
|
682
|
+
* Unique identifier for a fact
|
|
683
|
+
*/
|
|
684
|
+
id?: string; // uuid
|
|
685
|
+
/**
|
|
686
|
+
* Indicates reference type (block or context parameter)
|
|
687
|
+
*/
|
|
688
|
+
referenceType?: string;
|
|
689
|
+
/**
|
|
690
|
+
* Id of the reference
|
|
691
|
+
*/
|
|
692
|
+
referenceId?: string;
|
|
693
|
+
/**
|
|
694
|
+
* Path to a property. Used if only part of the value is needed
|
|
695
|
+
*/
|
|
696
|
+
path?: string;
|
|
697
|
+
/**
|
|
698
|
+
* If path is a reference, indicates the intention of it
|
|
699
|
+
*/
|
|
700
|
+
meaning?: string;
|
|
701
|
+
};
|
|
702
|
+
value?: string | number | boolean | {
|
|
703
|
+
[key: string]: any;
|
|
704
|
+
} | any[];
|
|
705
|
+
args?: {
|
|
706
|
+
[key: string]: any;
|
|
707
|
+
};
|
|
708
|
+
}[][];
|
|
709
|
+
/**
|
|
710
|
+
* Logic specific settings. Will vary by type of logic
|
|
711
|
+
*/
|
|
712
|
+
settings?: {
|
|
713
|
+
[key: string]: any;
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
};
|
|
485
717
|
contextSchema?: {
|
|
486
718
|
/**
|
|
487
719
|
* Unique identifier for the context schema item
|
|
@@ -538,6 +770,22 @@ declare namespace Components {
|
|
|
538
770
|
*/
|
|
539
771
|
addressSuggestionsFileUrl?: string | null;
|
|
540
772
|
addressSuggestionsFileId?: string | null;
|
|
773
|
+
/**
|
|
774
|
+
* Country code for address format (e.g. DE, AT, CH, LU)
|
|
775
|
+
*/
|
|
776
|
+
addressSuggestionsCountryCode?: string | null;
|
|
777
|
+
/**
|
|
778
|
+
* Whether address auto-complete is enabled
|
|
779
|
+
*/
|
|
780
|
+
addressSuggestionsEnableAutoComplete?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)
|
|
783
|
+
*/
|
|
784
|
+
addressSuggestionsSource?: string[];
|
|
785
|
+
/**
|
|
786
|
+
* Whether free text input is allowed when auto-complete is on
|
|
787
|
+
*/
|
|
788
|
+
addressSuggestionsEnableFreeText?: boolean;
|
|
541
789
|
/**
|
|
542
790
|
* This property is deprecated and will be removed in a future version
|
|
543
791
|
*/
|
|
@@ -596,6 +844,70 @@ declare namespace Components {
|
|
|
596
844
|
export interface JourneyResponse {
|
|
597
845
|
createdJourney?: Journey;
|
|
598
846
|
}
|
|
847
|
+
export interface JourneyValidationError {
|
|
848
|
+
/**
|
|
849
|
+
* Error type identifier
|
|
850
|
+
* example:
|
|
851
|
+
* ValidationError
|
|
852
|
+
*/
|
|
853
|
+
error: string;
|
|
854
|
+
/**
|
|
855
|
+
* High-level error message
|
|
856
|
+
* example:
|
|
857
|
+
* Journey configuration validation failed
|
|
858
|
+
*/
|
|
859
|
+
message: string;
|
|
860
|
+
/**
|
|
861
|
+
* Detailed validation errors for each pattern that failed
|
|
862
|
+
*/
|
|
863
|
+
details: {
|
|
864
|
+
/**
|
|
865
|
+
* Validation pattern that failed
|
|
866
|
+
*/
|
|
867
|
+
pattern?: string;
|
|
868
|
+
severity?: "critical" | "high" | "medium" | "low";
|
|
869
|
+
/**
|
|
870
|
+
* Detailed error message
|
|
871
|
+
*/
|
|
872
|
+
message?: string;
|
|
873
|
+
/**
|
|
874
|
+
* Number of issues found
|
|
875
|
+
*/
|
|
876
|
+
count?: number;
|
|
877
|
+
}[];
|
|
878
|
+
}
|
|
879
|
+
export interface JourneyValidationResponse {
|
|
880
|
+
/**
|
|
881
|
+
* Whether the journey configuration is valid
|
|
882
|
+
*/
|
|
883
|
+
valid: boolean;
|
|
884
|
+
/**
|
|
885
|
+
* List of detected validation errors
|
|
886
|
+
*/
|
|
887
|
+
errors: {
|
|
888
|
+
/**
|
|
889
|
+
* Pattern type (e.g. PatternA_DotsInStepId)
|
|
890
|
+
*/
|
|
891
|
+
type?: string;
|
|
892
|
+
severity?: "critical" | "high" | "medium" | "low";
|
|
893
|
+
message?: string;
|
|
894
|
+
affectedStepIds?: string[];
|
|
895
|
+
count?: number;
|
|
896
|
+
autoFix?: {
|
|
897
|
+
feasible?: boolean;
|
|
898
|
+
confidence?: "high" | "medium" | "low";
|
|
899
|
+
reason?: string;
|
|
900
|
+
details?: string;
|
|
901
|
+
};
|
|
902
|
+
}[];
|
|
903
|
+
/**
|
|
904
|
+
* List of warnings (non-critical issues)
|
|
905
|
+
*/
|
|
906
|
+
warnings?: {
|
|
907
|
+
type?: string;
|
|
908
|
+
message?: string;
|
|
909
|
+
}[];
|
|
910
|
+
}
|
|
599
911
|
/**
|
|
600
912
|
* Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
|
|
601
913
|
*
|
|
@@ -832,7 +1144,7 @@ declare namespace Components {
|
|
|
832
1144
|
/**
|
|
833
1145
|
* The file entity id, used when persisting a new template version with updated settings
|
|
834
1146
|
* example:
|
|
835
|
-
* 1a2b3c4d-5e6f-
|
|
1147
|
+
* 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
|
|
836
1148
|
*/
|
|
837
1149
|
file_entity_id?: string; // uuid
|
|
838
1150
|
}
|
|
@@ -884,6 +1196,7 @@ declare namespace Paths {
|
|
|
884
1196
|
export type RequestBody = Components.Schemas.JourneyCreationRequest;
|
|
885
1197
|
namespace Responses {
|
|
886
1198
|
export type $201 = Components.Schemas.Journey;
|
|
1199
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
887
1200
|
}
|
|
888
1201
|
}
|
|
889
1202
|
namespace CreateJourneyV2 {
|
|
@@ -904,6 +1217,7 @@ declare namespace Paths {
|
|
|
904
1217
|
export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
|
|
905
1218
|
namespace Responses {
|
|
906
1219
|
export type $201 = Components.Schemas.JourneyCreationRequestV2;
|
|
1220
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
907
1221
|
}
|
|
908
1222
|
}
|
|
909
1223
|
namespace GenerateDocument {
|
|
@@ -944,7 +1258,7 @@ declare namespace Paths {
|
|
|
944
1258
|
export interface $404 {
|
|
945
1259
|
/**
|
|
946
1260
|
* example:
|
|
947
|
-
*
|
|
1261
|
+
* File with ID 535ef74a-dd66-4d01-94a9-725016e70d1c not found.
|
|
948
1262
|
*/
|
|
949
1263
|
message?: string;
|
|
950
1264
|
}
|
|
@@ -1104,6 +1418,14 @@ declare namespace Paths {
|
|
|
1104
1418
|
Components.Schemas.PatchUpdateJourneyRequest;
|
|
1105
1419
|
namespace Responses {
|
|
1106
1420
|
export type $200 = Components.Schemas.JourneyResponse;
|
|
1421
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1422
|
+
export interface $404 {
|
|
1423
|
+
/**
|
|
1424
|
+
* example:
|
|
1425
|
+
* journey not found
|
|
1426
|
+
*/
|
|
1427
|
+
message?: string;
|
|
1428
|
+
}
|
|
1107
1429
|
}
|
|
1108
1430
|
}
|
|
1109
1431
|
namespace PatchUpdateJourneyV2 {
|
|
@@ -1114,6 +1436,14 @@ declare namespace Paths {
|
|
|
1114
1436
|
Components.Schemas.PatchUpdateJourneyRequest;
|
|
1115
1437
|
namespace Responses {
|
|
1116
1438
|
export type $200 = Components.Schemas.JourneyCreationRequestV2;
|
|
1439
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1440
|
+
export interface $404 {
|
|
1441
|
+
/**
|
|
1442
|
+
* example:
|
|
1443
|
+
* journey not found
|
|
1444
|
+
*/
|
|
1445
|
+
message?: string;
|
|
1446
|
+
}
|
|
1117
1447
|
}
|
|
1118
1448
|
}
|
|
1119
1449
|
namespace RemoveJourney {
|
|
@@ -1131,6 +1461,15 @@ declare namespace Paths {
|
|
|
1131
1461
|
*/
|
|
1132
1462
|
Parameters.Id /* uuid */;
|
|
1133
1463
|
}
|
|
1464
|
+
namespace Responses {
|
|
1465
|
+
export interface $404 {
|
|
1466
|
+
/**
|
|
1467
|
+
* example:
|
|
1468
|
+
* journey not found
|
|
1469
|
+
*/
|
|
1470
|
+
message?: string;
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1134
1473
|
}
|
|
1135
1474
|
namespace RemoveJourneyV2 {
|
|
1136
1475
|
namespace Parameters {
|
|
@@ -1159,6 +1498,7 @@ declare namespace Paths {
|
|
|
1159
1498
|
namespace Responses {
|
|
1160
1499
|
export interface $204 {
|
|
1161
1500
|
}
|
|
1501
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1162
1502
|
export interface $409 {
|
|
1163
1503
|
}
|
|
1164
1504
|
}
|
|
@@ -1167,6 +1507,14 @@ declare namespace Paths {
|
|
|
1167
1507
|
export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
|
|
1168
1508
|
namespace Responses {
|
|
1169
1509
|
export type $200 = Components.Schemas.JourneyCreationRequestV2;
|
|
1510
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1511
|
+
export interface $404 {
|
|
1512
|
+
/**
|
|
1513
|
+
* example:
|
|
1514
|
+
* journey not found
|
|
1515
|
+
*/
|
|
1516
|
+
message?: string;
|
|
1517
|
+
}
|
|
1170
1518
|
}
|
|
1171
1519
|
}
|
|
1172
1520
|
}
|
|
@@ -1555,6 +1903,8 @@ export type JourneyCreationRequestV2 = Components.Schemas.JourneyCreationRequest
|
|
|
1555
1903
|
export type JourneyFeatureFlags = Components.Schemas.JourneyFeatureFlags;
|
|
1556
1904
|
export type JourneyProductsResponse = Components.Schemas.JourneyProductsResponse;
|
|
1557
1905
|
export type JourneyResponse = Components.Schemas.JourneyResponse;
|
|
1906
|
+
export type JourneyValidationError = Components.Schemas.JourneyValidationError;
|
|
1907
|
+
export type JourneyValidationResponse = Components.Schemas.JourneyValidationResponse;
|
|
1558
1908
|
export type PatchUpdateJourneyRequest = Components.Schemas.PatchUpdateJourneyRequest;
|
|
1559
1909
|
export type RuleRef = Components.Schemas.RuleRef;
|
|
1560
1910
|
export type S3Reference = Components.Schemas.S3Reference;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/journey-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "API Client for epilot Journey API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"copy-webpack-plugin": "^7.0.0",
|
|
42
42
|
"json-loader": "^0.5.7",
|
|
43
43
|
"openapi-client-axios-typegen": "^7.5.1",
|
|
44
|
+
"openapicmd": "^2.7.0",
|
|
44
45
|
"ts-loader": "^8.3.0",
|
|
45
46
|
"typescript": "^5.4.5",
|
|
46
47
|
"vitest": "^1.6.0",
|
package/src/openapi.d.ts
CHANGED
|
@@ -132,6 +132,12 @@ declare namespace Components {
|
|
|
132
132
|
* true
|
|
133
133
|
*/
|
|
134
134
|
canary?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* When set to false, third-party cookies and resources should be completely disabled to comply with GDPR regulations.
|
|
137
|
+
* example:
|
|
138
|
+
* true
|
|
139
|
+
*/
|
|
140
|
+
thirdPartyCookies?: boolean;
|
|
135
141
|
}
|
|
136
142
|
export interface Journey {
|
|
137
143
|
[name: string]: any;
|
|
@@ -173,6 +179,70 @@ declare namespace Components {
|
|
|
173
179
|
conditions: string[];
|
|
174
180
|
actions: string[];
|
|
175
181
|
}[];
|
|
182
|
+
logicsV4?: {
|
|
183
|
+
[name: string]: {
|
|
184
|
+
/**
|
|
185
|
+
* Unique identifier for logic. Use uuidv7
|
|
186
|
+
*/
|
|
187
|
+
id?: string; // uuid
|
|
188
|
+
/**
|
|
189
|
+
* If true, logic can't be manipulated by the configuring user
|
|
190
|
+
*/
|
|
191
|
+
protected?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Indicates which action to take in case logic evaluates to true
|
|
194
|
+
*/
|
|
195
|
+
action?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Indicates when the logic should be evaluated
|
|
198
|
+
*/
|
|
199
|
+
triggeredOn?: string;
|
|
200
|
+
conditions?: {
|
|
201
|
+
/**
|
|
202
|
+
* Operator to be applied between the fact value and the value
|
|
203
|
+
*/
|
|
204
|
+
operator?: string;
|
|
205
|
+
/**
|
|
206
|
+
* If operator is a custom function, this needs to be provided
|
|
207
|
+
*/
|
|
208
|
+
functionName?: string;
|
|
209
|
+
fact?: {
|
|
210
|
+
/**
|
|
211
|
+
* Unique identifier for a fact
|
|
212
|
+
*/
|
|
213
|
+
id?: string; // uuid
|
|
214
|
+
/**
|
|
215
|
+
* Indicates reference type (block or context parameter)
|
|
216
|
+
*/
|
|
217
|
+
referenceType?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Id of the reference
|
|
220
|
+
*/
|
|
221
|
+
referenceId?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Path to a property. Used if only part of the value is needed
|
|
224
|
+
*/
|
|
225
|
+
path?: string;
|
|
226
|
+
/**
|
|
227
|
+
* If path is a reference, indicates the intention of it
|
|
228
|
+
*/
|
|
229
|
+
meaning?: string;
|
|
230
|
+
};
|
|
231
|
+
value?: string | number | boolean | {
|
|
232
|
+
[key: string]: any;
|
|
233
|
+
} | any[];
|
|
234
|
+
args?: {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
};
|
|
237
|
+
}[][];
|
|
238
|
+
/**
|
|
239
|
+
* Logic specific settings. Will vary by type of logic
|
|
240
|
+
*/
|
|
241
|
+
settings?: {
|
|
242
|
+
[key: string]: any;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
176
246
|
contextSchema?: {
|
|
177
247
|
/**
|
|
178
248
|
* Unique identifier for the context schema item
|
|
@@ -236,6 +306,22 @@ declare namespace Components {
|
|
|
236
306
|
*/
|
|
237
307
|
addressSuggestionsFileUrl?: string | null;
|
|
238
308
|
addressSuggestionsFileId?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* Country code for address format (e.g. DE, AT, CH, LU)
|
|
311
|
+
*/
|
|
312
|
+
addressSuggestionsCountryCode?: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Whether address auto-complete is enabled
|
|
315
|
+
*/
|
|
316
|
+
addressSuggestionsEnableAutoComplete?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)
|
|
319
|
+
*/
|
|
320
|
+
addressSuggestionsSource?: string[];
|
|
321
|
+
/**
|
|
322
|
+
* Whether free text input is allowed when auto-complete is on
|
|
323
|
+
*/
|
|
324
|
+
addressSuggestionsEnableFreeText?: boolean;
|
|
239
325
|
/**
|
|
240
326
|
* This property is deprecated and will be removed in a future version
|
|
241
327
|
*/
|
|
@@ -276,6 +362,7 @@ declare namespace Components {
|
|
|
276
362
|
*/
|
|
277
363
|
ValidationRuleRef;
|
|
278
364
|
createdBy?: string;
|
|
365
|
+
updatedBy?: string | null;
|
|
279
366
|
/**
|
|
280
367
|
* If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
|
|
281
368
|
*/
|
|
@@ -336,6 +423,70 @@ declare namespace Components {
|
|
|
336
423
|
conditions: string[];
|
|
337
424
|
actions: string[];
|
|
338
425
|
}[];
|
|
426
|
+
logicsV4?: {
|
|
427
|
+
[name: string]: {
|
|
428
|
+
/**
|
|
429
|
+
* Unique identifier for logic. Use uuidv7
|
|
430
|
+
*/
|
|
431
|
+
id?: string; // uuid
|
|
432
|
+
/**
|
|
433
|
+
* If true, logic can't be manipulated by the configuring user
|
|
434
|
+
*/
|
|
435
|
+
protected?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* Indicates which action to take in case logic evaluates to true
|
|
438
|
+
*/
|
|
439
|
+
action?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Indicates when the logic should be evaluated
|
|
442
|
+
*/
|
|
443
|
+
triggeredOn?: string;
|
|
444
|
+
conditions?: {
|
|
445
|
+
/**
|
|
446
|
+
* Operator to be applied between the fact value and the value
|
|
447
|
+
*/
|
|
448
|
+
operator?: string;
|
|
449
|
+
/**
|
|
450
|
+
* If operator is a custom function, this needs to be provided
|
|
451
|
+
*/
|
|
452
|
+
functionName?: string;
|
|
453
|
+
fact?: {
|
|
454
|
+
/**
|
|
455
|
+
* Unique identifier for a fact
|
|
456
|
+
*/
|
|
457
|
+
id?: string; // uuid
|
|
458
|
+
/**
|
|
459
|
+
* Indicates reference type (block or context parameter)
|
|
460
|
+
*/
|
|
461
|
+
referenceType?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Id of the reference
|
|
464
|
+
*/
|
|
465
|
+
referenceId?: string;
|
|
466
|
+
/**
|
|
467
|
+
* Path to a property. Used if only part of the value is needed
|
|
468
|
+
*/
|
|
469
|
+
path?: string;
|
|
470
|
+
/**
|
|
471
|
+
* If path is a reference, indicates the intention of it
|
|
472
|
+
*/
|
|
473
|
+
meaning?: string;
|
|
474
|
+
};
|
|
475
|
+
value?: string | number | boolean | {
|
|
476
|
+
[key: string]: any;
|
|
477
|
+
} | any[];
|
|
478
|
+
args?: {
|
|
479
|
+
[key: string]: any;
|
|
480
|
+
};
|
|
481
|
+
}[][];
|
|
482
|
+
/**
|
|
483
|
+
* Logic specific settings. Will vary by type of logic
|
|
484
|
+
*/
|
|
485
|
+
settings?: {
|
|
486
|
+
[key: string]: any;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
};
|
|
339
490
|
contextSchema?: {
|
|
340
491
|
/**
|
|
341
492
|
* Unique identifier for the context schema item
|
|
@@ -399,6 +550,22 @@ declare namespace Components {
|
|
|
399
550
|
*/
|
|
400
551
|
addressSuggestionsFileUrl?: string | null;
|
|
401
552
|
addressSuggestionsFileId?: string | null;
|
|
553
|
+
/**
|
|
554
|
+
* Country code for address format (e.g. DE, AT, CH, LU)
|
|
555
|
+
*/
|
|
556
|
+
addressSuggestionsCountryCode?: string | null;
|
|
557
|
+
/**
|
|
558
|
+
* Whether address auto-complete is enabled
|
|
559
|
+
*/
|
|
560
|
+
addressSuggestionsEnableAutoComplete?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)
|
|
563
|
+
*/
|
|
564
|
+
addressSuggestionsSource?: string[];
|
|
565
|
+
/**
|
|
566
|
+
* Whether free text input is allowed when auto-complete is on
|
|
567
|
+
*/
|
|
568
|
+
addressSuggestionsEnableFreeText?: boolean;
|
|
402
569
|
/**
|
|
403
570
|
* This property is deprecated and will be removed in a future version
|
|
404
571
|
*/
|
|
@@ -439,6 +606,7 @@ declare namespace Components {
|
|
|
439
606
|
*/
|
|
440
607
|
ValidationRuleRef;
|
|
441
608
|
createdBy?: string;
|
|
609
|
+
updatedBy?: string | null;
|
|
442
610
|
/**
|
|
443
611
|
* If passed with value of null, the API won't modify the lastModifiedAt field on updating the journey
|
|
444
612
|
*/
|
|
@@ -482,6 +650,70 @@ declare namespace Components {
|
|
|
482
650
|
conditions: string[];
|
|
483
651
|
actions: string[];
|
|
484
652
|
}[];
|
|
653
|
+
logicsV4?: {
|
|
654
|
+
[name: string]: {
|
|
655
|
+
/**
|
|
656
|
+
* Unique identifier for logic. Use uuidv7
|
|
657
|
+
*/
|
|
658
|
+
id?: string; // uuid
|
|
659
|
+
/**
|
|
660
|
+
* If true, logic can't be manipulated by the configuring user
|
|
661
|
+
*/
|
|
662
|
+
protected?: boolean;
|
|
663
|
+
/**
|
|
664
|
+
* Indicates which action to take in case logic evaluates to true
|
|
665
|
+
*/
|
|
666
|
+
action?: string;
|
|
667
|
+
/**
|
|
668
|
+
* Indicates when the logic should be evaluated
|
|
669
|
+
*/
|
|
670
|
+
triggeredOn?: string;
|
|
671
|
+
conditions?: {
|
|
672
|
+
/**
|
|
673
|
+
* Operator to be applied between the fact value and the value
|
|
674
|
+
*/
|
|
675
|
+
operator?: string;
|
|
676
|
+
/**
|
|
677
|
+
* If operator is a custom function, this needs to be provided
|
|
678
|
+
*/
|
|
679
|
+
functionName?: string;
|
|
680
|
+
fact?: {
|
|
681
|
+
/**
|
|
682
|
+
* Unique identifier for a fact
|
|
683
|
+
*/
|
|
684
|
+
id?: string; // uuid
|
|
685
|
+
/**
|
|
686
|
+
* Indicates reference type (block or context parameter)
|
|
687
|
+
*/
|
|
688
|
+
referenceType?: string;
|
|
689
|
+
/**
|
|
690
|
+
* Id of the reference
|
|
691
|
+
*/
|
|
692
|
+
referenceId?: string;
|
|
693
|
+
/**
|
|
694
|
+
* Path to a property. Used if only part of the value is needed
|
|
695
|
+
*/
|
|
696
|
+
path?: string;
|
|
697
|
+
/**
|
|
698
|
+
* If path is a reference, indicates the intention of it
|
|
699
|
+
*/
|
|
700
|
+
meaning?: string;
|
|
701
|
+
};
|
|
702
|
+
value?: string | number | boolean | {
|
|
703
|
+
[key: string]: any;
|
|
704
|
+
} | any[];
|
|
705
|
+
args?: {
|
|
706
|
+
[key: string]: any;
|
|
707
|
+
};
|
|
708
|
+
}[][];
|
|
709
|
+
/**
|
|
710
|
+
* Logic specific settings. Will vary by type of logic
|
|
711
|
+
*/
|
|
712
|
+
settings?: {
|
|
713
|
+
[key: string]: any;
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
};
|
|
485
717
|
contextSchema?: {
|
|
486
718
|
/**
|
|
487
719
|
* Unique identifier for the context schema item
|
|
@@ -538,6 +770,22 @@ declare namespace Components {
|
|
|
538
770
|
*/
|
|
539
771
|
addressSuggestionsFileUrl?: string | null;
|
|
540
772
|
addressSuggestionsFileId?: string | null;
|
|
773
|
+
/**
|
|
774
|
+
* Country code for address format (e.g. DE, AT, CH, LU)
|
|
775
|
+
*/
|
|
776
|
+
addressSuggestionsCountryCode?: string | null;
|
|
777
|
+
/**
|
|
778
|
+
* Whether address auto-complete is enabled
|
|
779
|
+
*/
|
|
780
|
+
addressSuggestionsEnableAutoComplete?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Sources for address auto-complete (e.g. deutschePostService, customAddressesFile)
|
|
783
|
+
*/
|
|
784
|
+
addressSuggestionsSource?: string[];
|
|
785
|
+
/**
|
|
786
|
+
* Whether free text input is allowed when auto-complete is on
|
|
787
|
+
*/
|
|
788
|
+
addressSuggestionsEnableFreeText?: boolean;
|
|
541
789
|
/**
|
|
542
790
|
* This property is deprecated and will be removed in a future version
|
|
543
791
|
*/
|
|
@@ -596,6 +844,70 @@ declare namespace Components {
|
|
|
596
844
|
export interface JourneyResponse {
|
|
597
845
|
createdJourney?: Journey;
|
|
598
846
|
}
|
|
847
|
+
export interface JourneyValidationError {
|
|
848
|
+
/**
|
|
849
|
+
* Error type identifier
|
|
850
|
+
* example:
|
|
851
|
+
* ValidationError
|
|
852
|
+
*/
|
|
853
|
+
error: string;
|
|
854
|
+
/**
|
|
855
|
+
* High-level error message
|
|
856
|
+
* example:
|
|
857
|
+
* Journey configuration validation failed
|
|
858
|
+
*/
|
|
859
|
+
message: string;
|
|
860
|
+
/**
|
|
861
|
+
* Detailed validation errors for each pattern that failed
|
|
862
|
+
*/
|
|
863
|
+
details: {
|
|
864
|
+
/**
|
|
865
|
+
* Validation pattern that failed
|
|
866
|
+
*/
|
|
867
|
+
pattern?: string;
|
|
868
|
+
severity?: "critical" | "high" | "medium" | "low";
|
|
869
|
+
/**
|
|
870
|
+
* Detailed error message
|
|
871
|
+
*/
|
|
872
|
+
message?: string;
|
|
873
|
+
/**
|
|
874
|
+
* Number of issues found
|
|
875
|
+
*/
|
|
876
|
+
count?: number;
|
|
877
|
+
}[];
|
|
878
|
+
}
|
|
879
|
+
export interface JourneyValidationResponse {
|
|
880
|
+
/**
|
|
881
|
+
* Whether the journey configuration is valid
|
|
882
|
+
*/
|
|
883
|
+
valid: boolean;
|
|
884
|
+
/**
|
|
885
|
+
* List of detected validation errors
|
|
886
|
+
*/
|
|
887
|
+
errors: {
|
|
888
|
+
/**
|
|
889
|
+
* Pattern type (e.g. PatternA_DotsInStepId)
|
|
890
|
+
*/
|
|
891
|
+
type?: string;
|
|
892
|
+
severity?: "critical" | "high" | "medium" | "low";
|
|
893
|
+
message?: string;
|
|
894
|
+
affectedStepIds?: string[];
|
|
895
|
+
count?: number;
|
|
896
|
+
autoFix?: {
|
|
897
|
+
feasible?: boolean;
|
|
898
|
+
confidence?: "high" | "medium" | "low";
|
|
899
|
+
reason?: string;
|
|
900
|
+
details?: string;
|
|
901
|
+
};
|
|
902
|
+
}[];
|
|
903
|
+
/**
|
|
904
|
+
* List of warnings (non-critical issues)
|
|
905
|
+
*/
|
|
906
|
+
warnings?: {
|
|
907
|
+
type?: string;
|
|
908
|
+
message?: string;
|
|
909
|
+
}[];
|
|
910
|
+
}
|
|
599
911
|
/**
|
|
600
912
|
* Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
|
|
601
913
|
*
|
|
@@ -832,7 +1144,7 @@ declare namespace Components {
|
|
|
832
1144
|
/**
|
|
833
1145
|
* The file entity id, used when persisting a new template version with updated settings
|
|
834
1146
|
* example:
|
|
835
|
-
* 1a2b3c4d-5e6f-
|
|
1147
|
+
* 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
|
|
836
1148
|
*/
|
|
837
1149
|
file_entity_id?: string; // uuid
|
|
838
1150
|
}
|
|
@@ -884,6 +1196,7 @@ declare namespace Paths {
|
|
|
884
1196
|
export type RequestBody = Components.Schemas.JourneyCreationRequest;
|
|
885
1197
|
namespace Responses {
|
|
886
1198
|
export type $201 = Components.Schemas.Journey;
|
|
1199
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
887
1200
|
}
|
|
888
1201
|
}
|
|
889
1202
|
namespace CreateJourneyV2 {
|
|
@@ -904,6 +1217,7 @@ declare namespace Paths {
|
|
|
904
1217
|
export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
|
|
905
1218
|
namespace Responses {
|
|
906
1219
|
export type $201 = Components.Schemas.JourneyCreationRequestV2;
|
|
1220
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
907
1221
|
}
|
|
908
1222
|
}
|
|
909
1223
|
namespace GenerateDocument {
|
|
@@ -944,7 +1258,7 @@ declare namespace Paths {
|
|
|
944
1258
|
export interface $404 {
|
|
945
1259
|
/**
|
|
946
1260
|
* example:
|
|
947
|
-
*
|
|
1261
|
+
* File with ID 535ef74a-dd66-4d01-94a9-725016e70d1c not found.
|
|
948
1262
|
*/
|
|
949
1263
|
message?: string;
|
|
950
1264
|
}
|
|
@@ -1104,6 +1418,14 @@ declare namespace Paths {
|
|
|
1104
1418
|
Components.Schemas.PatchUpdateJourneyRequest;
|
|
1105
1419
|
namespace Responses {
|
|
1106
1420
|
export type $200 = Components.Schemas.JourneyResponse;
|
|
1421
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1422
|
+
export interface $404 {
|
|
1423
|
+
/**
|
|
1424
|
+
* example:
|
|
1425
|
+
* journey not found
|
|
1426
|
+
*/
|
|
1427
|
+
message?: string;
|
|
1428
|
+
}
|
|
1107
1429
|
}
|
|
1108
1430
|
}
|
|
1109
1431
|
namespace PatchUpdateJourneyV2 {
|
|
@@ -1114,6 +1436,14 @@ declare namespace Paths {
|
|
|
1114
1436
|
Components.Schemas.PatchUpdateJourneyRequest;
|
|
1115
1437
|
namespace Responses {
|
|
1116
1438
|
export type $200 = Components.Schemas.JourneyCreationRequestV2;
|
|
1439
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1440
|
+
export interface $404 {
|
|
1441
|
+
/**
|
|
1442
|
+
* example:
|
|
1443
|
+
* journey not found
|
|
1444
|
+
*/
|
|
1445
|
+
message?: string;
|
|
1446
|
+
}
|
|
1117
1447
|
}
|
|
1118
1448
|
}
|
|
1119
1449
|
namespace RemoveJourney {
|
|
@@ -1131,6 +1461,15 @@ declare namespace Paths {
|
|
|
1131
1461
|
*/
|
|
1132
1462
|
Parameters.Id /* uuid */;
|
|
1133
1463
|
}
|
|
1464
|
+
namespace Responses {
|
|
1465
|
+
export interface $404 {
|
|
1466
|
+
/**
|
|
1467
|
+
* example:
|
|
1468
|
+
* journey not found
|
|
1469
|
+
*/
|
|
1470
|
+
message?: string;
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1134
1473
|
}
|
|
1135
1474
|
namespace RemoveJourneyV2 {
|
|
1136
1475
|
namespace Parameters {
|
|
@@ -1159,6 +1498,7 @@ declare namespace Paths {
|
|
|
1159
1498
|
namespace Responses {
|
|
1160
1499
|
export interface $204 {
|
|
1161
1500
|
}
|
|
1501
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1162
1502
|
export interface $409 {
|
|
1163
1503
|
}
|
|
1164
1504
|
}
|
|
@@ -1167,6 +1507,14 @@ declare namespace Paths {
|
|
|
1167
1507
|
export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
|
|
1168
1508
|
namespace Responses {
|
|
1169
1509
|
export type $200 = Components.Schemas.JourneyCreationRequestV2;
|
|
1510
|
+
export type $400 = Components.Schemas.JourneyValidationError;
|
|
1511
|
+
export interface $404 {
|
|
1512
|
+
/**
|
|
1513
|
+
* example:
|
|
1514
|
+
* journey not found
|
|
1515
|
+
*/
|
|
1516
|
+
message?: string;
|
|
1517
|
+
}
|
|
1170
1518
|
}
|
|
1171
1519
|
}
|
|
1172
1520
|
}
|
|
@@ -1555,6 +1903,8 @@ export type JourneyCreationRequestV2 = Components.Schemas.JourneyCreationRequest
|
|
|
1555
1903
|
export type JourneyFeatureFlags = Components.Schemas.JourneyFeatureFlags;
|
|
1556
1904
|
export type JourneyProductsResponse = Components.Schemas.JourneyProductsResponse;
|
|
1557
1905
|
export type JourneyResponse = Components.Schemas.JourneyResponse;
|
|
1906
|
+
export type JourneyValidationError = Components.Schemas.JourneyValidationError;
|
|
1907
|
+
export type JourneyValidationResponse = Components.Schemas.JourneyValidationResponse;
|
|
1558
1908
|
export type PatchUpdateJourneyRequest = Components.Schemas.PatchUpdateJourneyRequest;
|
|
1559
1909
|
export type RuleRef = Components.Schemas.RuleRef;
|
|
1560
1910
|
export type S3Reference = Components.Schemas.S3Reference;
|