@epilot/journey-client 0.1.6 → 0.1.8

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.
@@ -1 +1 @@
1
- !function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,r){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(279));t.default=n.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.0","info":{"title":"Journey API","description":"API to configure journeys","version":"1.0.0"},"security":[{"EpilotAuth":[]}],"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"}}],"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","security":[],"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/JourneyResponse"}}}}}},"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","security":[],"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"}},{"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":[],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyResponse"}}}}}},"put":{"operationId":"updateJourney","summary":"updateJourney","description":"Update a Journey","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequest"}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyResponse"}}}}}},"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"}}}}}}}},"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"}},"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":{}},"required":["name","schema","uischema"]}},"design":{"type":"object","properties":{"logoUrl":{"type":"string","nullable":true},"theme":{"type":"object","additionalProperties":{}}},"required":["theme"],"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}},"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"},"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}},"required":["designId"],"additionalProperties":false},"createdBy":{"type":"string"}},"required":["organizationId","name","steps"],"additionalProperties":true},"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"}},"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","Widget"]}}}}}},"Journey":{"allOf":[{"$ref":"#/components/schemas/JourneyCreationRequest"},{"$ref":"#/components/schemas/JourneyAuditInfo"}]},"JourneyAuditInfo":{"type":"object","properties":{"createdAt":{"type":"string"},"lastModifiedAt":{"type":"string"},"version":{"type":"number"},"revisions":{"type":"number"}},"required":["createdAt","lastModifiedAt","version","revisions"]}},"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with epilot OAuth2 bearer token","bearerFormat":"JWT"}}}}')}},t={};return function r(s){if(t[s])return t[s].exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,r),n.exports}(914)})());
1
+ !function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914: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 s=n(r(279));t.default=s.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.0","info":{"title":"Journey API","description":"API to configure journeys","version":"1.0.0"},"security":[{"EpilotAuth":[]}],"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","security":[],"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/JourneyResponse"}}}}}},"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","security":[],"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"}},{"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":[],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyResponse"}}}}}},"put":{"operationId":"updateJourney","summary":"updateJourney","description":"Update a Journey","tags":["Journeys"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyCreationRequest"}}},"description":"Payload"},"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JourneyResponse"}}}}}},"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"}}}}}}},"/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":[],"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}}}},"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/Journey"}}}}}},"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/Journey"}}}}}}},"/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"}},{"name":"source","in":"query","description":"What source ID. Journey or Entity ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Journey"}}}}}},"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":{}}}}}},"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"}},"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":{}},"required":["name","schema","uischema"]}},"design":{"type":"object","properties":{"logoUrl":{"type":"string","nullable":true},"theme":{"type":"object","additionalProperties":{}}},"required":["theme"],"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}},"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"},"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}},"required":["designId"],"additionalProperties":false},"createdBy":{"type":"string"}},"required":["organizationId","name","steps"],"additionalProperties":true},"JourneyCreationRequestV2":{"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":{}},"required":["name","schema","uischema"]}},"design":{"type":"object","properties":{"logoUrl":{"type":"string","nullable":true},"theme":{"type":"object","additionalProperties":{}}},"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}},"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"},"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}},"additionalProperties":false},"createdBy":{"type":"string"}},"required":["name","steps"],"additionalProperties":true},"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"}},"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","Widget"]}}}}}},"Journey":{"allOf":[{"$ref":"#/components/schemas/JourneyCreationRequest"},{"$ref":"#/components/schemas/JourneyAuditInfo"}]},"JourneyAuditInfo":{"type":"object","properties":{"createdAt":{"type":"string"},"lastModifiedAt":{"type":"string"},"version":{"type":"number"},"revisions":{"type":"number"}},"required":["createdAt","lastModifiedAt","version","revisions"]}},"securitySchemes":{"EpilotAuth":{"type":"http","scheme":"bearer","description":"Authorization header with epilot OAuth2 bearer token","bearerFormat":"JWT"}}}}')}},t={};return function r(n){if(t[n])return t[n].exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,r),s.exports}(914)})());
package/dist/openapi.d.ts CHANGED
@@ -153,6 +153,72 @@ declare namespace Components {
153
153
  };
154
154
  createdBy?: string;
155
155
  }
