@digital8/security-registers-backend-ts-sdk 0.0.445 → 0.0.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -2
- package/README.md +2 -2
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/AuthRegisterGuardRequest.d.ts +3 -3
- package/dist/models/AuthRegisterGuardRequest.js +4 -4
- package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +93 -0
- package/dist/models/{AuthRegisterGuardRequestLicence.js → AuthRegisterGuardRequestLicencesInner.js} +17 -17
- package/dist/models/MobileInitResource.d.ts +0 -7
- package/dist/models/MobileInitResource.js +0 -5
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +2 -6
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/UserResource.d.ts +7 -0
- package/dist/models/UserResource.js +5 -0
- package/dist/models/UsersCreateWithRoleRequest.d.ts +3 -3
- package/dist/models/UsersCreateWithRoleRequest.js +3 -3
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +1 -2
- package/package.json +1 -1
- package/src/models/AssetResource.ts +2 -3
- package/src/models/AuthRegisterGuardRequest.ts +11 -11
- package/src/models/{AuthRegisterGuardRequestLicence.ts → AuthRegisterGuardRequestLicencesInner.ts} +29 -29
- package/src/models/MobileInitResource.ts +0 -16
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +4 -6
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/UserResource.ts +16 -0
- package/src/models/UsersCreateWithRoleRequest.ts +10 -10
- package/src/models/index.ts +1 -2
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -93
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +0 -93
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +0 -90
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +0 -176
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -83,7 +83,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
83
83
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
84
84
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
85
85
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
86
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
87
86
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
88
87
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
89
88
|
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
104
103
|
'filePath': json['filePath'],
|
|
105
104
|
'fileName': json['fileName'],
|
|
106
105
|
'mimeType': json['mimeType'],
|
|
107
|
-
'altText': json['altText'],
|
|
106
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
108
107
|
'index': json['index'],
|
|
109
108
|
'fileId': json['fileId'],
|
|
110
109
|
'isExternal': json['isExternal'],
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AuthRegisterGuardRequestLicencesInner } from './AuthRegisterGuardRequestLicencesInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AuthRegisterGuardRequestLicencesInnerFromJSON,
|
|
19
|
+
AuthRegisterGuardRequestLicencesInnerFromJSONTyped,
|
|
20
|
+
AuthRegisterGuardRequestLicencesInnerToJSON,
|
|
21
|
+
AuthRegisterGuardRequestLicencesInnerToJSONTyped,
|
|
22
|
+
} from './AuthRegisterGuardRequestLicencesInner';
|
|
23
23
|
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
24
24
|
import {
|
|
25
25
|
AuthRegisterGuardRequestProfileSignatureFromJSON,
|
|
@@ -72,10 +72,10 @@ export interface AuthRegisterGuardRequest {
|
|
|
72
72
|
profileSignature: AuthRegisterGuardRequestProfileSignature;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
|
-
* @type {
|
|
75
|
+
* @type {Array<AuthRegisterGuardRequestLicencesInner>}
|
|
76
76
|
* @memberof AuthRegisterGuardRequest
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
licences: Array<AuthRegisterGuardRequestLicencesInner>;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
@@ -88,7 +88,7 @@ export function instanceOfAuthRegisterGuardRequest(value: object): value is Auth
|
|
|
88
88
|
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
89
89
|
if (!('password' in value) || value['password'] === undefined) return false;
|
|
90
90
|
if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
|
|
91
|
-
if (!('
|
|
91
|
+
if (!('licences' in value) || value['licences'] === undefined) return false;
|
|
92
92
|
return true;
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -108,7 +108,7 @@ export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
108
108
|
'mobile': json['mobile'],
|
|
109
109
|
'password': json['password'],
|
|
110
110
|
'profileSignature': AuthRegisterGuardRequestProfileSignatureFromJSON(json['profile_signature']),
|
|
111
|
-
'
|
|
111
|
+
'licences': ((json['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerFromJSON)),
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -129,7 +129,7 @@ export function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardReq
|
|
|
129
129
|
'mobile': value['mobile'],
|
|
130
130
|
'password': value['password'],
|
|
131
131
|
'profile_signature': AuthRegisterGuardRequestProfileSignatureToJSON(value['profileSignature']),
|
|
132
|
-
'
|
|
132
|
+
'licences': ((value['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerToJSON)),
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
|
package/src/models/{AuthRegisterGuardRequestLicence.ts → AuthRegisterGuardRequestLicencesInner.ts}
RENAMED
|
@@ -45,81 +45,81 @@ import {
|
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @export
|
|
48
|
-
* @interface
|
|
48
|
+
* @interface AuthRegisterGuardRequestLicencesInner
|
|
49
49
|
*/
|
|
50
|
-
export interface
|
|
50
|
+
export interface AuthRegisterGuardRequestLicencesInner {
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @type {string}
|
|
54
|
-
* @memberof
|
|
54
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
55
55
|
*/
|
|
56
|
-
state:
|
|
56
|
+
state: AuthRegisterGuardRequestLicencesInnerStateEnum;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @type {string}
|
|
60
|
-
* @memberof
|
|
60
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
61
61
|
*/
|
|
62
62
|
licenceNumber: string;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {string}
|
|
66
|
-
* @memberof
|
|
66
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
67
67
|
*/
|
|
68
68
|
firstName: string;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {string}
|
|
72
|
-
* @memberof
|
|
72
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
73
73
|
*/
|
|
74
74
|
lastName: string;
|
|
75
75
|
/**
|
|
76
76
|
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
77
77
|
* @type {string}
|
|
78
|
-
* @memberof
|
|
78
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
79
79
|
*/
|
|
80
80
|
expiryDate: string;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {FrontAsset}
|
|
84
|
-
* @memberof
|
|
84
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
85
85
|
*/
|
|
86
86
|
frontAsset: FrontAsset;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {BackAsset}
|
|
90
|
-
* @memberof AuthRegisterGuardRequestLicence
|
|
91
|
-
*/
|
|
92
|
-
backAsset?: BackAsset | null;
|
|
93
87
|
/**
|
|
94
88
|
*
|
|
95
89
|
* @type {RsaAsset}
|
|
96
|
-
* @memberof
|
|
90
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
97
91
|
*/
|
|
98
92
|
rsaAsset?: RsaAsset | null;
|
|
99
93
|
/**
|
|
100
94
|
*
|
|
101
95
|
* @type {FirstAidAsset}
|
|
102
|
-
* @memberof
|
|
96
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
103
97
|
*/
|
|
104
98
|
firstAidAsset?: FirstAidAsset | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {BackAsset}
|
|
102
|
+
* @memberof AuthRegisterGuardRequestLicencesInner
|
|
103
|
+
*/
|
|
104
|
+
backAsset?: BackAsset | null;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* @export
|
|
110
110
|
*/
|
|
111
|
-
export const
|
|
111
|
+
export const AuthRegisterGuardRequestLicencesInnerStateEnum = {
|
|
112
112
|
Qld: 'QLD',
|
|
113
113
|
Nsw: 'NSW',
|
|
114
114
|
Vic: 'VIC'
|
|
115
115
|
} as const;
|
|
116
|
-
export type
|
|
116
|
+
export type AuthRegisterGuardRequestLicencesInnerStateEnum = typeof AuthRegisterGuardRequestLicencesInnerStateEnum[keyof typeof AuthRegisterGuardRequestLicencesInnerStateEnum];
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Check if a given object implements the
|
|
120
|
+
* Check if a given object implements the AuthRegisterGuardRequestLicencesInner interface.
|
|
121
121
|
*/
|
|
122
|
-
export function
|
|
122
|
+
export function instanceOfAuthRegisterGuardRequestLicencesInner(value: object): value is AuthRegisterGuardRequestLicencesInner {
|
|
123
123
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
124
124
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
125
125
|
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
@@ -129,11 +129,11 @@ export function instanceOfAuthRegisterGuardRequestLicence(value: object): value
|
|
|
129
129
|
return true;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
export function
|
|
133
|
-
return
|
|
132
|
+
export function AuthRegisterGuardRequestLicencesInnerFromJSON(json: any): AuthRegisterGuardRequestLicencesInner {
|
|
133
|
+
return AuthRegisterGuardRequestLicencesInnerFromJSONTyped(json, false);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
export function
|
|
136
|
+
export function AuthRegisterGuardRequestLicencesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestLicencesInner {
|
|
137
137
|
if (json == null) {
|
|
138
138
|
return json;
|
|
139
139
|
}
|
|
@@ -145,17 +145,17 @@ export function AuthRegisterGuardRequestLicenceFromJSONTyped(json: any, ignoreDi
|
|
|
145
145
|
'lastName': json['last_name'],
|
|
146
146
|
'expiryDate': json['expiry_date'],
|
|
147
147
|
'frontAsset': FrontAssetFromJSON(json['front_asset']),
|
|
148
|
-
'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
|
|
149
148
|
'rsaAsset': json['rsa_asset'] == null ? undefined : RsaAssetFromJSON(json['rsa_asset']),
|
|
150
149
|
'firstAidAsset': json['first_aid_asset'] == null ? undefined : FirstAidAssetFromJSON(json['first_aid_asset']),
|
|
150
|
+
'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
export function
|
|
155
|
-
return
|
|
154
|
+
export function AuthRegisterGuardRequestLicencesInnerToJSON(json: any): AuthRegisterGuardRequestLicencesInner {
|
|
155
|
+
return AuthRegisterGuardRequestLicencesInnerToJSONTyped(json, false);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export function
|
|
158
|
+
export function AuthRegisterGuardRequestLicencesInnerToJSONTyped(value?: AuthRegisterGuardRequestLicencesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
159
159
|
if (value == null) {
|
|
160
160
|
return value;
|
|
161
161
|
}
|
|
@@ -168,9 +168,9 @@ export function AuthRegisterGuardRequestLicenceToJSONTyped(value?: AuthRegisterG
|
|
|
168
168
|
'last_name': value['lastName'],
|
|
169
169
|
'expiry_date': value['expiryDate'],
|
|
170
170
|
'front_asset': FrontAssetToJSON(value['frontAsset']),
|
|
171
|
-
'back_asset': BackAssetToJSON(value['backAsset']),
|
|
172
171
|
'rsa_asset': RsaAssetToJSON(value['rsaAsset']),
|
|
173
172
|
'first_aid_asset': FirstAidAssetToJSON(value['firstAidAsset']),
|
|
173
|
+
'back_asset': BackAssetToJSON(value['backAsset']),
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
17
|
-
import {
|
|
18
|
-
NotificationPreferenceResourceFromJSON,
|
|
19
|
-
NotificationPreferenceResourceFromJSONTyped,
|
|
20
|
-
NotificationPreferenceResourceToJSON,
|
|
21
|
-
NotificationPreferenceResourceToJSONTyped,
|
|
22
|
-
} from './NotificationPreferenceResource';
|
|
23
16
|
import type { UserResource } from './UserResource';
|
|
24
17
|
import {
|
|
25
18
|
UserResourceFromJSON,
|
|
@@ -53,12 +46,6 @@ export interface MobileInitResource {
|
|
|
53
46
|
* @memberof MobileInitResource
|
|
54
47
|
*/
|
|
55
48
|
rosters: Array<RosterListResource> | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Array<NotificationPreferenceResource>}
|
|
59
|
-
* @memberof MobileInitResource
|
|
60
|
-
*/
|
|
61
|
-
notificationPreferences: Array<NotificationPreferenceResource> | null;
|
|
62
49
|
}
|
|
63
50
|
|
|
64
51
|
/**
|
|
@@ -67,7 +54,6 @@ export interface MobileInitResource {
|
|
|
67
54
|
export function instanceOfMobileInitResource(value: object): value is MobileInitResource {
|
|
68
55
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
69
56
|
if (!('rosters' in value) || value['rosters'] === undefined) return false;
|
|
70
|
-
if (!('notificationPreferences' in value) || value['notificationPreferences'] === undefined) return false;
|
|
71
57
|
return true;
|
|
72
58
|
}
|
|
73
59
|
|
|
@@ -83,7 +69,6 @@ export function MobileInitResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
83
69
|
|
|
84
70
|
'user': UserResourceFromJSON(json['user']),
|
|
85
71
|
'rosters': (json['rosters'] == null ? null : (json['rosters'] as Array<any>).map(RosterListResourceFromJSON)),
|
|
86
|
-
'notificationPreferences': (json['notificationPreferences'] == null ? null : (json['notificationPreferences'] as Array<any>).map(NotificationPreferenceResourceFromJSON)),
|
|
87
72
|
};
|
|
88
73
|
}
|
|
89
74
|
|
|
@@ -100,7 +85,6 @@ export function MobileInitResourceToJSONTyped(value?: MobileInitResource | null,
|
|
|
100
85
|
|
|
101
86
|
'user': UserResourceToJSON(value['user']),
|
|
102
87
|
'rosters': (value['rosters'] == null ? null : (value['rosters'] as Array<any>).map(RosterListResourceToJSON)),
|
|
103
|
-
'notificationPreferences': (value['notificationPreferences'] == null ? null : (value['notificationPreferences'] as Array<any>).map(NotificationPreferenceResourceToJSON)),
|
|
104
88
|
};
|
|
105
89
|
}
|
|
106
90
|
|
|
@@ -171,7 +171,7 @@ export interface RegisterListResource {
|
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
174
|
+
signOffLong: number;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {boolean}
|
|
@@ -214,6 +214,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
214
214
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
215
215
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
216
216
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
217
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
217
218
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
218
219
|
return true;
|
|
219
220
|
}
|
|
@@ -250,7 +251,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
250
251
|
'signOnLat': json['signOnLat'],
|
|
251
252
|
'signOnLong': json['signOnLong'],
|
|
252
253
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
253
|
-
'signOffLong': json['signOffLong']
|
|
254
|
+
'signOffLong': json['signOffLong'],
|
|
254
255
|
'hasIncidents': json['hasIncidents'],
|
|
255
256
|
};
|
|
256
257
|
}
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber?: string | null;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -208,13 +208,11 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
208
208
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
209
209
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
210
210
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
211
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
212
211
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
213
212
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
214
213
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
215
214
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
216
215
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
217
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
218
216
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
|
|
219
217
|
return true;
|
|
220
218
|
}
|
|
@@ -243,13 +241,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
243
241
|
'firstAidImage': json['firstAidImage'],
|
|
244
242
|
'signOnLat': json['signOnLat'],
|
|
245
243
|
'signOnLong': json['signOnLong'],
|
|
246
|
-
'signOffLat': json['signOffLat'],
|
|
244
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
247
245
|
'signOffLong': json['signOffLong'],
|
|
248
246
|
'licenceNumber': json['licenceNumber'],
|
|
249
247
|
'licenceExpiry': json['licenceExpiry'],
|
|
250
248
|
'licenceFirstName': json['licenceFirstName'],
|
|
251
249
|
'licenceLastName': json['licenceLastName'],
|
|
252
|
-
'badgeNumber': json['badgeNumber'],
|
|
250
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
253
251
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
254
252
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
255
253
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
|
|
|
76
76
|
* @type {Date}
|
|
77
77
|
* @memberof RosterWithRegistersResource
|
|
78
78
|
*/
|
|
79
|
-
finishDateTime
|
|
79
|
+
finishDateTime?: Date | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {boolean}
|
|
@@ -123,7 +123,6 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
|
|
|
123
123
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
124
124
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
125
125
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
126
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
127
126
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
128
127
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
129
128
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -146,7 +145,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
146
145
|
'state': json['state'],
|
|
147
146
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
148
147
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
149
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
148
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
150
149
|
'isCompliant': json['isCompliant'],
|
|
151
150
|
'isComplete': json['isComplete'],
|
|
152
151
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -170,7 +169,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
|
|
|
170
169
|
'state': value['state'],
|
|
171
170
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
172
171
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
173
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
172
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
174
173
|
'isCompliant': value['isCompliant'],
|
|
175
174
|
'isComplete': value['isComplete'],
|
|
176
175
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LicenceResource } from './LicenceResource';
|
|
17
|
+
import {
|
|
18
|
+
LicenceResourceFromJSON,
|
|
19
|
+
LicenceResourceFromJSONTyped,
|
|
20
|
+
LicenceResourceToJSON,
|
|
21
|
+
LicenceResourceToJSONTyped,
|
|
22
|
+
} from './LicenceResource';
|
|
16
23
|
import type { AssetLiteResource } from './AssetLiteResource';
|
|
17
24
|
import {
|
|
18
25
|
AssetLiteResourceFromJSON,
|
|
@@ -100,6 +107,12 @@ export interface UserResource {
|
|
|
100
107
|
* @memberof UserResource
|
|
101
108
|
*/
|
|
102
109
|
profileImage: AssetLiteResource | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {Array<LicenceResource>}
|
|
113
|
+
* @memberof UserResource
|
|
114
|
+
*/
|
|
115
|
+
licences: Array<LicenceResource> | null;
|
|
103
116
|
/**
|
|
104
117
|
*
|
|
105
118
|
* @type {CurrentRegisterResource}
|
|
@@ -135,6 +148,7 @@ export function instanceOfUserResource(value: object): value is UserResource {
|
|
|
135
148
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
136
149
|
if (!('signatureAsset' in value) || value['signatureAsset'] === undefined) return false;
|
|
137
150
|
if (!('profileImage' in value) || value['profileImage'] === undefined) return false;
|
|
151
|
+
if (!('licences' in value) || value['licences'] === undefined) return false;
|
|
138
152
|
if (!('currentRegister' in value) || value['currentRegister'] === undefined) return false;
|
|
139
153
|
return true;
|
|
140
154
|
}
|
|
@@ -160,6 +174,7 @@ export function UserResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
160
174
|
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetLiteResourceFromJSON)),
|
|
161
175
|
'signatureAsset': AssetLiteResourceFromJSON(json['signatureAsset']),
|
|
162
176
|
'profileImage': AssetLiteResourceFromJSON(json['profileImage']),
|
|
177
|
+
'licences': (json['licences'] == null ? null : (json['licences'] as Array<any>).map(LicenceResourceFromJSON)),
|
|
163
178
|
'currentRegister': CurrentRegisterResourceFromJSON(json['currentRegister']),
|
|
164
179
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
165
180
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -188,6 +203,7 @@ export function UserResourceToJSONTyped(value?: UserResource | null, ignoreDiscr
|
|
|
188
203
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetLiteResourceToJSON)),
|
|
189
204
|
'signatureAsset': AssetLiteResourceToJSON(value['signatureAsset']),
|
|
190
205
|
'profileImage': AssetLiteResourceToJSON(value['profileImage']),
|
|
206
|
+
'licences': (value['licences'] == null ? null : (value['licences'] as Array<any>).map(LicenceResourceToJSON)),
|
|
191
207
|
'currentRegister': CurrentRegisterResourceToJSON(value['currentRegister']),
|
|
192
208
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
193
209
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AuthRegisterGuardRequestLicencesInner } from './AuthRegisterGuardRequestLicencesInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AuthRegisterGuardRequestLicencesInnerFromJSON,
|
|
19
|
+
AuthRegisterGuardRequestLicencesInnerFromJSONTyped,
|
|
20
|
+
AuthRegisterGuardRequestLicencesInnerToJSON,
|
|
21
|
+
AuthRegisterGuardRequestLicencesInnerToJSONTyped,
|
|
22
|
+
} from './AuthRegisterGuardRequestLicencesInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -77,10 +77,10 @@ export interface UsersCreateWithRoleRequest {
|
|
|
77
77
|
securityCompanyIds?: Array<number>;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
|
-
* @type {Array<
|
|
80
|
+
* @type {Array<AuthRegisterGuardRequestLicencesInner>}
|
|
81
81
|
* @memberof UsersCreateWithRoleRequest
|
|
82
82
|
*/
|
|
83
|
-
licences?: Array<
|
|
83
|
+
licences?: Array<AuthRegisterGuardRequestLicencesInner>;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -134,7 +134,7 @@ export function UsersCreateWithRoleRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
134
134
|
'role': json['role'],
|
|
135
135
|
'venueIds': json['venue_ids'] == null ? undefined : json['venue_ids'],
|
|
136
136
|
'securityCompanyIds': json['security_company_ids'] == null ? undefined : json['security_company_ids'],
|
|
137
|
-
'licences': json['licences'] == null ? undefined : ((json['licences'] as Array<any>).map(
|
|
137
|
+
'licences': json['licences'] == null ? undefined : ((json['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerFromJSON)),
|
|
138
138
|
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
139
139
|
};
|
|
140
140
|
}
|
|
@@ -158,7 +158,7 @@ export function UsersCreateWithRoleRequestToJSONTyped(value?: UsersCreateWithRol
|
|
|
158
158
|
'role': value['role'],
|
|
159
159
|
'venue_ids': value['venueIds'],
|
|
160
160
|
'security_company_ids': value['securityCompanyIds'],
|
|
161
|
-
'licences': value['licences'] == null ? undefined : ((value['licences'] as Array<any>).map(
|
|
161
|
+
'licences': value['licences'] == null ? undefined : ((value['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerToJSON)),
|
|
162
162
|
'signature_asset_id': value['signatureAssetId'],
|
|
163
163
|
};
|
|
164
164
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export * from './AssetResourceArrayResponse';
|
|
|
11
11
|
export * from './AuthChangePasswordRequest';
|
|
12
12
|
export * from './AuthProfileUpdateRequest';
|
|
13
13
|
export * from './AuthRegisterGuardRequest';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './AuthRegisterGuardRequestLicencesInner';
|
|
15
15
|
export * from './AuthRegisterGuardRequestProfileSignature';
|
|
16
16
|
export * from './BackAsset';
|
|
17
17
|
export * from './CurrentRegisterResource';
|
|
@@ -161,7 +161,6 @@ export * from './UserVenueResourceArrayResponse';
|
|
|
161
161
|
export * from './UsersAttachSecurityCompaniesRequest';
|
|
162
162
|
export * from './UsersAttachVenuesRequest';
|
|
163
163
|
export * from './UsersCreateWithRoleRequest';
|
|
164
|
-
export * from './UsersCreateWithRoleRequestLicencesInner';
|
|
165
164
|
export * from './UsersDetachVenuesRequest';
|
|
166
165
|
export * from './UsersRegisterVenueManagerRequest';
|
|
167
166
|
export * from './VenueGuardScheduleResource';
|
|
@@ -1,93 +0,0 @@
|
|
|
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
|
-
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof AuthRegisterGuardRequestLicence
|
|
50
|
-
*/
|
|
51
|
-
expiryDate: string;
|
|
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 Vic: "VIC";
|
|
84
|
-
};
|
|
85
|
-
export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
|
|
86
|
-
/**
|
|
87
|
-
* Check if a given object implements the AuthRegisterGuardRequestLicence interface.
|
|
88
|
-
*/
|
|
89
|
-
export declare function instanceOfAuthRegisterGuardRequestLicence(value: object): value is AuthRegisterGuardRequestLicence;
|
|
90
|
-
export declare function AuthRegisterGuardRequestLicenceFromJSON(json: any): AuthRegisterGuardRequestLicence;
|
|
91
|
-
export declare function AuthRegisterGuardRequestLicenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequestLicence;
|
|
92
|
-
export declare function AuthRegisterGuardRequestLicenceToJSON(json: any): AuthRegisterGuardRequestLicence;
|
|
93
|
-
export declare function AuthRegisterGuardRequestLicenceToJSONTyped(value?: AuthRegisterGuardRequestLicence | null, ignoreDiscriminator?: boolean): any;
|