@digital8/security-registers-backend-ts-sdk 0.0.315 → 0.0.317
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 +5 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +24 -5
- package/dist/apis/GeneralApi.js +109 -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 -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 +1 -3
- 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/LicenceVerificationFallbackSettingResource.d.ts +51 -0
- package/dist/models/LicenceVerificationFallbackSettingResource.js +63 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +50 -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/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 +10 -1
- package/dist/models/RegisterListResource.js +9 -0
- package/dist/models/RegisterResource.d.ts +13 -16
- package/dist/models/RegisterResource.js +19 -16
- 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 +10 -1
- package/dist/models/RosterResource.js +9 -0
- package/dist/models/RosterWithRegistersResource.d.ts +10 -1
- package/dist/models/RosterWithRegistersResource.js +9 -0
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.d.ts +44 -0
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.js +53 -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 +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +96 -6
- 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 +5 -5
- package/src/models/CurrentRegisterResource.ts +35 -18
- package/src/models/IncidentFieldSchemaResource.ts +19 -2
- package/src/models/IncidentImageResource.ts +2 -3
- 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/LicenceVerificationFallbackSettingResource.ts +100 -0
- package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +73 -0
- 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/PdfExportQueuedResource.ts +14 -1
- package/src/models/PdfExportResource.ts +14 -1
- package/src/models/RegisterListResource.ts +13 -1
- package/src/models/RegisterResource.ts +22 -27
- 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 +13 -1
- package/src/models/RosterWithRegistersResource.ts +13 -1
- package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +81 -0
- 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 +5 -0
|
@@ -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 | 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
|
};
|
|
@@ -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
|
*/
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { UserLiteResource } from './UserLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
UserLiteResourceFromJSON,
|
|
19
|
+
UserLiteResourceFromJSONTyped,
|
|
20
|
+
UserLiteResourceToJSON,
|
|
21
|
+
UserLiteResourceToJSONTyped,
|
|
22
|
+
} from './UserLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceVerificationFallbackSettingResource
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceVerificationFallbackSettingResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
34
|
+
*/
|
|
35
|
+
state: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
40
|
+
*/
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
46
|
+
*/
|
|
47
|
+
updatedAt?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {UserLiteResource}
|
|
51
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
52
|
+
*/
|
|
53
|
+
updatedByUser: UserLiteResource | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the LicenceVerificationFallbackSettingResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfLicenceVerificationFallbackSettingResource(value: object): value is LicenceVerificationFallbackSettingResource {
|
|
60
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
61
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
62
|
+
if (!('updatedByUser' in value) || value['updatedByUser'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function LicenceVerificationFallbackSettingResourceFromJSON(json: any): LicenceVerificationFallbackSettingResource {
|
|
67
|
+
return LicenceVerificationFallbackSettingResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function LicenceVerificationFallbackSettingResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationFallbackSettingResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'state': json['state'],
|
|
77
|
+
'enabled': json['enabled'],
|
|
78
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
79
|
+
'updatedByUser': UserLiteResourceFromJSON(json['updatedByUser']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function LicenceVerificationFallbackSettingResourceToJSON(json: any): LicenceVerificationFallbackSettingResource {
|
|
84
|
+
return LicenceVerificationFallbackSettingResourceToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function LicenceVerificationFallbackSettingResourceToJSONTyped(value?: LicenceVerificationFallbackSettingResource | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'state': value['state'],
|
|
95
|
+
'enabled': value['enabled'],
|
|
96
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
97
|
+
'updatedByUser': UserLiteResourceToJSON(value['updatedByUser']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LicenceVerificationFallbackSettingResource } from './LicenceVerificationFallbackSettingResource';
|
|
17
|
+
import {
|
|
18
|
+
LicenceVerificationFallbackSettingResourceFromJSON,
|
|
19
|
+
LicenceVerificationFallbackSettingResourceFromJSONTyped,
|
|
20
|
+
LicenceVerificationFallbackSettingResourceToJSON,
|
|
21
|
+
LicenceVerificationFallbackSettingResourceToJSONTyped,
|
|
22
|
+
} from './LicenceVerificationFallbackSettingResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceVerificationFallbackSettingResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LicenceVerificationFallbackSettingResource>}
|
|
33
|
+
* @memberof LicenceVerificationFallbackSettingResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LicenceVerificationFallbackSettingResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LicenceVerificationFallbackSettingResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLicenceVerificationFallbackSettingResourceArrayResponse(value: object): value is LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseFromJSON(json: any): LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
46
|
+
return LicenceVerificationFallbackSettingResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceVerificationFallbackSettingResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseToJSON(json: any): LicenceVerificationFallbackSettingResourceArrayResponse {
|
|
60
|
+
return LicenceVerificationFallbackSettingResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LicenceVerificationFallbackSettingResourceArrayResponseToJSONTyped(value?: LicenceVerificationFallbackSettingResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LicenceVerificationFallbackSettingResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|