156
+ export interface JourneyCreationRequestV2 {
157
+ [name: string]: any;
158
+ journeyId?: string;
159
+ organizationId?: string;
160
+ brandId?: string;
161
+ name: string;
162
+ steps: {
163
+ showStepName?: boolean | null;
164
+ title?: string | null;
165
+ subTitle?: string | null;
166
+ showStepSubtitle?: boolean | null;
167
+ showStepper?: boolean | null;
168
+ showStepperLabels?: boolean | null;
169
+ hideNextButton?: boolean | null;
170
+ name: string;
171
+ stepId?: string;
172
+ schema: any;
173
+ uischema: any;
174
+ }[];
175
+ design?: {
176
+ logoUrl?: string | null;
177
+ theme?: {
178
+ [name: string]: any;
179
+ };
180
+ };
181
+ rules?: {
182
+ type: "inject" | "injectWithKey";
183
+ sourceType: "journey" | "step" | "block";
184
+ source: string;
185
+ target: string;
186
+ }[];
187
+ logics?: {
188
+ autoGeneratedId?: string;
189
+ conditions: string[];
190
+ actions: string[];
191
+ }[];
192
+ settings?: {
193
+ embedOptions?: {
194
+ mode?: "full-screen" | "inline";
195
+ lang?: "de" | "en" | "fr";
196
+ width?: string;
197
+ topBar?: boolean;
198
+ scrollToTop?: boolean;
199
+ button?: {
200
+ text?: string | null;
201
+ align?: "left" | "center" | "right";
202
+ };
203
+ };
204
+ safeModeAutomation?: boolean;
205
+ designId?: string;
206
+ templateId?: string;
207
+ entityId?: string | null;
208
+ mappingsAutomationId?: string;
209
+ targetedCustomer?: string;
210
+ description?: string | null;
211
+ organizationSettings?: {
212
+ [name: string]: boolean;
213
+ } | null;
214
+ publicToken?: string | null;
215
+ runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
216
+ filePurposes?: string[];
217
+ entityTags?: string[];
218
+ addressSuggestionsFileUrl?: string | null;
219
+ };
220
+ createdBy?: string;
221
+ }
156
222
  export type JourneyProductsResponse = {
157
223
  type?: string;
158
224
  _schema?: string;
@@ -313,6 +379,12 @@ declare namespace Paths {
313
379
  export type $201 = Components.Schemas.JourneyResponse;
314
380
  }
315
381
  }
382
+ namespace CreateJourneyV2 {
383
+ export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
384
+ namespace Responses {
385
+ export type $201 = Components.Schemas.Journey;
386
+ }
387
+ }
316
388
  namespace GetJourney {
317
389
  namespace Parameters {
318
390
  /**
@@ -371,8 +443,36 @@ declare namespace Paths {
371
443
  export type $200 = Components.Schemas.JourneyProductsResponse;
372
444
  }
373
445
  }
446
+ namespace GetJourneyV2 {
447
+ namespace Parameters {
448
+ /**
449
+ * example:
450
+ * 509cdffe-424f-457a-95c2-9708c304ce77
451
+ */
452
+ export type Id = string; // uuid
453
+ export type Source = string;
454
+ }
455
+ export interface PathParameters {
456
+ id: /**
457
+ * example:
458
+ * 509cdffe-424f-457a-95c2-9708c304ce77
459
+ */
460
+ Parameters.Id /* uuid */;
461
+ }
462
+ export interface QueryParameters {
463
+ source?: Parameters.Source;
464
+ }
465
+ namespace Responses {
466
+ export type $200 = Components.Schemas.Journey;
467
+ }
468
+ }
374
469
  namespace GetJourneysByOrgId {
375
470
  namespace Parameters {
471
+ /**
472
+ * example:
473
+ * true
474
+ */
475
+ export type Hydrate = string;
376
476
  /**
377
477
  * example:
378
478
  * 123
@@ -386,6 +486,13 @@ declare namespace Paths {
386
486
  */
387
487
  Parameters.Id;
388
488
  }
489
+ export interface QueryParameters {
490
+ hydrate?: /**
491
+ * example:
492
+ * true
493
+ */
494
+ Parameters.Hydrate;
495
+ }
389
496
  namespace Responses {
390
497
  export type $200 = Components.Schemas.GetJourneysResponse;
391
498
  }
@@ -400,6 +507,16 @@ declare namespace Paths {
400
507
  export type $200 = Components.Schemas.JourneyResponse;
401
508
  }
402
509
  }
