@teemill/integrations 0.8.4 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +75 -2
- package/dist/apis/IntegrationsApi.js +231 -1
- package/dist/esm/apis/IntegrationsApi.d.ts +75 -2
- package/dist/esm/apis/IntegrationsApi.js +232 -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 +62 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +61 -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 +10 -27
- package/dist/esm/models/Integration.js +10 -26
- 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 +8 -11
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -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 +62 -0
- package/dist/models/CreateAdminIntegrationListingRequest.js +68 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +47 -0
- package/dist/models/Integration.d.ts +10 -27
- package/dist/models/Integration.js +10 -26
- 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 +8 -11
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/models/UpdateAdminIntegrationListingRequest.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/src/apis/IntegrationsApi.ts +323 -1
- package/src/models/ApiError.ts +3 -3
- package/src/models/CreateAdminIntegrationListingRequest.ts +113 -0
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +68 -0
- package/src/models/Integration.ts +18 -58
- 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 +9 -14
- package/src/models/UpdateAdminIntegrationListingRequest.ts +107 -0
- package/src/models/index.ts +5 -0
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,9 @@ 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
|
|
11
|
+
src/models/Integration.ts
|
|
9
12
|
src/models/IntegrationCategoriesResponse.ts
|
|
10
13
|
src/models/IntegrationCategory.ts
|
|
11
14
|
src/models/IntegrationListing.ts
|
|
@@ -13,6 +16,8 @@ src/models/IntegrationListingGradient.ts
|
|
|
13
16
|
src/models/IntegrationListingsResponse.ts
|
|
14
17
|
src/models/IntegrationProduct.ts
|
|
15
18
|
src/models/IntegrationProductsResponse.ts
|
|
19
|
+
src/models/IntegrationsResponse.ts
|
|
20
|
+
src/models/UpdateAdminIntegrationListingRequest.ts
|
|
16
21
|
src/models/index.ts
|
|
17
22
|
src/runtime.ts
|
|
18
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.10.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/integrations@0.
|
|
39
|
+
npm install @teemill/integrations@0.10.0 --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.10.0
|
|
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 } 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
|
|
@@ -88,4 +131,34 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
|
88
131
|
* List integration products
|
|
89
132
|
*/
|
|
90
133
|
getIntegrationProducts(integration: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProductsResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* List all integrations
|
|
136
|
+
* List integrations
|
|
137
|
+
*/
|
|
138
|
+
getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
139
|
+
/**
|
|
140
|
+
* List all integrations
|
|
141
|
+
* List integrations
|
|
142
|
+
*/
|
|
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>;
|
|
91
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.10.0
|
|
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
|
|
@@ -256,5 +374,117 @@ class IntegrationsApi extends runtime.BaseAPI {
|
|
|
256
374
|
return yield response.value();
|
|
257
375
|
});
|
|
258
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* List all integrations
|
|
379
|
+
* List integrations
|
|
380
|
+
*/
|
|
381
|
+
getIntegrationsRaw(initOverrides) {
|
|
382
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
383
|
+
const queryParameters = {};
|
|
384
|
+
const headerParameters = {};
|
|
385
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
386
|
+
// oauth required
|
|
387
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
|
|
388
|
+
}
|
|
389
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
390
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
391
|
+
}
|
|
392
|
+
const response = yield this.request({
|
|
393
|
+
path: `/v1/integrations`,
|
|
394
|
+
method: 'GET',
|
|
395
|
+
headers: headerParameters,
|
|
396
|
+
query: queryParameters,
|
|
397
|
+
}, initOverrides);
|
|
398
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IntegrationsResponseFromJSON)(jsonValue));
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* List all integrations
|
|
403
|
+
* List integrations
|
|
404
|
+
*/
|
|
405
|
+
getIntegrations(initOverrides) {
|
|
406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
407
|
+
const response = yield this.getIntegrationsRaw(initOverrides);
|
|
408
|
+
return yield response.value();
|
|
409
|
+
});
|
|
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
|
+
}
|
|
259
489
|
}
|
|
260
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.10.0
|
|
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 } 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
|
|
@@ -88,4 +131,34 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
|
|
|
88
131
|
* List integration products
|
|
89
132
|
*/
|
|
90
133
|
getIntegrationProducts(integration: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProductsResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* List all integrations
|
|
136
|
+
* List integrations
|
|
137
|
+
*/
|
|
138
|
+
getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
|
|
139
|
+
/**
|
|
140
|
+
* List all integrations
|
|
141
|
+
* List integrations
|
|
142
|
+
*/
|
|
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>;
|
|
91
164
|
}
|