@teemill/projects 1.2.0 → 1.4.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/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/ProjectsApi.d.ts +15 -1
- package/dist/apis/ProjectsApi.js +90 -8
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateProjectRequest.d.ts +7 -1
- package/dist/models/CreateProjectRequest.js +4 -1
- package/dist/models/Integration.d.ts +1 -1
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationInfo.d.ts +1 -1
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +1 -1
- package/dist/models/Project.d.ts +1 -1
- package/dist/models/Project.js +1 -1
- package/dist/models/ProjectLogo.d.ts +1 -1
- package/dist/models/ProjectLogo.js +1 -1
- package/dist/models/ProjectsResponse.d.ts +1 -1
- package/dist/models/ProjectsResponse.js +1 -1
- package/dist/models/UpdateProjectRequest.d.ts +1 -1
- package/dist/models/UpdateProjectRequest.js +1 -1
- package/dist/runtime.d.ts +6 -1
- package/dist/runtime.js +6 -3
- package/package.json +1 -1
- package/src/apis/ProjectsApi.ts +154 -18
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateProjectRequest.ts +9 -1
- package/src/models/Integration.ts +1 -1
- package/src/models/IntegrationInfo.ts +1 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/Project.ts +1 -1
- package/src/models/ProjectLogo.ts +1 -1
- package/src/models/ProjectsResponse.ts +1 -1
- package/src/models/UpdateProjectRequest.ts +1 -1
- package/src/runtime.ts +13 -3
- package/dist/apis/IntegrationsApi.d.ts +0 -72
- package/dist/apis/IntegrationsApi.js +0 -320
- package/dist/models/Project1.d.ts +0 -31
- package/dist/models/Project1.js +0 -50
- package/dist/models/Project2.d.ts +0 -31
- package/dist/models/Project2.js +0 -50
- package/src/apis/IntegrationsApi.ts +0 -225
- package/src/models/Project1.ts +0 -66
- package/src/models/Project2.ts +0 -65
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.2.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.
|
|
1
|
+
## @teemill/projects@1.4.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/projects@1.
|
|
39
|
+
npm install @teemill/projects@1.4.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,6 +31,10 @@ export interface InstallIntegrationRequest {
|
|
|
31
31
|
project: string;
|
|
32
32
|
integration: string;
|
|
33
33
|
}
|
|
34
|
+
export interface InstallTemplateRequest {
|
|
35
|
+
project: string;
|
|
36
|
+
template: string;
|
|
37
|
+
}
|
|
34
38
|
export interface UninstallIntegrationRequest {
|
|
35
39
|
project: string;
|
|
36
40
|
integration: string;
|
|
@@ -113,6 +117,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
113
117
|
* Install integration
|
|
114
118
|
*/
|
|
115
119
|
installIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
|
|
120
|
+
/**
|
|
121
|
+
* Install an integration template on the project
|
|
122
|
+
* Install integration template
|
|
123
|
+
*/
|
|
124
|
+
installTemplateRaw(requestParameters: InstallTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
125
|
+
/**
|
|
126
|
+
* Install an integration template on the project
|
|
127
|
+
* Install integration template
|
|
128
|
+
*/
|
|
129
|
+
installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
116
130
|
/**
|
|
117
131
|
* Uninstall a projects integration
|
|
118
132
|
* Uninstall integration
|
package/dist/apis/ProjectsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -127,7 +127,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
127
127
|
var response;
|
|
128
128
|
return __generator(this, function (_a) {
|
|
129
129
|
switch (_a.label) {
|
|
130
|
-
case 0: return [4 /*yield*/, this.createProjectRaw({
|
|
130
|
+
case 0: return [4 /*yield*/, this.createProjectRaw({
|
|
131
|
+
createProjectRequest: createProjectRequest
|
|
132
|
+
}, initOverrides)];
|
|
131
133
|
case 1:
|
|
132
134
|
response = _a.sent();
|
|
133
135
|
return [4 /*yield*/, response.value()];
|
|
@@ -186,7 +188,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
186
188
|
var response;
|
|
187
189
|
return __generator(this, function (_a) {
|
|
188
190
|
switch (_a.label) {
|
|
189
|
-
case 0: return [4 /*yield*/, this.deleteProjectRaw({
|
|
191
|
+
case 0: return [4 /*yield*/, this.deleteProjectRaw({
|
|
192
|
+
project: project
|
|
193
|
+
}, initOverrides)];
|
|
190
194
|
case 1:
|
|
191
195
|
response = _a.sent();
|
|
192
196
|
return [4 /*yield*/, response.value()];
|
|
@@ -248,7 +252,10 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
248
252
|
var response;
|
|
249
253
|
return __generator(this, function (_a) {
|
|
250
254
|
switch (_a.label) {
|
|
251
|
-
case 0: return [4 /*yield*/, this.getIntegrationRaw({
|
|
255
|
+
case 0: return [4 /*yield*/, this.getIntegrationRaw({
|
|
256
|
+
project: project,
|
|
257
|
+
integration: integration
|
|
258
|
+
}, initOverrides)];
|
|
252
259
|
case 1:
|
|
253
260
|
response = _a.sent();
|
|
254
261
|
return [4 /*yield*/, response.value()];
|
|
@@ -307,7 +314,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
307
314
|
var response;
|
|
308
315
|
return __generator(this, function (_a) {
|
|
309
316
|
switch (_a.label) {
|
|
310
|
-
case 0: return [4 /*yield*/, this.getIntegrationsRaw({
|
|
317
|
+
case 0: return [4 /*yield*/, this.getIntegrationsRaw({
|
|
318
|
+
project: project
|
|
319
|
+
}, initOverrides)];
|
|
311
320
|
case 1:
|
|
312
321
|
response = _a.sent();
|
|
313
322
|
return [4 /*yield*/, response.value()];
|
|
@@ -366,7 +375,9 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
366
375
|
var response;
|
|
367
376
|
return __generator(this, function (_a) {
|
|
368
377
|
switch (_a.label) {
|
|
369
|
-
case 0: return [4 /*yield*/, this.getProjectRaw({
|
|
378
|
+
case 0: return [4 /*yield*/, this.getProjectRaw({
|
|
379
|
+
project: project
|
|
380
|
+
}, initOverrides)];
|
|
370
381
|
case 1:
|
|
371
382
|
response = _a.sent();
|
|
372
383
|
return [4 /*yield*/, response.value()];
|
|
@@ -484,7 +495,75 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
484
495
|
var response;
|
|
485
496
|
return __generator(this, function (_a) {
|
|
486
497
|
switch (_a.label) {
|
|
487
|
-
case 0: return [4 /*yield*/, this.installIntegrationRaw({
|
|
498
|
+
case 0: return [4 /*yield*/, this.installIntegrationRaw({
|
|
499
|
+
project: project,
|
|
500
|
+
integration: integration
|
|
501
|
+
}, initOverrides)];
|
|
502
|
+
case 1:
|
|
503
|
+
response = _a.sent();
|
|
504
|
+
return [4 /*yield*/, response.value()];
|
|
505
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* Install an integration template on the project
|
|
512
|
+
* Install integration template
|
|
513
|
+
*/
|
|
514
|
+
ProjectsApi.prototype.installTemplateRaw = function (requestParameters, initOverrides) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
516
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
517
|
+
return __generator(this, function (_c) {
|
|
518
|
+
switch (_c.label) {
|
|
519
|
+
case 0:
|
|
520
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
521
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling installTemplate.');
|
|
522
|
+
}
|
|
523
|
+
if (requestParameters.template === null || requestParameters.template === undefined) {
|
|
524
|
+
throw new runtime.RequiredError('template', 'Required parameter requestParameters.template was null or undefined when calling installTemplate.');
|
|
525
|
+
}
|
|
526
|
+
queryParameters = {};
|
|
527
|
+
headerParameters = {};
|
|
528
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
529
|
+
// oauth required
|
|
530
|
+
_a = headerParameters;
|
|
531
|
+
_b = "Authorization";
|
|
532
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
533
|
+
case 1:
|
|
534
|
+
// oauth required
|
|
535
|
+
_a[_b] = _c.sent();
|
|
536
|
+
_c.label = 2;
|
|
537
|
+
case 2:
|
|
538
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
539
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
540
|
+
}
|
|
541
|
+
return [4 /*yield*/, this.request({
|
|
542
|
+
path: "/v1/projects/{project}/templates/{template}".replace("{".concat("project", "}"), encodeURIComponent(String(requestParameters.project))).replace("{".concat("template", "}"), encodeURIComponent(String(requestParameters.template))),
|
|
543
|
+
method: 'POST',
|
|
544
|
+
headers: headerParameters,
|
|
545
|
+
query: queryParameters,
|
|
546
|
+
}, initOverrides)];
|
|
547
|
+
case 3:
|
|
548
|
+
response = _c.sent();
|
|
549
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
/**
|
|
555
|
+
* Install an integration template on the project
|
|
556
|
+
* Install integration template
|
|
557
|
+
*/
|
|
558
|
+
ProjectsApi.prototype.installTemplate = function (project, template, initOverrides) {
|
|
559
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
560
|
+
var response;
|
|
561
|
+
return __generator(this, function (_a) {
|
|
562
|
+
switch (_a.label) {
|
|
563
|
+
case 0: return [4 /*yield*/, this.installTemplateRaw({
|
|
564
|
+
project: project,
|
|
565
|
+
template: template
|
|
566
|
+
}, initOverrides)];
|
|
488
567
|
case 1:
|
|
489
568
|
response = _a.sent();
|
|
490
569
|
return [4 /*yield*/, response.value()];
|
|
@@ -608,7 +687,10 @@ var ProjectsApi = /** @class */ (function (_super) {
|
|
|
608
687
|
var response;
|
|
609
688
|
return __generator(this, function (_a) {
|
|
610
689
|
switch (_a.label) {
|
|
611
|
-
case 0: return [4 /*yield*/, this.updateProjectRaw({
|
|
690
|
+
case 0: return [4 /*yield*/, this.updateProjectRaw({
|
|
691
|
+
project: project,
|
|
692
|
+
updateProjectRequest: updateProjectRequest
|
|
693
|
+
}, initOverrides)];
|
|
612
694
|
case 1:
|
|
613
695
|
response = _a.sent();
|
|
614
696
|
return [4 /*yield*/, response.value()];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/ApiError.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,6 +21,12 @@ export interface CreateProjectRequest {
|
|
|
21
21
|
* @memberof CreateProjectRequest
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateProjectRequest
|
|
28
|
+
*/
|
|
29
|
+
template?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the CreateProjectRequest interface.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateProjectRequestToJSON = exports.CreateProjectRequestFromJSONTyped = exports.CreateProjectRequestFromJSON = exports.instanceOfCreateProjectRequest = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
17
18
|
/**
|
|
18
19
|
* Check if a given object implements the CreateProjectRequest interface.
|
|
19
20
|
*/
|
|
@@ -33,6 +34,7 @@ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
35
36
|
'name': json['name'],
|
|
37
|
+
'template': !(0, runtime_1.exists)(json, 'template') ? undefined : json['template'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
|
|
@@ -45,6 +47,7 @@ function CreateProjectRequestToJSON(value) {
|
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
49
|
'name': value.name,
|
|
50
|
+
'template': value.template,
|
|
48
51
|
};
|
|
49
52
|
}
|
|
50
53
|
exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Project.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Project.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/runtime.d.ts
CHANGED
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
export type OptionalProperties<T> = {
|
|
13
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never;
|
|
14
|
+
}[keyof T];
|
|
15
|
+
export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
|
|
12
16
|
export declare const BASE_PATH: string;
|
|
13
17
|
export interface ConfigurationParameters {
|
|
14
18
|
basePath?: string;
|
|
@@ -46,6 +50,7 @@ export declare class BaseAPI {
|
|
|
46
50
|
private static readonly jsonRegex;
|
|
47
51
|
private middleware;
|
|
48
52
|
constructor(configuration?: Configuration);
|
|
53
|
+
isResponseError(error: any): error is ResponseError;
|
|
49
54
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
55
|
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
56
|
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
package/dist/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -266,6 +266,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
266
266
|
}); };
|
|
267
267
|
this.middleware = configuration.middleware;
|
|
268
268
|
}
|
|
269
|
+
BaseAPI.prototype.isResponseError = function (error) {
|
|
270
|
+
return error instanceof Error && error.name === 'ResponseError';
|
|
271
|
+
};
|
|
269
272
|
BaseAPI.prototype.withMiddleware = function () {
|
|
270
273
|
var _a;
|
|
271
274
|
var middlewares = [];
|
|
@@ -456,8 +459,8 @@ function querystringSingleKey(key, value, keyPrefix) {
|
|
|
456
459
|
var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
|
|
457
460
|
if (value instanceof Array) {
|
|
458
461
|
var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
|
|
459
|
-
.join("&".concat(encodeURIComponent(fullKey), "="));
|
|
460
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
|
|
462
|
+
.join("&".concat(encodeURIComponent(fullKey), "[]="));
|
|
463
|
+
return "".concat(encodeURIComponent(fullKey), "[]=").concat(multiValue);
|
|
461
464
|
}
|
|
462
465
|
if (value instanceof Set) {
|
|
463
466
|
var valueAsArray = Array.from(value);
|