@digital8/security-registers-backend-ts-sdk 0.0.299 → 0.0.300

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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/dist/models/AssetResource.d.ts +1 -1
  4. package/dist/models/AssetResource.js +3 -1
  5. package/dist/models/AuthRegisterGuardRequest.d.ts +6 -192
  6. package/dist/models/AuthRegisterGuardRequest.js +6 -88
  7. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +98 -0
  8. package/dist/models/AuthRegisterGuardRequestLicence.js +95 -0
  9. package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +50 -0
  10. package/dist/models/AuthRegisterGuardRequestProfileSignature.js +55 -0
  11. package/dist/models/BackAsset.d.ts +50 -0
  12. package/dist/models/BackAsset.js +55 -0
  13. package/dist/models/FirstAidAsset.d.ts +50 -0
  14. package/dist/models/FirstAidAsset.js +55 -0
  15. package/dist/models/FrontAsset.d.ts +50 -0
  16. package/dist/models/FrontAsset.js +55 -0
  17. package/dist/models/LicencesStoreRequest.d.ts +10 -104
  18. package/dist/models/LicencesStoreRequest.js +10 -40
  19. package/dist/models/LicencesStoreRequestBackAsset.d.ts +50 -0
  20. package/dist/models/LicencesStoreRequestBackAsset.js +55 -0
  21. package/dist/models/LicencesUpdateRequest.d.ts +9 -104
  22. package/dist/models/LicencesUpdateRequest.js +9 -40
  23. package/dist/models/RegisterListResource.d.ts +3 -3
  24. package/dist/models/RegisterListResource.js +3 -4
  25. package/dist/models/RegisterResource.d.ts +1 -1
  26. package/dist/models/RegisterResource.js +7 -5
  27. package/dist/models/RosterLiteResource.d.ts +1 -1
  28. package/dist/models/RosterLiteResource.js +3 -4
  29. package/dist/models/RsaAsset.d.ts +50 -0
  30. package/dist/models/RsaAsset.js +55 -0
  31. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +12 -8
  32. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +12 -8
  33. package/dist/models/index.d.ts +7 -0
  34. package/dist/models/index.js +7 -0
  35. package/package.json +1 -1
  36. package/src/models/AssetResource.ts +3 -2
  37. package/src/models/AuthRegisterGuardRequest.ts +23 -263
  38. package/src/models/AuthRegisterGuardRequestLicence.ts +181 -0
  39. package/src/models/AuthRegisterGuardRequestProfileSignature.ts +89 -0
  40. package/src/models/BackAsset.ts +89 -0
  41. package/src/models/FirstAidAsset.ts +89 -0
  42. package/src/models/FrontAsset.ts +89 -0
  43. package/src/models/LicencesStoreRequest.ts +31 -144
  44. package/src/models/LicencesStoreRequestBackAsset.ts +89 -0
  45. package/src/models/LicencesUpdateRequest.ts +24 -144
  46. package/src/models/RegisterListResource.ts +5 -6
  47. package/src/models/RegisterResource.ts +4 -3
  48. package/src/models/RosterLiteResource.ts +3 -4
  49. package/src/models/RsaAsset.ts +89 -0
  50. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
  51. package/src/models/index.ts +7 -0
@@ -27,9 +27,14 @@ __exportStar(require("./AssetResourceArrayResponse"), exports);
27
27
  __exportStar(require("./AuthChangePasswordRequest"), exports);
28
28
  __exportStar(require("./AuthProfileUpdateRequest"), exports);
29
29
  __exportStar(require("./AuthRegisterGuardRequest"), exports);
30
+ __exportStar(require("./AuthRegisterGuardRequestLicence"), exports);
31
+ __exportStar(require("./AuthRegisterGuardRequestProfileSignature"), exports);
32
+ __exportStar(require("./BackAsset"), exports);
30
33
  __exportStar(require("./CurrentRegisterResource"), exports);
31
34
  __exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
32
35
  __exportStar(require("./DevicesRegisterRequest"), exports);
36
+ __exportStar(require("./FirstAidAsset"), exports);
37
+ __exportStar(require("./FrontAsset"), exports);
33
38
  __exportStar(require("./GenericResponse"), exports);
