@teemill/integrations 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +5 -3
  2. package/README.md +2 -2
  3. package/dist/apis/IntegrationsApi.d.ts +43 -20
  4. package/dist/apis/IntegrationsApi.js +165 -48
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +1 -1
  7. package/dist/models/CategoriesResponse.d.ts +32 -0
  8. package/dist/models/CategoriesResponse.js +51 -0
  9. package/dist/models/Integration.d.ts +1 -1
  10. package/dist/models/Integration.js +1 -1
  11. package/dist/models/IntegrationCategory.d.ts +52 -0
  12. package/dist/models/IntegrationCategory.js +64 -0
  13. package/dist/models/IntegrationInfo.d.ts +1 -1
  14. package/dist/models/IntegrationInfo.js +1 -1
  15. package/dist/models/IntegrationListing.d.ts +81 -0
  16. package/dist/models/IntegrationListing.js +75 -0
  17. package/dist/models/IntegrationListingGradient.d.ts +37 -0
  18. package/dist/models/IntegrationListingGradient.js +52 -0
  19. package/dist/models/IntegrationListingsResponse.d.ts +32 -0
  20. package/dist/models/IntegrationListingsResponse.js +51 -0
  21. package/dist/models/IntegrationProduct.d.ts +1 -7
  22. package/dist/models/IntegrationProduct.js +1 -4
  23. package/dist/models/IntegrationProductsResponse.d.ts +1 -1
  24. package/dist/models/IntegrationProductsResponse.js +1 -1
  25. package/dist/models/IntegrationsResponse.d.ts +1 -1
  26. package/dist/models/IntegrationsResponse.js +1 -1
  27. package/dist/models/index.d.ts +5 -3
  28. package/dist/models/index.js +5 -3
  29. package/dist/runtime.d.ts +1 -1
  30. package/dist/runtime.js +1 -1
  31. package/package.json +1 -1
  32. package/src/apis/IntegrationsApi.ts +167 -66
  33. package/src/models/ApiError.ts +1 -1
  34. package/src/models/CategoriesResponse.ts +73 -0
  35. package/src/models/Integration.ts +1 -1
  36. package/src/models/IntegrationCategory.ts +96 -0
  37. package/src/models/IntegrationInfo.ts +1 -1
  38. package/src/models/IntegrationListing.ts +149 -0
  39. package/src/models/IntegrationListingGradient.ts +73 -0
  40. package/src/models/IntegrationListingsResponse.ts +72 -0
  41. package/src/models/IntegrationProduct.ts +1 -10
  42. package/src/models/IntegrationProductsResponse.ts +1 -1
  43. package/src/models/IntegrationsResponse.ts +1 -1
  44. package/src/models/index.ts +5 -3
  45. package/src/runtime.ts +1 -1
