@teemill/projects 1.11.0 → 1.11.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/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 +1 -1
  10. package/dist/models/CreateProjectRequest.js +12 -16
  11. package/dist/models/InstallTemplateRequest.d.ts +1 -1
  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 +12 -17
  44. package/src/models/InstallTemplateRequest.ts +8 -13
  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
@@ -1 +1 @@
1
- 7.3.0
1
+ 7.4.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.11.0
1
+ ## @teemill/projects@1.11.2
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/projects@1.11.0 --save
39
+ npm install @teemill/projects@1.11.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,14 +14,13 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the ApiError interface.
20
19
  */
21
20
  function instanceOfApiError(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "message" in value;
24
- return isInstance;
21
+ if (!('message' in value))
22
+ return false;
23
+ return true;
25
24
  }
26
25
  exports.instanceOfApiError = instanceOfApiError;
27
26
  function ApiErrorFromJSON(json) {
@@ -29,25 +28,22 @@ function ApiErrorFromJSON(json) {
29
28
  }
30
29
  exports.ApiErrorFromJSON = ApiErrorFromJSON;
31
30
  function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
31
+ if (json == null) {
33
32
  return json;
34
33
  }
35
34
  return {
36
- 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
35
+ 'code': json['code'] == null ? undefined : json['code'],
37
36
  'message': json['message'],
38
37
  };
39
38
  }
40
39
  exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
41
40
  function ApiErrorToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
41
+ if (value == null) {
42
+ return value;
47
43
  }
48
44
  return {
49
- 'code': value.code,
50
- 'message': value.message,
45
+ 'code': value['code'],
46
+ 'message': value['message'],
51
47
  };
52
48
  }
53
49
  exports.ApiErrorToJSON = ApiErrorToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,9 +18,9 @@ exports.CreateInviteRequestToJSON = exports.CreateInviteRequestFromJSONTyped = e
18
18
  * Check if a given object implements the CreateInviteRequest interface.
19
19
  */
20
20
  function instanceOfCreateInviteRequest(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "email" in value;
23
- return isInstance;
21
+ if (!('email' in value))
22
+ return false;
23
+ return true;
24
24
  }
25
25
  exports.instanceOfCreateInviteRequest = instanceOfCreateInviteRequest;
26
26
  function CreateInviteRequestFromJSON(json) {
@@ -28,7 +28,7 @@ function CreateInviteRequestFromJSON(json) {
28
28
  }
29
29
  exports.CreateInviteRequestFromJSON = CreateInviteRequestFromJSON;
30
30
  function CreateInviteRequestFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
31
+ if (json == null) {
32
32
  return json;
33
33
  }
34
34
  return {
@@ -37,14 +37,11 @@ function CreateInviteRequestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  }
38
38
  exports.CreateInviteRequestFromJSONTyped = CreateInviteRequestFromJSONTyped;
39
39
  function CreateInviteRequestToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
40
+ if (value == null) {
41
+ return value;
45
42
  }
46
43
  return {
47
- 'email': value.email,
44
+ 'email': value['email'],
48
45
  };
49
46
  }
50
47
  exports.CreateInviteRequestToJSON = CreateInviteRequestToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,14 +14,13 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateProjectRequestToJSON = exports.CreateProjectRequestFromJSONTyped = exports.CreateProjectRequestFromJSON = exports.instanceOfCreateProjectRequest = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the CreateProjectRequest interface.
20
19
  */
21
20
  function instanceOfCreateProjectRequest(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "name" in value;
24
- return isInstance;
21
+ if (!('name' in value))
22
+ return false;
23
+ return true;
25
24
  }
26
25
  exports.instanceOfCreateProjectRequest = instanceOfCreateProjectRequest;
27
26
  function CreateProjectRequestFromJSON(json) {
@@ -29,27 +28,24 @@ function CreateProjectRequestFromJSON(json) {
29
28
  }
30
29
  exports.CreateProjectRequestFromJSON = CreateProjectRequestFromJSON;
31
30
  function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
31
+ if (json == null) {
33
32
  return json;
34
33
  }
35
34
  return {
36
35
  'name': json['name'],
37
- 'template': !(0, runtime_1.exists)(json, 'template') ? undefined : json['template'],
38
- 'config': !(0, runtime_1.exists)(json, 'config') ? undefined : json['config'],
36
+ 'template': json['template'] == null ? undefined : json['template'],
37
+ 'config': json['config'] == null ? undefined : json['config'],
39
38
  };
40
39
  }
41
40
  exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
