@digital8/security-registers-backend-ts-sdk 0.0.314 → 0.0.315
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 +22 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +127 -1
- package/dist/apis/GeneralApi.js +693 -35
- package/dist/models/AssetFileForUploadResource.d.ts +4 -2
- package/dist/models/AuthChangePasswordRequest.d.ts +38 -0
- package/dist/models/AuthChangePasswordRequest.js +55 -0
- package/dist/models/AuthProfileUpdateRequest.d.ts +56 -0
- package/dist/models/AuthProfileUpdateRequest.js +57 -0
- package/dist/models/AuthRegisterGuardRequest.d.ts +70 -0
- package/dist/models/AuthRegisterGuardRequest.js +77 -0
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +98 -0
- package/dist/models/AuthRegisterGuardRequestLicence.js +95 -0
- package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +50 -0
- package/dist/models/AuthRegisterGuardRequestProfileSignature.js +55 -0
- package/dist/models/BackAsset.d.ts +50 -0
- package/dist/models/BackAsset.js +55 -0
- package/dist/models/DevicesRegisterRequest.d.ts +76 -0
- package/dist/models/DevicesRegisterRequest.js +73 -0
- package/dist/models/FirstAidAsset.d.ts +50 -0
- package/dist/models/FirstAidAsset.js +55 -0
- package/dist/models/FrontAsset.d.ts +50 -0
- package/dist/models/FrontAsset.js +55 -0
- package/dist/models/IncidentFieldSchemaResource.d.ts +4 -2
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentListResource.d.ts +107 -0
- package/dist/models/IncidentListResource.js +81 -0
- package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentListResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +4 -2
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +56 -0
- package/dist/models/IncidentsExportPdfBulkRequest.js +63 -0
- package/dist/models/IncidentsListRequest.d.ts +163 -0
- package/dist/models/IncidentsListRequest.js +103 -0
- package/dist/models/LicencesStoreRequest.d.ts +10 -104
- package/dist/models/LicencesStoreRequest.js +10 -40
- package/dist/models/LicencesStoreRequestBackAsset.d.ts +50 -0
- package/dist/models/LicencesStoreRequestBackAsset.js +55 -0
- package/dist/models/LicencesUpdateRequest.d.ts +9 -104
- package/dist/models/LicencesUpdateRequest.js +9 -40
- package/dist/models/MobileDeviceResource.d.ts +92 -0
- package/dist/models/MobileDeviceResource.js +86 -0
- package/dist/models/MobileDeviceResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileDeviceResourceArrayResponse.js +50 -0
- package/dist/models/MobileInitResource.d.ts +47 -0
- package/dist/models/MobileInitResource.js +62 -0
- package/dist/models/MobileInitResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileInitResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
- package/dist/models/PdfExportQueuedResource.d.ts +44 -0
- package/dist/models/PdfExportQueuedResource.js +59 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +7 -8
- package/dist/models/RegisterListResource.js +11 -11
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -10
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/RsaAsset.d.ts +50 -0
- package/dist/models/RsaAsset.js +55 -0
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +12 -8
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +12 -8
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +564 -0
- package/src/models/AssetFileForUploadResource.ts +2 -2
- package/src/models/AuthChangePasswordRequest.ts +75 -0
- package/src/models/AuthProfileUpdateRequest.ts +97 -0
- package/src/models/AuthRegisterGuardRequest.ts +135 -0
- package/src/models/AuthRegisterGuardRequestLicence.ts +181 -0
- package/src/models/AuthRegisterGuardRequestProfileSignature.ts +89 -0
- package/src/models/BackAsset.ts +89 -0
- package/src/models/DevicesRegisterRequest.ts +126 -0
- package/src/models/FirstAidAsset.ts +89 -0
- package/src/models/FrontAsset.ts +89 -0
- package/src/models/IncidentFieldSchemaResource.ts +2 -2
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentListResource.ts +185 -0
- package/src/models/IncidentListResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
- package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
- package/src/models/IncidentsListRequest.ts +238 -0
- package/src/models/LicencesStoreRequest.ts +31 -144
- package/src/models/LicencesStoreRequestBackAsset.ts +89 -0
- package/src/models/LicencesUpdateRequest.ts +24 -144
- package/src/models/MobileDeviceResource.ts +153 -0
- package/src/models/MobileDeviceResourceArrayResponse.ts +73 -0
- package/src/models/MobileInitResource.ts +106 -0
- package/src/models/MobileInitResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +16 -22
- package/src/models/RegisterResource.ts +5 -7
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/RsaAsset.ts +89 -0
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
- package/src/models/VenueLiteResource.ts +9 -0
- package/src/models/index.ts +22 -0
|
@@ -0,0 +1,75 @@
|
|
|
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 AuthChangePasswordRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthChangePasswordRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuthChangePasswordRequest
|
|
26
|
+
*/
|
|
27
|
+
currentPassword: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuthChangePasswordRequest
|
|
32
|
+
*/
|
|
33
|
+
newPassword: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AuthChangePasswordRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAuthChangePasswordRequest(value: object): value is AuthChangePasswordRequest {
|
|
40
|
+
if (!('currentPassword' in value) || value['currentPassword'] === undefined) return false;
|
|
41
|
+
if (!('newPassword' in value) || value['newPassword'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AuthChangePasswordRequestFromJSON(json: any): AuthChangePasswordRequest {
|
|
46
|
+
return AuthChangePasswordRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AuthChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthChangePasswordRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'currentPassword': json['current_password'],
|
|
56
|
+
'newPassword': json['new_password'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AuthChangePasswordRequestToJSON(json: any): AuthChangePasswordRequest {
|
|
61
|
+
return AuthChangePasswordRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AuthChangePasswordRequestToJSONTyped(value?: AuthChangePasswordRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'current_password': value['currentPassword'],
|
|
72
|
+
'new_password': value['newPassword'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 AuthProfileUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthProfileUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuthProfileUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
firstName?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuthProfileUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
lastName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AuthProfileUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
email?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AuthProfileUpdateRequest
|
|
44
|
+
*/
|
|
45
|
+
mobile?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AuthProfileUpdateRequest
|
|
50
|
+
*/
|
|
51
|
+
signatureAssetId?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAuthProfileUpdateRequest(value: object): value is AuthProfileUpdateRequest {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function AuthProfileUpdateRequestFromJSON(json: any): AuthProfileUpdateRequest {
|
|
62
|
+
return AuthProfileUpdateRequestFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function AuthProfileUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthProfileUpdateRequest {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
72
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
73
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
74
|
+
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
75
|
+
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function AuthProfileUpdateRequestToJSON(json: any): AuthProfileUpdateRequest {
|
|
80
|
+
return AuthProfileUpdateRequestToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function AuthProfileUpdateRequestToJSONTyped(value?: AuthProfileUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'first_name': value['firstName'],
|
|
91
|
+
'last_name': value['lastName'],
|
|
92
|
+
'email': value['email'],
|
|
93
|
+
'mobile': value['mobile'],
|
|
94
|
+
'signature_asset_id': value['signatureAssetId'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { 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
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AuthRegisterGuardRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface AuthRegisterGuardRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AuthRegisterGuardRequest
|
|
41
|
+
*/
|
|
42
|
+
firstName: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AuthRegisterGuardRequest
|
|
47
|
+
*/
|
|
48
|
+
lastName: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AuthRegisterGuardRequest
|
|
53
|
+
*/
|
|
54
|
+
email: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AuthRegisterGuardRequest
|
|
59
|
+
*/
|
|
60
|
+
mobile: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AuthRegisterGuardRequest
|
|
65
|
+
*/
|
|
66
|
+
password: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
70
|
+
* @memberof AuthRegisterGuardRequest
|
|
71
|
+
*/
|
|
72
|
+
profileSignature: AuthRegisterGuardRequestProfileSignature;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {AuthRegisterGuardRequestLicence}
|
|
76
|
+
* @memberof AuthRegisterGuardRequest
|
|
77
|
+
*/
|
|
78
|
+
licence: AuthRegisterGuardRequestLicence;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the AuthRegisterGuardRequest interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfAuthRegisterGuardRequest(value: object): value is AuthRegisterGuardRequest {
|
|
85
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
86
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
87
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
88
|
+
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
89
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
90
|
+
if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
|
|
91
|
+
if (!('licence' in value) || value['licence'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function AuthRegisterGuardRequestFromJSON(json: any): AuthRegisterGuardRequest {
|
|
96
|
+
return AuthRegisterGuardRequestFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequest {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'firstName': json['first_name'],
|
|
106
|
+
'lastName': json['last_name'],
|
|
107
|
+
'email': json['email'],
|
|
108
|
+
'mobile': json['mobile'],
|
|
109
|
+
'password': json['password'],
|
|
110
|
+
'profileSignature': AuthRegisterGuardRequestProfileSignatureFromJSON(json['profile_signature']),
|
|
111
|
+
'licence': AuthRegisterGuardRequestLicenceFromJSON(json['licence']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function AuthRegisterGuardRequestToJSON(json: any): AuthRegisterGuardRequest {
|
|
116
|
+
return AuthRegisterGuardRequestToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'first_name': value['firstName'],
|
|
127
|
+
'last_name': value['lastName'],
|
|
128
|
+
'email': value['email'],
|
|
129
|
+
'mobile': value['mobile'],
|
|
130
|
+
'password': value['password'],
|
|
131
|
+
'profile_signature': AuthRegisterGuardRequestProfileSignatureToJSON(value['profileSignature']),
|
|
132
|
+
'licence': AuthRegisterGuardRequestLicenceToJSON(value['licence']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
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
|
+
|
|
@@ -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 BackAsset
|
|
20
|
+
*/
|
|
21
|
+
export interface BackAsset {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BackAsset
|
|
26
|
+
*/
|
|
27
|
+
fileId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BackAsset
|
|
32
|
+
*/
|
|
33
|
+
fileName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BackAsset
|
|
38
|
+
*/
|
|
39
|
+
mimeType?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BackAsset
|
|
44
|
+
*/
|
|
45
|
+
altText?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the BackAsset interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfBackAsset(value: object): value is BackAsset {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function BackAssetFromJSON(json: any): BackAsset {
|
|
56
|
+
return BackAssetFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BackAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackAsset {
|
|
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 BackAssetToJSON(json: any): BackAsset {
|
|
73
|
+
return BackAssetToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function BackAssetToJSONTyped(value?: BackAsset | 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
|
+
|