@teemill/projects 0.3.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.
- package/.openapi-generator/FILES +11 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/api.ts +462 -0
- package/base.ts +72 -0
- package/common.ts +150 -0
- package/configuration.ts +101 -0
- package/dist/api.d.ts +274 -0
- package/dist/api.js +489 -0
- package/dist/base.d.ts +54 -0
- package/dist/base.js +80 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +252 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Projects API
|
|
6
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
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;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
|
+
exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = void 0;
|
|
79
|
+
var axios_1 = require("axios");
|
|
80
|
+
// Some imports not used depending on template conditions
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
var common_1 = require("./common");
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
var base_1 = require("./base");
|
|
85
|
+
/**
|
|
86
|
+
* ProjectsApi - axios parameter creator
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
var ProjectsApiAxiosParamCreator = function (configuration) {
|
|
90
|
+
var _this = this;
|
|
91
|
+
return {
|
|
92
|
+
/**
|
|
93
|
+
* Delete a project
|
|
94
|
+
* @summary Delete project
|
|
95
|
+
* @param {string} projectId Projects unique identifier
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
_delete: function (projectId, options) {
|
|
100
|
+
if (options === void 0) { options = {}; }
|
|
101
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
102
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
103
|
+
return __generator(this, function (_a) {
|
|
104
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
105
|
+
(0, common_1.assertParamExists)('_delete', 'projectId', projectId);
|
|
106
|
+
localVarPath = "/dashboard/projects/{projectId}"
|
|
107
|
+
.replace("{".concat("projectId", "}"), encodeURIComponent(String(projectId)));
|
|
108
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
}
|
|
112
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
113
|
+
localVarHeaderParameter = {};
|
|
114
|
+
localVarQueryParameter = {};
|
|
115
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
116
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
118
|
+
return [2 /*return*/, {
|
|
119
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
120
|
+
options: localVarRequestOptions,
|
|
121
|
+
}];
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* Create a new projects
|
|
127
|
+
* @summary Create project
|
|
128
|
+
* @param {*} [options] Override http request option.
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
*/
|
|
131
|
+
create: function (options) {
|
|
132
|
+
if (options === void 0) { options = {}; }
|
|
133
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
134
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
135
|
+
return __generator(this, function (_a) {
|
|
136
|
+
localVarPath = "/dashboard/projects";
|
|
137
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
138
|
+
if (configuration) {
|
|
139
|
+
baseOptions = configuration.baseOptions;
|
|
140
|
+
}
|
|
141
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
142
|
+
localVarHeaderParameter = {};
|
|
143
|
+
localVarQueryParameter = {};
|
|
144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* Get a project
|
|
156
|
+
* @summary Get project
|
|
157
|
+
* @param {string} projectId Projects unique identifier
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
get: function (projectId, options) {
|
|
162
|
+
if (options === void 0) { options = {}; }
|
|
163
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
164
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
|
+
return __generator(this, function (_a) {
|
|
166
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('get', 'projectId', projectId);
|
|
168
|
+
localVarPath = "/dashboard/projects/{projectId}"
|
|
169
|
+
.replace("{".concat("projectId", "}"), encodeURIComponent(String(projectId)));
|
|
170
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
}
|
|
174
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
175
|
+
localVarHeaderParameter = {};
|
|
176
|
+
localVarQueryParameter = {};
|
|
177
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
178
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
179
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
180
|
+
return [2 /*return*/, {
|
|
181
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
}];
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* List all projects available
|
|
189
|
+
* @summary List projects
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
*/
|
|
193
|
+
list: function (options) {
|
|
194
|
+
if (options === void 0) { options = {}; }
|
|
195
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
196
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
197
|
+
return __generator(this, function (_a) {
|
|
198
|
+
localVarPath = "/dashboard/projects";
|
|
199
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
204
|
+
localVarHeaderParameter = {};
|
|
205
|
+
localVarQueryParameter = {};
|
|
206
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
207
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
209
|
+
return [2 /*return*/, {
|
|
210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
}];
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
* Update a project
|
|
218
|
+
* @summary Update project
|
|
219
|
+
* @param {string} projectId Projects unique identifier
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
update: function (projectId, options) {
|
|
224
|
+
if (options === void 0) { options = {}; }
|
|
225
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
226
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
229
|
+
(0, common_1.assertParamExists)('update', 'projectId', projectId);
|
|
230
|
+
localVarPath = "/dashboard/projects/{projectId}"
|
|
231
|
+
.replace("{".concat("projectId", "}"), encodeURIComponent(String(projectId)));
|
|
232
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
233
|
+
if (configuration) {
|
|
234
|
+
baseOptions = configuration.baseOptions;
|
|
235
|
+
}
|
|
236
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
237
|
+
localVarHeaderParameter = {};
|
|
238
|
+
localVarQueryParameter = {};
|
|
239
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
242
|
+
return [2 /*return*/, {
|
|
243
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
244
|
+
options: localVarRequestOptions,
|
|
245
|
+
}];
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
exports.ProjectsApiAxiosParamCreator = ProjectsApiAxiosParamCreator;
|
|
252
|
+
/**
|
|
253
|
+
* ProjectsApi - functional programming interface
|
|
254
|
+
* @export
|
|
255
|
+
*/
|
|
256
|
+
var ProjectsApiFp = function (configuration) {
|
|
257
|
+
var localVarAxiosParamCreator = (0, exports.ProjectsApiAxiosParamCreator)(configuration);
|
|
258
|
+
return {
|
|
259
|
+
/**
|
|
260
|
+
* Delete a project
|
|
261
|
+
* @summary Delete project
|
|
262
|
+
* @param {string} projectId Projects unique identifier
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
_delete: function (projectId, options) {
|
|
267
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
268
|
+
var localVarAxiosArgs;
|
|
269
|
+
return __generator(this, function (_a) {
|
|
270
|
+
switch (_a.label) {
|
|
271
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator._delete(projectId, options)];
|
|
272
|
+
case 1:
|
|
273
|
+
localVarAxiosArgs = _a.sent();
|
|
274
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
* Create a new projects
|
|
281
|
+
* @summary Create project
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
create: function (options) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
287
|
+
var localVarAxiosArgs;
|
|
288
|
+
return __generator(this, function (_a) {
|
|
289
|
+
switch (_a.label) {
|
|
290
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.create(options)];
|
|
291
|
+
case 1:
|
|
292
|
+
localVarAxiosArgs = _a.sent();
|
|
293
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* Get a project
|
|
300
|
+
* @summary Get project
|
|
301
|
+
* @param {string} projectId Projects unique identifier
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
*/
|
|
305
|
+
get: function (projectId, options) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
+
var localVarAxiosArgs;
|
|
308
|
+
return __generator(this, function (_a) {
|
|
309
|
+
switch (_a.label) {
|
|
310
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.get(projectId, options)];
|
|
311
|
+
case 1:
|
|
312
|
+
localVarAxiosArgs = _a.sent();
|
|
313
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
});
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* List all projects available
|
|
320
|
+
* @summary List projects
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
list: function (options) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
326
|
+
var localVarAxiosArgs;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
329
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.list(options)];
|
|
330
|
+
case 1:
|
|
331
|
+
localVarAxiosArgs = _a.sent();
|
|
332
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
},
|
|
337
|
+
/**
|
|
338
|
+
* Update a project
|
|
339
|
+
* @summary Update project
|
|
340
|
+
* @param {string} projectId Projects unique identifier
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
update: function (projectId, options) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
346
|
+
var localVarAxiosArgs;
|
|
347
|
+
return __generator(this, function (_a) {
|
|
348
|
+
switch (_a.label) {
|
|
349
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.update(projectId, options)];
|
|
350
|
+
case 1:
|
|
351
|
+
localVarAxiosArgs = _a.sent();
|
|
352
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
exports.ProjectsApiFp = ProjectsApiFp;
|
|
360
|
+
/**
|
|
361
|
+
* ProjectsApi - factory interface
|
|
362
|
+
* @export
|
|
363
|
+
*/
|
|
364
|
+
var ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
365
|
+
var localVarFp = (0, exports.ProjectsApiFp)(configuration);
|
|
366
|
+
return {
|
|
367
|
+
/**
|
|
368
|
+
* Delete a project
|
|
369
|
+
* @summary Delete project
|
|
370
|
+
* @param {string} projectId Projects unique identifier
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
_delete: function (projectId, options) {
|
|
375
|
+
return localVarFp._delete(projectId, options).then(function (request) { return request(axios, basePath); });
|
|
376
|
+
},
|
|
377
|
+
/**
|
|
378
|
+
* Create a new projects
|
|
379
|
+
* @summary Create project
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
create: function (options) {
|
|
384
|
+
return localVarFp.create(options).then(function (request) { return request(axios, basePath); });
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
* Get a project
|
|
388
|
+
* @summary Get project
|
|
389
|
+
* @param {string} projectId Projects unique identifier
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
get: function (projectId, options) {
|
|
394
|
+
return localVarFp.get(projectId, options).then(function (request) { return request(axios, basePath); });
|
|
395
|
+
},
|
|
396
|
+
/**
|
|
397
|
+
* List all projects available
|
|
398
|
+
* @summary List projects
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
list: function (options) {
|
|
403
|
+
return localVarFp.list(options).then(function (request) { return request(axios, basePath); });
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
* Update a project
|
|
407
|
+
* @summary Update project
|
|
408
|
+
* @param {string} projectId Projects unique identifier
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
update: function (projectId, options) {
|
|
413
|
+
return localVarFp.update(projectId, options).then(function (request) { return request(axios, basePath); });
|
|
414
|
+
},
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
exports.ProjectsApiFactory = ProjectsApiFactory;
|
|
418
|
+
/**
|
|
419
|
+
* ProjectsApi - object-oriented interface
|
|
420
|
+
* @export
|
|
421
|
+
* @class ProjectsApi
|
|
422
|
+
* @extends {BaseAPI}
|
|
423
|
+
*/
|
|
424
|
+
var ProjectsApi = /** @class */ (function (_super) {
|
|
425
|
+
__extends(ProjectsApi, _super);
|
|
426
|
+
function ProjectsApi() {
|
|
427
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Delete a project
|
|
431
|
+
* @summary Delete project
|
|
432
|
+
* @param {string} projectId Projects unique identifier
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
* @memberof ProjectsApi
|
|
436
|
+
*/
|
|
437
|
+
ProjectsApi.prototype._delete = function (projectId, options) {
|
|
438
|
+
var _this = this;
|
|
439
|
+
return (0, exports.ProjectsApiFp)(this.configuration)._delete(projectId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
440
|
+
};
|
|
441
|
+
/**
|
|
442
|
+
* Create a new projects
|
|
443
|
+
* @summary Create project
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
* @memberof ProjectsApi
|
|
447
|
+
*/
|
|
448
|
+
ProjectsApi.prototype.create = function (options) {
|
|
449
|
+
var _this = this;
|
|
450
|
+
return (0, exports.ProjectsApiFp)(this.configuration).create(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Get a project
|
|
454
|
+
* @summary Get project
|
|
455
|
+
* @param {string} projectId Projects unique identifier
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
* @memberof ProjectsApi
|
|
459
|
+
*/
|
|
460
|
+
ProjectsApi.prototype.get = function (projectId, options) {
|
|
461
|
+
var _this = this;
|
|
462
|
+
return (0, exports.ProjectsApiFp)(this.configuration).get(projectId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* List all projects available
|
|
466
|
+
* @summary List projects
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
* @memberof ProjectsApi
|
|
470
|
+
*/
|
|
471
|
+
ProjectsApi.prototype.list = function (options) {
|
|
472
|
+
var _this = this;
|
|
473
|
+
return (0, exports.ProjectsApiFp)(this.configuration).list(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* Update a project
|
|
477
|
+
* @summary Update project
|
|
478
|
+
* @param {string} projectId Projects unique identifier
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
* @memberof ProjectsApi
|
|
482
|
+
*/
|
|
483
|
+
ProjectsApi.prototype.update = function (projectId, options) {
|
|
484
|
+
var _this = this;
|
|
485
|
+
return (0, exports.ProjectsApiFp)(this.configuration).update(projectId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
486
|
+
};
|
|
487
|
+
return ProjectsApi;
|
|
488
|
+
}(base_1.BaseAPI));
|
|
489
|
+
exports.ProjectsApi = ProjectsApi;
|
package/dist/base.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Projects API
|
|
3
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: AxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
package/dist/base.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Projects API
|
|
6
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
32
|
+
var axios_1 = require("axios");
|
|
33
|
+
exports.BASE_PATH = "https://localhost:8080/omnis/v3".replace(/\/+$/, "");
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
exports.COLLECTION_FORMATS = {
|
|
39
|
+
csv: ",",
|
|
40
|
+
ssv: " ",
|
|
41
|
+
tsv: "\t",
|
|
42
|
+
pipes: "|",
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @export
|
|
47
|
+
* @class BaseAPI
|
|
48
|
+
*/
|
|
49
|
+
var BaseAPI = /** @class */ (function () {
|
|
50
|
+
function BaseAPI(configuration, basePath, axios) {
|
|
51
|
+
if (basePath === void 0) { basePath = exports.BASE_PATH; }
|
|
52
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
53
|
+
this.basePath = basePath;
|
|
54
|
+
this.axios = axios;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
this.configuration = configuration;
|
|
57
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return BaseAPI;
|
|
61
|
+
}());
|
|
62
|
+
exports.BaseAPI = BaseAPI;
|
|
63
|
+
;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @export
|
|
67
|
+
* @class RequiredError
|
|
68
|
+
* @extends {Error}
|
|
69
|
+
*/
|
|
70
|
+
var RequiredError = /** @class */ (function (_super) {
|
|
71
|
+
__extends(RequiredError, _super);
|
|
72
|
+
function RequiredError(field, msg) {
|
|
73
|
+
var _this = _super.call(this, msg) || this;
|
|
74
|
+
_this.field = field;
|
|
75
|
+
_this.name = "RequiredError";
|
|
76
|
+
return _this;
|
|
77
|
+
}
|
|
78
|
+
return RequiredError;
|
|
79
|
+
}(Error));
|
|
80
|
+
exports.RequiredError = RequiredError;
|
package/dist/common.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Projects API
|
|
3
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|