34
39
  __exportStar(require("./IncidentFieldAuditResource"), exports);
35
40
  __exportStar(require("./IncidentFieldAuditResourceArrayResponse"), exports);
@@ -72,6 +77,7 @@ __exportStar(require("./LicenceResourceArrayResponse"), exports);
72
77
  __exportStar(require("./LicencesListAllRequest"), exports);
73
78
  __exportStar(require("./LicencesListRequest"), exports);
74
79
  __exportStar(require("./LicencesStoreRequest"), exports);
80
+ __exportStar(require("./LicencesStoreRequestBackAsset"), exports);
75
81
  __exportStar(require("./LicencesUpdateRequest"), exports);
76
82
  __exportStar(require("./LicencesVerifyRequest"), exports);
77
83
  __exportStar(require("./LoginAuthRequest"), exports);
@@ -129,6 +135,7 @@ __exportStar(require("./RostersListAllRequest"), exports);
129
135
  __exportStar(require("./RostersListRequest"), exports);
130
136
  __exportStar(require("./RostersListWithRegistersRequest"), exports);
131
137
  __exportStar(require("./RostersUpdateRequest"), exports);
138
+ __exportStar(require("./RsaAsset"), exports);
132
139
  __exportStar(require("./SecurityCompaniesAttachUsersRequest"), exports);
133
140
  __exportStar(require("./SecurityCompaniesListAllRequest"), exports);
134
141
  __exportStar(require("./SecurityCompaniesListRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.299",
3
+ "version": "0.0.300",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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
  };
@@ -13,6 +13,21 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { AuthRegisterGuardRequestLicence } from './AuthRegisterGuardRequestLicence';
17
+ import {
18
+ AuthRegisterGuardRequestLicenceFromJSON,
19
+ AuthRegisterGuardRequestLicenceFromJSONTyped,
20
+ AuthRegisterGuardRequestLicenceToJSON,
21
+ AuthRegisterGuardRequestLicenceToJSONTyped,
22
+ } from './AuthRegisterGuardRequestLicence';
23
+ import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
24
+ import {
25
+ AuthRegisterGuardRequestProfileSignatureFromJSON,
26
+ AuthRegisterGuardRequestProfileSignatureFromJSONTyped,
27
+ AuthRegisterGuardRequestProfileSignatureToJSON,
28
+ AuthRegisterGuardRequestProfileSignatureToJSONTyped,
29
+ } from './AuthRegisterGuardRequestProfileSignature';
30
+
16
31
  /**
17
32
  *
18
33
  * @export
@@ -51,209 +66,18 @@ export interface AuthRegisterGuardRequest {
51
66
  password: string;
52
67
  /**
53
68
  *
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>}
69
+ * @type {AuthRegisterGuardRequestProfileSignature}
181
70
  * @memberof AuthRegisterGuardRequest
182
71
  */
183
- licenceRsaAsset?: Array<string>;
72
+ profileSignature: AuthRegisterGuardRequestProfileSignature;
184
73
  /**
185
74
  *
186
- * @type {number}
75
+ * @type {AuthRegisterGuardRequestLicence}
187
76
  * @memberof AuthRegisterGuardRequest
188
77
  */
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;
78
+ licence: AuthRegisterGuardRequestLicence;
238
79
  }
239
80
 
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
81
  /**
258
82
  * Check if a given object implements the AuthRegisterGuardRequest interface.
259
83
  */
@@ -265,12 +89,6 @@ export function instanceOfAuthRegisterGuardRequest(value: object): value is Auth
265
89
  if (!('password' in value) || value['password'] === undefined) return false;
266
90
  if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
267
91
  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
92
  return true;
275
93
  }
276
94
 
@@ -289,37 +107,8 @@ export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscrimin
289
107
  'email': json['email'],
290
108
  'mobile': json['mobile'],
291
109
  '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'],
110
+ 'profileSignature': AuthRegisterGuardRequestProfileSignatureFromJSON(json['profile_signature']),
111
+ 'licence': AuthRegisterGuardRequestLicenceFromJSON(json['licence']),
323
112
  };
324
113
  }
325
114
 
@@ -339,37 +128,8 @@ export function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardReq
339
128
  'email': value['email'],
