@teemill/integrations 0.8.2 → 0.8.3

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 (36) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/README.md +2 -2
  3. package/dist/apis/IntegrationsApi.d.ts +4 -4
  4. package/dist/apis/IntegrationsApi.js +2 -2
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +1 -1
  7. package/dist/models/IntegrationCategoriesResponse.d.ts +32 -0
  8. package/dist/models/IntegrationCategoriesResponse.js +51 -0
  9. package/dist/models/IntegrationCategory.d.ts +1 -1
  10. package/dist/models/IntegrationCategory.js +1 -1
  11. package/dist/models/IntegrationListing.d.ts +2 -2
  12. package/dist/models/IntegrationListing.js +3 -2
  13. package/dist/models/IntegrationListingGradient.d.ts +1 -1
  14. package/dist/models/IntegrationListingGradient.js +1 -1
  15. package/dist/models/IntegrationListingsResponse.d.ts +2 -2
  16. package/dist/models/IntegrationListingsResponse.js +4 -4
  17. package/dist/models/IntegrationProduct.d.ts +1 -1
  18. package/dist/models/IntegrationProduct.js +1 -1
  19. package/dist/models/IntegrationProductsResponse.d.ts +1 -1
  20. package/dist/models/IntegrationProductsResponse.js +1 -1
  21. package/dist/models/index.d.ts +1 -1
  22. package/dist/models/index.js +1 -1
  23. package/dist/runtime.d.ts +1 -1
  24. package/dist/runtime.js +1 -1
  25. package/package.json +1 -1
  26. package/src/apis/IntegrationsApi.ts +7 -7
  27. package/src/models/ApiError.ts +1 -1
  28. package/src/models/IntegrationCategoriesResponse.ts +73 -0
  29. package/src/models/IntegrationCategory.ts +1 -1
  30. package/src/models/IntegrationListing.ts +4 -3
  31. package/src/models/IntegrationListingGradient.ts +1 -1
  32. package/src/models/IntegrationListingsResponse.ts +5 -4
  33. package/src/models/IntegrationProduct.ts +1 -1
  34. package/src/models/IntegrationProductsResponse.ts +1 -1
  35. package/src/models/index.ts +1 -1
  36. package/src/runtime.ts +1 -1
@@ -6,7 +6,7 @@ src/apis/IntegrationsApi.ts
6
6
  src/apis/index.ts
7
7
  src/index.ts
8
8
  src/models/ApiError.ts
9
- src/models/CategoriesResponse.ts
9
+ src/models/IntegrationCategoriesResponse.ts
10
10
  src/models/IntegrationCategory.ts
11
11
  src/models/IntegrationListing.ts
12
12
  src/models/IntegrationListingGradient.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/integrations@0.8.2
1
+ ## @teemill/integrations@0.8.3
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/integrations@0.8.2 --save
39
+ npm install @teemill/integrations@0.8.3 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -2,7 +2,7 @@
2
2
  * Integrations API
3
3
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.8.2
5
+ * The version of the OpenAPI document: 0.8.3
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse } from '../models/index';
13
+ import type { IntegrationCategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse } from '../models/index';
14
14
  export interface GetIntegrationCategoryRequest {
15
15
  category: string;
16
16
  }
@@ -32,12 +32,12 @@ export declare class IntegrationsApi extends runtime.BaseAPI {
32
32
  * List all integration categories
33
33
  * List integration categories
34
34
  */
35
- getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoriesResponse>>;
35
+ getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationCategoriesResponse>>;
36
36
  /**
37
37
  * List all integration categories
38
38
  * List integration categories
39
39
  */
40
- getIntegrationCategories(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CategoriesResponse>;
40
+ getIntegrationCategories(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationCategoriesResponse>;
41
41
  /**
42
42
  * Get an integration category
43
43
  * Get integration category
@@ -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.2
8
+ * The version of the OpenAPI document: 0.8.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -108,7 +108,7 @@ var IntegrationsApi = /** @class */ (function (_super) {
108
108
  }, initOverrides)];
109
109
  case 3:
110
110
  response = _c.sent();
111
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CategoriesResponseFromJSON)(jsonValue); })];
111
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationCategoriesResponseFromJSON)(jsonValue); })];
112
112
  }
113
113
  });
114
114
  });