510
+ namespace PatchUpdateJourneyV2 {
511
+ export type RequestBody = /**
512
+ * Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
513
+ *
514
+ */
515
+ Components.Schemas.PatchUpdateJourneyRequest;
516
+ namespace Responses {
517
+ export type $200 = Components.Schemas.Journey;
518
+ }
519
+ }
403
520
  namespace RemoveJourney {
404
521
  namespace Parameters {
405
522
  /**
@@ -416,6 +533,22 @@ declare namespace Paths {
416
533
  Parameters.Id /* uuid */;
417
534
  }
418
535
  }
536
+ namespace RemoveJourneyV2 {
537
+ namespace Parameters {
538
+ /**
539
+ * example:
540
+ * 509cdffe-424f-457a-95c2-9708c304ce77
541
+ */
542
+ export type Id = string; // uuid
543
+ }
544
+ export interface PathParameters {
545
+ id: /**
546
+ * example:
547
+ * 509cdffe-424f-457a-95c2-9708c304ce77
548
+ */
549
+ Parameters.Id /* uuid */;
550
+ }
551
+ }
419
552
  namespace SearchJourneys {
420
553
  export type RequestBody = Components.Schemas.SearchJourneysQueryRequest;
421
554
  namespace Responses {
@@ -428,6 +561,12 @@ declare namespace Paths {
428
561
  export type $200 = Components.Schemas.JourneyResponse;
429
562
  }
430
563
  }
564
+ namespace UpdateJourneyV2 {
565
+ export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
566
+ namespace Responses {
567
+ export type $200 = Components.Schemas.Journey;
568
+ }
569
+ }
431
570
  }
432
571
 
