@teemill/integrations 0.1.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 +15 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/IntegrationsApi.d.ts +41 -0
- package/dist/apis/IntegrationsApi.js +169 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ApiError.d.ts +37 -0
- package/dist/models/ApiError.js +53 -0
- package/dist/models/Integration.d.ts +62 -0
- package/dist/models/Integration.js +65 -0
- package/dist/models/IntegrationInfo.d.ts +49 -0
- package/dist/models/IntegrationInfo.js +59 -0
- package/dist/models/IntegrationsResponse.d.ts +32 -0
- package/dist/models/IntegrationsResponse.js +51 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +22 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +19 -0
- package/src/apis/IntegrationsApi.ts +100 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/ApiError.ts +74 -0
- package/src/models/Integration.ts +116 -0
- package/src/models/IntegrationInfo.ts +93 -0
- package/src/models/IntegrationsResponse.ts +73 -0
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,74 @@
|
|
|
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.1.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiError
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiError {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiError
|
|
26
|
+
*/
|
|
27
|
+
code?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiError
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiError interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiError(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "message" in value;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ApiErrorFromJSON(json: any): ApiError {
|
|
47
|
+
return ApiErrorFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
57
|
+
'message': json['message'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ApiErrorToJSON(value?: ApiError | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'code': value.code,
|
|
71
|
+
'message': value.message,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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.1.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { IntegrationInfo } from './IntegrationInfo';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationInfoFromJSON,
|
|
19
|
+
IntegrationInfoFromJSONTyped,
|
|
20
|
+
IntegrationInfoToJSON,
|
|
21
|
+
} from './IntegrationInfo';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Integration
|
|
27
|
+
*/
|
|
28
|
+
export interface Integration {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof Integration
|
|
33
|
+
*/
|
|
34
|
+
readonly id?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Integration
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Integration
|
|
45
|
+
*/
|
|
46
|
+
code: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {object}
|
|
50
|
+
* @memberof Integration
|
|
51
|
+
*/
|
|
52
|
+
config: object;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {IntegrationInfo}
|
|
56
|
+
* @memberof Integration
|
|
57
|
+
*/
|
|
58
|
+
info: IntegrationInfo;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof Integration
|
|
63
|
+
*/
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the Integration interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfIntegration(value: object): boolean {
|
|
71
|
+
let isInstance = true;
|
|
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
|
+
isInstance = isInstance && "enabled" in value;
|
|
77
|
+
|
|
78
|
+
return isInstance;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function IntegrationFromJSON(json: any): Integration {
|
|
82
|
+
return IntegrationFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration {
|
|
86
|
+
if ((json === undefined) || (json === null)) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
92
|
+
'name': json['name'],
|
|
93
|
+
'code': json['code'],
|
|
94
|
+
'config': json['config'],
|
|
95
|
+
'info': IntegrationInfoFromJSON(json['info']),
|
|
96
|
+
'enabled': json['enabled'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function IntegrationToJSON(value?: Integration | null): any {
|
|
101
|
+
if (value === undefined) {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
if (value === null) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'name': value.name,
|
|
110
|
+
'code': value.code,
|
|
111
|
+
'config': value.config,
|
|
112
|
+
'info': IntegrationInfoToJSON(value.info),
|
|
113
|
+
'enabled': value.enabled,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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.1.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IntegrationInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface IntegrationInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IntegrationInfo
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IntegrationInfo
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IntegrationInfo
|
|
38
|
+
*/
|
|
39
|
+
author: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {object}
|
|
43
|
+
* @memberof IntegrationInfo
|
|
44
|
+
*/
|
|
45
|
+
icon: object;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the IntegrationInfo interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIntegrationInfo(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "name" in value;
|
|
54
|
+
isInstance = isInstance && "description" in value;
|
|
55
|
+
isInstance = isInstance && "author" in value;
|
|
56
|
+
isInstance = isInstance && "icon" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function IntegrationInfoFromJSON(json: any): IntegrationInfo {
|
|
62
|
+
return IntegrationInfoFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function IntegrationInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationInfo {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'description': json['description'],
|
|
73
|
+
'author': json['author'],
|
|
74
|
+
'icon': json['icon'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function IntegrationInfoToJSON(value?: IntegrationInfo | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value.name,
|
|
88
|
+
'description': value.description,
|
|
89
|
+
'author': value.author,
|
|
90
|
+
'icon': value.icon,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Integrations API
|
|
5
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { 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): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "integrations" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
|
|
48
|
+
return IntegrationsResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'integrations': ((json['integrations'] as Array<any>).map(IntegrationFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'integrations': ((value.integrations as Array<any>).map(IntegrationToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|