@digital8/security-registers-backend-ts-sdk 0.0.673 → 0.0.675
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/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- 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/package.json +1 -1
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.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.675
|
|
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.675 --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)
|
|
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'filePath': json['filePath'],
|
|
51
53
|
'fileName': json['fileName'],
|
|
52
54
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText']
|
|
55
|
+
'altText': json['altText'],
|
|
54
56
|
'index': json['index'],
|
|
55
57
|
'fileId': json['fileId'],
|
|
56
58
|
'isExternal': json['isExternal'],
|
|
@@ -26,6 +26,8 @@ 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;
|
|
29
31
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return {
|
|
43
45
|
'fileId': json['file_id'],
|
|
44
46
|
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text']
|
|
47
|
+
'altText': json['alt_text'],
|
|
46
48
|
'assetId': json['asset_id'],
|
|
47
49
|
'url': json['url'],
|
|
48
50
|
};
|
|
@@ -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 (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
73
|
-
return false;
|
|
74
72
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
75
73
|
return false;
|
|
76
74
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
@@ -107,7 +105,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
105
|
'firstAid': json['firstAid'],
|
|
108
106
|
'signOnLat': json['signOnLat'],
|
|
109
107
|
'signOnLong': json['signOnLong'],
|
|
110
|
-
'signOffLat': json['signOffLat'],
|
|
108
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
111
109
|
'signOffLong': json['signOffLong'],
|
|
112
110
|
'hasIncidents': json['hasIncidents'],
|
|
113
111
|
};
|
|
@@ -61,8 +61,6 @@ function instanceOfRegisterResource(value) {
|
|
|
61
61
|
return false;
|
|
62
62
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
63
63
|
return false;
|
|
64
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
|
-
return false;
|
|
66
64
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
67
65
|
return false;
|
|
68
66
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -99,7 +97,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
99
97
|
'signOnLat': json['signOnLat'],
|
|
100
98
|
'signOnLong': json['signOnLong'],
|
|
101
99
|
'signOffLat': json['signOffLat'],
|
|
102
|
-
'signOffLong': json['signOffLong'],
|
|
100
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
103
101
|
'licenceNumber': json['licenceNumber'],
|
|
104
102
|
'licenceExpiry': json['licenceExpiry'],
|
|
105
103
|
'licenceFirstName': json['licenceFirstName'],
|
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}
|
|
@@ -83,6 +83,7 @@ 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;
|
|
86
87
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
87
88
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
88
89
|
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
@@ -103,7 +104,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
103
104
|
'filePath': json['filePath'],
|
|
104
105
|
'fileName': json['fileName'],
|
|
105
106
|
'mimeType': json['mimeType'],
|
|
106
|
-
'altText': json['altText']
|
|
107
|
+
'altText': json['altText'],
|
|
107
108
|
'index': json['index'],
|
|
108
109
|
'fileId': json['fileId'],
|
|
109
110
|
'isExternal': json['isExternal'],
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ 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;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -171,7 +171,7 @@ export interface RegisterListResource {
|
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLat
|
|
174
|
+
signOffLat?: number | null;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {number}
|
|
@@ -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 (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
224
223
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
225
224
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
226
225
|
return true;
|
|
@@ -258,7 +257,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
258
257
|
'firstAid': json['firstAid'],
|
|
259
258
|
'signOnLat': json['signOnLat'],
|
|
260
259
|
'signOnLong': json['signOnLong'],
|
|
261
|
-
'signOffLat': json['signOffLat'],
|
|
260
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
262
261
|
'signOffLong': json['signOffLong'],
|
|
263
262
|
'hasIncidents': json['hasIncidents'],
|
|
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}
|
|
@@ -216,7 +216,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
216
216
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
217
217
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
218
218
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
219
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
220
219
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
221
220
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
222
221
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -251,7 +250,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
251
250
|
'signOnLat': json['signOnLat'],
|
|
252
251
|
'signOnLong': json['signOnLong'],
|
|
253
252
|
'signOffLat': json['signOffLat'],
|
|
254
|
-
'signOffLong': json['signOffLong'],
|
|
253
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
255
254
|
'licenceNumber': json['licenceNumber'],
|
|
256
255
|
'licenceExpiry': json['licenceExpiry'],
|
|
257
256
|
'licenceFirstName': json['licenceFirstName'],
|