433
572
  export interface OperationMethods {
@@ -437,7 +576,7 @@ export interface OperationMethods {
437
576
  * Get all journeys by organization id
438
577
  */
439
578
  'getJourneysByOrgId'(
440
- parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters> | null,
579
+ parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters & Paths.GetJourneysByOrgId.QueryParameters> | null,
441
580
  data?: any,
442
581
  config?: AxiosRequestConfig
443
582
  ): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
@@ -511,6 +650,56 @@ export interface OperationMethods {
511
650
  data?: Paths.SearchJourneys.RequestBody,
512
651
  config?: AxiosRequestConfig
513
652
  ): OperationResponse<Paths.SearchJourneys.Responses.$200>
653
+ /**
654
+ * updateJourneyV2 - updateJourneyV2
655
+ *
656
+ * Update a Journey
657
+ */
658
+ 'updateJourneyV2'(
659
+ parameters?: Parameters<UnknownParamsObject> | null,
660
+ data?: Paths.UpdateJourneyV2.RequestBody,
661
+ config?: AxiosRequestConfig
662
+ ): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
663
+ /**
664
+ * createJourneyV2 - createJourneyV2
665
+ *
666
+ * Create a Journey
667
+ */
668
+ 'createJourneyV2'(
669
+ parameters?: Parameters<UnknownParamsObject> | null,
670
+ data?: Paths.CreateJourneyV2.RequestBody,
671
+ config?: AxiosRequestConfig
672
+ ): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
673
+ /**
674
+ * patchUpdateJourneyV2 - patchUpdateJourneyV2
675
+ *
676
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
677
+ */
678
+ 'patchUpdateJourneyV2'(
679
+ parameters?: Parameters<UnknownParamsObject> | null,
680
+ data?: Paths.PatchUpdateJourneyV2.RequestBody,
681
+ config?: AxiosRequestConfig
682
+ ): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
683
+ /**
684
+ * getJourneyV2 - getJourneyV2
685
+ *
686
+ * Get journey by id
687
+ */
688
+ 'getJourneyV2'(
689
+ parameters?: Parameters<Paths.GetJourneyV2.PathParameters & Paths.GetJourneyV2.QueryParameters> | null,
690
+ data?: any,
691
+ config?: AxiosRequestConfig
692
+ ): OperationResponse<Paths.GetJourneyV2.Responses.$200>
693
+ /**
694
+ * removeJourneyV2 - removeJourneyV2
695
+ *
696
+ * Remove journey by id
697
+ */
698
+ 'removeJourneyV2'(
699
+ parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
700
+ data?: any,
701
+ config?: AxiosRequestConfig
702
+ ): OperationResponse<any>
514
703
  }
515
704
 
516
705
  export interface PathsDictionary {
@@ -521,7 +710,7 @@ export interface PathsDictionary {
521
710
  * Get all journeys by organization id
522
711
  */
523
712
  'get'(
524
- parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters> | null,
713
+ parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters & Paths.GetJourneysByOrgId.QueryParameters> | null,
525
714
  data?: any,
526
715
  config?: AxiosRequestConfig
527
716
  ): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
@@ -604,6 +793,60 @@ export interface PathsDictionary {
604
793
  config?: AxiosRequestConfig
605
794
  ): OperationResponse<Paths.SearchJourneys.Responses.$200>
606
795
  }
796
+ ['/v2/journey/configuration']: {
797
+ /**
798
+ * createJourneyV2 - createJourneyV2
799
+ *
800
+ * Create a Journey
801
+ */
802
+ 'post'(
803
+ parameters?: Parameters<UnknownParamsObject> | null,
804
+ data?: Paths.CreateJourneyV2.RequestBody,
805
+ config?: AxiosRequestConfig
806
+ ): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
807
+ /**
808
+ * updateJourneyV2 - updateJourneyV2
809
+ *
810
+ * Update a Journey
811
+ */
812
+ 'put'(
813
+ parameters?: Parameters<UnknownParamsObject> | null,
814
+ data?: Paths.UpdateJourneyV2.RequestBody,
815
+ config?: AxiosRequestConfig
816
+ ): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
817
+ /**
818
+ * patchUpdateJourneyV2 - patchUpdateJourneyV2
819
+ *
820
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
821
+ */
822
+ 'patch'(
823
+ parameters?: Parameters<UnknownParamsObject> | null,
824
+ data?: Paths.PatchUpdateJourneyV2.RequestBody,
825
+ config?: AxiosRequestConfig
826
+ ): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
827
+ }
828
+ ['/v2/journey/configuration/{id}']: {
829
+ /**
830
+ * getJourneyV2 - getJourneyV2
831
+ *
832
+ * Get journey by id
833
+ */
834
+ 'get'(
835
+ parameters?: Parameters<Paths.GetJourneyV2.PathParameters & Paths.GetJourneyV2.QueryParameters> | null,
836
+ data?: any,
837
+ config?: AxiosRequestConfig
838
+ ): OperationResponse<Paths.GetJourneyV2.Responses.$200>
839
+ /**
840
+ * removeJourneyV2 - removeJourneyV2
841
+ *
842
+ * Remove journey by id
843
+ */
844
+ 'delete'(
845
+ parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
846
+ data?: any,
847
+ config?: AxiosRequestConfig
848
+ ): OperationResponse<any>
849
+ }
607
850
  }
608
851
 
609
852
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/journey-client",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "API Client for epilot Journey API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,25 +34,25 @@
34
34
  "author": "epilot GmbH",
35
35
  "license": "UNLICENSED",
36
36
  "peerDependencies": {
37
- "axios": "^0.25.0"
37
+ "axios": "^1.6.5"
38
38
  },
39
39
  "dependencies": {
40
40
  "@dazn/lambda-powertools-correlation-ids": "1.28.1",
41
41
  "buffer": "^6.0.3",
42
42
  "https-browserify": "^1.0.0",
43
- "openapi-client-axios": "^5.1.2",
43
+ "openapi-client-axios": "^7.5.1",
44
44
  "stream-http": "^3.1.1",
45
45
  "url": "^0.11.0",
46
46
  "util": "^0.12.3"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^26.0.20",
50
- "axios": "^0.25.0",
50
+ "axios": "^1.6.5",
51
51
  "copy-webpack-plugin": "^7.0.0",
52
52
  "jest": "^26.6.3",
53
53
  "json-loader": "^0.5.7",
54
- "openapi-client-axios-typegen": "^5.0.2",
55
- "openapicmd": "^1.8.2",
54
+ "openapi-client-axios-typegen": "^7.5.1",
55
+ "openapicmd": "^2.1.0",
56
56
  "ts-jest": "^26.5.6",
57
57
  "ts-loader": "^8.3.0",
58
58
  "ts-node": "^9.1.1",
@@ -60,4 +60,4 @@
60
60
  "webpack": "^5.18.0",
61
61
  "webpack-cli": "^4.4.0"
62
62
  }
63
- }
63
+ }
package/src/openapi.d.ts CHANGED
@@ -153,6 +153,72 @@ declare namespace Components {
153
153
  };
