@digital8/security-registers-backend-ts-sdk 0.0.287 → 0.0.288

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.287
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.288
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.287 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.288 --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;
47
+ altText?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,8 +30,6 @@ 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;
35
33
  if (!('index' in value) || value['index'] === undefined)
36
34
  return false;
37
35
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
48
  'filePath': json['filePath'],
51
49
  'fileName': json['fileName'],
52
50
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'],
51
+ 'altText': json['altText'] == null ? undefined : json['altText'],
54
52
  'index': json['index'],
55
53
  'fileId': json['fileId'],
56
54
  };
@@ -90,6 +90,12 @@ export interface IncidentListResource {
90
90
  * @memberof IncidentListResource
91
91
  */
92
92
  createdAt?: Date | null;
93
+ /**
94
+ *
95
+ * @type {Date}
96
+ * @memberof IncidentListResource
97
+ */
98
+ updatedAt?: Date | null;
93
99
  }
94
100
  /**
95
101
  * Check if a given object implements the IncidentListResource interface.
@@ -51,13 +51,14 @@ function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'submittedByGuard': json['submittedByGuard'],
52
52
  'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
53
53
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
54
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
54
55
  };
55
56
  }
56
57
  function IncidentListResourceToJSON(json) {
57
58
  return IncidentListResourceToJSONTyped(json, false);
58
59
  }
59
60
  function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
60
- var _a, _b, _c;
61
+ var _a, _b, _c, _d;
61
62
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
63
  if (value == null) {
63
64
  return value;
@@ -75,5 +76,6 @@ function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
75
76
  'submittedByGuard': value['submittedByGuard'],
76
77
  'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
77
78
  'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
79
+ 'updatedAt': value['updatedAt'] === null ? null : ((_d = value['updatedAt']) === null || _d === void 0 ? void 0 : _d.toISOString()),
78
80
  };
79
81
  }
@@ -149,7 +149,7 @@ export interface RegisterListResource {
149
149
  * @type {number}
150
150
  * @memberof RegisterListResource
151
151
  */
152
- signOffLong?: number | null;
152
+ signOffLong: number;
153
153
  /**
154
154
  *
155
155
  * @type {Array<IncidentLiteResource>}
@@ -61,6 +61,8 @@ function instanceOfRegisterListResource(value) {
61
61
  return false;
62
62
  if (!('signOffLat' in value) || value['signOffLat'] === undefined)
63
63
  return false;
64
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
65
+ return false;
64
66
  if (!('incidents' in value) || value['incidents'] === undefined)
65
67
  return false;
66
68
  return true;
@@ -94,7 +96,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
94
96
  'signOnLat': json['signOnLat'],
95
97
  'signOnLong': json['signOnLong'],
96
98
  'signOffLat': json['signOffLat'],
97
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
99
+ 'signOffLong': json['signOffLong'],
98
100
  'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
99
101
  };
100
102
  }
@@ -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}
@@ -50,7 +50,7 @@ function instanceOfRegisterResource(value) {
50
50
  return false;
51
51
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
52
52
  return false;
53
- if (!('signOffLat' in value) || value['signOffLat'] === undefined)
53
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined)
54
54
  return false;
55
55
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
56
56
  return false;
@@ -84,8 +84,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
84
84
  'firstAidImage': json['firstAidImage'],
85
85
  'signOnLat': json['signOnLat'],
86
86
  'signOnLong': json['signOnLong'],
87
- 'signOffLat': json['signOffLat'],
88
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
87
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
88
+ 'signOffLong': json['signOffLong'],
89
89
  'licenceNumber': json['licenceNumber'],
90
90
  'licenceExpiry': json['licenceExpiry'],
91
91
  'licenceFirstName': json['licenceFirstName'],
@@ -32,7 +32,7 @@ export interface RosterLiteResource {
32
32
  * @type {Date}
33
33
  * @memberof RosterLiteResource
34
34
  */
