@digital8/security-registers-backend-ts-sdk 0.0.335 → 0.0.337
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 +2 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +5 -5
- package/dist/apis/GeneralApi.js +2 -2
- package/dist/models/AssetLiteResource.d.ts +0 -12
- package/dist/models/AssetLiteResource.js +0 -6
- package/dist/models/AssetResource.d.ts +0 -12
- package/dist/models/AssetResource.js +0 -6
- package/dist/models/AuthProfileUpdateRequest.d.ts +6 -0
- package/dist/models/AuthProfileUpdateRequest.js +2 -0
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +3 -8
- package/dist/models/AuthRegisterGuardRequestLicence.js +3 -8
- package/dist/models/CurrentRegisterResource.d.ts +22 -5
- package/dist/models/CurrentRegisterResource.js +14 -7
- package/dist/models/IncidentFieldAuditResource.d.ts +6 -0
- package/dist/models/IncidentFieldAuditResource.js +2 -0
- package/dist/models/IncidentFieldSchemaResource.d.ts +13 -6
- package/dist/models/IncidentFieldSchemaResource.js +9 -0
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +0 -5
- package/dist/models/IncidentFieldSchemasShowRequest.js +1 -6
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/IncidentListResource.d.ts +6 -0
- package/dist/models/IncidentListResource.js +2 -0
- package/dist/models/IncidentVersionResource.d.ts +2 -2
- package/dist/models/IncidentVideoResource.d.ts +10 -1
- package/dist/models/IncidentVideoResource.js +9 -0
- package/dist/models/IncidentsUpdateRequest.d.ts +3 -3
- package/dist/models/LicenceListResource.d.ts +11 -2
- package/dist/models/LicenceListResource.js +9 -0
- package/dist/models/LicenceLiteResource.d.ts +11 -2
- package/dist/models/LicenceLiteResource.js +9 -0
- package/dist/models/LicenceResource.d.ts +11 -2
- package/dist/models/LicenceResource.js +9 -0
- package/dist/models/LicencesStoreRequest.d.ts +3 -8
- package/dist/models/LicencesStoreRequest.js +3 -8
- package/dist/models/LicencesUpdateRequest.d.ts +3 -8
- package/dist/models/LicencesUpdateRequest.js +3 -8
- package/dist/models/LicencesVerifyRequest.d.ts +1 -6
- package/dist/models/LicencesVerifyRequest.js +1 -6
- package/dist/models/MobileDeviceResource.d.ts +9 -1
- package/dist/models/MobileDeviceResource.js +8 -0
- package/dist/models/NotificationPreferenceResource.d.ts +12 -1
- package/dist/models/NotificationPreferenceResource.js +11 -0
- package/dist/models/PdfExportQueuedResource.d.ts +11 -1
- package/dist/models/PdfExportQueuedResource.js +10 -0
- package/dist/models/PdfExportResource.d.ts +11 -1
- package/dist/models/PdfExportResource.js +10 -0
- package/dist/models/RegisterListResource.d.ts +14 -5
- package/dist/models/RegisterListResource.js +14 -6
- package/dist/models/RegisterResource.d.ts +11 -2
- package/dist/models/RegisterResource.js +12 -1
- package/dist/models/RegistersSignOffRequest.d.ts +3 -3
- package/dist/models/RegistersSignOffRequest.js +2 -2
- package/dist/models/RegistersSignOnRequest.d.ts +3 -3
- package/dist/models/RegistersSignOnRequest.js +2 -2
- package/dist/models/RosterListResource.d.ts +18 -3
- package/dist/models/RosterListResource.js +13 -0
- package/dist/models/RosterResource.d.ts +11 -2
- package/dist/models/RosterResource.js +13 -3
- package/dist/models/RosterWithRegistersResource.d.ts +10 -1
- package/dist/models/RosterWithRegistersResource.js +9 -0
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/UserResource.d.ts +9 -2
- package/dist/models/UserResource.js +7 -2
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +3 -8
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +3 -8
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/dist/models/VenueMobileResource.d.ts +105 -0
- package/dist/models/VenueMobileResource.js +96 -0
- package/dist/models/VenueMobileResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueMobileResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +9 -9
- package/src/models/AssetLiteResource.ts +0 -17
- package/src/models/AssetResource.ts +0 -17
- package/src/models/AuthProfileUpdateRequest.ts +8 -0
- package/src/models/AuthRegisterGuardRequestLicence.ts +6 -11
- package/src/models/CurrentRegisterResource.ts +35 -18
- package/src/models/IncidentFieldAuditResource.ts +8 -0
- package/src/models/IncidentFieldSchemaResource.ts +16 -4
- package/src/models/IncidentFieldSchemasShowRequest.ts +1 -6
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/IncidentListResource.ts +8 -0
- package/src/models/IncidentVersionResource.ts +2 -2
- package/src/models/IncidentVideoResource.ts +13 -1
- package/src/models/IncidentsUpdateRequest.ts +3 -3
- package/src/models/LicenceListResource.ts +14 -2
- package/src/models/LicenceLiteResource.ts +14 -2
- package/src/models/LicenceResource.ts +14 -2
- package/src/models/LicencesStoreRequest.ts +6 -11
- package/src/models/LicencesUpdateRequest.ts +6 -11
- package/src/models/LicencesVerifyRequest.ts +2 -7
- package/src/models/MobileDeviceResource.ts +12 -1
- package/src/models/NotificationPreferenceResource.ts +15 -1
- package/src/models/PdfExportQueuedResource.ts +14 -1
- package/src/models/PdfExportResource.ts +14 -1
- package/src/models/RegisterListResource.ts +21 -9
- package/src/models/RegisterResource.ts +16 -3
- package/src/models/RegistersSignOffRequest.ts +5 -5
- package/src/models/RegistersSignOnRequest.ts +5 -5
- package/src/models/RosterListResource.ts +24 -3
- package/src/models/RosterResource.ts +17 -4
- package/src/models/RosterWithRegistersResource.ts +13 -1
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/UserResource.ts +20 -4
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +6 -11
- package/src/models/VenueLiteResource.ts +9 -0
- package/src/models/VenueMobileResource.ts +180 -0
- package/src/models/VenueMobileResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +2 -2
- package/dist/models/NearbyVenueResource.d.ts +0 -62
- package/dist/models/NearbyVenueResource.js +0 -69
- package/dist/models/NearbyVenueResourceArrayResponse.d.ts +0 -33
- package/dist/models/NearbyVenueResourceArrayResponse.js +0 -50
- package/src/models/NearbyVenueResource.ts +0 -110
- package/src/models/NearbyVenueResourceArrayResponse.ts +0 -73
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
60
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
61
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
75
74
|
|
|
76
75
|
'fileId': json['file_id'],
|
|
77
76
|
'mimeType': json['mime_type'],
|
|
78
|
-
'altText': json['alt_text'],
|
|
77
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
79
78
|
'assetId': json['asset_id'],
|
|
80
79
|
'url': json['url'],
|
|
81
80
|
};
|
|
@@ -101,6 +101,12 @@ export interface IncidentListResource {
|
|
|
101
101
|
* @memberof IncidentListResource
|
|
102
102
|
*/
|
|
103
103
|
submittedByGuard: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof IncidentListResource
|
|
108
|
+
*/
|
|
109
|
+
videosCount?: number;
|
|
104
110
|
/**
|
|
105
111
|
*
|
|
106
112
|
* @type {Date}
|
|
@@ -150,6 +156,7 @@ export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
150
156
|
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
151
157
|
'state': json['state'] == null ? undefined : json['state'],
|
|
152
158
|
'submittedByGuard': json['submittedByGuard'],
|
|
159
|
+
'videosCount': json['videosCount'] == null ? undefined : json['videosCount'],
|
|
153
160
|
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
154
161
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
155
162
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -177,6 +184,7 @@ export function IncidentListResourceToJSONTyped(value?: IncidentListResource | n
|
|
|
177
184
|
'incidentDateTime': value['incidentDateTime'] === null ? null : ((value['incidentDateTime'] as any)?.toISOString()),
|
|
178
185
|
'state': value['state'],
|
|
179
186
|
'submittedByGuard': value['submittedByGuard'],
|
|
187
|
+
'videosCount': value['videosCount'],
|
|
180
188
|
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
181
189
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
182
190
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
@@ -47,10 +47,10 @@ export interface IncidentVersionResource {
|
|
|
47
47
|
user: UserLiteResource | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {object}
|
|
51
51
|
* @memberof IncidentVersionResource
|
|
52
52
|
*/
|
|
53
|
-
fieldData:
|
|
53
|
+
fieldData: object;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {Date}
|
|
@@ -30,7 +30,7 @@ export interface IncidentVideoResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof IncidentVideoResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: IncidentVideoResourceStatusEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -69,6 +69,18 @@ export interface IncidentVideoResource {
|
|
|
69
69
|
updatedAt?: Date | null;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const IncidentVideoResourceStatusEnum = {
|
|
77
|
+
Processing: 'processing',
|
|
78
|
+
Ready: 'ready',
|
|
79
|
+
Failed: 'failed'
|
|
80
|
+
} as const;
|
|
81
|
+
export type IncidentVideoResourceStatusEnum = typeof IncidentVideoResourceStatusEnum[keyof typeof IncidentVideoResourceStatusEnum];
|
|
82
|
+
|
|
83
|
+
|
|
72
84
|
/**
|
|
73
85
|
* Check if a given object implements the IncidentVideoResource interface.
|
|
74
86
|
*/
|
|
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface IncidentsUpdateRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {
|
|
23
|
+
* Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
|
|
24
|
+
* @type {object}
|
|
25
25
|
* @memberof IncidentsUpdateRequest
|
|
26
26
|
*/
|
|
27
|
-
fields:
|
|
27
|
+
fields: object;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -41,10 +41,10 @@ export interface LicenceListResource {
|
|
|
41
41
|
user: UserRelationResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof LicenceListResource
|
|
46
46
|
*/
|
|
47
|
-
state:
|
|
47
|
+
state: LicenceListResourceStateEnum;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -83,6 +83,18 @@ export interface LicenceListResource {
|
|
|
83
83
|
createdAt?: Date | null;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const LicenceListResourceStateEnum = {
|
|
91
|
+
Qld: 'QLD',
|
|
92
|
+
Nsw: 'NSW',
|
|
93
|
+
Vic: 'VIC'
|
|
94
|
+
} as const;
|
|
95
|
+
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
96
|
+
|
|
97
|
+
|
|
86
98
|
/**
|
|
87
99
|
* Check if a given object implements the LicenceListResource interface.
|
|
88
100
|
*/
|
|
@@ -33,12 +33,24 @@ export interface LicenceLiteResource {
|
|
|
33
33
|
licenceNumber: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
37
37
|
* @memberof LicenceLiteResource
|
|
38
38
|
*/
|
|
39
|
-
state:
|
|
39
|
+
state: LicenceLiteResourceStateEnum;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const LicenceLiteResourceStateEnum = {
|
|
47
|
+
Qld: 'QLD',
|
|
48
|
+
Nsw: 'NSW',
|
|
49
|
+
Vic: 'VIC'
|
|
50
|
+
} as const;
|
|
51
|
+
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
52
|
+
|
|
53
|
+
|
|
42
54
|
/**
|
|
43
55
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
44
56
|
*/
|
|
@@ -41,10 +41,10 @@ export interface LicenceResource {
|
|
|
41
41
|
user: UserRelationResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof LicenceResource
|
|
46
46
|
*/
|
|
47
|
-
state:
|
|
47
|
+
state: LicenceResourceStateEnum;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -113,6 +113,18 @@ export interface LicenceResource {
|
|
|
113
113
|
updatedAt?: Date | null;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export const LicenceResourceStateEnum = {
|
|
121
|
+
Qld: 'QLD',
|
|
122
|
+
Nsw: 'NSW',
|
|
123
|
+
Vic: 'VIC'
|
|
124
|
+
} as const;
|
|
125
|
+
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
126
|
+
|
|
127
|
+
|
|
116
128
|
/**
|
|
117
129
|
* Check if a given object implements the LicenceResource interface.
|
|
118
130
|
*/
|
|
@@ -65,11 +65,11 @@ export interface LicencesStoreRequest {
|
|
|
65
65
|
*/
|
|
66
66
|
lastName: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {
|
|
68
|
+
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
69
|
+
* @type {string}
|
|
70
70
|
* @memberof LicencesStoreRequest
|
|
71
71
|
*/
|
|
72
|
-
expiryDate:
|
|
72
|
+
expiryDate: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
@@ -103,12 +103,7 @@ export interface LicencesStoreRequest {
|
|
|
103
103
|
export const LicencesStoreRequestStateEnum = {
|
|
104
104
|
Qld: 'QLD',
|
|
105
105
|
Nsw: 'NSW',
|
|
106
|
-
|
|
107
|
-
Vic: 'VIC',
|
|
108
|
-
Tas: 'TAS',
|
|
109
|
-
Sa: 'SA',
|
|
110
|
-
Wa: 'WA',
|
|
111
|
-
Nt: 'NT'
|
|
106
|
+
Vic: 'VIC'
|
|
112
107
|
} as const;
|
|
113
108
|
export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
|
|
114
109
|
|
|
@@ -142,7 +137,7 @@ export function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
142
137
|
'licenceNumber': json['licence_number'],
|
|
143
138
|
'firstName': json['first_name'],
|
|
144
139
|
'lastName': json['last_name'],
|
|
145
|
-
'expiryDate':
|
|
140
|
+
'expiryDate': json['expiry_date'],
|
|
146
141
|
'frontAsset': AuthRegisterGuardRequestProfileSignatureFromJSON(json['front_asset']),
|
|
147
142
|
'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
|
|
148
143
|
'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
|
|
@@ -166,7 +161,7 @@ export function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | n
|
|
|
166
161
|
'licence_number': value['licenceNumber'],
|
|
167
162
|
'first_name': value['firstName'],
|
|
168
163
|
'last_name': value['lastName'],
|
|
169
|
-
'expiry_date':
|
|
164
|
+
'expiry_date': value['expiryDate'],
|
|
170
165
|
'front_asset': AuthRegisterGuardRequestProfileSignatureToJSON(value['frontAsset']),
|
|
171
166
|
'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
|
|
172
167
|
'rsa_asset': LicencesStoreRequestBackAssetToJSON(value['rsaAsset']),
|
|
@@ -52,11 +52,11 @@ export interface LicencesUpdateRequest {
|
|
|
52
52
|
*/
|
|
53
53
|
lastName?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {
|
|
55
|
+
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
56
|
+
* @type {string}
|
|
57
57
|
* @memberof LicencesUpdateRequest
|
|
58
58
|
*/
|
|
59
|
-
expiryDate?:
|
|
59
|
+
expiryDate?: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {LicencesStoreRequestBackAsset}
|
|
@@ -90,12 +90,7 @@ export interface LicencesUpdateRequest {
|
|
|
90
90
|
export const LicencesUpdateRequestStateEnum = {
|
|
91
91
|
Qld: 'QLD',
|
|
92
92
|
Nsw: 'NSW',
|
|
93
|
-
|
|
94
|
-
Vic: 'VIC',
|
|
95
|
-
Tas: 'TAS',
|
|
96
|
-
Sa: 'SA',
|
|
97
|
-
Wa: 'WA',
|
|
98
|
-
Nt: 'NT'
|
|
93
|
+
Vic: 'VIC'
|
|
99
94
|
} as const;
|
|
100
95
|
export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
|
|
101
96
|
|
|
@@ -121,7 +116,7 @@ export function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
121
116
|
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
122
117
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
123
118
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
124
|
-
'expiryDate': json['expiry_date'] == null ? undefined :
|
|
119
|
+
'expiryDate': json['expiry_date'] == null ? undefined : json['expiry_date'],
|
|
125
120
|
'frontAsset': json['front_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['front_asset']),
|
|
126
121
|
'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
|
|
127
122
|
'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
|
|
@@ -144,7 +139,7 @@ export function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest |
|
|
|
144
139
|
'licence_number': value['licenceNumber'],
|
|
145
140
|
'first_name': value['firstName'],
|
|
146
141
|
'last_name': value['lastName'],
|
|
147
|
-
'expiry_date': value['expiryDate']
|
|
142
|
+
'expiry_date': value['expiryDate'],
|
|
148
143
|
'front_asset': LicencesStoreRequestBackAssetToJSON(value['frontAsset']),
|
|
149
144
|
'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
|
|
150
145
|
'rsa_asset': LicencesStoreRequestBackAssetToJSON(value['rsaAsset']),
|
|
@@ -44,7 +44,7 @@ export interface LicencesVerifyRequest {
|
|
|
44
44
|
*/
|
|
45
45
|
lastName: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* ISO 8601 local-with-offset, anchored to 00:00 in the licence state's timezone (e.g. 2026-05-13T00:00:00+11:00). The offset is required so verification against state systems uses the correct wall-clock day.
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof LicencesVerifyRequest
|
|
50
50
|
*/
|
|
@@ -58,12 +58,7 @@ export interface LicencesVerifyRequest {
|
|
|
58
58
|
export const LicencesVerifyRequestStateEnum = {
|
|
59
59
|
Qld: 'QLD',
|
|
60
60
|
Nsw: 'NSW',
|
|
61
|
-
|
|
62
|
-
Vic: 'VIC',
|
|
63
|
-
Tas: 'TAS',
|
|
64
|
-
Sa: 'SA',
|
|
65
|
-
Wa: 'WA',
|
|
66
|
-
Nt: 'NT'
|
|
61
|
+
Vic: 'VIC'
|
|
67
62
|
} as const;
|
|
68
63
|
export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
|
|
69
64
|
|
|
@@ -36,7 +36,7 @@ export interface MobileDeviceResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof MobileDeviceResource
|
|
38
38
|
*/
|
|
39
|
-
platform:
|
|
39
|
+
platform: MobileDeviceResourcePlatformEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -87,6 +87,17 @@ export interface MobileDeviceResource {
|
|
|
87
87
|
updatedAt?: Date | null;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const MobileDeviceResourcePlatformEnum = {
|
|
95
|
+
Ios: 'ios',
|
|
96
|
+
Android: 'android'
|
|
97
|
+
} as const;
|
|
98
|
+
export type MobileDeviceResourcePlatformEnum = typeof MobileDeviceResourcePlatformEnum[keyof typeof MobileDeviceResourcePlatformEnum];
|
|
99
|
+
|
|
100
|
+
|
|
90
101
|
/**
|
|
91
102
|
* Check if a given object implements the MobileDeviceResource interface.
|
|
92
103
|
*/
|
|
@@ -38,7 +38,7 @@ export interface NotificationPreferenceResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof NotificationPreferenceResource
|
|
40
40
|
*/
|
|
41
|
-
notificationType:
|
|
41
|
+
notificationType: NotificationPreferenceResourceNotificationTypeEnum;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {VenueLiteResource}
|
|
@@ -65,6 +65,20 @@ export interface NotificationPreferenceResource {
|
|
|
65
65
|
updatedAt?: Date | null;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const NotificationPreferenceResourceNotificationTypeEnum = {
|
|
73
|
+
IncidentAdded: 'incident_added',
|
|
74
|
+
NonSignOff: 'non_sign_off',
|
|
75
|
+
NonSignOn: 'non_sign_on',
|
|
76
|
+
SignOnRejected: 'sign_on_rejected',
|
|
77
|
+
LicenceUpdated: 'licence_updated'
|
|
78
|
+
} as const;
|
|
79
|
+
export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
|
|
80
|
+
|
|
81
|
+
|
|
68
82
|
/**
|
|
69
83
|
* Check if a given object implements the NotificationPreferenceResource interface.
|
|
70
84
|
*/
|
|
@@ -30,7 +30,7 @@ export interface PdfExportQueuedResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PdfExportQueuedResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: PdfExportQueuedResourceStatusEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -39,6 +39,19 @@ export interface PdfExportQueuedResource {
|
|
|
39
39
|
message: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const PdfExportQueuedResourceStatusEnum = {
|
|
47
|
+
Pending: 'pending',
|
|
48
|
+
Processing: 'processing',
|
|
49
|
+
Completed: 'completed',
|
|
50
|
+
Failed: 'failed'
|
|
51
|
+
} as const;
|
|
52
|
+
export type PdfExportQueuedResourceStatusEnum = typeof PdfExportQueuedResourceStatusEnum[keyof typeof PdfExportQueuedResourceStatusEnum];
|
|
53
|
+
|
|
54
|
+
|
|
42
55
|
/**
|
|
43
56
|
* Check if a given object implements the PdfExportQueuedResource interface.
|
|
44
57
|
*/
|
|
@@ -30,7 +30,7 @@ export interface PdfExportResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PdfExportResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: PdfExportResourceStatusEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -45,6 +45,19 @@ export interface PdfExportResource {
|
|
|
45
45
|
downloadUrl: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const PdfExportResourceStatusEnum = {
|
|
53
|
+
Pending: 'pending',
|
|
54
|
+
Processing: 'processing',
|
|
55
|
+
Completed: 'completed',
|
|
56
|
+
Failed: 'failed'
|
|
57
|
+
} as const;
|
|
58
|
+
export type PdfExportResourceStatusEnum = typeof PdfExportResourceStatusEnum[keyof typeof PdfExportResourceStatusEnum];
|
|
59
|
+
|
|
60
|
+
|
|
48
61
|
/**
|
|
49
62
|
* Check if a given object implements the PdfExportResource interface.
|
|
50
63
|
*/
|
|
@@ -63,19 +63,19 @@ export interface RegisterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {string}
|
|
70
70
|
* @memberof RegisterListResource
|
|
71
71
|
*/
|
|
72
|
-
shiftLength:
|
|
72
|
+
shiftLength: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
76
76
|
* @memberof RegisterListResource
|
|
77
77
|
*/
|
|
78
|
-
signOffStatus:
|
|
78
|
+
signOffStatus: RegisterListResourceSignOffStatusEnum;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {string}
|
|
@@ -165,7 +165,7 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLat
|
|
168
|
+
signOffLat?: number | null;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {number}
|
|
@@ -180,6 +180,18 @@ export interface RegisterListResource {
|
|
|
180
180
|
hasIncidents: boolean;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export const RegisterListResourceSignOffStatusEnum = {
|
|
188
|
+
NUMBER_0: 0,
|
|
189
|
+
NUMBER_1: 1,
|
|
190
|
+
NUMBER_2: 2
|
|
191
|
+
} as const;
|
|
192
|
+
export type RegisterListResourceSignOffStatusEnum = typeof RegisterListResourceSignOffStatusEnum[keyof typeof RegisterListResourceSignOffStatusEnum];
|
|
193
|
+
|
|
194
|
+
|
|
183
195
|
/**
|
|
184
196
|
* Check if a given object implements the RegisterListResource interface.
|
|
185
197
|
*/
|
|
@@ -187,6 +199,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
187
199
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
188
200
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
189
201
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
202
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
190
203
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
191
204
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
192
205
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
|
|
@@ -202,7 +215,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
202
215
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
203
216
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
204
217
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
205
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
206
218
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
207
219
|
return true;
|
|
208
220
|
}
|
|
@@ -221,7 +233,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
221
233
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
222
234
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
223
235
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
224
|
-
'finishDateTime':
|
|
236
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
225
237
|
'shiftLength': json['shiftLength'],
|
|
226
238
|
'signOffStatus': json['signOffStatus'],
|
|
227
239
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -238,7 +250,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
238
250
|
'firstAid': json['firstAid'],
|
|
239
251
|
'signOnLat': json['signOnLat'],
|
|
240
252
|
'signOnLong': json['signOnLong'],
|
|
241
|
-
'signOffLat': json['signOffLat'],
|
|
253
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
242
254
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
243
255
|
'hasIncidents': json['hasIncidents'],
|
|
244
256
|
};
|
|
@@ -259,7 +271,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
259
271
|
'user': UserLiteResourceToJSON(value['user']),
|
|
260
272
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
261
273
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
262
|
-
'finishDateTime':
|
|
274
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
263
275
|
'shiftLength': value['shiftLength'],
|
|
264
276
|
'signOffStatus': value['signOffStatus'],
|
|
265
277
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -69,7 +69,7 @@ export interface RegisterResource {
|
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof RegisterResource
|
|
71
71
|
*/
|
|
72
|
-
signOffStatus:
|
|
72
|
+
signOffStatus: RegisterResourceSignOffStatusEnum;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {object}
|
|
@@ -129,7 +129,7 @@ export interface RegisterResource {
|
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong: number;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -180,6 +180,18 @@ export interface RegisterResource {
|
|
|
180
180
|
updatedAt?: Date | null;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @export
|
|
186
|
+
*/
|
|
187
|
+
export const RegisterResourceSignOffStatusEnum = {
|
|
188
|
+
NUMBER_0: 0,
|
|
189
|
+
NUMBER_1: 1,
|
|
190
|
+
NUMBER_2: 2
|
|
191
|
+
} as const;
|
|
192
|
+
export type RegisterResourceSignOffStatusEnum = typeof RegisterResourceSignOffStatusEnum[keyof typeof RegisterResourceSignOffStatusEnum];
|
|
193
|
+
|
|
194
|
+
|
|
183
195
|
/**
|
|
184
196
|
* Check if a given object implements the RegisterResource interface.
|
|
185
197
|
*/
|
|
@@ -198,6 +210,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
198
210
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
199
211
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
200
212
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
213
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
201
214
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
202
215
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
203
216
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -231,7 +244,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
231
244
|
'signOnLat': json['signOnLat'],
|
|
232
245
|
'signOnLong': json['signOnLong'],
|
|
233
246
|
'signOffLat': json['signOffLat'],
|
|
234
|
-
'signOffLong': json['signOffLong']
|
|
247
|
+
'signOffLong': json['signOffLong'],
|
|
235
248
|
'licenceNumber': json['licenceNumber'],
|
|
236
249
|
'licenceExpiry': json['licenceExpiry'],
|
|
237
250
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -26,11 +26,11 @@ export interface RegistersSignOffRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
registerId: number;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {
|
|
29
|
+
* ISO 8601 local-with-offset in the venue timezone (e.g. 2026-05-13T18:30:00+11:00). A literal Z / UTC suffix is not accepted — the offset is required to anchor the value to the venue's wall-clock time.
|
|
30
|
+
* @type {string}
|
|
31
31
|
* @memberof RegistersSignOffRequest
|
|
32
32
|
*/
|
|
33
|
-
finishDateTime:
|
|
33
|
+
finishDateTime: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -74,7 +74,7 @@ export function RegistersSignOffRequestFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
74
74
|
return {
|
|
75
75
|
|
|
76
76
|
'registerId': json['register_id'],
|
|
77
|
-
'finishDateTime':
|
|
77
|
+
'finishDateTime': json['finish_date_time'],
|
|
78
78
|
'latitude': json['latitude'],
|
|
79
79
|
'longitude': json['longitude'],
|
|
80
80
|
'signatureAssetId': json['signature_asset_id'],
|
|
@@ -93,7 +93,7 @@ export function RegistersSignOffRequestToJSONTyped(value?: RegistersSignOffReque
|
|
|
93
93
|
return {
|
|
94
94
|
|
|
95
95
|
'register_id': value['registerId'],
|
|
96
|
-
'finish_date_time':
|
|
96
|
+
'finish_date_time': value['finishDateTime'],
|
|
97
97
|
'latitude': value['latitude'],
|
|
98
98
|
'longitude': value['longitude'],
|
|
99
99
|
'signature_asset_id': value['signatureAssetId'],
|
|
@@ -26,11 +26,11 @@ export interface RegistersSignOnRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
venueId: number;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {
|
|
29
|
+
* ISO 8601 local-with-offset in the venue timezone (e.g. 2026-05-13T10:30:00+11:00). A literal Z / UTC suffix is not accepted — the offset is required to anchor the value to the venue's wall-clock time.
|
|
30
|
+
* @type {string}
|
|
31
31
|
* @memberof RegistersSignOnRequest
|
|
32
32
|
*/
|
|
33
|
-
startDateTime:
|
|
33
|
+
startDateTime: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -92,7 +92,7 @@ export function RegistersSignOnRequestFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
92
92
|
return {
|
|
93
93
|
|
|
94
94
|
'venueId': json['venue_id'],
|
|
95
|
-
'startDateTime':
|
|
95
|
+
'startDateTime': json['start_date_time'],
|
|
96
96
|
'latitude': json['latitude'],
|
|
97
97
|
'longitude': json['longitude'],
|
|
98
98
|
'signatureAssetId': json['signature_asset_id'],
|
|
@@ -114,7 +114,7 @@ export function RegistersSignOnRequestToJSONTyped(value?: RegistersSignOnRequest
|
|
|
114
114
|
return {
|
|
115
115
|
|
|
116
116
|
'venue_id': value['venueId'],
|
|
117
|
-
'start_date_time':
|
|
117
|
+
'start_date_time': value['startDateTime'],
|
|
118
118
|
'latitude': value['latitude'],
|
|
119
119
|
'longitude': value['longitude'],
|
|
120
120
|
'signature_asset_id': value['signatureAssetId'],
|