@digital8/security-registers-backend-ts-sdk 0.0.296 → 0.0.297

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.
@@ -20,6 +20,7 @@ exports.RegisterListResourceToJSON = RegisterListResourceToJSON;
20
20
  exports.RegisterListResourceToJSONTyped = RegisterListResourceToJSONTyped;
21
21
  var VenueLiteResource_1 = require("./VenueLiteResource");
22
22
  var UserLiteResource_1 = require("./UserLiteResource");
23
+ var IncidentLiteResource_1 = require("./IncidentLiteResource");
23
24
  /**
24
25
  * Check if a given object implements the RegisterListResource interface.
25
26
  */
@@ -30,8 +31,6 @@ function instanceOfRegisterListResource(value) {
30
31
  return false;
31
32
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
32
33
  return false;
33
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
34
- return false;
35
34
  if (!('shiftLength' in value) || value['shiftLength'] === undefined)
36
35
  return false;
37
36
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
@@ -60,9 +59,7 @@ function instanceOfRegisterListResource(value) {
60
59
  return false;
61
60
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
62
61
  return false;
63
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
64
- return false;
65
- if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
62
+ if (!('incidents' in value) || value['incidents'] === undefined)
66
63
  return false;
67
64
  return true;
68
65
  }
@@ -78,7 +75,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
78
75
  'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
79
76
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
80
77
  'startDateTime': (new Date(json['startDateTime'])),
81
- 'finishDateTime': (new Date(json['finishDateTime'])),
78
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
82
79
  'shiftLength': json['shiftLength'],
83
80
  'signOffStatus': json['signOffStatus'],
84
81
  'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
@@ -95,14 +92,15 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
95
92
  'signOnLat': json['signOnLat'],
96
93
  'signOnLong': json['signOnLong'],
97
94
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
98
- 'signOffLong': json['signOffLong'],
99
- 'hasIncidents': json['hasIncidents'],
95
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
96
+ 'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
100
97
  };
101
98
  }
102
99
  function RegisterListResourceToJSON(json) {
103
100
  return RegisterListResourceToJSONTyped(json, false);
104
101
  }
105
102
  function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
103
+ var _a;
106
104
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
107
105
  if (value == null) {
108
106
  return value;
@@ -112,7 +110,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
112
110
  'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
113
111
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
114
112
  'startDateTime': ((value['startDateTime']).toISOString()),
115
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
113
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
116
114
  'shiftLength': value['shiftLength'],
117
115
  'signOffStatus': value['signOffStatus'],
118
116
  'badgeNumber': value['badgeNumber'],
@@ -130,6 +128,6 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
130
128
  'signOnLong': value['signOnLong'],
131
129
  'signOffLat': value['signOffLat'],
132
130
  'signOffLong': value['signOffLong'],
133
- 'hasIncidents': value['hasIncidents'],
131
+ 'incidents': (value['incidents'] == null ? null : value['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceToJSON)),
134
132
  };
135
133
  }
@@ -46,7 +46,7 @@ export interface RosterListResource {
46
46
  * @type {Date}
47
47
  * @memberof RosterListResource
48
48
  */
49
- finishDateTime?: Date | null;
49
+ finishDateTime: Date;
50
50
  /**
51
51
  *
52
52
  * @type {boolean}
@@ -30,6 +30,8 @@ function instanceOfRosterListResource(value) {
30
30
  return false;
31
31
  if (!('startDateTime' in value) || value['startDateTime'] === undefined)
32
32
  return false;
33
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
34
+ return false;
33
35
  if (!('isCompliant' in value) || value['isCompliant'] === undefined)
34
36
  return false;
35
37
  if (!('isComplete' in value) || value['isComplete'] === undefined)
@@ -52,7 +54,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
53
55
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
54
56
  'startDateTime': (new Date(json['startDateTime'])),
55
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
57
+ 'finishDateTime': (new Date(json['finishDateTime'])),
56
58
  'isCompliant': json['isCompliant'],
57
59
  'isComplete': json['isComplete'],
58
60
  'signOffStatus': json['signOffStatus'],
@@ -63,7 +65,6 @@ function RosterListResourceToJSON(json) {
63
65
  return RosterListResourceToJSONTyped(json, false);
64
66
  }
65
67
  function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
66
- var _a;
67
68
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
68
69
  if (value == null) {
69
70
  return value;
@@ -73,7 +74,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
73
74
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
74
75
  'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
75
76
  'startDateTime': ((value['startDateTime']).toISOString()),
76
- 'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
77
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
77
78
  'isCompliant': value['isCompliant'],
78
79
  'isComplete': value['isComplete'],
79
80
  'signOffStatus': value['signOffStatus'],
@@ -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.296",
3
+ "version": "0.0.297",
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
  */
@@ -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}
@@ -71,6 +71,7 @@ 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;
74
75
  if (!('index' in value) || value['index'] === undefined) return false;
75
76
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
76
77
  return true;
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
90
91
  'filePath': json['filePath'],
91
92
  'fileName': json['fileName'],
92
93
  'mimeType': json['mimeType'],
93
- 'altText': json['altText'] == null ? undefined : json['altText'],
94
+ 'altText': json['altText'],
94
95
  'index': json['index'],
95
96
  'fileId': json['fileId'],
96
97
  };
@@ -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
+
@@ -67,12 +67,6 @@ export interface IncidentsListRequest {
67
67
  * @memberof IncidentsListRequest
68
68
  */
69
69
  rosterId?: Array<string>;
70
- /**
71
- *
72
- * @type {Array<string>}
73
- * @memberof IncidentsListRequest
74
- */
75
- registerId?: Array<string>;
76
70
  /**
77
71
  *
78
72
  * @type {Array<string>}
@@ -181,7 +175,6 @@ export function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator
181
175
  'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
182
176
  'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
183
177
  'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
184
- 'registerId': json['register_id'] == null ? undefined : json['register_id'],
185
178
  'userId': json['user_id'] == null ? undefined : json['user_id'],
186
179
  'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
187
180
  'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
@@ -214,7 +207,6 @@ export function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | n
214
207
  'venue_id': value['venueId'],
215
208
  'security_company_id': value['securityCompanyId'],
216
209
  'roster_id': value['rosterId'],
217
- 'register_id': value['registerId'],
218
210
  'user_id': value['userId'],
219
211
  'approved_by_user_id': value['approvedByUserId'],
220
212
  'has_approved_at': value['hasApprovedAt'],