@openshift-migration-advisor/planner-sdk 0.20.2 → 0.20.3

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.20.2
1
+ # @openshift-migration-advisor/planner-sdk@0.20.3
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -192,7 +192,7 @@ and is automatically generated by the
192
192
  [OpenAPI Generator](https://openapi-generator.tech) project:
193
193
 
194
194
  - API version: `v1alpha1`
195
- - Package version: `0.20.2`
195
+ - Package version: `0.20.3`
196
196
  - Generator version: `7.25.0-SNAPSHOT`
197
197
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
198
198
 
@@ -54,8 +54,8 @@ export function AgentFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'status': json['status'],
55
55
  'statusInfo': json['statusInfo'],
56
56
  'credentialUrl': json['credentialUrl'],
57
- 'createdAt': (new Date(json['createdAt'])),
58
- 'updatedAt': (new Date(json['updatedAt'])),
57
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
58
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
59
59
  'version': json['version'],
60
60
  };
61
61
  }
@@ -71,8 +71,8 @@ export function AgentToJSONTyped(value, ignoreDiscriminator = false) {
71
71
  'status': value['status'],
72
72
  'statusInfo': value['statusInfo'],
73
73
  'credentialUrl': value['credentialUrl'],
74
- 'createdAt': value['createdAt'].toISOString(),
75
- 'updatedAt': value['updatedAt'].toISOString(),
74
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
75
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
76
76
  'version': value['version'],
77
77
  };
78
78
  }
@@ -59,7 +59,7 @@ export function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
60
60
  'sourceType': json['sourceType'],
61
61
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
62
- 'createdAt': (new Date(json['createdAt'])),
62
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
63
63
  'snapshots': (json['snapshots'].map(SnapshotFromJSON)),
64
64
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
65
65
  'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
@@ -79,7 +79,7 @@ export function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
79
79
  'ownerLastName': value['ownerLastName'],
80
80
  'sourceType': value['sourceType'],
81
81
  'sourceId': value['sourceId'],
82
- 'createdAt': value['createdAt'].toISOString(),
82
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
83
  'snapshots': (value['snapshots'].map(SnapshotToJSON)),
84
84
  'permissions': value['permissions'],
85
85
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -43,7 +43,7 @@ export function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator
43
43
  'vcenterId': json['vcenterId'],
44
44
  'vmsCount': json['vmsCount'],
45
45
  'inventory': InventoryFromJSON(json['inventory']),
46
- 'createdAt': (new Date(json['createdAt'])),
46
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
47
47
  };
48
48
  }
49
49
  export function AssessmentSubsetInventoryToJSON(json) {
@@ -59,6 +59,6 @@ export function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator
59
59
  'vcenterId': value['vcenterId'],
60
60
  'vmsCount': value['vmsCount'],
61
61
  'inventory': InventoryToJSON(value['inventory']),
62
- 'createdAt': value['createdAt'].toISOString(),
62
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
63
63
  };
64
64
  }
@@ -52,8 +52,8 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
52
52
  'kind': json['kind'],
53
53
  'icon': json['icon'],
54
54
  'company': json['company'],
55
- 'createdAt': (new Date(json['createdAt'])),
56
- 'updatedAt': (new Date(json['updatedAt'])),
55
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
56
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
57
57
  };
58
58
  }
59
59
  export function GroupToJSON(json) {
@@ -70,7 +70,7 @@ export function GroupToJSONTyped(value, ignoreDiscriminator = false) {
70
70
  'kind': value['kind'],
71
71
  'icon': value['icon'],
72
72
  'company': value['company'],
73
- 'createdAt': value['createdAt'].toISOString(),
74
- 'updatedAt': value['updatedAt'].toISOString(),
73
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
74
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
75
75
  };
76
76
  }
@@ -36,7 +36,7 @@ export function MemberFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'username': json['username'],
37
37
  'email': json['email'],
38
38
  'groupId': json['groupId'],
39
- 'createdAt': (new Date(json['createdAt'])),
39
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
40
40
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
41
41
  };
42
42
  }
@@ -51,7 +51,7 @@ export function MemberToJSONTyped(value, ignoreDiscriminator = false) {
51
51
  'username': value['username'],
52
52
  'email': value['email'],
53
53
  'groupId': value['groupId'],
54
- 'createdAt': value['createdAt'].toISOString(),
54
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
55
55
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
56
56
  };
57
57
  }
@@ -59,7 +59,7 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
60
60
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
61
61
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
62
- 'createdAt': (new Date(json['createdAt'])),
62
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
63
63
  };
64
64
  }
