@teemill/projects 1.1.4 → 1.2.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.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ProjectsApi.d.ts +17 -13
  4. package/dist/apis/ProjectsApi.js +28 -18
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +1 -1
  7. package/dist/models/CreateProjectRequest.d.ts +31 -0
  8. package/dist/models/CreateProjectRequest.js +50 -0
  9. package/dist/models/Integration.d.ts +1 -1
  10. package/dist/models/Integration.js +1 -1
  11. package/dist/models/IntegrationInfo.d.ts +1 -1
  12. package/dist/models/IntegrationInfo.js +1 -1
  13. package/dist/models/IntegrationsResponse.d.ts +1 -1
  14. package/dist/models/IntegrationsResponse.js +1 -1
  15. package/dist/models/Project.d.ts +1 -1
  16. package/dist/models/Project.js +1 -1
  17. package/dist/models/Project1.d.ts +31 -0
  18. package/dist/models/Project1.js +50 -0
  19. package/dist/models/Project2.d.ts +31 -0
  20. package/dist/models/Project2.js +50 -0
  21. package/dist/models/ProjectLogo.d.ts +1 -1
  22. package/dist/models/ProjectLogo.js +1 -1
  23. package/dist/models/ProjectsResponse.d.ts +1 -1
  24. package/dist/models/ProjectsResponse.js +1 -1
  25. package/dist/models/UpdateProjectRequest.d.ts +31 -0
  26. package/dist/models/UpdateProjectRequest.js +50 -0
  27. package/dist/models/index.d.ts +2 -0
  28. package/dist/models/index.js +2 -0
  29. package/dist/runtime.d.ts +1 -1
  30. package/dist/runtime.js +1 -1
  31. package/package.json +1 -1
  32. package/src/apis/ProjectsApi.ts +45 -20
  33. package/src/models/ApiError.ts +1 -1
  34. package/src/models/CreateProjectRequest.ts +66 -0
  35. package/src/models/Integration.ts +1 -1
  36. package/src/models/IntegrationInfo.ts +1 -1
  37. package/src/models/IntegrationsResponse.ts +1 -1
  38. package/src/models/Project.ts +1 -1
  39. package/src/models/Project1.ts +66 -0
  40. package/src/models/Project2.ts +65 -0
  41. package/src/models/ProjectLogo.ts +1 -1
  42. package/src/models/ProjectsResponse.ts +1 -1
  43. package/src/models/UpdateProjectRequest.ts +65 -0
  44. package/src/models/index.ts +2 -0
  45. package/src/runtime.ts +1 -1
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.2.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Project2ToJSON = exports.Project2FromJSONTyped = exports.Project2FromJSON = exports.instanceOfProject2 = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the Project2 interface.
20
+ */
21
+ function instanceOfProject2(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfProject2 = instanceOfProject2;
26
+ function Project2FromJSON(json) {
27
+ return Project2FromJSONTyped(json, false);
28
+ }
29
+ exports.Project2FromJSON = Project2FromJSON;
30
+ function Project2FromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
36
+ };
37
+ }
38
+ exports.Project2FromJSONTyped = Project2FromJSONTyped;
39
+ function Project2ToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ };
49
+ }
50
+ exports.Project2ToJSON = Project2ToJSON;
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.1.4
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.1.4
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.1.4
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.1.4
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.2.0
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateProjectRequest
16
+ */
17
+ export interface UpdateProjectRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateProjectRequest
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateProjectRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateProjectRequest(value: object): boolean;
29
+ export declare function UpdateProjectRequestFromJSON(json: any): UpdateProjectRequest;
30
+ export declare function UpdateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProjectRequest;
31
+ export declare function UpdateProjectRequestToJSON(value?: UpdateProjectRequest | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.2.0
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UpdateProjectRequestToJSON = exports.UpdateProjectRequestFromJSONTyped = exports.UpdateProjectRequestFromJSON = exports.instanceOfUpdateProjectRequest = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the UpdateProjectRequest interface.
20
+ */
21
+ function instanceOfUpdateProjectRequest(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfUpdateProjectRequest = instanceOfUpdateProjectRequest;
26
+ function UpdateProjectRequestFromJSON(json) {
27
+ return UpdateProjectRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.UpdateProjectRequestFromJSON = UpdateProjectRequestFromJSON;
30
+ function UpdateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
36
+ };
37
+ }
38
+ exports.UpdateProjectRequestFromJSONTyped = UpdateProjectRequestFromJSONTyped;
39
+ function UpdateProjectRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ };
49
+ }
50
+ exports.UpdateProjectRequestToJSON = UpdateProjectRequestToJSON;
@@ -1,7 +1,9 @@
1
1
  export * from './ApiError';
