@teemill/projects 1.11.1 → 1.12.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 (57) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +2 -2
  3. package/dist/apis/ProjectsApi.d.ts +1 -1
  4. package/dist/apis/ProjectsApi.js +1 -1
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +10 -14
  7. package/dist/models/CreateInviteRequest.d.ts +1 -1
  8. package/dist/models/CreateInviteRequest.js +8 -11
  9. package/dist/models/CreateProjectRequest.d.ts +3 -5
  10. package/dist/models/CreateProjectRequest.js +12 -16
  11. package/dist/models/InstallTemplateRequest.d.ts +3 -5
  12. package/dist/models/InstallTemplateRequest.js +7 -12
  13. package/dist/models/Integration.d.ts +1 -1
  14. package/dist/models/Integration.js +14 -17
  15. package/dist/models/IntegrationsResponse.d.ts +1 -1
  16. package/dist/models/IntegrationsResponse.js +8 -11
  17. package/dist/models/Project.d.ts +1 -1
  18. package/dist/models/Project.js +16 -18
  19. package/dist/models/ProjectInvite.d.ts +1 -1
  20. package/dist/models/ProjectInvite.js +20 -19
  21. package/dist/models/ProjectInvites.d.ts +1 -1
  22. package/dist/models/ProjectInvites.js +11 -13
  23. package/dist/models/ProjectLogo.d.ts +1 -1
  24. package/dist/models/ProjectLogo.js +9 -14
  25. package/dist/models/ProjectUser.d.ts +16 -1
  26. package/dist/models/ProjectUser.js +34 -22
  27. package/dist/models/ProjectUserAvatar.d.ts +2 -2
  28. package/dist/models/ProjectUserAvatar.js +7 -12
  29. package/dist/models/ProjectUsers.d.ts +1 -1
  30. package/dist/models/ProjectUsers.js +11 -13
  31. package/dist/models/ProjectsResponse.d.ts +1 -1
  32. package/dist/models/ProjectsResponse.js +8 -11
  33. package/dist/models/SetupIntegrationRequest.d.ts +1 -1
  34. package/dist/models/SetupIntegrationRequest.js +8 -11
  35. package/dist/models/UpdateProjectRequest.d.ts +1 -1
  36. package/dist/models/UpdateProjectRequest.js +7 -12
  37. package/dist/runtime.d.ts +1 -1
  38. package/dist/runtime.js +1 -1
  39. package/package.json +1 -1
  40. package/src/apis/ProjectsApi.ts +1 -1
  41. package/src/models/ApiError.ts +10 -15
  42. package/src/models/CreateInviteRequest.ts +8 -13
  43. package/src/models/CreateProjectRequest.ts +14 -19
  44. package/src/models/InstallTemplateRequest.ts +10 -15
  45. package/src/models/Integration.ts +13 -18
  46. package/src/models/IntegrationsResponse.ts +8 -13
  47. package/src/models/Project.ts +14 -19
  48. package/src/models/ProjectInvite.ts +16 -21
  49. package/src/models/ProjectInvites.ts +10 -15
  50. package/src/models/ProjectLogo.ts +10 -15
  51. package/src/models/ProjectUser.ts +38 -23
  52. package/src/models/ProjectUserAvatar.ts +9 -14
  53. package/src/models/ProjectUsers.ts +10 -15
  54. package/src/models/ProjectsResponse.ts +8 -13
  55. package/src/models/SetupIntegrationRequest.ts +8 -13
  56. package/src/models/UpdateProjectRequest.ts +8 -13
  57. package/src/runtime.ts +1 -1
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
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
- let isInstance = true;
41
- isInstance = isInstance && "message" in value;
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 ((json === undefined) || (json === null)) {
49
+ if (json == null) {
52
50
  return json;
53
51
  }
54
52
  return {
55
53
 
56
- 'code': !exists(json, 'code') ? undefined : json['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 === undefined) {
63
- return undefined;
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.code,
71
- 'message': value.message,
65
+ 'code': value['code'],
66
+ 'message': value['message'],
72
67
  };
73
68
  }
74
69
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -31,10 +31,8 @@ export interface CreateInviteRequest {
31
31
  * Check if a given object implements the CreateInviteRequest interface.
32
32
  */
33
33
  export function instanceOfCreateInviteRequest(value: object): boolean {
34
- let isInstance = true;
35
- isInstance = isInstance && "email" in value;
36
-
37
- return isInstance;
34
+ if (!('email' in value)) return false;
35
+ return true;
38
36
  }
39
37
 
40
38
  export function CreateInviteRequestFromJSON(json: any): CreateInviteRequest {
@@ -42,7 +40,7 @@ export function CreateInviteRequestFromJSON(json: any): CreateInviteRequest {
42
40
  }
43
41
 
44
42
  export function CreateInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInviteRequest {
45
- if ((json === undefined) || (json === null)) {
43
+ if (json == null) {
46
44
  return json;
47
45
  }
48
46
  return {
@@ -52,15 +50,12 @@ export function CreateInviteRequestFromJSONTyped(json: any, ignoreDiscriminator:
52
50
  }
53
51
 
54
52
  export function CreateInviteRequestToJSON(value?: CreateInviteRequest | null): any {
55
- if (value === undefined) {
56
- return undefined;
57
- }
58
- if (value === null) {
59
- return null;
53
+ if (value == null) {
54
+ return value;
60
55
  }
61
56
  return {
62
57
 
63
- 'email': value.email,
58
+ 'email': value['email'],
64
59
  };
65
60
  }
66
61
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -33,20 +33,18 @@ export interface CreateProjectRequest {
33
33
  template?: string;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: Array<string>; }}
36
+ * @type {object}
37
37
  * @memberof CreateProjectRequest
38
38
  */
39
- config?: { [key: string]: Array<string>; };
39
+ config?: object;
40
40
  }
41
41
 
42
42
  /**
43
43
  * Check if a given object implements the CreateProjectRequest interface.
44
44
  */
45
45
  export function instanceOfCreateProjectRequest(value: object): boolean {
46
- let isInstance = true;
47
- isInstance = isInstance && "name" in value;
48
-
49
- return isInstance;
46
+ if (!('name' in value)) return false;
47
+ return true;
50
48
  }
51
49
 
52
50
  export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
@@ -54,29 +52,26 @@ export function CreateProjectRequestFromJSON(json: any): CreateProjectRequest {
54
52
  }
55
53
 
56
54
  export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest {
57
- if ((json === undefined) || (json === null)) {
55
+ if (json == null) {
58
56
  return json;
59
57
  }
60
58
  return {
61
59
 
62
60
  'name': json['name'],
63
- 'template': !exists(json, 'template') ? undefined : json['template'],
64
- 'config': !exists(json, 'config') ? undefined : json['config'],
61
+ 'template': json['template'] == null ? undefined : json['template'],
62
+ 'config': json['config'] == null ? undefined : json['config'],
65
63
  };
66
64
  }
67
65
 
68
66
  export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null): any {
69
- if (value === undefined) {
70
- return undefined;
71
- }
72
- if (value === null) {
73
- return null;
67
+ if (value == null) {
68
+ return value;
74
69
  }
75
70
  return {
76
71
 
77
- 'name': value.name,
78
- 'template': value.template,
79
- 'config': value.config,
72
+ 'name': value['name'],
73
+ 'template': value['template'],
74
+ 'config': value['config'],
80
75
  };
81
76
  }
82
77
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -21,19 +21,17 @@ import { exists, mapValues } from '../runtime';
21
21
  export interface InstallTemplateRequest {
22
22
  /**
23
23
  *
24
- * @type {{ [key: string]: Array<string>; }}
24
+ * @type {object}
25
25
  * @memberof InstallTemplateRequest
26
26
  */
27
- config?: { [key: string]: Array<string>; };
27
+ config?: object;
28
28
  }
29
29
 
30
30
  /**
31
31
  * Check if a given object implements the InstallTemplateRequest interface.
32
32
  */
33
33
  export function instanceOfInstallTemplateRequest(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
34
+ return true;
37
35
  }
38
36
 
39
37
  export function InstallTemplateRequestFromJSON(json: any): InstallTemplateRequest {
@@ -41,25 +39,22 @@ export function InstallTemplateRequestFromJSON(json: any): InstallTemplateReques
41
39
  }
42
40
 
43
41
  export function InstallTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallTemplateRequest {
44
- if ((json === undefined) || (json === null)) {
42
+ if (json == null) {
45
43
  return json;
46
44
  }
47
45
  return {
48
46
 
49
- 'config': !exists(json, 'config') ? undefined : json['config'],
47
+ 'config': json['config'] == null ? undefined : json['config'],
50
48
  };
51
49
  }
52
50
 
53
51
  export function InstallTemplateRequestToJSON(value?: InstallTemplateRequest | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
52
+ if (value == null) {
53
+ return value;
59
54
  }
60
55
  return {
61
56
 
62
- 'config': value.config,
57
+ 'config': value['config'],
63
58
  };
64
59
  }
65
60
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -49,11 +49,9 @@ export interface Integration {
49
49
  * Check if a given object implements the Integration interface.
50
50
  */
51
51
  export function instanceOfIntegration(value: object): boolean {
52
- let isInstance = true;
53
- isInstance = isInstance && "code" in value;
54
- isInstance = isInstance && "config" in value;
55
-
56
- return isInstance;
52
+ if (!('code' in value)) return false;
53
+ if (!('config' in value)) return false;
54
+ return true;
57
55
  }
58
56
 
59
57
  export function IntegrationFromJSON(json: any): Integration {
@@ -61,30 +59,27 @@ export function IntegrationFromJSON(json: any): Integration {
61
59
  }
62
60
 
63
61
  export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration {
64
- if ((json === undefined) || (json === null)) {
62
+ if (json == null) {
65
63
  return json;
66
64
  }
67
65
  return {
68
66
 
69
- 'id': !exists(json, 'id') ? undefined : json['id'],
67
+ 'id': json['id'] == null ? undefined : json['id'],
70
68
  'code': json['code'],
71
69
  'config': json['config'],
72
- 'setupAt': !exists(json, 'setupAt') ? undefined : (new Date(json['setupAt'])),
70
+ 'setupAt': json['setupAt'] == null ? undefined : (new Date(json['setupAt'])),
73
71
  };
74
72
  }
75
73
 
76
74
  export function IntegrationToJSON(value?: Integration | null): any {
77
- if (value === undefined) {
78
- return undefined;
79
- }
80
- if (value === null) {
81
- return null;
75
+ if (value == null) {
76
+ return value;
82
77
  }
83
78
  return {
84
79
 
85
- 'code': value.code,
86
- 'config': value.config,
87
- 'setupAt': value.setupAt === undefined ? undefined : (value.setupAt.toISOString()),
80
+ 'code': value['code'],
81
+ 'config': value['config'],
82
+ 'setupAt': value['setupAt'] == null ? undefined : ((value['setupAt']).toISOString()),
88
83
  };
89
84
  }
90
85
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { Integration } from './Integration';
17
17
  import {
18
18
  IntegrationFromJSON,
@@ -38,10 +38,8 @@ export interface IntegrationsResponse {
38
38
  * Check if a given object implements the IntegrationsResponse interface.
39
39
  */
40
40
  export function instanceOfIntegrationsResponse(value: object): boolean {
41
- let isInstance = true;
42
- isInstance = isInstance && "integrations" in value;
43
-
44
- return isInstance;
41
+ if (!('integrations' in value)) return false;
42
+ return true;
45
43
  }
46
44
 
47
45
  export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
@@ -49,7 +47,7 @@ export function IntegrationsResponseFromJSON(json: any): IntegrationsResponse {
49
47
  }
50
48
 
51
49
  export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationsResponse {
52
- if ((json === undefined) || (json === null)) {
50
+ if (json == null) {
53
51
  return json;
54
52
  }
55
53
  return {
@@ -59,15 +57,12 @@ export function IntegrationsResponseFromJSONTyped(json: any, ignoreDiscriminator
59
57
  }
60
58
 
61
59
  export function IntegrationsResponseToJSON(value?: IntegrationsResponse | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
60
+ if (value == null) {
61
+ return value;
67
62
  }
68
63
  return {
69
64
 
70
- 'integrations': ((value.integrations as Array<any>).map(IntegrationToJSON)),
65
+ 'integrations': ((value['integrations'] as Array<any>).map(IntegrationToJSON)),
71
66
  };
72
67
  }
73
68
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { ProjectLogo } from './ProjectLogo';
17
17
  import {
18
18
  ProjectLogoFromJSON,
@@ -56,12 +56,10 @@ export interface Project {
56
56
  * Check if a given object implements the Project interface.
57
57
  */
58
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;
59
+ if (!('id' in value)) return false;
60
+ if (!('name' in value)) return false;
61
+ if (!('logo' in value)) return false;
62
+ return true;
65
63
  }
66
64
 
67
65
  export function ProjectFromJSON(json: any): Project {
@@ -69,7 +67,7 @@ export function ProjectFromJSON(json: any): Project {
69
67
  }
70
68
 
71
69
  export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project {
72
- if ((json === undefined) || (json === null)) {
70
+ if (json == null) {
73
71
  return json;
74
72
  }
75
73
  return {
@@ -77,23 +75,20 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
77
75
  'id': json['id'],
78
76
  'name': json['name'],
79
77
  'logo': ProjectLogoFromJSON(json['logo']),
80
- 'integrations': !exists(json, 'integrations') ? undefined : json['integrations'],
78
+ 'integrations': json['integrations'] == null ? undefined : json['integrations'],
81
79
  };
82
80
  }
83
81
 
84
82
  export function ProjectToJSON(value?: Project | null): any {
85
- if (value === undefined) {
86
- return undefined;
87
- }
88
- if (value === null) {
89
- return null;
83
+ if (value == null) {
84
+ return value;
90
85
  }
91
86
  return {
92
87
 
93
- 'id': value.id,
94
- 'name': value.name,
95
- 'logo': ProjectLogoToJSON(value.logo),
96
- 'integrations': value.integrations,
88
+ 'id': value['id'],
89
+ 'name': value['name'],
90
+ 'logo': ProjectLogoToJSON(value['logo']),
91
+ 'integrations': value['integrations'],
97
92
  };
98
93
  }
99
94
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { ProjectUser } from './ProjectUser';
17
17
  import {
18
18
  ProjectUserFromJSON,
@@ -62,14 +62,12 @@ export interface ProjectInvite {
62
62
  * Check if a given object implements the ProjectInvite interface.
63
63
  */
64
64
  export function instanceOfProjectInvite(value: object): boolean {
65
- let isInstance = true;
66
- isInstance = isInstance && "id" in value;
67
- isInstance = isInstance && "inviteeEmail" in value;
68
- isInstance = isInstance && "createdAt" in value;
69
- isInstance = isInstance && "expiresAt" in value;
70
- isInstance = isInstance && "inviter" in value;
71
-
72
- return isInstance;
65
+ if (!('id' in value)) return false;
66
+ if (!('inviteeEmail' in value)) return false;
67
+ if (!('createdAt' in value)) return false;
68
+ if (!('expiresAt' in value)) return false;
69
+ if (!('inviter' in value)) return false;
70
+ return true;
73
71
  }
74
72
 
75
73
  export function ProjectInviteFromJSON(json: any): ProjectInvite {
@@ -77,7 +75,7 @@ export function ProjectInviteFromJSON(json: any): ProjectInvite {
77
75
  }
78
76
 
79
77
  export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvite {
80
- if ((json === undefined) || (json === null)) {
78
+ if (json == null) {
81
79
  return json;
82
80
  }
83
81
  return {
@@ -91,19 +89,16 @@ export function ProjectInviteFromJSONTyped(json: any, ignoreDiscriminator: boole
91
89
  }
92
90
 
93
91
  export function ProjectInviteToJSON(value?: ProjectInvite | null): any {
94
- if (value === undefined) {
95
- return undefined;
96
- }
97
- if (value === null) {
98
- return null;
92
+ if (value == null) {
93
+ return value;
99
94
  }
100
95
  return {
101
96
 
102
- 'id': value.id,
103
- 'inviteeEmail': value.inviteeEmail,
104
- 'createdAt': value.createdAt,
105
- 'expiresAt': value.expiresAt,
106
- 'inviter': ProjectUserToJSON(value.inviter),
97
+ 'id': value['id'],
98
+ 'inviteeEmail': value['inviteeEmail'],
99
+ 'createdAt': value['createdAt'],
100
+ 'expiresAt': value['expiresAt'],
101
+ 'inviter': ProjectUserToJSON(value['inviter']),
107
102
  };
108
103
  }
109
104
 
@@ -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.11.1
7
+ * The version of the OpenAPI document: 1.12.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 { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { ProjectInvite } from './ProjectInvite';
17
17
  import {
18
18
  ProjectInviteFromJSON,
@@ -44,11 +44,9 @@ export interface ProjectInvites {
44
44
  * Check if a given object implements the ProjectInvites interface.
45
45
  */
46
46
  export function instanceOfProjectInvites(value: object): boolean {
47
- let isInstance = true;
48
- isInstance = isInstance && "invites" in value;
49
- isInstance = isInstance && "nextPageToken" in value;
50
-
51
- return isInstance;
47
+ if (!('invites' in value)) return false;
48
+ if (!('nextPageToken' in value)) return false;
49
+ return true;
52
50
  }
53
51
 
54
52
  export function ProjectInvitesFromJSON(json: any): ProjectInvites {
@@ -56,7 +54,7 @@ export function ProjectInvitesFromJSON(json: any): ProjectInvites {
56
54
  }
57
55
 
58
56
  export function ProjectInvitesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInvites {
59
- if ((json === undefined) || (json === null)) {
57
+ if (json == null) {
60
58
  return json;
61
59
  }
62
60
  return {
@@ -67,16 +65,13 @@ export function ProjectInvitesFromJSONTyped(json: any, ignoreDiscriminator: bool
67
65
  }
68
66
 
69
67
  export function ProjectInvitesToJSON(value?: ProjectInvites | null): any {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
68
+ if (value == null) {
69
+ return value;
75
70
  }
76
71
  return {
77
72
 
78
- 'invites': ((value.invites as Array<any>).map(ProjectInviteToJSON)),
79
- 'nextPageToken': value.nextPageToken,
73
+ 'invites': ((value['invites'] as Array<any>).map(ProjectInviteToJSON)),
74
+ 'nextPageToken': value['nextPageToken'],
80
75
  };
81
76
  }
82
77