@digital8/security-registers-backend-ts-sdk 0.0.296 → 0.0.298
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -1
- package/dist/apis/GeneralApi.js +55 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthRegisterGuardRequest.d.ts +256 -0
- package/dist/models/AuthRegisterGuardRequest.js +159 -0
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/RegisterListResource.d.ts +5 -5
- package/dist/models/RegisterListResource.js +7 -8
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +8 -8
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +4 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +47 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequest.ts +375 -0
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/RegisterListResource.ts +10 -11
- package/src/models/RegisterResource.ts +6 -6
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/index.ts +1 -0
|
@@ -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
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ 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;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -63,13 +63,13 @@ export interface RegisterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {object}
|
|
70
70
|
* @memberof RegisterListResource
|
|
71
71
|
*/
|
|
72
|
-
shiftLength:
|
|
72
|
+
shiftLength: object;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber: string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
@@ -165,7 +165,7 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLong
|
|
168
|
+
signOffLong?: number | null;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {boolean}
|
|
@@ -181,9 +181,9 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
181
181
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
182
182
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
183
183
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
184
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
186
185
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
186
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
187
187
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
188
188
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
189
189
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -196,7 +196,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
196
196
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
197
197
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
198
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
199
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
200
199
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
201
200
|
return true;
|
|
202
201
|
}
|
|
@@ -215,10 +214,10 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
215
214
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
216
215
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
217
216
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
218
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
217
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
219
218
|
'shiftLength': json['shiftLength'],
|
|
220
219
|
'signOffStatus': json['signOffStatus'],
|
|
221
|
-
'badgeNumber': json['badgeNumber']
|
|
220
|
+
'badgeNumber': json['badgeNumber'],
|
|
222
221
|
'licenceNumber': json['licenceNumber'],
|
|
223
222
|
'licenceFirstName': json['licenceFirstName'],
|
|
224
223
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -232,7 +231,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
232
231
|
'signOnLat': json['signOnLat'],
|
|
233
232
|
'signOnLong': json['signOnLong'],
|
|
234
233
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
235
|
-
'signOffLong': json['signOffLong'],
|
|
234
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
236
235
|
'hasIncidents': json['hasIncidents'],
|
|
237
236
|
};
|
|
238
237
|
}
|
|
@@ -252,7 +251,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
252
251
|
'user': UserLiteResourceToJSON(value['user']),
|
|
253
252
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
254
253
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
255
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
254
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
256
255
|
'shiftLength': value['shiftLength'],
|
|
257
256
|
'signOffStatus': value['signOffStatus'],
|
|
258
257
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -129,7 +129,7 @@ export interface RegisterResource {
|
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong: number;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -181,7 +181,6 @@ 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;
|
|
185
184
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
186
185
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
187
186
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -192,6 +191,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
192
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
193
|
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;
|
|
@@ -213,7 +213,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
213
213
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
214
214
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
215
215
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
216
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
216
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
217
217
|
'signOffStatus': json['signOffStatus'],
|
|
218
218
|
'signOnSignature': json['signOnSignature'],
|
|
219
219
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -224,7 +224,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
224
|
'signOnLat': json['signOnLat'],
|
|
225
225
|
'signOnLong': json['signOnLong'],
|
|
226
226
|
'signOffLat': json['signOffLat'],
|
|
227
|
-
'signOffLong': json['signOffLong']
|
|
227
|
+
'signOffLong': json['signOffLong'],
|
|
228
228
|
'licenceNumber': json['licenceNumber'],
|
|
229
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
230
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -250,7 +250,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
250
250
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
251
251
|
'user': UserLiteResourceToJSON(value['user']),
|
|
252
252
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
253
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
253
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
254
254
|
'signOffStatus': value['signOffStatus'],
|
|
255
255
|
'signOnSignature': value['signOnSignature'],
|
|
256
256
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,6 +97,7 @@ 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;
|
|
100
101
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
101
102
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
102
103
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -118,7 +119,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
118
119
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
119
120
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
120
121
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
121
|
-
'finishDateTime':
|
|
122
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
122
123
|
'isCompliant': json['isCompliant'],
|
|
123
124
|
'isComplete': json['isComplete'],
|
|
124
125
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -141,7 +142,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
141
142
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
142
143
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
143
144
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
144
|
-
'finishDateTime':
|
|
145
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
145
146
|
'isCompliant': value['isCompliant'],
|
|
146
147
|
'isComplete': value['isComplete'],
|
|
147
148
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
|
|
|
36
36
|
* @type {Date}
|
|
37
37
|
* @memberof RosterLiteResource
|
|
38
38
|
*/
|
|
39
|
-
finishDateTime
|
|
39
|
+
finishDateTime: Date;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,6 +44,7 @@ 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;
|
|
47
48
|
return true;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -59,7 +60,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
59
60
|
|
|
60
61
|
'id': json['id'] == null ? undefined : json['id'],
|
|
61
62
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
62
|
-
'finishDateTime':
|
|
63
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -76,7 +77,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
76
77
|
|
|
77
78
|
'id': value['id'],
|
|
78
79
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
79
|
-
'finishDateTime':
|
|
80
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|