65
65
  export function PartnerRequestToJSON(json) {
@@ -82,6 +82,6 @@ export function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  'reason': value['reason'],
83
83
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
84
84
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
85
- 'createdAt': value['createdAt'].toISOString(),
85
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
86
86
  };
87
87
  }
@@ -32,7 +32,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
32
32
  }
33
33
  return {
34
34
  'inventory': InventoryFromJSON(json['inventory']),
35
- 'createdAt': (new Date(json['createdAt'])),
35
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
36
36
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
37
37
  };
38
38
  }
@@ -45,7 +45,7 @@ export function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
45
45
  }
46
46
  return {
47
47
  'inventory': InventoryToJSON(value['inventory']),
48
- 'createdAt': value['createdAt'].toISOString(),
48
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
49
49
  'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventoryToJSON)),
50
50
  };
51
51
  }
@@ -49,8 +49,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'id': json['id'],
50
50
  'name': json['name'],
51
51
  'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
52
- 'createdAt': (new Date(json['createdAt'])),
53
- 'updatedAt': (new Date(json['updatedAt'])),
52
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
53
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
54
54
  'onPremises': json['onPremises'],
55
55
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
56
56
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
@@ -71,8 +71,8 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
71
71
  'id': value['id'],
72
72
  'name': value['name'],
73
73
  'inventory': InventoryToJSON(value['inventory']),
74
- 'createdAt': value['createdAt'].toISOString(),
75
- 'updatedAt': value['updatedAt'].toISOString(),
74
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
75
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
76
76
  'onPremises': value['onPremises'],
77
77
  'agent': AgentToJSON(value['agent']),
78
78
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
@@ -62,8 +62,8 @@ function AgentFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'status': json['status'],
63
63
  'statusInfo': json['statusInfo'],
64
64
  'credentialUrl': json['credentialUrl'],
65
- 'createdAt': (new Date(json['createdAt'])),
66
- 'updatedAt': (new Date(json['updatedAt'])),
65
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
66
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
67
67
  'version': json['version'],
68
68
  };
69
69
  }
@@ -79,8 +79,8 @@ function AgentToJSONTyped(value, ignoreDiscriminator = false) {
79
79
  'status': value['status'],
80
80
  'statusInfo': value['statusInfo'],
81
81
  'credentialUrl': value['credentialUrl'],
82
- 'createdAt': value['createdAt'].toISOString(),
83
- 'updatedAt': value['updatedAt'].toISOString(),
82
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
84
84
  'version': value['version'],
85
85
  };
86
86
  }
@@ -67,7 +67,7 @@ function AssessmentFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
68
68
  'sourceType': json['sourceType'],
69
69
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
70
- 'createdAt': (new Date(json['createdAt'])),
70
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
71
71
  'snapshots': (json['snapshots'].map(Snapshot_js_1.SnapshotFromJSON)),
72
72
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
73
73
  'sharing': json['sharing'] == null ? undefined : (0, AssessmentSharing_js_1.AssessmentSharingFromJSON)(json['sharing']),
@@ -87,7 +87,7 @@ function AssessmentToJSONTyped(value, ignoreDiscriminator = false) {
87
87
  'ownerLastName': value['ownerLastName'],
88
88
  'sourceType': value['sourceType'],
89
89
  'sourceId': value['sourceId'],
90
- 'createdAt': value['createdAt'].toISOString(),
90
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
91
91
  'snapshots': (value['snapshots'].map(Snapshot_js_1.SnapshotToJSON)),
92
92
  'permissions': value['permissions'],
93
93
  'sharing': (0, AssessmentSharing_js_1.AssessmentSharingToJSON)(value['sharing']),
@@ -50,7 +50,7 @@ function AssessmentSubsetInventoryFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'vcenterId': json['vcenterId'],
51
51
  'vmsCount': json['vmsCount'],
52
52
  'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
53
- 'createdAt': (new Date(json['createdAt'])),
53
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
54
54
  };
55
55
  }
56
56
  function AssessmentSubsetInventoryToJSON(json) {
@@ -66,6 +66,6 @@ function AssessmentSubsetInventoryToJSONTyped(value, ignoreDiscriminator = false
66
66
  'vcenterId': value['vcenterId'],
67
67
  'vmsCount': value['vmsCount'],
68
68
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
69
- 'createdAt': value['createdAt'].toISOString(),
69
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
70
70
  };
71
71
  }
@@ -60,8 +60,8 @@ function GroupFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'kind': json['kind'],
61
61
  'icon': json['icon'],
62
62
  'company': json['company'],
63
- 'createdAt': (new Date(json['createdAt'])),
64
- 'updatedAt': (new Date(json['updatedAt'])),
63
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
64
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
65
65
  };
