@teemill/integrations 0.12.2 → 0.12.7

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.
Files changed (141) hide show
  1. package/.openapi-generator/FILES +6 -21
  2. package/README.md +3 -3
  3. package/api.ts +1649 -0
  4. package/base.ts +86 -0
  5. package/common.ts +150 -0
  6. package/configuration.ts +110 -0
  7. package/dist/api.d.ts +1100 -0
  8. package/dist/api.js +910 -0
  9. package/dist/base.d.ts +66 -0
  10. package/dist/base.js +65 -0
  11. package/dist/common.d.ts +65 -0
  12. package/dist/common.js +161 -0
  13. package/dist/configuration.d.ts +91 -0
  14. package/dist/configuration.js +43 -0
  15. package/dist/esm/api.d.ts +1100 -0
  16. package/dist/esm/api.js +903 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/base.js +60 -0
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +39 -0
  23. package/dist/esm/index.d.ts +13 -3
  24. package/dist/esm/index.js +13 -3
  25. package/dist/index.d.ts +13 -3
  26. package/dist/index.js +15 -5
  27. package/git_push.sh +57 -0
  28. package/index.ts +18 -0
  29. package/package.json +14 -2
  30. package/tsconfig.json +4 -6
  31. package/dist/apis/IntegrationsApi.d.ts +0 -164
  32. package/dist/apis/IntegrationsApi.js +0 -490
  33. package/dist/apis/index.d.ts +0 -1
  34. package/dist/apis/index.js +0 -19
  35. package/dist/esm/apis/IntegrationsApi.d.ts +0 -164
  36. package/dist/esm/apis/IntegrationsApi.js +0 -486
  37. package/dist/esm/apis/index.d.ts +0 -1
  38. package/dist/esm/apis/index.js +0 -3
  39. package/dist/esm/models/AdminIntegrationListing.d.ts +0 -101
  40. package/dist/esm/models/AdminIntegrationListing.js +0 -85
  41. package/dist/esm/models/AdminIntegrationListingsResponse.d.ts +0 -32
  42. package/dist/esm/models/AdminIntegrationListingsResponse.js +0 -41
  43. package/dist/esm/models/ApiError.d.ts +0 -37
  44. package/dist/esm/models/ApiError.js +0 -42
  45. package/dist/esm/models/CategoriesResponse.d.ts +0 -32
  46. package/dist/esm/models/CategoriesResponse.js +0 -44
  47. package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
  48. package/dist/esm/models/CreateAdminIntegrationListingRequest.js +0 -73
  49. package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -43
  50. package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +0 -42
  51. package/dist/esm/models/Icon.d.ts +0 -43
  52. package/dist/esm/models/Icon.js +0 -48
  53. package/dist/esm/models/Integration.d.ts +0 -45
  54. package/dist/esm/models/Integration.js +0 -41
  55. package/dist/esm/models/IntegrationCategoriesResponse.d.ts +0 -32
  56. package/dist/esm/models/IntegrationCategoriesResponse.js +0 -41
  57. package/dist/esm/models/IntegrationCategory.d.ts +0 -52
  58. package/dist/esm/models/IntegrationCategory.js +0 -56
  59. package/dist/esm/models/IntegrationInfo.d.ts +0 -49
  60. package/dist/esm/models/IntegrationInfo.js +0 -52
  61. package/dist/esm/models/IntegrationListing.d.ts +0 -94
  62. package/dist/esm/models/IntegrationListing.js +0 -80
  63. package/dist/esm/models/IntegrationListingGradient.d.ts +0 -43
  64. package/dist/esm/models/IntegrationListingGradient.js +0 -42
  65. package/dist/esm/models/IntegrationListingsResponse.d.ts +0 -32
  66. package/dist/esm/models/IntegrationListingsResponse.js +0 -41
  67. package/dist/esm/models/IntegrationProduct.d.ts +0 -61
  68. package/dist/esm/models/IntegrationProduct.js +0 -57
  69. package/dist/esm/models/IntegrationProductsResponse.d.ts +0 -32
  70. package/dist/esm/models/IntegrationProductsResponse.js +0 -41
  71. package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
  72. package/dist/esm/models/IntegrationsResponse.js +0 -41
  73. package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
  74. package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +0 -55
  75. package/dist/esm/models/index.d.ts +0 -16
  76. package/dist/esm/models/index.js +0 -18
  77. package/dist/esm/runtime.d.ts +0 -187
  78. package/dist/esm/runtime.js +0 -333
  79. package/dist/models/AdminIntegrationListing.d.ts +0 -101
  80. package/dist/models/AdminIntegrationListing.js +0 -92
  81. package/dist/models/AdminIntegrationListingsResponse.d.ts +0 -32
  82. package/dist/models/AdminIntegrationListingsResponse.js +0 -48
  83. package/dist/models/ApiError.d.ts +0 -37
  84. package/dist/models/ApiError.js +0 -49
  85. package/dist/models/CategoriesResponse.d.ts +0 -32
  86. package/dist/models/CategoriesResponse.js +0 -51
  87. package/dist/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
  88. package/dist/models/CreateAdminIntegrationListingRequest.js +0 -80
  89. package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -43
  90. package/dist/models/CreateAdminIntegrationListingRequestGradient.js +0 -49
  91. package/dist/models/Icon.d.ts +0 -43
  92. package/dist/models/Icon.js +0 -55
  93. package/dist/models/Integration.d.ts +0 -45
  94. package/dist/models/Integration.js +0 -48
  95. package/dist/models/IntegrationCategoriesResponse.d.ts +0 -32
  96. package/dist/models/IntegrationCategoriesResponse.js +0 -48
  97. package/dist/models/IntegrationCategory.d.ts +0 -52
  98. package/dist/models/IntegrationCategory.js +0 -63
  99. package/dist/models/IntegrationInfo.d.ts +0 -49
  100. package/dist/models/IntegrationInfo.js +0 -59
  101. package/dist/models/IntegrationListing.d.ts +0 -94
  102. package/dist/models/IntegrationListing.js +0 -87
  103. package/dist/models/IntegrationListingGradient.d.ts +0 -43
  104. package/dist/models/IntegrationListingGradient.js +0 -49
  105. package/dist/models/IntegrationListingsResponse.d.ts +0 -32
  106. package/dist/models/IntegrationListingsResponse.js +0 -48
  107. package/dist/models/IntegrationProduct.d.ts +0 -61
  108. package/dist/models/IntegrationProduct.js +0 -64
  109. package/dist/models/IntegrationProductsResponse.d.ts +0 -32
  110. package/dist/models/IntegrationProductsResponse.js +0 -48
  111. package/dist/models/IntegrationsResponse.d.ts +0 -32
  112. package/dist/models/IntegrationsResponse.js +0 -48
  113. package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
  114. package/dist/models/UpdateAdminIntegrationListingRequest.js +0 -62
  115. package/dist/models/index.d.ts +0 -16
  116. package/dist/models/index.js +0 -34
  117. package/dist/runtime.d.ts +0 -187
  118. package/dist/runtime.js +0 -349
  119. package/src/apis/IntegrationsApi.ts +0 -682
  120. package/src/apis/index.ts +0 -3
  121. package/src/index.ts +0 -5
  122. package/src/models/AdminIntegrationListing.ts +0 -183
  123. package/src/models/AdminIntegrationListingsResponse.ts +0 -68
  124. package/src/models/ApiError.ts +0 -69
  125. package/src/models/CategoriesResponse.ts +0 -73
  126. package/src/models/CreateAdminIntegrationListingRequest.ts +0 -140
  127. package/src/models/CreateAdminIntegrationListingRequestGradient.ts +0 -76
  128. package/src/models/Icon.ts +0 -79
  129. package/src/models/Integration.ts +0 -75
  130. package/src/models/IntegrationCategoriesResponse.ts +0 -68
  131. package/src/models/IntegrationCategory.ts +0 -91
  132. package/src/models/IntegrationInfo.ts +0 -93
  133. package/src/models/IntegrationListing.ts +0 -168
  134. package/src/models/IntegrationListingGradient.ts +0 -76
  135. package/src/models/IntegrationListingsResponse.ts +0 -68
  136. package/src/models/IntegrationProduct.ts +0 -104
  137. package/src/models/IntegrationProductsResponse.ts +0 -68
  138. package/src/models/IntegrationsResponse.ts +0 -68
  139. package/src/models/UpdateAdminIntegrationListingRequest.ts +0 -131
  140. package/src/models/index.ts +0 -18
  141. package/src/runtime.ts +0 -441
