@digital8/security-registers-backend-ts-sdk 0.0.200 → 0.0.201
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 +1 -5
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +5 -43
- package/dist/apis/GeneralApi.js +7 -223
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
- package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
- package/dist/models/RegisterListResource.d.ts +5 -5
- package/dist/models/RegisterListResource.js +6 -7
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +9 -11
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +1 -5
- package/dist/models/index.js +1 -5
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +12 -193
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
- package/src/models/RegisterListResource.ts +10 -11
- package/src/models/RegisterResource.ts +8 -9
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +1 -5
- package/dist/models/NotificationPreferenceResource.d.ts +0 -63
- package/dist/models/NotificationPreferenceResource.js +0 -67
- package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +0 -33
- package/dist/models/NotificationPreferenceResourceArrayResponse.js +0 -50
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +0 -55
- package/dist/models/NotificationPreferencesStoreRequest.js +0 -68
- package/dist/models/NotificationTypeResource.d.ts +0 -38
- package/dist/models/NotificationTypeResource.js +0 -55
- package/dist/models/NotificationTypeResourceArrayResponse.d.ts +0 -33
- package/dist/models/NotificationTypeResourceArrayResponse.js +0 -50
- package/src/models/NotificationPreferenceResource.ts +0 -116
- package/src/models/NotificationPreferenceResourceArrayResponse.ts +0 -73
- package/src/models/NotificationPreferencesStoreRequest.ts +0 -97
- package/src/models/NotificationTypeResource.ts +0 -75
- package/src/models/NotificationTypeResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,83 @@
|
|
|
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 IncidentFieldSchemasShowRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentFieldSchemasShowRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentFieldSchemasShowRequest
|
|
26
|
+
*/
|
|
27
|
+
state: IncidentFieldSchemasShowRequestStateEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const IncidentFieldSchemasShowRequestStateEnum = {
|
|
35
|
+
Qld: 'QLD',
|
|
36
|
+
Nsw: 'NSW',
|
|
37
|
+
Act: 'ACT',
|
|
38
|
+
Vic: 'VIC',
|
|
39
|
+
Tas: 'TAS',
|
|
40
|
+
Sa: 'SA',
|
|
41
|
+
Wa: 'WA',
|
|
42
|
+
Nt: 'NT'
|
|
43
|
+
} as const;
|
|
44
|
+
export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the IncidentFieldSchemasShowRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfIncidentFieldSchemasShowRequest(value: object): value is IncidentFieldSchemasShowRequest {
|
|
51
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function IncidentFieldSchemasShowRequestFromJSON(json: any): IncidentFieldSchemasShowRequest {
|
|
56
|
+
return IncidentFieldSchemasShowRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentFieldSchemasShowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldSchemasShowRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'state': json['state'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function IncidentFieldSchemasShowRequestToJSON(json: any): IncidentFieldSchemasShowRequest {
|
|
70
|
+
return IncidentFieldSchemasShowRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function IncidentFieldSchemasShowRequestToJSONTyped(value?: IncidentFieldSchemasShowRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'state': value['state'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -63,13 +63,13 @@ 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}
|
|
@@ -159,13 +159,13 @@ export interface RegisterListResource {
|
|
|
159
159
|
* @type {number}
|
|
160
160
|
* @memberof RegisterListResource
|
|
161
161
|
*/
|
|
162
|
-
signOffLat
|
|
162
|
+
signOffLat?: number | null;
|
|
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>}
|
|
@@ -181,7 +181,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
181
181
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
182
182
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
183
183
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
184
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
186
185
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
187
186
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -196,7 +195,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
196
195
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
197
196
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
197
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
199
|
-
if (!('
|
|
198
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
200
199
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
201
200
|
return true;
|
|
202
201
|
}
|
|
@@ -215,7 +214,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
215
214
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
216
215
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
217
216
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
218
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
217
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
219
218
|
'shiftLength': json['shiftLength'],
|
|
220
219
|
'signOffStatus': json['signOffStatus'],
|
|
221
220
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -231,8 +230,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
231
230
|
'firstAid': json['firstAid'],
|
|
232
231
|
'signOnLat': json['signOnLat'],
|
|
233
232
|
'signOnLong': json['signOnLong'],
|
|
234
|
-
'signOffLat': json['signOffLat'],
|
|
235
|
-
'signOffLong': json['signOffLong']
|
|
233
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
234
|
+
'signOffLong': json['signOffLong'],
|
|
236
235
|
'incidents': json['incidents'],
|
|
237
236
|
};
|
|
238
237
|
}
|
|
@@ -252,7 +251,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
252
251
|
'user': UserLiteResourceToJSON(value['user']),
|
|
253
252
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
254
253
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
255
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
254
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
256
255
|
'shiftLength': value['shiftLength'],
|
|
257
256
|
'signOffStatus': value['signOffStatus'],
|
|
258
257
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber?: string | null;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -181,7 +181,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
181
181
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
182
182
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
183
183
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
184
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
186
185
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
187
186
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -191,12 +190,12 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
190
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
192
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
193
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
194
194
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
195
195
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
196
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
197
197
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
198
198
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
199
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
200
199
|
return true;
|
|
201
200
|
}
|
|
202
201
|
|
|
@@ -214,7 +213,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
214
213
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
215
214
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
216
215
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
217
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
216
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
218
217
|
'signOffStatus': json['signOffStatus'],
|
|
219
218
|
'signOnSignature': json['signOnSignature'],
|
|
220
219
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -224,13 +223,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
223
|
'firstAidImage': json['firstAidImage'],
|
|
225
224
|
'signOnLat': json['signOnLat'],
|
|
226
225
|
'signOnLong': json['signOnLong'],
|
|
227
|
-
'signOffLat': json['signOffLat']
|
|
226
|
+
'signOffLat': json['signOffLat'],
|
|
228
227
|
'signOffLong': json['signOffLong'],
|
|
229
228
|
'licenceNumber': json['licenceNumber'],
|
|
230
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
231
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
232
231
|
'licenceLastName': json['licenceLastName'],
|
|
233
|
-
'badgeNumber': json['badgeNumber'],
|
|
232
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
234
233
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
235
234
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
236
235
|
};
|
|
@@ -251,7 +250,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
251
250
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
252
251
|
'user': UserLiteResourceToJSON(value['user']),
|
|
253
252
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
254
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
253
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
255
254
|
'signOffStatus': value['signOffStatus'],
|
|
256
255
|
'signOnSignature': value['signOnSignature'],
|
|
257
256
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -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'],
|
|
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
|
|
|
36
36
|
* @type {Date}
|
|
37
37
|
* @memberof RosterLiteResource
|
|
38
38
|
*/
|
|
39
|
-
finishDateTime
|
|
39
|
+
finishDateTime?: Date | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
|
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
|
|
46
46
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
47
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
48
47
|
return true;
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
60
59
|
|
|
61
60
|
'id': json['id'] == null ? undefined : json['id'],
|
|
62
61
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
63
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
62
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
77
76
|
|
|
78
77
|
'id': value['id'],
|
|
79
78
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
80
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
79
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
81
80
|
};
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
|
|
|
76
76
|
* @type {Date}
|
|
77
77
|
* @memberof RosterWithRegistersResource
|
|
78
78
|
*/
|
|
79
|
-
finishDateTime
|
|
79
|
+
finishDateTime: Date;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {boolean}
|
|
@@ -111,6 +111,7 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
|
|
|
111
111
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
112
112
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
113
113
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
114
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
114
115
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
115
116
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
116
117
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -133,7 +134,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
133
134
|
'state': json['state'],
|
|
134
135
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
135
136
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
136
|
-
'finishDateTime':
|
|
137
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
137
138
|
'isCompliant': json['isCompliant'],
|
|
138
139
|
'isComplete': json['isComplete'],
|
|
139
140
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -157,7 +158,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
|
|
|
157
158
|
'state': value['state'],
|
|
158
159
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
159
160
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
160
|
-
'finishDateTime':
|
|
161
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
161
162
|
'isCompliant': value['isCompliant'],
|
|
162
163
|
'isComplete': value['isComplete'],
|
|
163
164
|
'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;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,6 +82,7 @@ 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;
|
|
85
86
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
86
87
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
87
88
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -100,7 +101,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
103
|
'name': json['name'],
|
|
103
|
-
'email': json['email']
|
|
104
|
+
'email': json['email'],
|
|
104
105
|
'isEnabled': json['isEnabled'],
|
|
105
106
|
'address': AddressResourceFromJSON(json['address']),
|
|
106
107
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * from './CurrentRegisterResourceArrayResponse';
|
|
|
13
13
|
export * from './GenericResponse';
|
|
14
14
|
export * from './IncidentFieldSchemaResource';
|
|
15
15
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
16
|
+
export * from './IncidentFieldSchemasShowRequest';
|
|
16
17
|
export * from './IndexMinimalUserRequest';
|
|
17
18
|
export * from './IndexUserRequest';
|
|
18
19
|
export * from './LicenceListResource';
|
|
@@ -27,11 +28,6 @@ export * from './LicencesStoreRequest';
|
|
|
27
28
|
export * from './LicencesUpdateRequest';
|
|
28
29
|
export * from './LicencesVerifyRequest';
|
|
29
30
|
export * from './LoginAuthRequest';
|
|
30
|
-
export * from './NotificationPreferenceResource';
|
|
31
|
-
export * from './NotificationPreferenceResourceArrayResponse';
|
|
32
|
-
export * from './NotificationPreferencesStoreRequest';
|
|
33
|
-
export * from './NotificationTypeResource';
|
|
34
|
-
export * from './NotificationTypeResourceArrayResponse';
|
|
35
31
|
export * from './PaginatedLicenceListResourceResponse';
|
|
36
32
|
export * from './PaginatedLicenceResourceResponse';
|
|
37
33
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
@@ -1,63 +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
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface NotificationPreferenceResource
|
|
17
|
-
*/
|
|
18
|
-
export interface NotificationPreferenceResource {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof NotificationPreferenceResource
|
|
23
|
-
*/
|
|
24
|
-
id?: number | null;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof NotificationPreferenceResource
|
|
29
|
-
*/
|
|
30
|
-
notificationType: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {VenueLiteResource}
|
|
34
|
-
* @memberof NotificationPreferenceResource
|
|
35
|
-
*/
|
|
36
|
-
venue: VenueLiteResource | null;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @memberof NotificationPreferenceResource
|
|
41
|
-
*/
|
|
42
|
-
enabled: boolean;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {Date}
|
|
46
|
-
* @memberof NotificationPreferenceResource
|
|
47
|
-
*/
|
|
48
|
-
createdAt?: Date | null;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Date}
|
|
52
|
-
* @memberof NotificationPreferenceResource
|
|
53
|
-
*/
|
|
54
|
-
updatedAt?: Date | null;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Check if a given object implements the NotificationPreferenceResource interface.
|
|
58
|
-
*/
|
|
59
|
-
export declare function instanceOfNotificationPreferenceResource(value: object): value is NotificationPreferenceResource;
|
|
60
|
-
export declare function NotificationPreferenceResourceFromJSON(json: any): NotificationPreferenceResource;
|
|
61
|
-
export declare function NotificationPreferenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResource;
|
|
62
|
-
export declare function NotificationPreferenceResourceToJSON(json: any): NotificationPreferenceResource;
|
|
63
|
-
export declare function NotificationPreferenceResourceToJSONTyped(value?: NotificationPreferenceResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfNotificationPreferenceResource = instanceOfNotificationPreferenceResource;
|
|
17
|
-
exports.NotificationPreferenceResourceFromJSON = NotificationPreferenceResourceFromJSON;
|
|
18
|
-
exports.NotificationPreferenceResourceFromJSONTyped = NotificationPreferenceResourceFromJSONTyped;
|
|
19
|
-
exports.NotificationPreferenceResourceToJSON = NotificationPreferenceResourceToJSON;
|
|
20
|
-
exports.NotificationPreferenceResourceToJSONTyped = NotificationPreferenceResourceToJSONTyped;
|
|
21
|
-
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the NotificationPreferenceResource interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfNotificationPreferenceResource(value) {
|
|
26
|
-
if (!('notificationType' in value) || value['notificationType'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('venue' in value) || value['venue'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function NotificationPreferenceResourceFromJSON(json) {
|
|
35
|
-
return NotificationPreferenceResourceFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function NotificationPreferenceResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
43
|
-
'notificationType': json['notificationType'],
|
|
44
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
45
|
-
'enabled': json['enabled'],
|
|
46
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
47
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function NotificationPreferenceResourceToJSON(json) {
|
|
51
|
-
return NotificationPreferenceResourceToJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
function NotificationPreferenceResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'id': value['id'],
|
|
61
|
-
'notificationType': value['notificationType'],
|
|
62
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
63
|
-
'enabled': value['enabled'],
|
|
64
|
-
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
65
|
-
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -1,33 +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 { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface NotificationPreferenceResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface NotificationPreferenceResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<NotificationPreferenceResource>}
|
|
22
|
-
* @memberof NotificationPreferenceResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<NotificationPreferenceResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfNotificationPreferenceResourceArrayResponse(value: object): value is NotificationPreferenceResourceArrayResponse;
|
|
30
|
-
export declare function NotificationPreferenceResourceArrayResponseFromJSON(json: any): NotificationPreferenceResourceArrayResponse;
|
|
31
|
-
export declare function NotificationPreferenceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResourceArrayResponse;
|
|
32
|
-
export declare function NotificationPreferenceResourceArrayResponseToJSON(json: any): NotificationPreferenceResourceArrayResponse;
|
|
33
|
-
export declare function NotificationPreferenceResourceArrayResponseToJSONTyped(value?: NotificationPreferenceResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfNotificationPreferenceResourceArrayResponse = instanceOfNotificationPreferenceResourceArrayResponse;
|
|
17
|
-
exports.NotificationPreferenceResourceArrayResponseFromJSON = NotificationPreferenceResourceArrayResponseFromJSON;
|
|
18
|
-
exports.NotificationPreferenceResourceArrayResponseFromJSONTyped = NotificationPreferenceResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.NotificationPreferenceResourceArrayResponseToJSON = NotificationPreferenceResourceArrayResponseToJSON;
|
|
20
|
-
exports.NotificationPreferenceResourceArrayResponseToJSONTyped = NotificationPreferenceResourceArrayResponseToJSONTyped;
|
|
21
|
-
var NotificationPreferenceResource_1 = require("./NotificationPreferenceResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfNotificationPreferenceResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function NotificationPreferenceResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return NotificationPreferenceResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function NotificationPreferenceResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function NotificationPreferenceResourceArrayResponseToJSON(json) {
|
|
40
|
-
return NotificationPreferenceResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function NotificationPreferenceResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|