ffmpeglab-sdk 0.3.20 → 0.3.23
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/.openapi-generator/FILES +20 -0
- package/dist/apis/FilesApi.d.ts +115 -0
- package/dist/apis/FilesApi.js +179 -0
- package/dist/apis/PipelinesApi.d.ts +147 -0
- package/dist/apis/PipelinesApi.js +209 -0
- package/dist/apis/RendersApi.d.ts +77 -0
- package/dist/apis/RendersApi.js +109 -1
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/FilesApi.d.ts +115 -0
- package/dist/esm/apis/FilesApi.js +175 -0
- package/dist/esm/apis/PipelinesApi.d.ts +147 -0
- package/dist/esm/apis/PipelinesApi.js +205 -0
- package/dist/esm/apis/RendersApi.d.ts +77 -0
- package/dist/esm/apis/RendersApi.js +108 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/CreatePipelineDto.d.ts +50 -0
- package/dist/esm/models/CreatePipelineDto.js +55 -0
- package/dist/esm/models/EditorProjectConfiguration.d.ts +2 -0
- package/dist/esm/models/EditorProjectConfiguration.js +3 -1
- package/dist/esm/models/EncoderProjectEncoding.d.ts +2 -0
- package/dist/esm/models/EncoderProjectEncoding.js +3 -1
- package/dist/esm/models/FileListDto.d.ts +33 -0
- package/dist/esm/models/FileListDto.js +44 -0
- package/dist/esm/models/FileObject.d.ts +50 -0
- package/dist/esm/models/FileObject.js +55 -0
- package/dist/esm/models/FileResponseDto.d.ts +32 -0
- package/dist/esm/models/FileResponseDto.js +43 -0
- package/dist/esm/models/LogPiece.d.ts +56 -0
- package/dist/esm/models/LogPiece.js +59 -0
- package/dist/esm/models/LogsResponse.d.ts +33 -0
- package/dist/esm/models/LogsResponse.js +44 -0
- package/dist/esm/models/Pipeline.d.ts +80 -0
- package/dist/esm/models/Pipeline.js +75 -0
- package/dist/esm/models/UpdatePipelineDto.d.ts +56 -0
- package/dist/esm/models/UpdatePipelineDto.js +59 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/CreatePipelineDto.d.ts +50 -0
- package/dist/models/CreatePipelineDto.js +62 -0
- package/dist/models/EditorProjectConfiguration.d.ts +2 -0
- package/dist/models/EditorProjectConfiguration.js +3 -1
- package/dist/models/EncoderProjectEncoding.d.ts +2 -0
- package/dist/models/EncoderProjectEncoding.js +3 -1
- package/dist/models/FileListDto.d.ts +33 -0
- package/dist/models/FileListDto.js +51 -0
- package/dist/models/FileObject.d.ts +50 -0
- package/dist/models/FileObject.js +62 -0
- package/dist/models/FileResponseDto.d.ts +32 -0
- package/dist/models/FileResponseDto.js +50 -0
- package/dist/models/LogPiece.d.ts +56 -0
- package/dist/models/LogPiece.js +66 -0
- package/dist/models/LogsResponse.d.ts +33 -0
- package/dist/models/LogsResponse.js +51 -0
- package/dist/models/Pipeline.d.ts +80 -0
- package/dist/models/Pipeline.js +82 -0
- package/dist/models/UpdatePipelineDto.d.ts +56 -0
- package/dist/models/UpdatePipelineDto.js +66 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/CreatePipelineDto.md +40 -0
- package/docs/FileListDto.md +34 -0
- package/docs/FileObject.md +40 -0
- package/docs/FileResponseDto.md +34 -0
- package/docs/FilesApi.md +210 -0
- package/docs/LogPiece.md +42 -0
- package/docs/LogsResponse.md +34 -0
- package/docs/Pipeline.md +50 -0
- package/docs/PipelinesApi.md +280 -0
- package/docs/RendersApi.md +146 -0
- package/docs/UpdatePipelineDto.md +42 -0
- package/package.json +1 -1
- package/src/apis/FilesApi.ts +274 -0
- package/src/apis/PipelinesApi.ts +340 -0
- package/src/apis/RendersApi.ts +194 -0
- package/src/apis/index.ts +2 -0
- package/src/models/CreatePipelineDto.ts +93 -0
- package/src/models/EditorProjectConfiguration.ts +3 -1
- package/src/models/EncoderProjectEncoding.ts +3 -1
- package/src/models/FileListDto.ts +74 -0
- package/src/models/FileObject.ts +93 -0
- package/src/models/FileResponseDto.ts +66 -0
- package/src/models/LogPiece.ts +102 -0
- package/src/models/LogsResponse.ts +74 -0
- package/src/models/Pipeline.ts +138 -0
- package/src/models/UpdatePipelineDto.ts +102 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* FFmpeglab
|
|
5
|
+
* FFmpeglab API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type FileListDto,
|
|
18
|
+
FileListDtoFromJSON,
|
|
19
|
+
FileListDtoToJSON,
|
|
20
|
+
} from '../models/FileListDto';
|
|
21
|
+
import {
|
|
22
|
+
type FileResponseDto,
|
|
23
|
+
FileResponseDtoFromJSON,
|
|
24
|
+
FileResponseDtoToJSON,
|
|
25
|
+
} from '../models/FileResponseDto';
|
|
26
|
+
|
|
27
|
+
export interface FilesControllerFileRequest {
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface FilesControllerUploadRequest {
|
|
32
|
+
file: Blob;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* FilesApi - interface
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
* @interface FilesApiInterface
|
|
40
|
+
*/
|
|
41
|
+
export interface FilesApiInterface {
|
|
42
|
+
/**
|
|
43
|
+
* Creates request options for filesControllerFile without sending the request
|
|
44
|
+
* @param {string} id The ID of the file
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
* @memberof FilesApiInterface
|
|
47
|
+
*/
|
|
48
|
+
filesControllerFileRequestOpts(requestParameters: FilesControllerFileRequest): Promise<runtime.RequestOpts>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {string} id The ID of the file
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
* @memberof FilesApiInterface
|
|
56
|
+
*/
|
|
57
|
+
filesControllerFileRaw(requestParameters: FilesControllerFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileResponseDto>>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*/
|
|
61
|
+
filesControllerFile(requestParameters: FilesControllerFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileResponseDto>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Creates request options for filesControllerList without sending the request
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof FilesApiInterface
|
|
67
|
+
*/
|
|
68
|
+
filesControllerListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof FilesApiInterface
|
|
75
|
+
*/
|
|
76
|
+
filesControllerListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FileListDto>>>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
*/
|
|
80
|
+
filesControllerList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FileListDto>>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Creates request options for filesControllerUpload without sending the request
|
|
84
|
+
* @param {Blob} file
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
* @memberof FilesApiInterface
|
|
87
|
+
*/
|
|
88
|
+
filesControllerUploadRequestOpts(requestParameters: FilesControllerUploadRequest): Promise<runtime.RequestOpts>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @param {Blob} file
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
* @memberof FilesApiInterface
|
|
96
|
+
*/
|
|
97
|
+
filesControllerUploadRaw(requestParameters: FilesControllerUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
*/
|
|
101
|
+
filesControllerUpload(requestParameters: FilesControllerUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
export class FilesApi extends runtime.BaseAPI implements FilesApiInterface {
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Creates request options for filesControllerFile without sending the request
|
|
112
|
+
*/
|
|
113
|
+
async filesControllerFileRequestOpts(requestParameters: FilesControllerFileRequest): Promise<runtime.RequestOpts> {
|
|
114
|
+
if (requestParameters['id'] == null) {
|
|
115
|
+
throw new runtime.RequiredError(
|
|
116
|
+
'id',
|
|
117
|
+
'Required parameter "id" was null or undefined when calling filesControllerFile().'
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const queryParameters: any = {};
|
|
122
|
+
|
|
123
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
124
|
+
|
|
125
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
126
|
+
const token = this.configuration.accessToken;
|
|
127
|
+
const tokenString = await token("bearer", []);
|
|
128
|
+
|
|
129
|
+
if (tokenString) {
|
|
130
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
let urlPath = `/files/file/{id}`;
|
|
135
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
136
|
+
|
|
137
|
+
return {
|
|
138
|
+
path: urlPath,
|
|
139
|
+
method: 'GET',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
*/
|
|
147
|
+
async filesControllerFileRaw(requestParameters: FilesControllerFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileResponseDto>> {
|
|
148
|
+
const requestOptions = await this.filesControllerFileRequestOpts(requestParameters);
|
|
149
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
150
|
+
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FileResponseDtoFromJSON(jsonValue));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
*/
|
|
156
|
+
async filesControllerFile(requestParameters: FilesControllerFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileResponseDto> {
|
|
157
|
+
const response = await this.filesControllerFileRaw(requestParameters, initOverrides);
|
|
158
|
+
return await response.value();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for filesControllerList without sending the request
|
|
163
|
+
*/
|
|
164
|
+
async filesControllerListRequestOpts(): Promise<runtime.RequestOpts> {
|
|
165
|
+
const queryParameters: any = {};
|
|
166
|
+
|
|
167
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
+
|
|
169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = await token("bearer", []);
|
|
172
|
+
|
|
173
|
+
if (tokenString) {
|
|
174
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
let urlPath = `/files/list`;
|
|
179
|
+
|
|
180
|
+
return {
|
|
181
|
+
path: urlPath,
|
|
182
|
+
method: 'GET',
|
|
183
|
+
headers: headerParameters,
|
|
184
|
+
query: queryParameters,
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
*/
|
|
190
|
+
async filesControllerListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FileListDto>>> {
|
|
191
|
+
const requestOptions = await this.filesControllerListRequestOpts();
|
|
192
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
193
|
+
|
|
194
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FileListDtoFromJSON));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
*/
|
|
199
|
+
async filesControllerList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FileListDto>> {
|
|
200
|
+
const response = await this.filesControllerListRaw(initOverrides);
|
|
201
|
+
return await response.value();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Creates request options for filesControllerUpload without sending the request
|
|
206
|
+
*/
|
|
207
|
+
async filesControllerUploadRequestOpts(requestParameters: FilesControllerUploadRequest): Promise<runtime.RequestOpts> {
|
|
208
|
+
if (requestParameters['file'] == null) {
|
|
209
|
+
throw new runtime.RequiredError(
|
|
210
|
+
'file',
|
|
211
|
+
'Required parameter "file" was null or undefined when calling filesControllerUpload().'
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const queryParameters: any = {};
|
|
216
|
+
|
|
217
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
218
|
+
|
|
219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
220
|
+
const token = this.configuration.accessToken;
|
|
221
|
+
const tokenString = await token("bearer", []);
|
|
222
|
+
|
|
223
|
+
if (tokenString) {
|
|
224
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
const consumes: runtime.Consume[] = [
|
|
228
|
+
{ contentType: 'multipart/form-data' },
|
|
229
|
+
];
|
|
230
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
231
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
232
|
+
|
|
233
|
+
let formParams: { append(param: string, value: any): any };
|
|
234
|
+
let useForm = false;
|
|
235
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
236
|
+
useForm = canConsumeForm;
|
|
237
|
+
if (useForm) {
|
|
238
|
+
formParams = new FormData();
|
|
239
|
+
} else {
|
|
240
|
+
formParams = new URLSearchParams();
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (requestParameters['file'] != null) {
|
|
244
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
let urlPath = `/files/upload`;
|
|
249
|
+
|
|
250
|
+
return {
|
|
251
|
+
path: urlPath,
|
|
252
|
+
method: 'POST',
|
|
253
|
+
headers: headerParameters,
|
|
254
|
+
query: queryParameters,
|
|
255
|
+
body: formParams,
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
*/
|
|
261
|
+
async filesControllerUploadRaw(requestParameters: FilesControllerUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
262
|
+
const requestOptions = await this.filesControllerUploadRequestOpts(requestParameters);
|
|
263
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
264
|
+
|
|
265
|
+
return new runtime.VoidApiResponse(response);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
*/
|
|
270
|
+
async filesControllerUpload(requestParameters: FilesControllerUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
271
|
+
await this.filesControllerUploadRaw(requestParameters, initOverrides);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* FFmpeglab
|
|
5
|
+
* FFmpeglab API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type CreatePipelineDto,
|
|
18
|
+
CreatePipelineDtoFromJSON,
|
|
19
|
+
CreatePipelineDtoToJSON,
|
|
20
|
+
} from '../models/CreatePipelineDto';
|
|
21
|
+
import {
|
|
22
|
+
type Pipeline,
|
|
23
|
+
PipelineFromJSON,
|
|
24
|
+
PipelineToJSON,
|
|
25
|
+
} from '../models/Pipeline';
|
|
26
|
+
import {
|
|
27
|
+
type UpdatePipelineDto,
|
|
28
|
+
UpdatePipelineDtoFromJSON,
|
|
29
|
+
UpdatePipelineDtoToJSON,
|
|
30
|
+
} from '../models/UpdatePipelineDto';
|
|
31
|
+
|
|
32
|
+
export interface PipelinesControllerCreateRequest {
|
|
33
|
+
createPipelineDto: CreatePipelineDto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface PipelinesControllerFindOneRequest {
|
|
37
|
+
id: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface PipelinesControllerUpdateRequest {
|
|
41
|
+
updatePipelineDto: UpdatePipelineDto;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* PipelinesApi - interface
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface PipelinesApiInterface
|
|
49
|
+
*/
|
|
50
|
+
export interface PipelinesApiInterface {
|
|
51
|
+
/**
|
|
52
|
+
* Creates request options for pipelinesControllerCreate without sending the request
|
|
53
|
+
* @param {CreatePipelineDto} createPipelineDto
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
* @memberof PipelinesApiInterface
|
|
56
|
+
*/
|
|
57
|
+
pipelinesControllerCreateRequestOpts(requestParameters: PipelinesControllerCreateRequest): Promise<runtime.RequestOpts>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {CreatePipelineDto} createPipelineDto
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof PipelinesApiInterface
|
|
65
|
+
*/
|
|
66
|
+
pipelinesControllerCreateRaw(requestParameters: PipelinesControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pipeline>>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*/
|
|
70
|
+
pipelinesControllerCreate(requestParameters: PipelinesControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Creates request options for pipelinesControllerFindAll without sending the request
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
* @memberof PipelinesApiInterface
|
|
76
|
+
*/
|
|
77
|
+
pipelinesControllerFindAllRequestOpts(): Promise<runtime.RequestOpts>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
* @memberof PipelinesApiInterface
|
|
84
|
+
*/
|
|
85
|
+
pipelinesControllerFindAllRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pipeline>>>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
*/
|
|
89
|
+
pipelinesControllerFindAll(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Creates request options for pipelinesControllerFindOne without sending the request
|
|
93
|
+
* @param {string} id The ID of the pipeline
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
* @memberof PipelinesApiInterface
|
|
96
|
+
*/
|
|
97
|
+
pipelinesControllerFindOneRequestOpts(requestParameters: PipelinesControllerFindOneRequest): Promise<runtime.RequestOpts>;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param {string} id The ID of the pipeline
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
* @memberof PipelinesApiInterface
|
|
105
|
+
*/
|
|
106
|
+
pipelinesControllerFindOneRaw(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pipeline>>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
*/
|
|
110
|
+
pipelinesControllerFindOne(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
114
|
+
* @param {UpdatePipelineDto} updatePipelineDto
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
* @memberof PipelinesApiInterface
|
|
117
|
+
*/
|
|
118
|
+
pipelinesControllerUpdateRequestOpts(requestParameters: PipelinesControllerUpdateRequest): Promise<runtime.RequestOpts>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @param {UpdatePipelineDto} updatePipelineDto
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
* @memberof PipelinesApiInterface
|
|
126
|
+
*/
|
|
127
|
+
pipelinesControllerUpdateRaw(requestParameters: PipelinesControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pipeline>>;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*/
|
|
131
|
+
pipelinesControllerUpdate(requestParameters: PipelinesControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
132
|
+
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
export class PipelinesApi extends runtime.BaseAPI implements PipelinesApiInterface {
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Creates request options for pipelinesControllerCreate without sending the request
|
|
142
|
+
*/
|
|
143
|
+
async pipelinesControllerCreateRequestOpts(requestParameters: PipelinesControllerCreateRequest): Promise<runtime.RequestOpts> {
|
|
144
|
+
if (requestParameters['createPipelineDto'] == null) {
|
|
145
|
+
throw new runtime.RequiredError(
|
|
146
|
+
'createPipelineDto',
|
|
147
|
+
'Required parameter "createPipelineDto" was null or undefined when calling pipelinesControllerCreate().'
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const queryParameters: any = {};
|
|
152
|
+
|
|
153
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
154
|
+
|
|
155
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
156
|
+
|
|
157
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
158
|
+
const token = this.configuration.accessToken;
|
|
159
|
+
const tokenString = await token("bearer", []);
|
|
160
|
+
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
let urlPath = `/pipeline`;
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
path: urlPath,
|
|
170
|
+
method: 'POST',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
body: CreatePipelineDtoToJSON(requestParameters['createPipelineDto']),
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
*/
|
|
179
|
+
async pipelinesControllerCreateRaw(requestParameters: PipelinesControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pipeline>> {
|
|
180
|
+
const requestOptions = await this.pipelinesControllerCreateRequestOpts(requestParameters);
|
|
181
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
182
|
+
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PipelineFromJSON(jsonValue));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
*/
|
|
188
|
+
async pipelinesControllerCreate(requestParameters: PipelinesControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline> {
|
|
189
|
+
const response = await this.pipelinesControllerCreateRaw(requestParameters, initOverrides);
|
|
190
|
+
return await response.value();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Creates request options for pipelinesControllerFindAll without sending the request
|
|
195
|
+
*/
|
|
196
|
+
async pipelinesControllerFindAllRequestOpts(): Promise<runtime.RequestOpts> {
|
|
197
|
+
const queryParameters: any = {};
|
|
198
|
+
|
|
199
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
200
|
+
|
|
201
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
202
|
+
const token = this.configuration.accessToken;
|
|
203
|
+
const tokenString = await token("bearer", []);
|
|
204
|
+
|
|
205
|
+
if (tokenString) {
|
|
206
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
let urlPath = `/pipeline`;
|
|
211
|
+
|
|
212
|
+
return {
|
|
213
|
+
path: urlPath,
|
|
214
|
+
method: 'GET',
|
|
215
|
+
headers: headerParameters,
|
|
216
|
+
query: queryParameters,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
*/
|
|
222
|
+
async pipelinesControllerFindAllRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pipeline>>> {
|
|
223
|
+
const requestOptions = await this.pipelinesControllerFindAllRequestOpts();
|
|
224
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
225
|
+
|
|
226
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PipelineFromJSON));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
*/
|
|
231
|
+
async pipelinesControllerFindAll(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>> {
|
|
232
|
+
const response = await this.pipelinesControllerFindAllRaw(initOverrides);
|
|
233
|
+
return await response.value();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Creates request options for pipelinesControllerFindOne without sending the request
|
|
238
|
+
*/
|
|
239
|
+
async pipelinesControllerFindOneRequestOpts(requestParameters: PipelinesControllerFindOneRequest): Promise<runtime.RequestOpts> {
|
|
240
|
+
if (requestParameters['id'] == null) {
|
|
241
|
+
throw new runtime.RequiredError(
|
|
242
|
+
'id',
|
|
243
|
+
'Required parameter "id" was null or undefined when calling pipelinesControllerFindOne().'
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const queryParameters: any = {};
|
|
248
|
+
|
|
249
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
250
|
+
|
|
251
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
252
|
+
const token = this.configuration.accessToken;
|
|
253
|
+
const tokenString = await token("bearer", []);
|
|
254
|
+
|
|
255
|
+
if (tokenString) {
|
|
256
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
let urlPath = `/pipeline/{id}`;
|
|
261
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
262
|
+
|
|
263
|
+
return {
|
|
264
|
+
path: urlPath,
|
|
265
|
+
method: 'GET',
|
|
266
|
+
headers: headerParameters,
|
|
267
|
+
query: queryParameters,
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
*/
|
|
273
|
+
async pipelinesControllerFindOneRaw(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pipeline>> {
|
|
274
|
+
const requestOptions = await this.pipelinesControllerFindOneRequestOpts(requestParameters);
|
|
275
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
276
|
+
|
|
277
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PipelineFromJSON(jsonValue));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
*/
|
|
282
|
+
async pipelinesControllerFindOne(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline> {
|
|
283
|
+
const response = await this.pipelinesControllerFindOneRaw(requestParameters, initOverrides);
|
|
284
|
+
return await response.value();
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
289
|
+
*/
|
|
290
|
+
async pipelinesControllerUpdateRequestOpts(requestParameters: PipelinesControllerUpdateRequest): Promise<runtime.RequestOpts> {
|
|
291
|
+
if (requestParameters['updatePipelineDto'] == null) {
|
|
292
|
+
throw new runtime.RequiredError(
|
|
293
|
+
'updatePipelineDto',
|
|
294
|
+
'Required parameter "updatePipelineDto" was null or undefined when calling pipelinesControllerUpdate().'
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const queryParameters: any = {};
|
|
299
|
+
|
|
300
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
301
|
+
|
|
302
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
303
|
+
|
|
304
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
305
|
+
const token = this.configuration.accessToken;
|
|
306
|
+
const tokenString = await token("bearer", []);
|
|
307
|
+
|
|
308
|
+
if (tokenString) {
|
|
309
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
let urlPath = `/pipeline`;
|
|
314
|
+
|
|
315
|
+
return {
|
|
316
|
+
path: urlPath,
|
|
317
|
+
method: 'PUT',
|
|
318
|
+
headers: headerParameters,
|
|
319
|
+
query: queryParameters,
|
|
320
|
+
body: UpdatePipelineDtoToJSON(requestParameters['updatePipelineDto']),
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
*/
|
|
326
|
+
async pipelinesControllerUpdateRaw(requestParameters: PipelinesControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Pipeline>> {
|
|
327
|
+
const requestOptions = await this.pipelinesControllerUpdateRequestOpts(requestParameters);
|
|
328
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
329
|
+
|
|
330
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PipelineFromJSON(jsonValue));
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
*/
|
|
335
|
+
async pipelinesControllerUpdate(requestParameters: PipelinesControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline> {
|
|
336
|
+
const response = await this.pipelinesControllerUpdateRaw(requestParameters, initOverrides);
|
|
337
|
+
return await response.value();
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
}
|