@coscine/api-client 3.0.0 → 3.2.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.
Files changed (74) hide show
  1. package/dist/index.js +2618 -2357
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.js +2620 -2359
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/lib/Coscine.Api/api.js +2568 -962
  6. package/dist/lib/Coscine.Api/api.js.map +1 -1
  7. package/dist/lib/apis.js +37 -37
  8. package/dist/lib/apis.js.map +1 -1
  9. package/dist/lib/index.js +4 -4
  10. package/dist/lib/index.js.map +1 -1
  11. package/dist/types/Coscine.Api/api.d.ts +2302 -839
  12. package/dist/types/apis.d.ts +31 -26
  13. package/dist/types/index.d.ts +62 -52
  14. package/package.json +1 -1
  15. package/dist/lib/Coscine.Api.Admin/api.js +0 -232
  16. package/dist/lib/Coscine.Api.Admin/api.js.map +0 -1
  17. package/dist/lib/Coscine.Api.Admin/base.js +0 -65
  18. package/dist/lib/Coscine.Api.Admin/base.js.map +0 -1
  19. package/dist/lib/Coscine.Api.Admin/common.js +0 -153
  20. package/dist/lib/Coscine.Api.Admin/common.js.map +0 -1
  21. package/dist/lib/Coscine.Api.Admin/configuration.js +0 -43
  22. package/dist/lib/Coscine.Api.Admin/configuration.js.map +0 -1
  23. package/dist/lib/Coscine.Api.Admin/index.js +0 -32
  24. package/dist/lib/Coscine.Api.Admin/index.js.map +0 -1
  25. package/dist/lib/Coscine.Api.Blob/api.js +0 -301
  26. package/dist/lib/Coscine.Api.Blob/api.js.map +0 -1
  27. package/dist/lib/Coscine.Api.Blob/base.js +0 -65
  28. package/dist/lib/Coscine.Api.Blob/base.js.map +0 -1
  29. package/dist/lib/Coscine.Api.Blob/common.js +0 -153
  30. package/dist/lib/Coscine.Api.Blob/common.js.map +0 -1
  31. package/dist/lib/Coscine.Api.Blob/configuration.js +0 -43
  32. package/dist/lib/Coscine.Api.Blob/configuration.js.map +0 -1
  33. package/dist/lib/Coscine.Api.Blob/index.js +0 -32
  34. package/dist/lib/Coscine.Api.Blob/index.js.map +0 -1
  35. package/dist/lib/Coscine.Api.Search/api.js +0 -224
  36. package/dist/lib/Coscine.Api.Search/api.js.map +0 -1
  37. package/dist/lib/Coscine.Api.Search/base.js +0 -65
  38. package/dist/lib/Coscine.Api.Search/base.js.map +0 -1
  39. package/dist/lib/Coscine.Api.Search/common.js +0 -153
  40. package/dist/lib/Coscine.Api.Search/common.js.map +0 -1
  41. package/dist/lib/Coscine.Api.Search/configuration.js +0 -43
  42. package/dist/lib/Coscine.Api.Search/configuration.js.map +0 -1
  43. package/dist/lib/Coscine.Api.Search/index.js +0 -32
  44. package/dist/lib/Coscine.Api.Search/index.js.map +0 -1
  45. package/dist/lib/Coscine.Api.Tree/api.js +0 -231
  46. package/dist/lib/Coscine.Api.Tree/api.js.map +0 -1
  47. package/dist/lib/Coscine.Api.Tree/base.js +0 -65
  48. package/dist/lib/Coscine.Api.Tree/base.js.map +0 -1
  49. package/dist/lib/Coscine.Api.Tree/common.js +0 -153
  50. package/dist/lib/Coscine.Api.Tree/common.js.map +0 -1
  51. package/dist/lib/Coscine.Api.Tree/configuration.js +0 -43
  52. package/dist/lib/Coscine.Api.Tree/configuration.js.map +0 -1
  53. package/dist/lib/Coscine.Api.Tree/index.js +0 -32
  54. package/dist/lib/Coscine.Api.Tree/index.js.map +0 -1
  55. package/dist/types/Coscine.Api.Admin/api.d.ts +0 -233
  56. package/dist/types/Coscine.Api.Admin/base.d.ts +0 -55
  57. package/dist/types/Coscine.Api.Admin/common.d.ts +0 -65
  58. package/dist/types/Coscine.Api.Admin/configuration.d.ts +0 -83
  59. package/dist/types/Coscine.Api.Admin/index.d.ts +0 -13
  60. package/dist/types/Coscine.Api.Blob/api.d.ts +0 -155
  61. package/dist/types/Coscine.Api.Blob/base.d.ts +0 -55
  62. package/dist/types/Coscine.Api.Blob/common.d.ts +0 -65
  63. package/dist/types/Coscine.Api.Blob/configuration.d.ts +0 -83
  64. package/dist/types/Coscine.Api.Blob/index.d.ts +0 -13
  65. package/dist/types/Coscine.Api.Search/api.d.ts +0 -160
  66. package/dist/types/Coscine.Api.Search/base.d.ts +0 -55
  67. package/dist/types/Coscine.Api.Search/common.d.ts +0 -65
  68. package/dist/types/Coscine.Api.Search/configuration.d.ts +0 -83
  69. package/dist/types/Coscine.Api.Search/index.d.ts +0 -13
  70. package/dist/types/Coscine.Api.Tree/api.d.ts +0 -122
  71. package/dist/types/Coscine.Api.Tree/base.d.ts +0 -55
  72. package/dist/types/Coscine.Api.Tree/common.d.ts +0 -65
  73. package/dist/types/Coscine.Api.Tree/configuration.d.ts +0 -83
  74. package/dist/types/Coscine.Api.Tree/index.d.ts +0 -13
