@digital8/security-registers-backend-ts-sdk 0.0.293 → 0.0.295

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.
@@ -0,0 +1,375 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuthRegisterGuardRequest
20
+ */
21
+ export interface AuthRegisterGuardRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AuthRegisterGuardRequest
26
+ */
27
+ firstName: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AuthRegisterGuardRequest
32
+ */
33
+ lastName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AuthRegisterGuardRequest
38
+ */
39
+ email: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AuthRegisterGuardRequest
44
+ */
45
+ mobile: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AuthRegisterGuardRequest
50
+ */
51
+ password: string;
52
+ /**
53
+ *
54
+ * @type {Array<string>}
55
+ * @memberof AuthRegisterGuardRequest
56
+ */
57
+ profileSignature: Array<string>;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof AuthRegisterGuardRequest
62
+ */
63
+ profileSignatureFileId?: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof AuthRegisterGuardRequest
68
+ */
69
+ profileSignatureFileName?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof AuthRegisterGuardRequest
74
+ */
75
+ profileSignatureMimeType?: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof AuthRegisterGuardRequest
80
+ */
81
+ profileSignatureAltText?: string;
82
+ /**
83
+ *
84
+ * @type {Array<string>}
85
+ * @memberof AuthRegisterGuardRequest
86
+ */
87
+ licence: Array<string>;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof AuthRegisterGuardRequest
92
+ */
93
+ licenceState: AuthRegisterGuardRequestLicenceStateEnum;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof AuthRegisterGuardRequest
98
+ */
99
+ licenceLicenceNumber: string;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof AuthRegisterGuardRequest
104
+ */
105
+ licenceFirstName: string;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof AuthRegisterGuardRequest
110
+ */
111
+ licenceLastName: string;
112
+ /**
113
+ *
114
+ * @type {Date}
115
+ * @memberof AuthRegisterGuardRequest
116
+ */
117
+ licenceExpiryDate: Date;
118
+ /**
119
+ *
120
+ * @type {Array<string>}
121
+ * @memberof AuthRegisterGuardRequest
122
+ */
123
+ licenceFrontAsset: Array<string>;
124
+ /**
125
+ *
126
+ * @type {number}
127
+ * @memberof AuthRegisterGuardRequest
128
+ */
129
+ licenceFrontAssetFileId?: number;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof AuthRegisterGuardRequest
134
+ */
135
+ licenceFrontAssetFileName?: string;
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof AuthRegisterGuardRequest
140
+ */
141
+ licenceFrontAssetMimeType?: string;
142
+ /**
143
+ *
144
+ * @type {string}
145
+ * @memberof AuthRegisterGuardRequest
146
+ */
147
+ licenceFrontAssetAltText?: string;
148
+ /**
149
+ *
150
+ * @type {Array<string>}
151
+ * @memberof AuthRegisterGuardRequest
152
+ */
153
+ licenceBackAsset?: Array<string>;
154
+ /**
155
+ *
156
+ * @type {number}
157
+ * @memberof AuthRegisterGuardRequest
158
+ */
159
+ licenceBackAssetFileId?: number;
160
+ /**
161
+ *
162
+ * @type {string}
163
+ * @memberof AuthRegisterGuardRequest
164
+ */
165
+ licenceBackAssetFileName?: string;
166
+ /**
167
+ *
168
+ * @type {string}
169
+ * @memberof AuthRegisterGuardRequest
170
+ */
171
+ licenceBackAssetMimeType?: string;
172
+ /**
173
+ *
174
+ * @type {string}
175
+ * @memberof AuthRegisterGuardRequest
176
+ */
177
+ licenceBackAssetAltText?: string;
178
+ /**
179
+ *
180
+ * @type {Array<string>}
181
+ * @memberof AuthRegisterGuardRequest
182
+ */
183
+ licenceRsaAsset?: Array<string>;
184
+ /**
185
+ *
186
+ * @type {number}
187
+ * @memberof AuthRegisterGuardRequest
188
+ */
189
+ licenceRsaAssetFileId?: number;
190
+ /**
191
+ *
192
+ * @type {string}
193
+ * @memberof AuthRegisterGuardRequest
194
+ */
195
+ licenceRsaAssetFileName?: string;
196
+ /**
197
+ *
198
+ * @type {string}
199
+ * @memberof AuthRegisterGuardRequest
200
+ */
201
+ licenceRsaAssetMimeType?: string;
202
+ /**
203
+ *
204
+ * @type {string}
205
+ * @memberof AuthRegisterGuardRequest
206
+ */
207
+ licenceRsaAssetAltText?: string;
208
+ /**
209
+ *
210
+ * @type {Array<string>}
211
+ * @memberof AuthRegisterGuardRequest
212
+ */
213
+ licenceFirstAidAsset?: Array<string>;
214
+ /**
215
+ *
216
+ * @type {number}
217
+ * @memberof AuthRegisterGuardRequest
218
+ */
219
+ licenceFirstAidAssetFileId?: number;
220
+ /**
221
+ *
222
+ * @type {string}
223
+ * @memberof AuthRegisterGuardRequest
224
+ */
225
+ licenceFirstAidAssetFileName?: string;
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof AuthRegisterGuardRequest
230
+ */
231
+ licenceFirstAidAssetMimeType?: string;
232
+ /**
233
+ *
234
+ * @type {string}
235
+ * @memberof AuthRegisterGuardRequest
236
+ */
237
+ licenceFirstAidAssetAltText?: string;
238
+ }
239
+
240
+
241
+ /**
242
+ * @export
243
+ */
244
+ export const AuthRegisterGuardRequestLicenceStateEnum = {
245
+ Qld: 'QLD',
246
+ Nsw: 'NSW',
247
+ Act: 'ACT',
248
+ Vic: 'VIC',
249
+ Tas: 'TAS',
250
+ Sa: 'SA',
251
+ Wa: 'WA',
252
+ Nt: 'NT'
253
+ } as const;
254
+ export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
255
+
256
+
257
+ /**
258
+ * Check if a given object implements the AuthRegisterGuardRequest interface.
259
+ */
260
+ export function instanceOfAuthRegisterGuardRequest(value: object): value is AuthRegisterGuardRequest {
261
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
262
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
263
+ if (!('email' in value) || value['email'] === undefined) return false;
264
+ if (!('mobile' in value) || value['mobile'] === undefined) return false;
265
+ if (!('password' in value) || value['password'] === undefined) return false;
266
+ if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
267
+ if (!('licence' in value) || value['licence'] === undefined) return false;
268
+ if (!('licenceState' in value) || value['licenceState'] === undefined) return false;
269
+ if (!('licenceLicenceNumber' in value) || value['licenceLicenceNumber'] === undefined) return false;
270
+ if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
271
+ if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
272
+ if (!('licenceExpiryDate' in value) || value['licenceExpiryDate'] === undefined) return false;
273
+ if (!('licenceFrontAsset' in value) || value['licenceFrontAsset'] === undefined) return false;
274
+ return true;
275
+ }
276
+
277
+ export function AuthRegisterGuardRequestFromJSON(json: any): AuthRegisterGuardRequest {
278
+ return AuthRegisterGuardRequestFromJSONTyped(json, false);
279
+ }
280
+
281
+ export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequest {
282
+ if (json == null) {
283
+ return json;
284
+ }
285
+ return {
286
+
287
+ 'firstName': json['first_name'],
288
+ 'lastName': json['last_name'],
289
+ 'email': json['email'],
290
+ 'mobile': json['mobile'],
291
+ 'password': json['password'],
292
+ 'profileSignature': json['profile_signature'],
293
+ 'profileSignatureFileId': json['profile_signature.file_id'] == null ? undefined : json['profile_signature.file_id'],
294
+ 'profileSignatureFileName': json['profile_signature.file_name'] == null ? undefined : json['profile_signature.file_name'],
295
+ 'profileSignatureMimeType': json['profile_signature.mime_type'] == null ? undefined : json['profile_signature.mime_type'],
296
+ 'profileSignatureAltText': json['profile_signature.alt_text'] == null ? undefined : json['profile_signature.alt_text'],
297
+ 'licence': json['licence'],
298
+ 'licenceState': json['licence.state'],
299
+ 'licenceLicenceNumber': json['licence.licence_number'],
300
+ 'licenceFirstName': json['licence.first_name'],
301
+ 'licenceLastName': json['licence.last_name'],
302
+ 'licenceExpiryDate': (new Date(json['licence.expiry_date'])),
303
+ 'licenceFrontAsset': json['licence.front_asset'],
304
+ 'licenceFrontAssetFileId': json['licence.front_asset.file_id'] == null ? undefined : json['licence.front_asset.file_id'],
305
+ 'licenceFrontAssetFileName': json['licence.front_asset.file_name'] == null ? undefined : json['licence.front_asset.file_name'],
306
+ 'licenceFrontAssetMimeType': json['licence.front_asset.mime_type'] == null ? undefined : json['licence.front_asset.mime_type'],
307
+ 'licenceFrontAssetAltText': json['licence.front_asset.alt_text'] == null ? undefined : json['licence.front_asset.alt_text'],
308
+ 'licenceBackAsset': json['licence.back_asset'] == null ? undefined : json['licence.back_asset'],
309
+ 'licenceBackAssetFileId': json['licence.back_asset.file_id'] == null ? undefined : json['licence.back_asset.file_id'],
310
+ 'licenceBackAssetFileName': json['licence.back_asset.file_name'] == null ? undefined : json['licence.back_asset.file_name'],
311
+ 'licenceBackAssetMimeType': json['licence.back_asset.mime_type'] == null ? undefined : json['licence.back_asset.mime_type'],
312
+ 'licenceBackAssetAltText': json['licence.back_asset.alt_text'] == null ? undefined : json['licence.back_asset.alt_text'],
313
+ 'licenceRsaAsset': json['licence.rsa_asset'] == null ? undefined : json['licence.rsa_asset'],
314
+ 'licenceRsaAssetFileId': json['licence.rsa_asset.file_id'] == null ? undefined : json['licence.rsa_asset.file_id'],
315
+ 'licenceRsaAssetFileName': json['licence.rsa_asset.file_name'] == null ? undefined : json['licence.rsa_asset.file_name'],
316
+ 'licenceRsaAssetMimeType': json['licence.rsa_asset.mime_type'] == null ? undefined : json['licence.rsa_asset.mime_type'],
317
+ 'licenceRsaAssetAltText': json['licence.rsa_asset.alt_text'] == null ? undefined : json['licence.rsa_asset.alt_text'],
318
+ 'licenceFirstAidAsset': json['licence.first_aid_asset'] == null ? undefined : json['licence.first_aid_asset'],
319
+ 'licenceFirstAidAssetFileId': json['licence.first_aid_asset.file_id'] == null ? undefined : json['licence.first_aid_asset.file_id'],
320
+ 'licenceFirstAidAssetFileName': json['licence.first_aid_asset.file_name'] == null ? undefined : json['licence.first_aid_asset.file_name'],
321
+ 'licenceFirstAidAssetMimeType': json['licence.first_aid_asset.mime_type'] == null ? undefined : json['licence.first_aid_asset.mime_type'],
322
+ 'licenceFirstAidAssetAltText': json['licence.first_aid_asset.alt_text'] == null ? undefined : json['licence.first_aid_asset.alt_text'],
323
+ };
324
+ }
325
+
326
+ export function AuthRegisterGuardRequestToJSON(json: any): AuthRegisterGuardRequest {
327
+ return AuthRegisterGuardRequestToJSONTyped(json, false);
328
+ }
329
+
330
+ export function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardRequest | null, ignoreDiscriminator: boolean = false): any {
331
+ if (value == null) {
332
+ return value;
333
+ }
334
+
335
+ return {
336
+
337
+ 'first_name': value['firstName'],
338
+ 'last_name': value['lastName'],
339
+ 'email': value['email'],
340
+ 'mobile': value['mobile'],
341
+ 'password': value['password'],
342
+ 'profile_signature': value['profileSignature'],
343
+ 'profile_signature.file_id': value['profileSignatureFileId'],
344
+ 'profile_signature.file_name': value['profileSignatureFileName'],
345
+ 'profile_signature.mime_type': value['profileSignatureMimeType'],
346
+ 'profile_signature.alt_text': value['profileSignatureAltText'],
347
+ 'licence': value['licence'],
348
+ 'licence.state': value['licenceState'],
349
+ 'licence.licence_number': value['licenceLicenceNumber'],
350
+ 'licence.first_name': value['licenceFirstName'],
351
+ 'licence.last_name': value['licenceLastName'],
352
+ 'licence.expiry_date': ((value['licenceExpiryDate']).toISOString()),
353
+ 'licence.front_asset': value['licenceFrontAsset'],
354
+ 'licence.front_asset.file_id': value['licenceFrontAssetFileId'],
355
+ 'licence.front_asset.file_name': value['licenceFrontAssetFileName'],
356
+ 'licence.front_asset.mime_type': value['licenceFrontAssetMimeType'],
357
+ 'licence.front_asset.alt_text': value['licenceFrontAssetAltText'],
358
+ 'licence.back_asset': value['licenceBackAsset'],
359
+ 'licence.back_asset.file_id': value['licenceBackAssetFileId'],
360
+ 'licence.back_asset.file_name': value['licenceBackAssetFileName'],
361
+ 'licence.back_asset.mime_type': value['licenceBackAssetMimeType'],
362
+ 'licence.back_asset.alt_text': value['licenceBackAssetAltText'],
363
+ 'licence.rsa_asset': value['licenceRsaAsset'],
364
+ 'licence.rsa_asset.file_id': value['licenceRsaAssetFileId'],
365
+ 'licence.rsa_asset.file_name': value['licenceRsaAssetFileName'],
366
+ 'licence.rsa_asset.mime_type': value['licenceRsaAssetMimeType'],
367
+ 'licence.rsa_asset.alt_text': value['licenceRsaAssetAltText'],
368
+ 'licence.first_aid_asset': value['licenceFirstAidAsset'],
369
+ 'licence.first_aid_asset.file_id': value['licenceFirstAidAssetFileId'],
370
+ 'licence.first_aid_asset.file_name': value['licenceFirstAidAssetFileName'],
371
+ 'licence.first_aid_asset.mime_type': value['licenceFirstAidAssetMimeType'],
372
+ 'licence.first_aid_asset.alt_text': value['licenceFirstAidAssetAltText'],
373
+ };
374
+ }
375
+
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
69
69
  * @type {Date}
