@teemill/integrations 0.8.4 → 0.9.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 (68) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/apis/IntegrationsApi.d.ts +12 -2
  4. package/dist/apis/IntegrationsApi.js +35 -1
  5. package/dist/esm/apis/IntegrationsApi.d.ts +12 -2
  6. package/dist/esm/apis/IntegrationsApi.js +36 -2
  7. package/dist/esm/models/ApiError.d.ts +1 -1
  8. package/dist/esm/models/ApiError.js +1 -1
  9. package/dist/esm/models/Integration.d.ts +9 -26
  10. package/dist/esm/models/Integration.js +10 -26
  11. package/dist/esm/models/IntegrationCategoriesResponse.d.ts +1 -1
  12. package/dist/esm/models/IntegrationCategoriesResponse.js +1 -1
  13. package/dist/esm/models/IntegrationCategory.d.ts +1 -1
  14. package/dist/esm/models/IntegrationCategory.js +1 -1
  15. package/dist/esm/models/IntegrationListing.d.ts +1 -1
  16. package/dist/esm/models/IntegrationListing.js +1 -1
  17. package/dist/esm/models/IntegrationListingGradient.d.ts +1 -1
  18. package/dist/esm/models/IntegrationListingGradient.js +1 -1
  19. package/dist/esm/models/IntegrationListingsResponse.d.ts +1 -1
  20. package/dist/esm/models/IntegrationListingsResponse.js +1 -1
  21. package/dist/esm/models/IntegrationProduct.d.ts +1 -1
  22. package/dist/esm/models/IntegrationProduct.js +1 -1
  23. package/dist/esm/models/IntegrationProductsResponse.d.ts +1 -1
  24. package/dist/esm/models/IntegrationProductsResponse.js +1 -1
  25. package/dist/esm/models/IntegrationsResponse.d.ts +1 -1
  26. package/dist/esm/models/IntegrationsResponse.js +8 -11
  27. package/dist/esm/models/index.d.ts +2 -0
  28. package/dist/esm/models/index.js +2 -0
  29. package/dist/esm/runtime.d.ts +1 -1
  30. package/dist/esm/runtime.js +1 -1
  31. package/dist/models/ApiError.d.ts +1 -1
  32. package/dist/models/ApiError.js +1 -1
  33. package/dist/models/Integration.d.ts +9 -26
  34. package/dist/models/Integration.js +10 -26
  35. package/dist/models/IntegrationCategoriesResponse.d.ts +1 -1
  36. package/dist/models/IntegrationCategoriesResponse.js +1 -1
  37. package/dist/models/IntegrationCategory.d.ts +1 -1
  38. package/dist/models/IntegrationCategory.js +1 -1
  39. package/dist/models/IntegrationListing.d.ts +1 -1
  40. package/dist/models/IntegrationListing.js +1 -1
  41. package/dist/models/IntegrationListingGradient.d.ts +1 -1
  42. package/dist/models/IntegrationListingGradient.js +1 -1
  43. package/dist/models/IntegrationListingsResponse.d.ts +1 -1
  44. package/dist/models/IntegrationListingsResponse.js +1 -1
  45. package/dist/models/IntegrationProduct.d.ts +1 -1
  46. package/dist/models/IntegrationProduct.js +1 -1
  47. package/dist/models/IntegrationProductsResponse.d.ts +1 -1
  48. package/dist/models/IntegrationProductsResponse.js +1 -1
  49. package/dist/models/IntegrationsResponse.d.ts +1 -1
  50. package/dist/models/IntegrationsResponse.js +8 -11
  51. package/dist/models/index.d.ts +2 -0
  52. package/dist/models/index.js +2 -0
  53. package/dist/runtime.d.ts +1 -1
  54. package/dist/runtime.js +1 -1
  55. package/package.json +1 -1
  56. package/src/apis/IntegrationsApi.ts +48 -1
  57. package/src/models/ApiError.ts +1 -1
  58. package/src/models/Integration.ts +17 -57
  59. package/src/models/IntegrationCategoriesResponse.ts +1 -1
  60. package/src/models/IntegrationCategory.ts +1 -1
  61. package/src/models/IntegrationListing.ts +1 -1
  62. package/src/models/IntegrationListingGradient.ts +1 -1
  63. package/src/models/IntegrationListingsResponse.ts +1 -1
  64. package/src/models/IntegrationProduct.ts +1 -1
  65. package/src/models/IntegrationProductsResponse.ts +1 -1
  66. package/src/models/IntegrationsResponse.ts +8 -13
  67. package/src/models/index.ts +2 -0
  68. package/src/runtime.ts +1 -1
