@digital8/security-registers-backend-ts-sdk 0.0.460 → 0.0.462
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 +6 -0
- package/dist/models/AuthRegisterGuardRequest.js +4 -0
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequest.ts +9 -0
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/SecurityCompanyResource.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.462
|
|
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.462 --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'],
|
|
@@ -47,6 +47,12 @@ export interface AuthRegisterGuardRequest {
|
|
|
47
47
|
* @memberof AuthRegisterGuardRequest
|
|
48
48
|
*/
|
|
49
49
|
password: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AuthRegisterGuardRequest
|
|
54
|
+
*/
|
|
55
|
+
passwordConfirmation: string;
|
|
50
56
|
/**
|
|
51
57
|
*
|
|
52
58
|
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
@@ -34,6 +34,8 @@ function instanceOfAuthRegisterGuardRequest(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('password' in value) || value['password'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('passwordConfirmation' in value) || value['passwordConfirmation'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('profileSignature' in value) || value['profileSignature'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('licences' in value) || value['licences'] === undefined)
|
|
@@ -53,6 +55,7 @@ function AuthRegisterGuardRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
55
|
'email': json['email'],
|
|
54
56
|
'mobile': json['mobile'],
|
|
55
57
|
'password': json['password'],
|
|
58
|
+
'passwordConfirmation': json['password_confirmation'],
|
|
56
59
|
'profileSignature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['profile_signature']),
|
|
57
60
|
'licences': (json['licences'].map(AuthRegisterGuardRequestLicencesInner_1.AuthRegisterGuardRequestLicencesInnerFromJSON)),
|
|
58
61
|
};
|
|
@@ -71,6 +74,7 @@ function AuthRegisterGuardRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
74
|
'email': value['email'],
|
|
72
75
|
'mobile': value['mobile'],
|
|
73
76
|
'password': value['password'],
|
|
77
|
+
'password_confirmation': value['passwordConfirmation'],
|
|
74
78
|
'profile_signature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['profileSignature']),
|
|
75
79
|
'licences': (value['licences'].map(AuthRegisterGuardRequestLicencesInner_1.AuthRegisterGuardRequestLicencesInnerToJSON)),
|
|
76
80
|
};
|
|
@@ -65,8 +65,6 @@ function instanceOfRegisterResource(value) {
|
|
|
65
65
|
return false;
|
|
66
66
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
67
67
|
return false;
|
|
68
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
69
|
-
return false;
|
|
70
68
|
return true;
|
|
71
69
|
}
|
|
72
70
|
function RegisterResourceFromJSON(json) {
|
|
@@ -97,7 +95,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
95
|
'licenceExpiry': json['licenceExpiry'],
|
|
98
96
|
'licenceFirstName': json['licenceFirstName'],
|
|
99
97
|
'licenceLastName': json['licenceLastName'],
|
|
100
|
-
'badgeNumber': json['badgeNumber'],
|
|
98
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
101
99
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
102
100
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
103
101
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -25,8 +25,6 @@ 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;
|
|
30
28
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
return {
|
|
46
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
47
45
|
'name': json['name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'isEnabled': json['isEnabled'],
|
|
50
48
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
49
|
'licenceNumber': json['licenceNumber'],
|
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'],
|
|
@@ -64,6 +64,12 @@ export interface AuthRegisterGuardRequest {
|
|
|
64
64
|
* @memberof AuthRegisterGuardRequest
|
|
65
65
|
*/
|
|
66
66
|
password: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AuthRegisterGuardRequest
|
|
71
|
+
*/
|
|
72
|
+
passwordConfirmation: string;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
@@ -87,6 +93,7 @@ export function instanceOfAuthRegisterGuardRequest(value: object): value is Auth
|
|
|
87
93
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
88
94
|
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
89
95
|
if (!('password' in value) || value['password'] === undefined) return false;
|
|
96
|
+
if (!('passwordConfirmation' in value) || value['passwordConfirmation'] === undefined) return false;
|
|
90
97
|
if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
|
|
91
98
|
if (!('licences' in value) || value['licences'] === undefined) return false;
|
|
92
99
|
return true;
|
|
@@ -107,6 +114,7 @@ export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
107
114
|
'email': json['email'],
|
|
108
115
|
'mobile': json['mobile'],
|
|
109
116
|
'password': json['password'],
|
|
117
|
+
'passwordConfirmation': json['password_confirmation'],
|
|
110
118
|
'profileSignature': AuthRegisterGuardRequestProfileSignatureFromJSON(json['profile_signature']),
|
|
111
119
|
'licences': ((json['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerFromJSON)),
|
|
112
120
|
};
|
|
@@ -128,6 +136,7 @@ export function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardReq
|
|
|
128
136
|
'email': value['email'],
|
|
129
137
|
'mobile': value['mobile'],
|
|
130
138
|
'password': value['password'],
|
|
139
|
+
'password_confirmation': value['passwordConfirmation'],
|
|
131
140
|
'profile_signature': AuthRegisterGuardRequestProfileSignatureToJSON(value['profileSignature']),
|
|
132
141
|
'licences': ((value['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerToJSON)),
|
|
133
142
|
};
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber?: string | null;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -212,7 +212,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
212
212
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
213
213
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
214
214
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
215
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
216
215
|
return true;
|
|
217
216
|
}
|
|
218
217
|
|
|
@@ -246,7 +245,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
246
245
|
'licenceExpiry': json['licenceExpiry'],
|
|
247
246
|
'licenceFirstName': json['licenceFirstName'],
|
|
248
247
|
'licenceLastName': json['licenceLastName'],
|
|
249
|
-
'badgeNumber': json['badgeNumber'],
|
|
248
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
250
249
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
251
250
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
252
251
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ 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;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|