35
- finishDateTime: Date;
35
+ finishDateTime?: Date | null;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the RosterLiteResource interface.
@@ -24,8 +24,6 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
24
24
  function instanceOfRosterLiteResource(value) {
25
25
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
26
26
  return false;
27
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  function RosterLiteResourceFromJSON(json) {
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
38
36
  return {
39
37
  'id': json['id'] == null ? undefined : json['id'],
40
38
  'startDateTime': (new Date(json['startDateTime'])),
41
- 'finishDateTime': (new Date(json['finishDateTime'])),
39
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
42
40
  };
43
41
  }
44
42
  function RosterLiteResourceToJSON(json) {
45
43
  return RosterLiteResourceToJSONTyped(json, false);
46
44
  }
47
45
  function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
46
+ var _a;
48
47
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
48
  if (value == null) {
50
49
  return value;
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
52
51
  return {
53
52
  'id': value['id'],
54
53
  'startDateTime': ((value['startDateTime']).toISOString()),
55
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
54
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
56
55
  };
57
56
  }
@@ -47,7 +47,7 @@ export interface RosterResource {
47
47
  * @type {Date}
48
48
  * @memberof RosterResource
49
49
  */
50
- finishDateTime: Date;
50
+ finishDateTime?: Date | null;
51
51
  /**
52
52
  *
53
53
  * @type {boolean}
@@ -31,8 +31,6 @@ function instanceOfRosterResource(value) {
31
31
  return false;
32
32
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
33
33
  return false;
34
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
35
- return false;
36
34
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
37
35
  return false;
38
36
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -55,7 +53,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
55
53
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
56
54
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
57
55
  'startDateTime': (new Date(json['startDateTime'])),
58
- 'finishDateTime': (new Date(json['finishDateTime'])),
56
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
59
57
  'isCompliant': json['isCompliant'],
60
58
  'isComplete': json['isComplete'],
61
59
  'signOffStatus': json['signOffStatus'],
@@ -66,6 +64,7 @@ function RosterResourceToJSON(json) {
66
64
  return RosterResourceToJSONTyped(json, false);
67
65
  }
68
66
  function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
67
+ var _a;
69
68
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
70
69
  if (value == null) {
71
70
  return value;
@@ -75,7 +74,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
75
74
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
76
75
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
77
76
  'startDateTime': ((value['startDateTime']).toISOString()),
78
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
77
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
79
78
  'isCompliant': value['isCompliant'],
80
79
  'isComplete': value['isComplete'],
81
80
  'signOffStatus': value['signOffStatus'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.287",
3
+ "version": "0.0.288",
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;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -71,7 +71,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
71
71
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
72
72
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
73
73
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
- if (!('altText' in value) || value['altText'] === undefined) return false;
75
74
  if (!('index' in value) || value['index'] === undefined) return false;
76
75
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
77
76
  return true;
@@ -91,7 +90,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
91
90
  'filePath': json['filePath'],
92
91
  'fileName': json['fileName'],
93
92
  'mimeType': json['mimeType'],
94
- 'altText': json['altText'],
93
+ 'altText': json['altText'] == null ? undefined : json['altText'],
95
94
  'index': json['index'],
96
95
  'fileId': json['fileId'],
97
96
  };
@@ -113,6 +113,12 @@ export interface IncidentListResource {
113
113
  * @memberof IncidentListResource
114
114
  */
115
115
  createdAt?: Date | null;
116
+ /**
117
+ *
118
+ * @type {Date}
119
+ * @memberof IncidentListResource
120
+ */
121
+ updatedAt?: Date | null;
116
122
  }
117
123
 
118
124
  /**
@@ -146,6 +152,7 @@ export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator
146
152
  'submittedByGuard': json['submittedByGuard'],
147
153
  'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
148
154
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
155
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
149
156
  };
150
157
  }
151
158
 
@@ -172,6 +179,7 @@ export function IncidentListResourceToJSONTyped(value?: IncidentListResource | n
172
179
  'submittedByGuard': value['submittedByGuard'],
173
180
  'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
174
181
  'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
182
+ 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
175
183
  };
176
184
  }
177
185
 
@@ -172,7 +172,7 @@ export interface RegisterListResource {
172
172
  * @type {number}
173
173
  * @memberof RegisterListResource
174
174
  */
175
- signOffLong?: number | null;
175
+ signOffLong: number;
176
176
  /**
177
177
  *
178
178
  * @type {Array<IncidentLiteResource>}
@@ -203,6 +203,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
203
203
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
204
204
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
205
205
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
206
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
206
207
  if (!('incidents' in value) || value['incidents'] === undefined) return false;
207
208
  return true;
208
209
  }
@@ -238,7 +239,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
238
239
  'signOnLat': json['signOnLat'],
239
240
  'signOnLong': json['signOnLong'],
240
241
  'signOffLat': json['signOffLat'],
241
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
242
+ 'signOffLong': json['signOffLong'],
242
243
  'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
243
244
  };
244
245
  }
@@ -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}
@@ -191,7 +191,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
191
191
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
192
192
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
193
193
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
194
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
194
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
195
195
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
196
196
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
197
197
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -223,8 +223,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
223
223
  'firstAidImage': json['firstAidImage'],
224
224
  'signOnLat': json['signOnLat'],
225
225
  'signOnLong': json['signOnLong'],
226
- 'signOffLat': json['signOffLat'],
227
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
226
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
227
+ 'signOffLong': json['signOffLong'],
228
228
  'licenceNumber': json['licenceNumber'],
229
229
  'licenceExpiry': json['licenceExpiry'],
230
230
  'licenceFirstName': json['licenceFirstName'],
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
36
36
  * @type {Date}
37
37
  * @memberof RosterLiteResource
38
38
  */
39
- finishDateTime: Date;
39
+ finishDateTime?: Date | null;
40
40
  }