@@ -0,0 +1,903 @@
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.7
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const IntegrationCategoryTypeEnum = {
30
+ Featured: 'featured',
31
+ Grid: 'grid',
32
+ Column: 'column'
33
+ };
34
+ /**
35
+ * IntegrationsApi - axios parameter creator
36
+ * @export
37
+ */
38
+ export const IntegrationsApiAxiosParamCreator = function (configuration) {
39
+ return {
40
+ /**
41
+ * Create a new integration listing
42
+ * @summary Create integration listing
43
+ * @param {CreateAdminIntegrationListingRequest} createAdminIntegrationListingRequest Create a new integration listing
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createAdminIntegrationListing: (createAdminIntegrationListingRequest_1, ...args_1) => __awaiter(this, [createAdminIntegrationListingRequest_1, ...args_1], void 0, function* (createAdminIntegrationListingRequest, options = {}) {
48
+ // verify required parameter 'createAdminIntegrationListingRequest' is not null or undefined
49
+ assertParamExists('createAdminIntegrationListing', 'createAdminIntegrationListingRequest', createAdminIntegrationListingRequest);
50
+ const localVarPath = `/v1/integrations/admin/listings`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ }
57
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
58
+ const localVarHeaderParameter = {};
59
+ const localVarQueryParameter = {};
60
+ // authentication session-oauth required
61
+ // oauth required
62
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
63
+ // authentication api-key required
64
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
65
+ localVarHeaderParameter['Content-Type'] = 'application/json';
66
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
67
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
69
+ localVarRequestOptions.data = serializeDataIfNeeded(createAdminIntegrationListingRequest, localVarRequestOptions, configuration);
70
+ return {
71
+ url: toPathString(localVarUrlObj),
72
+ options: localVarRequestOptions,
73
+ };
74
+ }),
75
+ /**
76
+ * Delete an integration listing
77
+ * @summary Delete integration listing
78
+ * @param {string} listing Integration listing unique identifier
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ deleteAdminIntegrationListing: (listing_1, ...args_2) => __awaiter(this, [listing_1, ...args_2], void 0, function* (listing, options = {}) {
83
+ // verify required parameter 'listing' is not null or undefined
84
+ assertParamExists('deleteAdminIntegrationListing', 'listing', listing);
85
+ const localVarPath = `/v1/integrations/admin/listings/{listing}`
86
+ .replace(`{${"listing"}}`, encodeURIComponent(String(listing)));
87
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
89
+ let baseOptions;
90
+ if (configuration) {
91
+ baseOptions = configuration.baseOptions;
92
+ }
93
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
94
+ const localVarHeaderParameter = {};
95
+ const localVarQueryParameter = {};
96
+ // authentication session-oauth required
97
+ // oauth required
98
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
99
+ // authentication api-key required
100
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
104
+ return {
105
+ url: toPathString(localVarUrlObj),
106
+ options: localVarRequestOptions,
107
+ };
108
+ }),
109
+ /**
110
+ * Retrieves a specific integration listing by its slug.
111
+ * @summary Retrieve integration listing
112
+ * @param {string} listing Integration listing unique identifier
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ getAdminIntegrationListing: (listing_2, ...args_3) => __awaiter(this, [listing_2, ...args_3], void 0, function* (listing, options = {}) {
117
+ // verify required parameter 'listing' is not null or undefined
118
+ assertParamExists('getAdminIntegrationListing', 'listing', listing);
119
+ const localVarPath = `/v1/integrations/admin/listings/{listing}`
120
+ .replace(`{${"listing"}}`, encodeURIComponent(String(listing)));
121
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
123
+ let baseOptions;
124
+ if (configuration) {
125
+ baseOptions = configuration.baseOptions;
126
+ }
127
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
128
+ const localVarHeaderParameter = {};
129
+ const localVarQueryParameter = {};
130
+ // authentication session-oauth required
131
+ // oauth required
132
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
133
+ // authentication api-key required
134
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
135
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ }),
143
+ /**
144
+ * List all integration categories
145
+ * @summary List integration categories
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ getIntegrationCategories: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
150
+ const localVarPath = `/v1/integrations/categories`;
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
158
+ const localVarHeaderParameter = {};
159
+ const localVarQueryParameter = {};
160
+ // authentication session-oauth required
161
+ // oauth required
162
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
163
+ // authentication api-key required
164
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
165
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
168
+ return {
169
+ url: toPathString(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ }),
173
+ /**
174
+ * Get an integration category
175
+ * @summary Get integration category
176
+ * @param {string} category Categories unique identifier
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ getIntegrationCategory: (category_1, ...args_5) => __awaiter(this, [category_1, ...args_5], void 0, function* (category, options = {}) {
181
+ // verify required parameter 'category' is not null or undefined
182
+ assertParamExists('getIntegrationCategory', 'category', category);
183
+ const localVarPath = `/v1/integrations/categories/{category}`
184
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
187
+ let baseOptions;
188
+ if (configuration) {
189
+ baseOptions = configuration.baseOptions;
190
+ }
191
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
192
+ const localVarHeaderParameter = {};
193
+ const localVarQueryParameter = {};
194
+ // authentication session-oauth required
195
+ // oauth required
196
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
197
+ // authentication api-key required
198
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
202
+ return {
203
+ url: toPathString(localVarUrlObj),
204
+ options: localVarRequestOptions,
205
+ };
206
+ }),
207
+ /**
208
+ * Get an integration listing
209
+ * @summary Get integration listing
210
+ * @param {string} listing Integration listing unique identifier
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ getIntegrationListing: (listing_3, ...args_6) => __awaiter(this, [listing_3, ...args_6], void 0, function* (listing, options = {}) {
215
+ // verify required parameter 'listing' is not null or undefined
216
+ assertParamExists('getIntegrationListing', 'listing', listing);
217
+ const localVarPath = `/v1/integrations/listings/{listing}`
218
+ .replace(`{${"listing"}}`, encodeURIComponent(String(listing)));
219
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
220
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
221
+ let baseOptions;
222
+ if (configuration) {
223
+ baseOptions = configuration.baseOptions;
224
+ }
225
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
226
+ const localVarHeaderParameter = {};
227
+ const localVarQueryParameter = {};
228
+ // authentication session-oauth required
229
+ // oauth required
230
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
231
+ // authentication api-key required
232
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
233
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
234
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return {
237
+ url: toPathString(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ };
240
+ }),
241
+ /**
242
+ * List all integration listings
243
+ * @summary List integration listings
244
+ * @param {*} [options] Override http request option.
245
+ * @throws {RequiredError}
246
+ */
247
+ getIntegrationListings: (...args_7) => __awaiter(this, [...args_7], void 0, function* (options = {}) {
248
+ const localVarPath = `/v1/integrations/listings`;
249
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
250
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
251
+ let baseOptions;
252
+ if (configuration) {
253
+ baseOptions = configuration.baseOptions;
254
+ }
255
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
256
+ const localVarHeaderParameter = {};
257
+ const localVarQueryParameter = {};
258
+ // authentication session-oauth required
259
+ // oauth required
260
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
261
+ // authentication api-key required
262
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
263
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
266
+ return {
267
+ url: toPathString(localVarUrlObj),
268
+ options: localVarRequestOptions,
269
+ };
270
+ }),
271
+ /**
272
+ * Get a product available for an integration
273
+ * @summary Get integration product
274
+ * @param {number} integration Integrations unique identifier
275
+ * @param {string} product Products unique identifier
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ getIntegrationProduct: (integration_1, product_1, ...args_8) => __awaiter(this, [integration_1, product_1, ...args_8], void 0, function* (integration, product, options = {}) {
280
+ // verify required parameter 'integration' is not null or undefined
281
+ assertParamExists('getIntegrationProduct', 'integration', integration);
282
+ // verify required parameter 'product' is not null or undefined
283
+ assertParamExists('getIntegrationProduct', 'product', product);
284
+ const localVarPath = `/v1/integrations/{integration}/products/{product}`
285
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)))
286
+ .replace(`{${"product"}}`, encodeURIComponent(String(product)));
287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
289
+ let baseOptions;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ }
293
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
294
+ const localVarHeaderParameter = {};
295
+ const localVarQueryParameter = {};
296
+ // authentication session-oauth required
297
+ // oauth required
298
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
299
+ // authentication api-key required
300
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
301
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
302
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
303
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
304
+ return {
305
+ url: toPathString(localVarUrlObj),
306
+ options: localVarRequestOptions,
307
+ };
308
+ }),
309
+ /**
310
+ * List all products available for an integration
311
+ * @summary List integration products
312
+ * @param {number} integration Integrations unique identifier
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ getIntegrationProducts: (integration_2, ...args_9) => __awaiter(this, [integration_2, ...args_9], void 0, function* (integration, options = {}) {
317
+ // verify required parameter 'integration' is not null or undefined
318
+ assertParamExists('getIntegrationProducts', 'integration', integration);
319
+ const localVarPath = `/v1/integrations/{integration}/products`
320
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
323
+ let baseOptions;
324
+ if (configuration) {
325
+ baseOptions = configuration.baseOptions;
326
+ }
327
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
328
+ const localVarHeaderParameter = {};
329
+ const localVarQueryParameter = {};
330
+ // authentication session-oauth required
331
+ // oauth required
332
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
333
+ // authentication api-key required
334
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
335
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
338
+ return {
339
+ url: toPathString(localVarUrlObj),
340
+ options: localVarRequestOptions,
341
+ };
342
+ }),
343
+ /**
344
+ * List all integrations
345
+ * @summary List integrations
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ getIntegrations: (...args_10) => __awaiter(this, [...args_10], void 0, function* (options = {}) {
350
+ const localVarPath = `/v1/integrations`;
351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
353
+ let baseOptions;
354
+ if (configuration) {
355
+ baseOptions = configuration.baseOptions;
356
+ }
357
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
358
+ const localVarHeaderParameter = {};
359
+ const localVarQueryParameter = {};
360
+ // authentication session-oauth required
361
+ // oauth required
362
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
363
+ // authentication api-key required
364
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
365
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
367
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
368
+ return {
369
+ url: toPathString(localVarUrlObj),
370
+ options: localVarRequestOptions,
371
+ };
372
+ }),
373
+ /**
374
+ * List all integration listings
375
+ * @summary List integration listings
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ listAdminIntegrationListings: (...args_11) => __awaiter(this, [...args_11], void 0, function* (options = {}) {
380
+ const localVarPath = `/v1/integrations/admin/listings`;
381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
382
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
383
+ let baseOptions;
384
+ if (configuration) {
385
+ baseOptions = configuration.baseOptions;
386
+ }
387
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
388
+ const localVarHeaderParameter = {};
389
+ const localVarQueryParameter = {};
390
+ // authentication session-oauth required
391
+ // oauth required
392
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
393
+ // authentication api-key required
394
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
395
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
397
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
398
+ return {
399
+ url: toPathString(localVarUrlObj),
400
+ options: localVarRequestOptions,
401
+ };
402
+ }),
403
+ /**
404
+ * Update an integration listing
405
+ * @summary Update integration listing
406
+ * @param {string} listing Integration listing unique identifier
407
+ * @param {UpdateAdminIntegrationListingRequest} updateAdminIntegrationListingRequest Update an integration listing
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ updateAdminIntegrationListing: (listing_4, updateAdminIntegrationListingRequest_1, ...args_12) => __awaiter(this, [listing_4, updateAdminIntegrationListingRequest_1, ...args_12], void 0, function* (listing, updateAdminIntegrationListingRequest, options = {}) {
412
+ // verify required parameter 'listing' is not null or undefined
413
+ assertParamExists('updateAdminIntegrationListing', 'listing', listing);
414
+ // verify required parameter 'updateAdminIntegrationListingRequest' is not null or undefined
415
+ assertParamExists('updateAdminIntegrationListing', 'updateAdminIntegrationListingRequest', updateAdminIntegrationListingRequest);
416
+ const localVarPath = `/v1/integrations/admin/listings/{listing}`
417
+ .replace(`{${"listing"}}`, encodeURIComponent(String(listing)));
418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
420
+ let baseOptions;
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ }
424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
425
+ const localVarHeaderParameter = {};
426
+ const localVarQueryParameter = {};
427
+ // authentication session-oauth required
428
+ // oauth required
429
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
430
+ // authentication api-key required
431
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
432
+ localVarHeaderParameter['Content-Type'] = 'application/json';
433
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
435
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
436
+ localVarRequestOptions.data = serializeDataIfNeeded(updateAdminIntegrationListingRequest, localVarRequestOptions, configuration);
437
+ return {
438
+ url: toPathString(localVarUrlObj),
439
+ options: localVarRequestOptions,
440
+ };
441
+ }),
442
+ };
443
+ };
444
+ /**
445
+ * IntegrationsApi - functional programming interface
446
+ * @export
447
+ */
448
+ export const IntegrationsApiFp = function (configuration) {
449
+ const localVarAxiosParamCreator = IntegrationsApiAxiosParamCreator(configuration);
450
+ return {
451
+ /**
452
+ * Create a new integration listing
453
+ * @summary Create integration listing
454
+ * @param {CreateAdminIntegrationListingRequest} createAdminIntegrationListingRequest Create a new integration listing
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ createAdminIntegrationListing(createAdminIntegrationListingRequest, options) {
459
+ return __awaiter(this, void 0, void 0, function* () {
460
+ var _a, _b, _c;
461
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminIntegrationListing(createAdminIntegrationListingRequest, options);
462
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
463
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.createAdminIntegrationListing']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
464
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
465
+ });
466
+ },
467
+ /**
468
+ * Delete an integration listing
469
+ * @summary Delete integration listing
470
+ * @param {string} listing Integration listing unique identifier
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ deleteAdminIntegrationListing(listing, options) {
475
+ return __awaiter(this, void 0, void 0, function* () {
476
+ var _a, _b, _c;
477
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAdminIntegrationListing(listing, options);
478
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
479
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.deleteAdminIntegrationListing']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
480
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
481
+ });
482
+ },
483
+ /**
484
+ * Retrieves a specific integration listing by its slug.
485
+ * @summary Retrieve integration listing
486
+ * @param {string} listing Integration listing unique identifier
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ getAdminIntegrationListing(listing, options) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ var _a, _b, _c;
493
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAdminIntegrationListing(listing, options);
494
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
495
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getAdminIntegrationListing']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
496
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
497
+ });
498
+ },
499
+ /**
500
+ * List all integration categories
501
+ * @summary List integration categories
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ getIntegrationCategories(options) {
506
+ return __awaiter(this, void 0, void 0, function* () {
507
+ var _a, _b, _c;
508
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrationCategories(options);
509
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
510
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getIntegrationCategories']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
511
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
512
+ });
513
+ },
514
+ /**
515
+ * Get an integration category
516
+ * @summary Get integration category
517
+ * @param {string} category Categories unique identifier
518
+ * @param {*} [options] Override http request option.
519
+ * @throws {RequiredError}
520
+ */
521
+ getIntegrationCategory(category, options) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ var _a, _b, _c;
524
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrationCategory(category, options);
525
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
526
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getIntegrationCategory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
527
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
528
+ });
529
+ },
530
+ /**
531
+ * Get an integration listing
532
+ * @summary Get integration listing
533
+ * @param {string} listing Integration listing unique identifier
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ getIntegrationListing(listing, options) {
538
+ return __awaiter(this, void 0, void 0, function* () {
539
+ var _a, _b, _c;
540
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrationListing(listing, options);
541
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
542
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getIntegrationListing']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
543
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
544
+ });
545
+ },
546
+ /**
547
+ * List all integration listings
548
+ * @summary List integration listings
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ getIntegrationListings(options) {
553
+ return __awaiter(this, void 0, void 0, function* () {
554
+ var _a, _b, _c;
555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrationListings(options);
556
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
557
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getIntegrationListings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
559
+ });
560
+ },
561
+ /**
562
+ * Get a product available for an integration
563
+ * @summary Get integration product
564
+ * @param {number} integration Integrations unique identifier
565
+ * @param {string} product Products unique identifier
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ getIntegrationProduct(integration, product, options) {
570
+ return __awaiter(this, void 0, void 0, function* () {
571
+ var _a, _b, _c;
572
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrationProduct(integration, product, options);
573
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
574
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getIntegrationProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
576
+ });
577
+ },
578
+ /**
579
+ * List all products available for an integration
580
+ * @summary List integration products
581
+ * @param {number} integration Integrations unique identifier
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ getIntegrationProducts(integration, options) {
586
+ return __awaiter(this, void 0, void 0, function* () {
587
+ var _a, _b, _c;
588
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrationProducts(integration, options);
589
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
590
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getIntegrationProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
591
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
592
+ });
593
+ },
594
+ /**
595
+ * List all integrations
596
+ * @summary List integrations
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ getIntegrations(options) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ var _a, _b, _c;
603
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getIntegrations(options);
604
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
605
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.getIntegrations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
606
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
607
+ });
608
+ },
609
+ /**
610
+ * List all integration listings
611
+ * @summary List integration listings
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ listAdminIntegrationListings(options) {
616
+ return __awaiter(this, void 0, void 0, function* () {
617
+ var _a, _b, _c;
618
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAdminIntegrationListings(options);
619
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
620
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.listAdminIntegrationListings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
621
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
622
+ });
623
+ },
624
+ /**
625
+ * Update an integration listing
626
+ * @summary Update integration listing
627
+ * @param {string} listing Integration listing unique identifier
628
+ * @param {UpdateAdminIntegrationListingRequest} updateAdminIntegrationListingRequest Update an integration listing
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ */
632
+ updateAdminIntegrationListing(listing, updateAdminIntegrationListingRequest, options) {
633
+ return __awaiter(this, void 0, void 0, function* () {
634
+ var _a, _b, _c;
635
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAdminIntegrationListing(listing, updateAdminIntegrationListingRequest, options);
636
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
637
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IntegrationsApi.updateAdminIntegrationListing']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
638
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
639
+ });
640
+ },
641
+ };
642
+ };
643
+ /**
644
+ * IntegrationsApi - factory interface
645
+ * @export
646
+ */
647
+ export const IntegrationsApiFactory = function (configuration, basePath, axios) {
648
+ const localVarFp = IntegrationsApiFp(configuration);
649
+ return {
650
+ /**
651
+ * Create a new integration listing
652
+ * @summary Create integration listing
653
+ * @param {IntegrationsApiCreateAdminIntegrationListingRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ createAdminIntegrationListing(requestParameters, options) {
658
+ return localVarFp.createAdminIntegrationListing(requestParameters.createAdminIntegrationListingRequest, options).then((request) => request(axios, basePath));
659
+ },
660
+ /**
661
+ * Delete an integration listing
662
+ * @summary Delete integration listing
663
+ * @param {IntegrationsApiDeleteAdminIntegrationListingRequest} requestParameters Request parameters.
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ deleteAdminIntegrationListing(requestParameters, options) {
668
+ return localVarFp.deleteAdminIntegrationListing(requestParameters.listing, options).then((request) => request(axios, basePath));
669
+ },
670
+ /**
671
+ * Retrieves a specific integration listing by its slug.
672
+ * @summary Retrieve integration listing
673
+ * @param {IntegrationsApiGetAdminIntegrationListingRequest} requestParameters Request parameters.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ getAdminIntegrationListing(requestParameters, options) {
678
+ return localVarFp.getAdminIntegrationListing(requestParameters.listing, options).then((request) => request(axios, basePath));
679
+ },
680
+ /**
681
+ * List all integration categories
682
+ * @summary List integration categories
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ getIntegrationCategories(options) {
687
+ return localVarFp.getIntegrationCategories(options).then((request) => request(axios, basePath));
688
+ },
689
+ /**
690
+ * Get an integration category
691
+ * @summary Get integration category
692
+ * @param {IntegrationsApiGetIntegrationCategoryRequest} requestParameters Request parameters.
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ */
696
+ getIntegrationCategory(requestParameters, options) {
697
+ return localVarFp.getIntegrationCategory(requestParameters.category, options).then((request) => request(axios, basePath));
698
+ },
699
+ /**
700
+ * Get an integration listing
701
+ * @summary Get integration listing
702
+ * @param {IntegrationsApiGetIntegrationListingRequest} requestParameters Request parameters.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ getIntegrationListing(requestParameters, options) {
707
+ return localVarFp.getIntegrationListing(requestParameters.listing, options).then((request) => request(axios, basePath));
708
+ },
709
+ /**
710
+ * List all integration listings
711
+ * @summary List integration listings
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ getIntegrationListings(options) {
716
+ return localVarFp.getIntegrationListings(options).then((request) => request(axios, basePath));
717
+ },
718
+ /**
719
+ * Get a product available for an integration
720
+ * @summary Get integration product
721
+ * @param {IntegrationsApiGetIntegrationProductRequest} requestParameters Request parameters.
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ getIntegrationProduct(requestParameters, options) {
726
+ return localVarFp.getIntegrationProduct(requestParameters.integration, requestParameters.product, options).then((request) => request(axios, basePath));
727
+ },
728
+ /**
729
+ * List all products available for an integration
730
+ * @summary List integration products
731
+ * @param {IntegrationsApiGetIntegrationProductsRequest} requestParameters Request parameters.
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ getIntegrationProducts(requestParameters, options) {
736
+ return localVarFp.getIntegrationProducts(requestParameters.integration, options).then((request) => request(axios, basePath));
737
+ },
738
+ /**
739
+ * List all integrations
740
+ * @summary List integrations
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ */
744
+ getIntegrations(options) {
745
+ return localVarFp.getIntegrations(options).then((request) => request(axios, basePath));
746
+ },
747
+ /**
748
+ * List all integration listings
749
+ * @summary List integration listings
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ listAdminIntegrationListings(options) {
754
+ return localVarFp.listAdminIntegrationListings(options).then((request) => request(axios, basePath));
755
+ },
756
+ /**
757
+ * Update an integration listing
758
+ * @summary Update integration listing
759
+ * @param {IntegrationsApiUpdateAdminIntegrationListingRequest} requestParameters Request parameters.
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ updateAdminIntegrationListing(requestParameters, options) {
764
+ return localVarFp.updateAdminIntegrationListing(requestParameters.listing, requestParameters.updateAdminIntegrationListingRequest, options).then((request) => request(axios, basePath));
765
+ },
766
+ };
767
+ };
768
+ /**
769
+ * IntegrationsApi - object-oriented interface
770
+ * @export
771
+ * @class IntegrationsApi
772
+ * @extends {BaseAPI}
773
+ */
774
+ export class IntegrationsApi extends BaseAPI {
775
+ /**
776
+ * Create a new integration listing
777
+ * @summary Create integration listing
778
+ * @param {IntegrationsApiCreateAdminIntegrationListingRequest} requestParameters Request parameters.
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ * @memberof IntegrationsApi
782
+ */
783
+ createAdminIntegrationListing(requestParameters, options) {
784
+ return IntegrationsApiFp(this.configuration).createAdminIntegrationListing(requestParameters.createAdminIntegrationListingRequest, options).then((request) => request(this.axios, this.basePath));
785
+ }
786
+ /**
787
+ * Delete an integration listing
788
+ * @summary Delete integration listing
789
+ * @param {IntegrationsApiDeleteAdminIntegrationListingRequest} requestParameters Request parameters.
790
+ * @param {*} [options] Override http request option.
791
+ * @throws {RequiredError}
792
+ * @memberof IntegrationsApi
793
+ */
794
+ deleteAdminIntegrationListing(requestParameters, options) {
795
+ return IntegrationsApiFp(this.configuration).deleteAdminIntegrationListing(requestParameters.listing, options).then((request) => request(this.axios, this.basePath));
796
+ }
797
+ /**
798
+ * Retrieves a specific integration listing by its slug.
799
+ * @summary Retrieve integration listing
800
+ * @param {IntegrationsApiGetAdminIntegrationListingRequest} requestParameters Request parameters.
801
+ * @param {*} [options] Override http request option.
802
+ * @throws {RequiredError}
803
+ * @memberof IntegrationsApi
804
+ */
805
+ getAdminIntegrationListing(requestParameters, options) {
806
+ return IntegrationsApiFp(this.configuration).getAdminIntegrationListing(requestParameters.listing, options).then((request) => request(this.axios, this.basePath));
807
+ }
808
+ /**
809
+ * List all integration categories
810
+ * @summary List integration categories
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ * @memberof IntegrationsApi
814
+ */
815
+ getIntegrationCategories(options) {
816
+ return IntegrationsApiFp(this.configuration).getIntegrationCategories(options).then((request) => request(this.axios, this.basePath));
817
+ }
818
+ /**
819
+ * Get an integration category
820
+ * @summary Get integration category
821
+ * @param {IntegrationsApiGetIntegrationCategoryRequest} requestParameters Request parameters.
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ * @memberof IntegrationsApi
825
+ */
826
+ getIntegrationCategory(requestParameters, options) {
827
+ return IntegrationsApiFp(this.configuration).getIntegrationCategory(requestParameters.category, options).then((request) => request(this.axios, this.basePath));
828
+ }
829
+ /**
830
+ * Get an integration listing
831
+ * @summary Get integration listing
832
+ * @param {IntegrationsApiGetIntegrationListingRequest} requestParameters Request parameters.
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ * @memberof IntegrationsApi
836
+ */
837
+ getIntegrationListing(requestParameters, options) {
838
+ return IntegrationsApiFp(this.configuration).getIntegrationListing(requestParameters.listing, options).then((request) => request(this.axios, this.basePath));
839
+ }
840
+ /**
841
+ * List all integration listings
842
+ * @summary List integration listings
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ * @memberof IntegrationsApi
846
+ */
847
+ getIntegrationListings(options) {
848
+ return IntegrationsApiFp(this.configuration).getIntegrationListings(options).then((request) => request(this.axios, this.basePath));
849
+ }
850
+ /**
851
+ * Get a product available for an integration
852
+ * @summary Get integration product
853
+ * @param {IntegrationsApiGetIntegrationProductRequest} requestParameters Request parameters.
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ * @memberof IntegrationsApi
857
+ */
858
+ getIntegrationProduct(requestParameters, options) {
859
+ return IntegrationsApiFp(this.configuration).getIntegrationProduct(requestParameters.integration, requestParameters.product, options).then((request) => request(this.axios, this.basePath));
860
+ }
861
+ /**
862
+ * List all products available for an integration
863
+ * @summary List integration products
864
+ * @param {IntegrationsApiGetIntegrationProductsRequest} requestParameters Request parameters.
865
+ * @param {*} [options] Override http request option.
866
+ * @throws {RequiredError}
867
+ * @memberof IntegrationsApi
868
+ */
869
+ getIntegrationProducts(requestParameters, options) {
870
+ return IntegrationsApiFp(this.configuration).getIntegrationProducts(requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
871
+ }
872
+ /**
873
+ * List all integrations
874
+ * @summary List integrations
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ * @memberof IntegrationsApi
878
+ */
879
+ getIntegrations(options) {
880
+ return IntegrationsApiFp(this.configuration).getIntegrations(options).then((request) => request(this.axios, this.basePath));
881
+ }
882
+ /**
883
+ * List all integration listings
884
+ * @summary List integration listings
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ * @memberof IntegrationsApi
888
+ */
889
+ listAdminIntegrationListings(options) {
890
+ return IntegrationsApiFp(this.configuration).listAdminIntegrationListings(options).then((request) => request(this.axios, this.basePath));
891
+ }
892
+ /**
893
+ * Update an integration listing
894
+ * @summary Update integration listing
895
+ * @param {IntegrationsApiUpdateAdminIntegrationListingRequest} requestParameters Request parameters.
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ * @memberof IntegrationsApi
899
+ */
900
+ updateAdminIntegrationListing(requestParameters, options) {
901
+ return IntegrationsApiFp(this.configuration).updateAdminIntegrationListing(requestParameters.listing, requestParameters.updateAdminIntegrationListingRequest, options).then((request) => request(this.axios, this.basePath));
902
+ }
903
+ }