@epilot/app-client 0.5.6-rc.1 → 0.5.6
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/openapi.d.ts +33 -10
- package/dist/openapi.json +31 -23
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -74,6 +74,10 @@ declare namespace Components {
|
|
|
74
74
|
* Email address for support requests
|
|
75
75
|
*/
|
|
76
76
|
support_email?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Flag to indicate if the app is in dev mode. If true, the app takes the override properties of components into account.
|
|
79
|
+
*/
|
|
80
|
+
dev_mode?: boolean;
|
|
77
81
|
}
|
|
78
82
|
export interface PatchVersionRequest {
|
|
79
83
|
/**
|
|
@@ -85,12 +89,6 @@ declare namespace Components {
|
|
|
85
89
|
export type UpsertComponentRequest = Schemas.BaseComponent;
|
|
86
90
|
}
|
|
87
91
|
namespace Schemas {
|
|
88
|
-
export interface AppBridgeSurfaceConfig {
|
|
89
|
-
/**
|
|
90
|
-
* URL of the uploaded App Bridge App
|
|
91
|
-
*/
|
|
92
|
-
app_url: string;
|
|
93
|
-
}
|
|
94
92
|
export interface Audit {
|
|
95
93
|
/**
|
|
96
94
|
* Timestamp of the creation
|
|
@@ -252,6 +250,10 @@ declare namespace Components {
|
|
|
252
250
|
*/
|
|
253
251
|
name: string;
|
|
254
252
|
author?: Author;
|
|
253
|
+
/**
|
|
254
|
+
* Flag to indicate if the app is in dev mode. If true, the app takes the override_url property of components into account.
|
|
255
|
+
*/
|
|
256
|
+
dev_mode?: boolean;
|
|
255
257
|
/**
|
|
256
258
|
* List of available versions of the app
|
|
257
259
|
*/
|
|
@@ -411,6 +413,10 @@ declare namespace Components {
|
|
|
411
413
|
*/
|
|
412
414
|
name: string;
|
|
413
415
|
author?: Author;
|
|
416
|
+
/**
|
|
417
|
+
* Flag to indicate if the app is in dev mode. If true, the app takes the override_url property of components into account.
|
|
418
|
+
*/
|
|
419
|
+
dev_mode?: boolean;
|
|
414
420
|
/**
|
|
415
421
|
* List of available versions of the app
|
|
416
422
|
*/
|
|
@@ -573,9 +579,6 @@ declare namespace Components {
|
|
|
573
579
|
export interface CustomFlowActionComponent {
|
|
574
580
|
component_type: "CUSTOM_FLOW_ACTION";
|
|
575
581
|
configuration: CustomFlowConfig;
|
|
576
|
-
surfaces?: {
|
|
577
|
-
flow_action_config?: AppBridgeSurfaceConfig;
|
|
578
|
-
};
|
|
579
582
|
}
|
|
580
583
|
export type CustomFlowConfig = ExternalIntegrationCustomActionConfig;
|
|
581
584
|
export interface EnumArg {
|
|
@@ -677,6 +680,10 @@ declare namespace Components {
|
|
|
677
680
|
* Unique identifier for the organization the app is installed in
|
|
678
681
|
*/
|
|
679
682
|
installer_org_id: string;
|
|
683
|
+
/**
|
|
684
|
+
* Organization ID of the app creator
|
|
685
|
+
*/
|
|
686
|
+
owner_org_id?: string;
|
|
680
687
|
/**
|
|
681
688
|
* Flag to indicate if the app is enabled. Enabled is set to true when required option values are set.
|
|
682
689
|
*/
|
|
@@ -769,6 +776,7 @@ declare namespace Components {
|
|
|
769
776
|
};
|
|
770
777
|
} & (TextArg | BooleanArg | EnumArg);
|
|
771
778
|
export interface JourneyBlockConfig {
|
|
779
|
+
override_dev_mode?: /* Override URL when app is in dev mode */ OverrideDevMode;
|
|
772
780
|
/**
|
|
773
781
|
* URL of the web component object
|
|
774
782
|
* example:
|
|
@@ -850,6 +858,17 @@ declare namespace Components {
|
|
|
850
858
|
component_id: string;
|
|
851
859
|
options: Option[];
|
|
852
860
|
}
|
|
861
|
+
/**
|
|
862
|
+
* Override URL when app is in dev mode
|
|
863
|
+
*/
|
|
864
|
+
export interface OverrideDevMode {
|
|
865
|
+
/**
|
|
866
|
+
* URL of the web component object in dev mode
|
|
867
|
+
* example:
|
|
868
|
+
* http://localhost:3000/bundle.js
|
|
869
|
+
*/
|
|
870
|
+
override_url?: string;
|
|
871
|
+
}
|
|
853
872
|
export interface PortalAuth {
|
|
854
873
|
type?: string;
|
|
855
874
|
url?: string;
|
|
@@ -921,6 +940,10 @@ declare namespace Components {
|
|
|
921
940
|
*/
|
|
922
941
|
name: string;
|
|
923
942
|
author?: Author;
|
|
943
|
+
/**
|
|
944
|
+
* Flag to indicate if the app is in dev mode.
|
|
945
|
+
*/
|
|
946
|
+
dev_mode?: boolean;
|
|
924
947
|
/**
|
|
925
948
|
* Category of the app.
|
|
926
949
|
*/
|
|
@@ -1924,7 +1947,6 @@ export interface PathsDictionary {
|
|
|
1924
1947
|
|
|
1925
1948
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1926
1949
|
|
|
1927
|
-
export type AppBridgeSurfaceConfig = Components.Schemas.AppBridgeSurfaceConfig;
|
|
1928
1950
|
export type Audit = Components.Schemas.Audit;
|
|
1929
1951
|
export type Author = Components.Schemas.Author;
|
|
1930
1952
|
export type BaseComponent = Components.Schemas.BaseComponent;
|
|
@@ -1951,6 +1973,7 @@ export type NotificationEvent = Components.Schemas.NotificationEvent;
|
|
|
1951
1973
|
export type Option = Components.Schemas.Option;
|
|
1952
1974
|
export type Options = Components.Schemas.Options;
|
|
1953
1975
|
export type OptionsRef = Components.Schemas.OptionsRef;
|
|
1976
|
+
export type OverrideDevMode = Components.Schemas.OverrideDevMode;
|
|
1954
1977
|
export type PortalAuth = Components.Schemas.PortalAuth;
|
|
1955
1978
|
export type PortalExtensionComponent = Components.Schemas.PortalExtensionComponent;
|
|
1956
1979
|
export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
|
package/dist/openapi.json
CHANGED
|
@@ -19,9 +19,6 @@
|
|
|
19
19
|
{
|
|
20
20
|
"url": "https://app.sls.epilot.io"
|
|
21
21
|
},
|
|
22
|
-
{
|
|
23
|
-
"url": "https://app.sls.epilot.io"
|
|
24
|
-
},
|
|
25
22
|
{
|
|
26
23
|
"url": "https://app.sls.epilot.io"
|
|
27
24
|
}
|
|
@@ -1155,6 +1152,10 @@
|
|
|
1155
1152
|
"support_email": {
|
|
1156
1153
|
"type": "string",
|
|
1157
1154
|
"description": "Email address for support requests"
|
|
1155
|
+
},
|
|
1156
|
+
"dev_mode": {
|
|
1157
|
+
"type": "boolean",
|
|
1158
|
+
"description": "Flag to indicate if the app is in dev mode. If true, the app takes the override properties of components into account."
|
|
1158
1159
|
}
|
|
1159
1160
|
}
|
|
1160
1161
|
}
|
|
@@ -1524,14 +1525,6 @@
|
|
|
1524
1525
|
},
|
|
1525
1526
|
"configuration": {
|
|
1526
1527
|
"$ref": "#/components/schemas/CustomFlowConfig"
|
|
1527
|
-
},
|
|
1528
|
-
"surfaces": {
|
|
1529
|
-
"type": "object",
|
|
1530
|
-
"properties": {
|
|
1531
|
-
"flow_action_config": {
|
|
1532
|
-
"$ref": "#/components/schemas/AppBridgeSurfaceConfig"
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
1528
|
}
|
|
1536
1529
|
}
|
|
1537
1530
|
},
|
|
@@ -1739,6 +1732,17 @@
|
|
|
1739
1732
|
}
|
|
1740
1733
|
}
|
|
1741
1734
|
},
|
|
1735
|
+
"OverrideDevMode": {
|
|
1736
|
+
"type": "object",
|
|
1737
|
+
"description": "Override URL when app is in dev mode",
|
|
1738
|
+
"properties": {
|
|
1739
|
+
"override_url": {
|
|
1740
|
+
"type": "string",
|
|
1741
|
+
"description": "URL of the web component object in dev mode",
|
|
1742
|
+
"example": "http://localhost:3000/bundle.js"
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1742
1746
|
"JourneyBlockConfig": {
|
|
1743
1747
|
"type": "object",
|
|
1744
1748
|
"required": [
|
|
@@ -1746,6 +1750,9 @@
|
|
|
1746
1750
|
"component_tag"
|
|
1747
1751
|
],
|
|
1748
1752
|
"properties": {
|
|
1753
|
+
"override_dev_mode": {
|
|
1754
|
+
"$ref": "#/components/schemas/OverrideDevMode"
|
|
1755
|
+
},
|
|
1749
1756
|
"component_url": {
|
|
1750
1757
|
"type": "string",
|
|
1751
1758
|
"description": "URL of the web component object",
|
|
@@ -1785,18 +1792,6 @@
|
|
|
1785
1792
|
}
|
|
1786
1793
|
}
|
|
1787
1794
|
},
|
|
1788
|
-
"AppBridgeSurfaceConfig": {
|
|
1789
|
-
"type": "object",
|
|
1790
|
-
"properties": {
|
|
1791
|
-
"app_url": {
|
|
1792
|
-
"type": "string",
|
|
1793
|
-
"description": "URL of the uploaded App Bridge App"
|
|
1794
|
-
}
|
|
1795
|
-
},
|
|
1796
|
-
"required": [
|
|
1797
|
-
"app_url"
|
|
1798
|
-
]
|
|
1799
|
-
},
|
|
1800
1795
|
"JourneyBlockComponentArgs": {
|
|
1801
1796
|
"allOf": [
|
|
1802
1797
|
{
|
|
@@ -2016,6 +2011,10 @@
|
|
|
2016
2011
|
"author": {
|
|
2017
2012
|
"$ref": "#/components/schemas/Author"
|
|
2018
2013
|
},
|
|
2014
|
+
"dev_mode": {
|
|
2015
|
+
"type": "boolean",
|
|
2016
|
+
"description": "Flag to indicate if the app is in dev mode. If true, the app takes the override_url property of components into account."
|
|
2017
|
+
},
|
|
2019
2018
|
"versions": {
|
|
2020
2019
|
"type": "array",
|
|
2021
2020
|
"items": {
|
|
@@ -2245,6 +2244,11 @@
|
|
|
2245
2244
|
"description": "Unique identifier for the organization the app is installed in",
|
|
2246
2245
|
"readOnly": true
|
|
2247
2246
|
},
|
|
2247
|
+
"owner_org_id": {
|
|
2248
|
+
"type": "string",
|
|
2249
|
+
"description": "Organization ID of the app creator",
|
|
2250
|
+
"readOnly": true
|
|
2251
|
+
},
|
|
2248
2252
|
"enabled": {
|
|
2249
2253
|
"readOnly": true,
|
|
2250
2254
|
"type": "boolean",
|
|
@@ -2333,6 +2337,10 @@
|
|
|
2333
2337
|
"author": {
|
|
2334
2338
|
"$ref": "#/components/schemas/Author"
|
|
2335
2339
|
},
|
|
2340
|
+
"dev_mode": {
|
|
2341
|
+
"type": "boolean",
|
|
2342
|
+
"description": "Flag to indicate if the app is in dev mode."
|
|
2343
|
+
},
|
|
2336
2344
|
"category": {
|
|
2337
2345
|
"type": "string",
|
|
2338
2346
|
"description": "Category of the app."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/app-client",
|
|
3
|
-
"version": "0.5.6
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "JavaScript client library for the epilot App API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "jest",
|
|
26
26
|
"typescript": "tsc",
|
|
27
27
|
"bundle-definition": "webpack",
|
|
28
|
-
"openapi": "node ../../scripts/update-openapi.js
|
|
28
|
+
"openapi": "node ../../scripts/update-openapi.js ../../../backend/app-api/packages/functions/src/api/openapi.yml",
|
|
29
29
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
30
30
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
31
31
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|