70
70
  * @memberof RegisterGroupedByRosterResource
71
71
  */
72
- finishDateTime?: Date | null;
72
+ finishDateTime: Date;
73
73
  /**
74
74
  *
75
75
  * @type {Array<RegisterListResource>}
@@ -86,6 +86,7 @@ export function instanceOfRegisterGroupedByRosterResource(value: object): value
86
86
  if (!('timezone' in value) || value['timezone'] === undefined) return false;
87
87
  if (!('state' in value) || value['state'] === undefined) return false;
88
88
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
89
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
89
90
  if (!('registers' in value) || value['registers'] === undefined) return false;
90
91
  return true;
91
92
  }
@@ -105,7 +106,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
105
106
  'timezone': json['timezone'],
106
107
  'state': json['state'],
107
108
  'startDateTime': (new Date(json['startDateTime'])),
108
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
109
+ 'finishDateTime': (new Date(json['finishDateTime'])),
109
110
  'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
110
111
  };
111
112
  }
@@ -126,7 +127,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
126
127
  'timezone': value['timezone'],
127
128
  'state': value['state'],
128
129
  'startDateTime': ((value['startDateTime']).toISOString()),
129
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
130
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
130
131
  'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
131
132
  };
132
133
  }
@@ -70,13 +70,13 @@ export interface RegisterListResource {
70
70
  * @type {Date}
71
71
  * @memberof RegisterListResource
72
72
  */
