@digital8/security-registers-backend-ts-sdk 0.0.222 → 0.0.223
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +4 -6
- 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 +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AssetResource.ts +2 -3
- package/src/models/RegisterListResource.ts +7 -8
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +3 -4
- package/src/models/SecurityCompanyResource.ts +3 -2
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.223
|
|
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.223 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'addressLine1': json['addressLine1'],
|
|
51
|
-
'addressLine2': json['addressLine2']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -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
|
};
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {string}
|
|
@@ -142,13 +142,13 @@ export interface RegisterListResource {
|
|
|
142
142
|
* @type {number}
|
|
143
143
|
* @memberof RegisterListResource
|
|
144
144
|
*/
|
|
145
|
-
signOffLat
|
|
145
|
+
signOffLat?: number | null;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {number}
|
|
149
149
|
* @memberof RegisterListResource
|
|
150
150
|
*/
|
|
151
|
-
signOffLong
|
|
151
|
+
signOffLong: number;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {Array<boolean>}
|
|
@@ -36,8 +36,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -62,7 +60,7 @@ function instanceOfRegisterListResource(value) {
|
|
|
62
60
|
return false;
|
|
63
61
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
64
62
|
return false;
|
|
65
|
-
if (!('
|
|
63
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
66
64
|
return false;
|
|
67
65
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
68
66
|
return false;
|
|
@@ -83,7 +81,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
81
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
84
82
|
'shiftLength': json['shiftLength'],
|
|
85
83
|
'signOffStatus': json['signOffStatus'],
|
|
86
|
-
'badgeNumber': json['badgeNumber'],
|
|
84
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
87
85
|
'licenceNumber': json['licenceNumber'],
|
|
88
86
|
'licenceFirstName': json['licenceFirstName'],
|
|
89
87
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -96,8 +94,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
96
94
|
'firstAid': json['firstAid'],
|
|
97
95
|
'signOnLat': json['signOnLat'],
|
|
98
96
|
'signOnLong': json['signOnLong'],
|
|
99
|
-
'signOffLat': json['signOffLat'],
|
|
100
|
-
'signOffLong': json['signOffLong']
|
|
97
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
98
|
+
'signOffLong': json['signOffLong'],
|
|
101
99
|
'incidents': json['incidents'],
|
|
102
100
|
};
|
|
103
101
|
}
|
|
@@ -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 (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
54
56
|
return false;
|
|
55
57
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -82,7 +84,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
84
|
'firstAidImage': json['firstAidImage'],
|
|
83
85
|
'signOnLat': json['signOnLat'],
|
|
84
86
|
'signOnLong': json['signOnLong'],
|
|
85
|
-
'signOffLat': json['signOffLat']
|
|
87
|
+
'signOffLat': json['signOffLat'],
|
|
86
88
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
87
89
|
'licenceNumber': json['licenceNumber'],
|
|
88
90
|
'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,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
|
}
|
|
@@ -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'],
|
|
@@ -25,6 +25,8 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
return {
|
|
44
46
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
47
|
'name': json['name'],
|
|
46
|
-
'email': json['email']
|
|
48
|
+
'email': json['email'],
|
|
47
49
|
'isEnabled': json['isEnabled'],
|
|
48
50
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
49
51
|
'licenceNumber': json['licenceNumber'],
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'state': json['state'],
|
|
@@ -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
|
};
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber?: string | null;
|
|
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 | 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>}
|
|
@@ -184,7 +184,6 @@ 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;
|
|
188
187
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
189
188
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
190
189
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -197,7 +196,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
197
196
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
198
197
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
199
198
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
200
|
-
if (!('
|
|
199
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
201
200
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
202
201
|
return true;
|
|
203
202
|
}
|
|
@@ -219,7 +218,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
219
218
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
220
219
|
'shiftLength': json['shiftLength'],
|
|
221
220
|
'signOffStatus': json['signOffStatus'],
|
|
222
|
-
'badgeNumber': json['badgeNumber'],
|
|
221
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
223
222
|
'licenceNumber': json['licenceNumber'],
|
|
224
223
|
'licenceFirstName': json['licenceFirstName'],
|
|
225
224
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -232,8 +231,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
232
231
|
'firstAid': json['firstAid'],
|
|
233
232
|
'signOnLat': json['signOnLat'],
|
|
234
233
|
'signOnLong': json['signOnLong'],
|
|
235
|
-
'signOffLat': json['signOffLat'],
|
|
236
|
-
'signOffLong': json['signOffLong']
|
|
234
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
235
|
+
'signOffLong': json['signOffLong'],
|
|
237
236
|
'incidents': json['incidents'],
|
|
238
237
|
};
|
|
239
238
|
}
|
|
@@ -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 (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
195
196
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
196
197
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -222,7 +223,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
222
223
|
'firstAidImage': json['firstAidImage'],
|
|
223
224
|
'signOnLat': json['signOnLat'],
|
|
224
225
|
'signOnLong': json['signOnLong'],
|
|
225
|
-
'signOffLat': json['signOffLat']
|
|
226
|
+
'signOffLat': json['signOffLat'],
|
|
226
227
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
227
228
|
'licenceNumber': json['licenceNumber'],
|
|
228
229
|
'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 | 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
|
|
|
@@ -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'],
|
|
@@ -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'],
|