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

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 (60) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/dist/models/AssetFileForUploadResource.d.ts +4 -2
  4. package/dist/models/AuthRegisterGuardRequest.d.ts +6 -192
  5. package/dist/models/AuthRegisterGuardRequest.js +6 -88
  6. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +98 -0
  7. package/dist/models/AuthRegisterGuardRequestLicence.js +95 -0
  8. package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +50 -0
  9. package/dist/models/AuthRegisterGuardRequestProfileSignature.js +55 -0
  10. package/dist/models/BackAsset.d.ts +50 -0
  11. package/dist/models/BackAsset.js +55 -0
  12. package/dist/models/FirstAidAsset.d.ts +50 -0
  13. package/dist/models/FirstAidAsset.js +55 -0
  14. package/dist/models/FrontAsset.d.ts +50 -0
  15. package/dist/models/FrontAsset.js +55 -0
  16. package/dist/models/IncidentFieldSchemaResource.d.ts +4 -2
  17. package/dist/models/IncidentImageResource.d.ts +1 -1
  18. package/dist/models/IncidentImageResource.js +1 -3
  19. package/dist/models/IncidentVideoUploadTokenResource.d.ts +4 -2
  20. package/dist/models/LicencesStoreRequest.d.ts +10 -104
  21. package/dist/models/LicencesStoreRequest.js +10 -40
  22. package/dist/models/LicencesStoreRequestBackAsset.d.ts +50 -0
  23. package/dist/models/LicencesStoreRequestBackAsset.js +55 -0
  24. package/dist/models/LicencesUpdateRequest.d.ts +9 -104
  25. package/dist/models/LicencesUpdateRequest.js +9 -40
  26. package/dist/models/RegisterListResource.d.ts +2 -2
  27. package/dist/models/RegisterListResource.js +6 -2
  28. package/dist/models/RegisterResource.d.ts +2 -2
  29. package/dist/models/RegisterResource.js +8 -8
  30. package/dist/models/RosterResource.d.ts +1 -1
  31. package/dist/models/RosterResource.js +3 -4
  32. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  33. package/dist/models/RosterWithRegistersResource.js +4 -3
  34. package/dist/models/RsaAsset.d.ts +50 -0
  35. package/dist/models/RsaAsset.js +55 -0
  36. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +12 -8
  37. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +12 -8
  38. package/dist/models/index.d.ts +7 -0
  39. package/dist/models/index.js +7 -0
  40. package/package.json +1 -1
  41. package/src/models/AssetFileForUploadResource.ts +2 -2
  42. package/src/models/AuthRegisterGuardRequest.ts +23 -263
  43. package/src/models/AuthRegisterGuardRequestLicence.ts +181 -0
  44. package/src/models/AuthRegisterGuardRequestProfileSignature.ts +89 -0
  45. package/src/models/BackAsset.ts +89 -0
  46. package/src/models/FirstAidAsset.ts +89 -0
  47. package/src/models/FrontAsset.ts +89 -0
  48. package/src/models/IncidentFieldSchemaResource.ts +2 -2
  49. package/src/models/IncidentImageResource.ts +2 -3
  50. package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
  51. package/src/models/LicencesStoreRequest.ts +31 -144
  52. package/src/models/LicencesStoreRequestBackAsset.ts +89 -0
  53. package/src/models/LicencesUpdateRequest.ts +24 -144
  54. package/src/models/RegisterListResource.ts +6 -4
  55. package/src/models/RegisterResource.ts +6 -6
  56. package/src/models/RosterResource.ts +3 -4
  57. package/src/models/RosterWithRegistersResource.ts +4 -3
  58. package/src/models/RsaAsset.ts +89 -0
  59. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
  60. package/src/models/index.ts +7 -0
@@ -17,9 +17,14 @@ src/models/AssetResourceArrayResponse.ts
17
17
  src/models/AuthChangePasswordRequest.ts
18
18
  src/models/AuthProfileUpdateRequest.ts
19
19
  src/models/AuthRegisterGuardRequest.ts
20
+ src/models/AuthRegisterGuardRequestLicence.ts
21
+ src/models/AuthRegisterGuardRequestProfileSignature.ts
22
+ src/models/BackAsset.ts
20
23
  src/models/CurrentRegisterResource.ts
21
24
  src/models/CurrentRegisterResourceArrayResponse.ts
