@digital8/security-registers-backend-ts-sdk 0.0.294 → 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.
@@ -33,7 +33,7 @@ export interface SecurityCompanyResource {
33
33
  * @type {string}
34
34
  * @memberof SecurityCompanyResource
35
35
  */
36
- email: string;
36
+ email?: string | null;
37
37
  /**
38
38
  *
39
39
  * @type {boolean}
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
25
25
  function instanceOfSecurityCompanyResource(value) {
26
26
  if (!('name' in value) || value['name'] === undefined)
27
27
  return false;
28
- if (!('email' in value) || value['email'] === undefined)
29
- return false;
30
28
  if (!('isEnabled' in value) || value['isEnabled'] === undefined)
31
29
  return false;
32
30
  if (!('address' in value) || value['address'] === undefined)
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
45
43
  return {
46
44
  'id': json['id'] == null ? undefined : json['id'],
47
45
  'name': json['name'],
48
- 'email': json['email'],
46
+ 'email': json['email'] == null ? undefined : json['email'],
49
47
  'isEnabled': json['isEnabled'],
50
48
  'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
51
49
  'licenceNumber': json['licenceNumber'],
@@ -8,6 +8,7 @@ export * from './AssetResource';
8
8
  export * from './AssetResourceArrayResponse';
9
9
  export * from './AuthChangePasswordRequest';
10
10
  export * from './AuthProfileUpdateRequest';
11
+ export * from './AuthRegisterGuardRequest';
11
12
  export * from './CurrentRegisterResource';
12
13
  export * from './CurrentRegisterResourceArrayResponse';
13
14
  export * from './DevicesRegisterRequest';
@@ -26,6 +26,7 @@ __exportStar(require("./AssetResource"), exports);
26
26
  __exportStar(require("./AssetResourceArrayResponse"), exports);
27
27
  __exportStar(require("./AuthChangePasswordRequest"), exports);
28
28
  __exportStar(require("./AuthProfileUpdateRequest"), exports);
29
+ __exportStar(require("./AuthRegisterGuardRequest"), exports);
29
30
  __exportStar(require("./CurrentRegisterResource"), exports);
30
31
  __exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
31
32
  __exportStar(require("./DevicesRegisterRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.294",
3
+ "version": "0.0.295",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -18,6 +18,7 @@ import type {
18
18
  AssetFileForUploadResource,
19
19
  AuthChangePasswordRequest,
20
20
  AuthProfileUpdateRequest,
21
+ AuthRegisterGuardRequest,
21
22
  DevicesRegisterRequest,
22
23
  GenericResponse,
23
24
  IncidentFieldSchemaResource,
@@ -113,6 +114,8 @@ import {
113
114
  AuthChangePasswordRequestToJSON,
114
115
  AuthProfileUpdateRequestFromJSON,
115
116
  AuthProfileUpdateRequestToJSON,
117
+ AuthRegisterGuardRequestFromJSON,
118
+ AuthRegisterGuardRequestToJSON,
116
119
  DevicesRegisterRequestFromJSON,
117
120
  DevicesRegisterRequestToJSON,
118
121
  GenericResponseFromJSON,
@@ -297,6 +300,10 @@ export interface AuthProfileUpdateOperationRequest {
297
300
  authProfileUpdateRequest?: AuthProfileUpdateRequest;
298
301
  }
299
302
 
303
+ export interface AuthRegisterGuardOperationRequest {
304
+ authRegisterGuardRequest?: AuthRegisterGuardRequest;
305
+ }
306
+
300
307
  export interface DestroyUserRequest {
301
308
  user: number;
302
309
  }
@@ -724,6 +731,46 @@ export class GeneralApi extends runtime.BaseAPI {
724
731
  return await response.value();
725
732
  }
726
733
 
734
+ /**
735
+ * Auto-generated: auth.registerGuard
736
+ */
737
+ async authRegisterGuardRaw(requestParameters: AuthRegisterGuardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
738
+ const queryParameters: any = {};
739
+
740
+ const headerParameters: runtime.HTTPHeaders = {};
741
+
742
+ headerParameters['Content-Type'] = 'application/json';
743
+
744
+ if (this.configuration && this.configuration.accessToken) {
745
+ const token = this.configuration.accessToken;
746
+ const tokenString = await token("bearerAuth", []);
747
+
748
+ if (tokenString) {
749
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
750
+ }
751
+ }
752
+
753
+ let urlPath = `/api/auth/register-guard`;
754
+
755
+ const response = await this.request({
756
+ path: urlPath,
757
+ method: 'POST',
758
+ headers: headerParameters,
759
+ query: queryParameters,
760
+ body: AuthRegisterGuardRequestToJSON(requestParameters['authRegisterGuardRequest']),
761
+ }, initOverrides);
762
+
763
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
764
+ }
765
+
766
+ /**
767
+ * Auto-generated: auth.registerGuard
768
+ */
769
+ async authRegisterGuard(requestParameters: AuthRegisterGuardOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
770
+ const response = await this.authRegisterGuardRaw(requestParameters, initOverrides);
771
+ return await response.value();
772
+ }
773
+
727
774
  /**
728
775
  * Auto-generated: destroyUser
729
776
  */
@@ -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
+
@@ -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
  };
@@ -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>}
@@ -204,6 +204,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
204
204
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
205
205
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
206
206
  if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
207
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
207
208
  if (!('incidents' in value) || value['incidents'] === undefined) return false;
208
209
  return true;
209
210
  }
@@ -239,7 +240,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
239
240
  'signOnLat': json['signOnLat'],
240
241
  'signOnLong': json['signOnLong'],
241
242
  'signOffLat': json['signOffLat'],
242
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
243
+ 'signOffLong': json['signOffLong'],
243
244
  'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
244
245
  };
245
246
  }
@@ -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}
@@ -191,7 +191,6 @@ 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;
195
194
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
196
195
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
197
196
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -223,7 +222,7 @@ 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'],
@@ -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';