@digital8/security-registers-backend-ts-sdk 0.0.531 → 0.0.533
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/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/RegisterListResource.d.ts +7 -1
- package/dist/models/RegisterListResource.js +5 -3
- package/dist/models/RegisterResource.d.ts +6 -0
- package/dist/models/RegisterResource.js +4 -0
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/package.json +1 -1
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/RegisterListResource.ts +11 -3
- package/src/models/RegisterResource.ts +9 -0
- 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.533
|
|
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.533 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
return {
|
|
45
43
|
'fileId': json['file_id'],
|
|
46
44
|
'mimeType': json['mime_type'],
|
|
47
|
-
'altText': json['alt_text'],
|
|
45
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
48
46
|
'assetId': json['asset_id'],
|
|
49
47
|
'url': json['url'],
|
|
50
48
|
};
|
|
@@ -107,6 +107,12 @@ export interface RegisterListResource {
|
|
|
107
107
|
* @memberof RegisterListResource
|
|
108
108
|
*/
|
|
109
109
|
signOffSignature: object;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {object}
|
|
113
|
+
* @memberof RegisterListResource
|
|
114
|
+
*/
|
|
115
|
+
rampReadSignature: object;
|
|
110
116
|
/**
|
|
111
117
|
*
|
|
112
118
|
* @type {object}
|
|
@@ -148,7 +154,7 @@ export interface RegisterListResource {
|
|
|
148
154
|
* @type {number}
|
|
149
155
|
* @memberof RegisterListResource
|
|
150
156
|
*/
|
|
151
|
-
signOffLat
|
|
157
|
+
signOffLat?: number | null;
|
|
152
158
|
/**
|
|
153
159
|
*
|
|
154
160
|
* @type {number}
|
|
@@ -55,6 +55,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
55
55
|
return false;
|
|
56
56
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined)
|
|
57
57
|
return false;
|
|
58
|
+
if (!('rampReadSignature' in value) || value['rampReadSignature'] === undefined)
|
|
59
|
+
return false;
|
|
58
60
|
if (!('licenceFront' in value) || value['licenceFront'] === undefined)
|
|
59
61
|
return false;
|
|
60
62
|
if (!('licenceBack' in value) || value['licenceBack'] === undefined)
|
|
@@ -67,8 +69,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
67
69
|
return false;
|
|
68
70
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
69
71
|
return false;
|
|
70
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
71
|
-
return false;
|
|
72
72
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
73
73
|
return false;
|
|
74
74
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
@@ -98,13 +98,14 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
98
98
|
'licenceExpiry': json['licenceExpiry'],
|
|
99
99
|
'signOnSignature': json['signOnSignature'],
|
|
100
100
|
'signOffSignature': json['signOffSignature'],
|
|
101
|
+
'rampReadSignature': json['rampReadSignature'],
|
|
101
102
|
'licenceFront': json['licenceFront'],
|
|
102
103
|
'licenceBack': json['licenceBack'],
|
|
103
104
|
'rsa': json['rsa'],
|
|
104
105
|
'firstAid': json['firstAid'],
|
|
105
106
|
'signOnLat': json['signOnLat'],
|
|
106
107
|
'signOnLong': json['signOnLong'],
|
|
107
|
-
'signOffLat': json['signOffLat'],
|
|
108
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
108
109
|
'signOffLong': json['signOffLong'],
|
|
109
110
|
'hasIncidents': json['hasIncidents'],
|
|
110
111
|
};
|
|
@@ -134,6 +135,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
134
135
|
'licenceExpiry': value['licenceExpiry'],
|
|
135
136
|
'signOnSignature': value['signOnSignature'],
|
|
136
137
|
'signOffSignature': value['signOffSignature'],
|
|
138
|
+
'rampReadSignature': value['rampReadSignature'],
|
|
137
139
|
'licenceFront': value['licenceFront'],
|
|
138
140
|
'licenceBack': value['licenceBack'],
|
|
139
141
|
'rsa': value['rsa'],
|
|
@@ -45,6 +45,8 @@ function instanceOfRegisterResource(value) {
|
|
|
45
45
|
return false;
|
|
46
46
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined)
|
|
47
47
|
return false;
|
|
48
|
+
if (!('rampReadSignature' in value) || value['rampReadSignature'] === undefined)
|
|
49
|
+
return false;
|
|
48
50
|
if (!('licenceFront' in value) || value['licenceFront'] === undefined)
|
|
49
51
|
return false;
|
|
50
52
|
if (!('licenceBack' in value) || value['licenceBack'] === undefined)
|
|
@@ -85,6 +87,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
87
|
'signOffStatus': json['signOffStatus'],
|
|
86
88
|
'signOnSignature': json['signOnSignature'],
|
|
87
89
|
'signOffSignature': json['signOffSignature'],
|
|
90
|
+
'rampReadSignature': json['rampReadSignature'],
|
|
88
91
|
'licenceFront': json['licenceFront'],
|
|
89
92
|
'licenceBack': json['licenceBack'],
|
|
90
93
|
'rsaImage': json['rsaImage'],
|
|
@@ -121,6 +124,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
121
124
|
'signOffStatus': value['signOffStatus'],
|
|
122
125
|
'signOnSignature': value['signOnSignature'],
|
|
123
126
|
'signOffSignature': value['signOffSignature'],
|
|
127
|
+
'rampReadSignature': value['rampReadSignature'],
|
|
124
128
|
'licenceFront': value['licenceFront'],
|
|
125
129
|
'licenceBack': value['licenceBack'],
|
|
126
130
|
'rsaImage': value['rsaImage'],
|
|
@@ -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
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
60
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
61
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
75
74
|
|
|
76
75
|
'fileId': json['file_id'],
|
|
77
76
|
'mimeType': json['mime_type'],
|
|
78
|
-
'altText': json['alt_text'],
|
|
77
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
79
78
|
'assetId': json['asset_id'],
|
|
80
79
|
'url': json['url'],
|
|
81
80
|
};
|
|
@@ -124,6 +124,12 @@ export interface RegisterListResource {
|
|
|
124
124
|
* @memberof RegisterListResource
|
|
125
125
|
*/
|
|
126
126
|
signOffSignature: object;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {object}
|
|
130
|
+
* @memberof RegisterListResource
|
|
131
|
+
*/
|
|
132
|
+
rampReadSignature: object;
|
|
127
133
|
/**
|
|
128
134
|
*
|
|
129
135
|
* @type {object}
|
|
@@ -165,7 +171,7 @@ export interface RegisterListResource {
|
|
|
165
171
|
* @type {number}
|
|
166
172
|
* @memberof RegisterListResource
|
|
167
173
|
*/
|
|
168
|
-
signOffLat
|
|
174
|
+
signOffLat?: number | null;
|
|
169
175
|
/**
|
|
170
176
|
*
|
|
171
177
|
* @type {number}
|
|
@@ -207,13 +213,13 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
207
213
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
208
214
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
209
215
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
216
|
+
if (!('rampReadSignature' in value) || value['rampReadSignature'] === undefined) return false;
|
|
210
217
|
if (!('licenceFront' in value) || value['licenceFront'] === undefined) return false;
|
|
211
218
|
if (!('licenceBack' in value) || value['licenceBack'] === undefined) return false;
|
|
212
219
|
if (!('rsa' in value) || value['rsa'] === undefined) return false;
|
|
213
220
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
214
221
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
215
222
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
216
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
217
223
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
218
224
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
219
225
|
return true;
|
|
@@ -244,13 +250,14 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
244
250
|
'licenceExpiry': json['licenceExpiry'],
|
|
245
251
|
'signOnSignature': json['signOnSignature'],
|
|
246
252
|
'signOffSignature': json['signOffSignature'],
|
|
253
|
+
'rampReadSignature': json['rampReadSignature'],
|
|
247
254
|
'licenceFront': json['licenceFront'],
|
|
248
255
|
'licenceBack': json['licenceBack'],
|
|
249
256
|
'rsa': json['rsa'],
|
|
250
257
|
'firstAid': json['firstAid'],
|
|
251
258
|
'signOnLat': json['signOnLat'],
|
|
252
259
|
'signOnLong': json['signOnLong'],
|
|
253
|
-
'signOffLat': json['signOffLat'],
|
|
260
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
254
261
|
'signOffLong': json['signOffLong'],
|
|
255
262
|
'hasIncidents': json['hasIncidents'],
|
|
256
263
|
};
|
|
@@ -282,6 +289,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
282
289
|
'licenceExpiry': value['licenceExpiry'],
|
|
283
290
|
'signOnSignature': value['signOnSignature'],
|
|
284
291
|
'signOffSignature': value['signOffSignature'],
|
|
292
|
+
'rampReadSignature': value['rampReadSignature'],
|
|
285
293
|
'licenceFront': value['licenceFront'],
|
|
286
294
|
'licenceBack': value['licenceBack'],
|
|
287
295
|
'rsa': value['rsa'],
|
|
@@ -82,6 +82,12 @@ export interface RegisterResource {
|
|
|
82
82
|
* @memberof RegisterResource
|
|
83
83
|
*/
|
|
84
84
|
signOffSignature: object;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {object}
|
|
88
|
+
* @memberof RegisterResource
|
|
89
|
+
*/
|
|
90
|
+
rampReadSignature: object;
|
|
85
91
|
/**
|
|
86
92
|
*
|
|
87
93
|
* @type {object}
|
|
@@ -202,6 +208,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
202
208
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
203
209
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
204
210
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
211
|
+
if (!('rampReadSignature' in value) || value['rampReadSignature'] === undefined) return false;
|
|
205
212
|
if (!('licenceFront' in value) || value['licenceFront'] === undefined) return false;
|
|
206
213
|
if (!('licenceBack' in value) || value['licenceBack'] === undefined) return false;
|
|
207
214
|
if (!('rsaImage' in value) || value['rsaImage'] === undefined) return false;
|
|
@@ -234,6 +241,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
234
241
|
'signOffStatus': json['signOffStatus'],
|
|
235
242
|
'signOnSignature': json['signOnSignature'],
|
|
236
243
|
'signOffSignature': json['signOffSignature'],
|
|
244
|
+
'rampReadSignature': json['rampReadSignature'],
|
|
237
245
|
'licenceFront': json['licenceFront'],
|
|
238
246
|
'licenceBack': json['licenceBack'],
|
|
239
247
|
'rsaImage': json['rsaImage'],
|
|
@@ -272,6 +280,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
272
280
|
'signOffStatus': value['signOffStatus'],
|
|
273
281
|
'signOnSignature': value['signOnSignature'],
|
|
274
282
|
'signOffSignature': value['signOffSignature'],
|
|
283
|
+
'rampReadSignature': value['rampReadSignature'],
|
|
275
284
|
'licenceFront': value['licenceFront'],
|
|
276
285
|
'licenceBack': value['licenceBack'],
|
|
277
286
|
'rsaImage': value['rsaImage'],
|
|
@@ -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'],
|