@digital8/security-registers-backend-ts-sdk 0.0.172 → 0.0.174
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 +3 -1
- package/dist/models/RegisterListResource.d.ts +4 -4
- package/dist/models/RegisterListResource.js +6 -5
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- 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 +4 -3
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/package.json +1 -1
- package/src/models/AssetResource.ts +3 -2
- package/src/models/RegisterListResource.ts +8 -8
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterResource.ts +3 -4
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.174
|
|
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.174 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -30,6 +30,8 @@ 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;
|
|
33
35
|
if (!('index' in value) || value['index'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'filePath': json['filePath'],
|
|
49
51
|
'fileName': json['fileName'],
|
|
50
52
|
'mimeType': json['mimeType'],
|
|
51
|
-
'altText': json['altText']
|
|
53
|
+
'altText': json['altText'],
|
|
52
54
|
'index': json['index'],
|
|
53
55
|
'fileId': json['fileId'],
|
|
54
56
|
};
|
|
@@ -46,13 +46,13 @@ export interface RegisterListResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterListResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime?: Date | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {object}
|
|
53
53
|
* @memberof RegisterListResource
|
|
54
54
|
*/
|
|
55
|
-
shiftLength:
|
|
55
|
+
shiftLength: object;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -142,7 +142,7 @@ export interface RegisterListResource {
|
|
|
142
142
|
* @type {number}
|
|
143
143
|
* @memberof RegisterListResource
|
|
144
144
|
*/
|
|
145
|
-
signOffLat
|
|
145
|
+
signOffLat: number;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {number}
|
|
@@ -30,8 +30,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
@@ -60,6 +58,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
60
58
|
return false;
|
|
61
59
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
62
60
|
return false;
|
|
61
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
62
|
+
return false;
|
|
63
63
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
64
64
|
return false;
|
|
65
65
|
return true;
|
|
@@ -76,7 +76,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
76
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
77
77
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
78
78
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
79
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
79
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
80
80
|
'shiftLength': json['shiftLength'],
|
|
81
81
|
'signOffStatus': json['signOffStatus'],
|
|
82
82
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -92,7 +92,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
92
|
'firstAid': json['firstAid'],
|
|
93
93
|
'signOnLat': json['signOnLat'],
|
|
94
94
|
'signOnLong': json['signOnLong'],
|
|
95
|
-
'signOffLat': json['signOffLat']
|
|
95
|
+
'signOffLat': json['signOffLat'],
|
|
96
96
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
97
97
|
'incidents': json['incidents'],
|
|
98
98
|
};
|
|
@@ -101,6 +101,7 @@ function RegisterListResourceToJSON(json) {
|
|
|
101
101
|
return RegisterListResourceToJSONTyped(json, false);
|
|
102
102
|
}
|
|
103
103
|
function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
104
|
+
var _a;
|
|
104
105
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
105
106
|
if (value == null) {
|
|
106
107
|
return value;
|
|
@@ -110,7 +111,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
110
111
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
111
112
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
112
113
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
113
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
114
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
114
115
|
'shiftLength': value['shiftLength'],
|
|
115
116
|
'signOffStatus': value['signOffStatus'],
|
|
116
117
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -50,6 +50,8 @@ function instanceOfRegisterResource(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
54
56
|
return false;
|
|
55
57
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -84,7 +86,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
86
|
'firstAidImage': json['firstAidImage'],
|
|
85
87
|
'signOnLat': json['signOnLat'],
|
|
86
88
|
'signOnLong': json['signOnLong'],
|
|
87
|
-
'signOffLat': json['signOffLat']
|
|
89
|
+
'signOffLat': json['signOffLat'],
|
|
88
90
|
'signOffLong': json['signOffLong'],
|
|
89
91
|
'licenceNumber': json['licenceNumber'],
|
|
90
92
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -30,8 +30,6 @@ function instanceOfRosterListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -54,7 +52,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
55
53
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
56
54
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
57
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
55
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
58
56
|
'isCompliant': json['isCompliant'],
|
|
59
57
|
'isComplete': json['isComplete'],
|
|
60
58
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -65,6 +63,7 @@ function RosterListResourceToJSON(json) {
|
|
|
65
63
|
return RosterListResourceToJSONTyped(json, false);
|
|
66
64
|
}
|
|
67
65
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
var _a;
|
|
68
67
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
68
|
if (value == null) {
|
|
70
69
|
return value;
|
|
@@ -74,7 +73,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
73
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
75
74
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
76
75
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
77
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
76
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
78
77
|
'isCompliant': value['isCompliant'],
|
|
79
78
|
'isComplete': value['isComplete'],
|
|
80
79
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -24,6 +24,8 @@ 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;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -36,14 +38,13 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
38
40
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
39
|
-
'finishDateTime':
|
|
41
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function RosterLiteResourceToJSON(json) {
|
|
43
45
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
44
46
|
}
|
|
45
47
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
-
var _a;
|
|
47
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
49
|
if (value == null) {
|
|
49
50
|
return value;
|
|
@@ -51,6 +52,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
52
|
return {
|
|
52
53
|
'id': value['id'],
|
|
53
54
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
54
|
-
'finishDateTime':
|
|
55
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
55
56
|
};
|
|
56
57
|
}
|
|
@@ -31,8 +31,6 @@ function instanceOfRosterResource(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
35
|
-
return false;
|
|
36
34
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
37
35
|
return false;
|
|
38
36
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -55,7 +53,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
53
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
56
54
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
57
55
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
58
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
56
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
59
57
|
'isCompliant': json['isCompliant'],
|
|
60
58
|
'isComplete': json['isComplete'],
|
|
61
59
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -66,6 +64,7 @@ function RosterResourceToJSON(json) {
|
|
|
66
64
|
return RosterResourceToJSONTyped(json, false);
|
|
67
65
|
}
|
|
68
66
|
function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
var _a;
|
|
69
68
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
70
69
|
if (value == null) {
|
|
71
70
|
return value;
|
|
@@ -75,7 +74,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
76
75
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
77
76
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
78
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
77
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
79
78
|
'isCompliant': value['isCompliant'],
|
|
80
79
|
'isComplete': value['isComplete'],
|
|
81
80
|
'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;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,6 +71,7 @@ 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;
|
|
74
75
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
75
76
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
76
77
|
return true;
|
|
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
90
91
|
'filePath': json['filePath'],
|
|
91
92
|
'fileName': json['fileName'],
|
|
92
93
|
'mimeType': json['mimeType'],
|
|
93
|
-
'altText': json['altText']
|
|
94
|
+
'altText': json['altText'],
|
|
94
95
|
'index': json['index'],
|
|
95
96
|
'fileId': json['fileId'],
|
|
96
97
|
};
|
|
@@ -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,7 +159,7 @@ 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}
|
|
@@ -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,6 +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;
|
|
198
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
199
199
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
200
200
|
return true;
|
|
201
201
|
}
|
|
@@ -214,7 +214,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
214
214
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
215
215
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
216
216
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
217
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
217
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
218
218
|
'shiftLength': json['shiftLength'],
|
|
219
219
|
'signOffStatus': json['signOffStatus'],
|
|
220
220
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -230,7 +230,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
230
230
|
'firstAid': json['firstAid'],
|
|
231
231
|
'signOnLat': json['signOnLat'],
|
|
232
232
|
'signOnLong': json['signOnLong'],
|
|
233
|
-
'signOffLat': json['signOffLat']
|
|
233
|
+
'signOffLat': json['signOffLat'],
|
|
234
234
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
235
235
|
'incidents': json['incidents'],
|
|
236
236
|
};
|
|
@@ -251,7 +251,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
251
251
|
'user': UserLiteResourceToJSON(value['user']),
|
|
252
252
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
253
253
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
254
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
254
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
255
255
|
'shiftLength': value['shiftLength'],
|
|
256
256
|
'signOffStatus': value['signOffStatus'],
|
|
257
257
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -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}
|
|
@@ -191,6 +191,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
191
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
192
192
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
193
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
194
195
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
195
196
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
197
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
@@ -223,7 +224,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
223
224
|
'firstAidImage': json['firstAidImage'],
|
|
224
225
|
'signOnLat': json['signOnLat'],
|
|
225
226
|
'signOnLong': json['signOnLong'],
|
|
226
|
-
'signOffLat': json['signOffLat']
|
|
227
|
+
'signOffLat': json['signOffLat'],
|
|
227
228
|
'signOffLong': json['signOffLong'],
|
|
228
229
|
'licenceNumber': json['licenceNumber'],
|
|
229
230
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -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;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,6 +44,7 @@ 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;
|
|
47
48
|
return true;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -59,7 +60,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
59
60
|
|
|
60
61
|
'id': json['id'] == null ? undefined : json['id'],
|
|
61
62
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
62
|
-
'finishDateTime':
|
|
63
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -76,7 +77,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
76
77
|
|
|
77
78
|
'id': value['id'],
|
|
78
79
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
79
|
-
'finishDateTime':
|
|
80
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime?: Date | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -104,7 +104,6 @@ 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;
|
|
108
107
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
109
108
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
110
109
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -126,7 +125,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
126
125
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
127
126
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
128
127
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
129
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
128
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
130
129
|
'isCompliant': json['isCompliant'],
|
|
131
130
|
'isComplete': json['isComplete'],
|
|
132
131
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -149,7 +148,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
149
148
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
150
149
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
151
150
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
152
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
151
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
153
152
|
'isCompliant': value['isCompliant'],
|
|
154
153
|
'isComplete': value['isComplete'],
|
|
155
154
|
'signOffStatus': value['signOffStatus'],
|