@teemill/integrations 0.8.1 → 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 (39) 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/CategoriesResponse.d.ts +1 -1
  8. package/dist/models/CategoriesResponse.js +1 -1
  9. package/dist/models/IntegrationCategoriesResponse.d.ts +32 -0
  10. package/dist/models/IntegrationCategoriesResponse.js +51 -0
  11. package/dist/models/IntegrationCategory.d.ts +1 -1
  12. package/dist/models/IntegrationCategory.js +1 -1
  13. package/dist/models/IntegrationListing.d.ts +8 -2
  14. package/dist/models/IntegrationListing.js +6 -2
  15. package/dist/models/IntegrationListingGradient.d.ts +1 -1
  16. package/dist/models/IntegrationListingGradient.js +1 -1
  17. package/dist/models/IntegrationListingsResponse.d.ts +2 -2
  18. package/dist/models/IntegrationListingsResponse.js +4 -4
  19. package/dist/models/IntegrationProduct.d.ts +1 -1
  20. package/dist/models/IntegrationProduct.js +1 -1
  21. package/dist/models/IntegrationProductsResponse.d.ts +1 -1
  22. package/dist/models/IntegrationProductsResponse.js +1 -1
  23. package/dist/models/index.d.ts +1 -1
  24. package/dist/models/index.js +1 -1
  25. package/dist/runtime.d.ts +1 -1
  26. package/dist/runtime.js +1 -1
  27. package/package.json +1 -1
  28. package/src/apis/IntegrationsApi.ts +7 -7
  29. package/src/models/ApiError.ts +1 -1
  30. package/src/models/CategoriesResponse.ts +1 -1
  31. package/src/models/IntegrationCategoriesResponse.ts +73 -0
  32. package/src/models/IntegrationCategory.ts +1 -1
  33. package/src/models/IntegrationListing.ts +13 -3
  34. package/src/models/IntegrationListingGradient.ts +1 -1
  35. package/src/models/IntegrationListingsResponse.ts +5 -4
  36. package/src/models/IntegrationProduct.ts +1 -1
  37. package/src/models/IntegrationProductsResponse.ts +1 -1
  38. package/src/models/index.ts +1 -1
  39. 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.1
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.1 --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.1
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.1
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.1
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.1
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.1
5
+ * The version of the OpenAPI document: 0.8.2
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.1
8
+ * The version of the OpenAPI document: 0.8.2
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.1
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.1
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.1
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}
@@ -47,6 +47,12 @@ export interface IntegrationListing {
47
47
  * @memberof IntegrationListing
48
48
  */
49
49
  description: string;
50
+ /**
51
+ * The html content of the integration listing
52
+ * @type {string}
53
+ * @memberof IntegrationListing
54
+ */
55
+ content: string;
50
56
  /**
51
57
  * The author of the integration listing
52
58
  * @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.1
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,9 +22,11 @@ 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;
29
+ isInstance = isInstance && "content" in value;
28
30
  isInstance = isInstance && "author" in value;
29
31
  isInstance = isInstance && "icon" in value;
30
32
  isInstance = isInstance && "gradient" in value;
@@ -43,10 +45,11 @@ function IntegrationListingFromJSONTyped(json, ignoreDiscriminator) {
43
45
  }
44
46
  return {
45
47
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
46
- 'slug': !(0, runtime_1.exists)(json, 'slug') ? undefined : json['slug'],
48
+ 'slug': json['slug'],
47
49
  'code': json['code'],
48
50
  'name': json['name'],
49
51
  'description': json['description'],
52
+ 'content': json['content'],
50
53
  'author': json['author'],
51
54
  'icon': json['icon'],
52
55
  'gradient': (0, IntegrationListingGradient_1.IntegrationListingGradientFromJSON)(json['gradient']),
@@ -67,6 +70,7 @@ function IntegrationListingToJSON(value) {
67
70
  'code': value.code,
68
71
  'name': value.name,
69
72
  'description': value.description,
73
+ 'content': value.content,
70
74
  'author': value.author,
71
75
  'icon': value.icon,
72
76
  'gradient': (0, IntegrationListingGradient_1.IntegrationListingGradientToJSON)(value.gradient),
@@ -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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1",
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.1
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.1
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.1
7
+ * The version of the OpenAPI document: 0.8.2
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.1
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.1
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}
@@ -62,6 +62,12 @@ export interface IntegrationListing {
62
62
  * @memberof IntegrationListing
63
63
  */
64
64
  description: string;
65
+ /**
66
+ * The html content of the integration listing
67
+ * @type {string}
68
+ * @memberof IntegrationListing
69
+ */
70
+ content: string;
65
71
  /**
66
72
  * The author of the integration listing
67
73
  * @type {string}
@@ -99,9 +105,11 @@ export interface IntegrationListing {
99
105
  */
100
106
  export function instanceOfIntegrationListing(value: object): boolean {
101
107
  let isInstance = true;
108
+ isInstance = isInstance && "slug" in value;
102
109
  isInstance = isInstance && "code" in value;
103
110
  isInstance = isInstance && "name" in value;
104
111
  isInstance = isInstance && "description" in value;
112
+ isInstance = isInstance && "content" in value;
105
113
  isInstance = isInstance && "author" in value;
106
114
  isInstance = isInstance && "icon" in value;
107
115
  isInstance = isInstance && "gradient" in value;
@@ -122,10 +130,11 @@ export function IntegrationListingFromJSONTyped(json: any, ignoreDiscriminator:
122
130
  return {
123
131
 
124
132
  'id': !exists(json, 'id') ? undefined : json['id'],
125
- 'slug': !exists(json, 'slug') ? undefined : json['slug'],
133
+ 'slug': json['slug'],
126
134
  'code': json['code'],
127
135
  'name': json['name'],
128
136
  'description': json['description'],
137
+ 'content': json['content'],
129
138
  'author': json['author'],
130
139
  'icon': json['icon'],
131
140
  'gradient': IntegrationListingGradientFromJSON(json['gradient']),
@@ -147,6 +156,7 @@ export function IntegrationListingToJSON(value?: IntegrationListing | null): any
147
156
  'code': value.code,
148
157
  'name': value.name,
149
158
  'description': value.description,
159
+ 'content': value.content,
150
160
  'author': value.author,
151
161
  'icon': value.icon,
152
162
  'gradient': IntegrationListingGradientToJSON(value.gradient),
@@ -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.1
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.1
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.1
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.1
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.1
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).