@teemill/integrations 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +5 -3
  2. package/README.md +2 -2
  3. package/dist/apis/IntegrationsApi.d.ts +43 -20
  4. package/dist/apis/IntegrationsApi.js +165 -48
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +1 -1
  7. package/dist/models/CategoriesResponse.d.ts +32 -0
  8. package/dist/models/CategoriesResponse.js +51 -0
  9. package/dist/models/Integration.d.ts +1 -1
  10. package/dist/models/Integration.js +1 -1
  11. package/dist/models/IntegrationCategory.d.ts +52 -0
  12. package/dist/models/IntegrationCategory.js +64 -0
  13. package/dist/models/IntegrationInfo.d.ts +1 -1
  14. package/dist/models/IntegrationInfo.js +1 -1
  15. package/dist/models/IntegrationListing.d.ts +81 -0
  16. package/dist/models/IntegrationListing.js +75 -0
  17. package/dist/models/IntegrationListingGradient.d.ts +37 -0
  18. package/dist/models/IntegrationListingGradient.js +52 -0
  19. package/dist/models/IntegrationListingsResponse.d.ts +32 -0
  20. package/dist/models/IntegrationListingsResponse.js +51 -0
  21. package/dist/models/IntegrationProduct.d.ts +1 -7
  22. package/dist/models/IntegrationProduct.js +1 -4
  23. package/dist/models/IntegrationProductsResponse.d.ts +1 -1
  24. package/dist/models/IntegrationProductsResponse.js +1 -1
  25. package/dist/models/IntegrationsResponse.d.ts +1 -1
  26. package/dist/models/IntegrationsResponse.js +1 -1
  27. package/dist/models/index.d.ts +5 -3
  28. package/dist/models/index.js +5 -3
  29. package/dist/runtime.d.ts +1 -1
  30. package/dist/runtime.js +1 -1
  31. package/package.json +1 -1
  32. package/src/apis/IntegrationsApi.ts +167 -66
  33. package/src/models/ApiError.ts +1 -1
  34. package/src/models/CategoriesResponse.ts +73 -0
  35. package/src/models/Integration.ts +1 -1
  36. package/src/models/IntegrationCategory.ts +96 -0
  37. package/src/models/IntegrationInfo.ts +1 -1
  38. package/src/models/IntegrationListing.ts +149 -0
  39. package/src/models/IntegrationListingGradient.ts +73 -0
  40. package/src/models/IntegrationListingsResponse.ts +72 -0
  41. package/src/models/IntegrationProduct.ts +1 -10
  42. package/src/models/IntegrationProductsResponse.ts +1 -1
  43. package/src/models/IntegrationsResponse.ts +1 -1
  44. package/src/models/index.ts +5 -3
  45. package/src/runtime.ts +1 -1
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.6.0
7
+ * The version of the OpenAPI document: 0.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,26 +16,33 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiError,
19
- Integration,
19
+ CategoriesResponse,
20
+ IntegrationListing,
21
+ IntegrationListingsResponse,
20
22
  IntegrationProduct,
21
23
  IntegrationProductsResponse,
22
- IntegrationsResponse,
23
24
  } from '../models/index';
24
25
  import {
25
26
  ApiErrorFromJSON,
26
27
  ApiErrorToJSON,
27
- IntegrationFromJSON,
28
- IntegrationToJSON,
28
+ CategoriesResponseFromJSON,
29
+ CategoriesResponseToJSON,
30
+ IntegrationListingFromJSON,
31
+ IntegrationListingToJSON,
32
+ IntegrationListingsResponseFromJSON,
33
+ IntegrationListingsResponseToJSON,
29
34
  IntegrationProductFromJSON,
30
35
  IntegrationProductToJSON,
31
36
  IntegrationProductsResponseFromJSON,
32
37
  IntegrationProductsResponseToJSON,
33
- IntegrationsResponseFromJSON,
34
- IntegrationsResponseToJSON,
35
38
  } from '../models/index';
36
39
 