73
- finishDateTime?: Date | null;
73
+ finishDateTime: Date;
74
74
  /**
75
75
  *
76
- * @type {object}
76
+ * @type {string}
77
77
  * @memberof RegisterListResource
78
78
  */
79
- shiftLength: object;
79
+ shiftLength: string;
80
80
  /**
81
81
  *
82
82
  * @type {number}
@@ -166,13 +166,13 @@ export interface RegisterListResource {
166
166
  * @type {number}
167
167
  * @memberof RegisterListResource
168
168
  */
169
- signOffLat?: number | null;
169
+ signOffLat: number;
170
170
  /**
171
171
  *
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>}
@@ -188,6 +188,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
188
188
  if (!('user' in value) || value['user'] === undefined) return false;
189
189
  if (!('venue' in value) || value['venue'] === undefined) return false;
190
190
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
191
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
191
192
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
192
193
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
193
194
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -202,6 +203,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
202
203
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
203
204
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
204
205
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
206
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
207
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
205
208
  if (!('incidents' in value) || value['incidents'] === undefined) return false;
206
209
  return true;
207
210
  }
@@ -220,7 +223,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
220
223
  'user': UserLiteResourceFromJSON(json['user']),
221
224
  'venue': VenueLiteResourceFromJSON(json['venue']),
222
225
  'startDateTime': (new Date(json['startDateTime'])),
223
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
226
+ 'finishDateTime': (new Date(json['finishDateTime'])),
224
227
  'shiftLength': json['shiftLength'],
225
228
  'signOffStatus': json['signOffStatus'],
226
229
  'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
@@ -236,8 +239,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
236
239
  'firstAid': json['firstAid'],
237
240
  'signOnLat': json['signOnLat'],
238
241
  'signOnLong': json['signOnLong'],
239
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
240
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
242
+ 'signOffLat': json['signOffLat'],
243
+ 'signOffLong': json['signOffLong'],
241
244
  'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
242
245
  };
243
246
  }
@@ -257,7 +260,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
257
260
  'user': UserLiteResourceToJSON(value['user']),
258
261
  'venue': VenueLiteResourceToJSON(value['venue']),
259
262
  'startDateTime': ((value['startDateTime']).toISOString()),
260
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
263
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
261
264
  'shiftLength': value['shiftLength'],
262
265
  'signOffStatus': value['signOffStatus'],
263
266
  'badgeNumber': value['badgeNumber'],
@@ -63,7 +63,7 @@ export interface RegisterResource {
63
63
  * @type {Date}
64
64
  * @memberof RegisterResource
65
65
  */
