@epilot/app-client 0.5.4 → 0.5.5

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 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
  */
@@ -194,18 +198,6 @@ declare namespace Components {
194
198
  * Description of the custom action
195
199
  */
196
200
  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
201
  }
210
202
  /**
211
203
  * How often the subscription is billed
@@ -636,18 +628,6 @@ declare namespace Components {
636
628
  * Description of the custom action
637
629
  */
638
630
  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
631
  type: "external_integration";
652
632
  external_integration_settings?: {
653
633
  /**
@@ -974,6 +954,10 @@ declare namespace Components {
974
954
  */
975
955
  version: string;
976
956
  role?: Role;
957
+ /**
958
+ * Latest version of the app
959
+ */
960
+ latest_version?: string;
977
961
  /**
978
962
  * Flag to indicate if the app is public.
979
963
  */
@@ -1237,8 +1221,7 @@ declare namespace Paths {
1237
1221
  }
1238
1222
  export type RequestBody = Components.RequestBodies.InstallRequest;
1239
1223
  namespace Responses {
1240
- export interface $204 {
1241
- }
1224
+ export type $201 = /* Information about the installed app. Has configuration data of the installed version */ Components.Schemas.Installation;
1242
1225
  export interface $404 {
1243
1226
  }
1244
1227
  }
@@ -1634,7 +1617,7 @@ export interface OperationMethods {
1634
1617
  parameters?: Parameters<Paths.Install.PathParameters> | null,
1635
1618
  data?: Paths.Install.RequestBody,
1636
1619
  config?: AxiosRequestConfig
1637
- ): OperationResponse<Paths.Install.Responses.$204>
1620
+ ): OperationResponse<Paths.Install.Responses.$201>
1638
1621
  /**
1639
1622
  * patchInstallation - patchInstallation
1640
1623
  *
@@ -1890,7 +1873,7 @@ export interface PathsDictionary {
1890
1873
  parameters?: Parameters<Paths.Install.PathParameters> | null,
1891
1874
  data?: Paths.Install.RequestBody,
1892
1875
  config?: AxiosRequestConfig
1893
- ): OperationResponse<Paths.Install.Responses.$204>
1876
+ ): OperationResponse<Paths.Install.Responses.$201>
1894
1877
  /**
1895
1878
  * patchInstallation - patchInstallation
1896
1879
  *
package/dist/openapi.json CHANGED
@@ -945,8 +945,15 @@
945
945
  "$ref": "#/components/requestBodies/InstallRequest"
946
946
  },
947
947
  "responses": {
948
- "204": {
949
- "description": "App successfully installed."
948
+ "201": {
949
+ "description": "App successfully installed.",
950
+ "content": {
951
+ "application/json": {
952
+ "schema": {
953
+ "$ref": "#/components/schemas/Installation"
954
+ }
955
+ }
956
+ }
950
957
  },
951
958
  "404": {
952
959
  "description": "App not found."
@@ -1217,6 +1224,10 @@
1217
1224
  "schema": {
1218
1225
  "type": "object",
1219
1226
  "properties": {
1227
+ "version": {
1228
+ "type": "string",
1229
+ "description": "Version of the app to update to"
1230
+ },
1220
1231
  "option_values": {
1221
1232
  "type": "array",
1222
1233
  "items": {
@@ -1523,22 +1534,8 @@
1523
1534
  "description": {
1524
1535
  "type": "string",
1525
1536
  "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
1537
  }
1537
- },
1538
- "required": [
1539
- "app_id",
1540
- "component_id"
1541
- ]
1538
+ }
1542
1539
  },
1543
1540
  "ExternalIntegrationCustomActionConfig": {
1544
1541
  "allOf": [
@@ -2360,6 +2357,11 @@
2360
2357
  "role": {
2361
2358
  "$ref": "#/components/schemas/Role"
2362
2359
  },
2360
+ "latest_version": {
2361
+ "type": "string",
2362
+ "description": "Latest version of the app",
2363
+ "readOnly": true
2364
+ },
2363
2365
  "public": {
2364
2366
  "type": "boolean",
2365
2367
  "default": true,
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
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",