154
154
  createdBy?: string;
155
155
  }
156
+ export interface JourneyCreationRequestV2 {
157
+ [name: string]: any;
158
+ journeyId?: string;
159
+ organizationId?: string;
160
+ brandId?: string;
161
+ name: string;
162
+ steps: {
163
+ showStepName?: boolean | null;
164
+ title?: string | null;
165
+ subTitle?: string | null;
166
+ showStepSubtitle?: boolean | null;
167
+ showStepper?: boolean | null;
168
+ showStepperLabels?: boolean | null;
169
+ hideNextButton?: boolean | null;
170
+ name: string;
171
+ stepId?: string;
172
+ schema: any;
173
+ uischema: any;
174
+ }[];
175
+ design?: {
176
+ logoUrl?: string | null;
177
+ theme?: {
178
+ [name: string]: any;
179
+ };
180
+ };
181
+ rules?: {
182
+ type: "inject" | "injectWithKey";
183
+ sourceType: "journey" | "step" | "block";
184
+ source: string;
185
+ target: string;
186
+ }[];
187
+ logics?: {
188
+ autoGeneratedId?: string;
189
+ conditions: string[];
190
+ actions: string[];
191
+ }[];
192
+ settings?: {
193
+ embedOptions?: {
194
+ mode?: "full-screen" | "inline";
195
+ lang?: "de" | "en" | "fr";
196
+ width?: string;
197
+ topBar?: boolean;
198
+ scrollToTop?: boolean;
199
+ button?: {
200
+ text?: string | null;
201
+ align?: "left" | "center" | "right";
202
+ };
203
+ };
204
+ safeModeAutomation?: boolean;
205
+ designId?: string;
206
+ templateId?: string;
207
+ entityId?: string | null;
208
+ mappingsAutomationId?: string;
209
+ targetedCustomer?: string;
210
+ description?: string | null;
211
+ organizationSettings?: {
212
+ [name: string]: boolean;
213
+ } | null;
214
+ publicToken?: string | null;
215
+ runtimeEntities?: ("ORDER" | "OPPORTUNITY")[];
216
+ filePurposes?: string[];
217
+ entityTags?: string[];
218
+ addressSuggestionsFileUrl?: string | null;
219
+ };
220
+ createdBy?: string;
221
+ }
156
222
  export type JourneyProductsResponse = {
157
223
  type?: string;
158
224
  _schema?: string;
@@ -313,6 +379,12 @@ declare namespace Paths {
313
379
  export type $201 = Components.Schemas.JourneyResponse;
314
380
  }
315
381
  }
382
+ namespace CreateJourneyV2 {
383
+ export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
384
+ namespace Responses {
385
+ export type $201 = Components.Schemas.Journey;
386
+ }
387
+ }
316
388
  namespace GetJourney {
317
389
  namespace Parameters {
318
390
  /**
@@ -371,8 +443,36 @@ declare namespace Paths {
371
443
  export type $200 = Components.Schemas.JourneyProductsResponse;
372
444
  }
373
445
  }
446
+ namespace GetJourneyV2 {
447
+ namespace Parameters {
448
+ /**
449
+ * example:
450
+ * 509cdffe-424f-457a-95c2-9708c304ce77
451
+ */
452
+ export type Id = string; // uuid
453
+ export type Source = string;
454
+ }
455
+ export interface PathParameters {
456
+ id: /**
457
+ * example:
458
+ * 509cdffe-424f-457a-95c2-9708c304ce77
459
+ */
460
+ Parameters.Id /* uuid */;
461
+ }
462
+ export interface QueryParameters {
463
+ source?: Parameters.Source;
464
+ }
465
+ namespace Responses {
466
+ export type $200 = Components.Schemas.Journey;
467
+ }
468
+ }
374
469
  namespace GetJourneysByOrgId {
375
470
  namespace Parameters {
471
+ /**
472
+ * example:
473
+ * true
474
+ */
475
+ export type Hydrate = string;
376
476
  /**
377
477
  * example:
378
478
  * 123
@@ -386,6 +486,13 @@ declare namespace Paths {
386
486
  */
387
487
  Parameters.Id;
388
488
  }
489
+ export interface QueryParameters {
490
+ hydrate?: /**
491
+ * example:
492
+ * true
493
+ */
494
+ Parameters.Hydrate;
495
+ }
389
496
  namespace Responses {
390
497
  export type $200 = Components.Schemas.GetJourneysResponse;
391
498
  }
@@ -400,6 +507,16 @@ declare namespace Paths {
400
507
  export type $200 = Components.Schemas.JourneyResponse;
401
508
  }
402
509
  }
