@teemill/integrations 0.9.0 → 0.11.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 +3 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +65 -2
- package/dist/apis/IntegrationsApi.js +197 -1
- package/dist/esm/apis/IntegrationsApi.d.ts +65 -2
- package/dist/esm/apis/IntegrationsApi.js +198 -2
- package/dist/esm/models/ApiError.d.ts +2 -2
- package/dist/esm/models/ApiError.js +2 -2
- package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +80 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +73 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +40 -0
- package/dist/esm/models/Integration.d.ts +2 -2
- package/dist/esm/models/Integration.js +1 -1
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationCategoriesResponse.js +2 -2
- package/dist/esm/models/IntegrationCategory.d.ts +2 -2
- package/dist/esm/models/IntegrationCategory.js +4 -4
- package/dist/esm/models/IntegrationListing.d.ts +2 -2
- package/dist/esm/models/IntegrationListing.js +11 -11
- package/dist/esm/models/IntegrationListingGradient.d.ts +2 -2
- package/dist/esm/models/IntegrationListingGradient.js +1 -1
- package/dist/esm/models/IntegrationListingsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationListingsResponse.js +2 -2
- package/dist/esm/models/IntegrationProduct.d.ts +2 -2
- package/dist/esm/models/IntegrationProduct.js +6 -6
- package/dist/esm/models/IntegrationProductsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationProductsResponse.js +2 -2
- package/dist/esm/models/IntegrationsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationsResponse.js +2 -2
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +80 -0
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +55 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ApiError.d.ts +2 -2
- package/dist/models/ApiError.js +2 -2
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +80 -0
- package/dist/models/CreateAdminIntegrationListingRequest.js +80 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +47 -0
- package/dist/models/Integration.d.ts +2 -2
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationCategoriesResponse.d.ts +2 -2
- package/dist/models/IntegrationCategoriesResponse.js +2 -2
- package/dist/models/IntegrationCategory.d.ts +2 -2
- package/dist/models/IntegrationCategory.js +4 -4
- package/dist/models/IntegrationListing.d.ts +2 -2
- package/dist/models/IntegrationListing.js +11 -11
- package/dist/models/IntegrationListingGradient.d.ts +2 -2
- package/dist/models/IntegrationListingGradient.js +1 -1
- package/dist/models/IntegrationListingsResponse.d.ts +2 -2
- package/dist/models/IntegrationListingsResponse.js +2 -2
- package/dist/models/IntegrationProduct.d.ts +2 -2
- package/dist/models/IntegrationProduct.js +6 -6
- package/dist/models/IntegrationProductsResponse.d.ts +2 -2
- package/dist/models/IntegrationProductsResponse.js +2 -2
- package/dist/models/IntegrationsResponse.d.ts +2 -2
- package/dist/models/IntegrationsResponse.js +2 -2
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +80 -0
- package/dist/models/UpdateAdminIntegrationListingRequest.js +62 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/src/apis/IntegrationsApi.ts +276 -1
- package/src/models/ApiError.ts +3 -3
- package/src/models/CreateAdminIntegrationListingRequest.ts +140 -0
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +68 -0
- package/src/models/Integration.ts +2 -2
- package/src/models/IntegrationCategoriesResponse.ts +3 -3
- package/src/models/IntegrationCategory.ts +5 -5
- package/src/models/IntegrationListing.ts +12 -12
- package/src/models/IntegrationListingGradient.ts +2 -2
- package/src/models/IntegrationListingsResponse.ts +3 -3
- package/src/models/IntegrationProduct.ts +7 -7
- package/src/models/IntegrationProductsResponse.ts +3 -3
- package/src/models/IntegrationsResponse.ts +3 -3
- package/src/models/UpdateAdminIntegrationListingRequest.ts +131 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,8 @@ src/apis/IntegrationsApi.ts
|
|
|
6
6
|
src/apis/index.ts
|
|
7
7
|
src/index.ts
|
|
8
8
|
src/models/ApiError.ts
|
|
9
|
+
src/models/CreateAdminIntegrationListingRequest.ts
|
|
10
|
+
src/models/CreateAdminIntegrationListingRequestGradient.ts
|
|
9
11
|
src/models/Integration.ts
|
|
10
12
|
src/models/IntegrationCategoriesResponse.ts
|
|
11
13
|
src/models/IntegrationCategory.ts
|
|
@@ -15,6 +17,7 @@ src/models/IntegrationListingsResponse.ts
|
|
|
15
17
|
src/models/IntegrationProduct.ts
|
|
16
18
|
src/models/IntegrationProductsResponse.ts
|
|
17
19
|
src/models/IntegrationsResponse.ts
|
|
20
|
+
src/models/UpdateAdminIntegrationListingRequest.ts
|
|
18
21
|
src/models/index.ts
|
|
19
22
|
src/runtime.ts
|
|
20
23
|
tsconfig.esm.json
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.6.0
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/integrations@0.
|
|
1
|
+
## @teemill/integrations@0.11.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.11.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.11.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,7 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { IntegrationCategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse, IntegrationsResponse } from '../models/index';
|
|
13
|
+
import type { CreateAdminIntegrationListingRequest, IntegrationCategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse, IntegrationsResponse, UpdateAdminIntegrationListingRequest } from '../models/index';
|
|
14
|
+
export interface CreateAdminIntegrationListingOperationRequest {
|
|
15
|
+
createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteAdminIntegrationListingRequest {
|
|
18
|
+
listing: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetAdminIntegrationListingRequest {
|
|
21
|
+
listing: string;
|
|
22
|
+
}
|
|
14
23
|
export interface GetIntegrationCategoryRequest {
|
|
15
24
|
category: string;
|
|
16
25
|
}
|
|
@@ -24,10 +33,44 @@ export interface GetIntegrationProductRequest {
|
|
|
24
33
|
export interface GetIntegrationProductsRequest {
|
|
25
34
|
integration: number;
|
|
26
35
|
}
|
|
36
|
+
export interface UpdateAdminIntegrationListingOperationRequest {
|
|
37
|
+
listing: string;
|
|
38
|
+
updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest;
|
|
39
|
+
}
|
|
27
40
|
/**
|
|
28
41
|
*
|
|
29
42
|
*/
|
|
30
43
|
export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
44
|
+
/**
|
|
45
|
+
* Create a new integration listing
|
|
46
|
+
* Create integration listing
|
|
47
|
+
*/
|
|
48
|
+
createAdminIntegrationListingRaw(requestParameters: CreateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a new integration listing
|
|
51
|
+
* Create integration listing
|
|
52
|
+
*/
|
|
53
|
+
createAdminIntegrationListing(createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
|
|
54
|
+
/**
|
|
55
|
+
* Delete an integration listing
|
|
56
|
+
* Delete integration listing
|
|
57
|
+
*/
|
|
58
|
+
deleteAdminIntegrationListingRaw(requestParameters: DeleteAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
|
+
/**
|
|
60
|
+
* Delete an integration listing
|
|
61
|
+
* Delete integration listing
|
|
62
|
+
*/
|
|
63
|
+
deleteAdminIntegrationListing(listing: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves a specific integration listing by its slug.
|
|
66
|
+
* Retrieve integration listing
|
|
67
|
+
*/
|
|
68
|
+
getAdminIntegrationListingRaw(requestParameters: GetAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
|
|
69
|
+
/**
|
|
70
|
+
* Retrieves a specific integration listing by its slug.
|
|
71
|
+
* Retrieve integration listing
|
|
72
|
+
*/
|
|
73
|
+
getAdminIntegrationListing(listing: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
|
|
31
74
|
/**
|
|
32
75
|
* List all integration categories
|
|
33
76
|
* List integration categories
|
|
@@ -98,4 +141,24 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
|
98
141
|
* List integrations
|
|
99
142
|
*/
|
|
100
143
|
getIntegrations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* List all integration listings
|
|
146
|
+
* List integration listings
|
|
147
|
+
*/
|
|
148
|
+
listAdminIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>>;
|
|
149
|
+
/**
|
|
150
|
+
* List all integration listings
|
|
151
|
+
* List integration listings
|
|
152
|
+
*/
|
|
153
|
+
listAdminIntegrationListings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListingsResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Update an integration listing
|
|
156
|
+
* Update integration listing
|
|
157
|
+
*/
|
|
158
|
+
updateAdminIntegrationListingRaw(requestParameters: UpdateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
|
|
159
|
+
/**
|
|
160
|
+
* Update an integration listing
|
|
161
|
+
* Update integration listing
|
|
162
|
+
*/
|
|
163
|
+
updateAdminIntegrationListing(listing: string, updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
|
|
101
164
|
}
|
|
@@ -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.11.1
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,6 +29,124 @@ const index_1 = require("../models/index");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class IntegrationsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Create a new integration listing
|
|
34
|
+
* Create integration listing
|
|
35
|
+
*/
|
|
36
|
+
createAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters.createAdminIntegrationListingRequest === null || requestParameters.createAdminIntegrationListingRequest === undefined) {
|
|
39
|
+
throw new runtime.RequiredError('createAdminIntegrationListingRequest', 'Required parameter requestParameters.createAdminIntegrationListingRequest was null or undefined when calling createAdminIntegrationListing.');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
45
|
+
// oauth required
|
|
46
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
47
|
+
}
|
|
48
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
49
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
50
|
+
}
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: `/v1/integrations/admin/listings`,
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
body: (0, index_1.CreateAdminIntegrationListingRequestToJSON)(requestParameters.createAdminIntegrationListingRequest),
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationListingFromJSON)(jsonValue));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Create a new integration listing
|
|
63
|
+
* Create integration listing
|
|
64
|
+
*/
|
|
65
|
+
createAdminIntegrationListing(createAdminIntegrationListingRequest, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.createAdminIntegrationListingRaw({
|
|
68
|
+
createAdminIntegrationListingRequest: createAdminIntegrationListingRequest,
|
|
69
|
+
}, initOverrides);
|
|
70
|
+
return yield response.value();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Delete an integration listing
|
|
75
|
+
* Delete integration listing
|
|
76
|
+
*/
|
|
77
|
+
deleteAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
80
|
+
throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling deleteAdminIntegrationListing.');
|
|
81
|
+
}
|
|
82
|
+
const queryParameters = {};
|
|
83
|
+
const headerParameters = {};
|
|
84
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
+
// oauth required
|
|
86
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
87
|
+
}
|
|
88
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
89
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
90
|
+
}
|
|
91
|
+
const response = yield this.request({
|
|
92
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
93
|
+
method: 'DELETE',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
}, initOverrides);
|
|
97
|
+
return new runtime.VoidApiResponse(response);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Delete an integration listing
|
|
102
|
+
* Delete integration listing
|
|
103
|
+
*/
|
|
104
|
+
deleteAdminIntegrationListing(listing, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
yield this.deleteAdminIntegrationListingRaw({
|
|
107
|
+
listing: listing,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Retrieves a specific integration listing by its slug.
|
|
113
|
+
* Retrieve integration listing
|
|
114
|
+
*/
|
|
115
|
+
getAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
118
|
+
throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling getAdminIntegrationListing.');
|
|
119
|
+
}
|
|
120
|
+
const queryParameters = {};
|
|
121
|
+
const headerParameters = {};
|
|
122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
123
|
+
// oauth required
|
|
124
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
125
|
+
}
|
|
126
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
127
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
128
|
+
}
|
|
129
|
+
const response = yield this.request({
|
|
130
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
131
|
+
method: 'GET',
|
|
132
|
+
headers: headerParameters,
|
|
133
|
+
query: queryParameters,
|
|
134
|
+
}, initOverrides);
|
|
135
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationListingFromJSON)(jsonValue));
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Retrieves a specific integration listing by its slug.
|
|
140
|
+
* Retrieve integration listing
|
|
141
|
+
*/
|
|
142
|
+
getAdminIntegrationListing(listing, initOverrides) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
const response = yield this.getAdminIntegrationListingRaw({
|
|
145
|
+
listing: listing,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
return yield response.value();
|
|
148
|
+
});
|
|
149
|
+
}
|
|
32
150
|
/**
|
|
33
151
|
* List all integration categories
|
|
34
152
|
* List integration categories
|
|
@@ -290,5 +408,83 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
290
408
|
return yield response.value();
|
|
291
409
|
});
|
|
292
410
|
}
|
|
411
|
+
/**
|
|
412
|
+
* List all integration listings
|
|
413
|
+
* List integration listings
|
|
414
|
+
*/
|
|
415
|
+
listAdminIntegrationListingsRaw(initOverrides) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const queryParameters = {};
|
|
418
|
+
const headerParameters = {};
|
|
419
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
420
|
+
// oauth required
|
|
421
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
422
|
+
}
|
|
423
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
424
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
425
|
+
}
|
|
426
|
+
const response = yield this.request({
|
|
427
|
+
path: `/v1/integrations/admin/listings`,
|
|
428
|
+
method: 'GET',
|
|
429
|
+
headers: headerParameters,
|
|
430
|
+
query: queryParameters,
|
|
431
|
+
}, initOverrides);
|
|
432
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationListingsResponseFromJSON)(jsonValue));
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* List all integration listings
|
|
437
|
+
* List integration listings
|
|
438
|
+
*/
|
|
439
|
+
listAdminIntegrationListings(initOverrides) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
const response = yield this.listAdminIntegrationListingsRaw(initOverrides);
|
|
442
|
+
return yield response.value();
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Update an integration listing
|
|
447
|
+
* Update integration listing
|
|
448
|
+
*/
|
|
449
|
+
updateAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
451
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
452
|
+
throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling updateAdminIntegrationListing.');
|
|
453
|
+
}
|
|
454
|
+
if (requestParameters.updateAdminIntegrationListingRequest === null || requestParameters.updateAdminIntegrationListingRequest === undefined) {
|
|
455
|
+
throw new runtime.RequiredError('updateAdminIntegrationListingRequest', 'Required parameter requestParameters.updateAdminIntegrationListingRequest was null or undefined when calling updateAdminIntegrationListing.');
|
|
456
|
+
}
|
|
457
|
+
const queryParameters = {};
|
|
458
|
+
const headerParameters = {};
|
|
459
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
460
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
461
|
+
// oauth required
|
|
462
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
463
|
+
}
|
|
464
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
465
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
466
|
+
}
|
|
467
|
+
const response = yield this.request({
|
|
468
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
469
|
+
method: 'PATCH',
|
|
470
|
+
headers: headerParameters,
|
|
471
|
+
query: queryParameters,
|
|
472
|
+
body: (0, index_1.UpdateAdminIntegrationListingRequestToJSON)(requestParameters.updateAdminIntegrationListingRequest),
|
|
473
|
+
}, initOverrides);
|
|
474
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationListingFromJSON)(jsonValue));
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Update an integration listing
|
|
479
|
+
* Update integration listing
|
|
480
|
+
*/
|
|
481
|
+
updateAdminIntegrationListing(listing, updateAdminIntegrationListingRequest, initOverrides) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const response = yield this.updateAdminIntegrationListingRaw({
|
|
484
|
+
listing: listing, updateAdminIntegrationListingRequest: updateAdminIntegrationListingRequest,
|
|
485
|
+
}, initOverrides);
|
|
486
|
+
return yield response.value();
|
|
487
|
+
});
|
|
488
|
+
}
|
|
293
489
|
}
|
|
294
490
|
exports.IntegrationsApi = IntegrationsApi;
|
|
@@ -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.11.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,7 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { IntegrationCategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse, IntegrationsResponse } from '../models/index';
|
|
13
|
+
import type { CreateAdminIntegrationListingRequest, IntegrationCategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse, IntegrationsResponse, UpdateAdminIntegrationListingRequest } from '../models/index';
|
|
14
|
+
export interface CreateAdminIntegrationListingOperationRequest {
|
|
15
|
+
createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteAdminIntegrationListingRequest {
|
|
18
|
+
listing: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetAdminIntegrationListingRequest {
|
|
21
|
+
listing: string;
|
|
22
|
+
}
|
|
14
23
|
export interface GetIntegrationCategoryRequest {
|
|
15
24
|
category: string;
|
|
16
25
|
}
|
|
@@ -24,10 +33,44 @@ export interface GetIntegrationProductRequest {
|
|
|
24
33
|
export interface GetIntegrationProductsRequest {
|
|
25
34
|
integration: number;
|
|
26
35
|
}
|
|
36
|
+
export interface UpdateAdminIntegrationListingOperationRequest {
|
|
37
|
+
listing: string;
|
|
38
|
+
updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest;
|
|
39
|
+
}
|
|
27
40
|
/**
|
|
28
41
|
*
|
|
29
42
|
*/
|
|
30
43
|
export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
44
|
+
/**
|
|
45
|
+
* Create a new integration listing
|
|
46
|
+
* Create integration listing
|
|
47
|
+
*/
|
|
48
|
+
createAdminIntegrationListingRaw(requestParameters: CreateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a new integration listing
|
|
51
|
+
* Create integration listing
|
|
52
|
+
*/
|
|
53
|
+
createAdminIntegrationListing(createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
|
|
54
|
+
/**
|
|
55
|
+
* Delete an integration listing
|
|
56
|
+
* Delete integration listing
|
|
57
|
+
*/
|
|
58
|
+
deleteAdminIntegrationListingRaw(requestParameters: DeleteAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
|
+
/**
|
|
60
|
+
* Delete an integration listing
|
|
61
|
+
* Delete integration listing
|
|
62
|
+
*/
|
|
63
|
+
deleteAdminIntegrationListing(listing: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves a specific integration listing by its slug.
|
|
66
|
+
* Retrieve integration listing
|
|
67
|
+
*/
|
|
68
|
+
getAdminIntegrationListingRaw(requestParameters: GetAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
|
|
69
|
+
/**
|
|
70
|
+
* Retrieves a specific integration listing by its slug.
|
|
71
|
+
* Retrieve integration listing
|
|
72
|
+
*/
|
|
73
|
+
getAdminIntegrationListing(listing: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
|
|
31
74
|
/**
|
|
32
75
|
* List all integration categories
|
|
33
76
|
* List integration categories
|
|
@@ -98,4 +141,24 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
|
98
141
|
* List integrations
|
|
99
142
|
*/
|
|
100
143
|
getIntegrations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* List all integration listings
|
|
146
|
+
* List integration listings
|
|
147
|
+
*/
|
|
148
|
+
listAdminIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>>;
|
|
149
|
+
/**
|
|
150
|
+
* List all integration listings
|
|
151
|
+
* List integration listings
|
|
152
|
+
*/
|
|
153
|
+
listAdminIntegrationListings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListingsResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Update an integration listing
|
|
156
|
+
* Update integration listing
|
|
157
|
+
*/
|
|
158
|
+
updateAdminIntegrationListingRaw(requestParameters: UpdateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
|
|
159
|
+
/**
|
|
160
|
+
* Update an integration listing
|
|
161
|
+
* Update integration listing
|
|
162
|
+
*/
|
|
163
|
+
updateAdminIntegrationListing(listing: string, updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
|
|
101
164
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Integrations API
|
|
5
5
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.11.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,11 +21,129 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { IntegrationCategoriesResponseFromJSON, IntegrationListingFromJSON, IntegrationListingsResponseFromJSON, IntegrationProductFromJSON, IntegrationProductsResponseFromJSON, IntegrationsResponseFromJSON, } from '../models/index';
|
|
24
|
+
import { CreateAdminIntegrationListingRequestToJSON, IntegrationCategoriesResponseFromJSON, IntegrationListingFromJSON, IntegrationListingsResponseFromJSON, IntegrationProductFromJSON, IntegrationProductsResponseFromJSON, IntegrationsResponseFromJSON, UpdateAdminIntegrationListingRequestToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class IntegrationsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Create a new integration listing
|
|
31
|
+
* Create integration listing
|
|
32
|
+
*/
|
|
33
|
+
createAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters.createAdminIntegrationListingRequest === null || requestParameters.createAdminIntegrationListingRequest === undefined) {
|
|
36
|
+
throw new runtime.RequiredError('createAdminIntegrationListingRequest', 'Required parameter requestParameters.createAdminIntegrationListingRequest was null or undefined when calling createAdminIntegrationListing.');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
// oauth required
|
|
43
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
44
|
+
}
|
|
45
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
46
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
47
|
+
}
|
|
48
|
+
const response = yield this.request({
|
|
49
|
+
path: `/v1/integrations/admin/listings`,
|
|
50
|
+
method: 'POST',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
body: CreateAdminIntegrationListingRequestToJSON(requestParameters.createAdminIntegrationListingRequest),
|
|
54
|
+
}, initOverrides);
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create a new integration listing
|
|
60
|
+
* Create integration listing
|
|
61
|
+
*/
|
|
62
|
+
createAdminIntegrationListing(createAdminIntegrationListingRequest, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.createAdminIntegrationListingRaw({
|
|
65
|
+
createAdminIntegrationListingRequest: createAdminIntegrationListingRequest,
|
|
66
|
+
}, initOverrides);
|
|
67
|
+
return yield response.value();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Delete an integration listing
|
|
72
|
+
* Delete integration listing
|
|
73
|
+
*/
|
|
74
|
+
deleteAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
77
|
+
throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling deleteAdminIntegrationListing.');
|
|
78
|
+
}
|
|
79
|
+
const queryParameters = {};
|
|
80
|
+
const headerParameters = {};
|
|
81
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
+
// oauth required
|
|
83
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
84
|
+
}
|
|
85
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
86
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
87
|
+
}
|
|
88
|
+
const response = yield this.request({
|
|
89
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
90
|
+
method: 'DELETE',
|
|
91
|
+
headers: headerParameters,
|
|
92
|
+
query: queryParameters,
|
|
93
|
+
}, initOverrides);
|
|
94
|
+
return new runtime.VoidApiResponse(response);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Delete an integration listing
|
|
99
|
+
* Delete integration listing
|
|
100
|
+
*/
|
|
101
|
+
deleteAdminIntegrationListing(listing, initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
yield this.deleteAdminIntegrationListingRaw({
|
|
104
|
+
listing: listing,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Retrieves a specific integration listing by its slug.
|
|
110
|
+
* Retrieve integration listing
|
|
111
|
+
*/
|
|
112
|
+
getAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
115
|
+
throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling getAdminIntegrationListing.');
|
|
116
|
+
}
|
|
117
|
+
const queryParameters = {};
|
|
118
|
+
const headerParameters = {};
|
|
119
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
120
|
+
// oauth required
|
|
121
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
122
|
+
}
|
|
123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
125
|
+
}
|
|
126
|
+
const response = yield this.request({
|
|
127
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
}, initOverrides);
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves a specific integration listing by its slug.
|
|
137
|
+
* Retrieve integration listing
|
|
138
|
+
*/
|
|
139
|
+
getAdminIntegrationListing(listing, initOverrides) {
|
|
140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
const response = yield this.getAdminIntegrationListingRaw({
|
|
142
|
+
listing: listing,
|
|
143
|
+
}, initOverrides);
|
|
144
|
+
return yield response.value();
|
|
145
|
+
});
|
|
146
|
+
}
|
|
29
147
|
/**
|
|
30
148
|
* List all integration categories
|
|
31
149
|
* List integration categories
|
|
@@ -287,4 +405,82 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
287
405
|
return yield response.value();
|
|
288
406
|
});
|
|
289
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* List all integration listings
|
|
410
|
+
* List integration listings
|
|
411
|
+
*/
|
|
412
|
+
listAdminIntegrationListingsRaw(initOverrides) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
const queryParameters = {};
|
|
415
|
+
const headerParameters = {};
|
|
416
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
417
|
+
// oauth required
|
|
418
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
419
|
+
}
|
|
420
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
421
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
422
|
+
}
|
|
423
|
+
const response = yield this.request({
|
|
424
|
+
path: `/v1/integrations/admin/listings`,
|
|
425
|
+
method: 'GET',
|
|
426
|
+
headers: headerParameters,
|
|
427
|
+
query: queryParameters,
|
|
428
|
+
}, initOverrides);
|
|
429
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* List all integration listings
|
|
434
|
+
* List integration listings
|
|
435
|
+
*/
|
|
436
|
+
listAdminIntegrationListings(initOverrides) {
|
|
437
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
438
|
+
const response = yield this.listAdminIntegrationListingsRaw(initOverrides);
|
|
439
|
+
return yield response.value();
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Update an integration listing
|
|
444
|
+
* Update integration listing
|
|
445
|
+
*/
|
|
446
|
+
updateAdminIntegrationListingRaw(requestParameters, initOverrides) {
|
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
449
|
+
throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling updateAdminIntegrationListing.');
|
|
450
|
+
}
|
|
451
|
+
if (requestParameters.updateAdminIntegrationListingRequest === null || requestParameters.updateAdminIntegrationListingRequest === undefined) {
|
|
452
|
+
throw new runtime.RequiredError('updateAdminIntegrationListingRequest', 'Required parameter requestParameters.updateAdminIntegrationListingRequest was null or undefined when calling updateAdminIntegrationListing.');
|
|
453
|
+
}
|
|
454
|
+
const queryParameters = {};
|
|
455
|
+
const headerParameters = {};
|
|
456
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
457
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
458
|
+
// oauth required
|
|
459
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
460
|
+
}
|
|
461
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
462
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
463
|
+
}
|
|
464
|
+
const response = yield this.request({
|
|
465
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
466
|
+
method: 'PATCH',
|
|
467
|
+
headers: headerParameters,
|
|
468
|
+
query: queryParameters,
|
|
469
|
+
body: UpdateAdminIntegrationListingRequestToJSON(requestParameters.updateAdminIntegrationListingRequest),
|
|
470
|
+
}, initOverrides);
|
|
471
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Update an integration listing
|
|
476
|
+
* Update integration listing
|
|
477
|
+
*/
|
|
478
|
+
updateAdminIntegrationListing(listing, updateAdminIntegrationListingRequest, initOverrides) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
const response = yield this.updateAdminIntegrationListingRaw({
|
|
481
|
+
listing: listing, updateAdminIntegrationListingRequest: updateAdminIntegrationListingRequest,
|
|
482
|
+
}, initOverrides);
|
|
483
|
+
return yield response.value();
|
|
484
|
+
});
|
|
485
|
+
}
|
|
290
486
|
}
|