ffmpeglab-sdk 0.4.20 → 0.5.1
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 +2 -0
- package/dist/apis/ApiKeyApi.d.ts +108 -0
- package/dist/apis/ApiKeyApi.js +155 -0
- package/dist/apis/PipelinesApi.d.ts +62 -0
- package/dist/apis/PipelinesApi.js +87 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ApiKeyApi.d.ts +108 -0
- package/dist/esm/apis/ApiKeyApi.js +151 -0
- package/dist/esm/apis/PipelinesApi.d.ts +62 -0
- package/dist/esm/apis/PipelinesApi.js +87 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreatePipelineDto.d.ts +6 -0
- package/dist/esm/models/CreatePipelineDto.js +4 -0
- package/dist/esm/models/Pipeline.d.ts +6 -0
- package/dist/esm/models/Pipeline.js +4 -0
- package/dist/models/CreatePipelineDto.d.ts +6 -0
- package/dist/models/CreatePipelineDto.js +4 -0
- package/dist/models/Pipeline.d.ts +6 -0
- package/dist/models/Pipeline.js +4 -0
- package/docs/ApiKeyApi.md +202 -0
- package/docs/CreatePipelineDto.md +2 -0
- package/docs/Pipeline.md +2 -0
- package/docs/PipelinesApi.md +140 -0
- package/package.json +1 -1
- package/src/apis/ApiKeyApi.ts +230 -0
- package/src/apis/PipelinesApi.ts +151 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreatePipelineDto.ts +9 -0
- package/src/models/Pipeline.ts +9 -0
|
@@ -0,0 +1,151 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class ApiKeyApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for apiKeyControllerCreate without sending the request
|
|
30
|
+
*/
|
|
31
|
+
apiKeyControllerCreateRequestOpts() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const queryParameters = {};
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
36
|
+
const token = this.configuration.accessToken;
|
|
37
|
+
const tokenString = yield token("bearer", []);
|
|
38
|
+
if (tokenString) {
|
|
39
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/apikey`;
|
|
43
|
+
return {
|
|
44
|
+
path: urlPath,
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: headerParameters,
|
|
47
|
+
query: queryParameters,
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
apiKeyControllerCreateRaw(initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.apiKeyControllerCreateRequestOpts();
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*/
|
|
62
|
+
apiKeyControllerCreate(initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.apiKeyControllerCreateRaw(initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates request options for apiKeyControllerDeleteOne without sending the request
|
|
70
|
+
*/
|
|
71
|
+
apiKeyControllerDeleteOneRequestOpts(requestParameters) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
if (requestParameters['id'] == null) {
|
|
74
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiKeyControllerDeleteOne().');
|
|
75
|
+
}
|
|
76
|
+
const queryParameters = {};
|
|
77
|
+
const headerParameters = {};
|
|
78
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
79
|
+
const token = this.configuration.accessToken;
|
|
80
|
+
const tokenString = yield token("bearer", []);
|
|
81
|
+
if (tokenString) {
|
|
82
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
let urlPath = `/apikey/{id}`;
|
|
86
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
87
|
+
return {
|
|
88
|
+
path: urlPath,
|
|
89
|
+
method: 'DELETE',
|
|
90
|
+
headers: headerParameters,
|
|
91
|
+
query: queryParameters,
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
*/
|
|
97
|
+
apiKeyControllerDeleteOneRaw(requestParameters, initOverrides) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
const requestOptions = yield this.apiKeyControllerDeleteOneRequestOpts(requestParameters);
|
|
100
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
101
|
+
return new runtime.VoidApiResponse(response);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
*/
|
|
106
|
+
apiKeyControllerDeleteOne(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
yield this.apiKeyControllerDeleteOneRaw(requestParameters, initOverrides);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Creates request options for apiKeyControllerFindAll without sending the request
|
|
113
|
+
*/
|
|
114
|
+
apiKeyControllerFindAllRequestOpts() {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
const queryParameters = {};
|
|
117
|
+
const headerParameters = {};
|
|
118
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
119
|
+
const token = this.configuration.accessToken;
|
|
120
|
+
const tokenString = yield token("bearer", []);
|
|
121
|
+
if (tokenString) {
|
|
122
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
let urlPath = `/apikey`;
|
|
126
|
+
return {
|
|
127
|
+
path: urlPath,
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
*/
|
|
136
|
+
apiKeyControllerFindAllRaw(initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const requestOptions = yield this.apiKeyControllerFindAllRequestOpts();
|
|
139
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
140
|
+
return new runtime.JSONApiResponse(response);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
*/
|
|
145
|
+
apiKeyControllerFindAll(initOverrides) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const response = yield this.apiKeyControllerFindAllRaw(initOverrides);
|
|
148
|
+
return yield response.value();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -18,6 +18,12 @@ import { type UpdatePipelineDto } from '../models/UpdatePipelineDto';
|
|
|
18
18
|
export interface PipelinesControllerCreateRequest {
|
|
19
19
|
createPipelineDto: CreatePipelineDto;
|
|
20
20
|
}
|
|
21
|
+
export interface PipelinesControllerDeleteOneRequest {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
export interface PipelinesControllerFindByProjectRequest {
|
|
25
|
+
projectId: string;
|
|
26
|
+
}
|
|
21
27
|
export interface PipelinesControllerFindOneRequest {
|
|
22
28
|
id: string;
|
|
23
29
|
}
|
|
@@ -52,6 +58,24 @@ export interface PipelinesApiInterface {
|
|
|
52
58
|
/**
|
|
53
59
|
*/
|
|
54
60
|
pipelinesControllerCreate(requestParameters: PipelinesControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for pipelinesControllerDeleteOne without sending the request
|
|
63
|
+
* @param {string} id The ID of the pipeline
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
* @memberof PipelinesApiInterface
|
|
66
|
+
*/
|
|
67
|
+
pipelinesControllerDeleteOneRequestOpts(requestParameters: PipelinesControllerDeleteOneRequest): Promise<runtime.RequestOpts>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @param {string} id The ID of the pipeline
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
* @memberof PipelinesApiInterface
|
|
74
|
+
*/
|
|
75
|
+
pipelinesControllerDeleteOneRaw(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
76
|
+
/**
|
|
77
|
+
*/
|
|
78
|
+
pipelinesControllerDeleteOne(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
55
79
|
/**
|
|
56
80
|
* Creates request options for pipelinesControllerFindAll without sending the request
|
|
57
81
|
* @throws {RequiredError}
|
|
@@ -68,6 +92,24 @@ export interface PipelinesApiInterface {
|
|
|
68
92
|
/**
|
|
69
93
|
*/
|
|
70
94
|
pipelinesControllerFindAll(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>>;
|
|
95
|
+
/**
|
|
96
|
+
* Creates request options for pipelinesControllerFindByProject without sending the request
|
|
97
|
+
* @param {string} projectId The projectId for the pipelines to be selected
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
* @memberof PipelinesApiInterface
|
|
100
|
+
*/
|
|
101
|
+
pipelinesControllerFindByProjectRequestOpts(requestParameters: PipelinesControllerFindByProjectRequest): Promise<runtime.RequestOpts>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @param {string} projectId The projectId for the pipelines to be selected
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
* @memberof PipelinesApiInterface
|
|
108
|
+
*/
|
|
109
|
+
pipelinesControllerFindByProjectRaw(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pipeline>>>;
|
|
110
|
+
/**
|
|
111
|
+
*/
|
|
112
|
+
pipelinesControllerFindByProject(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>>;
|
|
71
113
|
/**
|
|
72
114
|
* Creates request options for pipelinesControllerFindOne without sending the request
|
|
73
115
|
* @param {string} id The ID of the pipeline
|
|
@@ -137,6 +179,16 @@ export declare class PipelinesApi extends runtime.BaseAPI implements PipelinesAp
|
|
|
137
179
|
/**
|
|
138
180
|
*/
|
|
139
181
|
pipelinesControllerCreate(requestParameters: PipelinesControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
182
|
+
/**
|
|
183
|
+
* Creates request options for pipelinesControllerDeleteOne without sending the request
|
|
184
|
+
*/
|
|
185
|
+
pipelinesControllerDeleteOneRequestOpts(requestParameters: PipelinesControllerDeleteOneRequest): Promise<runtime.RequestOpts>;
|
|
186
|
+
/**
|
|
187
|
+
*/
|
|
188
|
+
pipelinesControllerDeleteOneRaw(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
189
|
+
/**
|
|
190
|
+
*/
|
|
191
|
+
pipelinesControllerDeleteOne(requestParameters: PipelinesControllerDeleteOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
140
192
|
/**
|
|
141
193
|
* Creates request options for pipelinesControllerFindAll without sending the request
|
|
142
194
|
*/
|
|
@@ -147,6 +199,16 @@ export declare class PipelinesApi extends runtime.BaseAPI implements PipelinesAp
|
|
|
147
199
|
/**
|
|
148
200
|
*/
|
|
149
201
|
pipelinesControllerFindAll(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>>;
|
|
202
|
+
/**
|
|
203
|
+
* Creates request options for pipelinesControllerFindByProject without sending the request
|
|
204
|
+
*/
|
|
205
|
+
pipelinesControllerFindByProjectRequestOpts(requestParameters: PipelinesControllerFindByProjectRequest): Promise<runtime.RequestOpts>;
|
|
206
|
+
/**
|
|
207
|
+
*/
|
|
208
|
+
pipelinesControllerFindByProjectRaw(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Pipeline>>>;
|
|
209
|
+
/**
|
|
210
|
+
*/
|
|
211
|
+
pipelinesControllerFindByProject(requestParameters: PipelinesControllerFindByProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Pipeline>>;
|
|
150
212
|
/**
|
|
151
213
|
* Creates request options for pipelinesControllerFindOne without sending the request
|
|
152
214
|
*/
|
|
@@ -75,6 +75,49 @@ export class PipelinesApi extends runtime.BaseAPI {
|
|
|
75
75
|
return yield response.value();
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for pipelinesControllerDeleteOne without sending the request
|
|
80
|
+
*/
|
|
81
|
+
pipelinesControllerDeleteOneRequestOpts(requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
if (requestParameters['id'] == null) {
|
|
84
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling pipelinesControllerDeleteOne().');
|
|
85
|
+
}
|
|
86
|
+
const queryParameters = {};
|
|
87
|
+
const headerParameters = {};
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = yield token("bearer", []);
|
|
91
|
+
if (tokenString) {
|
|
92
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
let urlPath = `/pipeline/{id}`;
|
|
96
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
97
|
+
return {
|
|
98
|
+
path: urlPath,
|
|
99
|
+
method: 'DELETE',
|
|
100
|
+
headers: headerParameters,
|
|
101
|
+
query: queryParameters,
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
*/
|
|
107
|
+
pipelinesControllerDeleteOneRaw(requestParameters, initOverrides) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const requestOptions = yield this.pipelinesControllerDeleteOneRequestOpts(requestParameters);
|
|
110
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
111
|
+
return new runtime.VoidApiResponse(response);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
*/
|
|
116
|
+
pipelinesControllerDeleteOne(requestParameters, initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
yield this.pipelinesControllerDeleteOneRaw(requestParameters, initOverrides);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
78
121
|
/**
|
|
79
122
|
* Creates request options for pipelinesControllerFindAll without sending the request
|
|
80
123
|
*/
|
|
@@ -115,6 +158,50 @@ export class PipelinesApi extends runtime.BaseAPI {
|
|
|
115
158
|
return yield response.value();
|
|
116
159
|
});
|
|
117
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for pipelinesControllerFindByProject without sending the request
|
|
163
|
+
*/
|
|
164
|
+
pipelinesControllerFindByProjectRequestOpts(requestParameters) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
if (requestParameters['projectId'] == null) {
|
|
167
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling pipelinesControllerFindByProject().');
|
|
168
|
+
}
|
|
169
|
+
const queryParameters = {};
|
|
170
|
+
const headerParameters = {};
|
|
171
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
+
const token = this.configuration.accessToken;
|
|
173
|
+
const tokenString = yield token("bearer", []);
|
|
174
|
+
if (tokenString) {
|
|
175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
let urlPath = `/pipeline/project/{projectId}`;
|
|
179
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
180
|
+
return {
|
|
181
|
+
path: urlPath,
|
|
182
|
+
method: 'GET',
|
|
183
|
+
headers: headerParameters,
|
|
184
|
+
query: queryParameters,
|
|
185
|
+
};
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
*/
|
|
190
|
+
pipelinesControllerFindByProjectRaw(requestParameters, initOverrides) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
const requestOptions = yield this.pipelinesControllerFindByProjectRequestOpts(requestParameters);
|
|
193
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
194
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PipelineFromJSON));
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
*/
|
|
199
|
+
pipelinesControllerFindByProject(requestParameters, initOverrides) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
const response = yield this.pipelinesControllerFindByProjectRaw(requestParameters, initOverrides);
|
|
202
|
+
return yield response.value();
|
|
203
|
+
});
|
|
204
|
+
}
|
|
118
205
|
/**
|
|
119
206
|
* Creates request options for pipelinesControllerFindOne without sending the request
|
|
120
207
|
*/
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -39,6 +39,12 @@ export interface CreatePipelineDto {
|
|
|
39
39
|
* @memberof CreatePipelineDto
|
|
40
40
|
*/
|
|
41
41
|
yml: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePipelineDto
|
|
46
|
+
*/
|
|
47
|
+
project: string;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the CreatePipelineDto interface.
|
|
@@ -23,6 +23,8 @@ export function instanceOfCreatePipelineDto(value) {
|
|
|
23
23
|
return false;
|
|
24
24
|
if (!('yml' in value) || value['yml'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('project' in value) || value['project'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
export function CreatePipelineDtoFromJSON(json) {
|
|
@@ -37,6 +39,7 @@ export function CreatePipelineDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
39
|
'downsql': json['downsql'],
|
|
38
40
|
'upsql': json['upsql'],
|
|
39
41
|
'yml': json['yml'],
|
|
42
|
+
'project': json['project'],
|
|
40
43
|
};
|
|
41
44
|
}
|
|
42
45
|
export function CreatePipelineDtoToJSON(json) {
|
|
@@ -51,5 +54,6 @@ export function CreatePipelineDtoToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
51
54
|
'downsql': value['downsql'],
|
|
52
55
|
'upsql': value['upsql'],
|
|
53
56
|
'yml': value['yml'],
|
|
57
|
+
'project': value['project'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -29,6 +29,8 @@ export function instanceOfPipeline(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('yml' in value) || value['yml'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('project' in value) || value['project'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('date' in value) || value['date'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('version' in value) || value['version'] === undefined)
|
|
@@ -50,6 +52,7 @@ export function PipelineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'downsql': json['downsql'],
|
|
51
53
|
'upsql': json['upsql'],
|
|
52
54
|
'yml': json['yml'],
|
|
55
|
+
'project': json['project'],
|
|
53
56
|
'date': (new Date(json['date'])),
|
|
54
57
|
'version': json['version'],
|
|
55
58
|
};
|
|
@@ -69,6 +72,7 @@ export function PipelineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
72
|
'downsql': value['downsql'],
|
|
70
73
|
'upsql': value['upsql'],
|
|
71
74
|
'yml': value['yml'],
|
|
75
|
+
'project': value['project'],
|
|
72
76
|
'date': value['date'].toISOString(),
|
|
73
77
|
'version': value['version'],
|
|
74
78
|
};
|
|
@@ -39,6 +39,12 @@ export interface CreatePipelineDto {
|
|
|
39
39
|
* @memberof CreatePipelineDto
|
|
40
40
|
*/
|
|
41
41
|
yml: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePipelineDto
|
|
46
|
+
*/
|
|
47
|
+
project: string;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the CreatePipelineDto interface.
|
|
@@ -30,6 +30,8 @@ function instanceOfCreatePipelineDto(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('yml' in value) || value['yml'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('project' in value) || value['project'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
return true;
|
|
34
36
|
}
|
|
35
37
|
function CreatePipelineDtoFromJSON(json) {
|
|
@@ -44,6 +46,7 @@ function CreatePipelineDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
46
|
'downsql': json['downsql'],
|
|
45
47
|
'upsql': json['upsql'],
|
|
46
48
|
'yml': json['yml'],
|
|
49
|
+
'project': json['project'],
|
|
47
50
|
};
|
|
48
51
|
}
|
|
49
52
|
function CreatePipelineDtoToJSON(json) {
|
|
@@ -58,5 +61,6 @@ function CreatePipelineDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
61
|
'downsql': value['downsql'],
|
|
59
62
|
'upsql': value['upsql'],
|
|
60
63
|
'yml': value['yml'],
|
|
64
|
+
'project': value['project'],
|
|
61
65
|
};
|
|
62
66
|
}
|
package/dist/models/Pipeline.js
CHANGED
|
@@ -36,6 +36,8 @@ function instanceOfPipeline(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('yml' in value) || value['yml'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('project' in value) || value['project'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('date' in value) || value['date'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('version' in value) || value['version'] === undefined)
|
|
@@ -57,6 +59,7 @@ function PipelineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'downsql': json['downsql'],
|
|
58
60
|
'upsql': json['upsql'],
|
|
59
61
|
'yml': json['yml'],
|
|
62
|
+
'project': json['project'],
|
|
60
63
|
'date': (new Date(json['date'])),
|
|
61
64
|
'version': json['version'],
|
|
62
65
|
};
|
|
@@ -76,6 +79,7 @@ function PipelineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
79
|
'downsql': value['downsql'],
|
|
77
80
|
'upsql': value['upsql'],
|
|
78
81
|
'yml': value['yml'],
|
|
82
|
+
'project': value['project'],
|
|
79
83
|
'date': value['date'].toISOString(),
|
|
80
84
|
'version': value['version'],
|
|
81
85
|
};
|