@nauti/dash-client 1.0.2-beta.378.3 → 1.0.2-beta.397.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/dist/api.js CHANGED
@@ -1,9 +1,114 @@
1
1
  "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __generator = (this && this.__generator) || function (thisArg, body) {
38
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
39
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
40
+ function verb(n) { return function (v) { return step([n, v]); }; }
41
+ function step(op) {
42
+ if (f) throw new TypeError("Generator is already executing.");
43
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
44
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
45
+ if (y = 0, t) op = [op[0] & 2, t.value];
46
+ switch (op[0]) {
47
+ case 0: case 1: t = op; break;
48
+ case 4: _.label++; return { value: op[1], done: false };
49
+ case 5: _.label++; y = op[1]; op = [0]; continue;
50
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
51
+ default:
52
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
53
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
54
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
55
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
56
+ if (t[2]) _.ops.pop();
57
+ _.trys.pop(); continue;
58
+ }
59
+ op = body.call(thisArg, _);
60
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
61
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
62
+ }
63
+ };
64
+ var __read = (this && this.__read) || function (o, n) {
65
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
66
+ if (!m) return o;
67
+ var i = m.call(o), r, ar = [], e;
68
+ try {
69
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
70
+ }
71
+ catch (error) { e = { error: error }; }
72
+ finally {
73
+ try {
74
+ if (r && !r.done && (m = i["return"])) m.call(i);
75
+ }
76
+ finally { if (e) throw e.error; }
77
+ }
78
+ return ar;
79
+ };
80
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
81
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
82
+ if (ar || !(i in from)) {
83
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
84
+ ar[i] = from[i];
85
+ }
86
+ }
87
+ return to.concat(ar || Array.prototype.slice.call(from));
88
+ };
89
+ var __importDefault = (this && this.__importDefault) || function (mod) {
90
+ return (mod && mod.__esModule) ? mod : { "default": mod };
91
+ };
2
92
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskControllerApi = exports.TaskControllerApiFactory = exports.TaskControllerApiFp = exports.TaskControllerApiAxiosParamCreator = exports.SourceControllerApi = exports.SourceControllerApiFactory = exports.SourceControllerApiFp = exports.SourceControllerApiAxiosParamCreator = exports.TaskVOTierEnum = exports.TaskVOTargetVersionEnum = exports.TaskVOTargetPlatformEnum = exports.TaskStatusVOStatusEnum = exports.CreateTaskRequestVOTierEnum = exports.CreateTaskRequestVOTargetVersionEnum = exports.CreateTaskRequestVOTargetPlatformEnum = void 0;
4
- const axios_1 = require("axios");
5
- const common_1 = require("./common");
6
- const base_1 = require("./base");
93
+ exports.TaskControllerApi = exports.TaskControllerApiFactory = exports.TaskControllerApiFp = exports.TaskControllerApiAxiosParamCreator = exports.SourceControllerApi = exports.SourceControllerApiFactory = exports.SourceControllerApiFp = exports.SourceControllerApiAxiosParamCreator = exports.Update200ResponseAnyOfSucceededEnum = exports.Update200ResponseSucceededEnum = exports.Test200ResponseAnyOfSucceededEnum = exports.Test200ResponseSucceededEnum = exports.TaskVOTierEnum = exports.TaskVOTargetVersionEnum = exports.TaskVOTargetPlatformEnum = exports.TaskStatusVOStatusEnum = exports.SetToUploaded200ResponseAnyOfSucceededEnum = exports.SetToUploaded200ResponseSucceededEnum = exports.List200ResponseAnyOf1SucceededEnum = exports.List200ResponseAnyOfSucceededEnum = exports.List200ResponseSucceededEnum = exports.List1200ResponseAnyOfSucceededEnum = exports.List1200ResponseSucceededEnum = exports.GetDetail200ResponseAnyOfSucceededEnum = exports.GetDetail200ResponseSucceededEnum = exports.GetDetail1200ResponseAnyOfSucceededEnum = exports.GetDetail1200ResponseSucceededEnum = exports.CreateTaskRequestVOTierEnum = exports.CreateTaskRequestVOTargetVersionEnum = exports.CreateTaskRequestVOTargetPlatformEnum = exports.Create200ResponseAnyOf1SucceededEnum = exports.Create200ResponseAnyOfSucceededEnum = exports.Create200ResponseSucceededEnum = exports.Create1200ResponseAnyOfSucceededEnum = exports.Create1200ResponseSucceededEnum = void 0;
94
+ var axios_1 = __importDefault(require("axios"));
95
+ var common_1 = require("./common");
96
+ var base_1 = require("./base");
97
+ exports.Create1200ResponseSucceededEnum = {
98
+ False: 'false',
99
+ };
100
+ exports.Create1200ResponseAnyOfSucceededEnum = {
101
+ True: 'true',
102
+ };
103
+ exports.Create200ResponseSucceededEnum = {
104
+ False: 'false',
105
+ };
106
+ exports.Create200ResponseAnyOfSucceededEnum = {
107
+ True: 'true',
108
+ };
109
+ exports.Create200ResponseAnyOf1SucceededEnum = {
110
+ False: 'false',
111
+ };
7
112
  exports.CreateTaskRequestVOTargetPlatformEnum = {
8
113
  AlpineArm64: 'alpine-arm64',
9
114
  AlpineX64: 'alpine-x64',
@@ -21,6 +126,39 @@ exports.CreateTaskRequestVOTierEnum = {
21
126
  Starter: 'STARTER',
22
127
  Premium: 'PREMIUM',
23
128
  };
129
+ exports.GetDetail1200ResponseSucceededEnum = {
130
+ False: 'false',
131
+ };
132
+ exports.GetDetail1200ResponseAnyOfSucceededEnum = {
133
+ True: 'true',
134
+ };
135
+ exports.GetDetail200ResponseSucceededEnum = {
136
+ False: 'false',
137
+ };
138
+ exports.GetDetail200ResponseAnyOfSucceededEnum = {
139
+ True: 'true',
140
+ };
141
+ exports.List1200ResponseSucceededEnum = {
142
+ False: 'false',
143
+ };
144
+ exports.List1200ResponseAnyOfSucceededEnum = {
145
+ True: 'true',
146
+ };
147
+ exports.List200ResponseSucceededEnum = {
148
+ False: 'false',
149
+ };
150
+ exports.List200ResponseAnyOfSucceededEnum = {
151
+ True: 'true',
152
+ };
153
+ exports.List200ResponseAnyOf1SucceededEnum = {
154
+ False: 'false',
155
+ };
156
+ exports.SetToUploaded200ResponseSucceededEnum = {
157
+ False: 'false',
158
+ };
159
+ exports.SetToUploaded200ResponseAnyOfSucceededEnum = {
160
+ True: 'true',
161
+ };
24
162
  exports.TaskStatusVOStatusEnum = {
25
163
  Picked: 'PICKED',
26
164
  Succeeded: 'SUCCEEDED',
@@ -43,336 +181,563 @@ exports.TaskVOTierEnum = {
43
181
  Starter: 'STARTER',
44
182
  Premium: 'PREMIUM',
45
183
  };
46
- const SourceControllerApiAxiosParamCreator = function (configuration) {
184
+ exports.Test200ResponseSucceededEnum = {
185
+ False: 'false',
186
+ };
187
+ exports.Test200ResponseAnyOfSucceededEnum = {
188
+ True: 'true',
189
+ };
190
+ exports.Update200ResponseSucceededEnum = {
191
+ False: 'false',
192
+ };
193
+ exports.Update200ResponseAnyOfSucceededEnum = {
194
+ True: 'true',
195
+ };
196
+ var SourceControllerApiAxiosParamCreator = function (configuration) {
197
+ var _this = this;
47
198
  return {
48
- create1: async (createSourceRequestVO, options = {}) => {
49
- (0, common_1.assertParamExists)('create1', 'createSourceRequestVO', createSourceRequestVO);
50
- const localVarPath = `/api/sources`;
51
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
52
- let baseOptions;
53
- if (configuration) {
54
- baseOptions = configuration.baseOptions;
199
+ create1: function (createSourceRequestVO_1) {
200
+ var args_1 = [];
201
+ for (var _i = 1; _i < arguments.length; _i++) {
202
+ args_1[_i - 1] = arguments[_i];
55
203
  }
56
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
57
- const localVarHeaderParameter = {};
58
- const localVarQueryParameter = {};
59
- localVarHeaderParameter['Content-Type'] = 'application/json';
60
- localVarHeaderParameter['Accept'] = '*/*';
61
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
62
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
64
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSourceRequestVO, localVarRequestOptions, configuration);
65
- return {
66
- url: (0, common_1.toPathString)(localVarUrlObj),
67
- options: localVarRequestOptions,
68
- };
204
+ return __awaiter(_this, __spreadArray([createSourceRequestVO_1], __read(args_1), false), void 0, function (createSourceRequestVO, options) {
205
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
+ if (options === void 0) { options = {}; }
207
+ return __generator(this, function (_a) {
208
+ (0, common_1.assertParamExists)('create1', 'createSourceRequestVO', createSourceRequestVO);
209
+ localVarPath = "/api/sources";
210
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
211
+ if (configuration) {
212
+ baseOptions = configuration.baseOptions;
213
+ }
214
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
215
+ localVarHeaderParameter = {};
216
+ localVarQueryParameter = {};
217
+ localVarHeaderParameter['Content-Type'] = 'application/json';
218
+ localVarHeaderParameter['Accept'] = '*/*';
219
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
220
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
221
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
222
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSourceRequestVO, localVarRequestOptions, configuration);
223
+ return [2, {
224
+ url: (0, common_1.toPathString)(localVarUrlObj),
225
+ options: localVarRequestOptions,
226
+ }];
227
+ });
228
+ });
69
229
  },
70
- getDetail1: async (id, options = {}) => {
71
- (0, common_1.assertParamExists)('getDetail1', 'id', id);
72
- const localVarPath = `/api/sources/{id}`
73
- .replace('{id}', encodeURIComponent(String(id)));
74
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
75
- let baseOptions;
76
- if (configuration) {
77
- baseOptions = configuration.baseOptions;
230
+ getDetail1: function (id_1) {
231
+ var args_1 = [];
232
+ for (var _i = 1; _i < arguments.length; _i++) {
233
+ args_1[_i - 1] = arguments[_i];
78
234
  }
79
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
80
- const localVarHeaderParameter = {};
81
- const localVarQueryParameter = {};
82
- localVarHeaderParameter['Accept'] = '*/*';
83
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
84
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
86
- return {
87
- url: (0, common_1.toPathString)(localVarUrlObj),
88
- options: localVarRequestOptions,
89
- };
235
+ return __awaiter(_this, __spreadArray([id_1], __read(args_1), false), void 0, function (id, options) {
236
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
237
+ if (options === void 0) { options = {}; }
238
+ return __generator(this, function (_a) {
239
+ (0, common_1.assertParamExists)('getDetail1', 'id', id);
240
+ localVarPath = "/api/sources/{id}"
241
+ .replace('{id}', encodeURIComponent(String(id)));
242
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
243
+ if (configuration) {
244
+ baseOptions = configuration.baseOptions;
245
+ }
246
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
247
+ localVarHeaderParameter = {};
248
+ localVarQueryParameter = {};
249
+ localVarHeaderParameter['Accept'] = '*/*';
250
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
251
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
253
+ return [2, {
254
+ url: (0, common_1.toPathString)(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ }];
257
+ });
258
+ });
90
259
  },
91
- list1: async (creatorId, title, pageSize, cursor, options = {}) => {
92
- const localVarPath = `/api/sources`;
93
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
94
- let baseOptions;
95
- if (configuration) {
96
- baseOptions = configuration.baseOptions;
97
- }
98
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
99
- const localVarHeaderParameter = {};
100
- const localVarQueryParameter = {};
101
- if (creatorId !== undefined) {
102
- localVarQueryParameter['creatorId'] = creatorId;
103
- }
104
- if (title !== undefined) {
105
- localVarQueryParameter['title'] = title;
106
- }
107
- if (pageSize !== undefined) {
108
- localVarQueryParameter['pageSize'] = pageSize;
260
+ list1: function (creatorId_1, title_1, pageSize_1, cursor_1) {
261
+ var args_1 = [];
262
+ for (var _i = 4; _i < arguments.length; _i++) {
263
+ args_1[_i - 4] = arguments[_i];
109
264
  }
110
- if (cursor !== undefined) {
111
- localVarQueryParameter['cursor'] = cursor;
265
+ return __awaiter(_this, __spreadArray([creatorId_1, title_1, pageSize_1, cursor_1], __read(args_1), false), void 0, function (creatorId, title, pageSize, cursor, options) {
266
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
+ if (options === void 0) { options = {}; }
268
+ return __generator(this, function (_a) {
269
+ localVarPath = "/api/sources";
270
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ }
274
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
275
+ localVarHeaderParameter = {};
276
+ localVarQueryParameter = {};
277
+ if (creatorId !== undefined) {
278
+ localVarQueryParameter['creatorId'] = creatorId;
279
+ }
280
+ if (title !== undefined) {
281
+ localVarQueryParameter['title'] = title;
282
+ }
283
+ if (pageSize !== undefined) {
284
+ localVarQueryParameter['pageSize'] = pageSize;
285
+ }
286
+ if (cursor !== undefined) {
287
+ localVarQueryParameter['cursor'] = cursor;
288
+ }
289
+ localVarHeaderParameter['Accept'] = '*/*';
290
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
291
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
293
+ return [2, {
294
+ url: (0, common_1.toPathString)(localVarUrlObj),
295
+ options: localVarRequestOptions,
296
+ }];
297
+ });
298
+ });
299
+ },
300
+ setToUploaded: function (setSourceToUploadedRequestVO_1) {
301
+ var args_1 = [];
302
+ for (var _i = 1; _i < arguments.length; _i++) {
303
+ args_1[_i - 1] = arguments[_i];
112
304
  }
113
- localVarHeaderParameter['Accept'] = '*/*';
114
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
115
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
117
- return {
118
- url: (0, common_1.toPathString)(localVarUrlObj),
119
- options: localVarRequestOptions,
120
- };
305
+ return __awaiter(_this, __spreadArray([setSourceToUploadedRequestVO_1], __read(args_1), false), void 0, function (setSourceToUploadedRequestVO, options) {
306
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
307
+ if (options === void 0) { options = {}; }
308
+ return __generator(this, function (_a) {
309
+ (0, common_1.assertParamExists)('setToUploaded', 'setSourceToUploadedRequestVO', setSourceToUploadedRequestVO);
310
+ localVarPath = "/api/sources/uploaded";
311
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ }
315
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
316
+ localVarHeaderParameter = {};
317
+ localVarQueryParameter = {};
318
+ localVarHeaderParameter['Content-Type'] = 'application/json';
319
+ localVarHeaderParameter['Accept'] = '*/*';
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
323
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSourceToUploadedRequestVO, localVarRequestOptions, configuration);
324
+ return [2, {
325
+ url: (0, common_1.toPathString)(localVarUrlObj),
326
+ options: localVarRequestOptions,
327
+ }];
328
+ });
329
+ });
121
330
  },
122
- setToUploaded: async (setSourceToUploadedRequestVO, options = {}) => {
123
- (0, common_1.assertParamExists)('setToUploaded', 'setSourceToUploadedRequestVO', setSourceToUploadedRequestVO);
124
- const localVarPath = `/api/sources/uploaded`;
125
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
126
- let baseOptions;
127
- if (configuration) {
128
- baseOptions = configuration.baseOptions;
331
+ test: function () {
332
+ var args_1 = [];
333
+ for (var _i = 0; _i < arguments.length; _i++) {
334
+ args_1[_i] = arguments[_i];
129
335
  }
130
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
131
- const localVarHeaderParameter = {};
132
- const localVarQueryParameter = {};
133
- localVarHeaderParameter['Content-Type'] = 'application/json';
134
- localVarHeaderParameter['Accept'] = '*/*';
135
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSourceToUploadedRequestVO, localVarRequestOptions, configuration);
139
- return {
140
- url: (0, common_1.toPathString)(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- };
336
+ return __awaiter(_this, __spreadArray([], __read(args_1), false), void 0, function (options) {
337
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
338
+ if (options === void 0) { options = {}; }
339
+ return __generator(this, function (_a) {
340
+ localVarPath = "/api/sources/test";
341
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
342
+ if (configuration) {
343
+ baseOptions = configuration.baseOptions;
344
+ }
345
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
346
+ localVarHeaderParameter = {};
347
+ localVarQueryParameter = {};
348
+ localVarHeaderParameter['Accept'] = '*/*';
349
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
350
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
351
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
352
+ return [2, {
353
+ url: (0, common_1.toPathString)(localVarUrlObj),
354
+ options: localVarRequestOptions,
355
+ }];
356
+ });
357
+ });
143
358
  },
144
- update: async (updateSourceRequestVO, options = {}) => {
145
- (0, common_1.assertParamExists)('update', 'updateSourceRequestVO', updateSourceRequestVO);
146
- const localVarPath = `/api/sources`;
147
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
148
- let baseOptions;
149
- if (configuration) {
150
- baseOptions = configuration.baseOptions;
359
+ update: function (updateSourceRequestVO_1) {
360
+ var args_1 = [];
361
+ for (var _i = 1; _i < arguments.length; _i++) {
362
+ args_1[_i - 1] = arguments[_i];
151
363
  }
152
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
153
- const localVarHeaderParameter = {};
154
- const localVarQueryParameter = {};
155
- localVarHeaderParameter['Content-Type'] = 'application/json';
156
- localVarHeaderParameter['Accept'] = '*/*';
157
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
158
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
159
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
160
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSourceRequestVO, localVarRequestOptions, configuration);
161
- return {
162
- url: (0, common_1.toPathString)(localVarUrlObj),
163
- options: localVarRequestOptions,
164
- };
364
+ return __awaiter(_this, __spreadArray([updateSourceRequestVO_1], __read(args_1), false), void 0, function (updateSourceRequestVO, options) {
365
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
366
+ if (options === void 0) { options = {}; }
367
+ return __generator(this, function (_a) {
368
+ (0, common_1.assertParamExists)('update', 'updateSourceRequestVO', updateSourceRequestVO);
369
+ localVarPath = "/api/sources";
370
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
371
+ if (configuration) {
372
+ baseOptions = configuration.baseOptions;
373
+ }
374
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
375
+ localVarHeaderParameter = {};
376
+ localVarQueryParameter = {};
377
+ localVarHeaderParameter['Content-Type'] = 'application/json';
378
+ localVarHeaderParameter['Accept'] = '*/*';
379
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
380
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSourceRequestVO, localVarRequestOptions, configuration);
383
+ return [2, {
384
+ url: (0, common_1.toPathString)(localVarUrlObj),
385
+ options: localVarRequestOptions,
386
+ }];
387
+ });
388
+ });
165
389
  },
166
390
  };
167
391
  };
168
392
  exports.SourceControllerApiAxiosParamCreator = SourceControllerApiAxiosParamCreator;
169
- const SourceControllerApiFp = function (configuration) {
170
- const localVarAxiosParamCreator = (0, exports.SourceControllerApiAxiosParamCreator)(configuration);
393
+ var SourceControllerApiFp = function (configuration) {
394
+ var localVarAxiosParamCreator = (0, exports.SourceControllerApiAxiosParamCreator)(configuration);
171
395
  return {
172
- async create1(createSourceRequestVO, options) {
173
- var _a, _b, _c;
174
- const localVarAxiosArgs = await localVarAxiosParamCreator.create1(createSourceRequestVO, options);
175
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
176
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.create1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
177
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
396
+ create1: function (createSourceRequestVO, options) {
397
+ return __awaiter(this, void 0, void 0, function () {
398
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
399
+ var _a, _b, _c;
400
+ return __generator(this, function (_d) {
401
+ switch (_d.label) {
402
+ case 0: return [4, localVarAxiosParamCreator.create1(createSourceRequestVO, options)];
403
+ case 1:
404
+ localVarAxiosArgs = _d.sent();
405
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
406
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.create1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
407
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
408
+ }
409
+ });
410
+ });
411
+ },
412
+ getDetail1: function (id, options) {
413
+ return __awaiter(this, void 0, void 0, function () {
414
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
415
+ var _a, _b, _c;
416
+ return __generator(this, function (_d) {
417
+ switch (_d.label) {
418
+ case 0: return [4, localVarAxiosParamCreator.getDetail1(id, options)];
419
+ case 1:
420
+ localVarAxiosArgs = _d.sent();
421
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
422
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.getDetail1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
423
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
424
+ }
425
+ });
426
+ });
178
427
  },
179
- async getDetail1(id, options) {
180
- var _a, _b, _c;
181
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDetail1(id, options);
182
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
183
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.getDetail1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
184
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
428
+ list1: function (creatorId, title, pageSize, cursor, options) {
429
+ return __awaiter(this, void 0, void 0, function () {
430
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
431
+ var _a, _b, _c;
432
+ return __generator(this, function (_d) {
433
+ switch (_d.label) {
434
+ case 0: return [4, localVarAxiosParamCreator.list1(creatorId, title, pageSize, cursor, options)];
435
+ case 1:
436
+ localVarAxiosArgs = _d.sent();
437
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
438
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.list1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
439
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
440
+ }
441
+ });
442
+ });
185
443
  },
186
- async list1(creatorId, title, pageSize, cursor, options) {
187
- var _a, _b, _c;
188
- const localVarAxiosArgs = await localVarAxiosParamCreator.list1(creatorId, title, pageSize, cursor, options);
189
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
190
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.list1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
191
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
444
+ setToUploaded: function (setSourceToUploadedRequestVO, options) {
445
+ return __awaiter(this, void 0, void 0, function () {
446
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
447
+ var _a, _b, _c;
448
+ return __generator(this, function (_d) {
449
+ switch (_d.label) {
450
+ case 0: return [4, localVarAxiosParamCreator.setToUploaded(setSourceToUploadedRequestVO, options)];
451
+ case 1:
452
+ localVarAxiosArgs = _d.sent();
453
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
454
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.setToUploaded']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
455
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
456
+ }
457
+ });
458
+ });
192
459
  },
193
- async setToUploaded(setSourceToUploadedRequestVO, options) {
194
- var _a, _b, _c;
195
- const localVarAxiosArgs = await localVarAxiosParamCreator.setToUploaded(setSourceToUploadedRequestVO, options);
196
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
197
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.setToUploaded']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
198
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
460
+ test: function (options) {
461
+ return __awaiter(this, void 0, void 0, function () {
462
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
463
+ var _a, _b, _c;
464
+ return __generator(this, function (_d) {
465
+ switch (_d.label) {
466
+ case 0: return [4, localVarAxiosParamCreator.test(options)];
467
+ case 1:
468
+ localVarAxiosArgs = _d.sent();
469
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
470
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.test']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
471
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
472
+ }
473
+ });
474
+ });
199
475
  },
200
- async update(updateSourceRequestVO, options) {
201
- var _a, _b, _c;
202
- const localVarAxiosArgs = await localVarAxiosParamCreator.update(updateSourceRequestVO, options);
203
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
204
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.update']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
205
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
476
+ update: function (updateSourceRequestVO, options) {
477
+ return __awaiter(this, void 0, void 0, function () {
478
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
479
+ var _a, _b, _c;
480
+ return __generator(this, function (_d) {
481
+ switch (_d.label) {
482
+ case 0: return [4, localVarAxiosParamCreator.update(updateSourceRequestVO, options)];
483
+ case 1:
484
+ localVarAxiosArgs = _d.sent();
485
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
486
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SourceControllerApi.update']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
487
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
488
+ }
489
+ });
490
+ });
206
491
  },
207
492
  };
208
493
  };
209
494
  exports.SourceControllerApiFp = SourceControllerApiFp;
210
- const SourceControllerApiFactory = function (configuration, basePath, axios) {
211
- const localVarFp = (0, exports.SourceControllerApiFp)(configuration);
495
+ var SourceControllerApiFactory = function (configuration, basePath, axios) {
496
+ var localVarFp = (0, exports.SourceControllerApiFp)(configuration);
212
497
  return {
213
- create1(createSourceRequestVO, options) {
214
- return localVarFp.create1(createSourceRequestVO, options).then((request) => request(axios, basePath));
498
+ create1: function (createSourceRequestVO, options) {
499
+ return localVarFp.create1(createSourceRequestVO, options).then(function (request) { return request(axios, basePath); });
215
500
  },
216
- getDetail1(id, options) {
217
- return localVarFp.getDetail1(id, options).then((request) => request(axios, basePath));
501
+ getDetail1: function (id, options) {
502
+ return localVarFp.getDetail1(id, options).then(function (request) { return request(axios, basePath); });
218
503
  },
219
- list1(creatorId, title, pageSize, cursor, options) {
220
- return localVarFp.list1(creatorId, title, pageSize, cursor, options).then((request) => request(axios, basePath));
504
+ list1: function (creatorId, title, pageSize, cursor, options) {
505
+ return localVarFp.list1(creatorId, title, pageSize, cursor, options).then(function (request) { return request(axios, basePath); });
221
506
  },
222
- setToUploaded(setSourceToUploadedRequestVO, options) {
223
- return localVarFp.setToUploaded(setSourceToUploadedRequestVO, options).then((request) => request(axios, basePath));
507
+ setToUploaded: function (setSourceToUploadedRequestVO, options) {
508
+ return localVarFp.setToUploaded(setSourceToUploadedRequestVO, options).then(function (request) { return request(axios, basePath); });
224
509
  },
225
- update(updateSourceRequestVO, options) {
226
- return localVarFp.update(updateSourceRequestVO, options).then((request) => request(axios, basePath));
510
+ test: function (options) {
511
+ return localVarFp.test(options).then(function (request) { return request(axios, basePath); });
512
+ },
513
+ update: function (updateSourceRequestVO, options) {
514
+ return localVarFp.update(updateSourceRequestVO, options).then(function (request) { return request(axios, basePath); });
227
515
  },
228
516
  };
229
517
  };
230
518
  exports.SourceControllerApiFactory = SourceControllerApiFactory;
231
- class SourceControllerApi extends base_1.BaseAPI {
232
- create1(createSourceRequestVO, options) {
233
- return (0, exports.SourceControllerApiFp)(this.configuration).create1(createSourceRequestVO, options).then((request) => request(this.axios, this.basePath));
234
- }
235
- getDetail1(id, options) {
236
- return (0, exports.SourceControllerApiFp)(this.configuration).getDetail1(id, options).then((request) => request(this.axios, this.basePath));
237
- }
238
- list1(creatorId, title, pageSize, cursor, options) {
239
- return (0, exports.SourceControllerApiFp)(this.configuration).list1(creatorId, title, pageSize, cursor, options).then((request) => request(this.axios, this.basePath));
240
- }
241
- setToUploaded(setSourceToUploadedRequestVO, options) {
242
- return (0, exports.SourceControllerApiFp)(this.configuration).setToUploaded(setSourceToUploadedRequestVO, options).then((request) => request(this.axios, this.basePath));
243
- }
244
- update(updateSourceRequestVO, options) {
245
- return (0, exports.SourceControllerApiFp)(this.configuration).update(updateSourceRequestVO, options).then((request) => request(this.axios, this.basePath));
519
+ var SourceControllerApi = (function (_super) {
520
+ __extends(SourceControllerApi, _super);
521
+ function SourceControllerApi() {
522
+ return _super !== null && _super.apply(this, arguments) || this;
246
523
  }
247
- }
524
+ SourceControllerApi.prototype.create1 = function (createSourceRequestVO, options) {
525
+ var _this = this;
526
+ return (0, exports.SourceControllerApiFp)(this.configuration).create1(createSourceRequestVO, options).then(function (request) { return request(_this.axios, _this.basePath); });
527
+ };
528
+ SourceControllerApi.prototype.getDetail1 = function (id, options) {
529
+ var _this = this;
530
+ return (0, exports.SourceControllerApiFp)(this.configuration).getDetail1(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
531
+ };
532
+ SourceControllerApi.prototype.list1 = function (creatorId, title, pageSize, cursor, options) {
533
+ var _this = this;
534
+ return (0, exports.SourceControllerApiFp)(this.configuration).list1(creatorId, title, pageSize, cursor, options).then(function (request) { return request(_this.axios, _this.basePath); });
535
+ };
536
+ SourceControllerApi.prototype.setToUploaded = function (setSourceToUploadedRequestVO, options) {
537
+ var _this = this;
538
+ return (0, exports.SourceControllerApiFp)(this.configuration).setToUploaded(setSourceToUploadedRequestVO, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
+ };
540
+ SourceControllerApi.prototype.test = function (options) {
541
+ var _this = this;
542
+ return (0, exports.SourceControllerApiFp)(this.configuration).test(options).then(function (request) { return request(_this.axios, _this.basePath); });
543
+ };
544
+ SourceControllerApi.prototype.update = function (updateSourceRequestVO, options) {
545
+ var _this = this;
546
+ return (0, exports.SourceControllerApiFp)(this.configuration).update(updateSourceRequestVO, options).then(function (request) { return request(_this.axios, _this.basePath); });
547
+ };
548
+ return SourceControllerApi;
549
+ }(base_1.BaseAPI));
248
550
  exports.SourceControllerApi = SourceControllerApi;
249
- const TaskControllerApiAxiosParamCreator = function (configuration) {
551
+ var TaskControllerApiAxiosParamCreator = function (configuration) {
552
+ var _this = this;
250
553
  return {
251
- create: async (createTaskRequestVO, options = {}) => {
252
- (0, common_1.assertParamExists)('create', 'createTaskRequestVO', createTaskRequestVO);
253
- const localVarPath = `/api/tasks`;
254
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
255
- let baseOptions;
256
- if (configuration) {
257
- baseOptions = configuration.baseOptions;
554
+ create: function (createTaskRequestVO_1) {
555
+ var args_1 = [];
556
+ for (var _i = 1; _i < arguments.length; _i++) {
557
+ args_1[_i - 1] = arguments[_i];
258
558
  }
259
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
260
- const localVarHeaderParameter = {};
261
- const localVarQueryParameter = {};
262
- localVarHeaderParameter['Content-Type'] = 'application/json';
263
- localVarHeaderParameter['Accept'] = '*/*';
264
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
265
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
267
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTaskRequestVO, localVarRequestOptions, configuration);
268
- return {
269
- url: (0, common_1.toPathString)(localVarUrlObj),
270
- options: localVarRequestOptions,
271
- };
559
+ return __awaiter(_this, __spreadArray([createTaskRequestVO_1], __read(args_1), false), void 0, function (createTaskRequestVO, options) {
560
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
561
+ if (options === void 0) { options = {}; }
562
+ return __generator(this, function (_a) {
563
+ (0, common_1.assertParamExists)('create', 'createTaskRequestVO', createTaskRequestVO);
564
+ localVarPath = "/api/tasks";
565
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
566
+ if (configuration) {
567
+ baseOptions = configuration.baseOptions;
568
+ }
569
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
570
+ localVarHeaderParameter = {};
571
+ localVarQueryParameter = {};
572
+ localVarHeaderParameter['Content-Type'] = 'application/json';
573
+ localVarHeaderParameter['Accept'] = '*/*';
574
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
575
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
576
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
577
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTaskRequestVO, localVarRequestOptions, configuration);
578
+ return [2, {
579
+ url: (0, common_1.toPathString)(localVarUrlObj),
580
+ options: localVarRequestOptions,
581
+ }];
582
+ });
583
+ });
272
584
  },
273
- getDetail: async (id, options = {}) => {
274
- (0, common_1.assertParamExists)('getDetail', 'id', id);
275
- const localVarPath = `/api/tasks/{id}`
276
- .replace('{id}', encodeURIComponent(String(id)));
277
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
278
- let baseOptions;
279
- if (configuration) {
280
- baseOptions = configuration.baseOptions;
585
+ getDetail: function (id_1) {
586
+ var args_1 = [];
587
+ for (var _i = 1; _i < arguments.length; _i++) {
588
+ args_1[_i - 1] = arguments[_i];
281
589
  }
282
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
283
- const localVarHeaderParameter = {};
284
- const localVarQueryParameter = {};
285
- localVarHeaderParameter['Accept'] = '*/*';
286
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
287
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
288
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
289
- return {
290
- url: (0, common_1.toPathString)(localVarUrlObj),
291
- options: localVarRequestOptions,
292
- };
590
+ return __awaiter(_this, __spreadArray([id_1], __read(args_1), false), void 0, function (id, options) {
591
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
592
+ if (options === void 0) { options = {}; }
593
+ return __generator(this, function (_a) {
594
+ (0, common_1.assertParamExists)('getDetail', 'id', id);
595
+ localVarPath = "/api/tasks/{id}"
596
+ .replace('{id}', encodeURIComponent(String(id)));
597
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
598
+ if (configuration) {
599
+ baseOptions = configuration.baseOptions;
600
+ }
601
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
602
+ localVarHeaderParameter = {};
603
+ localVarQueryParameter = {};
604
+ localVarHeaderParameter['Accept'] = '*/*';
605
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
606
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
607
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
608
+ return [2, {
609
+ url: (0, common_1.toPathString)(localVarUrlObj),
610
+ options: localVarRequestOptions,
611
+ }];
612
+ });
613
+ });
293
614
  },
294
- list: async (creatorId, pageSize, cursor, options = {}) => {
295
- const localVarPath = `/api/tasks`;
296
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
297
- let baseOptions;
298
- if (configuration) {
299
- baseOptions = configuration.baseOptions;
300
- }
301
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
302
- const localVarHeaderParameter = {};
303
- const localVarQueryParameter = {};
304
- if (creatorId !== undefined) {
305
- localVarQueryParameter['creatorId'] = creatorId;
615
+ list: function (creatorId_1, pageSize_1, cursor_1) {
616
+ var args_1 = [];
617
+ for (var _i = 3; _i < arguments.length; _i++) {
618
+ args_1[_i - 3] = arguments[_i];
306
619
  }
307
- if (pageSize !== undefined) {
308
- localVarQueryParameter['pageSize'] = pageSize;
309
- }
310
- if (cursor !== undefined) {
311
- localVarQueryParameter['cursor'] = cursor;
312
- }
313
- localVarHeaderParameter['Accept'] = '*/*';
314
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
315
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
317
- return {
318
- url: (0, common_1.toPathString)(localVarUrlObj),
319
- options: localVarRequestOptions,
320
- };
620
+ return __awaiter(_this, __spreadArray([creatorId_1, pageSize_1, cursor_1], __read(args_1), false), void 0, function (creatorId, pageSize, cursor, options) {
621
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
622
+ if (options === void 0) { options = {}; }
623
+ return __generator(this, function (_a) {
624
+ localVarPath = "/api/tasks";
625
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
626
+ if (configuration) {
627
+ baseOptions = configuration.baseOptions;
628
+ }
629
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
630
+ localVarHeaderParameter = {};
631
+ localVarQueryParameter = {};
632
+ if (creatorId !== undefined) {
633
+ localVarQueryParameter['creatorId'] = creatorId;
634
+ }
635
+ if (pageSize !== undefined) {
636
+ localVarQueryParameter['pageSize'] = pageSize;
637
+ }
638
+ if (cursor !== undefined) {
639
+ localVarQueryParameter['cursor'] = cursor;
640
+ }
641
+ localVarHeaderParameter['Accept'] = '*/*';
642
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
643
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
644
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
645
+ return [2, {
646
+ url: (0, common_1.toPathString)(localVarUrlObj),
647
+ options: localVarRequestOptions,
648
+ }];
649
+ });
650
+ });
321
651
  },
322
652
  };
323
653
  };
324
654
  exports.TaskControllerApiAxiosParamCreator = TaskControllerApiAxiosParamCreator;
325
- const TaskControllerApiFp = function (configuration) {
326
- const localVarAxiosParamCreator = (0, exports.TaskControllerApiAxiosParamCreator)(configuration);
655
+ var TaskControllerApiFp = function (configuration) {
656
+ var localVarAxiosParamCreator = (0, exports.TaskControllerApiAxiosParamCreator)(configuration);
327
657
  return {
328
- async create(createTaskRequestVO, options) {
329
- var _a, _b, _c;
330
- const localVarAxiosArgs = await localVarAxiosParamCreator.create(createTaskRequestVO, options);
331
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
332
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskControllerApi.create']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
333
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
658
+ create: function (createTaskRequestVO, options) {
659
+ return __awaiter(this, void 0, void 0, function () {
660
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
661
+ var _a, _b, _c;
662
+ return __generator(this, function (_d) {
663
+ switch (_d.label) {
664
+ case 0: return [4, localVarAxiosParamCreator.create(createTaskRequestVO, options)];
665
+ case 1:
666
+ localVarAxiosArgs = _d.sent();
667
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
668
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskControllerApi.create']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
669
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
670
+ }
671
+ });
672
+ });
334
673
  },
335
- async getDetail(id, options) {
336
- var _a, _b, _c;
337
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDetail(id, options);
338
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
339
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskControllerApi.getDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
340
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
674
+ getDetail: function (id, options) {
675
+ return __awaiter(this, void 0, void 0, function () {
676
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
677
+ var _a, _b, _c;
678
+ return __generator(this, function (_d) {
679
+ switch (_d.label) {
680
+ case 0: return [4, localVarAxiosParamCreator.getDetail(id, options)];
681
+ case 1:
682
+ localVarAxiosArgs = _d.sent();
683
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
684
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskControllerApi.getDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
685
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
686
+ }
687
+ });
688
+ });
341
689
  },
342
- async list(creatorId, pageSize, cursor, options) {
343
- var _a, _b, _c;
344
- const localVarAxiosArgs = await localVarAxiosParamCreator.list(creatorId, pageSize, cursor, options);
345
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
346
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskControllerApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
347
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
690
+ list: function (creatorId, pageSize, cursor, options) {
691
+ return __awaiter(this, void 0, void 0, function () {
692
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
693
+ var _a, _b, _c;
694
+ return __generator(this, function (_d) {
695
+ switch (_d.label) {
696
+ case 0: return [4, localVarAxiosParamCreator.list(creatorId, pageSize, cursor, options)];
697
+ case 1:
698
+ localVarAxiosArgs = _d.sent();
699
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
700
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TaskControllerApi.list']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
701
+ return [2, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
702
+ }
703
+ });
704
+ });
348
705
  },
349
706
  };
350
707
  };
351
708
  exports.TaskControllerApiFp = TaskControllerApiFp;
352
- const TaskControllerApiFactory = function (configuration, basePath, axios) {
353
- const localVarFp = (0, exports.TaskControllerApiFp)(configuration);
709
+ var TaskControllerApiFactory = function (configuration, basePath, axios) {
710
+ var localVarFp = (0, exports.TaskControllerApiFp)(configuration);
354
711
  return {
355
- create(createTaskRequestVO, options) {
356
- return localVarFp.create(createTaskRequestVO, options).then((request) => request(axios, basePath));
712
+ create: function (createTaskRequestVO, options) {
713
+ return localVarFp.create(createTaskRequestVO, options).then(function (request) { return request(axios, basePath); });
357
714
  },
358
- getDetail(id, options) {
359
- return localVarFp.getDetail(id, options).then((request) => request(axios, basePath));
715
+ getDetail: function (id, options) {
716
+ return localVarFp.getDetail(id, options).then(function (request) { return request(axios, basePath); });
360
717
  },
361
- list(creatorId, pageSize, cursor, options) {
362
- return localVarFp.list(creatorId, pageSize, cursor, options).then((request) => request(axios, basePath));
718
+ list: function (creatorId, pageSize, cursor, options) {
719
+ return localVarFp.list(creatorId, pageSize, cursor, options).then(function (request) { return request(axios, basePath); });
363
720
  },
364
721
  };
365
722
  };
366
723
  exports.TaskControllerApiFactory = TaskControllerApiFactory;
367
- class TaskControllerApi extends base_1.BaseAPI {
368
- create(createTaskRequestVO, options) {
369
- return (0, exports.TaskControllerApiFp)(this.configuration).create(createTaskRequestVO, options).then((request) => request(this.axios, this.basePath));
370
- }
371
- getDetail(id, options) {
372
- return (0, exports.TaskControllerApiFp)(this.configuration).getDetail(id, options).then((request) => request(this.axios, this.basePath));
373
- }
374
- list(creatorId, pageSize, cursor, options) {
375
- return (0, exports.TaskControllerApiFp)(this.configuration).list(creatorId, pageSize, cursor, options).then((request) => request(this.axios, this.basePath));
724
+ var TaskControllerApi = (function (_super) {
725
+ __extends(TaskControllerApi, _super);
726
+ function TaskControllerApi() {
727
+ return _super !== null && _super.apply(this, arguments) || this;
376
728
  }
377
- }
729
+ TaskControllerApi.prototype.create = function (createTaskRequestVO, options) {
730
+ var _this = this;
731
+ return (0, exports.TaskControllerApiFp)(this.configuration).create(createTaskRequestVO, options).then(function (request) { return request(_this.axios, _this.basePath); });
732
+ };
733
+ TaskControllerApi.prototype.getDetail = function (id, options) {
734
+ var _this = this;
735
+ return (0, exports.TaskControllerApiFp)(this.configuration).getDetail(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
736
+ };
737
+ TaskControllerApi.prototype.list = function (creatorId, pageSize, cursor, options) {
738
+ var _this = this;
739
+ return (0, exports.TaskControllerApiFp)(this.configuration).list(creatorId, pageSize, cursor, options).then(function (request) { return request(_this.axios, _this.basePath); });
740
+ };
741
+ return TaskControllerApi;
742
+ }(base_1.BaseAPI));
378
743
  exports.TaskControllerApi = TaskControllerApi;