@digital8/security-registers-backend-ts-sdk 0.0.295 → 0.0.296
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 +0 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -12
- package/dist/apis/GeneralApi.js +0 -55
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IncidentsListRequest.d.ts +6 -0
- package/dist/models/IncidentsListRequest.js +2 -0
- package/dist/models/RegisterListResource.d.ts +3 -4
- package/dist/models/RegisterListResource.js +4 -7
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -47
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentsListRequest.ts +8 -0
- package/src/models/RegisterListResource.ts +7 -15
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +0 -1
- package/dist/models/AuthRegisterGuardRequest.d.ts +0 -256
- package/dist/models/AuthRegisterGuardRequest.js +0 -159
- package/src/models/AuthRegisterGuardRequest.ts +0 -375
|
@@ -1,375 +0,0 @@
|
|
|
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
|
-
|