@epilot/app-client 0.3.3 → 0.3.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/definition.js +1 -1
- package/dist/openapi-runtime.json +6 -0
- package/dist/openapi.d.ts +18 -8
- package/dist/openapi.json +23 -1
- package/package.json +2 -2
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={187:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(t(466));r.default=o.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app-configurations":{"get":{"operationId":"listConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/public/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration to install"}],"get":{"operationId":"getPublicConfiguration","responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"patch":{"operationId":"patchMetadata","requestBody":{"$ref":"#/components/requestBodies/PatchConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/bundle":{"post":{"operationId":"createBundleUploadUrl","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/CreateBundlePresignedRequest"},"responses":{}}},"/v1/app-configurations/{appId}/logo":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"post":{"operationId":"createLogoUploadUrl","requestBody":{"$ref":"#/components/requestBodies/CreateLogoPresignedRequest"},"responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}/components":{"post":{"operationId":"createComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpsertComponentRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}/components/{componentId}":{"patch":{"operationId":"patchComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true},{"name":"componentId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpsertComponentRequest"},"responses":{}},"delete":{"operationId":"deleteComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true},{"name":"componentId","in":"path","required":true}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstallations","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstallation","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"post":{"operationId":"install","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallRequest"},"responses":{}},"patch":{"operationId":"patchInstallation","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallRequest"},"responses":{}},"delete":{"operationId":"uninstall","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"CreateLogoPresignedRequest":{"required":true,"content":{"application/json":{}}},"CreateBundlePresignedRequest":{"required":true,"content":{"application/json":{}}},"PatchConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpsertComponentRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallRequest":{"content":{"application/json":{}}}}}}')}},r={},t=function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={exports:{}};return e[n].call(a.exports,a,a.exports,t),a.exports}(187),n=exports;for(var o in t)n[o]=t[o];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={187:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(t(466));r.default=o.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app-configurations":{"get":{"operationId":"listConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/public/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration to install"}],"get":{"operationId":"getPublicConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"patch":{"operationId":"patchMetadata","requestBody":{"$ref":"#/components/requestBodies/PatchConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/bundle":{"post":{"operationId":"createBundleUploadUrl","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/CreateBundlePresignedRequest"},"responses":{}}},"/v1/app-configurations/{appId}/logo":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"post":{"operationId":"createLogoUploadUrl","requestBody":{"$ref":"#/components/requestBodies/CreateLogoPresignedRequest"},"responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}/components":{"post":{"operationId":"createComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpsertComponentRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}/components/{componentId}":{"patch":{"operationId":"patchComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true},{"name":"componentId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpsertComponentRequest"},"responses":{}},"delete":{"operationId":"deleteComponent","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true},{"name":"componentId","in":"path","required":true}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstallations","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstallation","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"post":{"operationId":"install","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallRequest"},"responses":{}},"patch":{"operationId":"patchInstallation","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallRequest"},"responses":{}},"delete":{"operationId":"uninstall","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"CreateLogoPresignedRequest":{"required":true,"content":{"application/json":{}}},"CreateBundlePresignedRequest":{"required":true,"content":{"application/json":{}}},"PatchConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpsertComponentRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallRequest":{"content":{"application/json":{}}}}}}')}},r={},t=function t(n){var o=r[n];if(void 0!==o)return o.exports;var a=r[n]={exports:{}};return e[n].call(a.exports,a,a.exports,t),a.exports}(187),n=exports;for(var o in t)n[o]=t[o];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -513,7 +513,7 @@ declare namespace Components {
|
|
|
513
513
|
* Define data which is mapped to entity mapping ui blocks
|
|
514
514
|
*/
|
|
515
515
|
component_mapping?: {
|
|
516
|
-
[name: string]: "string" | "boolean" | "date" | "datetime";
|
|
516
|
+
[name: string]: "string" | "boolean" | "date" | "datetime" | "link";
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
export interface NotificationConfig {
|
|
@@ -629,15 +629,19 @@ declare namespace Components {
|
|
|
629
629
|
/**
|
|
630
630
|
* ID of the app configuration
|
|
631
631
|
*/
|
|
632
|
-
app_id
|
|
632
|
+
app_id: string;
|
|
633
|
+
/**
|
|
634
|
+
* Email address for support requests
|
|
635
|
+
*/
|
|
636
|
+
support_email?: string;
|
|
633
637
|
/**
|
|
634
638
|
* Organization ID of the app owner
|
|
635
639
|
*/
|
|
636
|
-
owner_org_id
|
|
640
|
+
owner_org_id: string;
|
|
637
641
|
/**
|
|
638
642
|
* Name of the app
|
|
639
643
|
*/
|
|
640
|
-
name
|
|
644
|
+
name: string;
|
|
641
645
|
author?: Author;
|
|
642
646
|
/**
|
|
643
647
|
* Category of the app.
|
|
@@ -659,7 +663,7 @@ declare namespace Components {
|
|
|
659
663
|
* Pricing information for the app
|
|
660
664
|
*/
|
|
661
665
|
pricing?: Pricing;
|
|
662
|
-
components
|
|
666
|
+
components: BaseComponent[];
|
|
663
667
|
/**
|
|
664
668
|
* Flag to indicate if the app is in beta.
|
|
665
669
|
*/
|
|
@@ -671,7 +675,7 @@ declare namespace Components {
|
|
|
671
675
|
/**
|
|
672
676
|
* Version of the app that is installed
|
|
673
677
|
*/
|
|
674
|
-
version
|
|
678
|
+
version: string;
|
|
675
679
|
}
|
|
676
680
|
export interface S3Reference {
|
|
677
681
|
/**
|
|
@@ -882,6 +886,12 @@ declare namespace Paths {
|
|
|
882
886
|
}
|
|
883
887
|
}
|
|
884
888
|
namespace GetPublicConfiguration {
|
|
889
|
+
namespace Parameters {
|
|
890
|
+
export type Version = string;
|
|
891
|
+
}
|
|
892
|
+
export interface QueryParameters {
|
|
893
|
+
version?: Parameters.Version;
|
|
894
|
+
}
|
|
885
895
|
namespace Responses {
|
|
886
896
|
export type $200 = /* Public configuration of the published app */ Components.Schemas.PublicConfiguration;
|
|
887
897
|
export interface $404 {
|
|
@@ -1115,7 +1125,7 @@ export interface OperationMethods {
|
|
|
1115
1125
|
* Retrieve the public configuration of an app to install in your tenant
|
|
1116
1126
|
*/
|
|
1117
1127
|
'getPublicConfiguration'(
|
|
1118
|
-
parameters?: Parameters<Paths.V1AppConfigurationsPublic$AppId.PathParameters> | null,
|
|
1128
|
+
parameters?: Parameters<Paths.GetPublicConfiguration.QueryParameters & Paths.V1AppConfigurationsPublic$AppId.PathParameters> | null,
|
|
1119
1129
|
data?: any,
|
|
1120
1130
|
config?: AxiosRequestConfig
|
|
1121
1131
|
): OperationResponse<Paths.GetPublicConfiguration.Responses.$200>
|
|
@@ -1331,7 +1341,7 @@ export interface PathsDictionary {
|
|
|
1331
1341
|
* Retrieve the public configuration of an app to install in your tenant
|
|
1332
1342
|
*/
|
|
1333
1343
|
'get'(
|
|
1334
|
-
parameters?: Parameters<Paths.V1AppConfigurationsPublic$AppId.PathParameters> | null,
|
|
1344
|
+
parameters?: Parameters<Paths.GetPublicConfiguration.QueryParameters & Paths.V1AppConfigurationsPublic$AppId.PathParameters> | null,
|
|
1335
1345
|
data?: any,
|
|
1336
1346
|
config?: AxiosRequestConfig
|
|
1337
1347
|
): OperationResponse<Paths.GetPublicConfiguration.Responses.$200>
|
package/dist/openapi.json
CHANGED
|
@@ -127,6 +127,16 @@
|
|
|
127
127
|
"summary": "getPublicConfiguration",
|
|
128
128
|
"description": "Retrieve the public configuration of an app to install in your tenant",
|
|
129
129
|
"operationId": "getPublicConfiguration",
|
|
130
|
+
"parameters": [
|
|
131
|
+
{
|
|
132
|
+
"name": "version",
|
|
133
|
+
"in": "query",
|
|
134
|
+
"schema": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"description": "Version of the app configuration to retrieve"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
130
140
|
"responses": {
|
|
131
141
|
"200": {
|
|
132
142
|
"description": "Successful response",
|
|
@@ -1488,7 +1498,8 @@
|
|
|
1488
1498
|
"string",
|
|
1489
1499
|
"boolean",
|
|
1490
1500
|
"date",
|
|
1491
|
-
"datetime"
|
|
1501
|
+
"datetime",
|
|
1502
|
+
"link"
|
|
1492
1503
|
]
|
|
1493
1504
|
}
|
|
1494
1505
|
}
|
|
@@ -1918,11 +1929,22 @@
|
|
|
1918
1929
|
"PublicConfiguration": {
|
|
1919
1930
|
"description": "Public configuration of the published app",
|
|
1920
1931
|
"type": "object",
|
|
1932
|
+
"required": [
|
|
1933
|
+
"version",
|
|
1934
|
+
"components",
|
|
1935
|
+
"owner_org_id",
|
|
1936
|
+
"app_id",
|
|
1937
|
+
"name"
|
|
1938
|
+
],
|
|
1921
1939
|
"properties": {
|
|
1922
1940
|
"app_id": {
|
|
1923
1941
|
"type": "string",
|
|
1924
1942
|
"description": "ID of the app configuration"
|
|
1925
1943
|
},
|
|
1944
|
+
"support_email": {
|
|
1945
|
+
"type": "string",
|
|
1946
|
+
"description": "Email address for support requests"
|
|
1947
|
+
},
|
|
1926
1948
|
"owner_org_id": {
|
|
1927
1949
|
"type": "string",
|
|
1928
1950
|
"description": "Organization ID of the app owner"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/app-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.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",
|
|
@@ -73,4 +73,4 @@
|
|
|
73
73
|
"webpack-cli": "^4.4.0"
|
|
74
74
|
},
|
|
75
75
|
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
76
|
-
}
|
|
76
|
+
}
|