@digital8/security-registers-backend-ts-sdk 0.0.530 → 0.0.531
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 +3 -1
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/package.json +1 -1
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/SecurityCompanyResource.ts +2 -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.531
|
|
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.531 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -69,6 +69,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
69
69
|
return false;
|
|
70
70
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
71
71
|
return false;
|
|
72
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
73
|
+
return false;
|
|
72
74
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
73
75
|
return false;
|
|
74
76
|
return true;
|
|
@@ -103,7 +105,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
105
|
'signOnLat': json['signOnLat'],
|
|
104
106
|
'signOnLong': json['signOnLong'],
|
|
105
107
|
'signOffLat': json['signOffLat'],
|
|
106
|
-
'signOffLong': json['signOffLong']
|
|
108
|
+
'signOffLong': json['signOffLong'],
|
|
107
109
|
'hasIncidents': json['hasIncidents'],
|
|
108
110
|
};
|
|
109
111
|
}
|
|
@@ -57,6 +57,8 @@ function instanceOfRegisterResource(value) {
|
|
|
57
57
|
return false;
|
|
58
58
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
59
59
|
return false;
|
|
60
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
61
|
+
return false;
|
|
60
62
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
61
63
|
return false;
|
|
62
64
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -89,7 +91,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
91
|
'firstAidImage': json['firstAidImage'],
|
|
90
92
|
'signOnLat': json['signOnLat'],
|
|
91
93
|
'signOnLong': json['signOnLong'],
|
|
92
|
-
'signOffLat': json['signOffLat']
|
|
94
|
+
'signOffLat': json['signOffLat'],
|
|
93
95
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
94
96
|
'licenceNumber': json['licenceNumber'],
|
|
95
97
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -25,8 +25,6 @@ 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;
|
|
30
28
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
return {
|
|
46
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
47
45
|
'name': json['name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'isEnabled': json['isEnabled'],
|
|
50
48
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
49
|
'licenceNumber': json['licenceNumber'],
|
package/package.json
CHANGED
|
@@ -171,7 +171,7 @@ export interface RegisterListResource {
|
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
174
|
+
signOffLong: number;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {boolean}
|
|
@@ -214,6 +214,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
214
214
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
215
215
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
216
216
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
217
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
217
218
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
218
219
|
return true;
|
|
219
220
|
}
|
|
@@ -250,7 +251,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
250
251
|
'signOnLat': json['signOnLat'],
|
|
251
252
|
'signOnLong': json['signOnLong'],
|
|
252
253
|
'signOffLat': json['signOffLat'],
|
|
253
|
-
'signOffLong': json['signOffLong']
|
|
254
|
+
'signOffLong': json['signOffLong'],
|
|
254
255
|
'hasIncidents': json['hasIncidents'],
|
|
255
256
|
};
|
|
256
257
|
}
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -208,6 +208,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
208
208
|
if (!('firstAidImage' in value) || value['firstAidImage'] === 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;
|
|
211
212
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
212
213
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
213
214
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -239,7 +240,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
239
240
|
'firstAidImage': json['firstAidImage'],
|
|
240
241
|
'signOnLat': json['signOnLat'],
|
|
241
242
|
'signOnLong': json['signOnLong'],
|
|
242
|
-
'signOffLat': json['signOffLat']
|
|
243
|
+
'signOffLat': json['signOffLat'],
|
|
243
244
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
244
245
|
'licenceNumber': json['licenceNumber'],
|
|
245
246
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ 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;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|