@teemill/integrations 0.8.3 → 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.
- package/.openapi-generator/FILES +3 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -4
- package/dist/apis/IntegrationsApi.d.ts +12 -2
- package/dist/apis/IntegrationsApi.js +206 -351
- package/dist/esm/apis/IntegrationsApi.d.ts +101 -0
- package/dist/esm/apis/IntegrationsApi.js +290 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiError.d.ts +37 -0
- package/dist/esm/models/ApiError.js +42 -0
- package/dist/esm/models/CategoriesResponse.d.ts +32 -0
- package/dist/esm/models/CategoriesResponse.js +44 -0
- package/dist/esm/models/Integration.d.ts +45 -0
- package/dist/esm/models/Integration.js +41 -0
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +32 -0
- package/dist/esm/models/IntegrationCategoriesResponse.js +41 -0
- package/dist/esm/models/IntegrationCategory.d.ts +52 -0
- package/dist/esm/models/IntegrationCategory.js +56 -0
- package/dist/esm/models/IntegrationInfo.d.ts +49 -0
- package/dist/esm/models/IntegrationInfo.js +52 -0
- package/dist/esm/models/IntegrationListing.d.ts +93 -0
- package/dist/esm/models/IntegrationListing.js +79 -0
- package/dist/esm/models/IntegrationListingGradient.d.ts +37 -0
- package/dist/esm/models/IntegrationListingGradient.js +40 -0
- package/dist/esm/models/IntegrationListingsResponse.d.ts +32 -0
- package/dist/esm/models/IntegrationListingsResponse.js +41 -0
- package/dist/esm/models/IntegrationProduct.d.ts +61 -0
- package/dist/esm/models/IntegrationProduct.js +57 -0
- package/dist/esm/models/IntegrationProductsResponse.d.ts +32 -0
- package/dist/esm/models/IntegrationProductsResponse.js +41 -0
- package/dist/esm/models/IntegrationsResponse.d.ts +32 -0
- package/dist/esm/models/IntegrationsResponse.js +41 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/esm/runtime.d.ts +187 -0
- package/dist/esm/runtime.js +333 -0
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +10 -14
- package/dist/models/CategoriesResponse.js +2 -2
- package/dist/models/Integration.d.ts +9 -26
- package/dist/models/Integration.js +10 -26
- package/dist/models/IntegrationCategoriesResponse.d.ts +1 -1
- package/dist/models/IntegrationCategoriesResponse.js +9 -12
- package/dist/models/IntegrationCategory.d.ts +1 -1
- package/dist/models/IntegrationCategory.js +14 -15
- package/dist/models/IntegrationInfo.js +1 -1
- package/dist/models/IntegrationListing.d.ts +2 -2
- package/dist/models/IntegrationListing.js +38 -33
- package/dist/models/IntegrationListingGradient.d.ts +1 -1
- package/dist/models/IntegrationListingGradient.js +9 -14
- package/dist/models/IntegrationListingsResponse.d.ts +1 -1
- package/dist/models/IntegrationListingsResponse.js +9 -12
- package/dist/models/IntegrationProduct.d.ts +2 -2
- package/dist/models/IntegrationProduct.js +21 -21
- package/dist/models/IntegrationProductsResponse.d.ts +1 -1
- package/dist/models/IntegrationProductsResponse.js +9 -12
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +9 -12
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +223 -439
- package/package.json +4 -2
- package/src/apis/IntegrationsApi.ts +48 -1
- package/src/models/ApiError.ts +10 -15
- package/src/models/Integration.ts +17 -57
- package/src/models/IntegrationCategoriesResponse.ts +8 -13
- package/src/models/IntegrationCategory.ts +12 -17
- package/src/models/IntegrationListing.ts +28 -33
- package/src/models/IntegrationListingGradient.ts +10 -15
- package/src/models/IntegrationListingsResponse.ts +8 -13
- package/src/models/IntegrationProduct.ts +18 -23
- package/src/models/IntegrationProductsResponse.ts +8 -13
- package/src/models/IntegrationsResponse.ts +8 -13
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +2 -2
|
@@ -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
|
+
* 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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -61,14 +61,12 @@ export interface IntegrationProduct {
|
|
|
61
61
|
* Check if a given object implements the IntegrationProduct interface.
|
|
62
62
|
*/
|
|
63
63
|
export function instanceOfIntegrationProduct(value: object): boolean {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return isInstance;
|
|
64
|
+
if (!('sku' in value)) return false;
|
|
65
|
+
if (!('name' in value)) return false;
|
|
66
|
+
if (!('slug' in value)) return false;
|
|
67
|
+
if (!('description' in value)) return false;
|
|
68
|
+
if (!('price' in value)) return false;
|
|
69
|
+
return true;
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
export function IntegrationProductFromJSON(json: any): IntegrationProduct {
|
|
@@ -76,12 +74,12 @@ export function IntegrationProductFromJSON(json: any): IntegrationProduct {
|
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export function IntegrationProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProduct {
|
|
79
|
-
if (
|
|
77
|
+
if (json == null) {
|
|
80
78
|
return json;
|
|
81
79
|
}
|
|
82
80
|
return {
|
|
83
81
|
|
|
84
|
-
'id':
|
|
82
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
85
83
|
'sku': json['sku'],
|
|
86
84
|
'name': json['name'],
|
|
87
85
|
'slug': json['slug'],
|
|
@@ -90,20 +88,17 @@ export function IntegrationProductFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
90
88
|
};
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
export function IntegrationProductToJSON(value?: IntegrationProduct | null): any {
|
|
94
|
-
if (value
|
|
95
|
-
return
|
|
96
|
-
}
|
|
97
|
-
if (value === null) {
|
|
98
|
-
return null;
|
|
91
|
+
export function IntegrationProductToJSON(value?: Omit<IntegrationProduct, 'id'> | null): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
99
94
|
}
|
|
100
95
|
return {
|
|
101
96
|
|
|
102
|
-
'sku': value
|
|
103
|
-
'name': value
|
|
104
|
-
'slug': value
|
|
105
|
-
'description': value
|
|
106
|
-
'price': value
|
|
97
|
+
'sku': value['sku'],
|
|
98
|
+
'name': value['name'],
|
|
99
|
+
'slug': value['slug'],
|
|
100
|
+
'description': value['description'],
|
|
101
|
+
'price': value['price'],
|
|
107
102
|
};
|
|
108
103
|
}
|
|
109
104
|
|
|
@@ -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
|
+
* 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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { IntegrationProduct } from './IntegrationProduct';
|
|
17
17
|
import {
|
|
18
18
|
IntegrationProductFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface IntegrationProductsResponse {
|
|
|
38
38
|
* Check if a given object implements the IntegrationProductsResponse interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfIntegrationProductsResponse(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('products' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function IntegrationProductsResponseFromJSON(json: any): IntegrationProductsResponse {
|
|
@@ -49,7 +47,7 @@ export function IntegrationProductsResponseFromJSON(json: any): IntegrationProdu
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function IntegrationProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProductsResponse {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function IntegrationProductsResponseFromJSONTyped(json: any, ignoreDiscri
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function IntegrationProductsResponseToJSON(value?: IntegrationProductsResponse | null): any {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
67
62
|
}
|
|
68
63
|
return {
|
|
69
64
|
|
|
70
|
-
'products': ((value
|
|
65
|
+
'products': ((value['products'] as Array<any>).map(IntegrationProductToJSON)),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
|
@@ -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
|
+
* 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,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
import type { Integration } from './Integration';
|
|
17
17
|
import {
|
|
18
18
|
IntegrationFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface IntegrationsResponse {
|
|
|
38
38
|
* Check if a given object implements the IntegrationsResponse interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfIntegrationsResponse(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('integrations' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
|
|
@@ -49,7 +47,7 @@ export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any {
|
|
62
|
-
if (value
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
if (value === null) {
|
|
66
|
-
return null;
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
67
62
|
}
|
|
68
63
|
return {
|
|
69
64
|
|
|
70
|
-
'integrations': ((value
|
|
65
|
+
'integrations': ((value['integrations'] as Array<any>).map(IntegrationToJSON)),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './ApiError';
|
|
4
|
+
export * from './Integration';
|
|
4
5
|
export * from './IntegrationCategoriesResponse';
|
|
5
6
|
export * from './IntegrationCategory';
|
|
6
7
|
export * from './IntegrationListing';
|
|
@@ -8,3 +9,4 @@ export * from './IntegrationListingGradient';
|
|
|
8
9
|
export * from './IntegrationListingsResponse';
|
|
9
10
|
export * from './IntegrationProduct';
|
|
10
11
|
export * from './IntegrationProductsResponse';
|
|
12
|
+
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.
|
|
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).
|
package/tsconfig.json
CHANGED