@epilot/file-client 1.12.0 → 1.13.0
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/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/dist/openapi.d.ts +27 -7
- package/dist/openapi.json +0 -0
- package/package.json +4 -5
package/dist/client.d.ts
CHANGED
|
File without changes
|
package/dist/client.js
CHANGED
|
File without changes
|
package/dist/definition.d.ts
CHANGED
|
File without changes
|
package/dist/definition.js
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./openapi"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
+
|
|
2
3
|
import type {
|
|
3
4
|
OpenAPIClient,
|
|
4
5
|
Parameters,
|
|
5
6
|
UnknownParamsObject,
|
|
6
7
|
OperationResponse,
|
|
7
8
|
AxiosRequestConfig,
|
|
8
|
-
} from 'openapi-client-axios';
|
|
9
|
+
} from 'openapi-client-axios';
|
|
9
10
|
|
|
10
11
|
declare namespace Components {
|
|
11
12
|
namespace Schemas {
|
|
@@ -726,7 +727,7 @@ export interface OperationMethods {
|
|
|
726
727
|
* Generate pre-signed download S3 url for a file
|
|
727
728
|
*/
|
|
728
729
|
'downloadFile'(
|
|
729
|
-
parameters?: Parameters<Paths.DownloadFile.
|
|
730
|
+
parameters?: Parameters<Paths.DownloadFile.QueryParameters & Paths.DownloadFile.PathParameters> | null,
|
|
730
731
|
data?: any,
|
|
731
732
|
config?: AxiosRequestConfig
|
|
732
733
|
): OperationResponse<Paths.DownloadFile.Responses.$200>
|
|
@@ -766,7 +767,7 @@ export interface OperationMethods {
|
|
|
766
767
|
* Generate thumbnail preview for a file entity
|
|
767
768
|
*/
|
|
768
769
|
'previewFile'(
|
|
769
|
-
parameters?: Parameters<Paths.PreviewFile.
|
|
770
|
+
parameters?: Parameters<Paths.PreviewFile.QueryParameters & Paths.PreviewFile.PathParameters> | null,
|
|
770
771
|
data?: any,
|
|
771
772
|
config?: AxiosRequestConfig
|
|
772
773
|
): OperationResponse<any>
|
|
@@ -776,7 +777,7 @@ export interface OperationMethods {
|
|
|
776
777
|
* Generate thumbnail preview for a public file entity
|
|
777
778
|
*/
|
|
778
779
|
'previewPublicFile'(
|
|
779
|
-
parameters?: Parameters<Paths.PreviewPublicFile.
|
|
780
|
+
parameters?: Parameters<Paths.PreviewPublicFile.QueryParameters & Paths.PreviewPublicFile.PathParameters> | null,
|
|
780
781
|
data?: any,
|
|
781
782
|
config?: AxiosRequestConfig
|
|
782
783
|
): OperationResponse<any>
|
|
@@ -959,7 +960,7 @@ export interface PathsDictionary {
|
|
|
959
960
|
* Generate pre-signed download S3 url for a file
|
|
960
961
|
*/
|
|
961
962
|
'get'(
|
|
962
|
-
parameters?: Parameters<Paths.DownloadFile.
|
|
963
|
+
parameters?: Parameters<Paths.DownloadFile.QueryParameters & Paths.DownloadFile.PathParameters> | null,
|
|
963
964
|
data?: any,
|
|
964
965
|
config?: AxiosRequestConfig
|
|
965
966
|
): OperationResponse<Paths.DownloadFile.Responses.$200>
|
|
@@ -1007,7 +1008,7 @@ export interface PathsDictionary {
|
|
|
1007
1008
|
* Generate thumbnail preview for a file entity
|
|
1008
1009
|
*/
|
|
1009
1010
|
'get'(
|
|
1010
|
-
parameters?: Parameters<Paths.PreviewFile.
|
|
1011
|
+
parameters?: Parameters<Paths.PreviewFile.QueryParameters & Paths.PreviewFile.PathParameters> | null,
|
|
1011
1012
|
data?: any,
|
|
1012
1013
|
config?: AxiosRequestConfig
|
|
1013
1014
|
): OperationResponse<any>
|
|
@@ -1019,7 +1020,7 @@ export interface PathsDictionary {
|
|
|
1019
1020
|
* Generate thumbnail preview for a public file entity
|
|
1020
1021
|
*/
|
|
1021
1022
|
'get'(
|
|
1022
|
-
parameters?: Parameters<Paths.PreviewPublicFile.
|
|
1023
|
+
parameters?: Parameters<Paths.PreviewPublicFile.QueryParameters & Paths.PreviewPublicFile.PathParameters> | null,
|
|
1023
1024
|
data?: any,
|
|
1024
1025
|
config?: AxiosRequestConfig
|
|
1025
1026
|
): OperationResponse<any>
|
|
@@ -1165,3 +1166,22 @@ export interface PathsDictionary {
|
|
|
1165
1166
|
}
|
|
1166
1167
|
|
|
1167
1168
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
1169
|
+
|
|
1170
|
+
export type CommonSaveFilePayload = Components.Schemas.CommonSaveFilePayload;
|
|
1171
|
+
export type DeleteFilePayload = Components.Schemas.DeleteFilePayload;
|
|
1172
|
+
export type DownloadFilesPayload = Components.Schemas.DownloadFilesPayload;
|
|
1173
|
+
export type EntityId = Components.Schemas.EntityId;
|
|
1174
|
+
export type EntitySlug = Components.Schemas.EntitySlug;
|
|
1175
|
+
export type FileEntity = Components.Schemas.FileEntity;
|
|
1176
|
+
export type FileEntityId = Components.Schemas.FileEntityId;
|
|
1177
|
+
export type FileItem = Components.Schemas.FileItem;
|
|
1178
|
+
export type FileRelationItem = Components.Schemas.FileRelationItem;
|
|
1179
|
+
export type FileUpload = Components.Schemas.FileUpload;
|
|
1180
|
+
export type PublicLink = Components.Schemas.PublicLink;
|
|
1181
|
+
export type S3Reference = Components.Schemas.S3Reference;
|
|
1182
|
+
export type SaveCustomFilePayload = Components.Schemas.SaveCustomFilePayload;
|
|
1183
|
+
export type SaveFilePayload = Components.Schemas.SaveFilePayload;
|
|
1184
|
+
export type SaveFilePayloadV2 = Components.Schemas.SaveFilePayloadV2;
|
|
1185
|
+
export type SaveS3FilePayload = Components.Schemas.SaveS3FilePayload;
|
|
1186
|
+
export type UploadFilePayload = Components.Schemas.UploadFilePayload;
|
|
1187
|
+
export type VerifyCustomDownloadUrlPayload = Components.Schemas.VerifyCustomDownloadUrlPayload;
|
package/dist/openapi.json
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/file-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Client library for the epilot File API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"typescript": "tsc",
|
|
12
12
|
"bundle-definition": "webpack",
|
|
13
13
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/file.yaml",
|
|
14
|
-
"typegen": "
|
|
14
|
+
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
15
15
|
"build": "tsc && npm run bundle-definition",
|
|
16
16
|
"build:watch": "npm run build && tsc -w",
|
|
17
17
|
"prepublishOnly": "npm run typegen && npm run build",
|
|
@@ -61,8 +61,7 @@
|
|
|
61
61
|
"copy-webpack-plugin": "^7.0.0",
|
|
62
62
|
"jest": "^26.6.3",
|
|
63
63
|
"json-loader": "^0.5.7",
|
|
64
|
-
"
|
|
65
|
-
"openapicmd": "^2.1.0",
|
|
64
|
+
"openapicmd": "^2.6.0",
|
|
66
65
|
"ts-jest": "^26.5.0",
|
|
67
66
|
"ts-loader": "^8.0.14",
|
|
68
67
|
"ts-node": "^10.9.1",
|
|
@@ -70,5 +69,5 @@
|
|
|
70
69
|
"webpack": "^5.18.0",
|
|
71
70
|
"webpack-cli": "^4.4.0"
|
|
72
71
|
},
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "6c12dc4aaf7ddf60ad11c6f596fb478559fa3052"
|
|
74
73
|
}
|