@@ -2,14 +2,13 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.7.0
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { IntegrationInfo } from './IntegrationInfo';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -23,35 +22,19 @@ export interface Integration {
23
22
  */
24
23
  readonly id?: number;
25
24
  /**
26
- *
27
- * @type {string}
28
- * @memberof Integration
29
- */
30
- name: string;
31
- /**
32
- *
25
+ * The code of the integration
33
26
  * @type {string}
34
27
  * @memberof Integration
35
28
  */
36
- code: string;
29
+ code?: string;
37
30
  /**
38
- *
39
- * @type {object}
40
- * @memberof Integration
41
- */
42
- config: object;
43
- /**
44
- *
45
- * @type {IntegrationInfo}
46
- * @memberof Integration
47
- */
48
- info: IntegrationInfo;
49
- /**
50
- *
51
- * @type {Array<string>}
31
+ * The configuration of the integration
32
+ * @type {{ [key: string]: string; }}
52
33
  * @memberof Integration
53
34
  */
54
- dependencies?: Array<string>;
35
+ config?: {
36
+ [key: string]: string;
37
+ };
55
38
  }
56
39
  /**
57
40
  * Check if a given object implements the Integration interface.
@@ -59,4 +42,4 @@ export interface Integration {
59
42
  export declare function instanceOfIntegration(value: object): boolean;
60
43
  export declare function IntegrationFromJSON(json: any): Integration;
61
44
  export declare function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration;
62
- export declare function IntegrationToJSON(value?: Integration | null): any;
45
+ export declare function IntegrationToJSON(value?: Omit<Integration, 'id'> | null): any;
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.7.0
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,18 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.IntegrationToJSON = exports.IntegrationFromJSONTyped = exports.IntegrationFromJSON = exports.instanceOfIntegration = void 0;
17
- const runtime_1 = require("../runtime");
18
- const IntegrationInfo_1 = require("./IntegrationInfo");
19
17
  /**
20
18
  * Check if a given object implements the Integration interface.
21
19
  */
22
20
  function instanceOfIntegration(value) {
23
- let isInstance = true;
24
- isInstance = isInstance && "name" in value;
25
- isInstance = isInstance && "code" in value;
26
- isInstance = isInstance && "config" in value;
27
- isInstance = isInstance && "info" in value;
28
- return isInstance;
21
+ return true;
29
22
  }
30
23
  exports.instanceOfIntegration = instanceOfIntegration;
31
24
  function IntegrationFromJSON(json) {
@@ -33,32 +26,23 @@ function IntegrationFromJSON(json) {
33
26
  }
34
27
  exports.IntegrationFromJSON = IntegrationFromJSON;
35
28
  function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
36
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
37
30
  return json;
38
31
  }
39
32
  return {
40
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
41
- 'name': json['name'],
42
- 'code': json['code'],
43
- 'config': json['config'],
44
- 'info': (0, IntegrationInfo_1.IntegrationInfoFromJSON)(json['info']),
45
- 'dependencies': !(0, runtime_1.exists)(json, 'dependencies') ? undefined : json['dependencies'],
33
+ 'id': json['id'] == null ? undefined : json['id'],
34
+ 'code': json['code'] == null ? undefined : json['code'],
35
+ 'config': json['config'] == null ? undefined : json['config'],
46
36
  };
47
37
  }
48
38
  exports.IntegrationFromJSONTyped = IntegrationFromJSONTyped;
