@digital8/security-registers-backend-ts-sdk 0.0.484 → 0.0.485

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
- ## @digital8/security-registers-backend-ts-sdk@0.0.484
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.485
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 @digital8/security-registers-backend-ts-sdk@0.0.484 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.485 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressResource {
32
32
  * @type {string}
33
33
  * @memberof AddressResource
34
34
  */
35
- addressLine2?: string | null;
35
+ addressLine2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
24
24
  function instanceOfAddressResource(value) {
25
25
  if (!('addressLine1' in value) || value['addressLine1'] === undefined)
26
26
  return false;
27
+ if (!('addressLine2' in value) || value['addressLine2'] === undefined)
28
+ return false;
27
29
  if (!('suburb' in value) || value['suburb'] === undefined)
28
30
  return false;
29
31
  if (!('city' in value) || value['city'] === undefined)
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
48
50
  return {
49
51
  'id': json['id'] == null ? undefined : json['id'],
50
52
  'addressLine1': json['addressLine1'],
51
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
53
+ 'addressLine2': json['addressLine2'],
52
54
  'suburb': json['suburb'],
53
55
  'city': json['city'],
54
56
  'state': json['state'],
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText?: string | null;
47
+ altText: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,6 +30,8 @@ function instanceOfAssetResource(value) {
30
30
  return false;
31
31
  if (!('mimeType' in value) || value['mimeType'] === undefined)
32
32
  return false;
33
+ if (!('altText' in value) || value['altText'] === undefined)
34
+ return false;
33
35
  if (!('index' in value) || value['index'] === undefined)
34
36
  return false;
35
37
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'filePath': json['filePath'],
51
53
  'fileName': json['fileName'],
52
54
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'] == null ? undefined : json['altText'],
55
+ 'altText': json['altText'],
54
56
  'index': json['index'],
55
57
  'fileId': json['fileId'],
56
58
  'isExternal': json['isExternal'],
@@ -32,7 +32,7 @@ export interface IncidentImageResource {
32
32
  * @type {string}
33
33
  * @memberof IncidentImageResource
34
34
  */
35
- altText: string;
35
+ altText?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
26
26
  return false;
27
27
  if (!('mimeType' in value) || value['mimeType'] === undefined)
28
28
  return false;
29
- if (!('altText' in value) || value['altText'] === undefined)
30
- return false;
31
29
  if (!('assetId' in value) || value['assetId'] === undefined)
32
30
  return false;
33
31
  if (!('url' in value) || value['url'] === undefined)
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
44
42
  return {
45
43
  'fileId': json['file_id'],
46
44
  'mimeType': json['mime_type'],
47
- 'altText': json['alt_text'],
45
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
48
46
  'assetId': json['asset_id'],
49
47
  'url': json['url'],
50
48
  };
@@ -63,6 +63,8 @@ export declare const NotificationPreferenceResourceNotificationTypeEnum: {
63
63
  readonly NonSignOn: "non_sign_on";
64
64
  readonly SignOnRejected: "sign_on_rejected";
65
65
  readonly LicenceUpdated: "licence_updated";
66
+ readonly ExportReady: "export_ready";
67
+ readonly ExportFailed: "export_failed";
66
68
  };
67
69
  export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
68
70
  /**
@@ -29,7 +29,9 @@ exports.NotificationPreferenceResourceNotificationTypeEnum = {
29
29
  NonSignOff: 'non_sign_off',
30
30
  NonSignOn: 'non_sign_on',
31
31
  SignOnRejected: 'sign_on_rejected',
32
- LicenceUpdated: 'licence_updated'
32
+ LicenceUpdated: 'licence_updated',
33
+ ExportReady: 'export_ready',
34
+ ExportFailed: 'export_failed'
33
35
  };
34
36
  /**
35
37
  * Check if a given object implements the NotificationPreferenceResource interface.
@@ -44,6 +44,8 @@ export declare const NotificationPreferencesBulkRequestPreferencesInnerNotificat
44
44
  readonly NonSignOn: "non_sign_on";
45
45
  readonly SignOnRejected: "sign_on_rejected";
46
46
  readonly LicenceUpdated: "licence_updated";
47
+ readonly ExportReady: "export_ready";
48
+ readonly ExportFailed: "export_failed";
47
49
  };
48
50
  export type NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum[keyof typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum];
49
51
  /**
@@ -28,7 +28,9 @@ exports.NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum =
28
28
  NonSignOff: 'non_sign_off',
29
29
  NonSignOn: 'non_sign_on',
30
30
  SignOnRejected: 'sign_on_rejected',
31
- LicenceUpdated: 'licence_updated'
31
+ LicenceUpdated: 'licence_updated',
32
+ ExportReady: 'export_ready',
33
+ ExportFailed: 'export_failed'
32
34
  };
33
35
  /**
34
36
  * Check if a given object implements the NotificationPreferencesBulkRequestPreferencesInner interface.
@@ -44,6 +44,8 @@ export declare const NotificationPreferencesStoreRequestNotificationTypeEnum: {
44
44
  readonly NonSignOn: "non_sign_on";
45
45
  readonly SignOnRejected: "sign_on_rejected";
46
46
  readonly LicenceUpdated: "licence_updated";
47
+ readonly ExportReady: "export_ready";
48
+ readonly ExportFailed: "export_failed";
47
49
  };
48
50
  export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
49
51
  /**
@@ -28,7 +28,9 @@ exports.NotificationPreferencesStoreRequestNotificationTypeEnum = {
28
28
  NonSignOff: 'non_sign_off',
29
29
  NonSignOn: 'non_sign_on',
30
30
  SignOnRejected: 'sign_on_rejected',
31
- LicenceUpdated: 'licence_updated'
31
+ LicenceUpdated: 'licence_updated',
32
+ ExportReady: 'export_ready',
33
+ ExportFailed: 'export_failed'
32
34
  };
33
35
  /**
34
36
  * Check if a given object implements the NotificationPreferencesStoreRequest interface.
@@ -148,13 +148,13 @@ export interface RegisterListResource {
148
148
  * @type {number}
149
149
  * @memberof RegisterListResource
150
150
  */
151
- signOffLat: number;
151
+ signOffLat?: number | null;
152
152
  /**
153
153
  *
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLong: number;
157
+ signOffLong?: number | null;
158
158
  /**
159
159
  *
160
160
  * @type {boolean}
@@ -67,10 +67,6 @@ function instanceOfRegisterListResource(value) {
67
67
  return false;
68
68
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
69
69
  return false;
70
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
71
- return false;
72
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
73
- return false;
74
70
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
75
71
  return false;
76
72
  return true;
@@ -104,8 +100,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
104
100
  'firstAid': json['firstAid'],
105
101
  'signOnLat': json['signOnLat'],
106
102
  'signOnLong': json['signOnLong'],
107
- 'signOffLat': json['signOffLat'],
108
- 'signOffLong': json['signOffLong'],
103
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
104
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
109
105
  'hasIncidents': json['hasIncidents'],
110
106
  };
111
107
  }
@@ -106,13 +106,13 @@ export interface RegisterResource {
106
106
  * @type {number}
107
107
  * @memberof RegisterResource
108
108
  */
109
- signOffLat: number;
109
+ signOffLat?: number | null;
110
110
  /**
111
111
  *
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong?: number | null;
115
+ signOffLong: number;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -142,7 +142,7 @@ export interface RegisterResource {
142
142
  * @type {string}
143
143
  * @memberof RegisterResource
144
144
  */
145
- badgeNumber: string;
145
+ badgeNumber?: string | null;
146
146
  /**
147
147
  *
148
148
  * @type {Date}
@@ -57,7 +57,7 @@ function instanceOfRegisterResource(value) {
57
57
  return false;
58
58
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
59
59
  return false;
60
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
60
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
61
61
  return false;
62
62
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
63
63
  return false;
@@ -67,8 +67,6 @@ function instanceOfRegisterResource(value) {
67
67
  return false;
68
68
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
69
69
  return false;
70
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
71
- return false;
72
70
  return true;
73
71
  }
74
72
  function RegisterResourceFromJSON(json) {
@@ -93,13 +91,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
93
91
  'firstAidImage': json['firstAidImage'],
94
92
  'signOnLat': json['signOnLat'],
95
93
  'signOnLong': json['signOnLong'],
96
- 'signOffLat': json['signOffLat'],
97
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
94
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
95
+ 'signOffLong': json['signOffLong'],
98
96
  'licenceNumber': json['licenceNumber'],
99
97
  'licenceExpiry': json['licenceExpiry'],
100
98
  'licenceFirstName': json['licenceFirstName'],
101
99
  'licenceLastName': json['licenceLastName'],
102
- 'badgeNumber': json['badgeNumber'],
100
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
103
101
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
104
102
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
105
103
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.484",
3
+ "version": "0.0.485",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2?: string | null;
39
+ addressLine2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,6 +80,7 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
83
+ if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
83
84
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
84
85
  if (!('city' in value) || value['city'] === undefined) return false;
85
86
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
101
102
 
102
103
  'id': json['id'] == null ? undefined : json['id'],
103
104
  'addressLine1': json['addressLine1'],
104
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
105
+ 'addressLine2': json['addressLine2'],
105
106
  'suburb': json['suburb'],
106
107
  'city': json['city'],
107
108
  'state': json['state'],
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,6 +83,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
86
+ if (!('altText' in value) || value['altText'] === undefined) return false;
86
87
  if (!('index' in value) || value['index'] === undefined) return false;
87
88
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
88
89
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -103,7 +104,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
103
104
  'filePath': json['filePath'],
104
105
  'fileName': json['fileName'],
105
106
  'mimeType': json['mimeType'],
106
- 'altText': json['altText'] == null ? undefined : json['altText'],
107
+ 'altText': json['altText'],
107
108
  'index': json['index'],
108
109
  'fileId': json['fileId'],
109
110
  'isExternal': json['isExternal'],
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
36
36
  * @type {string}
37
37
  * @memberof IncidentImageResource
38
38
  */
39
- altText: string;
39
+ altText?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
57
57
  export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
58
58
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
59
59
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
60
- if (!('altText' in value) || value['altText'] === undefined) return false;
61
60
  if (!('assetId' in value) || value['assetId'] === undefined) return false;
62
61
  if (!('url' in value) || value['url'] === undefined) return false;
63
62
  return true;
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
75
74
 
76
75
  'fileId': json['file_id'],
77
76
  'mimeType': json['mime_type'],
78
- 'altText': json['alt_text'],
77
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
79
78
  'assetId': json['asset_id'],
80
79
  'url': json['url'],
81
80
  };
@@ -75,7 +75,9 @@ export const NotificationPreferenceResourceNotificationTypeEnum = {
75
75
  NonSignOff: 'non_sign_off',
76
76
  NonSignOn: 'non_sign_on',
77
77
  SignOnRejected: 'sign_on_rejected',
78
- LicenceUpdated: 'licence_updated'
78
+ LicenceUpdated: 'licence_updated',
79
+ ExportReady: 'export_ready',
80
+ ExportFailed: 'export_failed'
79
81
  } as const;
80
82
  export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
81
83
 
@@ -49,7 +49,9 @@ export const NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeE
49
49
  NonSignOff: 'non_sign_off',
50
50
  NonSignOn: 'non_sign_on',
51
51
  SignOnRejected: 'sign_on_rejected',
52
- LicenceUpdated: 'licence_updated'
52
+ LicenceUpdated: 'licence_updated',
53
+ ExportReady: 'export_ready',
54
+ ExportFailed: 'export_failed'
53
55
  } as const;
54
56
  export type NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum[keyof typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum];
55
57
 
@@ -49,7 +49,9 @@ export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
49
49
  NonSignOff: 'non_sign_off',
50
50
  NonSignOn: 'non_sign_on',
51
51
  SignOnRejected: 'sign_on_rejected',
52
- LicenceUpdated: 'licence_updated'
52
+ LicenceUpdated: 'licence_updated',
53
+ ExportReady: 'export_ready',
54
+ ExportFailed: 'export_failed'
53
55
  } as const;
54
56
  export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
55
57
 
@@ -165,13 +165,13 @@ export interface RegisterListResource {
165
165
  * @type {number}
166
166
  * @memberof RegisterListResource
167
167
  */
168
- signOffLat: number;
168
+ signOffLat?: number | null;
169
169
  /**
170
170
  *
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLong: number;
174
+ signOffLong?: number | null;
175
175
  /**
176
176
  *
177
177
  * @type {boolean}
@@ -213,8 +213,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
213
213
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
214
214
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
215
215
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
216
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
217
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
218
216
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
219
217
  return true;
220
218
  }
@@ -250,8 +248,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
250
248
  'firstAid': json['firstAid'],
251
249
  'signOnLat': json['signOnLat'],
252
250
  'signOnLong': json['signOnLong'],
253
- 'signOffLat': json['signOffLat'],
254
- 'signOffLong': json['signOffLong'],
251
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
252
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
255
253
  'hasIncidents': json['hasIncidents'],
256
254
  };
257
255
  }
@@ -123,13 +123,13 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat: number;
126
+ signOffLat?: number | null;
127
127
  /**
128
128
  *
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong?: number | null;
132
+ signOffLong: number;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -159,7 +159,7 @@ export interface RegisterResource {
159
159
  * @type {string}
160
160
  * @memberof RegisterResource
161
161
  */
162
- badgeNumber: string;
162
+ badgeNumber?: string | null;
163
163
  /**
164
164
  *
165
165
  * @type {Date}
@@ -208,12 +208,11 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
208
208
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
209
209
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
210
210
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
211
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
211
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
212
212
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
213
213
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
214
214
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
215
215
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
216
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
217
216
  return true;
218
217
  }
219
218
 
@@ -241,13 +240,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
241
240
  'firstAidImage': json['firstAidImage'],
242
241
  'signOnLat': json['signOnLat'],
243
242
  'signOnLong': json['signOnLong'],
244
- 'signOffLat': json['signOffLat'],
245
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
243
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
244
+ 'signOffLong': json['signOffLong'],
246
245
  'licenceNumber': json['licenceNumber'],
247
246
  'licenceExpiry': json['licenceExpiry'],
248
247
  'licenceFirstName': json['licenceFirstName'],
249
248
  'licenceLastName': json['licenceLastName'],
250
- 'badgeNumber': json['badgeNumber'],
249
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
251
250
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
252
251
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
253
252
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),