66
66
  }
67
67
  function GroupToJSON(json) {
@@ -78,7 +78,7 @@ function GroupToJSONTyped(value, ignoreDiscriminator = false) {
78
78
  'kind': value['kind'],
79
79
  'icon': value['icon'],
80
80
  'company': value['company'],
81
- 'createdAt': value['createdAt'].toISOString(),
82
- 'updatedAt': value['updatedAt'].toISOString(),
81
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
82
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
83
83
  };
84
84
  }
@@ -43,7 +43,7 @@ function MemberFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'username': json['username'],
44
44
  'email': json['email'],
45
45
  'groupId': json['groupId'],
46
- 'createdAt': (new Date(json['createdAt'])),
46
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
47
47
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
48
48
  };
49
49
  }
@@ -58,7 +58,7 @@ function MemberToJSONTyped(value, ignoreDiscriminator = false) {
58
58
  'username': value['username'],
59
59
  'email': value['email'],
60
60
  'groupId': value['groupId'],
61
- 'createdAt': value['createdAt'].toISOString(),
61
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
62
62
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
63
63
  };
64
64
  }
@@ -66,7 +66,7 @@ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
67
67
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
68
68
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
69
- 'createdAt': (new Date(json['createdAt'])),
69
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
70
70
  };
71
71
  }
72
72
  function PartnerRequestToJSON(json) {
@@ -89,6 +89,6 @@ function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
89
89
  'reason': value['reason'],
90
90
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
91
91
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
92
- 'createdAt': value['createdAt'].toISOString(),
92
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
93
93
  };
94
94
  }
@@ -39,7 +39,7 @@ function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
39
39
  }
40
40
  return {
41
41
  'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
42
- 'createdAt': (new Date(json['createdAt'])),
42
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
43
43
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
44
44
  };
45
45
  }
@@ -52,7 +52,7 @@ function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
52
52
  }
53
53
  return {
54
54
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
55
- 'createdAt': value['createdAt'].toISOString(),
55
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
56
56
  'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryToJSON)),
57
57
  };
58
58
  }
@@ -57,8 +57,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'id': json['id'],
58
58
  'name': json['name'],
59
59
  'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
60
- 'createdAt': (new Date(json['createdAt'])),
61
- 'updatedAt': (new Date(json['updatedAt'])),
60
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
61
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
62
62
  'onPremises': json['onPremises'],
63
63
  'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
64
64
  'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
@@ -79,8 +79,8 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
79
79
  'id': value['id'],
80
80
  'name': value['name'],
81
81
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
82
- 'createdAt': value['createdAt'].toISOString(),
83
- 'updatedAt': value['updatedAt'].toISOString(),
82
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
84
84
  'onPremises': value['onPremises'],
85
85
  'agent': (0, Agent_js_1.AgentToJSON)(value['agent']),
86
86
  'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -92,8 +92,8 @@ export function AgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Age
92
92
  'status': json['status'],
93
93
  'statusInfo': json['statusInfo'],
94
94
  'credentialUrl': json['credentialUrl'],
95
- 'createdAt': (new Date(json['createdAt'])),
96
- 'updatedAt': (new Date(json['updatedAt'])),
95
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
96
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
97
97
  'version': json['version'],
98
98
  };
99
99
  }
@@ -113,8 +113,8 @@ export function AgentToJSONTyped(value?: Agent | null, ignoreDiscriminator: bool
113
113
  'status': value['status'],
114
114
  'statusInfo': value['statusInfo'],
115
115
  'credentialUrl': value['credentialUrl'],
116
- 'createdAt': value['createdAt'].toISOString(),
117
- 'updatedAt': value['updatedAt'].toISOString(),
116
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
117
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
118
118
  'version': value['version'],
119
119
  };
120
120
  }
@@ -126,7 +126,7 @@ export function AssessmentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
126
126
  'ownerLastName': json['ownerLastName'] == null ? undefined : json['ownerLastName'],
127
127
  'sourceType': json['sourceType'],
128
128
  'sourceId': json['sourceId'] == null ? undefined : json['sourceId'],
129
- 'createdAt': (new Date(json['createdAt'])),
129
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
130
130
  'snapshots': ((json['snapshots'] as Array<any>).map(SnapshotFromJSON)),
131
131
  'permissions': json['permissions'] == null ? undefined : json['permissions'],
132
132
  'sharing': json['sharing'] == null ? undefined : AssessmentSharingFromJSON(json['sharing']),
