@digital8/security-registers-backend-ts-sdk 0.0.353 → 0.0.354
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/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.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 +3 -3
- package/dist/models/RegisterResource.js +8 -10
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/package.json +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +8 -9
- package/src/models/RosterLiteResource.ts +3 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.354
|
|
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.354 --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'],
|
|
@@ -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)
|
|
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'filePath': json['filePath'],
|
|
53
51
|
'fileName': json['fileName'],
|
|
54
52
|
'mimeType': json['mimeType'],
|
|
55
|
-
'altText': json['altText'],
|
|
53
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
56
54
|
'index': json['index'],
|
|
57
55
|
'fileId': json['fileId'],
|
|
58
56
|
'isExternal': json['isExternal'],
|
|
@@ -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
|
}
|
|
@@ -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 {Date}
|
|
@@ -148,7 +148,7 @@ export interface RegisterListResource {
|
|
|
148
148
|
* @type {number}
|
|
149
149
|
* @memberof RegisterListResource
|
|
150
150
|
*/
|
|
151
|
-
signOffLat
|
|
151
|
+
signOffLat: number;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {number}
|
|
@@ -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 (!('rampReadAt' in value) || value['rampReadAt'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -64,6 +62,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
64
62
|
return false;
|
|
65
63
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
66
64
|
return false;
|
|
65
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
66
|
+
return false;
|
|
67
67
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
68
68
|
return false;
|
|
69
69
|
return true;
|
|
@@ -83,7 +83,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
83
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
84
84
|
'shiftLength': json['shiftLength'],
|
|
85
85
|
'signOffStatus': json['signOffStatus'],
|
|
86
|
-
'badgeNumber': json['badgeNumber'],
|
|
86
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
87
87
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
88
88
|
'licenceNumber': json['licenceNumber'],
|
|
89
89
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -97,7 +97,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
97
|
'firstAid': json['firstAid'],
|
|
98
98
|
'signOnLat': json['signOnLat'],
|
|
99
99
|
'signOnLong': json['signOnLong'],
|
|
100
|
-
'signOffLat': json['signOffLat']
|
|
100
|
+
'signOffLat': json['signOffLat'],
|
|
101
101
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
102
102
|
'hasIncidents': json['hasIncidents'],
|
|
103
103
|
};
|
|
@@ -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;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -30,8 +30,6 @@ function instanceOfRegisterResource(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 (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
|
|
@@ -50,7 +48,7 @@ function instanceOfRegisterResource(value) {
|
|
|
50
48
|
return false;
|
|
51
49
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
52
50
|
return false;
|
|
53
|
-
if (!('
|
|
51
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
54
52
|
return false;
|
|
55
53
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
56
54
|
return false;
|
|
@@ -76,7 +74,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
77
75
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
78
76
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
79
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
77
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
80
78
|
'signOffStatus': json['signOffStatus'],
|
|
81
79
|
'signOnSignature': json['signOnSignature'],
|
|
82
80
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -86,8 +84,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
84
|
'firstAidImage': json['firstAidImage'],
|
|
87
85
|
'signOnLat': json['signOnLat'],
|
|
88
86
|
'signOnLong': json['signOnLong'],
|
|
89
|
-
'signOffLat': json['signOffLat'],
|
|
90
|
-
'signOffLong': json['signOffLong']
|
|
87
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
88
|
+
'signOffLong': json['signOffLong'],
|
|
91
89
|
'licenceNumber': json['licenceNumber'],
|
|
92
90
|
'licenceExpiry': json['licenceExpiry'],
|
|
93
91
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -102,7 +100,7 @@ function RegisterResourceToJSON(json) {
|
|
|
102
100
|
return RegisterResourceToJSONTyped(json, false);
|
|
103
101
|
}
|
|
104
102
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
105
|
-
var _a, _b;
|
|
103
|
+
var _a, _b, _c;
|
|
106
104
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
107
105
|
if (value == null) {
|
|
108
106
|
return value;
|
|
@@ -112,7 +110,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
112
110
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
113
111
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
114
112
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
115
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
113
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
116
114
|
'signOffStatus': value['signOffStatus'],
|
|
117
115
|
'signOnSignature': value['signOnSignature'],
|
|
118
116
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -130,7 +128,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
130
128
|
'licenceLastName': value['licenceLastName'],
|
|
131
129
|
'badgeNumber': value['badgeNumber'],
|
|
132
130
|
'rampReadAt': ((value['rampReadAt']).toISOString()),
|
|
133
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
134
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
131
|
+
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
132
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
135
133
|
};
|
|
136
134
|
}
|
|
@@ -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
|
}
|
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'],
|
|
@@ -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}
|
|
@@ -83,7 +83,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
83
83
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
84
84
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
85
85
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
86
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
87
86
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
88
87
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
89
88
|
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
104
103
|
'filePath': json['filePath'],
|
|
105
104
|
'fileName': json['fileName'],
|
|
106
105
|
'mimeType': json['mimeType'],
|
|
107
|
-
'altText': json['altText'],
|
|
106
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
108
107
|
'index': json['index'],
|
|
109
108
|
'fileId': json['fileId'],
|
|
110
109
|
'isExternal': json['isExternal'],
|
|
@@ -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
|
}
|
|
@@ -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 {Date}
|
|
@@ -165,7 +165,7 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLat
|
|
168
|
+
signOffLat: number;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {number}
|
|
@@ -190,7 +190,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
190
190
|
if (!('finishDateTime' in value) || value['finishDateTime'] === 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;
|
|
194
193
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
|
|
195
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
195
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -204,6 +203,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
204
203
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
205
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
206
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
206
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
207
207
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
208
208
|
return true;
|
|
209
209
|
}
|
|
@@ -225,7 +225,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
225
225
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
226
226
|
'shiftLength': json['shiftLength'],
|
|
227
227
|
'signOffStatus': json['signOffStatus'],
|
|
228
|
-
'badgeNumber': json['badgeNumber'],
|
|
228
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
229
229
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
230
230
|
'licenceNumber': json['licenceNumber'],
|
|
231
231
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -239,7 +239,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
239
239
|
'firstAid': json['firstAid'],
|
|
240
240
|
'signOnLat': json['signOnLat'],
|
|
241
241
|
'signOnLong': json['signOnLong'],
|
|
242
|
-
'signOffLat': json['signOffLat']
|
|
242
|
+
'signOffLat': json['signOffLat'],
|
|
243
243
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
244
244
|
'hasIncidents': json['hasIncidents'],
|
|
245
245
|
};
|
|
@@ -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;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -187,7 +187,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
187
187
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
188
188
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
189
189
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
190
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
191
190
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
192
191
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
193
192
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -197,7 +196,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
197
196
|
if (!('firstAidImage' in value) || value['firstAidImage'] === 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 (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
202
201
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
203
202
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -220,7 +219,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
220
219
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
221
220
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
222
221
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
223
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
222
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
224
223
|
'signOffStatus': json['signOffStatus'],
|
|
225
224
|
'signOnSignature': json['signOnSignature'],
|
|
226
225
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -230,8 +229,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
230
229
|
'firstAidImage': json['firstAidImage'],
|
|
231
230
|
'signOnLat': json['signOnLat'],
|
|
232
231
|
'signOnLong': json['signOnLong'],
|
|
233
|
-
'signOffLat': json['signOffLat'],
|
|
234
|
-
'signOffLong': json['signOffLong']
|
|
232
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
233
|
+
'signOffLong': json['signOffLong'],
|
|
235
234
|
'licenceNumber': json['licenceNumber'],
|
|
236
235
|
'licenceExpiry': json['licenceExpiry'],
|
|
237
236
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -258,7 +257,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
258
257
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
259
258
|
'user': UserLiteResourceToJSON(value['user']),
|
|
260
259
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
261
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
260
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
262
261
|
'signOffStatus': value['signOffStatus'],
|
|
263
262
|
'signOnSignature': value['signOnSignature'],
|
|
264
263
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -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
|
|