510
+ namespace PatchUpdateJourneyV2 {
511
+ export type RequestBody = /**
512
+ * Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
513
+ *
514
+ */
515
+ Components.Schemas.PatchUpdateJourneyRequest;
516
+ namespace Responses {
517
+ export type $200 = Components.Schemas.Journey;
518
+ }
519
+ }
403
520
  namespace RemoveJourney {
404
521
  namespace Parameters {
405
522
  /**
@@ -416,6 +533,22 @@ declare namespace Paths {
416
533
  Parameters.Id /* uuid */;
417
534
  }
418
535
  }
536
+ namespace RemoveJourneyV2 {
537
+ namespace Parameters {
538
+ /**
539
+ * example:
540
+ * 509cdffe-424f-457a-95c2-9708c304ce77
541
+ */
542
+ export type Id = string; // uuid
543
+ }
544
+ export interface PathParameters {
545
+ id: /**
546
+ * example:
547
+ * 509cdffe-424f-457a-95c2-9708c304ce77
548
+ */
549
+ Parameters.Id /* uuid */;
550
+ }
551
+ }
419
552
  namespace SearchJourneys {
420
553
  export type RequestBody = Components.Schemas.SearchJourneysQueryRequest;
421
554
  namespace Responses {
@@ -428,6 +561,12 @@ declare namespace Paths {
428
561
  export type $200 = Components.Schemas.JourneyResponse;
429
562
  }
430
563
  }
564
+ namespace UpdateJourneyV2 {
565
+ export type RequestBody = Components.Schemas.JourneyCreationRequestV2;
566
+ namespace Responses {
567
+ export type $200 = Components.Schemas.Journey;
568
+ }
569
+ }
431
570
  }
432
571
 