37
- export interface GetIntegrationRequest {
38
- integration: number;
40
+ export interface GetIntegrationCategoryRequest {
41
+ category: string;
42
+ }
43
+
44
+ export interface GetIntegrationListingRequest {
45
+ listing: number;
39
46
  }
40
47
 
41
48
  export interface GetIntegrationProductRequest {
@@ -53,12 +60,56 @@ export interface GetIntegrationProductsRequest {
53
60
  export class IntegrationsApi extends runtime.BaseAPI {
54
61
 
55
62
  /**
56
- * Get an integration
57
- * Get integration
63
+ * List all integration categories
64
+ * List integration categories
58
65
  */
59
- async getIntegrationRaw(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>> {
60
- if (requestParameters.integration === null || requestParameters.integration === undefined) {
61
- throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegration.');
66
+ async getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoriesResponse>> {
67
+ const queryParameters: any = {};
68
+
69
+ const headerParameters: runtime.HTTPHeaders = {};
70
+
71
+ if (this.configuration && this.configuration.accessToken) {
72
+ // oauth required
73
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
74
+ }
75
+
76
+ if (this.configuration && this.configuration.apiKey) {
77
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
78
+ }
79
+
80
+ const response = await this.request({
81
+ path: `/v1/integrations/categories`,
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ }, initOverrides);
86
+
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => CategoriesResponseFromJSON(jsonValue));
88
+ }
89
+
90
+ /**
91
+ * List all integration categories
92
+ * List integration categories
93
+ */
94
+ async getIntegrationCategories(
95
+
96
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
97
+ ): Promise<CategoriesResponse> {
98
+ const response = await this.getIntegrationCategoriesRaw(
99
+
100
+ initOverrides
101
+ );
102
+
103
+ return await response.value();
104
+ }
105
+
106
+ /**
107
+ * Get an integration category
108
+ * Get integration category
109
+ */
110
+ async getIntegrationCategoryRaw(requestParameters: GetIntegrationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>> {
111
+ if (requestParameters.category === null || requestParameters.category === undefined) {
112
+ throw new runtime.RequiredError('category','Required parameter requestParameters.category was null or undefined when calling getIntegrationCategory.');
62
113
  }
63
114
 
64
115
  const queryParameters: any = {};
@@ -75,26 +126,26 @@ export class IntegrationsApi extends runtime.BaseAPI {
75
126
  }
76
127
 
77
128
  const response = await this.request({
78
- path: `/v1/integrations/{integration}`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
129
+ path: `/v1/integrations/categories/{category}`.replace(`{${"category"}}`, encodeURIComponent(String(requestParameters.category))),
79
130
  method: 'GET',
80
131
  headers: headerParameters,
81
132
  query: queryParameters,
82
133
  }, initOverrides);
83
134
 
84
- return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationFromJSON(jsonValue));
135
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
85
136
  }
86
137
 
87
138
  /**
88
- * Get an integration
89
- * Get integration
139
+ * Get an integration category
140
+ * Get integration category
90
141
  */
91
- async getIntegration(
92
- integration: number,
142
+ async getIntegrationCategory(
143
+ category: string,
93
144
  initOverrides?: RequestInit | runtime.InitOverrideFunction
94
- ): Promise<Integration> {
95
- const response = await this.getIntegrationRaw(
145
+ ): Promise<IntegrationListingsResponse> {
146
+ const response = await this.getIntegrationCategoryRaw(
96
147
  {
97
- integration: integration,
148
+ category: category,
98
149
  },
99
150
  initOverrides
100
151
  );
@@ -103,16 +154,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
103
154
  }
104
155
 
105
156
  /**
106
- * Get a product available for an integration
107
- * Get integration product
157
+ * Get an integration listing
158
+ * Get integration listing
108
159
  */
109
- async getIntegrationProductRaw(requestParameters: GetIntegrationProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProduct>> {
110
- if (requestParameters.integration === null || requestParameters.integration === undefined) {
111
- throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegrationProduct.');
112
- }
113
-
114
- if (requestParameters.product === null || requestParameters.product === undefined) {
115
- throw new runtime.RequiredError('product','Required parameter requestParameters.product was null or undefined when calling getIntegrationProduct.');
160
+ async getIntegrationListingRaw(requestParameters: GetIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
161
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
162
+ throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling getIntegrationListing.');
116
163
  }
117
164
 
118
165
  const queryParameters: any = {};
@@ -129,26 +176,26 @@ export class IntegrationsApi extends runtime.BaseAPI {
129
176
  }
130
177
 
131
178
  const response = await this.request({
132
- path: `/v1/integrations/{integration}/products/{product}`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))).replace(`{${"product"}}`, encodeURIComponent(String(requestParameters.product))),
179
+ path: `/v1/integrations/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
133
180
  method: 'GET',
134
181
  headers: headerParameters,
135
182
  query: queryParameters,
136
183
  }, initOverrides);
137
184
 
138
- return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductFromJSON(jsonValue));
185
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
139
186
  }
140
187
 
141
188
  /**
142
- * Get a product available for an integration
143
- * Get integration product
189
+ * Get an integration listing
190
+ * Get integration listing
144
191
  */
145
- async getIntegrationProduct(
146
- integration: number, product: string,
192
+ async getIntegrationListing(
193
+ listing: number,
147
194
  initOverrides?: RequestInit | runtime.InitOverrideFunction
148
- ): Promise<IntegrationProduct> {
149
- const response = await this.getIntegrationProductRaw(
195
+ ): Promise<IntegrationListing> {
196
+ const response = await this.getIntegrationListingRaw(
150
197
  {
151
- integration: integration,product: product,
198
+ listing: listing,
152
199
  },
153
200
  initOverrides
154
201
  );
@@ -157,12 +204,60 @@ export class IntegrationsApi extends runtime.BaseAPI {
157
204
  }
158
205
 
159
206
  /**
160
- * List all products available for an integration
161
- * List integration products
207
+ * List all integration listings
208
+ * List integration listings
162
209
  */
163
- async getIntegrationProductsRaw(requestParameters: GetIntegrationProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProductsResponse>> {
210
+ async getIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>> {
211
+ const queryParameters: any = {};
212
+
213
+ const headerParameters: runtime.HTTPHeaders = {};
214
+
215
+ if (this.configuration && this.configuration.accessToken) {
216
+ // oauth required
217
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
218
+ }
219
+
220
+ if (this.configuration && this.configuration.apiKey) {
221
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
222
+ }
223
+
224
+ const response = await this.request({
225
+ path: `/v1/integrations/listings`,
226
+ method: 'GET',
227
+ headers: headerParameters,
228
+ query: queryParameters,
229
+ }, initOverrides);
230
+
231
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
232
+ }
233
+
234
+ /**
235
+ * List all integration listings
236
+ * List integration listings
237
+ */
238
+ async getIntegrationListings(
239
+
240
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
241
+ ): Promise<IntegrationListingsResponse> {
242
+ const response = await this.getIntegrationListingsRaw(
243
+
244
+ initOverrides
245
+ );
246
+
247
+ return await response.value();
248
+ }
249
+
250
+ /**
251
+ * Get a product available for an integration
252
+ * Get integration product
253
+ */
254
+ async getIntegrationProductRaw(requestParameters: GetIntegrationProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProduct>> {
164
255
  if (requestParameters.integration === null || requestParameters.integration === undefined) {
165
- throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegrationProducts.');
256
+ throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegrationProduct.');
257
+ }
258
+
259
+ if (requestParameters.product === null || requestParameters.product === undefined) {
260
+ throw new runtime.RequiredError('product','Required parameter requestParameters.product was null or undefined when calling getIntegrationProduct.');
166
261
  }
167
262
 
168
263
  const queryParameters: any = {};
@@ -179,26 +274,26 @@ export class IntegrationsApi extends runtime.BaseAPI {
179
274
  }
180
275
 
181
276
  const response = await this.request({
182
- path: `/v1/integrations/{integration}/products`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
277
+ path: `/v1/integrations/{integration}/products/{product}`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))).replace(`{${"product"}}`, encodeURIComponent(String(requestParameters.product))),
183
278
  method: 'GET',
184
279
  headers: headerParameters,
185
280
  query: queryParameters,
186
281
  }, initOverrides);
187
282
 
188
- return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductsResponseFromJSON(jsonValue));
283
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductFromJSON(jsonValue));
189
284
  }
190
285
 
191
286
  /**
192
- * List all products available for an integration
193
- * List integration products
287
+ * Get a product available for an integration
288
+ * Get integration product
194
289
  */
195
- async getIntegrationProducts(
196
- integration: number,
290
+ async getIntegrationProduct(
291
+ integration: number, product: string,
197
292
  initOverrides?: RequestInit | runtime.InitOverrideFunction
198
- ): Promise<IntegrationProductsResponse> {
199
- const response = await this.getIntegrationProductsRaw(
293
+ ): Promise<IntegrationProduct> {
294
+ const response = await this.getIntegrationProductRaw(
200
295
  {
201
- integration: integration,
296
+ integration: integration,product: product,
202
297
  },
203
298
  initOverrides
204
299
  );
@@ -207,10 +302,14 @@ export class IntegrationsApi extends runtime.BaseAPI {
207
302
  }
208
303
 
209
304
  /**
210
- * List all integrations available
211
- * List integrations
305
+ * List all products available for an integration
306
+ * List integration products
212
307
  */
213
- async getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
308
+ async getIntegrationProductsRaw(requestParameters: GetIntegrationProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProductsResponse>> {
309
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
310
+ throw new runtime.RequiredError('integration','Required parameter requestParameters.integration was null or undefined when calling getIntegrationProducts.');
311
+ }
312
+
214
313
  const queryParameters: any = {};
215
314
 
216
315
  const headerParameters: runtime.HTTPHeaders = {};
@@ -225,25 +324,27 @@ export class IntegrationsApi extends runtime.BaseAPI {
225
324
  }
226
325
 
227
326
  const response = await this.request({
228
- path: `/v1/integrations`,
327
+ path: `/v1/integrations/{integration}/products`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
229
328
  method: 'GET',
230
329
  headers: headerParameters,
231
330
  query: queryParameters,
232
331
  }, initOverrides);
233
332
 
234
- return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
333
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductsResponseFromJSON(jsonValue));
235
334
  }
236
335
 
237
336
  /**
238
- * List all integrations available
239
- * List integrations
337
+ * List all products available for an integration
338
+ * List integration products
240
339
  */
241
- async getIntegrations(
242
-
340
+ async getIntegrationProducts(
341
+ integration: number,
243
342
  initOverrides?: RequestInit | runtime.InitOverrideFunction
244
- ): Promise<IntegrationsResponse> {
245
- const response = await this.getIntegrationsRaw(
246
-
343
+ ): Promise<IntegrationProductsResponse> {
344
+ const response = await this.getIntegrationProductsRaw(
345
+ {
346
+ integration: integration,
347
+ },
247
348
  initOverrides
248
349
  );
249
350
 
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.6.0
7
+ * The version of the OpenAPI document: 0.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,73 @@
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.8.0
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { IntegrationCategory } from './IntegrationCategory';
17
+ import {
18
+ IntegrationCategoryFromJSON,
19
+ IntegrationCategoryFromJSONTyped,
20
+ IntegrationCategoryToJSON,
21
+ } from './IntegrationCategory';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface CategoriesResponse
27
+ */
28
+ export interface CategoriesResponse {
29
+ /**
30
+ *
31
+ * @type {Array<IntegrationCategory>}
32
+ * @memberof CategoriesResponse
33
+ */
34
+ categories: Array<IntegrationCategory>;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the CategoriesResponse interface.
39
+ */
40
+ export function instanceOfCategoriesResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "categories" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function CategoriesResponseFromJSON(json: any): CategoriesResponse {
48
+ return CategoriesResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function CategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'categories': ((json['categories'] as Array<any>).map(IntegrationCategoryFromJSON)),
58
+ };
59
+ }
60
+
61
+ export function CategoriesResponseToJSON(value?: CategoriesResponse | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'categories': ((value.categories as Array<any>).map(IntegrationCategoryToJSON)),
71
+ };
72
+ }
73
+
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.6.0
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,96 @@
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.8.0
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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface IntegrationCategory
20
+ */
21
+ export interface IntegrationCategory {
22
+ /**
23
+ * The name of the category
24
+ * @type {string}
25
+ * @memberof IntegrationCategory
26
+ */
27
+ name: string;
28
+ /**
29
+ * The slug of the category that is used in the URL
30
+ * @type {string}
31
+ * @memberof IntegrationCategory
32
+ */
33
+ slug: string;
34
+ /**
35
+ * The type of category, used to determine how it is displayed
36
+ * @type {string}
37
+ * @memberof IntegrationCategory
38
+ */
39
+ type: IntegrationCategoryTypeEnum;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const IntegrationCategoryTypeEnum = {
47
+ Featured: 'featured',
48
+ Grid: 'grid',
49
+ Column: 'column'
50
+ } as const;
51
+ export type IntegrationCategoryTypeEnum = typeof IntegrationCategoryTypeEnum[keyof typeof IntegrationCategoryTypeEnum];
52
+
53
+
54
+ /**
55
+ * Check if a given object implements the IntegrationCategory interface.
56
+ */
57
+ export function instanceOfIntegrationCategory(value: object): boolean {
58
+ let isInstance = true;
59
+ isInstance = isInstance && "name" in value;
60
+ isInstance = isInstance && "slug" in value;
61
+ isInstance = isInstance && "type" in value;
62
+
63
+ return isInstance;
64
+ }
65
+
66
+ export function IntegrationCategoryFromJSON(json: any): IntegrationCategory {
67
+ return IntegrationCategoryFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function IntegrationCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategory {
71
+ if ((json === undefined) || (json === null)) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'name': json['name'],
77
+ 'slug': json['slug'],
78
+ 'type': json['type'],
79
+ };
80
+ }
81
+
82
+ export function IntegrationCategoryToJSON(value?: IntegrationCategory | null): any {
83
+ if (value === undefined) {
84
+ return undefined;
85
+ }
86
+ if (value === null) {
87
+ return null;
88
+ }
89
+ return {
90
+
91
+ 'name': value.name,
92
+ 'slug': value.slug,
93
+ 'type': value.type,
94
+ };
95
+ }
96
+
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.6.0
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).