@digital8/security-registers-backend-ts-sdk 0.0.379 → 0.0.380
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 -7
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +5 -35
- package/dist/apis/GeneralApi.js +2 -165
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/AuthProfileUpdateRequest.d.ts +0 -6
- package/dist/models/AuthProfileUpdateRequest.js +0 -2
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +8 -3
- package/dist/models/AuthRegisterGuardRequestLicence.js +8 -3
- package/dist/models/CurrentRegisterResource.d.ts +5 -22
- package/dist/models/CurrentRegisterResource.js +7 -14
- package/dist/models/IncidentFieldAuditResource.d.ts +2 -17
- package/dist/models/IncidentFieldAuditResource.js +0 -7
- package/dist/models/IncidentFieldSchemaResource.d.ts +6 -13
- package/dist/models/IncidentFieldSchemaResource.js +0 -9
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +5 -0
- package/dist/models/IncidentFieldSchemasShowRequest.js +6 -1
- package/dist/models/IncidentListResource.d.ts +0 -6
- package/dist/models/IncidentListResource.js +0 -2
- package/dist/models/IncidentResource.d.ts +1 -1
- package/dist/models/IncidentVersionResource.d.ts +2 -2
- package/dist/models/IncidentVideoResource.d.ts +1 -10
- package/dist/models/IncidentVideoResource.js +0 -9
- package/dist/models/IncidentsStoreRequest.d.ts +1 -1
- package/dist/models/IncidentsUpdateRequest.d.ts +3 -3
- package/dist/models/LicenceListResource.d.ts +2 -11
- package/dist/models/LicenceListResource.js +0 -9
- package/dist/models/LicenceLiteResource.d.ts +2 -11
- package/dist/models/LicenceLiteResource.js +0 -9
- package/dist/models/LicenceResource.d.ts +2 -11
- package/dist/models/LicenceResource.js +0 -9
- package/dist/models/LicencesStoreRequest.d.ts +8 -3
- package/dist/models/LicencesStoreRequest.js +8 -3
- package/dist/models/LicencesUpdateRequest.d.ts +8 -3
- package/dist/models/LicencesUpdateRequest.js +8 -3
- package/dist/models/LicencesVerifyRequest.d.ts +6 -1
- package/dist/models/LicencesVerifyRequest.js +6 -1
- package/dist/models/MobileDeviceResource.d.ts +1 -9
- package/dist/models/MobileDeviceResource.js +0 -8
- package/dist/models/NearbyVenueResource.d.ts +62 -0
- package/dist/models/NearbyVenueResource.js +69 -0
- package/dist/models/NearbyVenueResourceArrayResponse.d.ts +33 -0
- package/dist/models/NearbyVenueResourceArrayResponse.js +50 -0
- package/dist/models/NotificationPreferenceResource.d.ts +1 -12
- package/dist/models/NotificationPreferenceResource.js +0 -11
- package/dist/models/PdfExportQueuedResource.d.ts +1 -11
- package/dist/models/PdfExportQueuedResource.js +0 -10
- package/dist/models/PdfExportResource.d.ts +1 -11
- package/dist/models/PdfExportResource.js +0 -10
- package/dist/models/RegisterListResource.d.ts +5 -14
- package/dist/models/RegisterListResource.js +4 -16
- package/dist/models/RegisterResource.d.ts +2 -11
- package/dist/models/RegisterResource.js +1 -12
- 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 +3 -18
- package/dist/models/RosterListResource.js +0 -13
- package/dist/models/RosterResource.d.ts +1 -10
- package/dist/models/RosterResource.js +0 -9
- package/dist/models/RosterWithRegistersResource.d.ts +2 -11
- package/dist/models/RosterWithRegistersResource.js +4 -12
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/UserResource.d.ts +2 -9
- package/dist/models/UserResource.js +2 -7
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +8 -3
- package/dist/models/VenueLiteResource.d.ts +0 -6
- package/dist/models/VenueLiteResource.js +0 -4
- package/dist/models/index.d.ts +2 -7
- package/dist/models/index.js +2 -7
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +9 -145
- package/src/models/AssetResource.ts +2 -3
- package/src/models/AuthProfileUpdateRequest.ts +0 -8
- package/src/models/AuthRegisterGuardRequestLicence.ts +11 -6
- package/src/models/CurrentRegisterResource.ts +18 -35
- package/src/models/IncidentFieldAuditResource.ts +2 -27
- package/src/models/IncidentFieldSchemaResource.ts +4 -16
- package/src/models/IncidentFieldSchemasShowRequest.ts +6 -1
- package/src/models/IncidentListResource.ts +0 -8
- package/src/models/IncidentResource.ts +1 -1
- package/src/models/IncidentVersionResource.ts +2 -2
- package/src/models/IncidentVideoResource.ts +1 -13
- package/src/models/IncidentsStoreRequest.ts +1 -1
- package/src/models/IncidentsUpdateRequest.ts +3 -3
- package/src/models/LicenceListResource.ts +2 -14
- package/src/models/LicenceLiteResource.ts +2 -14
- package/src/models/LicenceResource.ts +2 -14
- package/src/models/LicencesStoreRequest.ts +11 -6
- package/src/models/LicencesUpdateRequest.ts +11 -6
- package/src/models/LicencesVerifyRequest.ts +7 -2
- package/src/models/MobileDeviceResource.ts +1 -12
- package/src/models/NearbyVenueResource.ts +110 -0
- package/src/models/NearbyVenueResourceArrayResponse.ts +73 -0
- package/src/models/NotificationPreferenceResource.ts +1 -15
- package/src/models/PdfExportQueuedResource.ts +1 -14
- package/src/models/PdfExportResource.ts +1 -14
- package/src/models/RegisterListResource.ts +8 -22
- package/src/models/RegisterResource.ts +3 -16
- package/src/models/RegistersSignOffRequest.ts +5 -5
- package/src/models/RegistersSignOnRequest.ts +5 -5
- package/src/models/RosterListResource.ts +3 -24
- package/src/models/RosterResource.ts +1 -13
- package/src/models/RosterWithRegistersResource.ts +5 -16
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/UserResource.ts +4 -20
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +11 -6
- package/src/models/VenueLiteResource.ts +0 -9
- package/src/models/index.ts +2 -7
- package/dist/models/IncidentFieldItemLiteResource.d.ts +0 -38
- package/dist/models/IncidentFieldItemLiteResource.js +0 -54
- package/dist/models/IncidentFieldItemLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentFieldItemLiteResourceArrayResponse.js +0 -50
- package/dist/models/LicenceVerificationFallbackSettingResource.d.ts +0 -57
- package/dist/models/LicenceVerificationFallbackSettingResource.js +0 -67
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +0 -50
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.d.ts +0 -44
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.js +0 -53
- package/dist/models/VenueMobileResource.d.ts +0 -105
- package/dist/models/VenueMobileResource.js +0 -96
- package/dist/models/VenueMobileResourceArrayResponse.d.ts +0 -33
- package/dist/models/VenueMobileResourceArrayResponse.js +0 -50
- package/src/models/IncidentFieldItemLiteResource.ts +0 -74
- package/src/models/IncidentFieldItemLiteResourceArrayResponse.ts +0 -73
- package/src/models/LicenceVerificationFallbackSettingResource.ts +0 -109
- package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +0 -73
- package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +0 -81
- package/src/models/VenueMobileResource.ts +0 -180
- package/src/models/VenueMobileResourceArrayResponse.ts +0 -73
|
@@ -26,7 +26,7 @@ export interface IncidentsStoreRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
venueId: number;
|
|
28
28
|
/**
|
|
29
|
-
* Dynamic fields keyed by section key.
|
|
29
|
+
* Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
|
|
30
30
|
* @type {object}
|
|
31
31
|
* @memberof IncidentsStoreRequest
|
|
32
32
|
*/
|
|
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface IncidentsUpdateRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
25
|
* @memberof IncidentsUpdateRequest
|
|
26
26
|
*/
|
|
27
|
-
fields:
|
|
27
|
+
fields: Array<string>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -41,10 +41,10 @@ export interface LicenceListResource {
|
|
|
41
41
|
user: UserRelationResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {object}
|
|
45
45
|
* @memberof LicenceListResource
|
|
46
46
|
*/
|
|
47
|
-
state:
|
|
47
|
+
state: object;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -83,18 +83,6 @@ export interface LicenceListResource {
|
|
|
83
83
|
createdAt?: Date | null;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
export const LicenceListResourceStateEnum = {
|
|
91
|
-
Qld: 'QLD',
|
|
92
|
-
Nsw: 'NSW',
|
|
93
|
-
Vic: 'VIC'
|
|
94
|
-
} as const;
|
|
95
|
-
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
96
|
-
|
|
97
|
-
|
|
98
86
|
/**
|
|
99
87
|
* Check if a given object implements the LicenceListResource interface.
|
|
100
88
|
*/
|
|
@@ -33,24 +33,12 @@ export interface LicenceLiteResource {
|
|
|
33
33
|
licenceNumber: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {object}
|
|
37
37
|
* @memberof LicenceLiteResource
|
|
38
38
|
*/
|
|
39
|
-
state:
|
|
39
|
+
state: object;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export const LicenceLiteResourceStateEnum = {
|
|
47
|
-
Qld: 'QLD',
|
|
48
|
-
Nsw: 'NSW',
|
|
49
|
-
Vic: 'VIC'
|
|
50
|
-
} as const;
|
|
51
|
-
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
52
|
-
|
|
53
|
-
|
|
54
42
|
/**
|
|
55
43
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
56
44
|
*/
|
|
@@ -41,10 +41,10 @@ export interface LicenceResource {
|
|
|
41
41
|
user: UserRelationResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {object}
|
|
45
45
|
* @memberof LicenceResource
|
|
46
46
|
*/
|
|
47
|
-
state:
|
|
47
|
+
state: object;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -113,18 +113,6 @@ export interface LicenceResource {
|
|
|
113
113
|
updatedAt?: Date | null;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @export
|
|
119
|
-
*/
|
|
120
|
-
export const LicenceResourceStateEnum = {
|
|
121
|
-
Qld: 'QLD',
|
|
122
|
-
Nsw: 'NSW',
|
|
123
|
-
Vic: 'VIC'
|
|
124
|
-
} as const;
|
|
125
|
-
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
126
|
-
|
|
127
|
-
|
|
128
116
|
/**
|
|
129
117
|
* Check if a given object implements the LicenceResource interface.
|
|
130
118
|
*/
|
|
@@ -65,11 +65,11 @@ export interface LicencesStoreRequest {
|
|
|
65
65
|
*/
|
|
66
66
|
lastName: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
70
|
* @memberof LicencesStoreRequest
|
|
71
71
|
*/
|
|
72
|
-
expiryDate:
|
|
72
|
+
expiryDate: Date;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
@@ -103,7 +103,12 @@ export interface LicencesStoreRequest {
|
|
|
103
103
|
export const LicencesStoreRequestStateEnum = {
|
|
104
104
|
Qld: 'QLD',
|
|
105
105
|
Nsw: 'NSW',
|
|
106
|
-
|
|
106
|
+
Act: 'ACT',
|
|
107
|
+
Vic: 'VIC',
|
|
108
|
+
Tas: 'TAS',
|
|
109
|
+
Sa: 'SA',
|
|
110
|
+
Wa: 'WA',
|
|
111
|
+
Nt: 'NT'
|
|
107
112
|
} as const;
|
|
108
113
|
export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
|
|
109
114
|
|
|
@@ -137,7 +142,7 @@ export function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
137
142
|
'licenceNumber': json['licence_number'],
|
|
138
143
|
'firstName': json['first_name'],
|
|
139
144
|
'lastName': json['last_name'],
|
|
140
|
-
'expiryDate': json['expiry_date'],
|
|
145
|
+
'expiryDate': (new Date(json['expiry_date'])),
|
|
141
146
|
'frontAsset': AuthRegisterGuardRequestProfileSignatureFromJSON(json['front_asset']),
|
|
142
147
|
'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
|
|
143
148
|
'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
|
|
@@ -161,7 +166,7 @@ export function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | n
|
|
|
161
166
|
'licence_number': value['licenceNumber'],
|
|
162
167
|
'first_name': value['firstName'],
|
|
163
168
|
'last_name': value['lastName'],
|
|
164
|
-
'expiry_date': value['expiryDate'],
|
|
169
|
+
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
165
170
|
'front_asset': AuthRegisterGuardRequestProfileSignatureToJSON(value['frontAsset']),
|
|
166
171
|
'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
|
|
167
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
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
57
|
* @memberof LicencesUpdateRequest
|
|
58
58
|
*/
|
|
59
|
-
expiryDate?:
|
|
59
|
+
expiryDate?: Date;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {LicencesStoreRequestBackAsset}
|
|
@@ -90,7 +90,12 @@ export interface LicencesUpdateRequest {
|
|
|
90
90
|
export const LicencesUpdateRequestStateEnum = {
|
|
91
91
|
Qld: 'QLD',
|
|
92
92
|
Nsw: 'NSW',
|
|
93
|
-
|
|
93
|
+
Act: 'ACT',
|
|
94
|
+
Vic: 'VIC',
|
|
95
|
+
Tas: 'TAS',
|
|
96
|
+
Sa: 'SA',
|
|
97
|
+
Wa: 'WA',
|
|
98
|
+
Nt: 'NT'
|
|
94
99
|
} as const;
|
|
95
100
|
export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
|
|
96
101
|
|
|
@@ -116,7 +121,7 @@ export function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
116
121
|
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
117
122
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
118
123
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
119
|
-
'expiryDate': json['expiry_date'] == null ? undefined : json['expiry_date'],
|
|
124
|
+
'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
|
|
120
125
|
'frontAsset': json['front_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['front_asset']),
|
|
121
126
|
'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
|
|
122
127
|
'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
|
|
@@ -139,7 +144,7 @@ export function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest |
|
|
|
139
144
|
'licence_number': value['licenceNumber'],
|
|
140
145
|
'first_name': value['firstName'],
|
|
141
146
|
'last_name': value['lastName'],
|
|
142
|
-
'expiry_date': value['expiryDate'],
|
|
147
|
+
'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
|
|
143
148
|
'front_asset': LicencesStoreRequestBackAssetToJSON(value['frontAsset']),
|
|
144
149
|
'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
|
|
145
150
|
'rsa_asset': LicencesStoreRequestBackAssetToJSON(value['rsaAsset']),
|
|
@@ -44,7 +44,7 @@ export interface LicencesVerifyRequest {
|
|
|
44
44
|
*/
|
|
45
45
|
lastName: string;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof LicencesVerifyRequest
|
|
50
50
|
*/
|
|
@@ -58,7 +58,12 @@ export interface LicencesVerifyRequest {
|
|
|
58
58
|
export const LicencesVerifyRequestStateEnum = {
|
|
59
59
|
Qld: 'QLD',
|
|
60
60
|
Nsw: 'NSW',
|
|
61
|
-
|
|
61
|
+
Act: 'ACT',
|
|
62
|
+
Vic: 'VIC',
|
|
63
|
+
Tas: 'TAS',
|
|
64
|
+
Sa: 'SA',
|
|
65
|
+
Wa: 'WA',
|
|
66
|
+
Nt: 'NT'
|
|
62
67
|
} as const;
|
|
63
68
|
export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
|
|
64
69
|
|
|
@@ -36,7 +36,7 @@ export interface MobileDeviceResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof MobileDeviceResource
|
|
38
38
|
*/
|
|
39
|
-
platform:
|
|
39
|
+
platform: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -87,17 +87,6 @@ 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
|
-
|
|
101
90
|
/**
|
|
102
91
|
* Check if a given object implements the MobileDeviceResource interface.
|
|
103
92
|
*/
|
|
@@ -0,0 +1,110 @@
|
|
|
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 NearbyVenueResource
|
|
20
|
+
*/
|
|
21
|
+
export interface NearbyVenueResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof NearbyVenueResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NearbyVenueResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof NearbyVenueResource
|
|
38
|
+
*/
|
|
39
|
+
venueCode: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof NearbyVenueResource
|
|
44
|
+
*/
|
|
45
|
+
timezone: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof NearbyVenueResource
|
|
50
|
+
*/
|
|
51
|
+
rampReadingRequired: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof NearbyVenueResource
|
|
56
|
+
*/
|
|
57
|
+
hasReadRamp?: boolean | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the NearbyVenueResource interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfNearbyVenueResource(value: object): value is NearbyVenueResource {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
66
|
+
if (!('venueCode' in value) || value['venueCode'] === undefined) return false;
|
|
67
|
+
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
68
|
+
if (!('rampReadingRequired' in value) || value['rampReadingRequired'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function NearbyVenueResourceFromJSON(json: any): NearbyVenueResource {
|
|
73
|
+
return NearbyVenueResourceFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function NearbyVenueResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NearbyVenueResource {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'id': json['id'],
|
|
83
|
+
'name': json['name'],
|
|
84
|
+
'venueCode': json['venueCode'],
|
|
85
|
+
'timezone': json['timezone'],
|
|
86
|
+
'rampReadingRequired': json['rampReadingRequired'],
|
|
87
|
+
'hasReadRamp': json['hasReadRamp'] == null ? undefined : json['hasReadRamp'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function NearbyVenueResourceToJSON(json: any): NearbyVenueResource {
|
|
92
|
+
return NearbyVenueResourceToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function NearbyVenueResourceToJSONTyped(value?: NearbyVenueResource | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': value['id'],
|
|
103
|
+
'name': value['name'],
|
|
104
|
+
'venueCode': value['venueCode'],
|
|
105
|
+
'timezone': value['timezone'],
|
|
106
|
+
'rampReadingRequired': value['rampReadingRequired'],
|
|
107
|
+
'hasReadRamp': value['hasReadRamp'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -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 { NearbyVenueResource } from './NearbyVenueResource';
|
|
17
|
+
import {
|
|
18
|
+
NearbyVenueResourceFromJSON,
|
|
19
|
+
NearbyVenueResourceFromJSONTyped,
|
|
20
|
+
NearbyVenueResourceToJSON,
|
|
21
|
+
NearbyVenueResourceToJSONTyped,
|
|
22
|
+
} from './NearbyVenueResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NearbyVenueResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface NearbyVenueResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<NearbyVenueResource>}
|
|
33
|
+
* @memberof NearbyVenueResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<NearbyVenueResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the NearbyVenueResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfNearbyVenueResourceArrayResponse(value: object): value is NearbyVenueResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NearbyVenueResourceArrayResponseFromJSON(json: any): NearbyVenueResourceArrayResponse {
|
|
46
|
+
return NearbyVenueResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NearbyVenueResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NearbyVenueResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NearbyVenueResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NearbyVenueResourceArrayResponseToJSON(json: any): NearbyVenueResourceArrayResponse {
|
|
60
|
+
return NearbyVenueResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NearbyVenueResourceArrayResponseToJSONTyped(value?: NearbyVenueResourceArrayResponse | 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(NearbyVenueResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -38,7 +38,7 @@ export interface NotificationPreferenceResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof NotificationPreferenceResource
|
|
40
40
|
*/
|
|
41
|
-
notificationType:
|
|
41
|
+
notificationType: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {VenueLiteResource}
|
|
@@ -65,20 +65,6 @@ 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
|
-
|
|
82
68
|
/**
|
|
83
69
|
* Check if a given object implements the NotificationPreferenceResource interface.
|
|
84
70
|
*/
|
|
@@ -30,7 +30,7 @@ export interface PdfExportQueuedResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PdfExportQueuedResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -39,19 +39,6 @@ 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
|
-
|
|
55
42
|
/**
|
|
56
43
|
* Check if a given object implements the PdfExportQueuedResource interface.
|
|
57
44
|
*/
|
|
@@ -30,7 +30,7 @@ export interface PdfExportResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PdfExportResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -45,19 +45,6 @@ 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
|
-
|
|
61
48
|
/**
|
|
62
49
|
* Check if a given object implements the PdfExportResource interface.
|
|
63
50
|
*/
|
|
@@ -63,19 +63,19 @@ export interface RegisterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {object}
|
|
70
70
|
* @memberof RegisterListResource
|
|
71
71
|
*/
|
|
72
|
-
shiftLength:
|
|
72
|
+
shiftLength: object;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
76
76
|
* @memberof RegisterListResource
|
|
77
77
|
*/
|
|
78
|
-
signOffStatus:
|
|
78
|
+
signOffStatus: number;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {string}
|
|
@@ -171,7 +171,7 @@ export interface RegisterListResource {
|
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
174
|
+
signOffLong?: number | null;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {boolean}
|
|
@@ -180,18 +180,6 @@ export interface RegisterListResource {
|
|
|
180
180
|
hasIncidents: boolean;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* @export
|
|
186
|
-
*/
|
|
187
|
-
export const RegisterListResourceSignOffStatusEnum = {
|
|
188
|
-
NUMBER_0: 0,
|
|
189
|
-
NUMBER_1: 1,
|
|
190
|
-
NUMBER_2: 2
|
|
191
|
-
} as const;
|
|
192
|
-
export type RegisterListResourceSignOffStatusEnum = typeof RegisterListResourceSignOffStatusEnum[keyof typeof RegisterListResourceSignOffStatusEnum];
|
|
193
|
-
|
|
194
|
-
|
|
195
183
|
/**
|
|
196
184
|
* Check if a given object implements the RegisterListResource interface.
|
|
197
185
|
*/
|
|
@@ -199,7 +187,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
199
187
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
200
188
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
201
189
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
202
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
203
190
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
204
191
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
205
192
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
|
|
@@ -215,7 +202,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
215
202
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
216
203
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
217
204
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
218
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
219
205
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
220
206
|
return true;
|
|
221
207
|
}
|
|
@@ -234,7 +220,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
234
220
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
235
221
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
236
222
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
237
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
223
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
238
224
|
'shiftLength': json['shiftLength'],
|
|
239
225
|
'signOffStatus': json['signOffStatus'],
|
|
240
226
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -252,7 +238,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
252
238
|
'signOnLat': json['signOnLat'],
|
|
253
239
|
'signOnLong': json['signOnLong'],
|
|
254
240
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
255
|
-
'signOffLong': json['signOffLong'],
|
|
241
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
256
242
|
'hasIncidents': json['hasIncidents'],
|
|
257
243
|
};
|
|
258
244
|
}
|
|
@@ -272,7 +258,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
272
258
|
'user': UserLiteResourceToJSON(value['user']),
|
|
273
259
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
274
260
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
275
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
261
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
276
262
|
'shiftLength': value['shiftLength'],
|
|
277
263
|
'signOffStatus': value['signOffStatus'],
|
|
278
264
|
'badgeNumber': value['badgeNumber'],
|