433
572
  export interface OperationMethods {
@@ -437,7 +576,7 @@ export interface OperationMethods {
437
576
  * Get all journeys by organization id
438
577
  */
439
578
  'getJourneysByOrgId'(
440
- parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters> | null,
579
+ parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters & Paths.GetJourneysByOrgId.QueryParameters> | null,
441
580
  data?: any,
442
581
  config?: AxiosRequestConfig
443
582
  ): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
@@ -511,6 +650,56 @@ export interface OperationMethods {
511
650
  data?: Paths.SearchJourneys.RequestBody,
512
651
  config?: AxiosRequestConfig
513
652
  ): OperationResponse<Paths.SearchJourneys.Responses.$200>
653
+ /**
654
+ * updateJourneyV2 - updateJourneyV2
655
+ *
656
+ * Update a Journey
657
+ */
658
+ 'updateJourneyV2'(
659
+ parameters?: Parameters<UnknownParamsObject> | null,
660
+ data?: Paths.UpdateJourneyV2.RequestBody,
661
+ config?: AxiosRequestConfig
662
+ ): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
663
+ /**
664
+ * createJourneyV2 - createJourneyV2
665
+ *
666
+ * Create a Journey
667
+ */
668
+ 'createJourneyV2'(
669
+ parameters?: Parameters<UnknownParamsObject> | null,
670
+ data?: Paths.CreateJourneyV2.RequestBody,
671
+ config?: AxiosRequestConfig
672
+ ): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
673
+ /**
674
+ * patchUpdateJourneyV2 - patchUpdateJourneyV2
675
+ *
676
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
677
+ */
678
+ 'patchUpdateJourneyV2'(
679
+ parameters?: Parameters<UnknownParamsObject> | null,
680
+ data?: Paths.PatchUpdateJourneyV2.RequestBody,
681
+ config?: AxiosRequestConfig
682
+ ): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
683
+ /**
684
+ * getJourneyV2 - getJourneyV2
685
+ *
686
+ * Get journey by id
687
+ */
688
+ 'getJourneyV2'(
689
+ parameters?: Parameters<Paths.GetJourneyV2.PathParameters & Paths.GetJourneyV2.QueryParameters> | null,
690
+ data?: any,
691
+ config?: AxiosRequestConfig
692
+ ): OperationResponse<Paths.GetJourneyV2.Responses.$200>
693
+ /**
694
+ * removeJourneyV2 - removeJourneyV2
695
+ *
696
+ * Remove journey by id
697
+ */
698
+ 'removeJourneyV2'(
699
+ parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
700
+ data?: any,
701
+ config?: AxiosRequestConfig
702
+ ): OperationResponse<any>
514
703
  }
515
704
 
516
705
  export interface PathsDictionary {
@@ -521,7 +710,7 @@ export interface PathsDictionary {
521
710
  * Get all journeys by organization id
522
711
  */
523
712
  'get'(
524
- parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters> | null,
713
+ parameters?: Parameters<Paths.GetJourneysByOrgId.PathParameters & Paths.GetJourneysByOrgId.QueryParameters> | null,
525
714
  data?: any,
526
715
  config?: AxiosRequestConfig
527
716
  ): OperationResponse<Paths.GetJourneysByOrgId.Responses.$200>
@@ -604,6 +793,60 @@ export interface PathsDictionary {
604
793
  config?: AxiosRequestConfig
605
794
  ): OperationResponse<Paths.SearchJourneys.Responses.$200>
606
795
  }
796
+ ['/v2/journey/configuration']: {
797
+ /**
798
+ * createJourneyV2 - createJourneyV2
799
+ *
800
+ * Create a Journey
801
+ */
802
+ 'post'(
803
+ parameters?: Parameters<UnknownParamsObject> | null,
804
+ data?: Paths.CreateJourneyV2.RequestBody,
805
+ config?: AxiosRequestConfig
806
+ ): OperationResponse<Paths.CreateJourneyV2.Responses.$201>
807
+ /**
808
+ * updateJourneyV2 - updateJourneyV2
809
+ *
810
+ * Update a Journey
811
+ */
812
+ 'put'(
813
+ parameters?: Parameters<UnknownParamsObject> | null,
814
+ data?: Paths.UpdateJourneyV2.RequestBody,
815
+ config?: AxiosRequestConfig
816
+ ): OperationResponse<Paths.UpdateJourneyV2.Responses.$200>
817
+ /**
818
+ * patchUpdateJourneyV2 - patchUpdateJourneyV2
819
+ *
820
+ * Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
821
+ */
822
+ 'patch'(
823
+ parameters?: Parameters<UnknownParamsObject> | null,
824
+ data?: Paths.PatchUpdateJourneyV2.RequestBody,
825
+ config?: AxiosRequestConfig
826
+ ): OperationResponse<Paths.PatchUpdateJourneyV2.Responses.$200>
827
+ }
828
+ ['/v2/journey/configuration/{id}']: {
829
+ /**
830
+ * getJourneyV2 - getJourneyV2
831
+ *
832
+ * Get journey by id
833
+ */
834
+ 'get'(
835
+ parameters?: Parameters<Paths.GetJourneyV2.PathParameters & Paths.GetJourneyV2.QueryParameters> | null,
836
+ data?: any,
837
+ config?: AxiosRequestConfig
838
+ ): OperationResponse<Paths.GetJourneyV2.Responses.$200>
839
+ /**
840
+ * removeJourneyV2 - removeJourneyV2
841
+ *
842
+ * Remove journey by id
843
+ */
844
+ 'delete'(
845
+ parameters?: Parameters<Paths.RemoveJourneyV2.PathParameters> | null,
846
+ data?: any,
847
+ config?: AxiosRequestConfig
848
+ ): OperationResponse<any>
849
+ }
607
850
  }
608
851
 
609
852
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>