@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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +13 -6
  2. package/README.md +3 -3
  3. package/dist/apis/IntegrationsApi.d.ts +58 -0
  4. package/dist/apis/IntegrationsApi.js +221 -0
  5. package/dist/apis/ProjectsApi.d.ts +77 -0
  6. package/dist/apis/ProjectsApi.js +304 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +20 -0
  9. package/dist/index.d.ts +3 -13
  10. package/dist/index.js +5 -15
  11. package/dist/models/ApiError.d.ts +37 -0
  12. package/dist/models/ApiError.js +53 -0
  13. package/dist/models/Integration.d.ts +56 -0
  14. package/dist/models/Integration.js +62 -0
  15. package/dist/models/IntegrationInfo.d.ts +49 -0
  16. package/dist/models/IntegrationInfo.js +59 -0
  17. package/dist/models/IntegrationsResponse.d.ts +32 -0
  18. package/dist/models/IntegrationsResponse.js +51 -0
  19. package/dist/models/Project.d.ts +50 -0
  20. package/dist/models/Project.js +60 -0
  21. package/dist/models/ProjectLogo.d.ts +37 -0
  22. package/dist/models/ProjectLogo.js +52 -0
  23. package/dist/models/ProjectsResponse.d.ts +32 -0
  24. package/dist/models/ProjectsResponse.js +51 -0
  25. package/dist/models/index.d.ts +7 -0
  26. package/dist/models/index.js +25 -0
  27. package/dist/runtime.d.ts +182 -0
  28. package/dist/runtime.js +562 -0
  29. package/package.json +3 -15
  30. package/src/apis/IntegrationsApi.ts +149 -0
  31. package/src/apis/ProjectsApi.ts +200 -0
  32. package/src/apis/index.ts +4 -0
  33. package/src/index.ts +5 -0
  34. package/src/models/ApiError.ts +74 -0
  35. package/src/models/Integration.ts +107 -0
  36. package/src/models/IntegrationInfo.ts +93 -0
  37. package/src/models/IntegrationsResponse.ts +73 -0
  38. package/src/models/Project.ts +99 -0
  39. package/src/models/ProjectLogo.ts +73 -0
  40. package/src/models/ProjectsResponse.ts +73 -0
  41. package/src/models/index.ts +9 -0
  42. package/src/runtime.ts +431 -0
  43. package/tsconfig.json +2 -3
  44. package/api.ts +0 -462
  45. package/base.ts +0 -72
  46. package/common.ts +0 -150
  47. package/configuration.ts +0 -101
  48. package/dist/api.d.ts +0 -274
  49. package/dist/api.js +0 -489
  50. package/dist/base.d.ts +0 -54
  51. package/dist/base.js +0 -80
  52. package/dist/common.d.ts +0 -65
  53. package/dist/common.js +0 -252
  54. package/dist/configuration.d.ts +0 -83
  55. package/dist/configuration.js +0 -44
  56. package/git_push.sh +0 -57
  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';