@@ -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.2
5
+ * The version of the OpenAPI document: 0.8.3
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.2
8
+ * The version of the OpenAPI document: 0.8.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Integrations API
3
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.8.3
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { IntegrationCategory } from './IntegrationCategory';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IntegrationCategoriesResponse
17
+ */
18
+ export interface IntegrationCategoriesResponse {
19
+ /**
20
+ *
21
+ * @type {Array<IntegrationCategory>}
22
+ * @memberof IntegrationCategoriesResponse
23
+ */
24
+ categories: Array<IntegrationCategory>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IntegrationCategoriesResponse interface.
28
+ */
29
+ export declare function instanceOfIntegrationCategoriesResponse(value: object): boolean;
30
+ export declare function IntegrationCategoriesResponseFromJSON(json: any): IntegrationCategoriesResponse;
31
+ export declare function IntegrationCategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategoriesResponse;
32
+ export declare function IntegrationCategoriesResponseToJSON(value?: IntegrationCategoriesResponse | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Integrations API
6
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.8.3
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IntegrationCategoriesResponseToJSON = exports.IntegrationCategoriesResponseFromJSONTyped = exports.IntegrationCategoriesResponseFromJSON = exports.instanceOfIntegrationCategoriesResponse = void 0;
17
+ var IntegrationCategory_1 = require("./IntegrationCategory");
18
+ /**
19
+ * Check if a given object implements the IntegrationCategoriesResponse interface.
20
+ */
21
+ function instanceOfIntegrationCategoriesResponse(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "categories" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfIntegrationCategoriesResponse = instanceOfIntegrationCategoriesResponse;
27
+ function IntegrationCategoriesResponseFromJSON(json) {
28
+ return IntegrationCategoriesResponseFromJSONTyped(json, false);
29
+ }
30
+ exports.IntegrationCategoriesResponseFromJSON = IntegrationCategoriesResponseFromJSON;
31
+ function IntegrationCategoriesResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'categories': (json['categories'].map(IntegrationCategory_1.IntegrationCategoryFromJSON)),
37
+ };
38
+ }
39
+ exports.IntegrationCategoriesResponseFromJSONTyped = IntegrationCategoriesResponseFromJSONTyped;
40
+ function IntegrationCategoriesResponseToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'categories': (value.categories.map(IntegrationCategory_1.IntegrationCategoryToJSON)),
49
+ };
50
+ }
51
+ exports.IntegrationCategoriesResponseToJSON = IntegrationCategoriesResponseToJSON;
@@ -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.2
5
+ * The version of the OpenAPI document: 0.8.3
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.2
8
+ * The version of the OpenAPI document: 0.8.3
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.2
5
+ * The version of the OpenAPI document: 0.8.3
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,7 +28,7 @@ export interface IntegrationListing {
28
28
  * @type {string}
29
29
  * @memberof IntegrationListing
30
30
  */
31
- slug?: string;
31
+ slug: string;
32
32
  /**
33
33
  * The code of the integration
34
34
  * @type {string}
@@ -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.2
8
+ * The version of the OpenAPI document: 0.8.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,6 +22,7 @@ var IntegrationListingGradient_1 = require("./IntegrationListingGradient");
22
22
  */
23
23
  function instanceOfIntegrationListing(value) {
24
24
  var isInstance = true;
25
+ isInstance = isInstance && "slug" in value;
25
26
  isInstance = isInstance && "code" in value;
26
27
  isInstance = isInstance && "name" in value;
27
28
  isInstance = isInstance && "description" in value;
@@ -44,7 +45,7 @@ function IntegrationListingFromJSONTyped(json, ignoreDiscriminator) {
44
45
  }
45
46
  return {
46
47
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
47
- 'slug': !(0, runtime_1.exists)(json, 'slug') ? undefined : json['slug'],
48
+ 'slug': json['slug'],
48
49
  'code': json['code'],
49
50
  'name': json['name'],
50
51
  'description': json['description'],
@@ -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.2
5
+ * The version of the OpenAPI document: 0.8.3
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.2
8
+ * The version of the OpenAPI document: 0.8.3
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.2
5
+ * The version of the OpenAPI document: 0.8.3
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,7 +21,7 @@ export interface IntegrationListingsResponse {
21
21
  * @type {Array<IntegrationListing>}
22
22
  * @memberof IntegrationListingsResponse
23
23
  */
24
- listings?: Array<IntegrationListing>;
24
+ listings: Array<IntegrationListing>;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the IntegrationListingsResponse interface.
@@ -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.2
8
+ * The version of the OpenAPI document: 0.8.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,13 +14,13 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.IntegrationListingsResponseToJSON = exports.IntegrationListingsResponseFromJSONTyped = exports.IntegrationListingsResponseFromJSON = exports.instanceOfIntegrationListingsResponse = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var IntegrationListing_1 = require("./IntegrationListing");
19
18
  /**
20
19
  * Check if a given object implements the IntegrationListingsResponse interface.
21
20
  */
22
21
  function instanceOfIntegrationListingsResponse(value) {
23
22
  var isInstance = true;
23
+ isInstance = isInstance && "listings" in value;
24
24
  return isInstance;
25
25
  }
26
26
  exports.instanceOfIntegrationListingsResponse = instanceOfIntegrationListingsResponse;
@@ -33,7 +33,7 @@ function IntegrationListingsResponseFromJSONTyped(json, ignoreDiscriminator) {
33
33
  return json;
34
34
  }
35
35
  return {
36
- 'listings': !(0, runtime_1.exists)(json, 'listings') ? undefined : (json['listings'].map(IntegrationListing_1.IntegrationListingFromJSON)),
36
+ 'listings': (json['listings'].map(IntegrationListing_1.IntegrationListingFromJSON)),
37
37
  };
38
38
  }
39
39
  exports.IntegrationListingsResponseFromJSONTyped = IntegrationListingsResponseFromJSONTyped;
@@ -45,7 +45,7 @@ function IntegrationListingsResponseToJSON(value) {
45
45
  return null;
46
46
  }
47
47
  return {
48
- 'listings': value.listings === undefined ? undefined : (value.listings.map(IntegrationListing_1.IntegrationListingToJSON)),
48
+ 'listings': (value.listings.map(IntegrationListing_1.IntegrationListingToJSON)),
49
49
  };
50
50
  }
51
51
  exports.IntegrationListingsResponseToJSON = IntegrationListingsResponseToJSON;
@@ -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.2
5
+ * The version of the OpenAPI document: 0.8.3
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.2
8
+ * The version of the OpenAPI document: 0.8.3
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.2
5
+ * The version of the OpenAPI document: 0.8.3
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.2
8
+ * The version of the OpenAPI document: 0.8.3
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,5 +1,5 @@
1
1
  export * from './ApiError';
2
- export * from './CategoriesResponse';
2
+ export * from './IntegrationCategoriesResponse';
3
3
  export * from './IntegrationCategory';
4
4
  export * from './IntegrationListing';
5
5
  export * from './IntegrationListingGradient';
@@ -17,7 +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("./CategoriesResponse"), exports);
20
+ __exportStar(require("./IntegrationCategoriesResponse"), exports);
21
21
  __exportStar(require("./IntegrationCategory"), exports);
22
22
  __exportStar(require("./IntegrationListing"), exports);
23
23
  __exportStar(require("./IntegrationListingGradient"), 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.2
5
+ * The version of the OpenAPI document: 0.8.3
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.2
8
+ * The version of the OpenAPI document: 0.8.3
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.2",
3
+ "version": "0.8.3",
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.2
7
+ * The version of the OpenAPI document: 0.8.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,7 +16,7 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiError,
19
- CategoriesResponse,
19
+ IntegrationCategoriesResponse,
20
20
  IntegrationListing,
21
21
  IntegrationListingsResponse,
22
22
  IntegrationProduct,
@@ -25,8 +25,8 @@ import type {
25
25
  import {
26
26
  ApiErrorFromJSON,
27
27
  ApiErrorToJSON,
28
- CategoriesResponseFromJSON,
29
- CategoriesResponseToJSON,
28
+ IntegrationCategoriesResponseFromJSON,
29
+ IntegrationCategoriesResponseToJSON,
30
30
  IntegrationListingFromJSON,
31
31
  IntegrationListingToJSON,
32
32
  IntegrationListingsResponseFromJSON,
@@ -63,7 +63,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
63
63
  * List all integration categories
64
64
  * List integration categories
65
65
  */
66
- async getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CategoriesResponse>> {
66
+ async getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationCategoriesResponse>> {
67
67
  const queryParameters: any = {};
68
68
 
69
69
  const headerParameters: runtime.HTTPHeaders = {};
@@ -84,7 +84,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
84
84
  query: queryParameters,
85
85
  }, initOverrides);
86
86
 
87
- return new runtime.JSONApiResponse(response, (jsonValue) => CategoriesResponseFromJSON(jsonValue));
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationCategoriesResponseFromJSON(jsonValue));
88
88
  }
89
89
 
90
90
  /**
@@ -94,7 +94,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
94
94
  async getIntegrationCategories(
95
95
 
96
96
  initOverrides?: RequestInit | runtime.InitOverrideFunction
97
- ): Promise<CategoriesResponse> {
97
+ ): Promise<IntegrationCategoriesResponse> {
98
98
  const response = await this.getIntegrationCategoriesRaw(
99
99
 
100
100
  initOverrides
@@ -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.2
7
+ * The version of the OpenAPI document: 0.8.3
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.3
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 IntegrationCategoriesResponse
27
+ */
28
+ export interface IntegrationCategoriesResponse {
29
+ /**
30
+ *
31
+ * @type {Array<IntegrationCategory>}
32
+ * @memberof IntegrationCategoriesResponse
33
+ */
34
+ categories: Array<IntegrationCategory>;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the IntegrationCategoriesResponse interface.
39
+ */
40
+ export function instanceOfIntegrationCategoriesResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "categories" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function IntegrationCategoriesResponseFromJSON(json: any): IntegrationCategoriesResponse {
48
+ return IntegrationCategoriesResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function IntegrationCategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategoriesResponse {
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 IntegrationCategoriesResponseToJSON(value?: IntegrationCategoriesResponse | 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.8.2
7
+ * The version of the OpenAPI document: 0.8.3
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.2
7
+ * The version of the OpenAPI document: 0.8.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -43,7 +43,7 @@ export interface IntegrationListing {
43
43
  * @type {string}
44
44
  * @memberof IntegrationListing
45
45
  */
46
- slug?: string;
46
+ slug: string;
47
47
  /**
48
48
  * The code of the integration
49
49
  * @type {string}
@@ -105,6 +105,7 @@ export interface IntegrationListing {
105
105
  */
106
106
  export function instanceOfIntegrationListing(value: object): boolean {
107
107
  let isInstance = true;
108
+ isInstance = isInstance && "slug" in value;
108
109
  isInstance = isInstance && "code" in value;
109
110
  isInstance = isInstance && "name" in value;
110
111
  isInstance = isInstance && "description" in value;
@@ -129,7 +130,7 @@ export function IntegrationListingFromJSONTyped(json: any, ignoreDiscriminator:
129
130
  return {
130
131
 
131
132
  'id': !exists(json, 'id') ? undefined : json['id'],
132
- 'slug': !exists(json, 'slug') ? undefined : json['slug'],
133
+ 'slug': json['slug'],
133
134
  'code': json['code'],
134
135
  'name': json['name'],
135
136
  'description': json['description'],
@@ -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.2
7
+ * The version of the OpenAPI document: 0.8.3
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.2
7
+ * The version of the OpenAPI document: 0.8.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,7 +31,7 @@ export interface IntegrationListingsResponse {
31
31
  * @type {Array<IntegrationListing>}
32
32
  * @memberof IntegrationListingsResponse
33
33
  */
34
- listings?: Array<IntegrationListing>;
34
+ listings: Array<IntegrationListing>;
35
35
  }
36
36
 
37
37
  /**
@@ -39,6 +39,7 @@ export interface IntegrationListingsResponse {
39
39
  */
40
40
  export function instanceOfIntegrationListingsResponse(value: object): boolean {
41
41
  let isInstance = true;
42
+ isInstance = isInstance && "listings" in value;
42
43
 
43
44
  return isInstance;
44
45
  }
@@ -53,7 +54,7 @@ export function IntegrationListingsResponseFromJSONTyped(json: any, ignoreDiscri
53
54
  }
54
55
  return {
55
56
 
56
- 'listings': !exists(json, 'listings') ? undefined : ((json['listings'] as Array<any>).map(IntegrationListingFromJSON)),
57
+ 'listings': ((json['listings'] as Array<any>).map(IntegrationListingFromJSON)),
57
58
  };
58
59
  }
59
60
 
@@ -66,7 +67,7 @@ export function IntegrationListingsResponseToJSON(value?: IntegrationListingsRes
66
67
  }
67
68
  return {
68
69
 
69
- 'listings': value.listings === undefined ? undefined : ((value.listings as Array<any>).map(IntegrationListingToJSON)),
70
+ 'listings': ((value.listings as Array<any>).map(IntegrationListingToJSON)),
70
71
  };
71
72
  }
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.8.2
7
+ * The version of the OpenAPI document: 0.8.3
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.2
7
+ * The version of the OpenAPI document: 0.8.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './ApiError';
4
- export * from './CategoriesResponse';
4
+ export * from './IntegrationCategoriesResponse';
5
5
  export * from './IntegrationCategory';
6
6
  export * from './IntegrationListing';
7
7
  export * from './IntegrationListingGradient';
package/src/runtime.ts CHANGED
@@ -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.2
7
+ * The version of the OpenAPI document: 0.8.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).