@teemill/integrations 0.8.4 → 0.10.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 +5 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +75 -2
- package/dist/apis/IntegrationsApi.js +231 -1
- package/dist/esm/apis/IntegrationsApi.d.ts +75 -2
- package/dist/esm/apis/IntegrationsApi.js +232 -2
- package/dist/esm/models/ApiError.d.ts +2 -2
- package/dist/esm/models/ApiError.js +2 -2
- package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +61 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +40 -0
- package/dist/esm/models/Integration.d.ts +10 -27
- package/dist/esm/models/Integration.js +10 -26
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationCategoriesResponse.js +2 -2
- package/dist/esm/models/IntegrationCategory.d.ts +2 -2
- package/dist/esm/models/IntegrationCategory.js +4 -4
- package/dist/esm/models/IntegrationListing.d.ts +2 -2
- package/dist/esm/models/IntegrationListing.js +11 -11
- package/dist/esm/models/IntegrationListingGradient.d.ts +2 -2
- package/dist/esm/models/IntegrationListingGradient.js +1 -1
- package/dist/esm/models/IntegrationListingsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationListingsResponse.js +2 -2
- package/dist/esm/models/IntegrationProduct.d.ts +2 -2
- package/dist/esm/models/IntegrationProduct.js +6 -6
- package/dist/esm/models/IntegrationProductsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationProductsResponse.js +2 -2
- package/dist/esm/models/IntegrationsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationsResponse.js +8 -11
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ApiError.d.ts +2 -2
- package/dist/models/ApiError.js +2 -2
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/models/CreateAdminIntegrationListingRequest.js +68 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +47 -0
- package/dist/models/Integration.d.ts +10 -27
- package/dist/models/Integration.js +10 -26
- package/dist/models/IntegrationCategoriesResponse.d.ts +2 -2
- package/dist/models/IntegrationCategoriesResponse.js +2 -2
- package/dist/models/IntegrationCategory.d.ts +2 -2
- package/dist/models/IntegrationCategory.js +4 -4
- package/dist/models/IntegrationListing.d.ts +2 -2
- package/dist/models/IntegrationListing.js +11 -11
- package/dist/models/IntegrationListingGradient.d.ts +2 -2
- package/dist/models/IntegrationListingGradient.js +1 -1
- package/dist/models/IntegrationListingsResponse.d.ts +2 -2
- package/dist/models/IntegrationListingsResponse.js +2 -2
- package/dist/models/IntegrationProduct.d.ts +2 -2
- package/dist/models/IntegrationProduct.js +6 -6
- package/dist/models/IntegrationProductsResponse.d.ts +2 -2
- package/dist/models/IntegrationProductsResponse.js +2 -2
- package/dist/models/IntegrationsResponse.d.ts +2 -2
- package/dist/models/IntegrationsResponse.js +8 -11
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/models/UpdateAdminIntegrationListingRequest.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/src/apis/IntegrationsApi.ts +323 -1
- package/src/models/ApiError.ts +3 -3
- package/src/models/CreateAdminIntegrationListingRequest.ts +113 -0
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +68 -0
- package/src/models/Integration.ts +18 -58
- package/src/models/IntegrationCategoriesResponse.ts +3 -3
- package/src/models/IntegrationCategory.ts +5 -5
- package/src/models/IntegrationListing.ts +12 -12
- package/src/models/IntegrationListingGradient.ts +2 -2
- package/src/models/IntegrationListingsResponse.ts +3 -3
- package/src/models/IntegrationProduct.ts +7 -7
- package/src/models/IntegrationProductsResponse.ts +3 -3
- package/src/models/IntegrationsResponse.ts +9 -14
- package/src/models/UpdateAdminIntegrationListingRequest.ts +107 -0
- package/src/models/index.ts +5 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
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.10.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 { mapValues } from '../runtime';
|
|
16
|
+
import type { CreateAdminIntegrationListingRequestGradient } from './CreateAdminIntegrationListingRequestGradient';
|
|
17
|
+
import {
|
|
18
|
+
CreateAdminIntegrationListingRequestGradientFromJSON,
|
|
19
|
+
CreateAdminIntegrationListingRequestGradientFromJSONTyped,
|
|
20
|
+
CreateAdminIntegrationListingRequestGradientToJSON,
|
|
21
|
+
} from './CreateAdminIntegrationListingRequestGradient';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreateAdminIntegrationListingRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateAdminIntegrationListingRequest {
|
|
29
|
+
/**
|
|
30
|
+
* The name of the integration listing
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* The description of the integration listing
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
* The html content of the integration listing
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
45
|
+
*/
|
|
46
|
+
content: string;
|
|
47
|
+
/**
|
|
48
|
+
* The slug of the integration listing that is used in the URL
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
51
|
+
*/
|
|
52
|
+
slug: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CreateAdminIntegrationListingRequestGradient}
|
|
56
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
57
|
+
*/
|
|
58
|
+
gradient: CreateAdminIntegrationListingRequestGradient;
|
|
59
|
+
/**
|
|
60
|
+
* The icon of the integration listing
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
63
|
+
*/
|
|
64
|
+
icon: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CreateAdminIntegrationListingRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfCreateAdminIntegrationListingRequest(value: object): value is CreateAdminIntegrationListingRequest {
|
|
71
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
73
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
74
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
75
|
+
if (!('gradient' in value) || value['gradient'] === undefined) return false;
|
|
76
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function CreateAdminIntegrationListingRequestFromJSON(json: any): CreateAdminIntegrationListingRequest {
|
|
81
|
+
return CreateAdminIntegrationListingRequestFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CreateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequest {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'name': json['name'],
|
|
91
|
+
'description': json['description'],
|
|
92
|
+
'content': json['content'],
|
|
93
|
+
'slug': json['slug'],
|
|
94
|
+
'gradient': CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
|
|
95
|
+
'icon': json['icon'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function CreateAdminIntegrationListingRequestToJSON(value?: CreateAdminIntegrationListingRequest | null): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'name': value['name'],
|
|
106
|
+
'description': value['description'],
|
|
107
|
+
'content': value['content'],
|
|
108
|
+
'slug': value['slug'],
|
|
109
|
+
'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
|
|
110
|
+
'icon': value['icon'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
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.10.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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* The gradient that is used to display the listing
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateAdminIntegrationListingRequestGradient
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateAdminIntegrationListingRequestGradient {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateAdminIntegrationListingRequestGradient
|
|
26
|
+
*/
|
|
27
|
+
from?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateAdminIntegrationListingRequestGradient
|
|
32
|
+
*/
|
|
33
|
+
to?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateAdminIntegrationListingRequestGradient interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateAdminIntegrationListingRequestGradient(value: object): value is CreateAdminIntegrationListingRequestGradient {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CreateAdminIntegrationListingRequestGradientFromJSON(json: any): CreateAdminIntegrationListingRequestGradient {
|
|
44
|
+
return CreateAdminIntegrationListingRequestGradientFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CreateAdminIntegrationListingRequestGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequestGradient {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'from': json['from'] == null ? undefined : json['from'],
|
|
54
|
+
'to': json['to'] == null ? undefined : json['to'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CreateAdminIntegrationListingRequestGradientToJSON(value?: CreateAdminIntegrationListingRequestGradient | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'from': value['from'],
|
|
65
|
+
'to': value['to'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,14 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
16
|
-
import type { IntegrationInfo } from './IntegrationInfo';
|
|
17
|
-
import {
|
|
18
|
-
IntegrationInfoFromJSON,
|
|
19
|
-
IntegrationInfoFromJSONTyped,
|
|
20
|
-
IntegrationInfoToJSON,
|
|
21
|
-
} from './IntegrationInfo';
|
|
22
|
-
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
23
16
|
/**
|
|
24
17
|
*
|
|
25
18
|
* @export
|
|
@@ -33,48 +26,24 @@ export interface Integration {
|
|
|
33
26
|
*/
|
|
34
27
|
readonly id?: number;
|
|
35
28
|
/**
|
|
36
|
-
*
|
|
29
|
+
* The code of the integration
|
|
37
30
|
* @type {string}
|
|
38
31
|
* @memberof Integration
|
|
39
32
|
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof Integration
|
|
45
|
-
*/
|
|
46
|
-
code: string;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {object}
|
|
50
|
-
* @memberof Integration
|
|
51
|
-
*/
|
|
52
|
-
config: object;
|
|
33
|
+
code?: string;
|
|
53
34
|
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {
|
|
35
|
+
* The configuration of the integration
|
|
36
|
+
* @type {{ [key: string]: string; }}
|
|
56
37
|
* @memberof Integration
|
|
57
38
|
*/
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {Array<string>}
|
|
62
|
-
* @memberof Integration
|
|
63
|
-
*/
|
|
64
|
-
dependencies?: Array<string>;
|
|
39
|
+
config?: { [key: string]: string; };
|
|
65
40
|
}
|
|
66
41
|
|
|
67
42
|
/**
|
|
68
43
|
* Check if a given object implements the Integration interface.
|
|
69
44
|
*/
|
|
70
|
-
export function instanceOfIntegration(value: object):
|
|
71
|
-
|
|
72
|
-
isInstance = isInstance && "name" in value;
|
|
73
|
-
isInstance = isInstance && "code" in value;
|
|
74
|
-
isInstance = isInstance && "config" in value;
|
|
75
|
-
isInstance = isInstance && "info" in value;
|
|
76
|
-
|
|
77
|
-
return isInstance;
|
|
45
|
+
export function instanceOfIntegration(value: object): value is Integration {
|
|
46
|
+
return true;
|
|
78
47
|
}
|
|
79
48
|
|
|
80
49
|
export function IntegrationFromJSON(json: any): Integration {
|
|
@@ -82,34 +51,25 @@ export function IntegrationFromJSON(json: any): Integration {
|
|
|
82
51
|
}
|
|
83
52
|
|
|
84
53
|
export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration {
|
|
85
|
-
if (
|
|
54
|
+
if (json == null) {
|
|
86
55
|
return json;
|
|
87
56
|
}
|
|
88
57
|
return {
|
|
89
58
|
|
|
90
|
-
'id':
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'config': json['config'],
|
|
94
|
-
'info': IntegrationInfoFromJSON(json['info']),
|
|
95
|
-
'dependencies': !exists(json, 'dependencies') ? undefined : json['dependencies'],
|
|
59
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
60
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
61
|
+
'config': json['config'] == null ? undefined : json['config'],
|
|
96
62
|
};
|
|
97
63
|
}
|
|
98
64
|
|
|
99
|
-
export function IntegrationToJSON(value?: Integration | null): any {
|
|
100
|
-
if (value
|
|
101
|
-
return
|
|
102
|
-
}
|
|
103
|
-
if (value === null) {
|
|
104
|
-
return null;
|
|
65
|
+
export function IntegrationToJSON(value?: Omit<Integration, 'id'> | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
105
68
|
}
|
|
106
69
|
return {
|
|
107
70
|
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'config': value.config,
|
|
111
|
-
'info': IntegrationInfoToJSON(value.info),
|
|
112
|
-
'dependencies': value.dependencies,
|
|
71
|
+
'code': value['code'],
|
|
72
|
+
'config': value['config'],
|
|
113
73
|
};
|
|
114
74
|
}
|
|
115
75
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Integrations API
|
|
5
5
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,8 @@ export interface IntegrationCategoriesResponse {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the IntegrationCategoriesResponse interface.
|
|
39
39
|
*/
|
|
40
|
-
export function instanceOfIntegrationCategoriesResponse(value: object):
|
|
41
|
-
if (!('categories' in value)) return false;
|
|
40
|
+
export function instanceOfIntegrationCategoriesResponse(value: object): value is IntegrationCategoriesResponse {
|
|
41
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -54,10 +54,10 @@ export type IntegrationCategoryTypeEnum = typeof IntegrationCategoryTypeEnum[key
|
|
|
54
54
|
/**
|
|
55
55
|
* Check if a given object implements the IntegrationCategory interface.
|
|
56
56
|
*/
|
|
57
|
-
export function instanceOfIntegrationCategory(value: object):
|
|
58
|
-
if (!('name' in value)) return false;
|
|
59
|
-
if (!('slug' in value)) return false;
|
|
60
|
-
if (!('type' in value)) return false;
|
|
57
|
+
export function instanceOfIntegrationCategory(value: object): value is IntegrationCategory {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
60
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -103,17 +103,17 @@ export interface IntegrationListing {
|
|
|
103
103
|
/**
|
|
104
104
|
* Check if a given object implements the IntegrationListing interface.
|
|
105
105
|
*/
|
|
106
|
-
export function instanceOfIntegrationListing(value: object):
|
|
107
|
-
if (!('slug' in value)) return false;
|
|
108
|
-
if (!('code' in value)) return false;
|
|
109
|
-
if (!('name' in value)) return false;
|
|
110
|
-
if (!('description' in value)) return false;
|
|
111
|
-
if (!('content' in value)) return false;
|
|
112
|
-
if (!('author' in value)) return false;
|
|
113
|
-
if (!('icon' in value)) return false;
|
|
114
|
-
if (!('gradient' in value)) return false;
|
|
115
|
-
if (!('dependencies' in value)) return false;
|
|
116
|
-
if (!('categories' in value)) return false;
|
|
106
|
+
export function instanceOfIntegrationListing(value: object): value is IntegrationListing {
|
|
107
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
108
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
109
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
111
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
112
|
+
if (!('author' in value) || value['author'] === undefined) return false;
|
|
113
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
114
|
+
if (!('gradient' in value) || value['gradient'] === undefined) return false;
|
|
115
|
+
if (!('dependencies' in value) || value['dependencies'] === undefined) return false;
|
|
116
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
117
117
|
return true;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,7 +36,7 @@ export interface IntegrationListingGradient {
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the IntegrationListingGradient interface.
|
|
38
38
|
*/
|
|
39
|
-
export function instanceOfIntegrationListingGradient(value: object):
|
|
39
|
+
export function instanceOfIntegrationListingGradient(value: object): value is IntegrationListingGradient {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,8 @@ export interface IntegrationListingsResponse {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the IntegrationListingsResponse interface.
|
|
39
39
|
*/
|
|
40
|
-
export function instanceOfIntegrationListingsResponse(value: object):
|
|
41
|
-
if (!('listings' in value)) return false;
|
|
40
|
+
export function instanceOfIntegrationListingsResponse(value: object): value is IntegrationListingsResponse {
|
|
41
|
+
if (!('listings' in value) || value['listings'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -60,12 +60,12 @@ export interface IntegrationProduct {
|
|
|
60
60
|
/**
|
|
61
61
|
* Check if a given object implements the IntegrationProduct interface.
|
|
62
62
|
*/
|
|
63
|
-
export function instanceOfIntegrationProduct(value: object):
|
|
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;
|
|
63
|
+
export function instanceOfIntegrationProduct(value: object): value is IntegrationProduct {
|
|
64
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
65
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
66
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
67
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
68
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
69
69
|
return true;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,8 @@ export interface IntegrationProductsResponse {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the IntegrationProductsResponse interface.
|
|
39
39
|
*/
|
|
40
|
-
export function instanceOfIntegrationProductsResponse(value: object):
|
|
41
|
-
if (!('products' in value)) return false;
|
|
40
|
+
export function instanceOfIntegrationProductsResponse(value: object): value is IntegrationProductsResponse {
|
|
41
|
+
if (!('products' in value) || value['products'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -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.10.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,
|
|
@@ -37,11 +37,9 @@ export interface IntegrationsResponse {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the IntegrationsResponse interface.
|
|
39
39
|
*/
|
|
40
|
-
export function instanceOfIntegrationsResponse(value: object):
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
40
|
+
export function instanceOfIntegrationsResponse(value: object): value is IntegrationsResponse {
|
|
41
|
+
if (!('integrations' in value) || value['integrations'] === undefined) 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
|
|
|
@@ -0,0 +1,107 @@
|
|
|
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.10.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 { mapValues } from '../runtime';
|
|
16
|
+
import type { CreateAdminIntegrationListingRequestGradient } from './CreateAdminIntegrationListingRequestGradient';
|
|
17
|
+
import {
|
|
18
|
+
CreateAdminIntegrationListingRequestGradientFromJSON,
|
|
19
|
+
CreateAdminIntegrationListingRequestGradientFromJSONTyped,
|
|
20
|
+
CreateAdminIntegrationListingRequestGradientToJSON,
|
|
21
|
+
} from './CreateAdminIntegrationListingRequestGradient';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UpdateAdminIntegrationListingRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface UpdateAdminIntegrationListingRequest {
|
|
29
|
+
/**
|
|
30
|
+
* The name of the integration listing
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The description of the integration listing
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
39
|
+
*/
|
|
40
|
+
description?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The html content of the integration listing
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
45
|
+
*/
|
|
46
|
+
content?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The slug of the integration listing that is used in the URL
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
51
|
+
*/
|
|
52
|
+
slug?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CreateAdminIntegrationListingRequestGradient}
|
|
56
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
57
|
+
*/
|
|
58
|
+
gradient?: CreateAdminIntegrationListingRequestGradient;
|
|
59
|
+
/**
|
|
60
|
+
* The icon of the integration listing
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
63
|
+
*/
|
|
64
|
+
icon?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the UpdateAdminIntegrationListingRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfUpdateAdminIntegrationListingRequest(value: object): value is UpdateAdminIntegrationListingRequest {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function UpdateAdminIntegrationListingRequestFromJSON(json: any): UpdateAdminIntegrationListingRequest {
|
|
75
|
+
return UpdateAdminIntegrationListingRequestFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function UpdateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminIntegrationListingRequest {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
85
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
86
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
87
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
88
|
+
'gradient': json['gradient'] == null ? undefined : CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
|
|
89
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function UpdateAdminIntegrationListingRequestToJSON(value?: UpdateAdminIntegrationListingRequest | null): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'description': value['description'],
|
|
101
|
+
'content': value['content'],
|
|
102
|
+
'slug': value['slug'],
|
|
103
|
+
'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
|
|
104
|
+
'icon': value['icon'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './ApiError';
|
|
4
|
+
export * from './CreateAdminIntegrationListingRequest';
|
|
5
|
+
export * from './CreateAdminIntegrationListingRequestGradient';
|
|
6
|
+
export * from './Integration';
|
|
4
7
|
export * from './IntegrationCategoriesResponse';
|
|
5
8
|
export * from './IntegrationCategory';
|
|
6
9
|
export * from './IntegrationListing';
|
|
@@ -8,3 +11,5 @@ export * from './IntegrationListingGradient';
|
|
|
8
11
|
export * from './IntegrationListingsResponse';
|
|
9
12
|
export * from './IntegrationProduct';
|
|
10
13
|
export * from './IntegrationProductsResponse';
|
|
14
|
+
export * from './IntegrationsResponse';
|
|
15
|
+
export * from './UpdateAdminIntegrationListingRequest';
|
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.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|