@teemill/projects 1.0.0 → 1.0.2
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 +13 -6
- package/README.md +3 -3
- package/dist/apis/IntegrationsApi.d.ts +58 -0
- package/dist/apis/IntegrationsApi.js +221 -0
- package/dist/apis/ProjectsApi.d.ts +77 -0
- package/dist/apis/ProjectsApi.js +304 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/index.d.ts +3 -13
- package/dist/index.js +5 -15
- package/dist/models/ApiError.d.ts +37 -0
- package/dist/models/ApiError.js +53 -0
- package/dist/models/Integration.d.ts +56 -0
- package/dist/models/Integration.js +62 -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/Project.d.ts +50 -0
- package/dist/models/Project.js +60 -0
- package/dist/models/ProjectLogo.d.ts +37 -0
- package/dist/models/ProjectLogo.js +52 -0
- package/dist/models/ProjectsResponse.d.ts +32 -0
- package/dist/models/ProjectsResponse.js +51 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +25 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +3 -15
- package/src/apis/IntegrationsApi.ts +149 -0
- package/src/apis/ProjectsApi.ts +200 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/ApiError.ts +74 -0
- package/src/models/Integration.ts +107 -0
- package/src/models/IntegrationInfo.ts +93 -0
- package/src/models/IntegrationsResponse.ts +73 -0
- package/src/models/Project.ts +99 -0
- package/src/models/ProjectLogo.ts +73 -0
- package/src/models/ProjectsResponse.ts +73 -0
- package/src/models/index.ts +9 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.json +2 -3
- package/api.ts +0 -462
- package/base.ts +0 -72
- package/common.ts +0 -150
- package/configuration.ts +0 -101
- package/dist/api.d.ts +0 -274
- package/dist/api.js +0 -489
- package/dist/base.d.ts +0 -54
- package/dist/base.js +0 -80
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -252
- package/dist/configuration.d.ts +0 -83
- package/dist/configuration.js +0 -44
- package/git_push.sh +0 -57
- package/index.ts +0 -18
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.2
|
|
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
|
+
projects: 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 && "projects" 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
|
+
'projects': ((json['projects'] 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
|
+
'projects': ((value.projects as Array<any>).map(IntegrationToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.2
|
|
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 { ProjectLogo } from './ProjectLogo';
|
|
17
|
+
import {
|
|
18
|
+
ProjectLogoFromJSON,
|
|
19
|
+
ProjectLogoFromJSONTyped,
|
|
20
|
+
ProjectLogoToJSON,
|
|
21
|
+
} from './ProjectLogo';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Project
|
|
27
|
+
*/
|
|
28
|
+
export interface Project {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Project
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Project
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {ProjectLogo}
|
|
44
|
+
* @memberof Project
|
|
45
|
+
*/
|
|
46
|
+
logo: ProjectLogo;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<string>}
|
|
50
|
+
* @memberof Project
|
|
51
|
+
*/
|
|
52
|
+
integrations?: Array<string>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the Project interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfProject(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
isInstance = isInstance && "id" in value;
|
|
61
|
+
isInstance = isInstance && "name" in value;
|
|
62
|
+
isInstance = isInstance && "logo" in value;
|
|
63
|
+
|
|
64
|
+
return isInstance;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ProjectFromJSON(json: any): Project {
|
|
68
|
+
return ProjectFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project {
|
|
72
|
+
if ((json === undefined) || (json === null)) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'id': json['id'],
|
|
78
|
+
'name': json['name'],
|
|
79
|
+
'logo': ProjectLogoFromJSON(json['logo']),
|
|
80
|
+
'integrations': !exists(json, 'integrations') ? undefined : json['integrations'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ProjectToJSON(value?: Project | null): any {
|
|
85
|
+
if (value === undefined) {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
if (value === null) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'id': value.id,
|
|
94
|
+
'name': value.name,
|
|
95
|
+
'logo': ProjectLogoToJSON(value.logo),
|
|
96
|
+
'integrations': value.integrations,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.2
|
|
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 ProjectLogo
|
|
20
|
+
*/
|
|
21
|
+
export interface ProjectLogo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProjectLogo
|
|
26
|
+
*/
|
|
27
|
+
url?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProjectLogo
|
|
32
|
+
*/
|
|
33
|
+
backgroundColor?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ProjectLogo interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfProjectLogo(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProjectLogoFromJSON(json: any): ProjectLogo {
|
|
46
|
+
return ProjectLogoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProjectLogoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectLogo {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'url': !exists(json, 'url') ? undefined : json['url'],
|
|
56
|
+
'backgroundColor': !exists(json, 'backgroundColor') ? undefined : json['backgroundColor'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ProjectLogoToJSON(value?: ProjectLogo | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'url': value.url,
|
|
70
|
+
'backgroundColor': value.backgroundColor,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Projects API
|
|
5
|
+
* Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.2
|
|
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 { Project } from './Project';
|
|
17
|
+
import {
|
|
18
|
+
ProjectFromJSON,
|
|
19
|
+
ProjectFromJSONTyped,
|
|
20
|
+
ProjectToJSON,
|
|
21
|
+
} from './Project';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ProjectsResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface ProjectsResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Project>}
|
|
32
|
+
* @memberof ProjectsResponse
|
|
33
|
+
*/
|
|
34
|
+
projects: Array<Project>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProjectsResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfProjectsResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "projects" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ProjectsResponseFromJSON(json: any): ProjectsResponse {
|
|
48
|
+
return ProjectsResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProjectsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectsResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'projects': ((json['projects'] as Array<any>).map(ProjectFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ProjectsResponseToJSON(value?: ProjectsResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'projects': ((value.projects as Array<any>).map(ProjectToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './ApiError';
|
|
4
|
+
export * from './Integration';
|
|
5
|
+
export * from './IntegrationInfo';
|
|
6
|
+
export * from './IntegrationsResponse';
|
|
7
|
+
export * from './Project';
|
|
8
|
+
export * from './ProjectLogo';
|
|
9
|
+
export * from './ProjectsResponse';
|