@epilot/journey-client 0.7.0 → 0.9.0-alpha.0
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 +88 -5
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={223(e,r,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var t=o(n(466));r.default=t.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}/revisions":{"post":{"operationId":"createJourneyRevision","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"get":{"operationId":"listJourneyRevisions","parameters":[{"name":"id","in":"path","required":true},{"name":"limit","in":"query","required":false},{"name":"cursor","in":"query","required":false}],"responses":{}}},"/v1/journey/configuration/{id}/revisions/{revision_id}":{"get":{"operationId":"getJourneyRevision","parameters":[{"name":"id","in":"path","required":true},{"name":"revision_id","in":"path","required":true}],"responses":{}}},"/v1/journey/configuration/{id}/publish":{"post":{"operationId":"publishJourneyRevision","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/journey/configuration/{id}/publish-state":{"get":{"operationId":"getJourneyPublishState","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(o){var t=r[o];if(void 0!==t)return t.exports;var i=r[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}(223),o=exports;for(var t in n)o[t]=n[t];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={223(e,r,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var t=o(n(466));r.default=t.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":"revision_id","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}/revisions":{"post":{"operationId":"createJourneyRevision","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"get":{"operationId":"listJourneyRevisions","parameters":[{"name":"id","in":"path","required":true},{"name":"limit","in":"query","required":false},{"name":"cursor","in":"query","required":false}],"responses":{}}},"/v1/journey/configuration/{id}/revisions/{revision_id}":{"get":{"operationId":"getJourneyRevision","parameters":[{"name":"id","in":"path","required":true},{"name":"revision_id","in":"path","required":true}],"responses":{}}},"/v1/journey/configuration/{id}/publish":{"post":{"operationId":"publishJourneyRevision","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/journey/configuration/{id}/publish-state":{"get":{"operationId":"getJourneyPublishState","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(o){var t=r[o];if(void 0!==t)return t.exports;var i=r[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}(223),o=exports;for(var t in n)o[t]=n[t];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -25,6 +25,39 @@ declare namespace Components {
|
|
|
25
25
|
*/
|
|
26
26
|
label?: string;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* One link a customer clicks. `label` and `description` are each either a
|
|
30
|
+
* plain string or one string per language, deciding that independently.
|
|
31
|
+
* Mirrors environments-api's `LinkFields`.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export interface EnvironmentLink {
|
|
35
|
+
url: string;
|
|
36
|
+
label: string | {
|
|
37
|
+
[name: string]: string;
|
|
38
|
+
};
|
|
39
|
+
description?: string | {
|
|
40
|
+
[name: string]: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A list of links, served under this service's own `List<Link>` type
|
|
45
|
+
* token. environments-api types the variable `List` and declares the
|
|
46
|
+
* element type inside the value; journey-api composes the two so a
|
|
47
|
+
* consumer needs only one discriminant.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export interface EnvironmentLinkList {
|
|
51
|
+
itemType: "Link";
|
|
52
|
+
fallbackLanguage?: string;
|
|
53
|
+
items: /**
|
|
54
|
+
* One link a customer clicks. `label` and `description` are each either a
|
|
55
|
+
* plain string or one string per language, deciding that independently.
|
|
56
|
+
* Mirrors environments-api's `LinkFields`.
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
EnvironmentLink[];
|
|
60
|
+
}
|
|
28
61
|
export interface EnvironmentMap {
|
|
29
62
|
fallbackLanguage?: string;
|
|
30
63
|
options: EnvironmentMapEntry[];
|
|
@@ -993,8 +1026,15 @@ declare namespace Components {
|
|
|
993
1026
|
export interface JourneyEnvironmentResponse {
|
|
994
1027
|
items: {
|
|
995
1028
|
datasourceId: string;
|
|
996
|
-
type: "Text" | "Number" | "Boolean" | "Map";
|
|
997
|
-
value: string | number | boolean | EnvironmentMap
|
|
1029
|
+
type: "Text" | "Number" | "Boolean" | "Map" | "List<Link>";
|
|
1030
|
+
value: string | number | boolean | EnvironmentMap | /**
|
|
1031
|
+
* A list of links, served under this service's own `List<Link>` type
|
|
1032
|
+
* token. environments-api types the variable `List` and declares the
|
|
1033
|
+
* element type inside the value; journey-api composes the two so a
|
|
1034
|
+
* consumer needs only one discriminant.
|
|
1035
|
+
*
|
|
1036
|
+
*/
|
|
1037
|
+
EnvironmentLinkList;
|
|
998
1038
|
}[];
|
|
999
1039
|
errors: {
|
|
1000
1040
|
datasourceId: string;
|
|
@@ -1004,8 +1044,15 @@ declare namespace Components {
|
|
|
1004
1044
|
export interface JourneyEnvironmentVariablesResponse {
|
|
1005
1045
|
items: {
|
|
1006
1046
|
key: string;
|
|
1007
|
-
type: "Map";
|
|
1008
|
-
value: EnvironmentMap
|
|
1047
|
+
type: "Map" | "List<Link>";
|
|
1048
|
+
value: EnvironmentMap | /**
|
|
1049
|
+
* A list of links, served under this service's own `List<Link>` type
|
|
1050
|
+
* token. environments-api types the variable `List` and declares the
|
|
1051
|
+
* element type inside the value; journey-api composes the two so a
|
|
1052
|
+
* consumer needs only one discriminant.
|
|
1053
|
+
*
|
|
1054
|
+
*/
|
|
1055
|
+
EnvironmentLinkList;
|
|
1009
1056
|
description?: string;
|
|
1010
1057
|
}[];
|
|
1011
1058
|
}
|
|
@@ -1685,6 +1732,13 @@ declare namespace Components {
|
|
|
1685
1732
|
* 12
|
|
1686
1733
|
*/
|
|
1687
1734
|
mapping_config_version?: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* What this save changed, for the revision history to list. Distinct from `name`, which is the journey's own name. A publish replaces it with the version name.
|
|
1737
|
+
*
|
|
1738
|
+
* example:
|
|
1739
|
+
* Changes to Steps and Logic
|
|
1740
|
+
*/
|
|
1741
|
+
revision_name?: string;
|
|
1688
1742
|
}
|
|
1689
1743
|
export interface JourneyRevisionSummary {
|
|
1690
1744
|
/**
|
|
@@ -1723,6 +1777,17 @@ declare namespace Components {
|
|
|
1723
1777
|
*/
|
|
1724
1778
|
mapping_config_version?: number;
|
|
1725
1779
|
}
|
|
1780
|
+
/**
|
|
1781
|
+
* Which revision the runtime read served: the requested one, or the published version when no revision was requested. Absent while the journey has not adopted versioning and on legacy `version` reads.
|
|
1782
|
+
*
|
|
1783
|
+
*/
|
|
1784
|
+
export interface JourneyServedRevision {
|
|
1785
|
+
/**
|
|
1786
|
+
* example:
|
|
1787
|
+
* 42
|
|
1788
|
+
*/
|
|
1789
|
+
revision_id?: string;
|
|
1790
|
+
}
|
|
1726
1791
|
export interface JourneyValidationError {
|
|
1727
1792
|
/**
|
|
1728
1793
|
* Error type identifier
|
|
@@ -2246,6 +2311,11 @@ declare namespace Paths {
|
|
|
2246
2311
|
*/
|
|
2247
2312
|
export type Id = string; // uuid
|
|
2248
2313
|
export type OrgId = string;
|
|
2314
|
+
/**
|
|
2315
|
+
* example:
|
|
2316
|
+
* 42
|
|
2317
|
+
*/
|
|
2318
|
+
export type RevisionId = string;
|
|
2249
2319
|
export type Source = string;
|
|
2250
2320
|
export type Version = number;
|
|
2251
2321
|
}
|
|
@@ -2258,12 +2328,17 @@ declare namespace Paths {
|
|
|
2258
2328
|
}
|
|
2259
2329
|
export interface QueryParameters {
|
|
2260
2330
|
version?: Parameters.Version;
|
|
2331
|
+
revision_id?: /**
|
|
2332
|
+
* example:
|
|
2333
|
+
* 42
|
|
2334
|
+
*/
|
|
2335
|
+
Parameters.RevisionId;
|
|
2261
2336
|
source?: Parameters.Source;
|
|
2262
2337
|
orgId?: Parameters.OrgId;
|
|
2263
2338
|
}
|
|
2264
2339
|
namespace Responses {
|
|
2265
2340
|
/**
|
|
2266
|
-
*
|
|
2341
|
+
* Which revision the runtime read served: the requested one, or the published version when no revision was requested. Absent while the journey has not adopted versioning and on legacy `version` reads.
|
|
2267
2342
|
*
|
|
2268
2343
|
*/
|
|
2269
2344
|
export interface $200 {
|
|
@@ -2555,6 +2630,11 @@ declare namespace Paths {
|
|
|
2555
2630
|
featureFlags?: {
|
|
2556
2631
|
[name: string]: any;
|
|
2557
2632
|
};
|
|
2633
|
+
/**
|
|
2634
|
+
* example:
|
|
2635
|
+
* 42
|
|
2636
|
+
*/
|
|
2637
|
+
revision_id?: string;
|
|
2558
2638
|
}
|
|
2559
2639
|
}
|
|
2560
2640
|
}
|
|
@@ -3747,6 +3827,8 @@ export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
|
3747
3827
|
|
|
3748
3828
|
|
|
3749
3829
|
export type ButtonOption = Components.Schemas.ButtonOption;
|
|
3830
|
+
export type EnvironmentLink = Components.Schemas.EnvironmentLink;
|
|
3831
|
+
export type EnvironmentLinkList = Components.Schemas.EnvironmentLinkList;
|
|
3750
3832
|
export type EnvironmentMap = Components.Schemas.EnvironmentMap;
|
|
3751
3833
|
export type EnvironmentMapEntry = Components.Schemas.EnvironmentMapEntry;
|
|
3752
3834
|
export type GenerateDocumentRequest = Components.Schemas.GenerateDocumentRequest;
|
|
@@ -3769,6 +3851,7 @@ export type JourneyRevisionConflict = Components.Schemas.JourneyRevisionConflict
|
|
|
3769
3851
|
export type JourneyRevisionList = Components.Schemas.JourneyRevisionList;
|
|
3770
3852
|
export type JourneyRevisionRequest = Components.Schemas.JourneyRevisionRequest;
|
|
3771
3853
|
export type JourneyRevisionSummary = Components.Schemas.JourneyRevisionSummary;
|
|
3854
|
+
export type JourneyServedRevision = Components.Schemas.JourneyServedRevision;
|
|
3772
3855
|
export type JourneyValidationError = Components.Schemas.JourneyValidationError;
|
|
3773
3856
|
export type JourneyValidationResponse = Components.Schemas.JourneyValidationResponse;
|
|
3774
3857
|
export type PatchUpdateJourneyRequest = Components.Schemas.PatchUpdateJourneyRequest;
|