@digital8/security-registers-backend-ts-sdk 0.0.253 → 0.0.254
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 +1 -3
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +3 -3
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +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/AddressResource.ts +2 -3
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterResource.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.254
|
|
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.254 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,8 +24,6 @@ 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;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -32,8 +32,6 @@ function instanceOfRegisterGroupedByRosterResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
if (!('registers' in value) || value['registers'] === undefined)
|
|
38
36
|
return false;
|
|
39
37
|
return true;
|
|
@@ -51,7 +49,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
51
49
|
'timezone': json['timezone'],
|
|
52
50
|
'state': json['state'],
|
|
53
51
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
54
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
52
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
55
53
|
'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -59,6 +57,7 @@ function RegisterGroupedByRosterResourceToJSON(json) {
|
|
|
59
57
|
return RegisterGroupedByRosterResourceToJSONTyped(json, false);
|
|
60
58
|
}
|
|
61
59
|
function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
var _a;
|
|
62
61
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
62
|
if (value == null) {
|
|
64
63
|
return value;
|
|
@@ -69,7 +68,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
69
68
|
'timezone': value['timezone'],
|
|
70
69
|
'state': value['state'],
|
|
71
70
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
72
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
71
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
73
72
|
'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
|
|
74
73
|
};
|
|
75
74
|
}
|
|
@@ -65,7 +65,7 @@ export interface RegisterListResource {
|
|
|
65
65
|
* @type {string}
|
|
66
66
|
* @memberof RegisterListResource
|
|
67
67
|
*/
|
|
68
|
-
badgeNumber
|
|
68
|
+
badgeNumber: string;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {string}
|
|
@@ -143,7 +143,7 @@ export interface RegisterListResource {
|
|
|
143
143
|
* @type {number}
|
|
144
144
|
* @memberof RegisterListResource
|
|
145
145
|
*/
|
|
146
|
-
signOffLat
|
|
146
|
+
signOffLat?: number | null;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
* @type {number}
|
|
@@ -35,6 +35,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -59,8 +61,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
59
61
|
return false;
|
|
60
62
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
63
|
return false;
|
|
62
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
63
|
-
return false;
|
|
64
64
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
65
|
return false;
|
|
66
66
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
@@ -82,7 +82,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
82
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
83
83
|
'shiftLength': json['shiftLength'],
|
|
84
84
|
'signOffStatus': json['signOffStatus'],
|
|
85
|
-
'badgeNumber': json['badgeNumber']
|
|
85
|
+
'badgeNumber': json['badgeNumber'],
|
|
86
86
|
'licenceNumber': json['licenceNumber'],
|
|
87
87
|
'licenceFirstName': json['licenceFirstName'],
|
|
88
88
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -95,7 +95,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
95
|
'firstAid': json['firstAid'],
|
|
96
96
|
'signOnLat': json['signOnLat'],
|
|
97
97
|
'signOnLong': json['signOnLong'],
|
|
98
|
-
'signOffLat': json['signOffLat'],
|
|
98
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
99
99
|
'signOffLong': json['signOffLong'],
|
|
100
100
|
'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
|
|
101
101
|
};
|
|
@@ -106,13 +106,13 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat: number;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -48,7 +48,7 @@ function instanceOfRegisterResource(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
-
if (!('
|
|
51
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
52
52
|
return false;
|
|
53
53
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
54
54
|
return false;
|
|
@@ -82,8 +82,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
82
|
'firstAidImage': json['firstAidImage'],
|
|
83
83
|
'signOnLat': json['signOnLat'],
|
|
84
84
|
'signOnLong': json['signOnLong'],
|
|
85
|
-
'signOffLat': json['signOffLat']
|
|
86
|
-
'signOffLong': json['signOffLong'],
|
|
85
|
+
'signOffLat': json['signOffLat'],
|
|
86
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
87
87
|
'licenceNumber': json['licenceNumber'],
|
|
88
88
|
'licenceExpiry': json['licenceExpiry'],
|
|
89
89
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -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'],
|
|
@@ -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'],
|
|
@@ -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
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,7 +80,6 @@ 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;
|
|
84
83
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
84
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
86
85
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'addressLine1': json['addressLine1'],
|
|
105
|
-
'addressLine2': json['addressLine2'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
106
105
|
'suburb': json['suburb'],
|
|
107
106
|
'city': json['city'],
|
|
108
107
|
'state': json['state'],
|
|
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RegisterGroupedByRosterResource
|
|
71
71
|
*/
|
|
72
|
-
finishDateTime
|
|
72
|
+
finishDateTime?: Date | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<RegisterListResource>}
|
|
@@ -86,7 +86,6 @@ export function instanceOfRegisterGroupedByRosterResource(value: object): value
|
|
|
86
86
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
87
87
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
88
88
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
89
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
90
89
|
if (!('registers' in value) || value['registers'] === undefined) return false;
|
|
91
90
|
return true;
|
|
92
91
|
}
|
|
@@ -106,7 +105,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
|
|
|
106
105
|
'timezone': json['timezone'],
|
|
107
106
|
'state': json['state'],
|
|
108
107
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
109
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
108
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
110
109
|
'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
|
|
111
110
|
};
|
|
112
111
|
}
|
|
@@ -127,7 +126,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
|
|
|
127
126
|
'timezone': value['timezone'],
|
|
128
127
|
'state': value['state'],
|
|
129
128
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
130
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
129
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
131
130
|
'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
|
|
132
131
|
};
|
|
133
132
|
}
|
|
@@ -88,7 +88,7 @@ export interface RegisterListResource {
|
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof RegisterListResource
|
|
90
90
|
*/
|
|
91
|
-
badgeNumber
|
|
91
|
+
badgeNumber: string;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {string}
|
|
@@ -166,7 +166,7 @@ export interface RegisterListResource {
|
|
|
166
166
|
* @type {number}
|
|
167
167
|
* @memberof RegisterListResource
|
|
168
168
|
*/
|
|
169
|
-
signOffLat
|
|
169
|
+
signOffLat?: number | null;
|
|
170
170
|
/**
|
|
171
171
|
*
|
|
172
172
|
* @type {number}
|
|
@@ -190,6 +190,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
190
190
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
191
191
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
192
192
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
193
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
193
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
194
195
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
195
196
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -202,7 +203,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
202
203
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
203
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
204
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
205
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
206
206
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
207
207
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
208
208
|
return true;
|
|
@@ -225,7 +225,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
225
225
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
226
226
|
'shiftLength': json['shiftLength'],
|
|
227
227
|
'signOffStatus': json['signOffStatus'],
|
|
228
|
-
'badgeNumber': json['badgeNumber']
|
|
228
|
+
'badgeNumber': json['badgeNumber'],
|
|
229
229
|
'licenceNumber': json['licenceNumber'],
|
|
230
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
231
231
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -238,7 +238,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
238
238
|
'firstAid': json['firstAid'],
|
|
239
239
|
'signOnLat': json['signOnLat'],
|
|
240
240
|
'signOnLong': json['signOnLong'],
|
|
241
|
-
'signOffLat': json['signOffLat'],
|
|
241
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
242
242
|
'signOffLong': json['signOffLong'],
|
|
243
243
|
'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
244
244
|
};
|
|
@@ -123,13 +123,13 @@ 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}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong?: number | null;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -190,7 +190,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
190
190
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
191
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
192
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
193
|
-
if (!('
|
|
193
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
194
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
195
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
196
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -222,8 +222,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
222
222
|
'firstAidImage': json['firstAidImage'],
|
|
223
223
|
'signOnLat': json['signOnLat'],
|
|
224
224
|
'signOnLong': json['signOnLong'],
|
|
225
|
-
'signOffLat': json['signOffLat']
|
|
226
|
-
'signOffLong': json['signOffLong'],
|
|
225
|
+
'signOffLat': json['signOffLat'],
|
|
226
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
227
227
|
'licenceNumber': json['licenceNumber'],
|
|
228
228
|
'licenceExpiry': json['licenceExpiry'],
|
|
229
229
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,7 +97,6 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
97
97
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
98
98
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
99
99
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
100
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
101
100
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
102
101
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
103
102
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -119,7 +118,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
119
118
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
120
119
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
121
120
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
122
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
121
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
123
122
|
'isCompliant': json['isCompliant'],
|
|
124
123
|
'isComplete': json['isComplete'],
|
|
125
124
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -142,7 +141,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
142
141
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
143
142
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
144
143
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
145
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
144
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
146
145
|
'isCompliant': value['isCompliant'],
|
|
147
146
|
'isComplete': value['isComplete'],
|
|
148
147
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime?: Date | 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'],
|
|
@@ -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'],
|