@digital8/security-registers-backend-ts-sdk 0.0.202 → 0.0.203
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 +6 -3
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +43 -16
- package/dist/apis/GeneralApi.js +221 -62
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
- package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
- package/dist/models/NotificationPreferenceResource.d.ts +63 -0
- package/dist/models/NotificationPreferenceResource.js +67 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
- package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
- package/dist/models/NotificationTypeResource.d.ts +38 -0
- package/dist/models/NotificationTypeResource.js +55 -0
- package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +9 -3
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +4 -4
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/index.d.ts +6 -3
- package/dist/models/index.js +6 -3
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +191 -64
- package/src/models/AddressResource.ts +3 -2
- package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
- package/src/models/NotificationPreferenceResource.ts +116 -0
- package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
- package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
- package/src/models/NotificationTypeResource.ts +75 -0
- package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
- package/src/models/RegisterListResource.ts +9 -6
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +6 -3
- package/dist/models/IncidentResource.d.ts +0 -119
- package/dist/models/IncidentResource.js +0 -91
- package/dist/models/IncidentResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsStoreRequest.d.ts +0 -38
- package/dist/models/IncidentsStoreRequest.js +0 -55
- package/src/models/IncidentResource.ts +0 -204
- package/src/models/IncidentResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsStoreRequest.ts +0 -75
|
@@ -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 { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
17
|
+
import {
|
|
18
|
+
NotificationPreferenceResourceFromJSON,
|
|
19
|
+
NotificationPreferenceResourceFromJSONTyped,
|
|
20
|
+
NotificationPreferenceResourceToJSON,
|
|
21
|
+
NotificationPreferenceResourceToJSONTyped,
|
|
22
|
+
} from './NotificationPreferenceResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NotificationPreferenceResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface NotificationPreferenceResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<NotificationPreferenceResource>}
|
|
33
|
+
* @memberof NotificationPreferenceResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<NotificationPreferenceResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfNotificationPreferenceResourceArrayResponse(value: object): value is NotificationPreferenceResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NotificationPreferenceResourceArrayResponseFromJSON(json: any): NotificationPreferenceResourceArrayResponse {
|
|
46
|
+
return NotificationPreferenceResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NotificationPreferenceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NotificationPreferenceResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NotificationPreferenceResourceArrayResponseToJSON(json: any): NotificationPreferenceResourceArrayResponse {
|
|
60
|
+
return NotificationPreferenceResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NotificationPreferenceResourceArrayResponseToJSONTyped(value?: NotificationPreferenceResourceArrayResponse | 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(NotificationPreferenceResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 NotificationPreferencesStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface NotificationPreferencesStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NotificationPreferencesStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
notificationType: NotificationPreferencesStoreRequestNotificationTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof NotificationPreferencesStoreRequest
|
|
32
|
+
*/
|
|
33
|
+
venueId?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof NotificationPreferencesStoreRequest
|
|
38
|
+
*/
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
|
|
47
|
+
IncidentAdded: 'incident_added',
|
|
48
|
+
NonSignOff: 'non_sign_off',
|
|
49
|
+
NonSignOn: 'non_sign_on',
|
|
50
|
+
SignOnRejected: 'sign_on_rejected',
|
|
51
|
+
LicenceUpdated: 'licence_updated'
|
|
52
|
+
} as const;
|
|
53
|
+
export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the NotificationPreferencesStoreRequest interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfNotificationPreferencesStoreRequest(value: object): value is NotificationPreferencesStoreRequest {
|
|
60
|
+
if (!('notificationType' in value) || value['notificationType'] === undefined) return false;
|
|
61
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function NotificationPreferencesStoreRequestFromJSON(json: any): NotificationPreferencesStoreRequest {
|
|
66
|
+
return NotificationPreferencesStoreRequestFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function NotificationPreferencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferencesStoreRequest {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'notificationType': json['notification_type'],
|
|
76
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
77
|
+
'enabled': json['enabled'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function NotificationPreferencesStoreRequestToJSON(json: any): NotificationPreferencesStoreRequest {
|
|
82
|
+
return NotificationPreferencesStoreRequestToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function NotificationPreferencesStoreRequestToJSONTyped(value?: NotificationPreferencesStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'notification_type': value['notificationType'],
|
|
93
|
+
'venue_id': value['venueId'],
|
|
94
|
+
'enabled': value['enabled'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 NotificationTypeResource
|
|
20
|
+
*/
|
|
21
|
+
export interface NotificationTypeResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NotificationTypeResource
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NotificationTypeResource
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the NotificationTypeResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfNotificationTypeResource(value: object): value is NotificationTypeResource {
|
|
40
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
41
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NotificationTypeResourceFromJSON(json: any): NotificationTypeResource {
|
|
46
|
+
return NotificationTypeResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NotificationTypeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'value': json['value'],
|
|
56
|
+
'label': json['label'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function NotificationTypeResourceToJSON(json: any): NotificationTypeResource {
|
|
61
|
+
return NotificationTypeResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function NotificationTypeResourceToJSONTyped(value?: NotificationTypeResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'value': value['value'],
|
|
72
|
+
'label': value['label'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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 { NotificationTypeResource } from './NotificationTypeResource';
|
|
17
|
+
import {
|
|
18
|
+
NotificationTypeResourceFromJSON,
|
|
19
|
+
NotificationTypeResourceFromJSONTyped,
|
|
20
|
+
NotificationTypeResourceToJSON,
|
|
21
|
+
NotificationTypeResourceToJSONTyped,
|
|
22
|
+
} from './NotificationTypeResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface NotificationTypeResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface NotificationTypeResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<NotificationTypeResource>}
|
|
33
|
+
* @memberof NotificationTypeResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<NotificationTypeResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the NotificationTypeResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfNotificationTypeResourceArrayResponse(value: object): value is NotificationTypeResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function NotificationTypeResourceArrayResponseFromJSON(json: any): NotificationTypeResourceArrayResponse {
|
|
46
|
+
return NotificationTypeResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function NotificationTypeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NotificationTypeResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function NotificationTypeResourceArrayResponseToJSON(json: any): NotificationTypeResourceArrayResponse {
|
|
60
|
+
return NotificationTypeResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function NotificationTypeResourceArrayResponseToJSONTyped(value?: NotificationTypeResourceArrayResponse | 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(NotificationTypeResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber: string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
@@ -159,13 +159,13 @@ export interface RegisterListResource {
|
|
|
159
159
|
* @type {number}
|
|
160
160
|
* @memberof RegisterListResource
|
|
161
161
|
*/
|
|
162
|
-
signOffLat
|
|
162
|
+
signOffLat: number;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLong
|
|
168
|
+
signOffLong: number;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {Array<boolean>}
|
|
@@ -184,6 +184,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
184
184
|
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
185
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
186
186
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
187
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
187
188
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
188
189
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
189
190
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -196,6 +197,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
196
197
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
197
198
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
199
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
200
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
201
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
199
202
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
200
203
|
return true;
|
|
201
204
|
}
|
|
@@ -217,7 +220,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
217
220
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
218
221
|
'shiftLength': json['shiftLength'],
|
|
219
222
|
'signOffStatus': json['signOffStatus'],
|
|
220
|
-
'badgeNumber': json['badgeNumber']
|
|
223
|
+
'badgeNumber': json['badgeNumber'],
|
|
221
224
|
'licenceNumber': json['licenceNumber'],
|
|
222
225
|
'licenceFirstName': json['licenceFirstName'],
|
|
223
226
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -230,8 +233,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
230
233
|
'firstAid': json['firstAid'],
|
|
231
234
|
'signOnLat': json['signOnLat'],
|
|
232
235
|
'signOnLong': json['signOnLong'],
|
|
233
|
-
'signOffLat': json['signOffLat']
|
|
234
|
-
'signOffLong': json['signOffLong']
|
|
236
|
+
'signOffLat': json['signOffLat'],
|
|
237
|
+
'signOffLong': json['signOffLong'],
|
|
235
238
|
'incidents': json['incidents'],
|
|
236
239
|
};
|
|
237
240
|
}
|
|
@@ -129,7 +129,7 @@ export interface RegisterResource {
|
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong?: number | null;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber: string;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -191,11 +191,11 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
192
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
193
193
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
194
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
195
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
197
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
198
197
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
198
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
199
199
|
return true;
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -224,12 +224,12 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
224
|
'signOnLat': json['signOnLat'],
|
|
225
225
|
'signOnLong': json['signOnLong'],
|
|
226
226
|
'signOffLat': json['signOffLat'],
|
|
227
|
-
'signOffLong': json['signOffLong'],
|
|
227
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
228
228
|
'licenceNumber': json['licenceNumber'],
|
|
229
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
230
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
231
231
|
'licenceLastName': json['licenceLastName'],
|
|
232
|
-
'badgeNumber': json['badgeNumber']
|
|
232
|
+
'badgeNumber': json['badgeNumber'],
|
|
233
233
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
234
234
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
235
235
|
};
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,7 +97,6 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
97
97
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
98
98
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
99
99
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
100
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
101
100
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
102
101
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
103
102
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -119,7 +118,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
119
118
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
120
119
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
121
120
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
122
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
121
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
123
122
|
'isCompliant': json['isCompliant'],
|
|
124
123
|
'isComplete': json['isComplete'],
|
|
125
124
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -142,7 +141,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
142
141
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
143
142
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
144
143
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
145
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
144
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
146
145
|
'isCompliant': value['isCompliant'],
|
|
147
146
|
'isComplete': value['isComplete'],
|
|
148
147
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -104,6 +104,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
104
104
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
105
105
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
106
106
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
107
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
107
108
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
108
109
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
109
110
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -125,7 +126,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
125
126
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
126
127
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
127
128
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
128
|
-
'finishDateTime':
|
|
129
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
129
130
|
'isCompliant': json['isCompliant'],
|
|
130
131
|
'isComplete': json['isComplete'],
|
|
131
132
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -148,7 +149,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
148
149
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
149
150
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
150
151
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
151
|
-
'finishDateTime':
|
|
152
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
152
153
|
'isCompliant': value['isCompliant'],
|
|
153
154
|
'isComplete': value['isComplete'],
|
|
154
155
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
|
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -13,9 +13,7 @@ export * from './CurrentRegisterResourceArrayResponse';
|
|
|
13
13
|
export * from './GenericResponse';
|
|
14
14
|
export * from './IncidentFieldSchemaResource';
|
|
15
15
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './IncidentResourceArrayResponse';
|
|
18
|
-
export * from './IncidentsStoreRequest';
|
|
16
|
+
export * from './IncidentFieldSchemasShowRequest';
|
|
19
17
|
export * from './IndexMinimalUserRequest';
|
|
20
18
|
export * from './IndexUserRequest';
|
|
21
19
|
export * from './LicenceListResource';
|
|
@@ -30,6 +28,11 @@ export * from './LicencesStoreRequest';
|
|
|
30
28
|
export * from './LicencesUpdateRequest';
|
|
31
29
|
export * from './LicencesVerifyRequest';
|
|
32
30
|
export * from './LoginAuthRequest';
|
|
31
|
+
export * from './NotificationPreferenceResource';
|
|
32
|
+
export * from './NotificationPreferenceResourceArrayResponse';
|
|
33
|
+
export * from './NotificationPreferencesStoreRequest';
|
|
34
|
+
export * from './NotificationTypeResource';
|
|
35
|
+
export * from './NotificationTypeResourceArrayResponse';
|
|
33
36
|
export * from './PaginatedLicenceListResourceResponse';
|
|
34
37
|
export * from './PaginatedLicenceResourceResponse';
|
|
35
38
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { VenueLiteResource } from './VenueLiteResource';
|
|
13
|
-
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
14
|
-
import type { UserLiteResource } from './UserLiteResource';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface IncidentResource
|
|
19
|
-
*/
|
|
20
|
-
export interface IncidentResource {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof IncidentResource
|
|
25
|
-
*/
|
|
26
|
-
id: number;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof IncidentResource
|
|
31
|
-
*/
|
|
32
|
-
venueId?: number | null;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {VenueLiteResource}
|
|
36
|
-
* @memberof IncidentResource
|
|
37
|
-
*/
|
|
38
|
-
venue: VenueLiteResource | null;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {number}
|
|
42
|
-
* @memberof IncidentResource
|
|
43
|
-
*/
|
|
44
|
-
securityCompanyId?: number | null;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {SecurityCompanyLiteResource}
|
|
48
|
-
* @memberof IncidentResource
|
|
49
|
-
*/
|
|
50
|
-
securityCompany: SecurityCompanyLiteResource | null;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof IncidentResource
|
|
55
|
-
*/
|
|
56
|
-
rosterId?: number | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof IncidentResource
|
|
61
|
-
*/
|
|
62
|
-
registerId?: number | null;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {number}
|
|
66
|
-
* @memberof IncidentResource
|
|
67
|
-
*/
|
|
68
|
-
userId?: number | null;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {UserLiteResource}
|
|
72
|
-
* @memberof IncidentResource
|
|
73
|
-
*/
|
|
74
|
-
user: UserLiteResource | null;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {number}
|
|
78
|
-
* @memberof IncidentResource
|
|
79
|
-
*/
|
|
80
|
-
incidentFieldSchemaId?: number | null;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Date}
|
|
84
|
-
* @memberof IncidentResource
|
|
85
|
-
*/
|
|
86
|
-
approvedAt?: Date | null;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {number}
|
|
90
|
-
* @memberof IncidentResource
|
|
91
|
-
*/
|
|
92
|
-
approvedByUserId?: number | null;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {Date}
|
|
96
|
-
* @memberof IncidentResource
|
|
97
|
-
*/
|
|
98
|
-
createdAt?: Date | null;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {Date}
|
|
102
|
-
* @memberof IncidentResource
|
|
103
|
-
*/
|
|
104
|
-
updatedAt?: Date | null;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {Array<object>}
|
|
108
|
-
* @memberof IncidentResource
|
|
109
|
-
*/
|
|
110
|
-
fields: Array<object>;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Check if a given object implements the IncidentResource interface.
|
|
114
|
-
*/
|
|
115
|
-
export declare function instanceOfIncidentResource(value: object): value is IncidentResource;
|
|
116
|
-
export declare function IncidentResourceFromJSON(json: any): IncidentResource;
|
|
117
|
-
export declare function IncidentResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResource;
|
|
118
|
-
export declare function IncidentResourceToJSON(json: any): IncidentResource;
|
|
119
|
-
export declare function IncidentResourceToJSONTyped(value?: IncidentResource | null, ignoreDiscriminator?: boolean): any;
|