@teemill/integrations 0.11.1 → 0.12.5
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 +6 -18
- package/README.md +3 -3
- package/api.ts +1649 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1100 -0
- package/dist/api.js +910 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1100 -0
- package/dist/esm/api.js +903 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +14 -2
- package/tsconfig.json +4 -6
- package/dist/apis/IntegrationsApi.d.ts +0 -164
- package/dist/apis/IntegrationsApi.js +0 -490
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/esm/apis/IntegrationsApi.d.ts +0 -164
- package/dist/esm/apis/IntegrationsApi.js +0 -486
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -3
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/CategoriesResponse.d.ts +0 -32
- package/dist/esm/models/CategoriesResponse.js +0 -44
- package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +0 -73
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -37
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +0 -40
- package/dist/esm/models/Integration.d.ts +0 -45
- package/dist/esm/models/Integration.js +0 -41
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationCategoriesResponse.js +0 -41
- package/dist/esm/models/IntegrationCategory.d.ts +0 -52
- package/dist/esm/models/IntegrationCategory.js +0 -56
- package/dist/esm/models/IntegrationInfo.d.ts +0 -49
- package/dist/esm/models/IntegrationInfo.js +0 -52
- package/dist/esm/models/IntegrationListing.d.ts +0 -93
- package/dist/esm/models/IntegrationListing.js +0 -79
- package/dist/esm/models/IntegrationListingGradient.d.ts +0 -37
- package/dist/esm/models/IntegrationListingGradient.js +0 -40
- package/dist/esm/models/IntegrationListingsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationListingsResponse.js +0 -41
- package/dist/esm/models/IntegrationProduct.d.ts +0 -61
- package/dist/esm/models/IntegrationProduct.js +0 -57
- package/dist/esm/models/IntegrationProductsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationProductsResponse.js +0 -41
- package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationsResponse.js +0 -41
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +0 -55
- package/dist/esm/models/index.d.ts +0 -13
- package/dist/esm/models/index.js +0 -15
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/CategoriesResponse.d.ts +0 -32
- package/dist/models/CategoriesResponse.js +0 -51
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/models/CreateAdminIntegrationListingRequest.js +0 -80
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -37
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +0 -47
- package/dist/models/Integration.d.ts +0 -45
- package/dist/models/Integration.js +0 -48
- package/dist/models/IntegrationCategoriesResponse.d.ts +0 -32
- package/dist/models/IntegrationCategoriesResponse.js +0 -48
- package/dist/models/IntegrationCategory.d.ts +0 -52
- package/dist/models/IntegrationCategory.js +0 -63
- package/dist/models/IntegrationInfo.d.ts +0 -49
- package/dist/models/IntegrationInfo.js +0 -59
- package/dist/models/IntegrationListing.d.ts +0 -93
- package/dist/models/IntegrationListing.js +0 -86
- package/dist/models/IntegrationListingGradient.d.ts +0 -37
- package/dist/models/IntegrationListingGradient.js +0 -47
- package/dist/models/IntegrationListingsResponse.d.ts +0 -32
- package/dist/models/IntegrationListingsResponse.js +0 -48
- package/dist/models/IntegrationProduct.d.ts +0 -61
- package/dist/models/IntegrationProduct.js +0 -64
- package/dist/models/IntegrationProductsResponse.d.ts +0 -32
- package/dist/models/IntegrationProductsResponse.js +0 -48
- package/dist/models/IntegrationsResponse.d.ts +0 -32
- package/dist/models/IntegrationsResponse.js +0 -48
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/models/UpdateAdminIntegrationListingRequest.js +0 -62
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.js +0 -31
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/IntegrationsApi.ts +0 -676
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/CategoriesResponse.ts +0 -73
- package/src/models/CreateAdminIntegrationListingRequest.ts +0 -140
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +0 -68
- package/src/models/Integration.ts +0 -75
- package/src/models/IntegrationCategoriesResponse.ts +0 -68
- package/src/models/IntegrationCategory.ts +0 -91
- package/src/models/IntegrationInfo.ts +0 -93
- package/src/models/IntegrationListing.ts +0 -162
- package/src/models/IntegrationListingGradient.ts +0 -68
- package/src/models/IntegrationListingsResponse.ts +0 -68
- package/src/models/IntegrationProduct.ts +0 -104
- package/src/models/IntegrationProductsResponse.ts +0 -68
- package/src/models/IntegrationsResponse.ts +0 -68
- package/src/models/UpdateAdminIntegrationListingRequest.ts +0 -131
- package/src/models/index.ts +0 -15
- package/src/runtime.ts +0 -441
|
@@ -1,162 +0,0 @@
|
|
|
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.11.1
|
|
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 { 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 slug of the integration listing that is used in the URL
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof IntegrationListing
|
|
45
|
-
*/
|
|
46
|
-
slug: string;
|
|
47
|
-
/**
|
|
48
|
-
* The code of the integration
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof IntegrationListing
|
|
51
|
-
*/
|
|
52
|
-
code: string;
|
|
53
|
-
/**
|
|
54
|
-
* The name of the integration listing
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof IntegrationListing
|
|
57
|
-
*/
|
|
58
|
-
name: string;
|
|
59
|
-
/**
|
|
60
|
-
* The description of the integration listing
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof IntegrationListing
|
|
63
|
-
*/
|
|
64
|
-
description: string;
|
|
65
|
-
/**
|
|
66
|
-
* The html content of the integration listing
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof IntegrationListing
|
|
69
|
-
*/
|
|
70
|
-
content: string;
|
|
71
|
-
/**
|
|
72
|
-
* The author of the integration listing
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof IntegrationListing
|
|
75
|
-
*/
|
|
76
|
-
author: string;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {object}
|
|
80
|
-
* @memberof IntegrationListing
|
|
81
|
-
*/
|
|
82
|
-
icon: object;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {IntegrationListingGradient}
|
|
86
|
-
* @memberof IntegrationListing
|
|
87
|
-
*/
|
|
88
|
-
gradient: IntegrationListingGradient;
|
|
89
|
-
/**
|
|
90
|
-
* The dependencies that this integration listing requires
|
|
91
|
-
* @type {Array<string>}
|
|
92
|
-
* @memberof IntegrationListing
|
|
93
|
-
*/
|
|
94
|
-
dependencies: Array<string>;
|
|
95
|
-
/**
|
|
96
|
-
* The categories that this listing belongs to
|
|
97
|
-
* @type {Array<IntegrationCategory>}
|
|
98
|
-
* @memberof IntegrationListing
|
|
99
|
-
*/
|
|
100
|
-
categories: Array<IntegrationCategory>;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Check if a given object implements the IntegrationListing interface.
|
|
105
|
-
*/
|
|
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
|
-
return true;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function IntegrationListingFromJSON(json: any): IntegrationListing {
|
|
121
|
-
return IntegrationListingFromJSONTyped(json, false);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function IntegrationListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListing {
|
|
125
|
-
if (json == null) {
|
|
126
|
-
return json;
|
|
127
|
-
}
|
|
128
|
-
return {
|
|
129
|
-
|
|
130
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
131
|
-
'slug': json['slug'],
|
|
132
|
-
'code': json['code'],
|
|
133
|
-
'name': json['name'],
|
|
134
|
-
'description': json['description'],
|
|
135
|
-
'content': json['content'],
|
|
136
|
-
'author': json['author'],
|
|
137
|
-
'icon': json['icon'],
|
|
138
|
-
'gradient': IntegrationListingGradientFromJSON(json['gradient']),
|
|
139
|
-
'dependencies': json['dependencies'],
|
|
140
|
-
'categories': ((json['categories'] as Array<any>).map(IntegrationCategoryFromJSON)),
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export function IntegrationListingToJSON(value?: Omit<IntegrationListing, 'id'> | null): any {
|
|
145
|
-
if (value == null) {
|
|
146
|
-
return value;
|
|
147
|
-
}
|
|
148
|
-
return {
|
|
149
|
-
|
|
150
|
-
'slug': value['slug'],
|
|
151
|
-
'code': value['code'],
|
|
152
|
-
'name': value['name'],
|
|
153
|
-
'description': value['description'],
|
|
154
|
-
'content': value['content'],
|
|
155
|
-
'author': value['author'],
|
|
156
|
-
'icon': value['icon'],
|
|
157
|
-
'gradient': IntegrationListingGradientToJSON(value['gradient']),
|
|
158
|
-
'dependencies': value['dependencies'],
|
|
159
|
-
'categories': ((value['categories'] as Array<any>).map(IntegrationCategoryToJSON)),
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
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.11.1
|
|
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 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): value is IntegrationListingGradient {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function IntegrationListingGradientFromJSON(json: any): IntegrationListingGradient {
|
|
44
|
-
return IntegrationListingGradientFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function IntegrationListingGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListingGradient {
|
|
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 IntegrationListingGradientToJSON(value?: IntegrationListingGradient | null): any {
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
|
|
64
|
-
'from': value['from'],
|
|
65
|
-
'to': value['to'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
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.11.1
|
|
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 { 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): value is IntegrationListingsResponse {
|
|
41
|
-
if (!('listings' in value) || value['listings'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IntegrationListingsResponseFromJSON(json: any): IntegrationListingsResponse {
|
|
46
|
-
return IntegrationListingsResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IntegrationListingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListingsResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'listings': ((json['listings'] as Array<any>).map(IntegrationListingFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IntegrationListingsResponseToJSON(value?: IntegrationListingsResponse | null): any {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'listings': ((value['listings'] as Array<any>).map(IntegrationListingToJSON)),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,104 +0,0 @@
|
|
|
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.11.1
|
|
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
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface IntegrationProduct
|
|
20
|
-
*/
|
|
21
|
-
export interface IntegrationProduct {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the product
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof IntegrationProduct
|
|
26
|
-
*/
|
|
27
|
-
readonly id?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The SKU of the product
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof IntegrationProduct
|
|
32
|
-
*/
|
|
33
|
-
sku: string;
|
|
34
|
-
/**
|
|
35
|
-
* The name of the product
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof IntegrationProduct
|
|
38
|
-
*/
|
|
39
|
-
name: string;
|
|
40
|
-
/**
|
|
41
|
-
* The slug of the product that is used in the URL
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof IntegrationProduct
|
|
44
|
-
*/
|
|
45
|
-
slug: string;
|
|
46
|
-
/**
|
|
47
|
-
* The user facing description of the product
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof IntegrationProduct
|
|
50
|
-
*/
|
|
51
|
-
description: string;
|
|
52
|
-
/**
|
|
53
|
-
* The price of the product in GBP
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof IntegrationProduct
|
|
56
|
-
*/
|
|
57
|
-
price: number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Check if a given object implements the IntegrationProduct interface.
|
|
62
|
-
*/
|
|
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
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function IntegrationProductFromJSON(json: any): IntegrationProduct {
|
|
73
|
-
return IntegrationProductFromJSONTyped(json, false);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function IntegrationProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProduct {
|
|
77
|
-
if (json == null) {
|
|
78
|
-
return json;
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
|
|
82
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
83
|
-
'sku': json['sku'],
|
|
84
|
-
'name': json['name'],
|
|
85
|
-
'slug': json['slug'],
|
|
86
|
-
'description': json['description'],
|
|
87
|
-
'price': json['price'],
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function IntegrationProductToJSON(value?: Omit<IntegrationProduct, 'id'> | null): any {
|
|
92
|
-
if (value == null) {
|
|
93
|
-
return value;
|
|
94
|
-
}
|
|
95
|
-
return {
|
|
96
|
-
|
|
97
|
-
'sku': value['sku'],
|
|
98
|
-
'name': value['name'],
|
|
99
|
-
'slug': value['slug'],
|
|
100
|
-
'description': value['description'],
|
|
101
|
-
'price': value['price'],
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
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.11.1
|
|
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 { IntegrationProduct } from './IntegrationProduct';
|
|
17
|
-
import {
|
|
18
|
-
IntegrationProductFromJSON,
|
|
19
|
-
IntegrationProductFromJSONTyped,
|
|
20
|
-
IntegrationProductToJSON,
|
|
21
|
-
} from './IntegrationProduct';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface IntegrationProductsResponse
|
|
27
|
-
*/
|
|
28
|
-
export interface IntegrationProductsResponse {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<IntegrationProduct>}
|
|
32
|
-
* @memberof IntegrationProductsResponse
|
|
33
|
-
*/
|
|
34
|
-
products: Array<IntegrationProduct>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the IntegrationProductsResponse interface.
|
|
39
|
-
*/
|
|
40
|
-
export function instanceOfIntegrationProductsResponse(value: object): value is IntegrationProductsResponse {
|
|
41
|
-
if (!('products' in value) || value['products'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IntegrationProductsResponseFromJSON(json: any): IntegrationProductsResponse {
|
|
46
|
-
return IntegrationProductsResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IntegrationProductsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationProductsResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'products': ((json['products'] as Array<any>).map(IntegrationProductFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IntegrationProductsResponseToJSON(value?: IntegrationProductsResponse | null): any {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'products': ((value['products'] as Array<any>).map(IntegrationProductToJSON)),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
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.11.1
|
|
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 { Integration } from './Integration';
|
|
17
|
-
import {
|
|
18
|
-
IntegrationFromJSON,
|
|
19
|
-
IntegrationFromJSONTyped,
|
|
20
|
-
IntegrationToJSON,
|
|
21
|
-
} from './Integration';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface IntegrationsResponse
|
|
27
|
-
*/
|
|
28
|
-
export interface IntegrationsResponse {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<Integration>}
|
|
32
|
-
* @memberof IntegrationsResponse
|
|
33
|
-
*/
|
|
34
|
-
integrations: Array<Integration>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the IntegrationsResponse interface.
|
|
39
|
-
*/
|
|
40
|
-
export function instanceOfIntegrationsResponse(value: object): value is IntegrationsResponse {
|
|
41
|
-
if (!('integrations' in value) || value['integrations'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
|
|
46
|
-
return IntegrationsResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'integrations': ((json['integrations'] as Array<any>).map(IntegrationFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'integrations': ((value['integrations'] as Array<any>).map(IntegrationToJSON)),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,131 +0,0 @@
|
|
|
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.11.1
|
|
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 code of the integration
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof UpdateAdminIntegrationListingRequest
|
|
51
|
-
*/
|
|
52
|
-
integration?: string;
|
|
53
|
-
/**
|
|
54
|
-
* The author of the integration listing
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof UpdateAdminIntegrationListingRequest
|
|
57
|
-
*/
|
|
58
|
-
author?: string;
|
|
59
|
-
/**
|
|
60
|
-
* The slug of the integration listing that is used in the URL
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof UpdateAdminIntegrationListingRequest
|
|
63
|
-
*/
|
|
64
|
-
slug?: string;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {CreateAdminIntegrationListingRequestGradient}
|
|
68
|
-
* @memberof UpdateAdminIntegrationListingRequest
|
|
69
|
-
*/
|
|
70
|
-
gradient?: CreateAdminIntegrationListingRequestGradient;
|
|
71
|
-
/**
|
|
72
|
-
* The icon of the integration listing
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof UpdateAdminIntegrationListingRequest
|
|
75
|
-
*/
|
|
76
|
-
icon?: string;
|
|
77
|
-
/**
|
|
78
|
-
* The categories that this listing belongs to
|
|
79
|
-
* @type {Array<string>}
|
|
80
|
-
* @memberof UpdateAdminIntegrationListingRequest
|
|
81
|
-
*/
|
|
82
|
-
categories?: Array<string>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Check if a given object implements the UpdateAdminIntegrationListingRequest interface.
|
|
87
|
-
*/
|
|
88
|
-
export function instanceOfUpdateAdminIntegrationListingRequest(value: object): value is UpdateAdminIntegrationListingRequest {
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function UpdateAdminIntegrationListingRequestFromJSON(json: any): UpdateAdminIntegrationListingRequest {
|
|
93
|
-
return UpdateAdminIntegrationListingRequestFromJSONTyped(json, false);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function UpdateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminIntegrationListingRequest {
|
|
97
|
-
if (json == null) {
|
|
98
|
-
return json;
|
|
99
|
-
}
|
|
100
|
-
return {
|
|
101
|
-
|
|
102
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
103
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
104
|
-
'content': json['content'] == null ? undefined : json['content'],
|
|
105
|
-
'integration': json['integration'] == null ? undefined : json['integration'],
|
|
106
|
-
'author': json['author'] == null ? undefined : json['author'],
|
|
107
|
-
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
108
|
-
'gradient': json['gradient'] == null ? undefined : CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
|
|
109
|
-
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
110
|
-
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export function UpdateAdminIntegrationListingRequestToJSON(value?: UpdateAdminIntegrationListingRequest | null): any {
|
|
115
|
-
if (value == null) {
|
|
116
|
-
return value;
|
|
117
|
-
}
|
|
118
|
-
return {
|
|
119
|
-
|
|
120
|
-
'name': value['name'],
|
|
121
|
-
'description': value['description'],
|
|
122
|
-
'content': value['content'],
|
|
123
|
-
'integration': value['integration'],
|
|
124
|
-
'author': value['author'],
|
|
125
|
-
'slug': value['slug'],
|
|
126
|
-
'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
|
|
127
|
-
'icon': value['icon'],
|
|
128
|
-
'categories': value['categories'],
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
|
package/src/models/index.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export * from './ApiError';
|
|
4
|
-
export * from './CreateAdminIntegrationListingRequest';
|
|
5
|
-
export * from './CreateAdminIntegrationListingRequestGradient';
|
|
6
|
-
export * from './Integration';
|
|
7
|
-
export * from './IntegrationCategoriesResponse';
|
|
8
|
-
export * from './IntegrationCategory';
|
|
9
|
-
export * from './IntegrationListing';
|
|
10
|
-
export * from './IntegrationListingGradient';
|
|
11
|
-
export * from './IntegrationListingsResponse';
|
|
12
|
-
export * from './IntegrationProduct';
|
|
13
|
-
export * from './IntegrationProductsResponse';
|
|
14
|
-
export * from './IntegrationsResponse';
|
|
15
|
-
export * from './UpdateAdminIntegrationListingRequest';
|