@@ -0,0 +1,149 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.8.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { IntegrationCategory } from './IntegrationCategory';
17
+ import {
18
+ IntegrationCategoryFromJSON,
19
+ IntegrationCategoryFromJSONTyped,
20
+ IntegrationCategoryToJSON,
21
+ } from './IntegrationCategory';
22
+ import type { IntegrationListingGradient } from './IntegrationListingGradient';
23
+ import {
24
+ IntegrationListingGradientFromJSON,
25
+ IntegrationListingGradientFromJSONTyped,
26
+ IntegrationListingGradientToJSON,
27
+ } from './IntegrationListingGradient';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface IntegrationListing
33
+ */
34
+ export interface IntegrationListing {
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof IntegrationListing
39
+ */
40
+ readonly id?: number;
41
+ /**
42
+ * The code of the integration
43
+ * @type {string}
44
+ * @memberof IntegrationListing
45
+ */
46
+ code: string;
47
+ /**
48
+ * The name of the integration listing
49
+ * @type {string}
50
+ * @memberof IntegrationListing
51
+ */
52
+ name: string;
53
+ /**
54
+ * The description of the integration listing
55
+ * @type {string}
56
+ * @memberof IntegrationListing
57
+ */
58
+ description: string;
59
+ /**
60
+ * The author of the integration listing
61
+ * @type {string}
62
+ * @memberof IntegrationListing
63
+ */
64
+ author: string;
65
+ /**
66
+ *
67
+ * @type {object}
68
+ * @memberof IntegrationListing
69
+ */
70
+ icon: object;
71
+ /**
72
+ *
73
+ * @type {IntegrationListingGradient}
74
+ * @memberof IntegrationListing
75
+ */
76
+ gradient: IntegrationListingGradient;
77
+ /**
78
+ * The dependencies that this integration listing requires
79
+ * @type {Array<string>}
80
+ * @memberof IntegrationListing
81
+ */
82
+ dependencies: Array<string>;
83
+ /**
84
+ * The categories that this listing belongs to
85
+ * @type {Array<IntegrationCategory>}
86
+ * @memberof IntegrationListing
87
+ */
88
+ categories: Array<IntegrationCategory>;
89
+ }
90
+
91
+ /**
92
+ * Check if a given object implements the IntegrationListing interface.
93
+ */
94
+ export function instanceOfIntegrationListing(value: object): boolean {
95
+ let isInstance = true;
96
+ isInstance = isInstance && "code" in value;
97
+ isInstance = isInstance && "name" in value;
98
+ isInstance = isInstance && "description" in value;
99
+ isInstance = isInstance && "author" in value;
100
+ isInstance = isInstance && "icon" in value;
101
+ isInstance = isInstance && "gradient" in value;
102
+ isInstance = isInstance && "dependencies" in value;
103
+ isInstance = isInstance && "categories" in value;
104
+
105
+ return isInstance;
106
+ }
107
+
108
+ export function IntegrationListingFromJSON(json: any): IntegrationListing {
109
+ return IntegrationListingFromJSONTyped(json, false);
110
+ }
111
+
112
+ export function IntegrationListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListing {
113
+ if ((json === undefined) || (json === null)) {
114
+ return json;
115
+ }
116
+ return {
117
+
118
+ 'id': !exists(json, 'id') ? undefined : json['id'],
119
+ 'code': json['code'],
120
+ 'name': json['name'],
121
+ 'description': json['description'],
122
+ 'author': json['author'],
123
+ 'icon': json['icon'],
124
+ 'gradient': IntegrationListingGradientFromJSON(json['gradient']),
125
+ 'dependencies': json['dependencies'],
126
+ 'categories': ((json['categories'] as Array<any>).map(IntegrationCategoryFromJSON)),
127
+ };
128
+ }
129
+
130
+ export function IntegrationListingToJSON(value?: IntegrationListing | null): any {
131
+ if (value === undefined) {
132
+ return undefined;
133
+ }
134
+ if (value === null) {
135
+ return null;
136
+ }
137
+ return {
138
+
139
+ 'code': value.code,
140
+ 'name': value.name,
141
+ 'description': value.description,
142
+ 'author': value.author,
143
+ 'icon': value.icon,
144
+ 'gradient': IntegrationListingGradientToJSON(value.gradient),
145
+ 'dependencies': value.dependencies,
146
+ 'categories': ((value.categories as Array<any>).map(IntegrationCategoryToJSON)),
147
+ };
148
+ }
149
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.8.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * The gradient that is used to display the listing
18
+ * @export
19
+ * @interface IntegrationListingGradient
20
+ */
21
+ export interface IntegrationListingGradient {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof IntegrationListingGradient
26
+ */
27
+ from?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IntegrationListingGradient
32
+ */
33
+ to?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the IntegrationListingGradient interface.
38
+ */
39
+ export function instanceOfIntegrationListingGradient(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function IntegrationListingGradientFromJSON(json: any): IntegrationListingGradient {
46
+ return IntegrationListingGradientFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function IntegrationListingGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListingGradient {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'from': !exists(json, 'from') ? undefined : json['from'],
56
+ 'to': !exists(json, 'to') ? undefined : json['to'],
57
+ };
58
+ }
59
+
60
+ export function IntegrationListingGradientToJSON(value?: IntegrationListingGradient | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'from': value.from,
70
+ 'to': value.to,
71
+ };
72
+ }
73
+
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Integrations API
5
+ * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.8.0
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { IntegrationListing } from './IntegrationListing';
17
+ import {
18
+ IntegrationListingFromJSON,
19
+ IntegrationListingFromJSONTyped,
20
+ IntegrationListingToJSON,
21
+ } from './IntegrationListing';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface IntegrationListingsResponse
27
+ */
28
+ export interface IntegrationListingsResponse {
29
+ /**
30
+ *
31
+ * @type {Array<IntegrationListing>}
32
+ * @memberof IntegrationListingsResponse
33
+ */
34
+ listings?: Array<IntegrationListing>;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the IntegrationListingsResponse interface.
39
+ */
40
+ export function instanceOfIntegrationListingsResponse(value: object): boolean {
41
+ let isInstance = true;
42
+
43
+ return isInstance;
44
+ }
45
+
46
+ export function IntegrationListingsResponseFromJSON(json: any): IntegrationListingsResponse {
47
+ return IntegrationListingsResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function IntegrationListingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListingsResponse {
51
+ if ((json === undefined) || (json === null)) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'listings': !exists(json, 'listings') ? undefined : ((json['listings'] as Array<any>).map(IntegrationListingFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function IntegrationListingsResponseToJSON(value?: IntegrationListingsResponse | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'listings': value.listings === undefined ? undefined : ((value.listings as Array<any>).map(IntegrationListingToJSON)),
70
+ };
71
+ }
72
+
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.6.0
7
+ * The version of the OpenAPI document: 0.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -55,12 +55,6 @@ export interface IntegrationProduct {
55
55
  * @memberof IntegrationProduct
56
56
  */
57
57
  price: number;
58
- /**
59
- * The VAT rate of the product
60
- * @type {number}
61
- * @memberof IntegrationProduct
62
- */
63
- vatRate: number;
64
58
  }
65
59
 
66
60
  /**
@@ -73,7 +67,6 @@ export function instanceOfIntegrationProduct(value: object): boolean {
73
67
  isInstance = isInstance && "slug" in value;
74
68
  isInstance = isInstance && "description" in value;
75
69
  isInstance = isInstance && "price" in value;
76
- isInstance = isInstance && "vatRate" in value;
77
70
 
78
71
  return isInstance;
79
72
  }
@@ -94,7 +87,6 @@ export function IntegrationProductFromJSONTyped(json: any, ignoreDiscriminator:
94
87
  'slug': json['slug'],
95
88
  'description': json['description'],
96
89
  'price': json['price'],
97
- 'vatRate': json['vatRate'],
98
90
  };
99
91
  }
100
92
 
@@ -112,7 +104,6 @@ export function IntegrationProductToJSON(value?: IntegrationProduct | null): any
112
104
  'slug': value.slug,
113
105
  'description': value.description,
114
106
  'price': value.price,
115
- 'vatRate': value.vatRate,
116
107
  };
117
108
  }
118
109
 
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.6.0
7
+ * The version of the OpenAPI document: 0.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Integrations API
5
5
  * Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.6.0
7
+ * The version of the OpenAPI document: 0.7.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './ApiError';
4
- export * from './Integration';
5
- export * from './IntegrationInfo';
4
+ export * from './CategoriesResponse';
5
+ export * from './IntegrationCategory';
6
+ export * from './IntegrationListing';
7
+ export * from './IntegrationListingGradient';
8
+ export * from './IntegrationListingsResponse';
6
9
  export * from './IntegrationProduct';
7
10
  export * from './IntegrationProductsResponse';
8
- export * from './IntegrationsResponse';
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.6.0
7
+ * The version of the OpenAPI document: 0.8.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).