@digital8/security-registers-backend-ts-sdk 0.0.71 → 0.0.73
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.73
|
|
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.73 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -32,20 +32,34 @@ export interface UpdateUserRequest {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateUserRequest
|
|
34
34
|
*/
|
|
35
|
-
email
|
|
35
|
+
email: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof UpdateUserRequest
|
|
40
40
|
*/
|
|
41
|
-
mobile
|
|
41
|
+
mobile: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateUserRequest
|
|
46
46
|
*/
|
|
47
47
|
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateUserRequest
|
|
52
|
+
*/
|
|
53
|
+
role?: UpdateUserRequestRoleEnum;
|
|
48
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const UpdateUserRequestRoleEnum: {
|
|
59
|
+
readonly VenueManager: "venue_manager";
|
|
60
|
+
readonly VenueStaff: "venue_staff";
|
|
61
|
+
};
|
|
62
|
+
export type UpdateUserRequestRoleEnum = typeof UpdateUserRequestRoleEnum[keyof typeof UpdateUserRequestRoleEnum];
|
|
49
63
|
/**
|
|
50
64
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
51
65
|
*/
|
|
@@ -13,15 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateUserRequestRoleEnum = void 0;
|
|
16
17
|
exports.instanceOfUpdateUserRequest = instanceOfUpdateUserRequest;
|
|
17
18
|
exports.UpdateUserRequestFromJSON = UpdateUserRequestFromJSON;
|
|
18
19
|
exports.UpdateUserRequestFromJSONTyped = UpdateUserRequestFromJSONTyped;
|
|
19
20
|
exports.UpdateUserRequestToJSON = UpdateUserRequestToJSON;
|
|
20
21
|
exports.UpdateUserRequestToJSONTyped = UpdateUserRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UpdateUserRequestRoleEnum = {
|
|
26
|
+
VenueManager: 'venue_manager',
|
|
27
|
+
VenueStaff: 'venue_staff'
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
23
31
|
*/
|
|
24
32
|
function instanceOfUpdateUserRequest(value) {
|
|
33
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
36
|
+
return false;
|
|
25
37
|
return true;
|
|
26
38
|
}
|
|
27
39
|
function UpdateUserRequestFromJSON(json) {
|
|
@@ -34,9 +46,10 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
46
|
return {
|
|
35
47
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
36
48
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
37
|
-
'email': json['email']
|
|
38
|
-
'mobile': json['mobile']
|
|
49
|
+
'email': json['email'],
|
|
50
|
+
'mobile': json['mobile'],
|
|
39
51
|
'password': json['password'] == null ? undefined : json['password'],
|
|
52
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
40
53
|
};
|
|
41
54
|
}
|
|
42
55
|
function UpdateUserRequestToJSON(json) {
|
|
@@ -53,5 +66,6 @@ function UpdateUserRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
66
|
'email': value['email'],
|
|
54
67
|
'mobile': value['mobile'],
|
|
55
68
|
'password': value['password'],
|
|
69
|
+
'role': value['role'],
|
|
56
70
|
};
|
|
57
71
|
}
|
package/package.json
CHANGED
|
@@ -36,25 +36,44 @@ export interface UpdateUserRequest {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof UpdateUserRequest
|
|
38
38
|
*/
|
|
39
|
-
email
|
|
39
|
+
email: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof UpdateUserRequest
|
|
44
44
|
*/
|
|
45
|
-
mobile
|
|
45
|
+
mobile: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof UpdateUserRequest
|
|
50
50
|
*/
|
|
51
51
|
password?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UpdateUserRequest
|
|
56
|
+
*/
|
|
57
|
+
role?: UpdateUserRequestRoleEnum;
|
|
52
58
|
}
|
|
53
59
|
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const UpdateUserRequestRoleEnum = {
|
|
65
|
+
VenueManager: 'venue_manager',
|
|
66
|
+
VenueStaff: 'venue_staff'
|
|
67
|
+
} as const;
|
|
68
|
+
export type UpdateUserRequestRoleEnum = typeof UpdateUserRequestRoleEnum[keyof typeof UpdateUserRequestRoleEnum];
|
|
69
|
+
|
|
70
|
+
|
|
54
71
|
/**
|
|
55
72
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
56
73
|
*/
|
|
57
74
|
export function instanceOfUpdateUserRequest(value: object): value is UpdateUserRequest {
|
|
75
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
76
|
+
if (!('mobile' in value) || value['mobile'] === undefined) return false;
|
|
58
77
|
return true;
|
|
59
78
|
}
|
|
60
79
|
|
|
@@ -70,9 +89,10 @@ export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
70
89
|
|
|
71
90
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
72
91
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
73
|
-
'email': json['email']
|
|
74
|
-
'mobile': json['mobile']
|
|
92
|
+
'email': json['email'],
|
|
93
|
+
'mobile': json['mobile'],
|
|
75
94
|
'password': json['password'] == null ? undefined : json['password'],
|
|
95
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
76
96
|
};
|
|
77
97
|
}
|
|
78
98
|
|
|
@@ -92,6 +112,7 @@ export function UpdateUserRequestToJSONTyped(value?: UpdateUserRequest | null, i
|
|
|
92
112
|
'email': value['email'],
|
|
93
113
|
'mobile': value['mobile'],
|
|
94
114
|
'password': value['password'],
|
|
115
|
+
'role': value['role'],
|
|
95
116
|
};
|
|
96
117
|
}
|
|
97
118
|
|