@digital8/security-registers-backend-ts-sdk 0.0.294 → 0.0.296
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/README.md +2 -2
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/IncidentsListRequest.d.ts +6 -0
- package/dist/models/IncidentsListRequest.js +2 -0
- package/dist/models/RegisterListResource.d.ts +4 -5
- package/dist/models/RegisterListResource.js +6 -7
- 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/package.json +1 -1
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/IncidentsListRequest.ts +8 -0
- package/src/models/RegisterListResource.ts +10 -17
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +4 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.296
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.296 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
'filePath': json['filePath'],
|
|
51
49
|
'fileName': json['fileName'],
|
|
52
50
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText'],
|
|
51
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
54
52
|
'index': json['index'],
|
|
55
53
|
'fileId': json['fileId'],
|
|
56
54
|
};
|
|
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
return {
|
|
45
43
|
'fileId': json['file_id'],
|
|
46
44
|
'mimeType': json['mime_type'],
|
|
47
|
-
'altText': json['alt_text'],
|
|
45
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
48
46
|
'assetId': json['asset_id'],
|
|
49
47
|
'url': json['url'],
|
|
50
48
|
};
|
|
@@ -63,6 +63,12 @@ export interface IncidentsListRequest {
|
|
|
63
63
|
* @memberof IncidentsListRequest
|
|
64
64
|
*/
|
|
65
65
|
rosterId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IncidentsListRequest
|
|
70
|
+
*/
|
|
71
|
+
registerId?: Array<string>;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* @type {Array<string>}
|
|
@@ -56,6 +56,7 @@ function IncidentsListRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
57
57
|
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
58
58
|
'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
|
|
59
|
+
'registerId': json['register_id'] == null ? undefined : json['register_id'],
|
|
59
60
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
60
61
|
'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
|
|
61
62
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
@@ -85,6 +86,7 @@ function IncidentsListRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
86
|
'venue_id': value['venueId'],
|
|
86
87
|
'security_company_id': value['securityCompanyId'],
|
|
87
88
|
'roster_id': value['rosterId'],
|
|
89
|
+
'register_id': value['registerId'],
|
|
88
90
|
'user_id': value['userId'],
|
|
89
91
|
'approved_by_user_id': value['approvedByUserId'],
|
|
90
92
|
'has_approved_at': value['hasApprovedAt'],
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VenueLiteResource } from './VenueLiteResource';
|
|
13
13
|
import type { UserLiteResource } from './UserLiteResource';
|
|
14
|
-
import type { IncidentLiteResource } from './IncidentLiteResource';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
17
16
|
* @export
|
|
@@ -143,19 +142,19 @@ export interface RegisterListResource {
|
|
|
143
142
|
* @type {number}
|
|
144
143
|
* @memberof RegisterListResource
|
|
145
144
|
*/
|
|
146
|
-
signOffLat
|
|
145
|
+
signOffLat?: number | null;
|
|
147
146
|
/**
|
|
148
147
|
*
|
|
149
148
|
* @type {number}
|
|
150
149
|
* @memberof RegisterListResource
|
|
151
150
|
*/
|
|
152
|
-
signOffLong
|
|
151
|
+
signOffLong: number;
|
|
153
152
|
/**
|
|
154
153
|
*
|
|
155
|
-
* @type {
|
|
154
|
+
* @type {boolean}
|
|
156
155
|
* @memberof RegisterListResource
|
|
157
156
|
*/
|
|
158
|
-
|
|
157
|
+
hasIncidents: boolean;
|
|
159
158
|
}
|
|
160
159
|
/**
|
|
161
160
|
* Check if a given object implements the RegisterListResource interface.
|
|
@@ -20,7 +20,6 @@ exports.RegisterListResourceToJSON = RegisterListResourceToJSON;
|
|
|
20
20
|
exports.RegisterListResourceToJSONTyped = RegisterListResourceToJSONTyped;
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
22
|
var UserLiteResource_1 = require("./UserLiteResource");
|
|
23
|
-
var IncidentLiteResource_1 = require("./IncidentLiteResource");
|
|
24
23
|
/**
|
|
25
24
|
* Check if a given object implements the RegisterListResource interface.
|
|
26
25
|
*/
|
|
@@ -61,9 +60,9 @@ function instanceOfRegisterListResource(value) {
|
|
|
61
60
|
return false;
|
|
62
61
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
63
62
|
return false;
|
|
64
|
-
if (!('
|
|
63
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
64
|
return false;
|
|
66
|
-
if (!('
|
|
65
|
+
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
67
66
|
return false;
|
|
68
67
|
return true;
|
|
69
68
|
}
|
|
@@ -95,9 +94,9 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
94
|
'firstAid': json['firstAid'],
|
|
96
95
|
'signOnLat': json['signOnLat'],
|
|
97
96
|
'signOnLong': json['signOnLong'],
|
|
98
|
-
'signOffLat': json['signOffLat'],
|
|
99
|
-
'signOffLong': json['signOffLong']
|
|
100
|
-
'
|
|
97
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
98
|
+
'signOffLong': json['signOffLong'],
|
|
99
|
+
'hasIncidents': json['hasIncidents'],
|
|
101
100
|
};
|
|
102
101
|
}
|
|
103
102
|
function RegisterListResourceToJSON(json) {
|
|
@@ -131,6 +130,6 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
131
130
|
'signOnLong': value['signOnLong'],
|
|
132
131
|
'signOffLat': value['signOffLat'],
|
|
133
132
|
'signOffLong': value['signOffLong'],
|
|
134
|
-
'
|
|
133
|
+
'hasIncidents': value['hasIncidents'],
|
|
135
134
|
};
|
|
136
135
|
}
|
|
@@ -24,8 +24,6 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfRosterLiteResource(value) {
|
|
25
25
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
38
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
41
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
39
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
function RosterLiteResourceToJSON(json) {
|
|
45
43
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
46
44
|
}
|
|
47
45
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
var _a;
|
|
48
47
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
48
|
if (value == null) {
|
|
50
49
|
return value;
|
|
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'id': value['id'],
|
|
54
53
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
55
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
54
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
56
55
|
};
|
|
57
56
|
}
|
|
@@ -33,6 +33,8 @@ function instanceOfRosterWithRegistersResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -56,7 +58,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'state': json['state'],
|
|
57
59
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
58
60
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
59
|
-
'finishDateTime':
|
|
61
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
60
62
|
'isCompliant': json['isCompliant'],
|
|
61
63
|
'isComplete': json['isComplete'],
|
|
62
64
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -67,7 +69,6 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
67
69
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
68
70
|
}
|
|
69
71
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
-
var _a;
|
|
71
72
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
73
|
if (value == null) {
|
|
73
74
|
return value;
|
|
@@ -78,7 +79,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
79
|
'state': value['state'],
|
|
79
80
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
80
81
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
81
|
-
'finishDateTime':
|
|
82
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
82
83
|
'isCompliant': value['isCompliant'],
|
|
83
84
|
'isComplete': value['isComplete'],
|
|
84
85
|
'signOffStatus': value['signOffStatus'],
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,7 +71,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
71
71
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
72
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
73
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
75
74
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
76
75
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
77
76
|
return true;
|
|
@@ -91,7 +90,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
91
90
|
'filePath': json['filePath'],
|
|
92
91
|
'fileName': json['fileName'],
|
|
93
92
|
'mimeType': json['mimeType'],
|
|
94
|
-
'altText': json['altText'],
|
|
93
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
95
94
|
'index': json['index'],
|
|
96
95
|
'fileId': json['fileId'],
|
|
97
96
|
};
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
60
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
61
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
75
74
|
|
|
76
75
|
'fileId': json['file_id'],
|
|
77
76
|
'mimeType': json['mime_type'],
|
|
78
|
-
'altText': json['alt_text'],
|
|
77
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
79
78
|
'assetId': json['asset_id'],
|
|
80
79
|
'url': json['url'],
|
|
81
80
|
};
|
|
@@ -67,6 +67,12 @@ export interface IncidentsListRequest {
|
|
|
67
67
|
* @memberof IncidentsListRequest
|
|
68
68
|
*/
|
|
69
69
|
rosterId?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof IncidentsListRequest
|
|
74
|
+
*/
|
|
75
|
+
registerId?: Array<string>;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {Array<string>}
|
|
@@ -175,6 +181,7 @@ export function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
175
181
|
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
176
182
|
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
177
183
|
'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
|
|
184
|
+
'registerId': json['register_id'] == null ? undefined : json['register_id'],
|
|
178
185
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
179
186
|
'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
|
|
180
187
|
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
@@ -207,6 +214,7 @@ export function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | n
|
|
|
207
214
|
'venue_id': value['venueId'],
|
|
208
215
|
'security_company_id': value['securityCompanyId'],
|
|
209
216
|
'roster_id': value['rosterId'],
|
|
217
|
+
'register_id': value['registerId'],
|
|
210
218
|
'user_id': value['userId'],
|
|
211
219
|
'approved_by_user_id': value['approvedByUserId'],
|
|
212
220
|
'has_approved_at': value['hasApprovedAt'],
|
|
@@ -27,13 +27,6 @@ import {
|
|
|
27
27
|
UserLiteResourceToJSON,
|
|
28
28
|
UserLiteResourceToJSONTyped,
|
|
29
29
|
} from './UserLiteResource';
|
|
30
|
-
import type { IncidentLiteResource } from './IncidentLiteResource';
|
|
31
|
-
import {
|
|
32
|
-
IncidentLiteResourceFromJSON,
|
|
33
|
-
IncidentLiteResourceFromJSONTyped,
|
|
34
|
-
IncidentLiteResourceToJSON,
|
|
35
|
-
IncidentLiteResourceToJSONTyped,
|
|
36
|
-
} from './IncidentLiteResource';
|
|
37
30
|
|
|
38
31
|
/**
|
|
39
32
|
*
|
|
@@ -166,19 +159,19 @@ export interface RegisterListResource {
|
|
|
166
159
|
* @type {number}
|
|
167
160
|
* @memberof RegisterListResource
|
|
168
161
|
*/
|
|
169
|
-
signOffLat
|
|
162
|
+
signOffLat?: number | null;
|
|
170
163
|
/**
|
|
171
164
|
*
|
|
172
165
|
* @type {number}
|
|
173
166
|
* @memberof RegisterListResource
|
|
174
167
|
*/
|
|
175
|
-
signOffLong
|
|
168
|
+
signOffLong: number;
|
|
176
169
|
/**
|
|
177
170
|
*
|
|
178
|
-
* @type {
|
|
171
|
+
* @type {boolean}
|
|
179
172
|
* @memberof RegisterListResource
|
|
180
173
|
*/
|
|
181
|
-
|
|
174
|
+
hasIncidents: boolean;
|
|
182
175
|
}
|
|
183
176
|
|
|
184
177
|
/**
|
|
@@ -203,8 +196,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
203
196
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
204
197
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
205
198
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
206
|
-
if (!('
|
|
207
|
-
if (!('
|
|
199
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
200
|
+
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
208
201
|
return true;
|
|
209
202
|
}
|
|
210
203
|
|
|
@@ -238,9 +231,9 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
238
231
|
'firstAid': json['firstAid'],
|
|
239
232
|
'signOnLat': json['signOnLat'],
|
|
240
233
|
'signOnLong': json['signOnLong'],
|
|
241
|
-
'signOffLat': json['signOffLat'],
|
|
242
|
-
'signOffLong': json['signOffLong']
|
|
243
|
-
'
|
|
234
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
235
|
+
'signOffLong': json['signOffLong'],
|
|
236
|
+
'hasIncidents': json['hasIncidents'],
|
|
244
237
|
};
|
|
245
238
|
}
|
|
246
239
|
|
|
@@ -277,7 +270,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
277
270
|
'signOnLong': value['signOnLong'],
|
|
278
271
|
'signOffLat': value['signOffLat'],
|
|
279
272
|
'signOffLong': value['signOffLong'],
|
|
280
|
-
'
|
|
273
|
+
'hasIncidents': value['hasIncidents'],
|
|
281
274
|
};
|
|
282
275
|
}
|
|
283
276
|
|
|
@@ -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'],
|