22
25
  src/models/DevicesRegisterRequest.ts
26
+ src/models/FirstAidAsset.ts
27
+ src/models/FrontAsset.ts
23
28
  src/models/GenericResponse.ts
24
29
  src/models/IncidentFieldAuditResource.ts
25
30
  src/models/IncidentFieldAuditResourceArrayResponse.ts
@@ -62,6 +67,7 @@ src/models/LicenceResourceArrayResponse.ts
62
67
  src/models/LicencesListAllRequest.ts
63
68
  src/models/LicencesListRequest.ts
64
69
  src/models/LicencesStoreRequest.ts
70
+ src/models/LicencesStoreRequestBackAsset.ts
65
71
  src/models/LicencesUpdateRequest.ts
66
72
  src/models/LicencesVerifyRequest.ts
67
73
  src/models/LoginAuthRequest.ts
@@ -119,6 +125,7 @@ src/models/RostersListAllRequest.ts
119
125
  src/models/RostersListRequest.ts
120
126
  src/models/RostersListWithRegistersRequest.ts
121
127
  src/models/RostersUpdateRequest.ts
128
+ src/models/RsaAsset.ts
122
129
  src/models/SecurityCompaniesAttachUsersRequest.ts
123
130
  src/models/SecurityCompaniesListAllRequest.ts