49
39
  function IntegrationToJSON(value) {
50
- if (value === undefined) {
51
- return undefined;
52
- }
53
- if (value === null) {
54
- return null;
40
+ if (value == null) {
41
+ return value;
55
42
  }
56
43
  return {
57
- 'name': value.name,
58
- 'code': value.code,
59
- 'config': value.config,
60
- 'info': (0, IntegrationInfo_1.IntegrationInfoToJSON)(value.info),
61
- 'dependencies': value.dependencies,
44
+ 'code': value['code'],
45
+ 'config': value['config'],
62
46
  };
63
47
  }
64
48
  exports.IntegrationToJSON = IntegrationToJSON;
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.7.0
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.7.0
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ const Integration_1 = require("./Integration");
19
19
  * Check if a given object implements the IntegrationsResponse interface.
20
20
  */
21
21
  function instanceOfIntegrationsResponse(value) {
22
- let isInstance = true;
23
- isInstance = isInstance && "integrations" in value;
24
- return isInstance;
22
+ if (!('integrations' in value))
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfIntegrationsResponse = instanceOfIntegrationsResponse;
27
27
  function IntegrationsResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function IntegrationsResponseFromJSON(json) {
29
29
  }
30
30
  exports.IntegrationsResponseFromJSON = IntegrationsResponseFromJSON;
31
31
  function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.IntegrationsResponseFromJSONTyped = IntegrationsResponseFromJSONTyped;
40
40
  function IntegrationsResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'integrations': (value.integrations.map(Integration_1.IntegrationToJSON)),
45
+ 'integrations': (value['integrations'].map(Integration_1.IntegrationToJSON)),
49
46
  };
50
47
  }
51
48
  exports.IntegrationsResponseToJSON = IntegrationsResponseToJSON;
@@ -1,4 +1,5 @@
1
1
  export * from './ApiError';
2
+ export * from './Integration';
2
3
  export * from './IntegrationCategoriesResponse';
3
4
  export * from './IntegrationCategory';
4
5
  export * from './IntegrationListing';
@@ -6,3 +7,4 @@ export * from './IntegrationListingGradient';
6
7
  export * from './IntegrationListingsResponse';
7
8
  export * from './IntegrationProduct';
8
9
  export * from './IntegrationProductsResponse';
10
+ export * from './IntegrationsResponse';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./ApiError"), exports);
20
+ __exportStar(require("./Integration"), exports);
20
21
  __exportStar(require("./IntegrationCategoriesResponse"), exports);
21
22
  __exportStar(require("./IntegrationCategory"), exports);
22
23
  __exportStar(require("./IntegrationListing"), exports);
@@ -24,3 +25,4 @@ __exportStar(require("./IntegrationListingGradient"), exports);
24
25
  __exportStar(require("./IntegrationListingsResponse"), exports);
25
26
  __exportStar(require("./IntegrationProduct"), exports);
26
27
  __exportStar(require("./IntegrationProductsResponse"), exports);
28
+ __exportStar(require("./IntegrationsResponse"), exports);
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.4
5
+ * The version of the OpenAPI document: 0.9.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Integrations API
6
6
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.8.4
8
+ * The version of the OpenAPI document: 0.9.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/integrations",
3
- "version": "0.8.4",
3
+ "version": "0.9.0",
4
4
  "description": "OpenAPI client for @teemill/integrations",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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.8.4
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,6 +21,7 @@ import type {
21
21
  IntegrationListingsResponse,
22
22
  IntegrationProduct,
23
23
  IntegrationProductsResponse,
24
+ IntegrationsResponse,
24
25
  } from '../models/index';
25
26
  import {
26
27
  ApiErrorFromJSON,
@@ -35,6 +36,8 @@ import {
35
36
  IntegrationProductToJSON,
36
37
  IntegrationProductsResponseFromJSON,
37
38
  IntegrationProductsResponseToJSON,
39
+ IntegrationsResponseFromJSON,
40
+ IntegrationsResponseToJSON,
38
41
  } from '../models/index';
39
42
 
40
43
  export interface GetIntegrationCategoryRequest {
@@ -351,4 +354,48 @@ export class IntegrationsApi extends runtime.BaseAPI {
351
354
  return await response.value();
352
355
  }
353
356
 
357
+ /**
358
+ * List all integrations
359
+ * List integrations
360
+ */
361
+ async getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
362
+ const queryParameters: any = {};
363
+
364
+ const headerParameters: runtime.HTTPHeaders = {};
365
+
366
+ if (this.configuration && this.configuration.accessToken) {
367
+ // oauth required
368
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
369
+ }
370
+
371
+ if (this.configuration && this.configuration.apiKey) {
372
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
373
+ }
374
+
375
+ const response = await this.request({
376
+ path: `/v1/integrations`,
377
+ method: 'GET',
378
+ headers: headerParameters,
379
+ query: queryParameters,
380
+ }, initOverrides);
381
+
382
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
383
+ }
384
+
385
+ /**
386
+ * List all integrations
387
+ * List integrations
388
+ */
389
+ async getIntegrations(
390
+
391
+ initOverrides?: RequestInit | runtime.InitOverrideFunction
392
+ ): Promise<IntegrationsResponse> {
393
+ const response = await this.getIntegrationsRaw(
394
+
395
+ initOverrides
396
+ );
397
+
398
+ return await response.value();
399
+ }
400
+
354
401
  }