2
+ export * from './CreateProjectRequest';
2
3
  export * from './Integration';
3
4
  export * from './IntegrationInfo';
4
5
  export * from './IntegrationsResponse';
5
6
  export * from './Project';
6
7
  export * from './ProjectLogo';
7
8
  export * from './ProjectsResponse';
9
+ export * from './UpdateProjectRequest';
@@ -17,9 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./ApiError"), exports);
20
+ __exportStar(require("./CreateProjectRequest"), exports);
20
21
  __exportStar(require("./Integration"), exports);
21
22
  __exportStar(require("./IntegrationInfo"), exports);
22
23
  __exportStar(require("./IntegrationsResponse"), exports);
23
24
  __exportStar(require("./Project"), exports);
24
25
  __exportStar(require("./ProjectLogo"), exports);
25
26
  __exportStar(require("./ProjectsResponse"), exports);
27
+ __exportStar(require("./UpdateProjectRequest"), exports);
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.1.4
5
+ * The version of the OpenAPI document: 1.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.1.4
8
+ * The version of the OpenAPI document: 1.2.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.1.4
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,14 +16,18 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiError,
19
+ CreateProjectRequest,
19
20
  Integration,
20
21
  IntegrationsResponse,
21
22
  Project,
22
23
  ProjectsResponse,
24
+ UpdateProjectRequest,
23
25
  } from '../models/index';