124
131
  src/models/SecurityCompaniesListRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.299
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.301
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/security-registers-backend-ts-sdk@0.0.299 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.301 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -29,10 +29,12 @@ export interface AssetFileForUploadResource {
29
29
  url: string;
30
30
  /**
31
31
  *
32
- * @type {Array<string>}
32
+ * @type {{ [key: string]: string; }}
33
33
  * @memberof AssetFileForUploadResource
34
34
  */
35
- headers: Array<string>;
35
+ headers: {
36
+ [key: string]: string;
37
+ };
36
38
  /**
37
39
  *
38
40
  * @type {string}
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AuthRegisterGuardRequestLicence } from './AuthRegisterGuardRequestLicence';
13
+ import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -47,205 +49,17 @@ export interface AuthRegisterGuardRequest {
47
49
  password: string;
48
50
  /**
49
51
  *
50
- * @type {Array<string>}
52
+ * @type {AuthRegisterGuardRequestProfileSignature}
51
53
  * @memberof AuthRegisterGuardRequest
52
54
  */
53
- profileSignature: Array<string>;
55
+ profileSignature: AuthRegisterGuardRequestProfileSignature;
54
56
  /**
55
57
  *
56
- * @type {number}
58
+ * @type {AuthRegisterGuardRequestLicence}
57
59
  * @memberof AuthRegisterGuardRequest
58
60
  */
59
- profileSignatureFileId?: number;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof AuthRegisterGuardRequest
64
- */
65
- profileSignatureFileName?: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof AuthRegisterGuardRequest
70
- */
71
- profileSignatureMimeType?: string;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof AuthRegisterGuardRequest
76
- */
77
- profileSignatureAltText?: string;
78
- /**
79
- *
80
- * @type {Array<string>}
81
- * @memberof AuthRegisterGuardRequest
82
- */
83
- licence: Array<string>;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof AuthRegisterGuardRequest
88
- */
89
- licenceState: AuthRegisterGuardRequestLicenceStateEnum;
90
- /**
91
- *
92
- * @type {string}
93
- * @memberof AuthRegisterGuardRequest
94
- */
95
- licenceLicenceNumber: string;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof AuthRegisterGuardRequest
100
- */
101
- licenceFirstName: string;
102
- /**
103
- *
104
- * @type {string}
105
- * @memberof AuthRegisterGuardRequest
106
- */
107
- licenceLastName: string;
108
- /**
109
- *
110
- * @type {Date}
111
- * @memberof AuthRegisterGuardRequest
112
- */
113
- licenceExpiryDate: Date;
114
- /**
115
- *
116
- * @type {Array<string>}
117
- * @memberof AuthRegisterGuardRequest
118
- */
119
- licenceFrontAsset: Array<string>;
120
- /**
121
- *
122
- * @type {number}
123
- * @memberof AuthRegisterGuardRequest
124
- */
125
- licenceFrontAssetFileId?: number;
126
- /**
127
- *
128
- * @type {string}
129
- * @memberof AuthRegisterGuardRequest
130
- */
131
- licenceFrontAssetFileName?: string;
132
- /**
133
- *
134
- * @type {string}
135
- * @memberof AuthRegisterGuardRequest
136
- */
137
- licenceFrontAssetMimeType?: string;
138
- /**
139
- *
140
- * @type {string}
141
- * @memberof AuthRegisterGuardRequest
142
- */
143
- licenceFrontAssetAltText?: string;
144
- /**
145
- *
146
- * @type {Array<string>}
147
- * @memberof AuthRegisterGuardRequest
148
- */
149
- licenceBackAsset?: Array<string>;
150
- /**
151
- *
152
- * @type {number}
153
- * @memberof AuthRegisterGuardRequest
154
- */
155
- licenceBackAssetFileId?: number;
156
- /**
157
- *
158
- * @type {string}
159
- * @memberof AuthRegisterGuardRequest
160
- */
161
- licenceBackAssetFileName?: string;
162
- /**
163
- *
164
- * @type {string}
165
- * @memberof AuthRegisterGuardRequest
166
- */
167
- licenceBackAssetMimeType?: string;
168
- /**
169
- *
170
- * @type {string}
171
- * @memberof AuthRegisterGuardRequest
172
- */
173
- licenceBackAssetAltText?: string;
174
- /**
175
- *
176
- * @type {Array<string>}
177
- * @memberof AuthRegisterGuardRequest
178
- */
179
- licenceRsaAsset?: Array<string>;
180
- /**
181
- *
182
- * @type {number}
183
- * @memberof AuthRegisterGuardRequest
184
- */
185
- licenceRsaAssetFileId?: number;
186
- /**
187
- *
188
- * @type {string}
189
- * @memberof AuthRegisterGuardRequest
190
- */
191
- licenceRsaAssetFileName?: string;
192
- /**
193
- *
194
- * @type {string}
195
- * @memberof AuthRegisterGuardRequest
196
- */
197
- licenceRsaAssetMimeType?: string;
198
- /**
199
- *
200
- * @type {string}
201
- * @memberof AuthRegisterGuardRequest
202
- */
203
- licenceRsaAssetAltText?: string;
204
- /**
205
- *
206
- * @type {Array<string>}
207
- * @memberof AuthRegisterGuardRequest
208
- */
209
- licenceFirstAidAsset?: Array<string>;
210
- /**
211
- *
212
- * @type {number}
213
- * @memberof AuthRegisterGuardRequest
214
- */
215
- licenceFirstAidAssetFileId?: number;
216
- /**
217
- *
218
- * @type {string}
219
- * @memberof AuthRegisterGuardRequest
220
- */
221
- licenceFirstAidAssetFileName?: string;
222
- /**
223
- *
224
- * @type {string}
225
- * @memberof AuthRegisterGuardRequest
226
- */
227
- licenceFirstAidAssetMimeType?: string;
228
- /**
229
- *
230
- * @type {string}
231
- * @memberof AuthRegisterGuardRequest
232
- */
233
- licenceFirstAidAssetAltText?: string;
61
+ licence: AuthRegisterGuardRequestLicence;
234
62
  }
235
- /**
236
- * @export
237
- */
238
- export declare const AuthRegisterGuardRequestLicenceStateEnum: {
239
- readonly Qld: "QLD";
240
- readonly Nsw: "NSW";
241
- readonly Act: "ACT";
242
- readonly Vic: "VIC";
243
- readonly Tas: "TAS";
244
- readonly Sa: "SA";
245
- readonly Wa: "WA";
246
- readonly Nt: "NT";
247
- };
248
- export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
249
63
  /**
250
64
  * Check if a given object implements the AuthRegisterGuardRequest interface.
251
65
  */
@@ -13,25 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AuthRegisterGuardRequestLicenceStateEnum = void 0;
17
16
  exports.instanceOfAuthRegisterGuardRequest = instanceOfAuthRegisterGuardRequest;
18
17
  exports.AuthRegisterGuardRequestFromJSON = AuthRegisterGuardRequestFromJSON;
19
18
  exports.AuthRegisterGuardRequestFromJSONTyped = AuthRegisterGuardRequestFromJSONTyped;
20
19
  exports.AuthRegisterGuardRequestToJSON = AuthRegisterGuardRequestToJSON;