42
41
  function CreateProjectRequestToJSON(value) {
43
- if (value === undefined) {
44
- return undefined;
45
- }
46
- if (value === null) {
47
- return null;
42
+ if (value == null) {
43
+ return value;
48
44
  }
49
45
  return {
50
- 'name': value.name,
51
- 'template': value.template,
52
- 'config': value.config,
46
+ 'name': value['name'],
47
+ 'template': value['template'],
48
+ 'config': value['config'],
53
49
  };
54
50
  }
55
51
  exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,13 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.InstallTemplateRequestToJSON = exports.InstallTemplateRequestFromJSONTyped = exports.InstallTemplateRequestFromJSON = exports.instanceOfInstallTemplateRequest = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the InstallTemplateRequest interface.
20
19
  */
21
20
  function instanceOfInstallTemplateRequest(value) {
22
- var isInstance = true;
23
- return isInstance;
21
+ return true;
24
22
  }
25
23
  exports.instanceOfInstallTemplateRequest = instanceOfInstallTemplateRequest;
26
24
  function InstallTemplateRequestFromJSON(json) {
@@ -28,23 +26,20 @@ function InstallTemplateRequestFromJSON(json) {
28
26
  }
29
27
  exports.InstallTemplateRequestFromJSON = InstallTemplateRequestFromJSON;
30
28
  function InstallTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
29
+ if (json == null) {
32
30
  return json;
33
31
  }
34
32
  return {
35
- 'config': !(0, runtime_1.exists)(json, 'config') ? undefined : json['config'],
33
+ 'config': json['config'] == null ? undefined : json['config'],
36
34
  };
37
35
  }
38
36
  exports.InstallTemplateRequestFromJSONTyped = InstallTemplateRequestFromJSONTyped;
39
37
  function InstallTemplateRequestToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
38
+ if (value == null) {
39
+ return value;
45
40
  }
46
41
  return {
47
- 'config': value.config,
42
+ 'config': value['config'],
48
43
  };
49
44
  }
50
45
  exports.InstallTemplateRequestToJSON = InstallTemplateRequestToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,15 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.IntegrationToJSON = exports.IntegrationFromJSONTyped = exports.IntegrationFromJSON = exports.instanceOfIntegration = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the Integration interface.
20
19
  */
21
20
  function instanceOfIntegration(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "code" in value;
24
- isInstance = isInstance && "config" in value;
25
- return isInstance;
21
+ if (!('code' in value))
22
+ return false;
23
+ if (!('config' in value))
24
+ return false;
25
+ return true;
26
26
  }
27
27
  exports.instanceOfIntegration = instanceOfIntegration;
28
28
  function IntegrationFromJSON(json) {
@@ -30,28 +30,25 @@ function IntegrationFromJSON(json) {
30
30
  }
31
31
  exports.IntegrationFromJSON = IntegrationFromJSON;
32
32
  function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((json === undefined) || (json === null)) {
33
+ if (json == null) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
37
+ 'id': json['id'] == null ? undefined : json['id'],
38
38
  'code': json['code'],
39
39
  'config': json['config'],
40
- 'setupAt': !(0, runtime_1.exists)(json, 'setupAt') ? undefined : (new Date(json['setupAt'])),
40
+ 'setupAt': json['setupAt'] == null ? undefined : (new Date(json['setupAt'])),
41
41
  };
42
42
  }
43
43
  exports.IntegrationFromJSONTyped = IntegrationFromJSONTyped;
