@digital8/security-registers-backend-ts-sdk 0.0.756 → 0.0.758
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 +3 -1
- package/dist/models/AuthRegisterGuardRequest.d.ts +1 -1
- package/dist/models/AuthRegisterGuardRequest.js +1 -3
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/UserRelationResource.d.ts +1 -1
- package/dist/models/UserRelationResource.js +1 -3
- package/dist/models/UserResource.d.ts +1 -1
- package/dist/models/UserResource.js +1 -3
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequest.ts +2 -3
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/UserRelationResource.ts +2 -3
- package/src/models/UserResource.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.758
|
|
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.758 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,6 +24,8 @@ 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;
|
|
27
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'addressLine1': json['addressLine1'],
|
|
51
|
-
'addressLine2': json['addressLine2']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -30,8 +30,6 @@ function instanceOfAuthRegisterGuardRequest(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('email' in value) || value['email'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('password' in value) || value['password'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('passwordConfirmation' in value) || value['passwordConfirmation'] === undefined)
|
|
@@ -53,7 +51,7 @@ function AuthRegisterGuardRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
51
|
'firstName': json['first_name'],
|
|
54
52
|
'lastName': json['last_name'],
|
|
55
53
|
'email': json['email'],
|
|
56
|
-
'mobile': json['mobile'],
|
|
54
|
+
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
57
55
|
'password': json['password'],
|
|
58
56
|
'passwordConfirmation': json['password_confirmation'],
|
|
59
57
|
'profileSignature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['profile_signature']),
|
|
@@ -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
|
-
signOffLat
|
|
157
|
+
signOffLat?: number | null;
|
|
158
158
|
/**
|
|
159
159
|
*
|
|
160
160
|
* @type {number}
|
|
@@ -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 (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
47
49
|
return false;
|
|
48
50
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -69,8 +71,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
69
71
|
return false;
|
|
70
72
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
71
73
|
return false;
|
|
72
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
73
|
-
return false;
|
|
74
74
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
75
75
|
return false;
|
|
76
76
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
@@ -92,7 +92,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
92
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
93
93
|
'shiftLength': json['shiftLength'],
|
|
94
94
|
'signOffStatus': json['signOffStatus'],
|
|
95
|
-
'badgeNumber': json['badgeNumber']
|
|
95
|
+
'badgeNumber': json['badgeNumber'],
|
|
96
96
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
97
97
|
'licenceNumber': json['licenceNumber'],
|
|
98
98
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -107,7 +107,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
107
|
'firstAid': json['firstAid'],
|
|
108
108
|
'signOnLat': json['signOnLat'],
|
|
109
109
|
'signOnLong': json['signOnLong'],
|
|
110
|
-
'signOffLat': json['signOffLat'],
|
|
110
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
111
111
|
'signOffLong': json['signOffLong'],
|
|
112
112
|
'hasIncidents': json['hasIncidents'],
|
|
113
113
|
};
|
|
@@ -59,6 +59,8 @@ function instanceOfRegisterResource(value) {
|
|
|
59
59
|
return false;
|
|
60
60
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
61
|
return false;
|
|
62
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
63
|
+
return false;
|
|
62
64
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
63
65
|
return false;
|
|
64
66
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -93,7 +95,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
95
|
'signOnLat': json['signOnLat'],
|
|
94
96
|
'signOnLong': json['signOnLong'],
|
|
95
97
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
96
|
-
'signOffLong': json['signOffLong']
|
|
98
|
+
'signOffLong': json['signOffLong'],
|
|
97
99
|
'licenceNumber': json['licenceNumber'],
|
|
98
100
|
'licenceExpiry': json['licenceExpiry'],
|
|
99
101
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -28,8 +28,6 @@ function instanceOfUserRelationResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
return true;
|
|
34
32
|
}
|
|
35
33
|
function UserRelationResourceFromJSON(json) {
|
|
@@ -43,7 +41,7 @@ function UserRelationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
41
|
'id': json['id'],
|
|
44
42
|
'fullName': json['fullName'],
|
|
45
43
|
'email': json['email'],
|
|
46
|
-
'phone': json['phone'],
|
|
44
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
47
45
|
};
|
|
48
46
|
}
|
|
49
47
|
function UserRelationResourceToJSON(json) {
|
|
@@ -36,8 +36,6 @@ function instanceOfUserResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('email' in value) || value['email'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('roles' in value) || value['roles'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('hasVenues' in value) || value['hasVenues'] === undefined)
|
|
@@ -69,7 +67,7 @@ function UserResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
67
|
'lastName': json['lastName'],
|
|
70
68
|
'fullName': json['fullName'],
|
|
71
69
|
'email': json['email'],
|
|
72
|
-
'mobile': json['mobile'],
|
|
70
|
+
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
73
71
|
'roles': json['roles'],
|
|
74
72
|
'hasVenues': json['hasVenues'],
|
|
75
73
|
'availableSchemaTypes': json['availableSchemaTypes'],
|
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;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ 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;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'state': json['state'],
|
|
@@ -57,7 +57,7 @@ export interface AuthRegisterGuardRequest {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof AuthRegisterGuardRequest
|
|
59
59
|
*/
|
|
60
|
-
mobile
|
|
60
|
+
mobile?: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -91,7 +91,6 @@ export function instanceOfAuthRegisterGuardRequest(value: object): value is Auth
|
|
|
91
91
|
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
92
92
|
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
93
93
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
94
|
-
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
95
94
|
if (!('password' in value) || value['password'] === undefined) return false;
|
|
96
95
|
if (!('passwordConfirmation' in value) || value['passwordConfirmation'] === undefined) return false;
|
|
97
96
|
if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
|
|
@@ -112,7 +111,7 @@ export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
112
111
|
'firstName': json['first_name'],
|
|
113
112
|
'lastName': json['last_name'],
|
|
114
113
|
'email': json['email'],
|
|
115
|
-
'mobile': json['mobile'],
|
|
114
|
+
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
116
115
|
'password': json['password'],
|
|
117
116
|
'passwordConfirmation': json['password_confirmation'],
|
|
118
117
|
'profileSignature': AuthRegisterGuardRequestProfileSignatureFromJSON(json['profile_signature']),
|
|
@@ -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
|
-
signOffLat
|
|
174
|
+
signOffLat?: number | null;
|
|
175
175
|
/**
|
|
176
176
|
*
|
|
177
177
|
* @type {number}
|
|
@@ -207,6 +207,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
207
207
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
208
208
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
209
209
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
210
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
210
211
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
211
212
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
212
213
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -220,7 +221,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
220
221
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
221
222
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
222
223
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
223
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
224
224
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
225
225
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
226
226
|
return true;
|
|
@@ -243,7 +243,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
243
243
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
244
244
|
'shiftLength': json['shiftLength'],
|
|
245
245
|
'signOffStatus': json['signOffStatus'],
|
|
246
|
-
'badgeNumber': json['badgeNumber']
|
|
246
|
+
'badgeNumber': json['badgeNumber'],
|
|
247
247
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
248
248
|
'licenceNumber': json['licenceNumber'],
|
|
249
249
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -258,7 +258,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
258
258
|
'firstAid': json['firstAid'],
|
|
259
259
|
'signOnLat': json['signOnLat'],
|
|
260
260
|
'signOnLong': json['signOnLong'],
|
|
261
|
-
'signOffLat': json['signOffLat'],
|
|
261
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
262
262
|
'signOffLong': json['signOffLong'],
|
|
263
263
|
'hasIncidents': json['hasIncidents'],
|
|
264
264
|
};
|
|
@@ -135,7 +135,7 @@ export interface RegisterResource {
|
|
|
135
135
|
* @type {number}
|
|
136
136
|
* @memberof RegisterResource
|
|
137
137
|
*/
|
|
138
|
-
signOffLong
|
|
138
|
+
signOffLong: number;
|
|
139
139
|
/**
|
|
140
140
|
*
|
|
141
141
|
* @type {string}
|
|
@@ -215,6 +215,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
215
215
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
216
216
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
217
217
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
218
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
218
219
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
219
220
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
220
221
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -248,7 +249,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
248
249
|
'signOnLat': json['signOnLat'],
|
|
249
250
|
'signOnLong': json['signOnLong'],
|
|
250
251
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
251
|
-
'signOffLong': json['signOffLong']
|
|
252
|
+
'signOffLong': json['signOffLong'],
|
|
252
253
|
'licenceNumber': json['licenceNumber'],
|
|
253
254
|
'licenceExpiry': json['licenceExpiry'],
|
|
254
255
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -42,7 +42,7 @@ export interface UserRelationResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof UserRelationResource
|
|
44
44
|
*/
|
|
45
|
-
phone
|
|
45
|
+
phone?: string | null;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -52,7 +52,6 @@ export function instanceOfUserRelationResource(value: object): value is UserRela
|
|
|
52
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
53
|
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
54
54
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
55
|
-
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
56
55
|
return true;
|
|
57
56
|
}
|
|
58
57
|
|
|
@@ -69,7 +68,7 @@ export function UserRelationResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
69
68
|
'id': json['id'],
|
|
70
69
|
'fullName': json['fullName'],
|
|
71
70
|
'email': json['email'],
|
|
72
|
-
'phone': json['phone'],
|
|
71
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
73
72
|
};
|
|
74
73
|
}
|
|
75
74
|
|
|
@@ -83,7 +83,7 @@ export interface UserResource {
|
|
|
83
83
|
* @type {string}
|
|
84
84
|
* @memberof UserResource
|
|
85
85
|
*/
|
|
86
|
-
mobile
|
|
86
|
+
mobile?: string | null;
|
|
87
87
|
/**
|
|
88
88
|
*
|
|
89
89
|
* @type {Array<string>}
|
|
@@ -155,7 +155,6 @@ export function instanceOfUserResource(value: object): value is UserResource {
|
|
|
155
155
|
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
156
156
|
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
157
157
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
158
|
-
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
159
158
|
if (!('roles' in value) || value['roles'] === undefined) return false;
|
|
160
159
|
if (!('hasVenues' in value) || value['hasVenues'] === undefined) return false;
|
|
161
160
|
if (!('availableSchemaTypes' in value) || value['availableSchemaTypes'] === undefined) return false;
|
|
@@ -182,7 +181,7 @@ export function UserResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
182
181
|
'lastName': json['lastName'],
|
|
183
182
|
'fullName': json['fullName'],
|
|
184
183
|
'email': json['email'],
|
|
185
|
-
'mobile': json['mobile'],
|
|
184
|
+
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
186
185
|
'roles': json['roles'],
|
|
187
186
|
'hasVenues': json['hasVenues'],
|
|
188
187
|
'availableSchemaTypes': json['availableSchemaTypes'],
|