21
20
  exports.AuthRegisterGuardRequestToJSONTyped = AuthRegisterGuardRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.AuthRegisterGuardRequestLicenceStateEnum = {
26
- Qld: 'QLD',
27
- Nsw: 'NSW',
28
- Act: 'ACT',
29
- Vic: 'VIC',
30
- Tas: 'TAS',
31
- Sa: 'SA',
32
- Wa: 'WA',
33
- Nt: 'NT'
34
- };
21
+ var AuthRegisterGuardRequestLicence_1 = require("./AuthRegisterGuardRequestLicence");
22
+ var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardRequestProfileSignature");
35
23
  /**
36
24
  * Check if a given object implements the AuthRegisterGuardRequest interface.
37
25
  */
@@ -50,18 +38,6 @@ function instanceOfAuthRegisterGuardRequest(value) {
50
38
  return false;
51
39
  if (!('licence' in value) || value['licence'] === undefined)
52
40
  return false;
53
- if (!('licenceState' in value) || value['licenceState'] === undefined)
54
- return false;
55
- if (!('licenceLicenceNumber' in value) || value['licenceLicenceNumber'] === undefined)
56
- return false;
57
- if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
58
- return false;
59
- if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
60
- return false;
61
- if (!('licenceExpiryDate' in value) || value['licenceExpiryDate'] === undefined)
62
- return false;
63
- if (!('licenceFrontAsset' in value) || value['licenceFrontAsset'] === undefined)
64
- return false;
65
41
  return true;
66
42
  }
67
43
  function AuthRegisterGuardRequestFromJSON(json) {
@@ -77,37 +53,8 @@ function AuthRegisterGuardRequestFromJSONTyped(json, ignoreDiscriminator) {
77
53
  'email': json['email'],
78
54
  'mobile': json['mobile'],
79
55
  'password': json['password'],
80
- 'profileSignature': json['profile_signature'],
81
- 'profileSignatureFileId': json['profile_signature.file_id'] == null ? undefined : json['profile_signature.file_id'],
82
- 'profileSignatureFileName': json['profile_signature.file_name'] == null ? undefined : json['profile_signature.file_name'],
83
- 'profileSignatureMimeType': json['profile_signature.mime_type'] == null ? undefined : json['profile_signature.mime_type'],
84
- 'profileSignatureAltText': json['profile_signature.alt_text'] == null ? undefined : json['profile_signature.alt_text'],
85
- 'licence': json['licence'],
86
- 'licenceState': json['licence.state'],
87
- 'licenceLicenceNumber': json['licence.licence_number'],
88
- 'licenceFirstName': json['licence.first_name'],
89
- 'licenceLastName': json['licence.last_name'],
90
- 'licenceExpiryDate': (new Date(json['licence.expiry_date'])),
91
- 'licenceFrontAsset': json['licence.front_asset'],
92
- 'licenceFrontAssetFileId': json['licence.front_asset.file_id'] == null ? undefined : json['licence.front_asset.file_id'],
93
- 'licenceFrontAssetFileName': json['licence.front_asset.file_name'] == null ? undefined : json['licence.front_asset.file_name'],
94
- 'licenceFrontAssetMimeType': json['licence.front_asset.mime_type'] == null ? undefined : json['licence.front_asset.mime_type'],
95
- 'licenceFrontAssetAltText': json['licence.front_asset.alt_text'] == null ? undefined : json['licence.front_asset.alt_text'],
96
- 'licenceBackAsset': json['licence.back_asset'] == null ? undefined : json['licence.back_asset'],
97
- 'licenceBackAssetFileId': json['licence.back_asset.file_id'] == null ? undefined : json['licence.back_asset.file_id'],
98
- 'licenceBackAssetFileName': json['licence.back_asset.file_name'] == null ? undefined : json['licence.back_asset.file_name'],
99
- 'licenceBackAssetMimeType': json['licence.back_asset.mime_type'] == null ? undefined : json['licence.back_asset.mime_type'],
100
- 'licenceBackAssetAltText': json['licence.back_asset.alt_text'] == null ? undefined : json['licence.back_asset.alt_text'],
101
- 'licenceRsaAsset': json['licence.rsa_asset'] == null ? undefined : json['licence.rsa_asset'],
102
- 'licenceRsaAssetFileId': json['licence.rsa_asset.file_id'] == null ? undefined : json['licence.rsa_asset.file_id'],
103
- 'licenceRsaAssetFileName': json['licence.rsa_asset.file_name'] == null ? undefined : json['licence.rsa_asset.file_name'],
104
- 'licenceRsaAssetMimeType': json['licence.rsa_asset.mime_type'] == null ? undefined : json['licence.rsa_asset.mime_type'],
105
- 'licenceRsaAssetAltText': json['licence.rsa_asset.alt_text'] == null ? undefined : json['licence.rsa_asset.alt_text'],
106
- 'licenceFirstAidAsset': json['licence.first_aid_asset'] == null ? undefined : json['licence.first_aid_asset'],
107
- 'licenceFirstAidAssetFileId': json['licence.first_aid_asset.file_id'] == null ? undefined : json['licence.first_aid_asset.file_id'],
108
- 'licenceFirstAidAssetFileName': json['licence.first_aid_asset.file_name'] == null ? undefined : json['licence.first_aid_asset.file_name'],
109
- 'licenceFirstAidAssetMimeType': json['licence.first_aid_asset.mime_type'] == null ? undefined : json['licence.first_aid_asset.mime_type'],
110
- 'licenceFirstAidAssetAltText': json['licence.first_aid_asset.alt_text'] == null ? undefined : json['licence.first_aid_asset.alt_text'],
56
+ 'profileSignature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['profile_signature']),
57
+ 'licence': (0, AuthRegisterGuardRequestLicence_1.AuthRegisterGuardRequestLicenceFromJSON)(json['licence']),
111
58
  };
112
59
  }