66
- finishDateTime?: Date | null;
66
+ finishDateTime: Date;
67
67
  /**
68
68
  *
69
69
  * @type {number}
@@ -123,7 +123,7 @@ 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}
@@ -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}
@@ -181,6 +181,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
181
181
  if (!('venue' in value) || value['venue'] === undefined) return false;
182
182
  if (!('user' in value) || value['user'] === undefined) return false;
183
183
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
184
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
184
185
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
185
186
  if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
186
187
  if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
@@ -190,12 +191,10 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
190
191
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
191
192
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
192
193
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
193
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
194
194
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
195
195
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
196
196
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
197
197
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
198
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
199
198
  return true;
200
199
  }
201
200
 
@@ -213,7 +212,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
213
212
  'venue': VenueLiteResourceFromJSON(json['venue']),
214
213
  'user': UserLiteResourceFromJSON(json['user']),
215
214
  'startDateTime': (new Date(json['startDateTime'])),
216
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
215
+ 'finishDateTime': (new Date(json['finishDateTime'])),
217
216
  'signOffStatus': json['signOffStatus'],
218
217
  'signOnSignature': json['signOnSignature'],
219
218
  'signOffSignature': json['signOffSignature'],
@@ -223,13 +222,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
223
222
  'firstAidImage': json['firstAidImage'],
224
223
  'signOnLat': json['signOnLat'],
225
224
  'signOnLong': json['signOnLong'],
226
- 'signOffLat': json['signOffLat'],
225
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
227
226
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
228
227
  'licenceNumber': json['licenceNumber'],
229
228
  'licenceExpiry': json['licenceExpiry'],
230
229
  'licenceFirstName': json['licenceFirstName'],
231
230
  'licenceLastName': json['licenceLastName'],
232
- 'badgeNumber': json['badgeNumber'],
231
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
233
232
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
234
233
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
235
234
  };
@@ -250,7 +249,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
250
249
  'venue': VenueLiteResourceToJSON(value['venue']),
251
250
  'user': UserLiteResourceToJSON(value['user']),
252
251
  'startDateTime': ((value['startDateTime']).toISOString()),
253
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
252
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
254
253
  'signOffStatus': value['signOffStatus'],
255
254
  'signOnSignature': value['signOnSignature'],
256
255
  'signOffSignature': value['signOffSignature'],
@@ -63,7 +63,7 @@ export interface RosterListResource {
63
63
  * @type {Date}
64
64
  * @memberof RosterListResource
65
65
  */