@@ -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.8.4
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.7.0
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,14 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
16
- import type { IntegrationInfo } from './IntegrationInfo';
17
- import {
18
- IntegrationInfoFromJSON,
19
- IntegrationInfoFromJSONTyped,
20
- IntegrationInfoToJSON,
21
- } from './IntegrationInfo';
22
-
15
+ import { mapValues } from '../runtime';
23
16
  /**
24
17
  *
25
18
  * @export
@@ -33,48 +26,24 @@ export interface Integration {
33
26
  */
34
27
  readonly id?: number;
35
28
  /**
36
- *
29
+ * The code of the integration
37
30
  * @type {string}
38
31
  * @memberof Integration
39
32
  */
40
- name: string;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof Integration
45
- */
46
- code: string;
47
- /**
48
- *
49
- * @type {object}
50
- * @memberof Integration
51
- */
52
- config: object;
33
+ code?: string;
53
34
  /**
54
- *
55
- * @type {IntegrationInfo}
35
+ * The configuration of the integration
36
+ * @type {{ [key: string]: string; }}
56
37
  * @memberof Integration
57
38
  */
58
- info: IntegrationInfo;
59
- /**
60
- *
61
- * @type {Array<string>}
62
- * @memberof Integration
63
- */
64
- dependencies?: Array<string>;
39
+ config?: { [key: string]: string; };
65
40
  }
66
41
 
67
42
  /**
68
43
  * Check if a given object implements the Integration interface.
69
44
  */
70
45
  export function instanceOfIntegration(value: object): boolean {
71
- let isInstance = true;
72
- isInstance = isInstance && "name" in value;
73
- isInstance = isInstance && "code" in value;
74
- isInstance = isInstance && "config" in value;
75
- isInstance = isInstance && "info" in value;
76
-
77
- return isInstance;
46
+ return true;
78
47
  }
79
48
 
80
49
  export function IntegrationFromJSON(json: any): Integration {
@@ -82,34 +51,25 @@ export function IntegrationFromJSON(json: any): Integration {
82
51
  }
83
52
 
84
53
  export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration {
85
- if ((json === undefined) || (json === null)) {
54
+ if (json == null) {
86
55
  return json;
87
56
  }
88
57
  return {
89
58
 
90
- 'id': !exists(json, 'id') ? undefined : json['id'],
91
- 'name': json['name'],
92
- 'code': json['code'],
93
- 'config': json['config'],
94
- 'info': IntegrationInfoFromJSON(json['info']),
95
- 'dependencies': !exists(json, 'dependencies') ? undefined : json['dependencies'],
59
+ 'id': json['id'] == null ? undefined : json['id'],
60
+ 'code': json['code'] == null ? undefined : json['code'],
61
+ 'config': json['config'] == null ? undefined : json['config'],
96
62
  };
97
63
  }
98
64
 
99
- export function IntegrationToJSON(value?: Integration | null): any {
100
- if (value === undefined) {
101
- return undefined;
102
- }
103
- if (value === null) {
104
- return null;
65
+ export function IntegrationToJSON(value?: Omit<Integration, 'id'> | null): any {
66
+ if (value == null) {
67
+ return value;
105
68
  }
106
69
  return {
107
70
 
108
- 'name': value.name,
109
- 'code': value.code,
110
- 'config': value.config,
111
- 'info': IntegrationInfoToJSON(value.info),
112
- 'dependencies': value.dependencies,
71
+ 'code': value['code'],
72
+ 'config': value['config'],
113
73
  };
114
74
  }
115
75
 
@@ -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.8.4
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.8.4
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.8.4
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.8.4
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.8.4
7
+ * The version of the OpenAPI document: 0.9.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).