113
60
  function AuthRegisterGuardRequestToJSON(json) {
@@ -124,36 +71,7 @@ function AuthRegisterGuardRequestToJSONTyped(value, ignoreDiscriminator) {
124
71
  'email': value['email'],
125
72
  'mobile': value['mobile'],
126
73
  'password': value['password'],
127
- 'profile_signature': value['profileSignature'],
128
- 'profile_signature.file_id': value['profileSignatureFileId'],
129
- 'profile_signature.file_name': value['profileSignatureFileName'],
130
- 'profile_signature.mime_type': value['profileSignatureMimeType'],
131
- 'profile_signature.alt_text': value['profileSignatureAltText'],
132
- 'licence': value['licence'],
133
- 'licence.state': value['licenceState'],
134
- 'licence.licence_number': value['licenceLicenceNumber'],
135
- 'licence.first_name': value['licenceFirstName'],
136
- 'licence.last_name': value['licenceLastName'],
137
- 'licence.expiry_date': ((value['licenceExpiryDate']).toISOString()),
138
- 'licence.front_asset': value['licenceFrontAsset'],
139
- 'licence.front_asset.file_id': value['licenceFrontAssetFileId'],
140
- 'licence.front_asset.file_name': value['licenceFrontAssetFileName'],
141
- 'licence.front_asset.mime_type': value['licenceFrontAssetMimeType'],
142
- 'licence.front_asset.alt_text': value['licenceFrontAssetAltText'],
143
- 'licence.back_asset': value['licenceBackAsset'],
144
- 'licence.back_asset.file_id': value['licenceBackAssetFileId'],
145
- 'licence.back_asset.file_name': value['licenceBackAssetFileName'],
146
- 'licence.back_asset.mime_type': value['licenceBackAssetMimeType'],
147
- 'licence.back_asset.alt_text': value['licenceBackAssetAltText'],
148
- 'licence.rsa_asset': value['licenceRsaAsset'],
149
- 'licence.rsa_asset.file_id': value['licenceRsaAssetFileId'],
150
- 'licence.rsa_asset.file_name': value['licenceRsaAssetFileName'],
151
- 'licence.rsa_asset.mime_type': value['licenceRsaAssetMimeType'],
152
- 'licence.rsa_asset.alt_text': value['licenceRsaAssetAltText'],
153
- 'licence.first_aid_asset': value['licenceFirstAidAsset'],
154
- 'licence.first_aid_asset.file_id': value['licenceFirstAidAssetFileId'],
155
- 'licence.first_aid_asset.file_name': value['licenceFirstAidAssetFileName'],
156
- 'licence.first_aid_asset.mime_type': value['licenceFirstAidAssetMimeType'],
157
- 'licence.first_aid_asset.alt_text': value['licenceFirstAidAssetAltText'],
74
+ 'profile_signature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['profileSignature']),
75
+ 'licence': (0, AuthRegisterGuardRequestLicence_1.AuthRegisterGuardRequestLicenceToJSON)(value['licence']),
158
76
  };
159
77
  }