41
41
 
42
42
  /**
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
44
44
  */
45
45
  export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
46
46
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
47
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
48
47
  return true;
49
48
  }
50
49
 
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
60
59
 
61
60
  'id': json['id'] == null ? undefined : json['id'],
62
61
  'startDateTime': (new Date(json['startDateTime'])),
63
- 'finishDateTime': (new Date(json['finishDateTime'])),
62
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
64
63
  };
65
64
  }
66
65
 
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
77
76
 
78
77
  'id': value['id'],
79
78
  'startDateTime': ((value['startDateTime']).toISOString()),
80
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
79
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
81
80
  };
82
81
  }
83
82
 
@@ -70,7 +70,7 @@ export interface RosterResource {
70
70
  * @type {Date}
71
71
  * @memberof RosterResource
72
72
  */
73
- finishDateTime: Date;
73
+ finishDateTime?: Date | null;
74
74
  /**
75
75
  *
76
76
  * @type {boolean}
@@ -104,7 +104,6 @@ export function instanceOfRosterResource(value: object): value is RosterResource
104
104
  if (!('venue' in value) || value['venue'] === undefined) return false;
105
105
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
106
106
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
107
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
108
107
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
109
108
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
110
109
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -126,7 +125,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
126
125
  'venue': VenueLiteResourceFromJSON(json['venue']),
127
126
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
128
127
  'startDateTime': (new Date(json['startDateTime'])),
129
- 'finishDateTime': (new Date(json['finishDateTime'])),
128
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
130
129
  'isCompliant': json['isCompliant'],
131
130
  'isComplete': json['isComplete'],
132
131
  'signOffStatus': json['signOffStatus'],
@@ -149,7 +148,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
149
148
  'venue': VenueLiteResourceToJSON(value['venue']),
150
149
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
151
150
  'startDateTime': ((value['startDateTime']).toISOString()),
152
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
151
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
153
152
  'isCompliant': value['isCompliant'],
154
153
  'isComplete': value['isComplete'],
155
154
  'signOffStatus': value['signOffStatus'],