@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teemill/integrations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "OpenAPI client for @teemill/integrations",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"typings": "./dist/index.d.ts",
|
|
12
|
+
"module": "./dist/esm/index.js",
|
|
13
|
+
"sideEffects": false,
|
|
12
14
|
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
15
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
14
16
|
"prepare": "npm run build"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
@@ -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).
|
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
IntegrationListingsResponse,
|
|
22
22
|
IntegrationProduct,
|
|
23
23
|
IntegrationProductsResponse,
|
|
24
|
+
IntegrationsResponse,
|
|
24
25
|
} from '../models/index';
|
|
25
26
|
import {
|
|
26
27
|
ApiErrorFromJSON,
|
|
@@ -35,6 +36,8 @@ import {
|
|
|
35
36
|
IntegrationProductToJSON,
|
|
36
37
|
IntegrationProductsResponseFromJSON,
|
|
37
38
|
IntegrationProductsResponseToJSON,
|
|
39
|
+
IntegrationsResponseFromJSON,
|
|
40
|
+
IntegrationsResponseToJSON,
|
|
38
41
|
} from '../models/index';
|
|
39
42
|
|
|
40
43
|
export interface GetIntegrationCategoryRequest {
|
|
@@ -351,4 +354,48 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
351
354
|
return await response.value();
|
|
352
355
|
}
|
|
353
356
|
|
|
357
|
+
/**
|
|
358
|
+
* List all integrations
|
|
359
|
+
* List integrations
|
|
360
|
+
*/
|
|
361
|
+
async getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
362
|
+
const queryParameters: any = {};
|
|
363
|
+
|
|
364
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
365
|
+
|
|
366
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
367
|
+
// oauth required
|
|
368
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
372
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const response = await this.request({
|
|
376
|
+
path: `/v1/integrations`,
|
|
377
|
+
method: 'GET',
|
|
378
|
+
headers: headerParameters,
|
|
379
|
+
query: queryParameters,
|
|
380
|
+
}, initOverrides);
|
|
381
|
+
|
|
382
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* List all integrations
|
|
387
|
+
* List integrations
|
|
388
|
+
*/
|
|
389
|
+
async getIntegrations(
|
|
390
|
+
|
|
391
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
392
|
+
): Promise<IntegrationsResponse> {
|
|
393
|
+
const response = await this.getIntegrationsRaw(
|
|
394
|
+
|
|
395
|
+
initOverrides
|
|
396
|
+
);
|
|
397
|
+
|
|
398
|
+
return await response.value();
|
|
399
|
+
}
|
|
400
|
+
|
|
354
401
|
}
|
package/src/models/ApiError.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).
|
|
@@ -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
|
|
@@ -37,10 +37,8 @@ export interface ApiError {
|
|
|
37
37
|
* Check if a given object implements the ApiError interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfApiError(value: object): boolean {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return isInstance;
|
|
40
|
+
if (!('message' in value)) return false;
|
|
41
|
+
return true;
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
export function ApiErrorFromJSON(json: any): ApiError {
|
|
@@ -48,27 +46,24 @@ export function ApiErrorFromJSON(json: any): ApiError {
|
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
|
|
51
|
-
if (
|
|
49
|
+
if (json == null) {
|
|
52
50
|
return json;
|
|
53
51
|
}
|
|
54
52
|
return {
|
|
55
53
|
|
|
56
|
-
'code':
|
|
54
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
57
55
|
'message': json['message'],
|
|
58
56
|
};
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function ApiErrorToJSON(value?: ApiError | 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
|
-
'code': value
|
|
71
|
-
'message': value
|
|
65
|
+
'code': value['code'],
|
|
66
|
+
'message': value['message'],
|
|
72
67
|
};
|
|
73
68
|
}
|
|
74
69
|
|
|
@@ -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,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
45
|
export function instanceOfIntegration(value: object): boolean {
|
|
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;
|
|
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.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 { IntegrationCategory } from './IntegrationCategory';
|
|
17
17
|
import {
|
|
18
18
|
IntegrationCategoryFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface IntegrationCategoriesResponse {
|
|
|
38
38
|
* Check if a given object implements the IntegrationCategoriesResponse interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfIntegrationCategoriesResponse(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('categories' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function IntegrationCategoriesResponseFromJSON(json: any): IntegrationCategoriesResponse {
|
|
@@ -49,7 +47,7 @@ export function IntegrationCategoriesResponseFromJSON(json: any): IntegrationCat
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function IntegrationCategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategoriesResponse {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function IntegrationCategoriesResponseFromJSONTyped(json: any, ignoreDisc
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function IntegrationCategoriesResponseToJSON(value?: IntegrationCategoriesResponse | 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
|
-
'categories': ((value
|
|
65
|
+
'categories': ((value['categories'] as Array<any>).map(IntegrationCategoryToJSON)),
|
|
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
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
@@ -55,12 +55,10 @@ export type IntegrationCategoryTypeEnum = typeof IntegrationCategoryTypeEnum[key
|
|
|
55
55
|
* Check if a given object implements the IntegrationCategory interface.
|
|
56
56
|
*/
|
|
57
57
|
export function instanceOfIntegrationCategory(value: object): boolean {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return isInstance;
|
|
58
|
+
if (!('name' in value)) return false;
|
|
59
|
+
if (!('slug' in value)) return false;
|
|
60
|
+
if (!('type' in value)) return false;
|
|
61
|
+
return true;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
export function IntegrationCategoryFromJSON(json: any): IntegrationCategory {
|
|
@@ -68,7 +66,7 @@ export function IntegrationCategoryFromJSON(json: any): IntegrationCategory {
|
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
export function IntegrationCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategory {
|
|
71
|
-
if (
|
|
69
|
+
if (json == null) {
|
|
72
70
|
return json;
|
|
73
71
|
}
|
|
74
72
|
return {
|
|
@@ -80,17 +78,14 @@ export function IntegrationCategoryFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
export function IntegrationCategoryToJSON(value?: IntegrationCategory | null): any {
|
|
83
|
-
if (value
|
|
84
|
-
return
|
|
85
|
-
}
|
|
86
|
-
if (value === null) {
|
|
87
|
-
return null;
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
88
83
|
}
|
|
89
84
|
return {
|
|
90
85
|
|
|
91
|
-
'name': value
|
|
92
|
-
'slug': value
|
|
93
|
-
'type': value
|
|
86
|
+
'name': value['name'],
|
|
87
|
+
'slug': value['slug'],
|
|
88
|
+
'type': value['type'],
|
|
94
89
|
};
|
|
95
90
|
}
|
|
96
91
|
|
|
@@ -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 { IntegrationCategory } from './IntegrationCategory';
|
|
17
17
|
import {
|
|
18
18
|
IntegrationCategoryFromJSON,
|
|
@@ -104,19 +104,17 @@ export interface IntegrationListing {
|
|
|
104
104
|
* Check if a given object implements the IntegrationListing interface.
|
|
105
105
|
*/
|
|
106
106
|
export function instanceOfIntegrationListing(value: object): boolean {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return isInstance;
|
|
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;
|
|
117
|
+
return true;
|
|
120
118
|
}
|
|
121
119
|
|
|
122
120
|
export function IntegrationListingFromJSON(json: any): IntegrationListing {
|
|
@@ -124,12 +122,12 @@ export function IntegrationListingFromJSON(json: any): IntegrationListing {
|
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
export function IntegrationListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListing {
|
|
127
|
-
if (
|
|
125
|
+
if (json == null) {
|
|
128
126
|
return json;
|
|
129
127
|
}
|
|
130
128
|
return {
|
|
131
129
|
|
|
132
|
-
'id':
|
|
130
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
133
131
|
'slug': json['slug'],
|
|
134
132
|
'code': json['code'],
|
|
135
133
|
'name': json['name'],
|
|
@@ -143,25 +141,22 @@ export function IntegrationListingFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
143
141
|
};
|
|
144
142
|
}
|
|
145
143
|
|
|
146
|
-
export function IntegrationListingToJSON(value?: IntegrationListing | null): any {
|
|
147
|
-
if (value
|
|
148
|
-
return
|
|
149
|
-
}
|
|
150
|
-
if (value === null) {
|
|
151
|
-
return null;
|
|
144
|
+
export function IntegrationListingToJSON(value?: Omit<IntegrationListing, 'id'> | null): any {
|
|
145
|
+
if (value == null) {
|
|
146
|
+
return value;
|
|
152
147
|
}
|
|
153
148
|
return {
|
|
154
149
|
|
|
155
|
-
'slug': value
|
|
156
|
-
'code': value
|
|
157
|
-
'name': value
|
|
158
|
-
'description': value
|
|
159
|
-
'content': value
|
|
160
|
-
'author': value
|
|
161
|
-
'icon': value
|
|
162
|
-
'gradient': IntegrationListingGradientToJSON(value
|
|
163
|
-
'dependencies': value
|
|
164
|
-
'categories': ((value
|
|
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)),
|
|
165
160
|
};
|
|
166
161
|
}
|
|
167
162
|
|
|
@@ -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
|
* The gradient that is used to display the listing
|
|
18
18
|
* @export
|
|
@@ -37,9 +37,7 @@ export interface IntegrationListingGradient {
|
|
|
37
37
|
* Check if a given object implements the IntegrationListingGradient interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfIntegrationListingGradient(value: object): boolean {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return isInstance;
|
|
40
|
+
return true;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
export function IntegrationListingGradientFromJSON(json: any): IntegrationListingGradient {
|
|
@@ -47,27 +45,24 @@ export function IntegrationListingGradientFromJSON(json: any): IntegrationListin
|
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
export function IntegrationListingGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListingGradient {
|
|
50
|
-
if (
|
|
48
|
+
if (json == null) {
|
|
51
49
|
return json;
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
54
52
|
|
|
55
|
-
'from':
|
|
56
|
-
'to':
|
|
53
|
+
'from': json['from'] == null ? undefined : json['from'],
|
|
54
|
+
'to': json['to'] == null ? undefined : json['to'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
export function IntegrationListingGradientToJSON(value?: IntegrationListingGradient | null): any {
|
|
61
|
-
if (value
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
if (value === null) {
|
|
65
|
-
return null;
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
66
61
|
}
|
|
67
62
|
return {
|
|
68
63
|
|
|
69
|
-
'from': value
|
|
70
|
-
'to': value
|
|
64
|
+
'from': value['from'],
|
|
65
|
+
'to': value['to'],
|
|
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 { IntegrationListing } from './IntegrationListing';
|
|
17
17
|
import {
|
|
18
18
|
IntegrationListingFromJSON,
|
|
@@ -38,10 +38,8 @@ export interface IntegrationListingsResponse {
|
|
|
38
38
|
* Check if a given object implements the IntegrationListingsResponse interface.
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfIntegrationListingsResponse(value: object): boolean {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return isInstance;
|
|
41
|
+
if (!('listings' in value)) return false;
|
|
42
|
+
return true;
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
export function IntegrationListingsResponseFromJSON(json: any): IntegrationListingsResponse {
|
|
@@ -49,7 +47,7 @@ export function IntegrationListingsResponseFromJSON(json: any): IntegrationListi
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
export function IntegrationListingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationListingsResponse {
|
|
52
|
-
if (
|
|
50
|
+
if (json == null) {
|
|
53
51
|
return json;
|
|
54
52
|
}
|
|
55
53
|
return {
|
|
@@ -59,15 +57,12 @@ export function IntegrationListingsResponseFromJSONTyped(json: any, ignoreDiscri
|
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export function IntegrationListingsResponseToJSON(value?: IntegrationListingsResponse | 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
|
-
'listings': ((value
|
|
65
|
+
'listings': ((value['listings'] as Array<any>).map(IntegrationListingToJSON)),
|
|
71
66
|
};
|
|
72
67
|
}
|
|
73
68
|
|