@digital8/security-registers-backend-ts-sdk 0.0.332 → 0.0.334
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 +3 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +20 -45
- package/dist/apis/GeneralApi.js +107 -223
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -5
- package/dist/models/AuthRegisterGuardRequestLicence.js +1 -6
- package/dist/models/IncidentFieldSchemaResource.d.ts +11 -2
- 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 +3 -1
- package/dist/models/IncidentVideoResource.d.ts +10 -1
- package/dist/models/IncidentVideoResource.js +9 -0
- 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/LicenceVerificationFallbackSettingResource.d.ts +57 -0
- package/dist/models/LicenceVerificationFallbackSettingResource.js +67 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +50 -0
- package/dist/models/LicencesStoreRequest.d.ts +0 -5
- package/dist/models/LicencesStoreRequest.js +1 -6
- package/dist/models/LicencesUpdateRequest.d.ts +0 -5
- package/dist/models/LicencesUpdateRequest.js +1 -6
- package/dist/models/LicencesVerifyRequest.d.ts +0 -5
- 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 +11 -2
- package/dist/models/RegisterListResource.js +10 -3
- package/dist/models/RegisterResource.d.ts +12 -3
- package/dist/models/RegisterResource.js +12 -3
- package/dist/models/RosterListResource.d.ts +11 -2
- package/dist/models/RosterListResource.js +13 -3
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- 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/UsersCreateWithRoleRequestLicencesInner.d.ts +0 -5
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +1 -6
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +87 -194
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequestLicence.ts +1 -6
- package/src/models/IncidentFieldSchemaResource.ts +14 -2
- package/src/models/IncidentFieldSchemasShowRequest.ts +1 -6
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentVideoResource.ts +13 -1
- package/src/models/LicenceListResource.ts +14 -2
- package/src/models/LicenceLiteResource.ts +14 -2
- package/src/models/LicenceResource.ts +14 -2
- package/src/models/LicenceVerificationFallbackSettingResource.ts +109 -0
- package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +73 -0
- package/src/models/LicencesStoreRequest.ts +1 -6
- package/src/models/LicencesUpdateRequest.ts +1 -6
- package/src/models/LicencesVerifyRequest.ts +1 -6
- 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 +15 -4
- package/src/models/RegisterResource.ts +18 -6
- package/src/models/RosterListResource.ts +17 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +13 -1
- package/src/models/RosterWithRegistersResource.ts +13 -1
- package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +81 -0
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +1 -6
- package/src/models/index.ts +3 -1
- package/dist/models/IncidentsExportCsvBulkRequest.d.ts +0 -56
- package/dist/models/IncidentsExportCsvBulkRequest.js +0 -63
- package/src/models/IncidentsExportCsvBulkRequest.ts +0 -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
|
+
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
*/
|
|
@@ -75,13 +75,13 @@ 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}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber?: string | null;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
@@ -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
|
*/
|
|
@@ -183,7 +195,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
183
195
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
196
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
185
197
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
186
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
187
198
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
188
199
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
189
200
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -218,7 +229,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
218
229
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
219
230
|
'shiftLength': json['shiftLength'],
|
|
220
231
|
'signOffStatus': json['signOffStatus'],
|
|
221
|
-
'badgeNumber': json['badgeNumber'],
|
|
232
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
222
233
|
'licenceNumber': json['licenceNumber'],
|
|
223
234
|
'licenceFirstName': json['licenceFirstName'],
|
|
224
235
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -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}
|
|
@@ -123,13 +123,13 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong?: number | null;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -174,6 +174,18 @@ export interface RegisterResource {
|
|
|
174
174
|
updatedAt?: Date | null;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
export const RegisterResourceSignOffStatusEnum = {
|
|
182
|
+
NUMBER_0: 0,
|
|
183
|
+
NUMBER_1: 1,
|
|
184
|
+
NUMBER_2: 2
|
|
185
|
+
} as const;
|
|
186
|
+
export type RegisterResourceSignOffStatusEnum = typeof RegisterResourceSignOffStatusEnum[keyof typeof RegisterResourceSignOffStatusEnum];
|
|
187
|
+
|
|
188
|
+
|
|
177
189
|
/**
|
|
178
190
|
* Check if a given object implements the RegisterResource interface.
|
|
179
191
|
*/
|
|
@@ -191,7 +203,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
203
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
192
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
|
-
if (!('
|
|
206
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
195
207
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
208
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
197
209
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -223,8 +235,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
223
235
|
'firstAidImage': json['firstAidImage'],
|
|
224
236
|
'signOnLat': json['signOnLat'],
|
|
225
237
|
'signOnLong': json['signOnLong'],
|
|
226
|
-
'signOffLat': json['signOffLat']
|
|
227
|
-
'signOffLong': json['signOffLong'],
|
|
238
|
+
'signOffLat': json['signOffLat'],
|
|
239
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
228
240
|
'licenceNumber': json['licenceNumber'],
|
|
229
241
|
'licenceExpiry': json['licenceExpiry'],
|
|
230
242
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -81,7 +81,7 @@ export interface RosterListResource {
|
|
|
81
81
|
* @type {number}
|
|
82
82
|
* @memberof RosterListResource
|
|
83
83
|
*/
|
|
84
|
-
signOffStatus:
|
|
84
|
+
signOffStatus: RosterListResourceSignOffStatusEnum;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {number}
|
|
@@ -96,6 +96,18 @@ export interface RosterListResource {
|
|
|
96
96
|
incidentCount: number;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export const RosterListResourceSignOffStatusEnum = {
|
|
104
|
+
NUMBER_0: 0,
|
|
105
|
+
NUMBER_1: 1,
|
|
106
|
+
NUMBER_2: 2
|
|
107
|
+
} as const;
|
|
108
|
+
export type RosterListResourceSignOffStatusEnum = typeof RosterListResourceSignOffStatusEnum[keyof typeof RosterListResourceSignOffStatusEnum];
|
|
109
|
+
|
|
110
|
+
|
|
99
111
|
/**
|
|
100
112
|
* Check if a given object implements the RosterListResource interface.
|
|
101
113
|
*/
|
|
@@ -103,6 +115,7 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
103
115
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
104
116
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
105
117
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
118
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
106
119
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
107
120
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
108
121
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -125,7 +138,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
125
138
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
126
139
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
127
140
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
128
|
-
'finishDateTime':
|
|
141
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
129
142
|
'isCompliant': json['isCompliant'],
|
|
130
143
|
'isComplete': json['isComplete'],
|
|
131
144
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -149,7 +162,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
149
162
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
150
163
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
151
164
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
152
|
-
'finishDateTime':
|
|
165
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
153
166
|
'isCompliant': value['isCompliant'],
|
|
154
167
|
'isComplete': value['isComplete'],
|
|
155
168
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
|
|
|
36
36
|
* @type {Date}
|
|
37
37
|
* @memberof RosterLiteResource
|
|
38
38
|
*/
|
|
39
|
-
finishDateTime
|
|
39
|
+
finishDateTime?: Date | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
|
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
|
|
46
46
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
47
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
48
47
|
return true;
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
60
59
|
|
|
61
60
|
'id': json['id'] == null ? undefined : json['id'],
|
|
62
61
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
63
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
62
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
77
76
|
|
|
78
77
|
'id': value['id'],
|
|
79
78
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
80
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
79
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
81
80
|
};
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -88,7 +88,7 @@ export interface RosterResource {
|
|
|
88
88
|
* @type {number}
|
|
89
89
|
* @memberof RosterResource
|
|
90
90
|
*/
|
|
91
|
-
signOffStatus:
|
|
91
|
+
signOffStatus: RosterResourceSignOffStatusEnum;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {Array<RegisterResource>}
|
|
@@ -97,6 +97,18 @@ export interface RosterResource {
|
|
|
97
97
|
registers: Array<RegisterResource> | null;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export const RosterResourceSignOffStatusEnum = {
|
|
105
|
+
NUMBER_0: 0,
|
|
106
|
+
NUMBER_1: 1,
|
|
107
|
+
NUMBER_2: 2
|
|
108
|
+
} as const;
|
|
109
|
+
export type RosterResourceSignOffStatusEnum = typeof RosterResourceSignOffStatusEnum[keyof typeof RosterResourceSignOffStatusEnum];
|
|
110
|
+
|
|
111
|
+
|
|
100
112
|
/**
|
|
101
113
|
* Check if a given object implements the RosterResource interface.
|
|
102
114
|
*/
|
|
@@ -94,7 +94,7 @@ export interface RosterWithRegistersResource {
|
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof RosterWithRegistersResource
|
|
96
96
|
*/
|
|
97
|
-
signOffStatus:
|
|
97
|
+
signOffStatus: RosterWithRegistersResourceSignOffStatusEnum;
|
|
98
98
|
/**
|
|
99
99
|
*
|
|
100
100
|
* @type {Array<RegisterListResource>}
|
|
@@ -103,6 +103,18 @@ export interface RosterWithRegistersResource {
|
|
|
103
103
|
registers: Array<RegisterListResource> | null;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export const RosterWithRegistersResourceSignOffStatusEnum = {
|
|
111
|
+
NUMBER_0: 0,
|
|
112
|
+
NUMBER_1: 1,
|
|
113
|
+
NUMBER_2: 2
|
|
114
|
+
} as const;
|
|
115
|
+
export type RosterWithRegistersResourceSignOffStatusEnum = typeof RosterWithRegistersResourceSignOffStatusEnum[keyof typeof RosterWithRegistersResourceSignOffStatusEnum];
|
|
116
|
+
|
|
117
|
+
|
|
106
118
|
/**
|
|
107
119
|
* Check if a given object implements the RosterWithRegistersResource interface.
|
|
108
120
|
*/
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SettingsLicenceVerificationFallbackUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SettingsLicenceVerificationFallbackUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SettingsLicenceVerificationFallbackUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
qld?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof SettingsLicenceVerificationFallbackUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
nsw?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof SettingsLicenceVerificationFallbackUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
vic?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SettingsLicenceVerificationFallbackUpdateRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSettingsLicenceVerificationFallbackUpdateRequest(value: object): value is SettingsLicenceVerificationFallbackUpdateRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestFromJSON(json: any): SettingsLicenceVerificationFallbackUpdateRequest {
|
|
50
|
+
return SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SettingsLicenceVerificationFallbackUpdateRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'qld': json['qld'] == null ? undefined : json['qld'],
|
|
60
|
+
'nsw': json['nsw'] == null ? undefined : json['nsw'],
|
|
61
|
+
'vic': json['vic'] == null ? undefined : json['vic'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestToJSON(json: any): SettingsLicenceVerificationFallbackUpdateRequest {
|
|
66
|
+
return SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function SettingsLicenceVerificationFallbackUpdateRequestToJSONTyped(value?: SettingsLicenceVerificationFallbackUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'qld': value['qld'],
|
|
77
|
+
'nsw': value['nsw'],
|
|
78
|
+
'vic': value['vic'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -111,12 +111,7 @@ export interface UsersCreateWithRoleRequestLicencesInner {
|
|
|
111
111
|
export const UsersCreateWithRoleRequestLicencesInnerStateEnum = {
|
|
112
112
|
Qld: 'QLD',
|
|
113
113
|
Nsw: 'NSW',
|
|
114
|
-
|
|
115
|
-
Vic: 'VIC',
|
|
116
|
-
Tas: 'TAS',
|
|
117
|
-
Sa: 'SA',
|
|
118
|
-
Wa: 'WA',
|
|
119
|
-
Nt: 'NT'
|
|
114
|
+
Vic: 'VIC'
|
|
120
115
|
} as const;
|
|
121
116
|
export type UsersCreateWithRoleRequestLicencesInnerStateEnum = typeof UsersCreateWithRoleRequestLicencesInnerStateEnum[keyof typeof UsersCreateWithRoleRequestLicencesInnerStateEnum];
|
|
122
117
|
|
package/src/models/index.ts
CHANGED
|
@@ -44,7 +44,6 @@ export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
|
44
44
|
export * from './IncidentVideoUploadTokenResource';
|
|
45
45
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
46
46
|
export * from './IncidentsApproveRequest';
|
|
47
|
-
export * from './IncidentsExportCsvBulkRequest';
|
|
48
47
|
export * from './IncidentsExportPdfBulkRequest';
|
|
49
48
|
export * from './IncidentsListRequest';
|
|
50
49
|
export * from './IncidentsStoreRequest';
|
|
@@ -59,6 +58,8 @@ export * from './LicenceLiteResource';
|
|
|
59
58
|
export * from './LicenceLiteResourceArrayResponse';
|
|
60
59
|
export * from './LicenceResource';
|
|
61
60
|
export * from './LicenceResourceArrayResponse';
|
|
61
|
+
export * from './LicenceVerificationFallbackSettingResource';
|
|
62
|
+
export * from './LicenceVerificationFallbackSettingResourceArrayResponse';
|
|
62
63
|
export * from './LicencesListAllRequest';
|
|
63
64
|
export * from './LicencesListRequest';
|
|
64
65
|
export * from './LicencesStoreRequest';
|
|
@@ -131,6 +132,7 @@ export * from './SecurityCompanyLiteResourceArrayResponse';
|
|
|
131
132
|
export * from './SecurityCompanyResource';
|
|
132
133
|
export * from './SecurityCompanyResourceArrayResponse';
|
|
133
134
|
export * from './SendForgotPasswordLinkAuthRequest';
|
|
135
|
+
export * from './SettingsLicenceVerificationFallbackUpdateRequest';
|
|
134
136
|
export * from './StoreAssetFileRequest';
|
|
135
137
|
export * from './StoreUserRequest';
|
|
136
138
|
export * from './UpdateUserRequest';
|