@aled1023/udl-sdk 1.1.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.
@@ -0,0 +1,319 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
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 type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ export interface BaseResponseCompleteUploadResponse {
17
+ 'code'?: number;
18
+ 'data'?: CompleteUploadResponse;
19
+ 'message'?: string;
20
+ }
21
+ export interface BaseResponseInitUploadResponse {
22
+ 'code'?: number;
23
+ 'data'?: InitUploadResponse;
24
+ 'message'?: string;
25
+ }
26
+ export interface BaseResponseListInteger {
27
+ 'code'?: number;
28
+ 'data'?: Array<number>;
29
+ 'message'?: string;
30
+ }
31
+ export interface BaseResponseString {
32
+ 'code'?: number;
33
+ 'data'?: string;
34
+ 'message'?: string;
35
+ }
36
+ export interface BaseResponseUploadChunkResponse {
37
+ 'code'?: number;
38
+ 'data'?: UploadChunkResponse;
39
+ 'message'?: string;
40
+ }
41
+ export interface CompleteUploadRequest {
42
+ 'uploadId'?: string;
43
+ }
44
+ export interface CompleteUploadResponse {
45
+ 'status'?: string;
46
+ 'missingChunks'?: Array<number>;
47
+ }
48
+ export interface EventRecord {
49
+ 'eventName'?: string;
50
+ 's3'?: S3Info;
51
+ }
52
+ export interface InitUploadRequest {
53
+ 'fileName'?: string;
54
+ 'fileSize'?: number;
55
+ }
56
+ export interface InitUploadResponse {
57
+ 'uploadId'?: string;
58
+ 'totalChunks'?: number;
59
+ }
60
+ export interface MinioEvent {
61
+ 'Records'?: Array<EventRecord>;
62
+ }
63
+ export interface ObjectInfo {
64
+ 'key'?: string;
65
+ }
66
+ export interface S3Info {
67
+ 'object'?: ObjectInfo;
68
+ }
69
+ export interface UploadChunkRequest {
70
+ 'file': File;
71
+ }
72
+ export interface UploadChunkResponse {
73
+ 'status'?: string;
74
+ 'chunkNumber'?: number;
75
+ }
76
+ /**
77
+ * FileLifecycleControllerApi - axios parameter creator
78
+ */
79
+ export declare const FileLifecycleControllerApiAxiosParamCreator: (configuration?: Configuration) => {
80
+ /**
81
+ *
82
+ * @param {number} fileId
83
+ * @param {string} [username]
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ deleteFile: (fileId: number, username?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
88
+ };
89
+ /**
90
+ * FileLifecycleControllerApi - functional programming interface
91
+ */
92
+ export declare const FileLifecycleControllerApiFp: (configuration?: Configuration) => {
93
+ /**
94
+ *
95
+ * @param {number} fileId
96
+ * @param {string} [username]
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteFile(fileId: number, username?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponseString>>;
101
+ };
102
+ /**
103
+ * FileLifecycleControllerApi - factory interface
104
+ */
105
+ export declare const FileLifecycleControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
106
+ /**
107
+ *
108
+ * @param {number} fileId
109
+ * @param {string} [username]
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ deleteFile(fileId: number, username?: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponseString>;
114
+ };
115
+ /**
116
+ * FileLifecycleControllerApi - object-oriented interface
117
+ */
118
+ export declare class FileLifecycleControllerApi extends BaseAPI {
119
+ /**
120
+ *
121
+ * @param {number} fileId
122
+ * @param {string} [username]
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ deleteFile(fileId: number, username?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseResponseString, any, {}>>;
127
+ }
128
+ /**
129
+ * FileUploadControllerApi - axios parameter creator
130
+ */
131
+ export declare const FileUploadControllerApiAxiosParamCreator: (configuration?: Configuration) => {
132
+ /**
133
+ *
134
+ * @param {string} uploadId
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ checkUploadedChunks: (uploadId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
139
+ /**
140
+ *
141
+ * @param {CompleteUploadRequest} completeUploadRequest
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ completeUpload: (completeUploadRequest: CompleteUploadRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
146
+ /**
147
+ *
148
+ * @param {InitUploadRequest} initUploadRequest
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ initUpload: (initUploadRequest: InitUploadRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
153
+ /**
154
+ *
155
+ * @param {string} uploadId
156
+ * @param {number} chunkIndex
157
+ * @param {UploadChunkRequest} [uploadChunkRequest]
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ uploadChunk: (uploadId: string, chunkIndex: number, uploadChunkRequest?: UploadChunkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
162
+ };
163
+ /**
164
+ * FileUploadControllerApi - functional programming interface
165
+ */
166
+ export declare const FileUploadControllerApiFp: (configuration?: Configuration) => {
167
+ /**
168
+ *
169
+ * @param {string} uploadId
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ checkUploadedChunks(uploadId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponseListInteger>>;
174
+ /**
175
+ *
176
+ * @param {CompleteUploadRequest} completeUploadRequest
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ completeUpload(completeUploadRequest: CompleteUploadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponseCompleteUploadResponse>>;
181
+ /**
182
+ *
183
+ * @param {InitUploadRequest} initUploadRequest
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ initUpload(initUploadRequest: InitUploadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponseInitUploadResponse>>;
188
+ /**
189
+ *
190
+ * @param {string} uploadId
191
+ * @param {number} chunkIndex
192
+ * @param {UploadChunkRequest} [uploadChunkRequest]
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ uploadChunk(uploadId: string, chunkIndex: number, uploadChunkRequest?: UploadChunkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponseUploadChunkResponse>>;
197
+ };
198
+ /**
199
+ * FileUploadControllerApi - factory interface
200
+ */
201
+ export declare const FileUploadControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
202
+ /**
203
+ *
204
+ * @param {string} uploadId
205
+ * @param {*} [options] Override http request option.
206
+ * @throws {RequiredError}
207
+ */
208
+ checkUploadedChunks(uploadId: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponseListInteger>;
209
+ /**
210
+ *
211
+ * @param {CompleteUploadRequest} completeUploadRequest
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ completeUpload(completeUploadRequest: CompleteUploadRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponseCompleteUploadResponse>;
216
+ /**
217
+ *
218
+ * @param {InitUploadRequest} initUploadRequest
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ initUpload(initUploadRequest: InitUploadRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponseInitUploadResponse>;
223
+ /**
224
+ *
225
+ * @param {string} uploadId
226
+ * @param {number} chunkIndex
227
+ * @param {UploadChunkRequest} [uploadChunkRequest]
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ uploadChunk(uploadId: string, chunkIndex: number, uploadChunkRequest?: UploadChunkRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponseUploadChunkResponse>;
232
+ };
233
+ /**
234
+ * FileUploadControllerApi - object-oriented interface
235
+ */
236
+ export declare class FileUploadControllerApi extends BaseAPI {
237
+ /**
238
+ *
239
+ * @param {string} uploadId
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ checkUploadedChunks(uploadId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseResponseListInteger, any, {}>>;
244
+ /**
245
+ *
246
+ * @param {CompleteUploadRequest} completeUploadRequest
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ completeUpload(completeUploadRequest: CompleteUploadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseResponseCompleteUploadResponse, any, {}>>;
251
+ /**
252
+ *
253
+ * @param {InitUploadRequest} initUploadRequest
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ initUpload(initUploadRequest: InitUploadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseResponseInitUploadResponse, any, {}>>;
258
+ /**
259
+ *
260
+ * @param {string} uploadId
261
+ * @param {number} chunkIndex
262
+ * @param {UploadChunkRequest} [uploadChunkRequest]
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ uploadChunk(uploadId: string, chunkIndex: number, uploadChunkRequest?: UploadChunkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseResponseUploadChunkResponse, any, {}>>;
267
+ }
268
+ /**
269
+ * MinioCallbackControllerApi - axios parameter creator
270
+ */
271
+ export declare const MinioCallbackControllerApiAxiosParamCreator: (configuration?: Configuration) => {
272
+ /**
273
+ *
274
+ * @param {string} authorization
275
+ * @param {MinioEvent} minioEvent
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ handleMinioCallback: (authorization: string, minioEvent: MinioEvent, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
280
+ };
281
+ /**
282
+ * MinioCallbackControllerApi - functional programming interface
283
+ */
284
+ export declare const MinioCallbackControllerApiFp: (configuration?: Configuration) => {
285
+ /**
286
+ *
287
+ * @param {string} authorization
288
+ * @param {MinioEvent} minioEvent
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ handleMinioCallback(authorization: string, minioEvent: MinioEvent, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponseString>>;
293
+ };
294
+ /**
295
+ * MinioCallbackControllerApi - factory interface
296
+ */
297
+ export declare const MinioCallbackControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
298
+ /**
299
+ *
300
+ * @param {string} authorization
301
+ * @param {MinioEvent} minioEvent
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ handleMinioCallback(authorization: string, minioEvent: MinioEvent, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponseString>;
306
+ };
307
+ /**
308
+ * MinioCallbackControllerApi - object-oriented interface
309
+ */
310
+ export declare class MinioCallbackControllerApi extends BaseAPI {
311
+ /**
312
+ *
313
+ * @param {string} authorization
314
+ * @param {MinioEvent} minioEvent
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ handleMinioCallback(authorization: string, minioEvent: MinioEvent, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseResponseString, any, {}>>;
319
+ }