@epilot/app-client 0.0.14 → 0.0.16

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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={187:function(e,r,t){var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=p(t(466));r.default=n.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":"listAppConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createAppConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"},{"name":"version","in":"query","description":"Version of the app configuration to retrieve. Defaults to latest"}],"get":{"operationId":"getAppConfiguration","responses":{}},"put":{"operationId":"updateAppConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/UpdateConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/logo":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"post":{"operationId":"createLogoUploadUrl","responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listAppVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getAppConfigurationVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpdateVersionRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstalledApps","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstalledApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"put":{"operationId":"installApp","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallAppRequest"},"responses":{}},"delete":{"operationId":"uninstallApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"UpdateConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpdateVersionRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},r={},t=function t(p){var n=r[p];if(void 0!==n)return n.exports;var a=r[p]={exports:{}};return e[p].call(a.exports,a,a.exports,t),a.exports}(187),p=exports;for(var n in t)p[n]=t[n];t.__esModule&&Object.defineProperty(p,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={187:function(e,r,p){var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=t(p(466));r.default=n.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":"listAppConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createAppConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getAppConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"put":{"operationId":"updateAppConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/UpdateConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/logo":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"post":{"operationId":"createLogoUploadUrl","responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listAppVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getAppConfigurationVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpdateVersionRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstalledApps","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstalledApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"put":{"operationId":"installApp","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallAppRequest"},"responses":{}},"delete":{"operationId":"uninstallApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"UpdateConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpdateVersionRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},r={},p=function p(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={exports:{}};return e[t].call(a.exports,a,a.exports,p),a.exports}(187),t=exports;for(var n in p)t[n]=p[n];p.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})();
@@ -40,15 +40,16 @@
40
40
  "in": "path",
41
41
  "required": true,
42
42
  "description": "ID of the app configuration"
43
- },
44
- {
45
- "name": "version",
46
- "in": "query",
47
- "description": "Version of the app configuration to retrieve. Defaults to latest"
48
43
  }
49
44
  ],
50
45
  "get": {
51
46
  "operationId": "getAppConfiguration",
47
+ "parameters": [
48
+ {
49
+ "name": "version",
50
+ "in": "query"
51
+ }
52
+ ],
52
53
  "responses": {}
53
54
  },
54
55
  "put": {
package/dist/openapi.d.ts CHANGED
@@ -577,7 +577,7 @@ declare namespace Components {
577
577
  /**
578
578
  * German translation
579
579
  */
580
- de?: string;
580
+ de: string;
581
581
  }
582
582
  export interface UploadFilePayload {
583
583
  /**
@@ -664,6 +664,12 @@ declare namespace Paths {
664
664
  }
665
665
  }
666
666
  namespace GetAppConfiguration {
667
+ namespace Parameters {
668
+ export type Version = string;
669
+ }
670
+ export interface QueryParameters {
671
+ version?: Parameters.Version;
672
+ }
667
673
  namespace Responses {
668
674
  export type $200 = /* Configuration of the published app */ Components.Schemas.AppConfiguration;
669
675
  export interface $404 {
@@ -843,14 +849,10 @@ declare namespace Paths {
843
849
  namespace V1AppConfigurations$AppId {
844
850
  namespace Parameters {
845
851
  export type AppId = string;
846
- export type Version = string;
847
852
  }
848
853
  export interface PathParameters {
849
854
  appId: Parameters.AppId;
850
855
  }
851
- export interface QueryParameters {
852
- version?: Parameters.Version;
853
- }
854
856
  }
855
857
  namespace V1AppConfigurations$AppIdLogo {
856
858
  namespace Parameters {
@@ -889,7 +891,7 @@ export interface OperationMethods {
889
891
  * Retrieve a specific app configuration
890
892
  */
891
893
  'getAppConfiguration'(
892
- parameters?: Parameters<Paths.V1AppConfigurations$AppId.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
894
+ parameters?: Parameters<Paths.GetAppConfiguration.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
893
895
  data?: any,
894
896
  config?: AxiosRequestConfig
895
897
  ): OperationResponse<Paths.GetAppConfiguration.Responses.$200>
@@ -899,7 +901,7 @@ export interface OperationMethods {
899
901
  * Update non-versioned configuration metadata of a given app configuration.
900
902
  */
901
903
  'updateAppConfigurationMetadata'(
902
- parameters?: Parameters<Paths.V1AppConfigurations$AppId.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
904
+ parameters?: Parameters<Paths.V1AppConfigurations$AppId.PathParameters> | null,
903
905
  data?: Paths.UpdateAppConfigurationMetadata.RequestBody,
904
906
  config?: AxiosRequestConfig
905
907
  ): OperationResponse<Paths.UpdateAppConfigurationMetadata.Responses.$204>
@@ -1055,7 +1057,7 @@ export interface PathsDictionary {
1055
1057
  * Retrieve a specific app configuration
1056
1058
  */
1057
1059
  'get'(
1058
- parameters?: Parameters<Paths.V1AppConfigurations$AppId.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
1060
+ parameters?: Parameters<Paths.GetAppConfiguration.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
1059
1061
  data?: any,
1060
1062
  config?: AxiosRequestConfig
1061
1063
  ): OperationResponse<Paths.GetAppConfiguration.Responses.$200>
@@ -1065,7 +1067,7 @@ export interface PathsDictionary {
1065
1067
  * Update non-versioned configuration metadata of a given app configuration.
1066
1068
  */
1067
1069
  'put'(
1068
- parameters?: Parameters<Paths.V1AppConfigurations$AppId.QueryParameters & Paths.V1AppConfigurations$AppId.PathParameters> | null,
1070
+ parameters?: Parameters<Paths.V1AppConfigurations$AppId.PathParameters> | null,
1069
1071
  data?: Paths.UpdateAppConfigurationMetadata.RequestBody,
1070
1072
  config?: AxiosRequestConfig
1071
1073
  ): OperationResponse<Paths.UpdateAppConfigurationMetadata.Responses.$204>
package/dist/openapi.json CHANGED
@@ -121,20 +121,22 @@
121
121
  "type": "string"
122
122
  },
123
123
  "description": "ID of the app configuration"
124
- },
125
- {
126
- "name": "version",
127
- "in": "query",
128
- "schema": {
129
- "type": "string"
130
- },
131
- "description": "Version of the app configuration to retrieve. Defaults to latest"
132
124
  }
133
125
  ],
134
126
  "get": {
135
127
  "summary": "getAppConfiguration",
136
128
  "description": "Retrieve a specific app configuration",
137
129
  "operationId": "getAppConfiguration",
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
+ ],
138
140
  "responses": {
139
141
  "200": {
140
142
  "description": "Successful response",
@@ -1541,6 +1543,9 @@
1541
1543
  },
1542
1544
  "TranslatedString": {
1543
1545
  "type": "object",
1546
+ "required": [
1547
+ "de"
1548
+ ],
1544
1549
  "properties": {
1545
1550
  "en": {
1546
1551
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",