@digital8/security-registers-backend-ts-sdk 0.0.329 → 0.0.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +5 -5
- package/dist/apis/GeneralApi.js +2 -2
- package/dist/models/AssetLiteResource.d.ts +12 -0
- package/dist/models/AssetLiteResource.js +6 -0
- package/dist/models/AssetResource.d.ts +12 -0
- package/dist/models/AssetResource.js +6 -0
- 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 +0 -6
- package/dist/models/IncidentFieldAuditResource.js +0 -2
- 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/IncidentVersionResource.d.ts +2 -2
- package/dist/models/IncidentVideoResource.d.ts +1 -10
- package/dist/models/IncidentVideoResource.js +0 -9
- 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/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +6 -15
- package/dist/models/RegisterListResource.js +8 -16
- package/dist/models/RegisterResource.d.ts +14 -11
- package/dist/models/RegisterResource.js +11 -10
- 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 +4 -19
- package/dist/models/RosterListResource.js +3 -17
- package/dist/models/RosterResource.d.ts +2 -11
- package/dist/models/RosterResource.js +4 -12
- package/dist/models/RosterWithRegistersResource.d.ts +1 -10
- package/dist/models/RosterWithRegistersResource.js +0 -9
- 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 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +9 -9
- package/src/models/AssetLiteResource.ts +17 -0
- package/src/models/AssetResource.ts +17 -0
- 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 +0 -8
- package/src/models/IncidentFieldSchemaResource.ts +4 -16
- package/src/models/IncidentFieldSchemasShowRequest.ts +6 -1
- package/src/models/IncidentListResource.ts +0 -8
- package/src/models/IncidentVersionResource.ts +2 -2
- package/src/models/IncidentVideoResource.ts +1 -13
- 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/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +12 -23
- package/src/models/RegisterResource.ts +22 -15
- package/src/models/RegistersSignOffRequest.ts +5 -5
- package/src/models/RegistersSignOnRequest.ts +5 -5
- package/src/models/RosterListResource.ts +6 -28
- package/src/models/RosterResource.ts +5 -16
- package/src/models/RosterWithRegistersResource.ts +1 -13
- 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 -2
- 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/VenueMobileResource.ts +0 -180
- package/src/models/VenueMobileResourceArrayResponse.ts +0 -73
|
@@ -47,10 +47,10 @@ export interface IncidentVersionResource {
|
|
|
47
47
|
user: UserLiteResource | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {Array<boolean>}
|
|
51
51
|
* @memberof IncidentVersionResource
|
|
52
52
|
*/
|
|
53
|
-
fieldData:
|
|
53
|
+
fieldData: Array<boolean>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {Date}
|
|
@@ -30,7 +30,7 @@ export interface IncidentVideoResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof IncidentVideoResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -69,18 +69,6 @@ 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
|
-
|
|
84
72
|
/**
|
|
85
73
|
* Check if a given object implements the IncidentVideoResource interface.
|
|
86
74
|
*/
|
|
@@ -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
|
*/
|
|
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RegisterGroupedByRosterResource
|
|
71
71
|
*/
|
|
72
|
-
finishDateTime
|
|
72
|
+
finishDateTime?: Date | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<RegisterListResource>}
|
|
@@ -86,7 +86,6 @@ export function instanceOfRegisterGroupedByRosterResource(value: object): value
|
|
|
86
86
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
87
87
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
88
88
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
89
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
90
89
|
if (!('registers' in value) || value['registers'] === undefined) return false;
|
|
91
90
|
return true;
|
|
92
91
|
}
|
|
@@ -106,7 +105,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
|
|
|
106
105
|
'timezone': json['timezone'],
|
|
107
106
|
'state': json['state'],
|
|
108
107
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
109
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
108
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
110
109
|
'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
|
|
111
110
|
};
|
|
112
111
|
}
|
|
@@ -127,7 +126,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
|
|
|
127
126
|
'timezone': value['timezone'],
|
|
128
127
|
'state': value['state'],
|
|
129
128
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
130
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
129
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
131
130
|
'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
|
|
132
131
|
};
|
|
133
132
|
}
|