@teemill/integrations 0.12.2 → 0.12.5
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 +6 -21
- package/README.md +3 -3
- package/api.ts +1649 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1100 -0
- package/dist/api.js +910 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1100 -0
- package/dist/esm/api.js +903 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +14 -2
- package/tsconfig.json +4 -6
- package/dist/apis/IntegrationsApi.d.ts +0 -164
- package/dist/apis/IntegrationsApi.js +0 -490
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/esm/apis/IntegrationsApi.d.ts +0 -164
- package/dist/esm/apis/IntegrationsApi.js +0 -486
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -3
- package/dist/esm/models/AdminIntegrationListing.d.ts +0 -101
- package/dist/esm/models/AdminIntegrationListing.js +0 -85
- package/dist/esm/models/AdminIntegrationListingsResponse.d.ts +0 -32
- package/dist/esm/models/AdminIntegrationListingsResponse.js +0 -41
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/CategoriesResponse.d.ts +0 -32
- package/dist/esm/models/CategoriesResponse.js +0 -44
- package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +0 -73
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -43
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +0 -42
- package/dist/esm/models/Icon.d.ts +0 -43
- package/dist/esm/models/Icon.js +0 -48
- package/dist/esm/models/Integration.d.ts +0 -45
- package/dist/esm/models/Integration.js +0 -41
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationCategoriesResponse.js +0 -41
- package/dist/esm/models/IntegrationCategory.d.ts +0 -52
- package/dist/esm/models/IntegrationCategory.js +0 -56
- package/dist/esm/models/IntegrationInfo.d.ts +0 -49
- package/dist/esm/models/IntegrationInfo.js +0 -52
- package/dist/esm/models/IntegrationListing.d.ts +0 -94
- package/dist/esm/models/IntegrationListing.js +0 -80
- package/dist/esm/models/IntegrationListingGradient.d.ts +0 -43
- package/dist/esm/models/IntegrationListingGradient.js +0 -42
- package/dist/esm/models/IntegrationListingsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationListingsResponse.js +0 -41
- package/dist/esm/models/IntegrationProduct.d.ts +0 -61
- package/dist/esm/models/IntegrationProduct.js +0 -57
- package/dist/esm/models/IntegrationProductsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationProductsResponse.js +0 -41
- package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationsResponse.js +0 -41
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +0 -55
- package/dist/esm/models/index.d.ts +0 -16
- package/dist/esm/models/index.js +0 -18
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/AdminIntegrationListing.d.ts +0 -101
- package/dist/models/AdminIntegrationListing.js +0 -92
- package/dist/models/AdminIntegrationListingsResponse.d.ts +0 -32
- package/dist/models/AdminIntegrationListingsResponse.js +0 -48
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/CategoriesResponse.d.ts +0 -32
- package/dist/models/CategoriesResponse.js +0 -51
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/models/CreateAdminIntegrationListingRequest.js +0 -80
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -43
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +0 -49
- package/dist/models/Icon.d.ts +0 -43
- package/dist/models/Icon.js +0 -55
- package/dist/models/Integration.d.ts +0 -45
- package/dist/models/Integration.js +0 -48
- package/dist/models/IntegrationCategoriesResponse.d.ts +0 -32
- package/dist/models/IntegrationCategoriesResponse.js +0 -48
- package/dist/models/IntegrationCategory.d.ts +0 -52
- package/dist/models/IntegrationCategory.js +0 -63
- package/dist/models/IntegrationInfo.d.ts +0 -49
- package/dist/models/IntegrationInfo.js +0 -59
- package/dist/models/IntegrationListing.d.ts +0 -94
- package/dist/models/IntegrationListing.js +0 -87
- package/dist/models/IntegrationListingGradient.d.ts +0 -43
- package/dist/models/IntegrationListingGradient.js +0 -49
- package/dist/models/IntegrationListingsResponse.d.ts +0 -32
- package/dist/models/IntegrationListingsResponse.js +0 -48
- package/dist/models/IntegrationProduct.d.ts +0 -61
- package/dist/models/IntegrationProduct.js +0 -64
- package/dist/models/IntegrationProductsResponse.d.ts +0 -32
- package/dist/models/IntegrationProductsResponse.js +0 -48
- package/dist/models/IntegrationsResponse.d.ts +0 -32
- package/dist/models/IntegrationsResponse.js +0 -48
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/models/UpdateAdminIntegrationListingRequest.js +0 -62
- package/dist/models/index.d.ts +0 -16
- package/dist/models/index.js +0 -34
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/IntegrationsApi.ts +0 -682
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/AdminIntegrationListing.ts +0 -183
- package/src/models/AdminIntegrationListingsResponse.ts +0 -68
- package/src/models/ApiError.ts +0 -69
- package/src/models/CategoriesResponse.ts +0 -73
- package/src/models/CreateAdminIntegrationListingRequest.ts +0 -140
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +0 -76
- package/src/models/Icon.ts +0 -79
- package/src/models/Integration.ts +0 -75
- package/src/models/IntegrationCategoriesResponse.ts +0 -68
- package/src/models/IntegrationCategory.ts +0 -91
- package/src/models/IntegrationInfo.ts +0 -93
- package/src/models/IntegrationListing.ts +0 -168
- package/src/models/IntegrationListingGradient.ts +0 -76
- package/src/models/IntegrationListingsResponse.ts +0 -68
- package/src/models/IntegrationProduct.ts +0 -104
- package/src/models/IntegrationProductsResponse.ts +0 -68
- package/src/models/IntegrationsResponse.ts +0 -68
- package/src/models/UpdateAdminIntegrationListingRequest.ts +0 -131
- package/src/models/index.ts +0 -18
- package/src/runtime.ts +0 -441
|
@@ -1,682 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Integrations API
|
|
5
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.12.2
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
AdminIntegrationListing,
|
|
19
|
-
AdminIntegrationListingsResponse,
|
|
20
|
-
ApiError,
|
|
21
|
-
CreateAdminIntegrationListingRequest,
|
|
22
|
-
IntegrationCategoriesResponse,
|
|
23
|
-
IntegrationListing,
|
|
24
|
-
IntegrationListingsResponse,
|
|
25
|
-
IntegrationProduct,
|
|
26
|
-
IntegrationProductsResponse,
|
|
27
|
-
IntegrationsResponse,
|
|
28
|
-
UpdateAdminIntegrationListingRequest,
|
|
29
|
-
} from '../models/index';
|
|
30
|
-
import {
|
|
31
|
-
AdminIntegrationListingFromJSON,
|
|
32
|
-
AdminIntegrationListingToJSON,
|
|
33
|
-
AdminIntegrationListingsResponseFromJSON,
|
|
34
|
-
AdminIntegrationListingsResponseToJSON,
|
|
35
|
-
ApiErrorFromJSON,
|
|
36
|
-
ApiErrorToJSON,
|
|
37
|
-
CreateAdminIntegrationListingRequestFromJSON,
|
|
38
|
-
CreateAdminIntegrationListingRequestToJSON,
|
|
39
|
-
IntegrationCategoriesResponseFromJSON,
|
|
40
|
-
IntegrationCategoriesResponseToJSON,
|
|
41
|
-
IntegrationListingFromJSON,
|
|
42
|
-
IntegrationListingToJSON,
|
|
43
|
-
IntegrationListingsResponseFromJSON,
|
|
44
|
-
IntegrationListingsResponseToJSON,
|
|
45
|
-
IntegrationProductFromJSON,
|
|
46
|
-
IntegrationProductToJSON,
|
|
47
|
-
IntegrationProductsResponseFromJSON,
|
|
48
|
-
IntegrationProductsResponseToJSON,
|
|
49
|
-
IntegrationsResponseFromJSON,
|
|
50
|
-
IntegrationsResponseToJSON,
|
|
51
|
-
UpdateAdminIntegrationListingRequestFromJSON,
|
|
52
|
-
UpdateAdminIntegrationListingRequestToJSON,
|
|
53
|
-
} from '../models/index';
|
|
54
|
-
|
|
55
|
-
export interface CreateAdminIntegrationListingOperationRequest {
|
|
56
|
-
createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface DeleteAdminIntegrationListingRequest {
|
|
60
|
-
listing: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface GetAdminIntegrationListingRequest {
|
|
64
|
-
listing: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface GetIntegrationCategoryRequest {
|
|
68
|
-
category: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface GetIntegrationListingRequest {
|
|
72
|
-
listing: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface GetIntegrationProductRequest {
|
|
76
|
-
integration: number;
|
|
77
|
-
product: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface GetIntegrationProductsRequest {
|
|
81
|
-
integration: number;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface UpdateAdminIntegrationListingOperationRequest {
|
|
85
|
-
listing: string;
|
|
86
|
-
updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
*/
|
|
92
|
-
export class IntegrationsApi extends runtime.BaseAPI {
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Create a new integration listing
|
|
96
|
-
* Create integration listing
|
|
97
|
-
*/
|
|
98
|
-
async createAdminIntegrationListingRaw(requestParameters: CreateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminIntegrationListing>> {
|
|
99
|
-
if (requestParameters.createAdminIntegrationListingRequest === null || requestParameters.createAdminIntegrationListingRequest === undefined) {
|
|
100
|
-
throw new runtime.RequiredError('createAdminIntegrationListingRequest','Required parameter requestParameters.createAdminIntegrationListingRequest was null or undefined when calling createAdminIntegrationListing.');
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const queryParameters: any = {};
|
|
104
|
-
|
|
105
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
106
|
-
|
|
107
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
108
|
-
|
|
109
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
-
// oauth required
|
|
111
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const response = await this.request({
|
|
119
|
-
path: `/v1/integrations/admin/listings`,
|
|
120
|
-
method: 'POST',
|
|
121
|
-
headers: headerParameters,
|
|
122
|
-
query: queryParameters,
|
|
123
|
-
body: CreateAdminIntegrationListingRequestToJSON(requestParameters.createAdminIntegrationListingRequest),
|
|
124
|
-
}, initOverrides);
|
|
125
|
-
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AdminIntegrationListingFromJSON(jsonValue));
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Create a new integration listing
|
|
131
|
-
* Create integration listing
|
|
132
|
-
*/
|
|
133
|
-
async createAdminIntegrationListing(
|
|
134
|
-
createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest,
|
|
135
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
136
|
-
): Promise<AdminIntegrationListing> {
|
|
137
|
-
const response = await this.createAdminIntegrationListingRaw(
|
|
138
|
-
{
|
|
139
|
-
createAdminIntegrationListingRequest: createAdminIntegrationListingRequest,
|
|
140
|
-
},
|
|
141
|
-
initOverrides
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
return await response.value();
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Delete an integration listing
|
|
149
|
-
* Delete integration listing
|
|
150
|
-
*/
|
|
151
|
-
async deleteAdminIntegrationListingRaw(requestParameters: DeleteAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
152
|
-
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
153
|
-
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling deleteAdminIntegrationListing.');
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const queryParameters: any = {};
|
|
157
|
-
|
|
158
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
159
|
-
|
|
160
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
161
|
-
// oauth required
|
|
162
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
166
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
const response = await this.request({
|
|
170
|
-
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
171
|
-
method: 'DELETE',
|
|
172
|
-
headers: headerParameters,
|
|
173
|
-
query: queryParameters,
|
|
174
|
-
}, initOverrides);
|
|
175
|
-
|
|
176
|
-
return new runtime.VoidApiResponse(response);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Delete an integration listing
|
|
181
|
-
* Delete integration listing
|
|
182
|
-
*/
|
|
183
|
-
async deleteAdminIntegrationListing(
|
|
184
|
-
listing: string,
|
|
185
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
186
|
-
): Promise<void> {
|
|
187
|
-
await this.deleteAdminIntegrationListingRaw(
|
|
188
|
-
{
|
|
189
|
-
listing: listing,
|
|
190
|
-
},
|
|
191
|
-
initOverrides
|
|
192
|
-
);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Retrieves a specific integration listing by its slug.
|
|
197
|
-
* Retrieve integration listing
|
|
198
|
-
*/
|
|
199
|
-
async getAdminIntegrationListingRaw(requestParameters: GetAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminIntegrationListing>> {
|
|
200
|
-
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
201
|
-
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling getAdminIntegrationListing.');
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const queryParameters: any = {};
|
|
205
|
-
|
|
206
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
207
|
-
|
|
208
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
-
// oauth required
|
|
210
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
214
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
const response = await this.request({
|
|
218
|
-
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
219
|
-
method: 'GET',
|
|
220
|
-
headers: headerParameters,
|
|
221
|
-
query: queryParameters,
|
|
222
|
-
}, initOverrides);
|
|
223
|
-
|
|
224
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AdminIntegrationListingFromJSON(jsonValue));
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Retrieves a specific integration listing by its slug.
|
|
229
|
-
* Retrieve integration listing
|
|
230
|
-
*/
|
|
231
|
-
async getAdminIntegrationListing(
|
|
232
|
-
listing: string,
|
|
233
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
234
|
-
): Promise<AdminIntegrationListing> {
|
|
235
|
-
const response = await this.getAdminIntegrationListingRaw(
|
|
236
|
-
{
|
|
237
|
-
listing: listing,
|
|
238
|
-
},
|
|
239
|
-
initOverrides
|
|
240
|
-
);
|
|
241
|
-
|
|
242
|
-
return await response.value();
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* List all integration categories
|
|
247
|
-
* List integration categories
|
|
248
|
-
*/
|
|
249
|
-
async getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationCategoriesResponse>> {
|
|
250
|
-
const queryParameters: any = {};
|
|
251
|
-
|
|
252
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
253
|
-
|
|
254
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
255
|
-
// oauth required
|
|
256
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
260
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
const response = await this.request({
|
|
264
|
-
path: `/v1/integrations/categories`,
|
|
265
|
-
method: 'GET',
|
|
266
|
-
headers: headerParameters,
|
|
267
|
-
query: queryParameters,
|
|
268
|
-
}, initOverrides);
|
|
269
|
-
|
|
270
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationCategoriesResponseFromJSON(jsonValue));
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* List all integration categories
|
|
275
|
-
* List integration categories
|
|
276
|
-
*/
|
|
277
|
-
async getIntegrationCategories(
|
|
278
|
-
|
|
279
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
280
|
-
): Promise<IntegrationCategoriesResponse> {
|
|
281
|
-
const response = await this.getIntegrationCategoriesRaw(
|
|
282
|
-
|
|
283
|
-
initOverrides
|
|
284
|
-
);
|
|
285
|
-
|
|
286
|
-
return await response.value();
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Get an integration category
|
|
291
|
-
* Get integration category
|
|
292
|
-
*/
|
|
293
|
-
async getIntegrationCategoryRaw(requestParameters: GetIntegrationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>> {
|
|
294
|
-
if (requestParameters.category === null || requestParameters.category === undefined) {
|
|
295
|
-
throw new runtime.RequiredError('category','Required parameter requestParameters.category was null or undefined when calling getIntegrationCategory.');
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
const queryParameters: any = {};
|
|
299
|
-
|
|
300
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
301
|
-
|
|
302
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
303
|
-
// oauth required
|
|
304
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
308
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
const response = await this.request({
|
|
312
|
-
path: `/v1/integrations/categories/{category}`.replace(`{${"category"}}`, encodeURIComponent(String(requestParameters.category))),
|
|
313
|
-
method: 'GET',
|
|
314
|
-
headers: headerParameters,
|
|
315
|
-
query: queryParameters,
|
|
316
|
-
}, initOverrides);
|
|
317
|
-
|
|
318
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Get an integration category
|
|
323
|
-
* Get integration category
|
|
324
|
-
*/
|
|
325
|
-
async getIntegrationCategory(
|
|
326
|
-
category: string,
|
|
327
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
328
|
-
): Promise<IntegrationListingsResponse> {
|
|
329
|
-
const response = await this.getIntegrationCategoryRaw(
|
|
330
|
-
{
|
|
331
|
-
category: category,
|
|
332
|
-
},
|
|
333
|
-
initOverrides
|
|
334
|
-
);
|
|
335
|
-
|
|
336
|
-
return await response.value();
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Get an integration listing
|
|
341
|
-
* Get integration listing
|
|
342
|
-
*/
|
|
343
|
-
async getIntegrationListingRaw(requestParameters: GetIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
|
|
344
|
-
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
345
|
-
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling getIntegrationListing.');
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
const queryParameters: any = {};
|
|
349
|
-
|
|
350
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
351
|
-
|
|
352
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
353
|
-
// oauth required
|
|
354
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
358
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
const response = await this.request({
|
|
362
|
-
path: `/v1/integrations/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
363
|
-
method: 'GET',
|
|
364
|
-
headers: headerParameters,
|
|
365
|
-
query: queryParameters,
|
|
366
|
-
}, initOverrides);
|
|
367
|
-
|
|
368
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Get an integration listing
|
|
373
|
-
* Get integration listing
|
|
374
|
-
*/
|
|
375
|
-
async getIntegrationListing(
|
|
376
|
-
listing: string,
|
|
377
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
378
|
-
): Promise<IntegrationListing> {
|
|
379
|
-
const response = await this.getIntegrationListingRaw(
|
|
380
|
-
{
|
|
381
|
-
listing: listing,
|
|
382
|
-
},
|
|
383
|
-
initOverrides
|
|
384
|
-
);
|
|
385
|
-
|
|
386
|
-
return await response.value();
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* List all integration listings
|
|
391
|
-
* List integration listings
|
|
392
|
-
*/
|
|
393
|
-
async getIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>> {
|
|
394
|
-
const queryParameters: any = {};
|
|
395
|
-
|
|
396
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
397
|
-
|
|
398
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
399
|
-
// oauth required
|
|
400
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
404
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
const response = await this.request({
|
|
408
|
-
path: `/v1/integrations/listings`,
|
|
409
|
-
method: 'GET',
|
|
410
|
-
headers: headerParameters,
|
|
411
|
-
query: queryParameters,
|
|
412
|
-
}, initOverrides);
|
|
413
|
-
|
|
414
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* List all integration listings
|
|
419
|
-
* List integration listings
|
|
420
|
-
*/
|
|
421
|
-
async getIntegrationListings(
|
|
422
|
-
|
|
423
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
424
|
-
): Promise<IntegrationListingsResponse> {
|
|
425
|
-
const response = await this.getIntegrationListingsRaw(
|
|
426
|
-
|
|
427
|
-
initOverrides
|
|
428
|
-
);
|
|
429
|
-
|
|
430
|
-
return await response.value();
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Get a product available for an integration
|
|
435
|
-
* Get integration product
|
|
436
|
-
*/
|
|
437
|
-
async getIntegrationProductRaw(requestParameters: GetIntegrationProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProduct>> {
|
|
438
|
-
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
439
|
-
throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegrationProduct.');
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (requestParameters.product === null || requestParameters.product === undefined) {
|
|
443
|
-
throw new runtime.RequiredError('product','Required parameter requestParameters.product was null or undefined when calling getIntegrationProduct.');
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
const queryParameters: any = {};
|
|
447
|
-
|
|
448
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
449
|
-
|
|
450
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
451
|
-
// oauth required
|
|
452
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
456
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
const response = await this.request({
|
|
460
|
-
path: `/v1/integrations/{integration}/products/{product}`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))).replace(`{${"product"}}`, encodeURIComponent(String(requestParameters.product))),
|
|
461
|
-
method: 'GET',
|
|
462
|
-
headers: headerParameters,
|
|
463
|
-
query: queryParameters,
|
|
464
|
-
}, initOverrides);
|
|
465
|
-
|
|
466
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductFromJSON(jsonValue));
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* Get a product available for an integration
|
|
471
|
-
* Get integration product
|
|
472
|
-
*/
|
|
473
|
-
async getIntegrationProduct(
|
|
474
|
-
integration: number, product: string,
|
|
475
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
476
|
-
): Promise<IntegrationProduct> {
|
|
477
|
-
const response = await this.getIntegrationProductRaw(
|
|
478
|
-
{
|
|
479
|
-
integration: integration,product: product,
|
|
480
|
-
},
|
|
481
|
-
initOverrides
|
|
482
|
-
);
|
|
483
|
-
|
|
484
|
-
return await response.value();
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* List all products available for an integration
|
|
489
|
-
* List integration products
|
|
490
|
-
*/
|
|
491
|
-
async getIntegrationProductsRaw(requestParameters: GetIntegrationProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProductsResponse>> {
|
|
492
|
-
if (requestParameters.integration === null || requestParameters.integration === undefined) {
|
|
493
|
-
throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegrationProducts.');
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
const queryParameters: any = {};
|
|
497
|
-
|
|
498
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
499
|
-
|
|
500
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
501
|
-
// oauth required
|
|
502
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
506
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
const response = await this.request({
|
|
510
|
-
path: `/v1/integrations/{integration}/products`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
|
|
511
|
-
method: 'GET',
|
|
512
|
-
headers: headerParameters,
|
|
513
|
-
query: queryParameters,
|
|
514
|
-
}, initOverrides);
|
|
515
|
-
|
|
516
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductsResponseFromJSON(jsonValue));
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* List all products available for an integration
|
|
521
|
-
* List integration products
|
|
522
|
-
*/
|
|
523
|
-
async getIntegrationProducts(
|
|
524
|
-
integration: number,
|
|
525
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
526
|
-
): Promise<IntegrationProductsResponse> {
|
|
527
|
-
const response = await this.getIntegrationProductsRaw(
|
|
528
|
-
{
|
|
529
|
-
integration: integration,
|
|
530
|
-
},
|
|
531
|
-
initOverrides
|
|
532
|
-
);
|
|
533
|
-
|
|
534
|
-
return await response.value();
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* List all integrations
|
|
539
|
-
* List integrations
|
|
540
|
-
*/
|
|
541
|
-
async getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
542
|
-
const queryParameters: any = {};
|
|
543
|
-
|
|
544
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
545
|
-
|
|
546
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
547
|
-
// oauth required
|
|
548
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
552
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
const response = await this.request({
|
|
556
|
-
path: `/v1/integrations`,
|
|
557
|
-
method: 'GET',
|
|
558
|
-
headers: headerParameters,
|
|
559
|
-
query: queryParameters,
|
|
560
|
-
}, initOverrides);
|
|
561
|
-
|
|
562
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
/**
|
|
566
|
-
* List all integrations
|
|
567
|
-
* List integrations
|
|
568
|
-
*/
|
|
569
|
-
async getIntegrations(
|
|
570
|
-
|
|
571
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
572
|
-
): Promise<IntegrationsResponse> {
|
|
573
|
-
const response = await this.getIntegrationsRaw(
|
|
574
|
-
|
|
575
|
-
initOverrides
|
|
576
|
-
);
|
|
577
|
-
|
|
578
|
-
return await response.value();
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* List all integration listings
|
|
583
|
-
* List integration listings
|
|
584
|
-
*/
|
|
585
|
-
async listAdminIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminIntegrationListingsResponse>> {
|
|
586
|
-
const queryParameters: any = {};
|
|
587
|
-
|
|
588
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
589
|
-
|
|
590
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
591
|
-
// oauth required
|
|
592
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
596
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
const response = await this.request({
|
|
600
|
-
path: `/v1/integrations/admin/listings`,
|
|
601
|
-
method: 'GET',
|
|
602
|
-
headers: headerParameters,
|
|
603
|
-
query: queryParameters,
|
|
604
|
-
}, initOverrides);
|
|
605
|
-
|
|
606
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AdminIntegrationListingsResponseFromJSON(jsonValue));
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* List all integration listings
|
|
611
|
-
* List integration listings
|
|
612
|
-
*/
|
|
613
|
-
async listAdminIntegrationListings(
|
|
614
|
-
|
|
615
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
616
|
-
): Promise<AdminIntegrationListingsResponse> {
|
|
617
|
-
const response = await this.listAdminIntegrationListingsRaw(
|
|
618
|
-
|
|
619
|
-
initOverrides
|
|
620
|
-
);
|
|
621
|
-
|
|
622
|
-
return await response.value();
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* Update an integration listing
|
|
627
|
-
* Update integration listing
|
|
628
|
-
*/
|
|
629
|
-
async updateAdminIntegrationListingRaw(requestParameters: UpdateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
|
|
630
|
-
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
631
|
-
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling updateAdminIntegrationListing.');
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
if (requestParameters.updateAdminIntegrationListingRequest === null || requestParameters.updateAdminIntegrationListingRequest === undefined) {
|
|
635
|
-
throw new runtime.RequiredError('updateAdminIntegrationListingRequest','Required parameter requestParameters.updateAdminIntegrationListingRequest was null or undefined when calling updateAdminIntegrationListing.');
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
const queryParameters: any = {};
|
|
639
|
-
|
|
640
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
641
|
-
|
|
642
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
643
|
-
|
|
644
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
645
|
-
// oauth required
|
|
646
|
-
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
650
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
const response = await this.request({
|
|
654
|
-
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
655
|
-
method: 'PATCH',
|
|
656
|
-
headers: headerParameters,
|
|
657
|
-
query: queryParameters,
|
|
658
|
-
body: UpdateAdminIntegrationListingRequestToJSON(requestParameters.updateAdminIntegrationListingRequest),
|
|
659
|
-
}, initOverrides);
|
|
660
|
-
|
|
661
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Update an integration listing
|
|
666
|
-
* Update integration listing
|
|
667
|
-
*/
|
|
668
|
-
async updateAdminIntegrationListing(
|
|
669
|
-
listing: string, updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest,
|
|
670
|
-
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
671
|
-
): Promise<IntegrationListing> {
|
|
672
|
-
const response = await this.updateAdminIntegrationListingRaw(
|
|
673
|
-
{
|
|
674
|
-
listing: listing,updateAdminIntegrationListingRequest: updateAdminIntegrationListingRequest,
|
|
675
|
-
},
|
|
676
|
-
initOverrides
|
|
677
|
-
);
|
|
678
|
-
|
|
679
|
-
return await response.value();
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
}
|
package/src/apis/index.ts
DELETED