340
129
  'mobile': value['mobile'],
341
130
  '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'],
131
+ 'profile_signature': AuthRegisterGuardRequestProfileSignatureToJSON(value['profileSignature']),
132
+ 'licence': AuthRegisterGuardRequestLicenceToJSON(value['licence']),
373
133
  };
374
134
  }
375
135
 
@@ -0,0 +1,181 @@
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
+ import type { FirstAidAsset } from './FirstAidAsset';
17
+ import {
18
+ FirstAidAssetFromJSON,
19
+ FirstAidAssetFromJSONTyped,
20
+ FirstAidAssetToJSON,
21
+ FirstAidAssetToJSONTyped,
22
+ } from './FirstAidAsset';
23
+ import type { BackAsset } from './BackAsset';
24
+ import {
25
+ BackAssetFromJSON,
26
+ BackAssetFromJSONTyped,
27
+ BackAssetToJSON,
28
+ BackAssetToJSONTyped,
29
+ } from './BackAsset';
30
+ import type { FrontAsset } from './FrontAsset';
31
+ import {
32
+ FrontAssetFromJSON,
33
+ FrontAssetFromJSONTyped,
34
+ FrontAssetToJSON,
35
+ FrontAssetToJSONTyped,
36
+ } from './FrontAsset';
37
+ import type { RsaAsset } from './RsaAsset';
38
+ import {
39
+ RsaAssetFromJSON,
40
+ RsaAssetFromJSONTyped,
41
+ RsaAssetToJSON,
42
+ RsaAssetToJSONTyped,
43
+ } from './RsaAsset';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface AuthRegisterGuardRequestLicence
49
+ */
50
+ export interface AuthRegisterGuardRequestLicence {
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof AuthRegisterGuardRequestLicence
55
+ */
56
+ state: AuthRegisterGuardRequestLicenceStateEnum;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof AuthRegisterGuardRequestLicence
61
+ */
62
+ licenceNumber: string;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof AuthRegisterGuardRequestLicence
67
+ */
68
+ firstName: string;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof AuthRegisterGuardRequestLicence
73
+ */
74
+ lastName: string;
75
+ /**
76
+ *
77
+ * @type {Date}
78
+ * @memberof AuthRegisterGuardRequestLicence
79
+ */
80
+ expiryDate: Date;
81
+ /**
82
+ *
83
+ * @type {FrontAsset}
84
+ * @memberof AuthRegisterGuardRequestLicence
85
+ */
86
+ frontAsset: FrontAsset;
87
+ /**
88
+ *
89
+ * @type {BackAsset}
90
+ * @memberof AuthRegisterGuardRequestLicence
91
+ */
92
+ backAsset?: BackAsset | null;
93
+ /**
94
+ *
95
+ * @type {RsaAsset}
96
+ * @memberof AuthRegisterGuardRequestLicence
97
+ */
98
+ rsaAsset?: RsaAsset | null;
99
+ /**
100
+ *
101
+ * @type {FirstAidAsset}
102
+ * @memberof AuthRegisterGuardRequestLicence
103
+ */
104
+ firstAidAsset?: FirstAidAsset | null;
105
+ }
106
+
107
+
108
+ /**
109
+ * @export
110
+ */
111
+ export const AuthRegisterGuardRequestLicenceStateEnum = {
112
+ Qld: 'QLD',
113
+ Nsw: 'NSW',
114
+ Act: 'ACT',
115
+ Vic: 'VIC',
116
+ Tas: 'TAS',
117
+ Sa: 'SA',
118
+ Wa: 'WA',
119
+ Nt: 'NT'
120
+ } as const;
121
+ export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
122
+
123
+
124
+ /**
125
+ * Check if a given object implements the AuthRegisterGuardRequestLicence interface.
126
+ */
127
+ export function instanceOfAuthRegisterGuardRequestLicence(value: object): value is AuthRegisterGuardRequestLicence {
128
+ if (!('state' in value) || value['state'] === undefined) return false;
129
+ if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
130
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
131
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
132
+ if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
133
+ if (!('frontAsset' in value) || value['frontAsset'] === undefined) return false;
134
+ return true;
135
+ }
136
+
137
+ export function AuthRegisterGuardRequestLicenceFromJSON(json: any): AuthRegisterGuardRequestLicence {
138
+ return AuthRegisterGuardRequestLicenceFromJSONTyped(json, false);
139
+ }
140
+
141
+ export function AuthRegisterGuardRequestLicenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestLicence {
142
+ if (json == null) {
143
+ return json;
144
+ }
145
+ return {
146
+
147
+ 'state': json['state'],
148
+ 'licenceNumber': json['licence_number'],
149
+ 'firstName': json['first_name'],
150
+ 'lastName': json['last_name'],
151
+ 'expiryDate': (new Date(json['expiry_date'])),
152
+ 'frontAsset': FrontAssetFromJSON(json['front_asset']),
153
+ 'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
154
+ 'rsaAsset': json['rsa_asset'] == null ? undefined : RsaAssetFromJSON(json['rsa_asset']),
155
+ 'firstAidAsset': json['first_aid_asset'] == null ? undefined : FirstAidAssetFromJSON(json['first_aid_asset']),
156
+ };
157
+ }
158
+
159
+ export function AuthRegisterGuardRequestLicenceToJSON(json: any): AuthRegisterGuardRequestLicence {
160
+ return AuthRegisterGuardRequestLicenceToJSONTyped(json, false);
161
+ }
162
+
163
+ export function AuthRegisterGuardRequestLicenceToJSONTyped(value?: AuthRegisterGuardRequestLicence | null, ignoreDiscriminator: boolean = false): any {
164
+ if (value == null) {
165
+ return value;
166
+ }
167
+
168
+ return {
169
+
170
+ 'state': value['state'],
171
+ 'licence_number': value['licenceNumber'],
172
+ 'first_name': value['firstName'],
173
+ 'last_name': value['lastName'],
174
+ 'expiry_date': ((value['expiryDate']).toISOString()),
175
+ 'front_asset': FrontAssetToJSON(value['frontAsset']),
176
+ 'back_asset': BackAssetToJSON(value['backAsset']),
177
+ 'rsa_asset': RsaAssetToJSON(value['rsaAsset']),
178
+ 'first_aid_asset': FirstAidAssetToJSON(value['firstAidAsset']),
179
+ };
180
+ }
181
+
@@ -0,0 +1,89 @@
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 AuthRegisterGuardRequestProfileSignature
20
+ */
21
+ export interface AuthRegisterGuardRequestProfileSignature {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AuthRegisterGuardRequestProfileSignature
26
+ */
27
+ fileId?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AuthRegisterGuardRequestProfileSignature
32
+ */
33
+ fileName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AuthRegisterGuardRequestProfileSignature
38
+ */
39
+ mimeType?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AuthRegisterGuardRequestProfileSignature
44
+ */
45
+ altText?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AuthRegisterGuardRequestProfileSignature interface.
50
+ */
51
+ export function instanceOfAuthRegisterGuardRequestProfileSignature(value: object): value is AuthRegisterGuardRequestProfileSignature {
52
+ return true;
53
+ }
54
+
55
+ export function AuthRegisterGuardRequestProfileSignatureFromJSON(json: any): AuthRegisterGuardRequestProfileSignature {
56
+ return AuthRegisterGuardRequestProfileSignatureFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function AuthRegisterGuardRequestProfileSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestProfileSignature {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'fileId': json['file_id'] == null ? undefined : json['file_id'],
66
+ 'fileName': json['file_name'] == null ? undefined : json['file_name'],
67
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
68
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
69
+ };
70
+ }
71
+
72
+ export function AuthRegisterGuardRequestProfileSignatureToJSON(json: any): AuthRegisterGuardRequestProfileSignature {
73
+ return AuthRegisterGuardRequestProfileSignatureToJSONTyped(json, false);
74
+ }
75
+
76
+ export function AuthRegisterGuardRequestProfileSignatureToJSONTyped(value?: AuthRegisterGuardRequestProfileSignature | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'file_id': value['fileId'],
84
+ 'file_name': value['fileName'],
85
+ 'mime_type': value['mimeType'],
86
+ 'alt_text': value['altText'],
87
+ };
88
+ }
89
+