@epilot/journey-client 0.6.0-alpha.0 → 0.6.0-alpha.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 +42 -0
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={223(e,r,n){var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=t(n(466));r.default=o.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.0","info":{"title":"","version":""},"paths":{"/v1/journey/organization/{id}":{"get":{"operationId":"getJourneysByOrgId","parameters":[{"name":"id","in":"path","required":true},{"name":"hydrate","in":"query","required":false}],"responses":{}}},"/v1/journey/configuration/{id}":{"get":{"operationId":"getJourney","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query","required":false},{"name":"source","in":"query","required":false},{"name":"orgId","in":"query","required":false}],"responses":{}},"delete":{"operationId":"removeJourney","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/configuration/{id}/environment":{"get":{"operationId":"getJourneyEnvironment","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/products/{id}":{"get":{"operationId":"getJourneyProducts","parameters":[{"name":"id","in":"path","required":true},{"name":"source","in":"query","required":false},{"name":"postal_code","in":"query","required":false},{"name":"city","in":"query","required":false},{"name":"street","in":"query","required":false},{"name":"street_number","in":"query","required":false}],"responses":{}}},"/v1/journey/configuration":{"post":{"operationId":"createJourney","requestBody":{"content":{"application/json":{}}},"parameters":[{"name":"skipAutomation","in":"query","required":false}],"responses":{}},"put":{"operationId":"updateJourney","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}},"patch":{"operationId":"patchUpdateJourney","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}}},"/v1/journey/configuration/search":{"post":{"operationId":"searchJourneys","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}}},"/v1/journey/document:generate":{"post":{"operationId":"generateDocument","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/journey/configuration":{"post":{"operationId":"createJourneyV2","requestBody":{"content":{"application/json":{}}},"parameters":[{"name":"skipAutomation","in":"query","required":false}],"responses":{}},"put":{"operationId":"updateJourneyV2","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}},"patch":{"operationId":"patchUpdateJourneyV2","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}}},"/v2/journey/configuration/{id}":{"get":{"operationId":"getJourneyV2","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query","required":false}],"responses":{}},"delete":{"operationId":"removeJourneyV2","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/{id}/settings":{"get":{"operationId":"getSettingsForJourney","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/button-options":{"get":{"operationId":"getButtonOptions","parameters":[{"in":"query","name":"fileId","required":true}],"responses":{}}}},"components":{},"servers":[{"url":"https://journey-config.sls.epilot.io"}]}')}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t].call(a.exports,a,a.exports,n),a.exports}(223),t=exports;for(var o in n)t[o]=n[o];n.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={223(e,r,n){var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=t(n(466));r.default=o.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.0","info":{"title":"","version":""},"paths":{"/v1/journey/organization/{id}":{"get":{"operationId":"getJourneysByOrgId","parameters":[{"name":"id","in":"path","required":true},{"name":"hydrate","in":"query","required":false}],"responses":{}}},"/v1/journey/configuration/{id}":{"get":{"operationId":"getJourney","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query","required":false},{"name":"source","in":"query","required":false},{"name":"orgId","in":"query","required":false}],"responses":{}},"delete":{"operationId":"removeJourney","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/configuration/{id}/environment":{"get":{"operationId":"getJourneyEnvironment","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/environment-variables":{"get":{"operationId":"getJourneyEnvironmentVariables","responses":{}}},"/v1/journey/products/{id}":{"get":{"operationId":"getJourneyProducts","parameters":[{"name":"id","in":"path","required":true},{"name":"source","in":"query","required":false},{"name":"postal_code","in":"query","required":false},{"name":"city","in":"query","required":false},{"name":"street","in":"query","required":false},{"name":"street_number","in":"query","required":false}],"responses":{}}},"/v1/journey/configuration":{"post":{"operationId":"createJourney","requestBody":{"content":{"application/json":{}}},"parameters":[{"name":"skipAutomation","in":"query","required":false}],"responses":{}},"put":{"operationId":"updateJourney","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}},"patch":{"operationId":"patchUpdateJourney","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}}},"/v1/journey/configuration/search":{"post":{"operationId":"searchJourneys","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}}},"/v1/journey/document:generate":{"post":{"operationId":"generateDocument","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/journey/configuration":{"post":{"operationId":"createJourneyV2","requestBody":{"content":{"application/json":{}}},"parameters":[{"name":"skipAutomation","in":"query","required":false}],"responses":{}},"put":{"operationId":"updateJourneyV2","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}},"patch":{"operationId":"patchUpdateJourneyV2","requestBody":{"content":{"application/json":{}}},"parameters":[],"responses":{}}},"/v2/journey/configuration/{id}":{"get":{"operationId":"getJourneyV2","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"query","required":false}],"responses":{}},"delete":{"operationId":"removeJourneyV2","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/{id}/settings":{"get":{"operationId":"getSettingsForJourney","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/journey/button-options":{"get":{"operationId":"getButtonOptions","parameters":[{"in":"query","name":"fileId","required":true}],"responses":{}}}},"components":{},"servers":[{"url":"https://journey-config.sls.epilot.io"}]}')}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var a=r[t]={exports:{}};return e[t].call(a.exports,a,a.exports,n),a.exports}(223),t=exports;for(var o in n)t[o]=n[o];n.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -985,6 +985,14 @@ declare namespace Components {
|
|
|
985
985
|
code: "not_found" | "unsupported_type" | "not_set" | "invalid_value" | "incompatible_consumer";
|
|
986
986
|
}[];
|
|
987
987
|
}
|
|
988
|
+
export interface JourneyEnvironmentVariablesResponse {
|
|
989
|
+
items: {
|
|
990
|
+
key: string;
|
|
991
|
+
type: "Map";
|
|
992
|
+
value: EnvironmentMap;
|
|
993
|
+
description?: string;
|
|
994
|
+
}[];
|
|
995
|
+
}
|
|
988
996
|
export interface JourneyFeatureFlags {
|
|
989
997
|
featureFlags?: {
|
|
990
998
|
[name: string]: any;
|
|
@@ -1784,6 +1792,17 @@ declare namespace Paths {
|
|
|
1784
1792
|
}
|
|
1785
1793
|
}
|
|
1786
1794
|
}
|
|
1795
|
+
namespace GetJourneyEnvironmentVariables {
|
|
1796
|
+
namespace Responses {
|
|
1797
|
+
export type $200 = Components.Schemas.JourneyEnvironmentVariablesResponse;
|
|
1798
|
+
export interface $401 {
|
|
1799
|
+
}
|
|
1800
|
+
export interface $403 {
|
|
1801
|
+
}
|
|
1802
|
+
export interface $502 {
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1787
1806
|
namespace GetJourneyProducts {
|
|
1788
1807
|
namespace Parameters {
|
|
1789
1808
|
export type City = string;
|
|
@@ -2313,6 +2332,16 @@ export interface OperationMethods {
|
|
|
2313
2332
|
data?: any,
|
|
2314
2333
|
config?: AxiosRequestConfig
|
|
2315
2334
|
): OperationResponse<Paths.GetJourneyEnvironment.Responses.$200>
|
|
2335
|
+
/**
|
|
2336
|
+
* getJourneyEnvironmentVariables - getJourneyEnvironmentVariables
|
|
2337
|
+
*
|
|
2338
|
+
* List the organization's environment variables that a journey block may use as an options source. Only Map variables that currently hold a valid value are returned. Intended for the journey builder's authoring UI; requires a journey authoring token, not an environments token.
|
|
2339
|
+
*/
|
|
2340
|
+
'getJourneyEnvironmentVariables'(
|
|
2341
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2342
|
+
data?: any,
|
|
2343
|
+
config?: AxiosRequestConfig
|
|
2344
|
+
): OperationResponse<Paths.GetJourneyEnvironmentVariables.Responses.$200>
|
|
2316
2345
|
/**
|
|
2317
2346
|
* getJourneyProducts - getJourneyProducts
|
|
2318
2347
|
*
|
|
@@ -2503,6 +2532,18 @@ export interface PathsDictionary {
|
|
|
2503
2532
|
config?: AxiosRequestConfig
|
|
2504
2533
|
): OperationResponse<Paths.GetJourneyEnvironment.Responses.$200>
|
|
2505
2534
|
}
|
|
2535
|
+
['/v1/journey/environment-variables']: {
|
|
2536
|
+
/**
|
|
2537
|
+
* getJourneyEnvironmentVariables - getJourneyEnvironmentVariables
|
|
2538
|
+
*
|
|
2539
|
+
* List the organization's environment variables that a journey block may use as an options source. Only Map variables that currently hold a valid value are returned. Intended for the journey builder's authoring UI; requires a journey authoring token, not an environments token.
|
|
2540
|
+
*/
|
|
2541
|
+
'get'(
|
|
2542
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
2543
|
+
data?: any,
|
|
2544
|
+
config?: AxiosRequestConfig
|
|
2545
|
+
): OperationResponse<Paths.GetJourneyEnvironmentVariables.Responses.$200>
|
|
2546
|
+
}
|
|
2506
2547
|
['/v1/journey/products/{id}']: {
|
|
2507
2548
|
/**
|
|
2508
2549
|
* getJourneyProducts - getJourneyProducts
|
|
@@ -2678,6 +2719,7 @@ export type JourneyAuditInfo = Components.Schemas.JourneyAuditInfo;
|
|
|
2678
2719
|
export type JourneyCreationRequest = Components.Schemas.JourneyCreationRequest;
|
|
2679
2720
|
export type JourneyCreationRequestV2 = Components.Schemas.JourneyCreationRequestV2;
|
|
2680
2721
|
export type JourneyEnvironmentResponse = Components.Schemas.JourneyEnvironmentResponse;
|
|
2722
|
+
export type JourneyEnvironmentVariablesResponse = Components.Schemas.JourneyEnvironmentVariablesResponse;
|
|
2681
2723
|
export type JourneyFeatureFlags = Components.Schemas.JourneyFeatureFlags;
|
|
2682
2724
|
export type JourneyProductsResponse = Components.Schemas.JourneyProductsResponse;
|
|
2683
2725
|
export type JourneyResponse = Components.Schemas.JourneyResponse;
|