@teemill/integrations 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -3
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +43 -20
- package/dist/apis/IntegrationsApi.js +165 -48
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CategoriesResponse.d.ts +32 -0
- package/dist/models/CategoriesResponse.js +51 -0
- package/dist/models/IntegrationCategory.d.ts +52 -0
- package/dist/models/IntegrationCategory.js +64 -0
- package/dist/models/IntegrationListing.d.ts +87 -0
- package/dist/models/IntegrationListing.js +77 -0
- package/dist/models/IntegrationListingGradient.d.ts +37 -0
- package/dist/models/IntegrationListingGradient.js +52 -0
- package/dist/models/IntegrationListingsResponse.d.ts +32 -0
- package/dist/models/IntegrationListingsResponse.js +51 -0
- package/dist/models/IntegrationProduct.d.ts +1 -1
- package/dist/models/IntegrationProduct.js +1 -1
- package/dist/models/IntegrationProductsResponse.d.ts +1 -1
- package/dist/models/IntegrationProductsResponse.js +1 -1
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/IntegrationsApi.ts +167 -66
- package/src/models/ApiError.ts +1 -1
- package/src/models/CategoriesResponse.ts +73 -0
- package/src/models/IntegrationCategory.ts +96 -0
- package/src/models/IntegrationListing.ts +157 -0
- package/src/models/IntegrationListingGradient.ts +73 -0
- package/src/models/IntegrationListingsResponse.ts +72 -0
- package/src/models/IntegrationProduct.ts +1 -1
- package/src/models/IntegrationProductsResponse.ts +1 -1
- package/src/models/index.ts +5 -3
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,11 +6,13 @@ src/apis/IntegrationsApi.ts
|
|
|
6
6
|
src/apis/index.ts
|
|
7
7
|
src/index.ts
|
|
8
8
|
src/models/ApiError.ts
|
|
9
|
-
src/models/
|
|
10
|
-
src/models/
|
|
9
|
+
src/models/CategoriesResponse.ts
|
|
10
|
+
src/models/IntegrationCategory.ts
|
|
11
|
+
src/models/IntegrationListing.ts
|
|
12
|
+
src/models/IntegrationListingGradient.ts
|
|
13
|
+
src/models/IntegrationListingsResponse.ts
|
|
11
14
|
src/models/IntegrationProduct.ts
|
|
12
15
|
src/models/IntegrationProductsResponse.ts
|
|
13
|
-
src/models/IntegrationsResponse.ts
|
|
14
16
|
src/models/index.ts
|
|
15
17
|
src/runtime.ts
|
|
16
18
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/integrations@0.
|
|
1
|
+
## @teemill/integrations@0.8.1
|
|
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/integrations@0.
|
|
39
|
+
npm install @teemill/integrations@0.8.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Integrations API
|
|
3
3
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.8.1
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface
|
|
15
|
-
|
|
13
|
+
import type { CategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse } from '../models/index';
|
|
14
|
+
export interface GetIntegrationCategoryRequest {
|
|
15
|
+
category: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetIntegrationListingRequest {
|
|
18
|
+
listing: string;
|
|
16
19
|
}
|
|
17
20
|
export interface GetIntegrationProductRequest {
|
|
18
21
|
integration: number;
|
|
@@ -26,15 +29,45 @@ export interface GetIntegrationProductsRequest {
|
|
|
26
29
|
*/
|
|
27
30
|
export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
32
|
+
* List all integration categories
|
|
33
|
+
* List integration categories
|
|
34
|
+
*/
|
|
35
|
+
getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoriesResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
* List all integration categories
|
|
38
|
+
* List integration categories
|
|
39
|
+
*/
|
|
40
|
+
getIntegrationCategories(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoriesResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Get an integration category
|
|
43
|
+
* Get integration category
|
|
44
|
+
*/
|
|
45
|
+
getIntegrationCategoryRaw(requestParameters: GetIntegrationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>>;
|
|
46
|
+
/**
|
|
47
|
+
* Get an integration category
|
|
48
|
+
* Get integration category
|
|
49
|
+
*/
|
|
50
|
+
getIntegrationCategory(category: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListingsResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Get an integration listing
|
|
53
|
+
* Get integration listing
|
|
54
|
+
*/
|
|
55
|
+
getIntegrationListingRaw(requestParameters: GetIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
|
|
56
|
+
/**
|
|
57
|
+
* Get an integration listing
|
|
58
|
+
* Get integration listing
|
|
59
|
+
*/
|
|
60
|
+
getIntegrationListing(listing: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
|
|
61
|
+
/**
|
|
62
|
+
* List all integration listings
|
|
63
|
+
* List integration listings
|
|
31
64
|
*/
|
|
32
|
-
|
|
65
|
+
getIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>>;
|
|
33
66
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
67
|
+
* List all integration listings
|
|
68
|
+
* List integration listings
|
|
36
69
|
*/
|
|
37
|
-
|
|
70
|
+
getIntegrationListings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListingsResponse>;
|
|
38
71
|
/**
|
|
39
72
|
* Get a product available for an integration
|
|
40
73
|
* Get integration product
|
|
@@ -55,14 +88,4 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
|
55
88
|
* List integration products
|
|
56
89
|
*/
|
|
57
90
|
getIntegrationProducts(integration: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProductsResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* List all integrations available
|
|
60
|
-
* List integrations
|
|
61
|
-
*/
|
|
62
|
-
getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
63
|
-
/**
|
|
64
|
-
* List all integrations available
|
|
65
|
-
* List integrations
|
|
66
|
-
*/
|
|
67
|
-
getIntegrations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
68
91
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Integrations API
|
|
6
6
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.1
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -76,17 +76,73 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
79
|
+
* List all integration categories
|
|
80
|
+
* List integration categories
|
|
81
81
|
*/
|
|
82
|
-
IntegrationsApi.prototype.
|
|
82
|
+
IntegrationsApi.prototype.getIntegrationCategoriesRaw = function (initOverrides) {
|
|
83
83
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
84
|
var queryParameters, headerParameters, _a, _b, response;
|
|
85
85
|
return __generator(this, function (_c) {
|
|
86
86
|
switch (_c.label) {
|
|
87
87
|
case 0:
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
91
|
+
// oauth required
|
|
92
|
+
_a = headerParameters;
|
|
93
|
+
_b = "Authorization";
|
|
94
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
95
|
+
case 1:
|
|
96
|
+
// oauth required
|
|
97
|
+
_a[_b] = _c.sent();
|
|
98
|
+
_c.label = 2;
|
|
99
|
+
case 2:
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
102
|
+
}
|
|
103
|
+
return [4 /*yield*/, this.request({
|
|
104
|
+
path: "/v1/integrations/categories",
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides)];
|
|
109
|
+
case 3:
|
|
110
|
+
response = _c.sent();
|
|
111
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CategoriesResponseFromJSON)(jsonValue); })];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* List all integration categories
|
|
118
|
+
* List integration categories
|
|
119
|
+
*/
|
|
120
|
+
IntegrationsApi.prototype.getIntegrationCategories = function (initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
var response;
|
|
123
|
+
return __generator(this, function (_a) {
|
|
124
|
+
switch (_a.label) {
|
|
125
|
+
case 0: return [4 /*yield*/, this.getIntegrationCategoriesRaw(initOverrides)];
|
|
126
|
+
case 1:
|
|
127
|
+
response = _a.sent();
|
|
128
|
+
return [4 /*yield*/, response.value()];
|
|
129
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Get an integration category
|
|
136
|
+
* Get integration category
|
|
137
|
+
*/
|
|
138
|
+
IntegrationsApi.prototype.getIntegrationCategoryRaw = function (requestParameters, initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
141
|
+
return __generator(this, function (_c) {
|
|
142
|
+
switch (_c.label) {
|
|
143
|
+
case 0:
|
|
144
|
+
if (requestParameters.category === null || requestParameters.category === undefined) {
|
|
145
|
+
throw new runtime.RequiredError('category', 'Required parameter requestParameters.category was null or undefined when calling getIntegrationCategory.');
|
|
90
146
|
}
|
|
91
147
|
queryParameters = {};
|
|
92
148
|
headerParameters = {};
|
|
@@ -104,29 +160,29 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
104
160
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
105
161
|
}
|
|
106
162
|
return [4 /*yield*/, this.request({
|
|
107
|
-
path: "/v1/integrations/{
|
|
163
|
+
path: "/v1/integrations/categories/{category}".replace("{".concat("category", "}"), encodeURIComponent(String(requestParameters.category))),
|
|
108
164
|
method: 'GET',
|
|
109
165
|
headers: headerParameters,
|
|
110
166
|
query: queryParameters,
|
|
111
167
|
}, initOverrides)];
|
|
112
168
|
case 3:
|
|
113
169
|
response = _c.sent();
|
|
114
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
170
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationListingsResponseFromJSON)(jsonValue); })];
|
|
115
171
|
}
|
|
116
172
|
});
|
|
117
173
|
});
|
|
118
174
|
};
|
|
119
175
|
/**
|
|
120
|
-
* Get an integration
|
|
121
|
-
* Get integration
|
|
176
|
+
* Get an integration category
|
|
177
|
+
* Get integration category
|
|
122
178
|
*/
|
|
123
|
-
IntegrationsApi.prototype.
|
|
179
|
+
IntegrationsApi.prototype.getIntegrationCategory = function (category, initOverrides) {
|
|
124
180
|
return __awaiter(this, void 0, void 0, function () {
|
|
125
181
|
var response;
|
|
126
182
|
return __generator(this, function (_a) {
|
|
127
183
|
switch (_a.label) {
|
|
128
|
-
case 0: return [4 /*yield*/, this.
|
|
129
|
-
|
|
184
|
+
case 0: return [4 /*yield*/, this.getIntegrationCategoryRaw({
|
|
185
|
+
category: category,
|
|
130
186
|
}, initOverrides)];
|
|
131
187
|
case 1:
|
|
132
188
|
response = _a.sent();
|
|
@@ -137,20 +193,17 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
137
193
|
});
|
|
138
194
|
};
|
|
139
195
|
/**
|
|
140
|
-
* Get
|
|
141
|
-
* Get integration
|
|
196
|
+
* Get an integration listing
|
|
197
|
+
* Get integration listing
|
|
142
198
|
*/
|
|
143
|
-
IntegrationsApi.prototype.
|
|
199
|
+
IntegrationsApi.prototype.getIntegrationListingRaw = function (requestParameters, initOverrides) {
|
|
144
200
|
return __awaiter(this, void 0, void 0, function () {
|
|
145
201
|
var queryParameters, headerParameters, _a, _b, response;
|
|
146
202
|
return __generator(this, function (_c) {
|
|
147
203
|
switch (_c.label) {
|
|
148
204
|
case 0:
|
|
149
|
-
if (requestParameters.
|
|
150
|
-
throw new runtime.RequiredError('
|
|
151
|
-
}
|
|
152
|
-
if (requestParameters.product === null || requestParameters.product === undefined) {
|
|
153
|
-
throw new runtime.RequiredError('product', 'Required parameter requestParameters.product was null or undefined when calling getIntegrationProduct.');
|
|
205
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
206
|
+
throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling getIntegrationListing.');
|
|
154
207
|
}
|
|
155
208
|
queryParameters = {};
|
|
156
209
|
headerParameters = {};
|
|
@@ -168,29 +221,29 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
168
221
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
169
222
|
}
|
|
170
223
|
return [4 /*yield*/, this.request({
|
|
171
|
-
path: "/v1/integrations/
|
|
224
|
+
path: "/v1/integrations/listings/{listing}".replace("{".concat("listing", "}"), encodeURIComponent(String(requestParameters.listing))),
|
|
172
225
|
method: 'GET',
|
|
173
226
|
headers: headerParameters,
|
|
174
227
|
query: queryParameters,
|
|
175
228
|
}, initOverrides)];
|
|
176
229
|
case 3:
|
|
177
230
|
response = _c.sent();
|
|
178
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
231
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationListingFromJSON)(jsonValue); })];
|
|
179
232
|
}
|
|
180
233
|
});
|
|
181
234
|
});
|
|
182
235
|
};
|
|
183
236
|
/**
|
|
184
|
-
* Get
|
|
185
|
-
* Get integration
|
|
237
|
+
* Get an integration listing
|
|
238
|
+
* Get integration listing
|
|
186
239
|
*/
|
|
187
|
-
IntegrationsApi.prototype.
|
|
240
|
+
IntegrationsApi.prototype.getIntegrationListing = function (listing, initOverrides) {
|
|
188
241
|
return __awaiter(this, void 0, void 0, function () {
|
|
189
242
|
var response;
|
|
190
243
|
return __generator(this, function (_a) {
|
|
191
244
|
switch (_a.label) {
|
|
192
|
-
case 0: return [4 /*yield*/, this.
|
|
193
|
-
|
|
245
|
+
case 0: return [4 /*yield*/, this.getIntegrationListingRaw({
|
|
246
|
+
listing: listing,
|
|
194
247
|
}, initOverrides)];
|
|
195
248
|
case 1:
|
|
196
249
|
response = _a.sent();
|
|
@@ -201,17 +254,76 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
201
254
|
});
|
|
202
255
|
};
|
|
203
256
|
/**
|
|
204
|
-
* List all
|
|
205
|
-
* List integration
|
|
257
|
+
* List all integration listings
|
|
258
|
+
* List integration listings
|
|
206
259
|
*/
|
|
207
|
-
IntegrationsApi.prototype.
|
|
260
|
+
IntegrationsApi.prototype.getIntegrationListingsRaw = function (initOverrides) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
262
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
263
|
+
return __generator(this, function (_c) {
|
|
264
|
+
switch (_c.label) {
|
|
265
|
+
case 0:
|
|
266
|
+
queryParameters = {};
|
|
267
|
+
headerParameters = {};
|
|
268
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
269
|
+
// oauth required
|
|
270
|
+
_a = headerParameters;
|
|
271
|
+
_b = "Authorization";
|
|
272
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
273
|
+
case 1:
|
|
274
|
+
// oauth required
|
|
275
|
+
_a[_b] = _c.sent();
|
|
276
|
+
_c.label = 2;
|
|
277
|
+
case 2:
|
|
278
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
279
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
280
|
+
}
|
|
281
|
+
return [4 /*yield*/, this.request({
|
|
282
|
+
path: "/v1/integrations/listings",
|
|
283
|
+
method: 'GET',
|
|
284
|
+
headers: headerParameters,
|
|
285
|
+
query: queryParameters,
|
|
286
|
+
}, initOverrides)];
|
|
287
|
+
case 3:
|
|
288
|
+
response = _c.sent();
|
|
289
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationListingsResponseFromJSON)(jsonValue); })];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* List all integration listings
|
|
296
|
+
* List integration listings
|
|
297
|
+
*/
|
|
298
|
+
IntegrationsApi.prototype.getIntegrationListings = function (initOverrides) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
300
|
+
var response;
|
|
301
|
+
return __generator(this, function (_a) {
|
|
302
|
+
switch (_a.label) {
|
|
303
|
+
case 0: return [4 /*yield*/, this.getIntegrationListingsRaw(initOverrides)];
|
|
304
|
+
case 1:
|
|
305
|
+
response = _a.sent();
|
|
306
|
+
return [4 /*yield*/, response.value()];
|
|
307
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Get a product available for an integration
|
|
314
|
+
* Get integration product
|
|
315
|
+
*/
|
|
316
|
+
IntegrationsApi.prototype.getIntegrationProductRaw = function (requestParameters, initOverrides) {
|
|
208
317
|
return __awaiter(this, void 0, void 0, function () {
|
|
209
318
|
var queryParameters, headerParameters, _a, _b, response;
|
|
210
319
|
return __generator(this, function (_c) {
|
|
211
320
|
switch (_c.label) {
|
|
212
321
|
case 0:
|
|
213
322
|
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
214
|
-
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling
|
|
323
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling getIntegrationProduct.');
|
|
324
|
+
}
|
|
325
|
+
if (requestParameters.product === null || requestParameters.product === undefined) {
|
|
326
|
+
throw new runtime.RequiredError('product', 'Required parameter requestParameters.product was null or undefined when calling getIntegrationProduct.');
|
|
215
327
|
}
|
|
216
328
|
queryParameters = {};
|
|
217
329
|
headerParameters = {};
|
|
@@ -229,29 +341,29 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
229
341
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
230
342
|
}
|
|
231
343
|
return [4 /*yield*/, this.request({
|
|
232
|
-
path: "/v1/integrations/{integration}/products".replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
|
|
344
|
+
path: "/v1/integrations/{integration}/products/{product}".replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))).replace("{".concat("product", "}"), encodeURIComponent(String(requestParameters.product))),
|
|
233
345
|
method: 'GET',
|
|
234
346
|
headers: headerParameters,
|
|
235
347
|
query: queryParameters,
|
|
236
348
|
}, initOverrides)];
|
|
237
349
|
case 3:
|
|
238
350
|
response = _c.sent();
|
|
239
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
351
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationProductFromJSON)(jsonValue); })];
|
|
240
352
|
}
|
|
241
353
|
});
|
|
242
354
|
});
|
|
243
355
|
};
|
|
244
356
|
/**
|
|
245
|
-
*
|
|
246
|
-
*
|
|
357
|
+
* Get a product available for an integration
|
|
358
|
+
* Get integration product
|
|
247
359
|
*/
|
|
248
|
-
IntegrationsApi.prototype.
|
|
360
|
+
IntegrationsApi.prototype.getIntegrationProduct = function (integration, product, initOverrides) {
|
|
249
361
|
return __awaiter(this, void 0, void 0, function () {
|
|
250
362
|
var response;
|
|
251
363
|
return __generator(this, function (_a) {
|
|
252
364
|
switch (_a.label) {
|
|
253
|
-
case 0: return [4 /*yield*/, this.
|
|
254
|
-
integration: integration,
|
|
365
|
+
case 0: return [4 /*yield*/, this.getIntegrationProductRaw({
|
|
366
|
+
integration: integration, product: product,
|
|
255
367
|
}, initOverrides)];
|
|
256
368
|
case 1:
|
|
257
369
|
response = _a.sent();
|
|
@@ -262,15 +374,18 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
262
374
|
});
|
|
263
375
|
};
|
|
264
376
|
/**
|
|
265
|
-
* List all
|
|
266
|
-
* List
|
|
377
|
+
* List all products available for an integration
|
|
378
|
+
* List integration products
|
|
267
379
|
*/
|
|
268
|
-
IntegrationsApi.prototype.
|
|
380
|
+
IntegrationsApi.prototype.getIntegrationProductsRaw = function (requestParameters, initOverrides) {
|
|
269
381
|
return __awaiter(this, void 0, void 0, function () {
|
|
270
382
|
var queryParameters, headerParameters, _a, _b, response;
|
|
271
383
|
return __generator(this, function (_c) {
|
|
272
384
|
switch (_c.label) {
|
|
273
385
|
case 0:
|
|
386
|
+
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
387
|
+
throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling getIntegrationProducts.');
|
|
388
|
+
}
|
|
274
389
|
queryParameters = {};
|
|
275
390
|
headerParameters = {};
|
|
276
391
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -287,28 +402,30 @@ var IntegrationsApi = /** @class */ (function (_super) {
|
|
|
287
402
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
288
403
|
}
|
|
289
404
|
return [4 /*yield*/, this.request({
|
|
290
|
-
path: "/v1/integrations",
|
|
405
|
+
path: "/v1/integrations/{integration}/products".replace("{".concat("integration", "}"), encodeURIComponent(String(requestParameters.integration))),
|
|
291
406
|
method: 'GET',
|
|
292
407
|
headers: headerParameters,
|
|
293
408
|
query: queryParameters,
|
|
294
409
|
}, initOverrides)];
|
|
295
410
|
case 3:
|
|
296
411
|
response = _c.sent();
|
|
297
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
412
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationProductsResponseFromJSON)(jsonValue); })];
|
|
298
413
|
}
|
|
299
414
|
});
|
|
300
415
|
});
|
|
301
416
|
};
|
|
302
417
|
/**
|
|
303
|
-
* List all
|
|
304
|
-
* List
|
|
418
|
+
* List all products available for an integration
|
|
419
|
+
* List integration products
|
|
305
420
|
*/
|
|
306
|
-
IntegrationsApi.prototype.
|
|
421
|
+
IntegrationsApi.prototype.getIntegrationProducts = function (integration, initOverrides) {
|
|
307
422
|
return __awaiter(this, void 0, void 0, function () {
|
|
308
423
|
var response;
|
|
309
424
|
return __generator(this, function (_a) {
|
|
310
425
|
switch (_a.label) {
|
|
311
|
-
case 0: return [4 /*yield*/, this.
|
|
426
|
+
case 0: return [4 /*yield*/, this.getIntegrationProductsRaw({
|
|
427
|
+
integration: integration,
|
|
428
|
+
}, initOverrides)];
|
|
312
429
|
case 1:
|
|
313
430
|
response = _a.sent();
|
|
314
431
|
return [4 /*yield*/, response.value()];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Integrations API
|
|
3
3
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.8.1
|
|
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
|
* Integrations API
|
|
6
6
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.1
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations API
|
|
3
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.8.1
|
|
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 { IntegrationCategory } from './IntegrationCategory';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CategoriesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CategoriesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IntegrationCategory>}
|
|
22
|
+
* @memberof CategoriesResponse
|
|
23
|
+
*/
|
|
24
|
+
categories: Array<IntegrationCategory>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CategoriesResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCategoriesResponse(value: object): boolean;
|
|
30
|
+
export declare function CategoriesResponseFromJSON(json: any): CategoriesResponse;
|
|
31
|
+
export declare function CategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponse;
|
|
32
|
+
export declare function CategoriesResponseToJSON(value?: CategoriesResponse | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Integrations API
|
|
6
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.8.1
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CategoriesResponseToJSON = exports.CategoriesResponseFromJSONTyped = exports.CategoriesResponseFromJSON = exports.instanceOfCategoriesResponse = void 0;
|
|
17
|
+
var IntegrationCategory_1 = require("./IntegrationCategory");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CategoriesResponse interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfCategoriesResponse(value) {
|
|
22
|
+
var isInstance = true;
|
|
23
|
+
isInstance = isInstance && "categories" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfCategoriesResponse = instanceOfCategoriesResponse;
|
|
27
|
+
function CategoriesResponseFromJSON(json) {
|
|
28
|
+
return CategoriesResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.CategoriesResponseFromJSON = CategoriesResponseFromJSON;
|
|
31
|
+
function CategoriesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'categories': (json['categories'].map(IntegrationCategory_1.IntegrationCategoryFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CategoriesResponseFromJSONTyped = CategoriesResponseFromJSONTyped;
|
|
40
|
+
function CategoriesResponseToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'categories': (value.categories.map(IntegrationCategory_1.IntegrationCategoryToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.CategoriesResponseToJSON = CategoriesResponseToJSON;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations API
|
|
3
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.8.1
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IntegrationCategory
|
|
16
|
+
*/
|
|
17
|
+
export interface IntegrationCategory {
|
|
18
|
+
/**
|
|
19
|
+
* The name of the category
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IntegrationCategory
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The slug of the category that is used in the URL
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IntegrationCategory
|
|
28
|
+
*/
|
|
29
|
+
slug: string;
|
|
30
|
+
/**
|
|
31
|
+
* The type of category, used to determine how it is displayed
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IntegrationCategory
|
|
34
|
+
*/
|
|
35
|
+
type: IntegrationCategoryTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const IntegrationCategoryTypeEnum: {
|
|
41
|
+
readonly Featured: "featured";
|
|
42
|
+
readonly Grid: "grid";
|
|
43
|
+
readonly Column: "column";
|
|
44
|
+
};
|
|
45
|
+
export type IntegrationCategoryTypeEnum = typeof IntegrationCategoryTypeEnum[keyof typeof IntegrationCategoryTypeEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the IntegrationCategory interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfIntegrationCategory(value: object): boolean;
|
|
50
|
+
export declare function IntegrationCategoryFromJSON(json: any): IntegrationCategory;
|
|
51
|
+
export declare function IntegrationCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategory;
|
|
52
|
+
export declare function IntegrationCategoryToJSON(value?: IntegrationCategory | null): any;
|