@digital8/security-registers-backend-ts-sdk 0.0.416 → 0.0.417
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +6 -2
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +7 -5
- package/package.json +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +3 -2
- package/src/models/RegisterListResource.ts +6 -4
- package/src/models/RegisterResource.ts +4 -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.417
|
|
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.417 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -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'],
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber: string;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {Date}
|
|
@@ -154,7 +154,7 @@ export interface RegisterListResource {
|
|
|
154
154
|
* @type {number}
|
|
155
155
|
* @memberof RegisterListResource
|
|
156
156
|
*/
|
|
157
|
-
signOffLong
|
|
157
|
+
signOffLong: number;
|
|
158
158
|
/**
|
|
159
159
|
*
|
|
160
160
|
* @type {boolean}
|
|
@@ -43,6 +43,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
47
|
+
return false;
|
|
46
48
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined)
|
|
47
49
|
return false;
|
|
48
50
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -69,6 +71,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
69
71
|
return false;
|
|
70
72
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
71
73
|
return false;
|
|
74
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
75
|
+
return false;
|
|
72
76
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
73
77
|
return false;
|
|
74
78
|
return true;
|
|
@@ -88,7 +92,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
92
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
89
93
|
'shiftLength': json['shiftLength'],
|
|
90
94
|
'signOffStatus': json['signOffStatus'],
|
|
91
|
-
'badgeNumber': json['badgeNumber']
|
|
95
|
+
'badgeNumber': json['badgeNumber'],
|
|
92
96
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
93
97
|
'licenceNumber': json['licenceNumber'],
|
|
94
98
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -103,7 +107,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
103
107
|
'signOnLat': json['signOnLat'],
|
|
104
108
|
'signOnLong': json['signOnLong'],
|
|
105
109
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
106
|
-
'signOffLong': json['signOffLong']
|
|
110
|
+
'signOffLong': json['signOffLong'],
|
|
107
111
|
'hasIncidents': json['hasIncidents'],
|
|
108
112
|
};
|
|
109
113
|
}
|
|
@@ -39,6 +39,8 @@ function instanceOfRegisterResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
43
45
|
return false;
|
|
44
46
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
|
|
@@ -81,7 +83,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
83
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
82
84
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
83
85
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
84
|
-
'finishDateTime':
|
|
86
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
85
87
|
'signOffStatus': json['signOffStatus'],
|
|
86
88
|
'signOnSignature': json['signOnSignature'],
|
|
87
89
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -107,7 +109,7 @@ function RegisterResourceToJSON(json) {
|
|
|
107
109
|
return RegisterResourceToJSONTyped(json, false);
|
|
108
110
|
}
|
|
109
111
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
110
|
-
var _a, _b
|
|
112
|
+
var _a, _b;
|
|
111
113
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
112
114
|
if (value == null) {
|
|
113
115
|
return value;
|
|
@@ -117,7 +119,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
117
119
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
118
120
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
119
121
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
120
|
-
'finishDateTime':
|
|
122
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
121
123
|
'signOffStatus': value['signOffStatus'],
|
|
122
124
|
'signOnSignature': value['signOnSignature'],
|
|
123
125
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -135,7 +137,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
135
137
|
'licenceLastName': value['licenceLastName'],
|
|
136
138
|
'badgeNumber': value['badgeNumber'],
|
|
137
139
|
'rampReadAt': ((value['rampReadAt']).toISOString()),
|
|
138
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
139
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
140
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
141
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
140
142
|
};
|
|
141
143
|
}
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,7 +80,6 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
84
83
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
84
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
86
85
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'addressLine1': json['addressLine1'],
|
|
105
|
-
'addressLine2': json['addressLine2'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
106
105
|
'suburb': json['suburb'],
|
|
107
106
|
'city': json['city'],
|
|
108
107
|
'state': json['state'],
|
|
@@ -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'],
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber: string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {Date}
|
|
@@ -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}
|
|
@@ -201,6 +201,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
201
201
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
202
202
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
203
203
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
204
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
204
205
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
|
|
205
206
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
206
207
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -214,6 +215,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
214
215
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
215
216
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
216
217
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
218
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
217
219
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
218
220
|
return true;
|
|
219
221
|
}
|
|
@@ -235,7 +237,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
235
237
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
236
238
|
'shiftLength': json['shiftLength'],
|
|
237
239
|
'signOffStatus': json['signOffStatus'],
|
|
238
|
-
'badgeNumber': json['badgeNumber']
|
|
240
|
+
'badgeNumber': json['badgeNumber'],
|
|
239
241
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
240
242
|
'licenceNumber': json['licenceNumber'],
|
|
241
243
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -250,7 +252,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
250
252
|
'signOnLat': json['signOnLat'],
|
|
251
253
|
'signOnLong': json['signOnLong'],
|
|
252
254
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
253
|
-
'signOffLong': json['signOffLong']
|
|
255
|
+
'signOffLong': json['signOffLong'],
|
|
254
256
|
'hasIncidents': json['hasIncidents'],
|
|
255
257
|
};
|
|
256
258
|
}
|
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -199,6 +199,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
199
199
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
200
200
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
201
201
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
202
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
202
203
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
203
204
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
204
205
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -230,7 +231,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
230
231
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
231
232
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
232
233
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
233
|
-
'finishDateTime':
|
|
234
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
234
235
|
'signOffStatus': json['signOffStatus'],
|
|
235
236
|
'signOnSignature': json['signOnSignature'],
|
|
236
237
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -268,7 +269,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
268
269
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
269
270
|
'user': UserLiteResourceToJSON(value['user']),
|
|
270
271
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
271
|
-
'finishDateTime':
|
|
272
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
272
273
|
'signOffStatus': value['signOffStatus'],
|
|
273
274
|
'signOnSignature': value['signOnSignature'],
|
|
274
275
|
'signOffSignature': value['signOffSignature'],
|