@@ -0,0 +1,98 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FirstAidAsset } from './FirstAidAsset';
13
+ import type { BackAsset } from './BackAsset';
14
+ import type { FrontAsset } from './FrontAsset';
15
+ import type { RsaAsset } from './RsaAsset';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AuthRegisterGuardRequestLicence
20
+ */
21
+ export interface AuthRegisterGuardRequestLicence {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AuthRegisterGuardRequestLicence
26
+ */
27
+ state: AuthRegisterGuardRequestLicenceStateEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AuthRegisterGuardRequestLicence
32
+ */
33
+ licenceNumber: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AuthRegisterGuardRequestLicence
38
+ */
39
+ firstName: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AuthRegisterGuardRequestLicence
44
+ */
45
+ lastName: string;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof AuthRegisterGuardRequestLicence
50
+ */
51
+ expiryDate: Date;
52
+ /**
53
+ *
54
+ * @type {FrontAsset}
55
+ * @memberof AuthRegisterGuardRequestLicence
56
+ */
57
+ frontAsset: FrontAsset;
58
+ /**
59
+ *
60
+ * @type {BackAsset}
61
+ * @memberof AuthRegisterGuardRequestLicence
62
+ */
63
+ backAsset?: BackAsset | null;
64
+ /**
65
+ *
66
+ * @type {RsaAsset}
67
+ * @memberof AuthRegisterGuardRequestLicence
68
+ */
69
+ rsaAsset?: RsaAsset | null;
70
+ /**
71
+ *
72
+ * @type {FirstAidAsset}
73
+ * @memberof AuthRegisterGuardRequestLicence
74
+ */
75
+ firstAidAsset?: FirstAidAsset | null;
76
+ }
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const AuthRegisterGuardRequestLicenceStateEnum: {
81
+ readonly Qld: "QLD";
82
+ readonly Nsw: "NSW";
83
+ readonly Act: "ACT";
84
+ readonly Vic: "VIC";
85
+ readonly Tas: "TAS";
86
+ readonly Sa: "SA";
87
+ readonly Wa: "WA";
88
+ readonly Nt: "NT";
89
+ };
90
+ export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
91
+ /**
92
+ * Check if a given object implements the AuthRegisterGuardRequestLicence interface.
93
+ */
94
+ export declare function instanceOfAuthRegisterGuardRequestLicence(value: object): value is AuthRegisterGuardRequestLicence;
95
+ export declare function AuthRegisterGuardRequestLicenceFromJSON(json: any): AuthRegisterGuardRequestLicence;
96
+ export declare function AuthRegisterGuardRequestLicenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestLicence;
97
+ export declare function AuthRegisterGuardRequestLicenceToJSON(json: any): AuthRegisterGuardRequestLicence;
98
+ export declare function AuthRegisterGuardRequestLicenceToJSONTyped(value?: AuthRegisterGuardRequestLicence | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AuthRegisterGuardRequestLicenceStateEnum = void 0;
17
+ exports.instanceOfAuthRegisterGuardRequestLicence = instanceOfAuthRegisterGuardRequestLicence;
18
+ exports.AuthRegisterGuardRequestLicenceFromJSON = AuthRegisterGuardRequestLicenceFromJSON;
19
+ exports.AuthRegisterGuardRequestLicenceFromJSONTyped = AuthRegisterGuardRequestLicenceFromJSONTyped;
20
+ exports.AuthRegisterGuardRequestLicenceToJSON = AuthRegisterGuardRequestLicenceToJSON;
21
+ exports.AuthRegisterGuardRequestLicenceToJSONTyped = AuthRegisterGuardRequestLicenceToJSONTyped;
22
+ var FirstAidAsset_1 = require("./FirstAidAsset");
23
+ var BackAsset_1 = require("./BackAsset");
24
+ var FrontAsset_1 = require("./FrontAsset");
25
+ var RsaAsset_1 = require("./RsaAsset");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.AuthRegisterGuardRequestLicenceStateEnum = {
30
+ Qld: 'QLD',
31
+ Nsw: 'NSW',
32
+ Act: 'ACT',
33
+ Vic: 'VIC',
34
+ Tas: 'TAS',
35
+ Sa: 'SA',
36
+ Wa: 'WA',
37
+ Nt: 'NT'
38
+ };
39
+ /**
40
+ * Check if a given object implements the AuthRegisterGuardRequestLicence interface.
41
+ */
42
+ function instanceOfAuthRegisterGuardRequestLicence(value) {
43
+ if (!('state' in value) || value['state'] === undefined)
44
+ return false;
45
+ if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
46
+ return false;
47
+ if (!('firstName' in value) || value['firstName'] === undefined)
48
+ return false;
49
+ if (!('lastName' in value) || value['lastName'] === undefined)
50
+ return false;
51
+ if (!('expiryDate' in value) || value['expiryDate'] === undefined)
52
+ return false;
53
+ if (!('frontAsset' in value) || value['frontAsset'] === undefined)
54
+ return false;
55
+ return true;
56
+ }
57
+ function AuthRegisterGuardRequestLicenceFromJSON(json) {
58
+ return AuthRegisterGuardRequestLicenceFromJSONTyped(json, false);
59
+ }
60
+ function AuthRegisterGuardRequestLicenceFromJSONTyped(json, ignoreDiscriminator) {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+ 'state': json['state'],
66
+ 'licenceNumber': json['licence_number'],
67
+ 'firstName': json['first_name'],
68
+ 'lastName': json['last_name'],
69
+ 'expiryDate': (new Date(json['expiry_date'])),
70
+ 'frontAsset': (0, FrontAsset_1.FrontAssetFromJSON)(json['front_asset']),
71
+ 'backAsset': json['back_asset'] == null ? undefined : (0, BackAsset_1.BackAssetFromJSON)(json['back_asset']),
72
+ 'rsaAsset': json['rsa_asset'] == null ? undefined : (0, RsaAsset_1.RsaAssetFromJSON)(json['rsa_asset']),
73
+ 'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, FirstAidAsset_1.FirstAidAssetFromJSON)(json['first_aid_asset']),
74
+ };
75
+ }
76
+ function AuthRegisterGuardRequestLicenceToJSON(json) {
77
+ return AuthRegisterGuardRequestLicenceToJSONTyped(json, false);
78
+ }
79
+ function AuthRegisterGuardRequestLicenceToJSONTyped(value, ignoreDiscriminator) {
80
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'state': value['state'],
86
+ 'licence_number': value['licenceNumber'],
87
+ 'first_name': value['firstName'],
88
+ 'last_name': value['lastName'],
89
+ 'expiry_date': ((value['expiryDate']).toISOString()),
90
+ 'front_asset': (0, FrontAsset_1.FrontAssetToJSON)(value['frontAsset']),
91
+ 'back_asset': (0, BackAsset_1.BackAssetToJSON)(value['backAsset']),
92
+ 'rsa_asset': (0, RsaAsset_1.RsaAssetToJSON)(value['rsaAsset']),
93
+ 'first_aid_asset': (0, FirstAidAsset_1.FirstAidAssetToJSON)(value['firstAidAsset']),
94
+ };
95
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AuthRegisterGuardRequestProfileSignature
16
+ */
17
+ export interface AuthRegisterGuardRequestProfileSignature {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AuthRegisterGuardRequestProfileSignature
22
+ */
23
+ fileId?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AuthRegisterGuardRequestProfileSignature
28
+ */
29
+ fileName?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AuthRegisterGuardRequestProfileSignature
34
+ */
35
+ mimeType?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AuthRegisterGuardRequestProfileSignature
40
+ */
41
+ altText?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AuthRegisterGuardRequestProfileSignature interface.
45
+ */
46
+ export declare function instanceOfAuthRegisterGuardRequestProfileSignature(value: object): value is AuthRegisterGuardRequestProfileSignature;
47
+ export declare function AuthRegisterGuardRequestProfileSignatureFromJSON(json: any): AuthRegisterGuardRequestProfileSignature;
48
+ export declare function AuthRegisterGuardRequestProfileSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestProfileSignature;
49
+ export declare function AuthRegisterGuardRequestProfileSignatureToJSON(json: any): AuthRegisterGuardRequestProfileSignature;
50
+ export declare function AuthRegisterGuardRequestProfileSignatureToJSONTyped(value?: AuthRegisterGuardRequestProfileSignature | null, ignoreDiscriminator?: boolean): any;