@@ -1,233 +0,0 @@
1
- /**
2
- * Coscine.Api.Admin
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.0.5
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from './configuration';
13
- import { AxiosPromise, AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from './base';
15
- /**
16
- * Retuned when searching for a project. Contains basic informations and quotas.
17
- * @export
18
- * @interface AdminProjectObject
19
- */
20
- export interface AdminProjectObject {
21
- /**
22
- * Project Id
23
- * @type {string}
24
- * @memberof AdminProjectObject
25
- */
26
- id?: string;
27
- /**
28
- * Project Name (full project name)
29
- * @type {string}
30
- * @memberof AdminProjectObject
31
- */
32
- projectName?: string | null;
33
- /**
34
- * Project Display Name
35
- * @type {string}
36
- * @memberof AdminProjectObject
37
- */
38
- displayName?: string | null;
39
- /**
40
- * List of the admin quotas (AdminQuotaReturnObject)
41
- * @type {Array<AdminQuotaReturnObject>}
42
- * @memberof AdminProjectObject
43
- */
44
- quotas?: Array<AdminQuotaReturnObject> | null;
45
- }
46
- /**
47
- * Returned when searching for a project, as part of the AdminProjectObject. Contains quota informations.
48
- * @export
49
- * @interface AdminQuotaReturnObject
50
- */
51
- export interface AdminQuotaReturnObject {
52
- /**
53
- * Quota relation id (See Database, Table \'ProjectQuotas\', Column \'RelationId\').
54
- * @type {string}
55
- * @memberof AdminQuotaReturnObject
56
- */
57
- relationId?: string;
58
- /**
59
- * Which resource type the quota is referring to.
60
- * @type {string}
61
- * @memberof AdminQuotaReturnObject
62
- */
63
- resourceType?: string | null;
64
- /**
65
- * How much space is used by all files in all resources in total [Bytes].
66
- * @type {QuotaDimObject}
67
- * @memberof AdminQuotaReturnObject
68
- */
69
- totalUsed?: QuotaDimObject | null;
70
- /**
71
- * How much space is reserved by resources in total [GiB]. Is equal to the sum of all resource quota reserved values.
72
- * @type {QuotaDimObject}
73
- * @memberof AdminQuotaReturnObject
74
- */
75
- totalReserved?: QuotaDimObject | null;
76
- /**
77
- * How much space is currently allocated and is available to be taken by resources [GiB] (See Database, Table \'ProjectQuotas\', Column \'Quota\').
78
- * @type {QuotaDimObject}
79
- * @memberof AdminQuotaReturnObject
80
- */
81
- allocated?: QuotaDimObject | null;
82
- /**
83
- * How much maximum space is possible to be taken by resources [GiB] (See Database, Table \'ProjectQuotas\', Column \'MaxQuota\').
84
- * @type {QuotaDimObject}
85
- * @memberof AdminQuotaReturnObject
86
- */
87
- maximum?: QuotaDimObject | null;
88
- }
89
- /**
90
- *
91
- * @export
92
- * @interface QuotaDimObject
93
- */
94
- export interface QuotaDimObject {
95
- /**
96
- *
97
- * @type {number}
98
- * @memberof QuotaDimObject
99
- */
100
- value?: number;
101
- /**
102
- *
103
- * @type {QuotaUnit}
104
- * @memberof QuotaDimObject
105
- */
106
- unit?: QuotaUnit;
107
- }
108
- /**
109
- *
110
- * @export
111
- * @enum {string}
112
- */
113
- export declare enum QuotaUnit {
114
- Byte = "https://qudt.org/vocab/unit/BYTE",
115
- KibiByte = "https://qudt.org/vocab/unit/KibiBYTE",
116
- MebiByte = "https://qudt.org/vocab/unit/MebiBYTE",
117
- GibiByte = "https://qudt.org/vocab/unit/GibiBYTE",
118
- TebiByte = "https://qudt.org/vocab/unit/TebiBYTE",
119
- PebiByte = "https://qudt.org/vocab/unit/PebiBYTE"
120
- }
121
- /**
122
- * Data send to update the project quota.
123
- * @export
124
- * @interface UpdateQuotaParameterObject
125
- */
126
- export interface UpdateQuotaParameterObject {
127
- /**
128
- * The new maximum project quota value.
129
- * @type {number}
130
- * @memberof UpdateQuotaParameterObject
131
- */
132
- maximumGiB?: number;
133
- }
134
- /**
135
- * AdminApi - axios parameter creator
136
- * @export
137
- */
138
- export declare const AdminApiAxiosParamCreator: (configuration?: Configuration) => {
139
- /**
140
- *
141
- * @summary Find the project related to the projectString(GUID or slug)
142
- * @param {string} projectString The project id (GUID) or slug (from URL).
143
- * @param {*} [options] Override http request option.
144
- * @throws {RequiredError}
145
- */
146
- adminGetProject: (projectString: string, options?: any) => Promise<RequestArgs>;
147
- /**
148
- *
149
- * @summary Update a project maximum and allocated quota
150
- * @param {string} projectId Id of the project
151
- * @param {string} resourceTypeId Id of the resource type
152
- * @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- adminUpdateQuota: (projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any) => Promise<RequestArgs>;
157
- };
158
- /**
159
- * AdminApi - functional programming interface
160
- * @export
161
- */
162
- export declare const AdminApiFp: (configuration?: Configuration) => {
163
- /**
164
- *
165
- * @summary Find the project related to the projectString(GUID or slug)
166
- * @param {string} projectString The project id (GUID) or slug (from URL).
167
- * @param {*} [options] Override http request option.
168
- * @throws {RequiredError}
169
- */
170
- adminGetProject(projectString: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminProjectObject>>;
171
- /**
172
- *
173
- * @summary Update a project maximum and allocated quota
174
- * @param {string} projectId Id of the project
175
- * @param {string} resourceTypeId Id of the resource type
176
- * @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
177
- * @param {*} [options] Override http request option.
178
- * @throws {RequiredError}
179
- */
180
- adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
181
- };
182
- /**
183
- * AdminApi - factory interface
184
- * @export
185
- */
186
- export declare const AdminApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
187
- /**
188
- *
189
- * @summary Find the project related to the projectString(GUID or slug)
190
- * @param {string} projectString The project id (GUID) or slug (from URL).
191
- * @param {*} [options] Override http request option.
192
- * @throws {RequiredError}
193
- */
194
- adminGetProject(projectString: string, options?: any): AxiosPromise<AdminProjectObject>;
195
- /**
196
- *
197
- * @summary Update a project maximum and allocated quota
198
- * @param {string} projectId Id of the project
199
- * @param {string} resourceTypeId Id of the resource type
200
- * @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- */
204
- adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): AxiosPromise<any>;
205
- };
206
- /**
207
- * AdminApi - object-oriented interface
208
- * @export
209
- * @class AdminApi
210
- * @extends {BaseAPI}
211
- */
212
- export declare class AdminApi extends BaseAPI {
213
- /**
214
- *
215
- * @summary Find the project related to the projectString(GUID or slug)
216
- * @param {string} projectString The project id (GUID) or slug (from URL).
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- * @memberof AdminApi
220
- */
221
- adminGetProject(projectString: string, options?: any): Promise<import("axios").AxiosResponse<AdminProjectObject>>;
222
- /**
223
- *
224
- * @summary Update a project maximum and allocated quota
225
- * @param {string} projectId Id of the project
226
- * @param {string} resourceTypeId Id of the resource type
227
- * @param {UpdateQuotaParameterObject} updateQuotaParameterObject JSON object for updating the project maximum and allocated quota.
228
- * @param {*} [options] Override http request option.
229
- * @throws {RequiredError}
230
- * @memberof AdminApi
231
- */
232
- adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): Promise<import("axios").AxiosResponse<any>>;
233
- }
@@ -1,55 +0,0 @@
1
- /**
2
- * Coscine.Api.Admin
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.0.5
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
14
- export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const COLLECTION_FORMATS: {
20
- csv: string;
21
- ssv: string;
22
- tsv: string;
23
- pipes: string;
24
- };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
- export interface RequestArgs {
31
- url: string;
32
- options: any;
33
- }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
- export declare class BaseAPI {
40
- protected basePath: string;
41
- protected axios: AxiosInstance;
42
- protected configuration: Configuration | undefined;
43
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
- }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
- export declare class RequiredError extends Error {
52
- field: string;
53
- name: "RequiredError";
54
- constructor(field: string, msg?: string);
55
- }
@@ -1,65 +0,0 @@
1
- /**
2
- * Coscine.Api.Admin
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.0.5
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const DUMMY_BASE_URL = "https://example.com";
20
- /**
21
- *
22
- * @throws {RequiredError}
23
- * @export
24
- */
25
- export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
- export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
- /**
52
- *
53
- * @export
54
- */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
- export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
@@ -1,83 +0,0 @@
1
- /**
2
- * Coscine.Api.Admin
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.0.5
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export interface ConfigurationParameters {
13
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
- username?: string;
15
- password?: string;
16
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
- basePath?: string;
18
- baseOptions?: any;
19
- formDataCtor?: new () => any;
20
- }
21
- export declare class Configuration {
22
- /**
23
- * parameter for apiKey security
24
- * @param name security name
25
- * @memberof Configuration
26
- */
27
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
- /**
29
- * parameter for basic security
30
- *
31
- * @type {string}
32
- * @memberof Configuration
33
- */
34
- username?: string;
35
- /**
36
- * parameter for basic security
37
- *
38
- * @type {string}
39
- * @memberof Configuration
40
- */
41
- password?: string;
42
- /**
43
- * parameter for oauth2 security
44
- * @param name security name
45
- * @param scopes oauth2 scope
46
- * @memberof Configuration
47
- */
48
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
- /**
50
- * override base path
51
- *
52
- * @type {string}
53
- * @memberof Configuration
54
- */
55
- basePath?: string;
56
- /**
57
- * base options for axios calls
58
- *
59
- * @type {any}
60
- * @memberof Configuration
61
- */
62
- baseOptions?: any;
63
- /**
64
- * The FormData constructor that will be used to create multipart form data
65
- * requests. You can inject this here so that execution environments that
66
- * do not support the FormData class can still run the generated client.
67
- *
68
- * @type {new () => FormData}
69
- */
70
- formDataCtor?: new () => any;
71
- constructor(param?: ConfigurationParameters);
72
- /**
73
- * Check if the given MIME is a JSON MIME.
74
- * JSON MIME examples:
75
- * application/json
76
- * application/json; charset=UTF8
77
- * APPLICATION/JSON
78
- * application/vnd.company+json
79
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
- * @return True if the given MIME is JSON, false otherwise.
81
- */
82
- isJsonMime(mime: string): boolean;
83
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Coscine.Api.Admin
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.0.5
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export * from "./api";
13
- export * from "./configuration";
@@ -1,155 +0,0 @@
1
- /**
2
- * Coscine.Api.Blob
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.2.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from './configuration';
13
- import { AxiosPromise, AxiosInstance } from 'axios';
14
- import { RequestArgs, BaseAPI } from './base';
15
- /**
16
- * BlobApi - axios parameter creator
17
- * @export
18
- */
19
- export declare const BlobApiAxiosParamCreator: (configuration?: Configuration) => {
20
- /**
21
- *
22
- * @summary This method deletes a given file
23
- * @param {string} resourceId Id of the resource
24
- * @param {string} [path] Path to the file
25
- * @param {*} [options] Override http request option.
26
- * @throws {RequiredError}
27
- */
28
- blobDeleteFileWithParameter: (resourceId: string, path?: string, options?: any) => Promise<RequestArgs>;
29
- /**
30
- *
31
- * @summary This method checks if the given file exists and returns it
32
- * @param {string} resourceId Id of the resource
33
- * @param {string} [path] Path to the file
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- blobGetFileWithParameter: (resourceId: string, path?: string, options?: any) => Promise<RequestArgs>;
38
- /**
39
- *
40
- * @summary This method uploads a given File
41
- * @param {string} resourceId Id of the resource
42
- * @param {string} [path] Path to the file
43
- * @param {Array<any>} [files]
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- blobUploadFileWithParameter: (resourceId: string, path?: string, files?: Array<any>, options?: any) => Promise<RequestArgs>;
48
- };
49
- /**
50
- * BlobApi - functional programming interface
51
- * @export
52
- */
53
- export declare const BlobApiFp: (configuration?: Configuration) => {
54
- /**
55
- *
56
- * @summary This method deletes a given file
57
- * @param {string} resourceId Id of the resource
58
- * @param {string} [path] Path to the file
59
- * @param {*} [options] Override http request option.
60
- * @throws {RequiredError}
61
- */
62
- blobDeleteFileWithParameter(resourceId: string, path?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
63
- /**
64
- *
65
- * @summary This method checks if the given file exists and returns it
66
- * @param {string} resourceId Id of the resource
67
- * @param {string} [path] Path to the file
68
- * @param {*} [options] Override http request option.
69
- * @throws {RequiredError}
70
- */
71
- blobGetFileWithParameter(resourceId: string, path?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
72
- /**
73
- *
74
- * @summary This method uploads a given File
75
- * @param {string} resourceId Id of the resource
76
- * @param {string} [path] Path to the file
77
- * @param {Array<any>} [files]
78
- * @param {*} [options] Override http request option.
79
- * @throws {RequiredError}
80
- */
81
- blobUploadFileWithParameter(resourceId: string, path?: string, files?: Array<any>, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
82
- };
83
- /**
84
- * BlobApi - factory interface
85
- * @export
86
- */
87
- export declare const BlobApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
88
- /**
89
- *
90
- * @summary This method deletes a given file
91
- * @param {string} resourceId Id of the resource
92
- * @param {string} [path] Path to the file
93
- * @param {*} [options] Override http request option.
94
- * @throws {RequiredError}
95
- */
96
- blobDeleteFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any>;
97
- /**
98
- *
99
- * @summary This method checks if the given file exists and returns it
100
- * @param {string} resourceId Id of the resource
101
- * @param {string} [path] Path to the file
102
- * @param {*} [options] Override http request option.
103
- * @throws {RequiredError}
104
- */
105
- blobGetFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any>;
106
- /**
107
- *
108
- * @summary This method uploads a given File
109
- * @param {string} resourceId Id of the resource
110
- * @param {string} [path] Path to the file
111
- * @param {Array<any>} [files]
112
- * @param {*} [options] Override http request option.
113
- * @throws {RequiredError}
114
- */
115
- blobUploadFileWithParameter(resourceId: string, path?: string, files?: Array<any>, options?: any): AxiosPromise<any>;
116
- };
117
- /**
118
- * BlobApi - object-oriented interface
119
- * @export
120
- * @class BlobApi
121
- * @extends {BaseAPI}
122
- */
123
- export declare class BlobApi extends BaseAPI {
124
- /**
125
- *
126
- * @summary This method deletes a given file
127
- * @param {string} resourceId Id of the resource
128
- * @param {string} [path] Path to the file
129
- * @param {*} [options] Override http request option.
130
- * @throws {RequiredError}
131
- * @memberof BlobApi
132
- */
133
- blobDeleteFileWithParameter(resourceId: string, path?: string, options?: any): Promise<import("axios").AxiosResponse<any>>;
134
- /**
135
- *
136
- * @summary This method checks if the given file exists and returns it
137
- * @param {string} resourceId Id of the resource
138
- * @param {string} [path] Path to the file
139
- * @param {*} [options] Override http request option.
140
- * @throws {RequiredError}
141
- * @memberof BlobApi
142
- */
143
- blobGetFileWithParameter(resourceId: string, path?: string, options?: any): Promise<import("axios").AxiosResponse<any>>;
144
- /**
145
- *
146
- * @summary This method uploads a given File
147
- * @param {string} resourceId Id of the resource
148
- * @param {string} [path] Path to the file
149
- * @param {Array<any>} [files]
150
- * @param {*} [options] Override http request option.
151
- * @throws {RequiredError}
152
- * @memberof BlobApi
153
- */
154
- blobUploadFileWithParameter(resourceId: string, path?: string, files?: Array<any>, options?: any): Promise<import("axios").AxiosResponse<any>>;
155
- }
@@ -1,55 +0,0 @@
1
- /**
2
- * Coscine.Api.Blob
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: 3.2.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
14
- export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const COLLECTION_FORMATS: {
20
- csv: string;
21
- ssv: string;
22
- tsv: string;
23
- pipes: string;
24
- };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
- export interface RequestArgs {
31
- url: string;
32
- options: any;
33
- }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
- export declare class BaseAPI {
40
- protected basePath: string;
41
- protected axios: AxiosInstance;
42
- protected configuration: Configuration | undefined;
43
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
- }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
- export declare class RequiredError extends Error {
52
- field: string;
53
- name: "RequiredError";
54
- constructor(field: string, msg?: string);
55
- }