44
44
  function IntegrationToJSON(value) {
45
- if (value === undefined) {
46
- return undefined;
47
- }
48
- if (value === null) {
49
- return null;
45
+ if (value == null) {
46
+ return value;
50
47
  }
51
48
  return {
52
- 'code': value.code,
53
- 'config': value.config,
54
- 'setupAt': value.setupAt === undefined ? undefined : (value.setupAt.toISOString()),
49
+ 'code': value['code'],
50
+ 'config': value['config'],
51
+ 'setupAt': value['setupAt'] == null ? undefined : ((value['setupAt']).toISOString()),
55
52
  };
56
53
  }
57
54
  exports.IntegrationToJSON = IntegrationToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,9 +19,9 @@ var Integration_1 = require("./Integration");
19
19
  * Check if a given object implements the IntegrationsResponse interface.
20
20
  */
21
21
  function instanceOfIntegrationsResponse(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "integrations" in value;
24
- return isInstance;
22
+ if (!('integrations' in value))
23
+ return false;
24
+ return true;
25
25
  }
26
26
  exports.instanceOfIntegrationsResponse = instanceOfIntegrationsResponse;
27
27
  function IntegrationsResponseFromJSON(json) {
@@ -29,7 +29,7 @@ function IntegrationsResponseFromJSON(json) {
29
29
  }
30
30
  exports.IntegrationsResponseFromJSON = IntegrationsResponseFromJSON;
31
31
  function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
32
+ if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
@@ -38,14 +38,11 @@ function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  exports.IntegrationsResponseFromJSONTyped = IntegrationsResponseFromJSONTyped;
40
40
  function IntegrationsResponseToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
41
+ if (value == null) {
42
+ return value;
46
43
  }
47
44
  return {
48
- 'integrations': (value.integrations.map(Integration_1.IntegrationToJSON)),
45
+ 'integrations': (value['integrations'].map(Integration_1.IntegrationToJSON)),
49
46
  };
50
47
  }
51
48
  exports.IntegrationsResponseToJSON = IntegrationsResponseToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -14,17 +14,18 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectToJSON = exports.ProjectFromJSONTyped = exports.ProjectFromJSON = exports.instanceOfProject = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var ProjectLogo_1 = require("./ProjectLogo");
19
18
  /**
20
19
  * Check if a given object implements the Project interface.
21
20
  */
22
21
  function instanceOfProject(value) {
23
- var isInstance = true;
24
- isInstance = isInstance && "id" in value;
25
- isInstance = isInstance && "name" in value;
26
- isInstance = isInstance && "logo" in value;
27
- return isInstance;
22
+ if (!('id' in value))
23
+ return false;
24
+ if (!('name' in value))
25
+ return false;
26
+ if (!('logo' in value))
27
+ return false;
28
+ return true;
28
29
  }
29
30
  exports.instanceOfProject = instanceOfProject;
30
31
  function ProjectFromJSON(json) {
@@ -32,29 +33,26 @@ function ProjectFromJSON(json) {
32
33
  }
33
34
  exports.ProjectFromJSON = ProjectFromJSON;
34
35
  function ProjectFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
+ if (json == null) {
36
37
  return json;
37
38
  }
38
39
  return {
39
40
  'id': json['id'],
40
41
  'name': json['name'],
41
42
  'logo': (0, ProjectLogo_1.ProjectLogoFromJSON)(json['logo']),
42
- 'integrations': !(0, runtime_1.exists)(json, 'integrations') ? undefined : json['integrations'],
43
+ 'integrations': json['integrations'] == null ? undefined : json['integrations'],
43
44
  };
44
45
  }
45
46
  exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
46
47
  function ProjectToJSON(value) {
47
- if (value === undefined) {
48
- return undefined;
49
- }
50
- if (value === null) {
51
- return null;
48
+ if (value == null) {
49
+ return value;
52
50
  }
53
51
  return {
54
- 'id': value.id,
55
- 'name': value.name,
56
- 'logo': (0, ProjectLogo_1.ProjectLogoToJSON)(value.logo),
57
- 'integrations': value.integrations,
52
+ 'id': value['id'],
53
+ 'name': value['name'],
54
+ 'logo': (0, ProjectLogo_1.ProjectLogoToJSON)(value['logo']),
55
+ 'integrations': value['integrations'],
58
56
  };
59
57
  }
60
58
  exports.ProjectToJSON = ProjectToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
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.11.0
8
+ * The version of the OpenAPI document: 1.11.2
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,13 +19,17 @@ var ProjectUser_1 = require("./ProjectUser");
19
19
  * Check if a given object implements the ProjectInvite interface.
20
20
  */
21
21
  function instanceOfProjectInvite(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "id" in value;
24
- isInstance = isInstance && "inviteeEmail" in value;
25
- isInstance = isInstance && "createdAt" in value;
26
- isInstance = isInstance && "expiresAt" in value;
27
- isInstance = isInstance && "inviter" in value;
28
- return isInstance;
22
+ if (!('id' in value))
23
+ return false;
24
+ if (!('inviteeEmail' in value))
25
+ return false;
26
+ if (!('createdAt' in value))
27
+ return false;
28
+ if (!('expiresAt' in value))
29
+ return false;
30
+ if (!('inviter' in value))
31
+ return false;
32
+ return true;
29
33
  }
30
34
  exports.instanceOfProjectInvite = instanceOfProjectInvite;
31
35
  function ProjectInviteFromJSON(json) {
@@ -33,7 +37,7 @@ function ProjectInviteFromJSON(json) {
33
37
  }
34
38
  exports.ProjectInviteFromJSON = ProjectInviteFromJSON;
35
39
  function ProjectInviteFromJSONTyped(json, ignoreDiscriminator) {
36
- if ((json === undefined) || (json === null)) {
40
+ if (json == null) {
37
41
  return json;
38
42
  }
39
43
  return {
@@ -46,18 +50,15 @@ function ProjectInviteFromJSONTyped(json, ignoreDiscriminator) {
46
50
  }
47
51
  exports.ProjectInviteFromJSONTyped = ProjectInviteFromJSONTyped;
48
52
  function ProjectInviteToJSON(value) {
49
- if (value === undefined) {
50
- return undefined;
51
- }
52
- if (value === null) {
53
- return null;
53
+ if (value == null) {
54
+ return value;
54
55
  }
55
56
  return {
56
- 'id': value.id,
57
- 'inviteeEmail': value.inviteeEmail,
58
- 'createdAt': value.createdAt,
59
- 'expiresAt': value.expiresAt,
60
- 'inviter': (0, ProjectUser_1.ProjectUserToJSON)(value.inviter),
57
+ 'id': value['id'],
58
+ 'inviteeEmail': value['inviteeEmail'],
59
+ 'createdAt': value['createdAt'],
60
+ 'expiresAt': value['expiresAt'],
61
+ 'inviter': (0, ProjectUser_1.ProjectUserToJSON)(value['inviter']),
61
62
  };
62
63
  }
63
64
  exports.ProjectInviteToJSON = ProjectInviteToJSON;
@@ -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.11.0
5
+ * The version of the OpenAPI document: 1.11.2
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).