@digital8/security-registers-backend-ts-sdk 0.0.312 → 0.0.313
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 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +5 -5
- package/dist/apis/GeneralApi.js +2 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/AuthProfileUpdateRequest.d.ts +6 -0
- package/dist/models/AuthProfileUpdateRequest.js +2 -0
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +3 -3
- package/dist/models/AuthRegisterGuardRequestLicence.js +2 -2
- package/dist/models/CurrentRegisterResource.d.ts +22 -5
- package/dist/models/CurrentRegisterResource.js +14 -7
- package/dist/models/IncidentFieldSchemaResource.d.ts +16 -2
- package/dist/models/IncidentFieldSchemaResource.js +14 -0
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentVideoResource.d.ts +10 -1
- package/dist/models/IncidentVideoResource.js +9 -0
- package/dist/models/LicenceListResource.d.ts +16 -2
- package/dist/models/LicenceListResource.js +14 -0
- package/dist/models/LicenceLiteResource.d.ts +16 -2
- package/dist/models/LicenceLiteResource.js +14 -0
- package/dist/models/LicenceResource.d.ts +16 -2
- package/dist/models/LicenceResource.js +14 -0
- package/dist/models/LicencesStoreRequest.d.ts +3 -3
- package/dist/models/LicencesStoreRequest.js +2 -2
- package/dist/models/LicencesUpdateRequest.d.ts +3 -3
- package/dist/models/LicencesUpdateRequest.js +2 -2
- package/dist/models/LicencesVerifyRequest.d.ts +1 -1
- 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/NotificationPreferencesStoreRequest.d.ts +0 -1
- package/dist/models/NotificationPreferencesStoreRequest.js +0 -1
- 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 +11 -2
- package/dist/models/RegisterListResource.js +10 -3
- package/dist/models/RegisterResource.d.ts +13 -4
- package/dist/models/RegisterResource.js +20 -9
- 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 +12 -4
- package/dist/models/RosterWithRegistersResource.d.ts +10 -1
- package/dist/models/RosterWithRegistersResource.js +9 -0
- package/dist/models/UserResource.d.ts +9 -2
- package/dist/models/UserResource.js +7 -2
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +3 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +2 -2
- package/dist/models/VenueMobileResource.d.ts +93 -0
- package/dist/models/VenueMobileResource.js +88 -0
- package/dist/models/VenueMobileResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueMobileResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +9 -6
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/AuthProfileUpdateRequest.ts +8 -0
- package/src/models/AuthRegisterGuardRequestLicence.ts +5 -5
- package/src/models/CurrentRegisterResource.ts +35 -18
- package/src/models/IncidentFieldSchemaResource.ts +19 -2
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentVideoResource.ts +13 -1
- package/src/models/LicenceListResource.ts +19 -2
- package/src/models/LicenceLiteResource.ts +19 -2
- package/src/models/LicenceResource.ts +19 -2
- package/src/models/LicencesStoreRequest.ts +5 -5
- package/src/models/LicencesUpdateRequest.ts +5 -5
- package/src/models/LicencesVerifyRequest.ts +1 -1
- package/src/models/MobileDeviceResource.ts +12 -1
- package/src/models/NotificationPreferenceResource.ts +15 -1
- package/src/models/NotificationPreferencesStoreRequest.ts +0 -1
- package/src/models/PdfExportQueuedResource.ts +14 -1
- package/src/models/PdfExportResource.ts +14 -1
- package/src/models/RegisterListResource.ts +15 -4
- package/src/models/RegisterResource.ts +22 -9
- 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 +16 -5
- package/src/models/RosterWithRegistersResource.ts +13 -1
- package/src/models/UserResource.ts +20 -4
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +5 -5
- package/src/models/VenueMobileResource.ts +162 -0
- package/src/models/VenueMobileResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +2 -0
|
@@ -49,6 +49,12 @@ export interface AuthProfileUpdateRequest {
|
|
|
49
49
|
* @memberof AuthProfileUpdateRequest
|
|
50
50
|
*/
|
|
51
51
|
signatureAssetId?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AuthProfileUpdateRequest
|
|
56
|
+
*/
|
|
57
|
+
profileImageAssetId?: number;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -73,6 +79,7 @@ export function AuthProfileUpdateRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
73
79
|
'email': json['email'] == null ? undefined : json['email'],
|
|
74
80
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
75
81
|
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
82
|
+
'profileImageAssetId': json['profile_image_asset_id'] == null ? undefined : json['profile_image_asset_id'],
|
|
76
83
|
};
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -92,6 +99,7 @@ export function AuthProfileUpdateRequestToJSONTyped(value?: AuthProfileUpdateReq
|
|
|
92
99
|
'email': value['email'],
|
|
93
100
|
'mobile': value['mobile'],
|
|
94
101
|
'signature_asset_id': value['signatureAssetId'],
|
|
102
|
+
'profile_image_asset_id': value['profileImageAssetId'],
|
|
95
103
|
};
|
|
96
104
|
}
|
|
97
105
|
|
|
@@ -73,11 +73,11 @@ export interface AuthRegisterGuardRequestLicence {
|
|
|
73
73
|
*/
|
|
74
74
|
lastName: string;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {
|
|
76
|
+
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
77
|
+
* @type {string}
|
|
78
78
|
* @memberof AuthRegisterGuardRequestLicence
|
|
79
79
|
*/
|
|
80
|
-
expiryDate:
|
|
80
|
+
expiryDate: string;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {FrontAsset}
|
|
@@ -148,7 +148,7 @@ export function AuthRegisterGuardRequestLicenceFromJSONTyped(json: any, ignoreDi
|
|
|
148
148
|
'licenceNumber': json['licence_number'],
|
|
149
149
|
'firstName': json['first_name'],
|
|
150
150
|
'lastName': json['last_name'],
|
|
151
|
-
'expiryDate':
|
|
151
|
+
'expiryDate': json['expiry_date'],
|
|
152
152
|
'frontAsset': FrontAssetFromJSON(json['front_asset']),
|
|
153
153
|
'backAsset': json['back_asset'] == null ? undefined : BackAssetFromJSON(json['back_asset']),
|
|
154
154
|
'rsaAsset': json['rsa_asset'] == null ? undefined : RsaAssetFromJSON(json['rsa_asset']),
|
|
@@ -171,7 +171,7 @@ export function AuthRegisterGuardRequestLicenceToJSONTyped(value?: AuthRegisterG
|
|
|
171
171
|
'licence_number': value['licenceNumber'],
|
|
172
172
|
'first_name': value['firstName'],
|
|
173
173
|
'last_name': value['lastName'],
|
|
174
|
-
'expiry_date':
|
|
174
|
+
'expiry_date': value['expiryDate'],
|
|
175
175
|
'front_asset': FrontAssetToJSON(value['frontAsset']),
|
|
176
176
|
'back_asset': BackAssetToJSON(value['backAsset']),
|
|
177
177
|
'rsa_asset': RsaAssetToJSON(value['rsaAsset']),
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { VenueLiteResource } from './VenueLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
VenueLiteResourceFromJSON,
|
|
19
|
-
VenueLiteResourceFromJSONTyped,
|
|
20
|
-
VenueLiteResourceToJSON,
|
|
21
|
-
VenueLiteResourceToJSONTyped,
|
|
22
|
-
} from './VenueLiteResource';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -29,24 +21,43 @@ import {
|
|
|
29
21
|
export interface CurrentRegisterResource {
|
|
30
22
|
/**
|
|
31
23
|
*
|
|
32
|
-
* @type {
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CurrentRegisterResource
|
|
26
|
+
*/
|
|
27
|
+
id?: number | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CurrentRegisterResource
|
|
32
|
+
*/
|
|
33
|
+
venueId?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof CurrentRegisterResource
|
|
38
|
+
*/
|
|
39
|
+
startDateTime: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
33
43
|
* @memberof CurrentRegisterResource
|
|
34
44
|
*/
|
|
35
|
-
|
|
45
|
+
latitude: number;
|
|
36
46
|
/**
|
|
37
47
|
*
|
|
38
|
-
* @type {
|
|
48
|
+
* @type {number}
|
|
39
49
|
* @memberof CurrentRegisterResource
|
|
40
50
|
*/
|
|
41
|
-
|
|
51
|
+
longitude: number;
|
|
42
52
|
}
|
|
43
53
|
|
|
44
54
|
/**
|
|
45
55
|
* Check if a given object implements the CurrentRegisterResource interface.
|
|
46
56
|
*/
|
|
47
57
|
export function instanceOfCurrentRegisterResource(value: object): value is CurrentRegisterResource {
|
|
48
|
-
if (!('
|
|
49
|
-
if (!('
|
|
58
|
+
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
59
|
+
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
60
|
+
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
50
61
|
return true;
|
|
51
62
|
}
|
|
52
63
|
|
|
@@ -60,8 +71,11 @@ export function CurrentRegisterResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
60
71
|
}
|
|
61
72
|
return {
|
|
62
73
|
|
|
63
|
-
'
|
|
64
|
-
'
|
|
74
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
75
|
+
'venueId': json['venueId'] == null ? undefined : json['venueId'],
|
|
76
|
+
'startDateTime': (new Date(json['startDateTime'])),
|
|
77
|
+
'latitude': json['latitude'],
|
|
78
|
+
'longitude': json['longitude'],
|
|
65
79
|
};
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -76,8 +90,11 @@ export function CurrentRegisterResourceToJSONTyped(value?: CurrentRegisterResour
|
|
|
76
90
|
|
|
77
91
|
return {
|
|
78
92
|
|
|
79
|
-
'
|
|
80
|
-
'
|
|
93
|
+
'id': value['id'],
|
|
94
|
+
'venueId': value['venueId'],
|
|
95
|
+
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
96
|
+
'latitude': value['latitude'],
|
|
97
|
+
'longitude': value['longitude'],
|
|
81
98
|
};
|
|
82
99
|
}
|
|
83
100
|
|
|
@@ -27,10 +27,10 @@ export interface IncidentFieldSchemaResource {
|
|
|
27
27
|
id?: number | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
31
31
|
* @memberof IncidentFieldSchemaResource
|
|
32
32
|
*/
|
|
33
|
-
state:
|
|
33
|
+
state: IncidentFieldSchemaResourceStateEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {{ [key: string]: boolean; }}
|
|
@@ -51,6 +51,23 @@ export interface IncidentFieldSchemaResource {
|
|
|
51
51
|
updatedAt?: Date | null;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const IncidentFieldSchemaResourceStateEnum = {
|
|
59
|
+
Qld: 'QLD',
|
|
60
|
+
Nsw: 'NSW',
|
|
61
|
+
Act: 'ACT',
|
|
62
|
+
Vic: 'VIC',
|
|
63
|
+
Tas: 'TAS',
|
|
64
|
+
Sa: 'SA',
|
|
65
|
+
Wa: 'WA',
|
|
66
|
+
Nt: 'NT'
|
|
67
|
+
} as const;
|
|
68
|
+
export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
|
|
69
|
+
|
|
70
|
+
|
|
54
71
|
/**
|
|
55
72
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
56
73
|
*/
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ 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;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -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
|
*/
|
|
@@ -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,23 @@ 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
|
+
Act: 'ACT',
|
|
94
|
+
Vic: 'VIC',
|
|
95
|
+
Tas: 'TAS',
|
|
96
|
+
Sa: 'SA',
|
|
97
|
+
Wa: 'WA',
|
|
98
|
+
Nt: 'NT'
|
|
99
|
+
} as const;
|
|
100
|
+
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
101
|
+
|
|
102
|
+
|
|
86
103
|
/**
|
|
87
104
|
* Check if a given object implements the LicenceListResource interface.
|
|
88
105
|
*/
|
|
@@ -33,12 +33,29 @@ 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
|
+
Act: 'ACT',
|
|
50
|
+
Vic: 'VIC',
|
|
51
|
+
Tas: 'TAS',
|
|
52
|
+
Sa: 'SA',
|
|
53
|
+
Wa: 'WA',
|
|
54
|
+
Nt: 'NT'
|
|
55
|
+
} as const;
|
|
56
|
+
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
57
|
+
|
|
58
|
+
|
|
42
59
|
/**
|
|
43
60
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
44
61
|
*/
|
|
@@ -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,23 @@ 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
|
+
Act: 'ACT',
|
|
124
|
+
Vic: 'VIC',
|
|
125
|
+
Tas: 'TAS',
|
|
126
|
+
Sa: 'SA',
|
|
127
|
+
Wa: 'WA',
|
|
128
|
+
Nt: 'NT'
|
|
129
|
+
} as const;
|
|
130
|
+
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
131
|
+
|
|
132
|
+
|
|
116
133
|
/**
|
|
117
134
|
* Check if a given object implements the LicenceResource interface.
|
|
118
135
|
*/
|
|
@@ -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}
|
|
@@ -142,7 +142,7 @@ export function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
142
142
|
'licenceNumber': json['licence_number'],
|
|
143
143
|
'firstName': json['first_name'],
|
|
144
144
|
'lastName': json['last_name'],
|
|
145
|
-
'expiryDate':
|
|
145
|
+
'expiryDate': json['expiry_date'],
|
|
146
146
|
'frontAsset': AuthRegisterGuardRequestProfileSignatureFromJSON(json['front_asset']),
|
|
147
147
|
'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
|
|
148
148
|
'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
|
|
@@ -166,7 +166,7 @@ export function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | n
|
|
|
166
166
|
'licence_number': value['licenceNumber'],
|
|
167
167
|
'first_name': value['firstName'],
|
|
168
168
|
'last_name': value['lastName'],
|
|
169
|
-
'expiry_date':
|
|
169
|
+
'expiry_date': value['expiryDate'],
|
|
170
170
|
'front_asset': AuthRegisterGuardRequestProfileSignatureToJSON(value['frontAsset']),
|
|
171
171
|
'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
|
|
172
172
|
'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}
|
|
@@ -121,7 +121,7 @@ export function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
121
121
|
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
122
122
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
123
123
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
124
|
-
'expiryDate': json['expiry_date'] == null ? undefined :
|
|
124
|
+
'expiryDate': json['expiry_date'] == null ? undefined : json['expiry_date'],
|
|
125
125
|
'frontAsset': json['front_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['front_asset']),
|
|
126
126
|
'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
|
|
127
127
|
'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
|
|
@@ -144,7 +144,7 @@ export function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest |
|
|
|
144
144
|
'licence_number': value['licenceNumber'],
|
|
145
145
|
'first_name': value['firstName'],
|
|
146
146
|
'last_name': value['lastName'],
|
|
147
|
-
'expiry_date': value['expiryDate']
|
|
147
|
+
'expiry_date': value['expiryDate'],
|
|
148
148
|
'front_asset': LicencesStoreRequestBackAssetToJSON(value['frontAsset']),
|
|
149
149
|
'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
|
|
150
150
|
'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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -45,7 +45,6 @@ export interface NotificationPreferencesStoreRequest {
|
|
|
45
45
|
*/
|
|
46
46
|
export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
|
|
47
47
|
IncidentAdded: 'incident_added',
|
|
48
|
-
IncidentPendingReminder: 'incident_pending_reminder',
|
|
49
48
|
NonSignOff: 'non_sign_off',
|
|
50
49
|
NonSignOn: 'non_sign_on',
|
|
51
50
|
SignOnRejected: 'sign_on_rejected',
|
|
@@ -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
|
*/
|
|
@@ -75,7 +75,7 @@ export interface RegisterListResource {
|
|
|
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
|
-
signOffLong
|
|
168
|
+
signOffLong?: number | null;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {boolean}
|
|
@@ -174,6 +174,18 @@ export interface RegisterListResource {
|
|
|
174
174
|
hasIncidents: boolean;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
export const RegisterListResourceSignOffStatusEnum = {
|
|
182
|
+
NUMBER_0: 0,
|
|
183
|
+
NUMBER_1: 1,
|
|
184
|
+
NUMBER_2: 2
|
|
185
|
+
} as const;
|
|
186
|
+
export type RegisterListResourceSignOffStatusEnum = typeof RegisterListResourceSignOffStatusEnum[keyof typeof RegisterListResourceSignOffStatusEnum];
|
|
187
|
+
|
|
188
|
+
|
|
177
189
|
/**
|
|
178
190
|
* Check if a given object implements the RegisterListResource interface.
|
|
179
191
|
*/
|
|
@@ -196,7 +208,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
196
208
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
197
209
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
210
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
199
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
200
211
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
201
212
|
return true;
|
|
202
213
|
}
|
|
@@ -232,7 +243,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
232
243
|
'signOnLat': json['signOnLat'],
|
|
233
244
|
'signOnLong': json['signOnLong'],
|
|
234
245
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
235
|
-
'signOffLong': json['signOffLong'],
|
|
246
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
236
247
|
'hasIncidents': json['hasIncidents'],
|
|
237
248
|
};
|
|
238
249
|
}
|