@@ -150,7 +150,7 @@ export function AssessmentToJSONTyped(value?: Assessment | null, ignoreDiscrimin
150
150
  'ownerLastName': value['ownerLastName'],
151
151
  'sourceType': value['sourceType'],
152
152
  'sourceId': value['sourceId'],
153
- 'createdAt': value['createdAt'].toISOString(),
153
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
154
154
  'snapshots': ((value['snapshots'] as Array<any>).map(SnapshotToJSON)),
155
155
  'permissions': value['permissions'],
156
156
  'sharing': AssessmentSharingToJSON(value['sharing']),
@@ -81,7 +81,7 @@ export function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscrimi
81
81
  'vcenterId': json['vcenterId'],
82
82
  'vmsCount': json['vmsCount'],
83
83
  'inventory': InventoryFromJSON(json['inventory']),
84
- 'createdAt': (new Date(json['createdAt'])),
84
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
85
85
  };
86
86
  }
87
87
 
@@ -101,7 +101,7 @@ export function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInv
101
101
  'vcenterId': value['vcenterId'],
102
102
  'vmsCount': value['vmsCount'],
103
103
  'inventory': InventoryToJSON(value['inventory']),
104
- 'createdAt': value['createdAt'].toISOString(),
104
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
105
105
  };
106
106
  }
107
107
 
@@ -94,8 +94,8 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
94
94
  'kind': json['kind'],
95
95
  'icon': json['icon'],
96
96
  'company': json['company'],
97
- 'createdAt': (new Date(json['createdAt'])),
98
- 'updatedAt': (new Date(json['updatedAt'])),
97
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
98
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
99
99
  };
100
100
  }
101
101
 
@@ -116,8 +116,8 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool
116
116
  'kind': value['kind'],
117
117
  'icon': value['icon'],
118
118
  'company': value['company'],
119
- 'createdAt': value['createdAt'].toISOString(),
120
- 'updatedAt': value['updatedAt'].toISOString(),
119
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
120
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
121
121
  };
122
122
  }
123
123
 
@@ -65,7 +65,7 @@ export function MemberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Me
65
65
  'username': json['username'],
66
66
  'email': json['email'],
67
67
  'groupId': json['groupId'],
68
- 'createdAt': (new Date(json['createdAt'])),
68
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
69
69
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
70
70
  };
71
71
  }
@@ -84,7 +84,7 @@ export function MemberToJSONTyped(value?: Member | null, ignoreDiscriminator: bo
84
84
  'username': value['username'],
85
85
  'email': value['email'],
86
86
  'groupId': value['groupId'],
87
- 'createdAt': value['createdAt'].toISOString(),
87
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
88
88
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
89
89
  };
90
90
  }
@@ -129,7 +129,7 @@ export function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
129
129
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
130
130
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
131
131
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
132
- 'createdAt': (new Date(json['createdAt'])),
132
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
133
133
  };
134
134
  }
135
135
 
@@ -156,7 +156,7 @@ export function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreD
156
156
  'reason': value['reason'],
157
157
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
158
158
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
159
- 'createdAt': value['createdAt'].toISOString(),
159
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
160
160
  };
161
161
  }
162
162
 
@@ -68,7 +68,7 @@ export function SnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean):
68
68
  return {
69
69
 
70
70
  'inventory': InventoryFromJSON(json['inventory']),
71
- 'createdAt': (new Date(json['createdAt'])),
71
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
72
72
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : ((json['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryFromJSON)),
73
73
  };
74
74
  }
@@ -85,7 +85,7 @@ export function SnapshotToJSONTyped(value?: Snapshot | null, ignoreDiscriminator
85
85
  return {
86
86
 
87
87
  'inventory': InventoryToJSON(value['inventory']),
88
- 'createdAt': value['createdAt'].toISOString(),
88
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
89
89
  'subsetInventories': value['subsetInventories'] == null ? undefined : ((value['subsetInventories'] as Array<any>).map(AssessmentSubsetInventoryToJSON)),
90
90
  };
91
91
  }
@@ -134,8 +134,8 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
134
134
  'id': json['id'],
135
135
  'name': json['name'],
136
136
  'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
137
- 'createdAt': (new Date(json['createdAt'])),
138
- 'updatedAt': (new Date(json['updatedAt'])),
137
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
138
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
139
139
  'onPremises': json['onPremises'],
140
140
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
141
141
  'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
@@ -160,8 +160,8 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
160
160
  'id': value['id'],
161
161
  'name': value['name'],
162
162
  'inventory': InventoryToJSON(value['inventory']),
163
- 'createdAt': value['createdAt'].toISOString(),
164
- 'updatedAt': value['updatedAt'].toISOString(),
163
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
164
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
165
165
  'onPremises': value['onPremises'],
166
166
  'agent': AgentToJSON(value['agent']),
167
167
  'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),