24
26
  import {
25
27
  ApiErrorFromJSON,
26
28
  ApiErrorToJSON,
29
+ CreateProjectRequestFromJSON,
30
+ CreateProjectRequestToJSON,
27
31
  IntegrationFromJSON,
28
32
  IntegrationToJSON,
29
33
  IntegrationsResponseFromJSON,
@@ -32,8 +36,14 @@ import {
32
36
  ProjectToJSON,
33
37
  ProjectsResponseFromJSON,
34
38
  ProjectsResponseToJSON,
39
+ UpdateProjectRequestFromJSON,
40
+ UpdateProjectRequestToJSON,
35
41
  } from '../models/index';
36
42
 
43
+ export interface CreateProjectOperationRequest {
44
+ createProjectRequest: CreateProjectRequest;
45
+ }
46
+
37
47
  export interface DeleteProjectRequest {
38
48
  project: string;
39
49
  }
@@ -61,8 +71,9 @@ export interface UninstallIntegrationRequest {
61
71
  integration: string;
62
72
  }
63
73
 
64
- export interface UpdateProjectRequest {
74
+ export interface UpdateProjectOperationRequest {
65
75
  project: string;
76
+ updateProjectRequest: UpdateProjectRequest;
66
77
  }
67
78
 
68
79
  /**
@@ -74,11 +85,17 @@ export class ProjectsApi extends runtime.BaseAPI {
74
85
  * Create a new projects
75
86
  * Create project
76
87
  */
77
- async createProjectRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
88
+ async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
89
+ if (requestParameters.createProjectRequest === null || requestParameters.createProjectRequest === undefined) {
90
+ throw new runtime.RequiredError('createProjectRequest','Required parameter requestParameters.createProjectRequest was null or undefined when calling createProject.');
91
+ }
92
+
78
93
  const queryParameters: any = {};
79
94
 
80
95
  const headerParameters: runtime.HTTPHeaders = {};
81
96
 
97
+ headerParameters['Content-Type'] = 'application/json';
98
+
82
99
  if (this.configuration && this.configuration.accessToken) {
83
100
  // oauth required
84
101
  headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
@@ -93,6 +110,7 @@ export class ProjectsApi extends runtime.BaseAPI {
93
110
  method: 'POST',
94
111
  headers: headerParameters,
95
112
  query: queryParameters,
113
+ body: CreateProjectRequestToJSON(requestParameters.createProjectRequest),
96
114
  }, initOverrides);
97
115
 
98
116
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
@@ -102,8 +120,8 @@ export class ProjectsApi extends runtime.BaseAPI {
102
120
  * Create a new projects
103
121
  * Create project
104
122
  */
105
- async createProject(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
106
- const response = await this.createProjectRaw(initOverrides);
123
+ async createProject(createProjectRequest: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
124
+ const response = await this.createProjectRaw({ createProjectRequest: createProjectRequest }, initOverrides);
107
125
  return await response.value();
108
126
  }
109
127
 
@@ -143,8 +161,8 @@ export class ProjectsApi extends runtime.BaseAPI {
143
161
  * Delete a project
144
162
  * Delete project
145
163
  */
146
- async deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
147
- const response = await this.deleteProjectRaw(requestParameters, initOverrides);
164
+ async deleteProject(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
165
+ const response = await this.deleteProjectRaw({ project: project }, initOverrides);
148
166
  return await response.value();
149
167
  }
150
168
 
@@ -188,8 +206,8 @@ export class ProjectsApi extends runtime.BaseAPI {
188
206
  * Get an integration
189
207
  * Get integration
190
208
  */
191
- async getIntegration(requestParameters: GetIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
192
- const response = await this.getIntegrationRaw(requestParameters, initOverrides);
209
+ async getIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
210
+ const response = await this.getIntegrationRaw({ project: project, integration: integration }, initOverrides);
193
211
  return await response.value();
194
212
  }
195
213
 
@@ -229,8 +247,8 @@ export class ProjectsApi extends runtime.BaseAPI {
229
247
  * List all integrations installed on a project
230
248
  * List integrations
231
249
  */
232
- async getIntegrations(requestParameters: GetIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
233
- const response = await this.getIntegrationsRaw(requestParameters, initOverrides);
250
+ async getIntegrations(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse> {
251
+ const response = await this.getIntegrationsRaw({ project: project }, initOverrides);
234
252
  return await response.value();
235
253
  }
236
254
 
@@ -270,8 +288,8 @@ export class ProjectsApi extends runtime.BaseAPI {
270
288
  * Get a project
271
289
  * Get project
272
290
  */
273
- async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
274
- const response = await this.getProjectRaw(requestParameters, initOverrides);
291
+ async getProject(project: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
292
+ const response = await this.getProjectRaw({ project: project }, initOverrides);
275
293
  return await response.value();
276
294
  }
277
295
 
@@ -352,8 +370,8 @@ export class ProjectsApi extends runtime.BaseAPI {
352
370
  * Install an integration on the project
353
371
  * Install integration
354
372
  */
355
- async installIntegration(requestParameters: InstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
356
- const response = await this.installIntegrationRaw(requestParameters, initOverrides);
373
+ async installIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration> {
374
+ const response = await this.installIntegrationRaw({ project: project, integration: integration }, initOverrides);
357
375
  return await response.value();
358
376
  }
359
377
 
@@ -397,23 +415,29 @@ export class ProjectsApi extends runtime.BaseAPI {
397
415
  * Uninstall a projects integration
398
416
  * Uninstall integration
399
417
  */
400
- async uninstallIntegration(requestParameters: UninstallIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
401
- await this.uninstallIntegrationRaw(requestParameters, initOverrides);
418
+ async uninstallIntegration(project: string, integration: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
419
+ await this.uninstallIntegrationRaw({ project: project, integration: integration }, initOverrides);
402
420
  }
403
421
 
404
422
  /**
405
423
  * Update a project
406
424
  * Update project
407
425
  */
408
- async updateProjectRaw(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
426
+ async updateProjectRaw(requestParameters: UpdateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
409
427
  if (requestParameters.project === null || requestParameters.project === undefined) {
410
428
  throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling updateProject.');
411
429
  }
412
430
 
431
+ if (requestParameters.updateProjectRequest === null || requestParameters.updateProjectRequest === undefined) {
432
+ throw new runtime.RequiredError('updateProjectRequest','Required parameter requestParameters.updateProjectRequest was null or undefined when calling updateProject.');
433
+ }
434
+
413
435
  const queryParameters: any = {};
414
436
 
415
437
  const headerParameters: runtime.HTTPHeaders = {};
416
438
 
439
+ headerParameters['Content-Type'] = 'application/json';
440
+
417
441
  if (this.configuration && this.configuration.accessToken) {
418
442
  // oauth required
419
443
  headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
@@ -428,6 +452,7 @@ export class ProjectsApi extends runtime.BaseAPI {
428
452
  method: 'PATCH',
429
453
  headers: headerParameters,
430
454
  query: queryParameters,
455
+ body: UpdateProjectRequestToJSON(requestParameters.updateProjectRequest),
431
456
  }, initOverrides);
432
457
 
433
458
  return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
@@ -437,8 +462,8 @@ export class ProjectsApi extends runtime.BaseAPI {
437
462
  * Update a project
438
463
  * Update project
439
464
  */
440
- async updateProject(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
441
- const response = await this.updateProjectRaw(requestParameters, initOverrides);
465
+ async updateProject(project: string, updateProjectRequest: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project> {
466
+ const response = await this.updateProjectRaw({ project: project, updateProjectRequest: updateProjectRequest }, initOverrides);
442
467
  return await response.value();
443
468
  }
444
469
 
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.1.4
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,66 @@
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.2.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 CreateProjectRequest
20
+ */
21
+ export interface CreateProjectRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateProjectRequest
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateProjectRequest interface.
32
+ */
33
+ export function instanceOfCreateProjectRequest(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "name" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
41
+ return CreateProjectRequestFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'name': json['name'],
51
+ };
52
+ }
53
+
54
+ export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'name': value.name,
64
+ };
65
+ }
66
+
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.1.4
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.1.4
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.1.4
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.1.4
7
+ * The version of the OpenAPI document: 1.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,66 @@
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.2.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 Project1
20
+ */
21
+ export interface Project1 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Project1
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the Project1 interface.
32
+ */
33
+ export function instanceOfProject1(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "name" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function Project1FromJSON(json: any): Project1 {
41
+ return Project1FromJSONTyped(json, false);
42
+ }
43
+
44
+ export function Project1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Project1 {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'name': json['name'],
51
+ };
52
+ }
53
+
54
+ export function Project1ToJSON(value?: Project1 | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'name': value.name,
64
+ };
65
+ }
66
+
@@ -0,0 +1,65 @@
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.2.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 Project2
20
+ */
21
+ export interface Project2 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Project2
26
+ */
27
+ name?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the Project2 interface.
32
+ */
33
+ export function instanceOfProject2(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function Project2FromJSON(json: any): Project2 {
40
+ return Project2FromJSONTyped(json, false);
41
+ }
42
+
43
+ export function Project2FromJSONTyped(json: any, ignoreDiscriminator: boolean): Project2 {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'name': !exists(json, 'name') ? undefined : json['name'],
50
+ };
51
+ }
52
+
53
+ export function Project2ToJSON(value?: Project2 | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'name': value.name,
63
+ };
64
+ }
65
+