@digital8/security-registers-backend-ts-sdk 0.0.652 → 0.0.653
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/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/package.json +1 -1
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.653
|
|
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.653 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -69,8 +69,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
69
69
|
return false;
|
|
70
70
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
71
71
|
return false;
|
|
72
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
73
|
-
return false;
|
|
74
72
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
75
73
|
return false;
|
|
76
74
|
return true;
|
|
@@ -106,7 +104,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
106
104
|
'signOnLat': json['signOnLat'],
|
|
107
105
|
'signOnLong': json['signOnLong'],
|
|
108
106
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
109
|
-
'signOffLong': json['signOffLong'],
|
|
107
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
110
108
|
'hasIncidents': json['hasIncidents'],
|
|
111
109
|
};
|
|
112
110
|
}
|
|
@@ -59,8 +59,6 @@ function instanceOfRegisterResource(value) {
|
|
|
59
59
|
return false;
|
|
60
60
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
61
|
return false;
|
|
62
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
63
|
-
return false;
|
|
64
62
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
65
63
|
return false;
|
|
66
64
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -97,7 +95,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
95
|
'signOnLat': json['signOnLat'],
|
|
98
96
|
'signOnLong': json['signOnLong'],
|
|
99
97
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
100
|
-
'signOffLong': json['signOffLong'],
|
|
98
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
101
99
|
'licenceNumber': json['licenceNumber'],
|
|
102
100
|
'licenceExpiry': json['licenceExpiry'],
|
|
103
101
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -25,6 +25,8 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
return {
|
|
44
46
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
47
|
'name': json['name'],
|
|
46
|
-
'email': json['email']
|
|
48
|
+
'email': json['email'],
|
|
47
49
|
'isEnabled': json['isEnabled'],
|
|
48
50
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
49
51
|
'licenceNumber': json['licenceNumber'],
|
package/package.json
CHANGED
|
@@ -177,7 +177,7 @@ export interface RegisterListResource {
|
|
|
177
177
|
* @type {number}
|
|
178
178
|
* @memberof RegisterListResource
|
|
179
179
|
*/
|
|
180
|
-
signOffLong
|
|
180
|
+
signOffLong?: number | null;
|
|
181
181
|
/**
|
|
182
182
|
*
|
|
183
183
|
* @type {boolean}
|
|
@@ -220,7 +220,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
220
220
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
221
221
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
222
222
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
223
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
224
223
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
225
224
|
return true;
|
|
226
225
|
}
|
|
@@ -258,7 +257,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
258
257
|
'signOnLat': json['signOnLat'],
|
|
259
258
|
'signOnLong': json['signOnLong'],
|
|
260
259
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
261
|
-
'signOffLong': json['signOffLong'],
|
|
260
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
262
261
|
'hasIncidents': json['hasIncidents'],
|
|
263
262
|
};
|
|
264
263
|
}
|
|
@@ -135,7 +135,7 @@ export interface RegisterResource {
|
|
|
135
135
|
* @type {number}
|
|
136
136
|
* @memberof RegisterResource
|
|
137
137
|
*/
|
|
138
|
-
signOffLong
|
|
138
|
+
signOffLong?: number | null;
|
|
139
139
|
/**
|
|
140
140
|
*
|
|
141
141
|
* @type {string}
|
|
@@ -215,7 +215,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
215
215
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
216
216
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
217
217
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
218
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
219
218
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
220
219
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
221
220
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -250,7 +249,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
250
249
|
'signOnLat': json['signOnLat'],
|
|
251
250
|
'signOnLong': json['signOnLong'],
|
|
252
251
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
253
|
-
'signOffLong': json['signOffLong'],
|
|
252
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
254
253
|
'licenceNumber': json['licenceNumber'],
|
|
255
254
|
'licenceExpiry': json['licenceExpiry'],
|
|
256
255
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -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'],
|