66
- finishDateTime: Date;
66
+ finishDateTime?: Date | null;
67
67
  /**
68
68
  *
69
69
  * @type {boolean}
@@ -97,7 +97,6 @@ export function instanceOfRosterListResource(value: object): value is RosterList
97
97
  if (!('venue' in value) || value['venue'] === undefined) return false;
98
98
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
99
99
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
100
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
101
100
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
102
101
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
103
102
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -119,7 +118,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
119
118
  'venue': VenueLiteResourceFromJSON(json['venue']),
120
119
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
121
120
  'startDateTime': (new Date(json['startDateTime'])),
122
- 'finishDateTime': (new Date(json['finishDateTime'])),
121
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
123
122
  'isCompliant': json['isCompliant'],
124
123
  'isComplete': json['isComplete'],
125
124
  'signOffStatus': json['signOffStatus'],
@@ -142,7 +141,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
142
141
  'venue': VenueLiteResourceToJSON(value['venue']),
143
142
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
144
143
  'startDateTime': ((value['startDateTime']).toISOString()),
145
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
144
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
146
145
  'isCompliant': value['isCompliant'],
147
146
  'isComplete': value['isComplete'],
148
147
  'signOffStatus': value['signOffStatus'],
@@ -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
 
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email: string;
47
+ email?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
82
82
  */
83
83
  export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
84
84
  if (!('name' in value) || value['name'] === undefined) return false;
85
- if (!('email' in value) || value['email'] === undefined) return false;
86
85
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
87
86
  if (!('address' in value) || value['address'] === undefined) return false;
88
87
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
101
100
 
102
101
  'id': json['id'] == null ? undefined : json['id'],
103
102
  'name': json['name'],
104
- 'email': json['email'],
103
+ 'email': json['email'] == null ? undefined : json['email'],
105
104
  'isEnabled': json['isEnabled'],
106
105
  'address': AddressResourceFromJSON(json['address']),
107
106
  'licenceNumber': json['licenceNumber'],
@@ -10,6 +10,7 @@ export * from './AssetResource';
10
10
  export * from './AssetResourceArrayResponse';
11
11
  export * from './AuthChangePasswordRequest';
12
12
  export * from './AuthProfileUpdateRequest';
13
+ export * from './AuthRegisterGuardRequest';
13
14
  export * from './CurrentRegisterResource';
14
15
  export * from './CurrentRegisterResourceArrayResponse';
15
16
  export * from './DevicesRegisterRequest';