@epilot/app-client 0.5.4 → 0.5.6-rc.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/openapi.d.ts +25 -28
- package/dist/openapi.json +51 -17
- package/package.json +3 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ declare namespace Components {
|
|
|
47
47
|
mime_type: "image/png" | "image/jpeg" | "image/jpg";
|
|
48
48
|
}
|
|
49
49
|
export interface InstallRequest {
|
|
50
|
+
/**
|
|
51
|
+
* Version of the app to update to
|
|
52
|
+
*/
|
|
53
|
+
version?: string;
|
|
50
54
|
/**
|
|
51
55
|
* Configuration values for the app components
|
|
52
56
|
*/
|
|
@@ -81,6 +85,12 @@ declare namespace Components {
|
|
|
81
85
|
export type UpsertComponentRequest = Schemas.BaseComponent;
|
|
82
86
|
}
|
|
83
87
|
namespace Schemas {
|
|
88
|
+
export interface AppBridgeSurfaceConfig {
|
|
89
|
+
/**
|
|
90
|
+
* URL of the uploaded App Bridge App
|
|
91
|
+
*/
|
|
92
|
+
app_url: string;
|
|
93
|
+
}
|
|
84
94
|
export interface Audit {
|
|
85
95
|
/**
|
|
86
96
|
* Timestamp of the creation
|
|
@@ -194,18 +204,6 @@ declare namespace Components {
|
|
|
194
204
|
* Description of the custom action
|
|
195
205
|
*/
|
|
196
206
|
description?: string;
|
|
197
|
-
/**
|
|
198
|
-
* The ID of the app to fetch configuration from the app API
|
|
199
|
-
* example:
|
|
200
|
-
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
201
|
-
*/
|
|
202
|
-
app_id: string;
|
|
203
|
-
/**
|
|
204
|
-
* The ID of the component to fetch configuration from the app API
|
|
205
|
-
* example:
|
|
206
|
-
* 12345678-1234-1234-1234-123456789012
|
|
207
|
-
*/
|
|
208
|
-
component_id: string;
|
|
209
207
|
}
|
|
210
208
|
/**
|
|
211
209
|
* How often the subscription is billed
|
|
@@ -575,6 +573,9 @@ declare namespace Components {
|
|
|
575
573
|
export interface CustomFlowActionComponent {
|
|
576
574
|
component_type: "CUSTOM_FLOW_ACTION";
|
|
577
575
|
configuration: CustomFlowConfig;
|
|
576
|
+
surfaces?: {
|
|
577
|
+
flow_action_config?: AppBridgeSurfaceConfig;
|
|
578
|
+
};
|
|
578
579
|
}
|
|
579
580
|
export type CustomFlowConfig = ExternalIntegrationCustomActionConfig;
|
|
580
581
|
export interface EnumArg {
|
|
@@ -636,18 +637,6 @@ declare namespace Components {
|
|
|
636
637
|
* Description of the custom action
|
|
637
638
|
*/
|
|
638
639
|
description?: string;
|
|
639
|
-
/**
|
|
640
|
-
* The ID of the app to fetch configuration from the app API
|
|
641
|
-
* example:
|
|
642
|
-
* c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
|
|
643
|
-
*/
|
|
644
|
-
app_id: string;
|
|
645
|
-
/**
|
|
646
|
-
* The ID of the component to fetch configuration from the app API
|
|
647
|
-
* example:
|
|
648
|
-
* 12345678-1234-1234-1234-123456789012
|
|
649
|
-
*/
|
|
650
|
-
component_id: string;
|
|
651
640
|
type: "external_integration";
|
|
652
641
|
external_integration_settings?: {
|
|
653
642
|
/**
|
|
@@ -733,6 +722,10 @@ declare namespace Components {
|
|
|
733
722
|
*/
|
|
734
723
|
updated_by?: string;
|
|
735
724
|
};
|
|
725
|
+
/**
|
|
726
|
+
* Manifest ID used to create/update the entity
|
|
727
|
+
*/
|
|
728
|
+
_manifest?: string /* uuid */[];
|
|
736
729
|
}
|
|
737
730
|
export interface JourneyBlockComponent {
|
|
738
731
|
component_type: "CUSTOM_JOURNEY_BLOCK";
|
|
@@ -974,6 +967,10 @@ declare namespace Components {
|
|
|
974
967
|
*/
|
|
975
968
|
version: string;
|
|
976
969
|
role?: Role;
|
|
970
|
+
/**
|
|
971
|
+
* Latest version of the app
|
|
972
|
+
*/
|
|
973
|
+
latest_version?: string;
|
|
977
974
|
/**
|
|
978
975
|
* Flag to indicate if the app is public.
|
|
979
976
|
*/
|
|
@@ -1237,8 +1234,7 @@ declare namespace Paths {
|
|
|
1237
1234
|
}
|
|
1238
1235
|
export type RequestBody = Components.RequestBodies.InstallRequest;
|
|
1239
1236
|
namespace Responses {
|
|
1240
|
-
export
|
|
1241
|
-
}
|
|
1237
|
+
export type $201 = /* Information about the installed app. Has configuration data of the installed version */ Components.Schemas.Installation;
|
|
1242
1238
|
export interface $404 {
|
|
1243
1239
|
}
|
|
1244
1240
|
}
|
|
@@ -1634,7 +1630,7 @@ export interface OperationMethods {
|
|
|
1634
1630
|
parameters?: Parameters<Paths.Install.PathParameters> | null,
|
|
1635
1631
|
data?: Paths.Install.RequestBody,
|
|
1636
1632
|
config?: AxiosRequestConfig
|
|
1637
|
-
): OperationResponse<Paths.Install.Responses.$
|
|
1633
|
+
): OperationResponse<Paths.Install.Responses.$201>
|
|
1638
1634
|
/**
|
|
1639
1635
|
* patchInstallation - patchInstallation
|
|
1640
1636
|
*
|
|
@@ -1890,7 +1886,7 @@ export interface PathsDictionary {
|
|
|
1890
1886
|
parameters?: Parameters<Paths.Install.PathParameters> | null,
|
|
1891
1887
|
data?: Paths.Install.RequestBody,
|
|
1892
1888
|
config?: AxiosRequestConfig
|
|
1893
|
-
): OperationResponse<Paths.Install.Responses.$
|
|
1889
|
+
): OperationResponse<Paths.Install.Responses.$201>
|
|
1894
1890
|
/**
|
|
1895
1891
|
* patchInstallation - patchInstallation
|
|
1896
1892
|
*
|
|
@@ -1928,6 +1924,7 @@ export interface PathsDictionary {
|
|
|
1928
1924
|
|
|
1929
1925
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1930
1926
|
|
|
1927
|
+
export type AppBridgeSurfaceConfig = Components.Schemas.AppBridgeSurfaceConfig;
|
|
1931
1928
|
export type Audit = Components.Schemas.Audit;
|
|
1932
1929
|
export type Author = Components.Schemas.Author;
|
|
1933
1930
|
export type BaseComponent = Components.Schemas.BaseComponent;
|
package/dist/openapi.json
CHANGED
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
{
|
|
20
20
|
"url": "https://app.sls.epilot.io"
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
"url": "https://app.sls.epilot.io"
|
|
24
|
+
},
|
|
22
25
|
{
|
|
23
26
|
"url": "https://app.sls.epilot.io"
|
|
24
27
|
}
|
|
@@ -945,8 +948,15 @@
|
|
|
945
948
|
"$ref": "#/components/requestBodies/InstallRequest"
|
|
946
949
|
},
|
|
947
950
|
"responses": {
|
|
948
|
-
"
|
|
949
|
-
"description": "App successfully installed."
|
|
951
|
+
"201": {
|
|
952
|
+
"description": "App successfully installed.",
|
|
953
|
+
"content": {
|
|
954
|
+
"application/json": {
|
|
955
|
+
"schema": {
|
|
956
|
+
"$ref": "#/components/schemas/Installation"
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}
|
|
950
960
|
},
|
|
951
961
|
"404": {
|
|
952
962
|
"description": "App not found."
|
|
@@ -1217,6 +1227,10 @@
|
|
|
1217
1227
|
"schema": {
|
|
1218
1228
|
"type": "object",
|
|
1219
1229
|
"properties": {
|
|
1230
|
+
"version": {
|
|
1231
|
+
"type": "string",
|
|
1232
|
+
"description": "Version of the app to update to"
|
|
1233
|
+
},
|
|
1220
1234
|
"option_values": {
|
|
1221
1235
|
"type": "array",
|
|
1222
1236
|
"items": {
|
|
@@ -1510,6 +1524,14 @@
|
|
|
1510
1524
|
},
|
|
1511
1525
|
"configuration": {
|
|
1512
1526
|
"$ref": "#/components/schemas/CustomFlowConfig"
|
|
1527
|
+
},
|
|
1528
|
+
"surfaces": {
|
|
1529
|
+
"type": "object",
|
|
1530
|
+
"properties": {
|
|
1531
|
+
"flow_action_config": {
|
|
1532
|
+
"$ref": "#/components/schemas/AppBridgeSurfaceConfig"
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1513
1535
|
}
|
|
1514
1536
|
}
|
|
1515
1537
|
},
|
|
@@ -1523,22 +1545,8 @@
|
|
|
1523
1545
|
"description": {
|
|
1524
1546
|
"type": "string",
|
|
1525
1547
|
"description": "Description of the custom action"
|
|
1526
|
-
},
|
|
1527
|
-
"app_id": {
|
|
1528
|
-
"type": "string",
|
|
1529
|
-
"description": "The ID of the app to fetch configuration from the app API",
|
|
1530
|
-
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
1531
|
-
},
|
|
1532
|
-
"component_id": {
|
|
1533
|
-
"type": "string",
|
|
1534
|
-
"description": "The ID of the component to fetch configuration from the app API",
|
|
1535
|
-
"example": "12345678-1234-1234-1234-123456789012"
|
|
1536
1548
|
}
|
|
1537
|
-
}
|
|
1538
|
-
"required": [
|
|
1539
|
-
"app_id",
|
|
1540
|
-
"component_id"
|
|
1541
|
-
]
|
|
1549
|
+
}
|
|
1542
1550
|
},
|
|
1543
1551
|
"ExternalIntegrationCustomActionConfig": {
|
|
1544
1552
|
"allOf": [
|
|
@@ -1777,6 +1785,18 @@
|
|
|
1777
1785
|
}
|
|
1778
1786
|
}
|
|
1779
1787
|
},
|
|
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
|
+
},
|
|
1780
1800
|
"JourneyBlockComponentArgs": {
|
|
1781
1801
|
"allOf": [
|
|
1782
1802
|
{
|
|
@@ -2271,6 +2291,15 @@
|
|
|
2271
2291
|
"$ref": "#/components/schemas/Audit"
|
|
2272
2292
|
}
|
|
2273
2293
|
]
|
|
2294
|
+
},
|
|
2295
|
+
"_manifest": {
|
|
2296
|
+
"type": "array",
|
|
2297
|
+
"description": "Manifest ID used to create/update the entity",
|
|
2298
|
+
"items": {
|
|
2299
|
+
"type": "string",
|
|
2300
|
+
"format": "uuid",
|
|
2301
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
2302
|
+
}
|
|
2274
2303
|
}
|
|
2275
2304
|
}
|
|
2276
2305
|
},
|
|
@@ -2360,6 +2389,11 @@
|
|
|
2360
2389
|
"role": {
|
|
2361
2390
|
"$ref": "#/components/schemas/Role"
|
|
2362
2391
|
},
|
|
2392
|
+
"latest_version": {
|
|
2393
|
+
"type": "string",
|
|
2394
|
+
"description": "Latest version of the app",
|
|
2395
|
+
"readOnly": true
|
|
2396
|
+
},
|
|
2363
2397
|
"public": {
|
|
2364
2398
|
"type": "boolean",
|
|
2365
2399
|
"default": true,
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/app-client",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6-rc.1",
|
|
4
4
|
"description": "JavaScript client library for the epilot App API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"author": "epilot GmbH",
|
|
8
8
|
"license": "MIT",
|
|
9
|
+
"private": false,
|
|
9
10
|
"repository": {
|
|
10
11
|
"type": "git",
|
|
11
12
|
"url": "git+https://github.com/epilot-dev/sdk-js.git",
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
"test": "jest",
|
|
25
26
|
"typescript": "tsc",
|
|
26
27
|
"bundle-definition": "webpack",
|
|
27
|
-
"openapi": "node ../../scripts/update-openapi.js
|
|
28
|
+
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/app.yaml",
|
|
28
29
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
29
30
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
30
31
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|