ffmpeglab-sdk 0.4.19 → 0.5.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.
@@ -43,6 +43,14 @@ export interface PipelinesControllerCreateRequest {
43
43
  createPipelineDto: CreatePipelineDto;
44
44
  }
45
45
 
46
+ export interface PipelinesControllerDeleteOneRequest {
47
+ id: string;
48
+ }
49
+
50
+ export interface PipelinesControllerFindByProjectRequest {
51
+ projectId: string;
52
+ }
53
+
46
54
  export interface PipelinesControllerFindOneRequest {
47
55
  id: string;
48
56
  }
@@ -83,6 +91,27 @@ export interface PipelinesApiInterface {
83
91
  */
84
92
  pipelinesControllerCreate(requestParameters: PipelinesControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
85
93
 
94
+ /**
95
+ * Creates request options for pipelinesControllerDeleteOne without sending the request
96
+ * @param {string} id The ID of the pipeline
97
+ * @throws {RequiredError}
98
+ * @memberof PipelinesApiInterface
99
+ */
100
+ pipelinesControllerDeleteOneRequestOpts(requestParameters: PipelinesControllerDeleteOneRequest): Promise<runtime.RequestOpts>;
101
+
102
+ /**
103
+ *
104
+ * @param {string} id The ID of the pipeline
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ * @memberof PipelinesApiInterface
108
+ */
109
+ pipelinesControllerDeleteOneRaw(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
110
+
111
+ /**
112
+ */
113
+ pipelinesControllerDeleteOne(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
+
86
115
  /**
87
116
  * Creates request options for pipelinesControllerFindAll without sending the request
88
117
  * @throws {RequiredError}
@@ -102,6 +131,27 @@ export interface PipelinesApiInterface {
102
131
  */
103
132
  pipelinesControllerFindAll(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>>;
104
133
 
134
+ /**
135
+ * Creates request options for pipelinesControllerFindByProject without sending the request
136
+ * @param {string} projectId The projectId for the pipelines to be selected
137
+ * @throws {RequiredError}
138
+ * @memberof PipelinesApiInterface
139
+ */
140
+ pipelinesControllerFindByProjectRequestOpts(requestParameters: PipelinesControllerFindByProjectRequest): Promise<runtime.RequestOpts>;
141
+
142
+ /**
143
+ *
144
+ * @param {string} projectId The projectId for the pipelines to be selected
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ * @memberof PipelinesApiInterface
148
+ */
149
+ pipelinesControllerFindByProjectRaw(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pipeline>>>;
150
+
151
+ /**
152
+ */
153
+ pipelinesControllerFindByProject(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>>;
154
+
105
155
  /**
106
156
  * Creates request options for pipelinesControllerFindOne without sending the request
107
157
  * @param {string} id The ID of the pipeline
@@ -225,6 +275,56 @@ export class PipelinesApi extends runtime.BaseAPI implements PipelinesApiInterfa
225
275
  return await response.value();
226
276
  }
227
277
 
278
+ /**
279
+ * Creates request options for pipelinesControllerDeleteOne without sending the request
280
+ */
281
+ async pipelinesControllerDeleteOneRequestOpts(requestParameters: PipelinesControllerDeleteOneRequest): Promise<runtime.RequestOpts> {
282
+ if (requestParameters['id'] == null) {
283
+ throw new runtime.RequiredError(
284
+ 'id',
285
+ 'Required parameter "id" was null or undefined when calling pipelinesControllerDeleteOne().'
286
+ );
287
+ }
288
+
289
+ const queryParameters: any = {};
290
+
291
+ const headerParameters: runtime.HTTPHeaders = {};
292
+
293
+ if (this.configuration && this.configuration.accessToken) {
294
+ const token = this.configuration.accessToken;
295
+ const tokenString = await token("bearer", []);
296
+
297
+ if (tokenString) {
298
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
299
+ }
300
+ }
301
+
302
+ let urlPath = `/pipeline/{id}`;
303
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
304
+
305
+ return {
306
+ path: urlPath,
307
+ method: 'DELETE',
308
+ headers: headerParameters,
309
+ query: queryParameters,
310
+ };
311
+ }
312
+
313
+ /**
314
+ */
315
+ async pipelinesControllerDeleteOneRaw(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
316
+ const requestOptions = await this.pipelinesControllerDeleteOneRequestOpts(requestParameters);
317
+ const response = await this.request(requestOptions, initOverrides);
318
+
319
+ return new runtime.VoidApiResponse(response);
320
+ }
321
+
322
+ /**
323
+ */
324
+ async pipelinesControllerDeleteOne(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
325
+ await this.pipelinesControllerDeleteOneRaw(requestParameters, initOverrides);
326
+ }
327
+
228
328
  /**
229
329
  * Creates request options for pipelinesControllerFindAll without sending the request
230
330
  */
@@ -268,6 +368,57 @@ export class PipelinesApi extends runtime.BaseAPI implements PipelinesApiInterfa
268
368
  return await response.value();
269
369
  }
270
370
 
371
+ /**
372
+ * Creates request options for pipelinesControllerFindByProject without sending the request
373
+ */
374
+ async pipelinesControllerFindByProjectRequestOpts(requestParameters: PipelinesControllerFindByProjectRequest): Promise<runtime.RequestOpts> {
375
+ if (requestParameters['projectId'] == null) {
376
+ throw new runtime.RequiredError(
377
+ 'projectId',
378
+ 'Required parameter "projectId" was null or undefined when calling pipelinesControllerFindByProject().'
379
+ );
380
+ }
381
+
382
+ const queryParameters: any = {};
383
+
384
+ const headerParameters: runtime.HTTPHeaders = {};
385
+
386
+ if (this.configuration && this.configuration.accessToken) {
387
+ const token = this.configuration.accessToken;
388
+ const tokenString = await token("bearer", []);
389
+
390
+ if (tokenString) {
391
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
392
+ }
393
+ }
394
+
395
+ let urlPath = `/pipeline/project/{projectId}`;
396
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
397
+
398
+ return {
399
+ path: urlPath,
400
+ method: 'GET',
401
+ headers: headerParameters,
402
+ query: queryParameters,
403
+ };
404
+ }
405
+
406
+ /**
407
+ */
408
+ async pipelinesControllerFindByProjectRaw(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pipeline>>> {
409
+ const requestOptions = await this.pipelinesControllerFindByProjectRequestOpts(requestParameters);
410
+ const response = await this.request(requestOptions, initOverrides);
411
+
412
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PipelineFromJSON));
413
+ }
414
+
415
+ /**
416
+ */
417
+ async pipelinesControllerFindByProject(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>> {
418
+ const response = await this.pipelinesControllerFindByProjectRaw(requestParameters, initOverrides);
419
+ return await response.value();
420
+ }
421
+
271
422
  /**
272
423
  * Creates request options for pipelinesControllerFindOne without sending the request
273
424
  */
package/src/apis/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ApiKeyApi';
3
4
  export * from './FilesApi';
4
5
  export * from './PipelinesApi';
5
6
  export * from './RendersApi';
@@ -43,6 +43,12 @@ export interface CreatePipelineDto {
43
43
  * @memberof CreatePipelineDto
44
44
  */
45
45
  yml: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CreatePipelineDto
50
+ */
51
+ project: string;
46
52
  }
47
53
 
48
54
  /**
@@ -53,6 +59,7 @@ export function instanceOfCreatePipelineDto(value: object): value is CreatePipel
53
59
  if (!('downsql' in value) || value['downsql'] === undefined) return false;
54
60
  if (!('upsql' in value) || value['upsql'] === undefined) return false;
55
61
  if (!('yml' in value) || value['yml'] === undefined) return false;
62
+ if (!('project' in value) || value['project'] === undefined) return false;
56
63
  return true;
57
64
  }
58
65
 
@@ -70,6 +77,7 @@ export function CreatePipelineDtoFromJSONTyped(json: any, ignoreDiscriminator: b
70
77
  'downsql': json['downsql'],
71
78
  'upsql': json['upsql'],
72
79
  'yml': json['yml'],
80
+ 'project': json['project'],
73
81
  };
74
82
  }
75
83
 
@@ -88,6 +96,7 @@ export function CreatePipelineDtoToJSONTyped(value?: CreatePipelineDto | null, i
88
96
  'downsql': value['downsql'],
89
97
  'upsql': value['upsql'],
90
98
  'yml': value['yml'],
99
+ 'project': value['project'],
91
100
  };
92
101
  }
93
102
 
@@ -61,6 +61,12 @@ export interface Pipeline {
61
61
  * @memberof Pipeline
62
62
  */
63
63
  yml: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof Pipeline
68
+ */
69
+ project: string;
64
70
  /**
65
71
  *
66
72
  * @type {Date}
@@ -86,6 +92,7 @@ export function instanceOfPipeline(value: object): value is Pipeline {
86
92
  if (!('downsql' in value) || value['downsql'] === undefined) return false;
87
93
  if (!('upsql' in value) || value['upsql'] === undefined) return false;
88
94
  if (!('yml' in value) || value['yml'] === undefined) return false;
95
+ if (!('project' in value) || value['project'] === undefined) return false;
89
96
  if (!('date' in value) || value['date'] === undefined) return false;
90
97
  if (!('version' in value) || value['version'] === undefined) return false;
91
98
  return true;
@@ -108,6 +115,7 @@ export function PipelineFromJSONTyped(json: any, ignoreDiscriminator: boolean):
108
115
  'downsql': json['downsql'],
109
116
  'upsql': json['upsql'],
110
117
  'yml': json['yml'],
118
+ 'project': json['project'],
111
119
  'date': (new Date(json['date'])),
112
120
  'version': json['version'],
113
121
  };
@@ -131,6 +139,7 @@ export function PipelineToJSONTyped(value?: Pipeline | null, ignoreDiscriminator
131
139
  'downsql': value['downsql'],
132
140
  'upsql': value['upsql'],
133
141
  'yml': value['yml'],
142
+ 'project': value['project'],
134
143
  'date': value['date'].toISOString(),
135
144
  'version': value['version'],
136
145
  };