@digital8/security-registers-backend-ts-sdk 0.0.321 → 0.0.323
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/IncidentListResource.d.ts +6 -0
- package/dist/models/IncidentListResource.js +2 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +6 -2
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +7 -13
- 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/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/package.json +1 -1
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentListResource.ts +8 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +6 -4
- package/src/models/RegisterResource.ts +7 -10
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/VenueLiteResource.ts +9 -0
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.323
|
|
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.323 --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
|
};
|
|
@@ -49,6 +49,7 @@ function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
50
50
|
'state': json['state'] == null ? undefined : json['state'],
|
|
51
51
|
'submittedByGuard': json['submittedByGuard'],
|
|
52
|
+
'videosCount': json['videosCount'] == null ? undefined : json['videosCount'],
|
|
52
53
|
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
53
54
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
54
55
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -74,6 +75,7 @@ function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
75
|
'incidentDateTime': value['incidentDateTime'] === null ? null : ((_a = value['incidentDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
75
76
|
'state': value['state'],
|
|
76
77
|
'submittedByGuard': value['submittedByGuard'],
|
|
78
|
+
'videosCount': value['videosCount'],
|
|
77
79
|
'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
78
80
|
'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
79
81
|
'updatedAt': value['updatedAt'] === null ? null : ((_d = value['updatedAt']) === null || _d === void 0 ? void 0 : _d.toISOString()),
|
|
@@ -32,6 +32,8 @@ 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;
|
|
35
37
|
if (!('registers' in value) || value['registers'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
return true;
|
|
@@ -49,7 +51,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
49
51
|
'timezone': json['timezone'],
|
|
50
52
|
'state': json['state'],
|
|
51
53
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
52
|
-
'finishDateTime':
|
|
54
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
53
55
|
'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -57,7 +59,6 @@ function RegisterGroupedByRosterResourceToJSON(json) {
|
|
|
57
59
|
return RegisterGroupedByRosterResourceToJSONTyped(json, false);
|
|
58
60
|
}
|
|
59
61
|
function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
-
var _a;
|
|
61
62
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
63
|
if (value == null) {
|
|
63
64
|
return value;
|
|
@@ -68,7 +69,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
68
69
|
'timezone': value['timezone'],
|
|
69
70
|
'state': value['state'],
|
|
70
71
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
71
|
-
'finishDateTime':
|
|
72
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
72
73
|
'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
|
|
73
74
|
};
|
|
74
75
|
}
|
|
@@ -142,13 +142,13 @@ 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}
|
|
149
149
|
* @memberof RegisterListResource
|
|
150
150
|
*/
|
|
151
|
-
signOffLong
|
|
151
|
+
signOffLong: number;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {boolean}
|
|
@@ -69,6 +69,10 @@ function instanceOfRegisterListResource(value) {
|
|
|
69
69
|
return false;
|
|
70
70
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
71
71
|
return false;
|
|
72
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
75
|
+
return false;
|
|
72
76
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
73
77
|
return false;
|
|
74
78
|
return true;
|
|
@@ -101,8 +105,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
105
|
'firstAid': json['firstAid'],
|
|
102
106
|
'signOnLat': json['signOnLat'],
|
|
103
107
|
'signOnLong': json['signOnLong'],
|
|
104
|
-
'signOffLat': json['signOffLat']
|
|
105
|
-
'signOffLong': json['signOffLong']
|
|
108
|
+
'signOffLat': json['signOffLat'],
|
|
109
|
+
'signOffLong': json['signOffLong'],
|
|
106
110
|
'hasIncidents': json['hasIncidents'],
|
|
107
111
|
};
|
|
108
112
|
}
|
|
@@ -46,7 +46,7 @@ export interface RegisterResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime?: Date | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {number}
|
|
@@ -106,13 +106,13 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat?: number | null;
|
|
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}
|
|
@@ -39,8 +39,6 @@ function instanceOfRegisterResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
|
|
@@ -59,10 +57,6 @@ function instanceOfRegisterResource(value) {
|
|
|
59
57
|
return false;
|
|
60
58
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
59
|
return false;
|
|
62
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
63
|
-
return false;
|
|
64
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
|
-
return false;
|
|
66
60
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
67
61
|
return false;
|
|
68
62
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -85,7 +79,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
79
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
86
80
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
87
81
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
88
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
82
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
89
83
|
'signOffStatus': json['signOffStatus'],
|
|
90
84
|
'signOnSignature': json['signOnSignature'],
|
|
91
85
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -95,8 +89,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
89
|
'firstAidImage': json['firstAidImage'],
|
|
96
90
|
'signOnLat': json['signOnLat'],
|
|
97
91
|
'signOnLong': json['signOnLong'],
|
|
98
|
-
'signOffLat': json['signOffLat'],
|
|
99
|
-
'signOffLong': json['signOffLong'],
|
|
92
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
93
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
100
94
|
'licenceNumber': json['licenceNumber'],
|
|
101
95
|
'licenceExpiry': json['licenceExpiry'],
|
|
102
96
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -110,7 +104,7 @@ function RegisterResourceToJSON(json) {
|
|
|
110
104
|
return RegisterResourceToJSONTyped(json, false);
|
|
111
105
|
}
|
|
112
106
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
113
|
-
var _a, _b;
|
|
107
|
+
var _a, _b, _c;
|
|
114
108
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
115
109
|
if (value == null) {
|
|
116
110
|
return value;
|
|
@@ -120,7 +114,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
120
114
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
121
115
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
122
116
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
123
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
117
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
124
118
|
'signOffStatus': value['signOffStatus'],
|
|
125
119
|
'signOnSignature': value['signOnSignature'],
|
|
126
120
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -137,7 +131,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
137
131
|
'licenceFirstName': value['licenceFirstName'],
|
|
138
132
|
'licenceLastName': value['licenceLastName'],
|
|
139
133
|
'badgeNumber': value['badgeNumber'],
|
|
140
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
141
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
134
|
+
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
135
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
142
136
|
};
|
|
143
137
|
}
|
|
@@ -39,8 +39,6 @@ function instanceOfRosterListResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -65,7 +63,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
63
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
66
64
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
67
65
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
68
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
66
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
69
67
|
'isCompliant': json['isCompliant'],
|
|
70
68
|
'isComplete': json['isComplete'],
|
|
71
69
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -77,6 +75,7 @@ function RosterListResourceToJSON(json) {
|
|
|
77
75
|
return RosterListResourceToJSONTyped(json, false);
|
|
78
76
|
}
|
|
79
77
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
78
|
+
var _a;
|
|
80
79
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
81
80
|
if (value == null) {
|
|
82
81
|
return value;
|
|
@@ -86,7 +85,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
86
85
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
87
86
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
88
87
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
89
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
88
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
90
89
|
'isCompliant': value['isCompliant'],
|
|
91
90
|
'isComplete': value['isComplete'],
|
|
92
91
|
'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
|
}
|
|
@@ -40,8 +40,6 @@ function instanceOfRosterResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
44
|
-
return false;
|
|
45
43
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -64,7 +62,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
65
63
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
66
64
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
67
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
65
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
68
66
|
'isCompliant': json['isCompliant'],
|
|
69
67
|
'isComplete': json['isComplete'],
|
|
70
68
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -75,6 +73,7 @@ function RosterResourceToJSON(json) {
|
|
|
75
73
|
return RosterResourceToJSONTyped(json, false);
|
|
76
74
|
}
|
|
77
75
|
function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
76
|
+
var _a;
|
|
78
77
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
79
78
|
if (value == null) {
|
|
80
79
|
return value;
|
|
@@ -84,7 +83,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
84
83
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
85
84
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
86
85
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
87
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
86
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
88
87
|
'isCompliant': value['isCompliant'],
|
|
89
88
|
'isComplete': value['isComplete'],
|
|
90
89
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -42,6 +42,8 @@ function instanceOfRosterWithRegistersResource(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
46
|
+
return false;
|
|
45
47
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
46
48
|
return false;
|
|
47
49
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -65,7 +67,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
'state': json['state'],
|
|
66
68
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
67
69
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
68
|
-
'finishDateTime':
|
|
70
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
69
71
|
'isCompliant': json['isCompliant'],
|
|
70
72
|
'isComplete': json['isComplete'],
|
|
71
73
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -76,7 +78,6 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
76
78
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
77
79
|
}
|
|
78
80
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
79
|
-
var _a;
|
|
80
81
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
81
82
|
if (value == null) {
|
|
82
83
|
return value;
|
|
@@ -87,7 +88,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
87
88
|
'state': value['state'],
|
|
88
89
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
89
90
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
90
|
-
'finishDateTime':
|
|
91
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
91
92
|
'isCompliant': value['isCompliant'],
|
|
92
93
|
'isComplete': value['isComplete'],
|
|
93
94
|
'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'],
|
|
@@ -39,6 +39,12 @@ export interface VenueLiteResource {
|
|
|
39
39
|
* @memberof VenueLiteResource
|
|
40
40
|
*/
|
|
41
41
|
timezone: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VenueLiteResource
|
|
46
|
+
*/
|
|
47
|
+
state: string;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the VenueLiteResource interface.
|
|
@@ -28,6 +28,8 @@ function instanceOfVenueLiteResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
return true;
|
|
32
34
|
}
|
|
33
35
|
function VenueLiteResourceFromJSON(json) {
|
|
@@ -42,6 +44,7 @@ function VenueLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
'name': json['name'],
|
|
43
45
|
'venueCode': json['venueCode'],
|
|
44
46
|
'timezone': json['timezone'],
|
|
47
|
+
'state': json['state'],
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
function VenueLiteResourceToJSON(json) {
|
|
@@ -57,5 +60,6 @@ function VenueLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
60
|
'name': value['name'],
|
|
58
61
|
'venueCode': value['venueCode'],
|
|
59
62
|
'timezone': value['timezone'],
|
|
63
|
+
'state': value['state'],
|
|
60
64
|
};
|
|
61
65
|
}
|
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
|
};
|
|
@@ -101,6 +101,12 @@ export interface IncidentListResource {
|
|
|
101
101
|
* @memberof IncidentListResource
|
|
102
102
|
*/
|
|
103
103
|
submittedByGuard: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof IncidentListResource
|
|
108
|
+
*/
|
|
109
|
+
videosCount?: number;
|
|
104
110
|
/**
|
|
105
111
|
*
|
|
106
112
|
* @type {Date}
|
|
@@ -150,6 +156,7 @@ export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
150
156
|
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
151
157
|
'state': json['state'] == null ? undefined : json['state'],
|
|
152
158
|
'submittedByGuard': json['submittedByGuard'],
|
|
159
|
+
'videosCount': json['videosCount'] == null ? undefined : json['videosCount'],
|
|
153
160
|
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
154
161
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
155
162
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -177,6 +184,7 @@ export function IncidentListResourceToJSONTyped(value?: IncidentListResource | n
|
|
|
177
184
|
'incidentDateTime': value['incidentDateTime'] === null ? null : ((value['incidentDateTime'] as any)?.toISOString()),
|
|
178
185
|
'state': value['state'],
|
|
179
186
|
'submittedByGuard': value['submittedByGuard'],
|
|
187
|
+
'videosCount': value['videosCount'],
|
|
180
188
|
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
181
189
|
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
182
190
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RegisterGroupedByRosterResource
|
|
71
71
|
*/
|
|
72
|
-
finishDateTime
|
|
72
|
+
finishDateTime: Date;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<RegisterListResource>}
|
|
@@ -86,6 +86,7 @@ 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;
|
|
89
90
|
if (!('registers' in value) || value['registers'] === undefined) return false;
|
|
90
91
|
return true;
|
|
91
92
|
}
|
|
@@ -105,7 +106,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
|
|
|
105
106
|
'timezone': json['timezone'],
|
|
106
107
|
'state': json['state'],
|
|
107
108
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
108
|
-
'finishDateTime':
|
|
109
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
109
110
|
'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
|
|
110
111
|
};
|
|
111
112
|
}
|
|
@@ -126,7 +127,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
|
|
|
126
127
|
'timezone': value['timezone'],
|
|
127
128
|
'state': value['state'],
|
|
128
129
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
129
|
-
'finishDateTime':
|
|
130
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
130
131
|
'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
|
|
131
132
|
};
|
|
132
133
|
}
|
|
@@ -159,13 +159,13 @@ 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}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLong
|
|
168
|
+
signOffLong: number;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {boolean}
|
|
@@ -208,6 +208,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
208
208
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
209
209
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
210
210
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
211
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
212
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
211
213
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
212
214
|
return true;
|
|
213
215
|
}
|
|
@@ -242,8 +244,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
242
244
|
'firstAid': json['firstAid'],
|
|
243
245
|
'signOnLat': json['signOnLat'],
|
|
244
246
|
'signOnLong': json['signOnLong'],
|
|
245
|
-
'signOffLat': json['signOffLat']
|
|
246
|
-
'signOffLong': json['signOffLong']
|
|
247
|
+
'signOffLat': json['signOffLat'],
|
|
248
|
+
'signOffLong': json['signOffLong'],
|
|
247
249
|
'hasIncidents': json['hasIncidents'],
|
|
248
250
|
};
|
|
249
251
|
}
|
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -123,13 +123,13 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat?: number | null;
|
|
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}
|
|
@@ -193,7 +193,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
193
193
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
194
194
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
195
195
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
196
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
197
196
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
198
197
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
199
198
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -203,8 +202,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
203
202
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
204
203
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
205
204
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
206
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
207
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
208
205
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
209
206
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
210
207
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -226,7 +223,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
226
223
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
227
224
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
228
225
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
229
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
226
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
230
227
|
'signOffStatus': json['signOffStatus'],
|
|
231
228
|
'signOnSignature': json['signOnSignature'],
|
|
232
229
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -236,8 +233,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
236
233
|
'firstAidImage': json['firstAidImage'],
|
|
237
234
|
'signOnLat': json['signOnLat'],
|
|
238
235
|
'signOnLong': json['signOnLong'],
|
|
239
|
-
'signOffLat': json['signOffLat'],
|
|
240
|
-
'signOffLong': json['signOffLong'],
|
|
236
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
237
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
241
238
|
'licenceNumber': json['licenceNumber'],
|
|
242
239
|
'licenceExpiry': json['licenceExpiry'],
|
|
243
240
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -263,7 +260,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
263
260
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
264
261
|
'user': UserLiteResourceToJSON(value['user']),
|
|
265
262
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
266
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
263
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
267
264
|
'signOffStatus': value['signOffStatus'],
|
|
268
265
|
'signOnSignature': value['signOnSignature'],
|
|
269
266
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -115,7 +115,6 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
115
115
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
116
116
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
117
117
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
118
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
119
118
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
120
119
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
121
120
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -138,7 +137,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
138
137
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
139
138
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
140
139
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
141
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
140
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
142
141
|
'isCompliant': json['isCompliant'],
|
|
143
142
|
'isComplete': json['isComplete'],
|
|
144
143
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -162,7 +161,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
162
161
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
163
162
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
164
163
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
165
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
164
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
166
165
|
'isCompliant': value['isCompliant'],
|
|
167
166
|
'isComplete': value['isComplete'],
|
|
168
167
|
'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}
|
|
@@ -116,7 +116,6 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
116
116
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
117
117
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
118
118
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
119
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
120
119
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
121
120
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
122
121
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -138,7 +137,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
138
137
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
139
138
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
140
139
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
141
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
140
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
142
141
|
'isCompliant': json['isCompliant'],
|
|
143
142
|
'isComplete': json['isComplete'],
|
|
144
143
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -161,7 +160,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
161
160
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
162
161
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
163
162
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
164
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
163
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
165
164
|
'isCompliant': value['isCompliant'],
|
|
166
165
|
'isComplete': value['isComplete'],
|
|
167
166
|
'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}
|
|
@@ -123,6 +123,7 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
|
|
|
123
123
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
124
124
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
125
125
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
126
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
126
127
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
127
128
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
128
129
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -145,7 +146,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
145
146
|
'state': json['state'],
|
|
146
147
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
147
148
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
148
|
-
'finishDateTime':
|
|
149
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
149
150
|
'isCompliant': json['isCompliant'],
|
|
150
151
|
'isComplete': json['isComplete'],
|
|
151
152
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -169,7 +170,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
|
|
|
169
170
|
'state': value['state'],
|
|
170
171
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
171
172
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
172
|
-
'finishDateTime':
|
|
173
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
173
174
|
'isCompliant': value['isCompliant'],
|
|
174
175
|
'isComplete': value['isComplete'],
|
|
175
176
|
'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'],
|
|
@@ -43,6 +43,12 @@ export interface VenueLiteResource {
|
|
|
43
43
|
* @memberof VenueLiteResource
|
|
44
44
|
*/
|
|
45
45
|
timezone: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VenueLiteResource
|
|
50
|
+
*/
|
|
51
|
+
state: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -52,6 +58,7 @@ export function instanceOfVenueLiteResource(value: object): value is VenueLiteRe
|
|
|
52
58
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
59
|
if (!('venueCode' in value) || value['venueCode'] === undefined) return false;
|
|
54
60
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
61
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
55
62
|
return true;
|
|
56
63
|
}
|
|
57
64
|
|
|
@@ -69,6 +76,7 @@ export function VenueLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
69
76
|
'name': json['name'],
|
|
70
77
|
'venueCode': json['venueCode'],
|
|
71
78
|
'timezone': json['timezone'],
|
|
79
|
+
'state': json['state'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
82
|
|
|
@@ -87,6 +95,7 @@ export function VenueLiteResourceToJSONTyped(value?: VenueLiteResource | null, i
|
|
|
87
95
|
'name': value['name'],
|
|
88
96
|
'venueCode': value['venueCode'],
|
|
89
97
|
'timezone': value['timezone'],
|
|
98
|
+
'state': value['state'],
|
|
90
99
|
};
|
|
91
100
|
}
|
|
92
101
|
|