@digital8/security-registers-backend-ts-sdk 0.0.472 → 0.0.474
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 +1 -3
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +3 -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 +2 -3
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/RegisterListResource.ts +5 -5
- 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.474
|
|
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.474 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -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'],
|
|
@@ -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
|
};
|
|
@@ -148,13 +148,13 @@ export interface RegisterListResource {
|
|
|
148
148
|
* @type {number}
|
|
149
149
|
* @memberof RegisterListResource
|
|
150
150
|
*/
|
|
151
|
-
signOffLat
|
|
151
|
+
signOffLat?: number | null;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {number}
|
|
155
155
|
* @memberof RegisterListResource
|
|
156
156
|
*/
|
|
157
|
-
signOffLong
|
|
157
|
+
signOffLong: number;
|
|
158
158
|
/**
|
|
159
159
|
*
|
|
160
160
|
* @type {boolean}
|
|
@@ -67,7 +67,7 @@ function instanceOfRegisterListResource(value) {
|
|
|
67
67
|
return false;
|
|
68
68
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
69
69
|
return false;
|
|
70
|
-
if (!('
|
|
70
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
71
71
|
return false;
|
|
72
72
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
73
73
|
return false;
|
|
@@ -102,8 +102,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
102
|
'firstAid': json['firstAid'],
|
|
103
103
|
'signOnLat': json['signOnLat'],
|
|
104
104
|
'signOnLong': json['signOnLong'],
|
|
105
|
-
'signOffLat': json['signOffLat'],
|
|
106
|
-
'signOffLong': json['signOffLong']
|
|
105
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
106
|
+
'signOffLong': json['signOffLong'],
|
|
107
107
|
'hasIncidents': json['hasIncidents'],
|
|
108
108
|
};
|
|
109
109
|
}
|
|
@@ -57,8 +57,6 @@ 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;
|
|
62
60
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
63
61
|
return false;
|
|
64
62
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -93,7 +91,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
91
|
'firstAidImage': json['firstAidImage'],
|
|
94
92
|
'signOnLat': json['signOnLat'],
|
|
95
93
|
'signOnLong': json['signOnLong'],
|
|
96
|
-
'signOffLat': json['signOffLat'],
|
|
94
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
97
95
|
'signOffLong': json['signOffLong'],
|
|
98
96
|
'licenceNumber': json['licenceNumber'],
|
|
99
97
|
'licenceExpiry': json['licenceExpiry'],
|
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 | 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'],
|
|
@@ -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
|
};
|
|
@@ -165,13 +165,13 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLat
|
|
168
|
+
signOffLat?: number | null;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {number}
|
|
172
172
|
* @memberof RegisterListResource
|
|
173
173
|
*/
|
|
174
|
-
signOffLong
|
|
174
|
+
signOffLong: number;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {boolean}
|
|
@@ -213,7 +213,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
213
213
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
214
214
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
215
215
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
216
|
-
if (!('
|
|
216
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
217
217
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
218
218
|
return true;
|
|
219
219
|
}
|
|
@@ -249,8 +249,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
249
249
|
'firstAid': json['firstAid'],
|
|
250
250
|
'signOnLat': json['signOnLat'],
|
|
251
251
|
'signOnLong': json['signOnLong'],
|
|
252
|
-
'signOffLat': json['signOffLat'],
|
|
253
|
-
'signOffLong': json['signOffLong']
|
|
252
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
253
|
+
'signOffLong': json['signOffLong'],
|
|
254
254
|
'hasIncidents': json['hasIncidents'],
|
|
255
255
|
};
|
|
256
256
|
}
|
|
@@ -123,7 +123,7 @@ 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}
|
|
@@ -208,7 +208,6 @@ 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;
|
|
212
211
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
213
212
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
214
213
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
@@ -241,7 +240,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
241
240
|
'firstAidImage': json['firstAidImage'],
|
|
242
241
|
'signOnLat': json['signOnLat'],
|
|
243
242
|
'signOnLong': json['signOnLong'],
|
|
244
|
-
'signOffLat': json['signOffLat'],
|
|
243
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
245
244
|
'signOffLong': json['signOffLong'],
|
|
246
245
|
'licenceNumber': json['licenceNumber'],
|
|
247
246
|
'licenceExpiry': json['licenceExpiry'],
|