@or-sdk/users 3.8.6-beta.4276.0 → 3.8.6-beta.4281.0
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 -82
- package/dist/types/Users.d.ts +207 -0
- package/dist/types/Users.d.ts.map +1 -1
- package/package.json +2 -9
- package/tsconfig.build.json +9 -0
- package/tsconfig.dev.json +7 -0
- package/tsconfig.esm.json +11 -0
- package/tsconfig.json +6 -0
- package/tsconfig.types.json +10 -0
- package/vitest.config.mjs +25 -0
package/README.md
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
OneReach SDK client for Users.
|
|
4
|
-
|
|
5
|
-
## When to use
|
|
6
|
-
|
|
7
|
-
- Use this package when integrating with the Users capability on the OneReach platform.
|
|
8
|
-
- Use its typed client and exported models instead of hand-writing requests to that service.
|
|
9
|
-
|
|
10
|
-
## When not to use
|
|
11
|
-
|
|
12
|
-
- Do not use it for a different platform capability; choose the dedicated `@or-sdk/*` package instead.
|
|
13
|
-
- Do not use it for generic third-party HTTP calls.
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
1
|
+
## Installation:
|
|
16
2
|
```
|
|
17
3
|
$ npm i @or-sdk/users
|
|
18
4
|
```
|
|
19
5
|
|
|
20
|
-
## Usage
|
|
6
|
+
## Usage:
|
|
21
7
|
```typescript
|
|
22
8
|
import { Users } from '@or-sdk/users'
|
|
23
9
|
|
|
@@ -34,69 +20,3 @@ const users = new Users({
|
|
|
34
20
|
discoveryUrl: 'http://example.discovery/endpoint'
|
|
35
21
|
});
|
|
36
22
|
```
|
|
37
|
-
|
|
38
|
-
## Configuration
|
|
39
|
-
|
|
40
|
-
- Prefer `sdkUrl` when the service URL is known; it avoids a discovery request.
|
|
41
|
-
- Use `discoveryUrl` only when the service URL is not available.
|
|
42
|
-
- Provide `token` as a bearer-token string or getter where supported.
|
|
43
|
-
|
|
44
|
-
## Common pitfalls
|
|
45
|
-
|
|
46
|
-
- Keep the client token current when it can expire; a token getter is preferable where the constructor accepts one.
|
|
47
|
-
- Treat the generated TypeScript types as the authoritative contract for optional parameters and response shapes.
|
|
48
|
-
|
|
49
|
-
## Common workflows
|
|
50
|
-
|
|
51
|
-
```typescript
|
|
52
|
-
const page = await users.listUsers({ from: 0, size: 50, orderProperty: 'email' });
|
|
53
|
-
const user = await users.getUserById('user-id', ['email', 'name']);
|
|
54
|
-
await users.disableUser(user.id);
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Use `getCurrentUser` for the identity represented by the token. `listAccounts` is restricted
|
|
58
|
-
to super administrators; cross-account operations require the corresponding SDK configuration
|
|
59
|
-
and authorization.
|
|
60
|
-
|
|
61
|
-
## Complete API reference
|
|
62
|
-
|
|
63
|
-
All public methods below are taken from the package source. Parameter and return types use the exported TypeScript names; import the corresponding types from this package when constructing requests.
|
|
64
|
-
|
|
65
|
-
| Method | Returns | Purpose |
|
|
66
|
-
|---|---|---|
|
|
67
|
-
| `makeRequest(params: CalApiParams)` | `Promise<T>` | See the exported TypeScript signature for behavior and constraints. |
|
|
68
|
-
| `listUsers(params = {} as ListUsersParams)` | `Promise<ListUsersResult>` | List users in account |
|
|
69
|
-
| `getUserById(userId: GetUserByIdParams['userId'], projection: GetUserByIdParams['projection'])` | `Promise<User>` | Get account user by Id |
|
|
70
|
-
| `getCurrentMultiUserProfile({ validate }: ValidateParams = { validate: true })` | `Promise<CurrentMultiUserProfile>` | Get multi-user profile using user token |
|
|
71
|
-
| `getAccountInfo()` | `Promise<AccountItem>` | Get account info based on given token |
|
|
72
|
-
| `listAccountProfiles()` | `Promise<ListAccountProfilesResult>` | List account multi-user profiles |
|
|
73
|
-
| `listProfiles(params: ListProfilesParams)` | `Promise<ListProfilesResult>` | List profiles with ability for partial match by email, username or match by id. |
|
|
74
|
-
| `listUsersAdvanced(params: ListUsersAdvancedParams)` | `Promise<UserAdvanced[]>` | List users with profile information |
|
|
75
|
-
| `getProfileByEmail(email: string)` | `Promise<AccountProfile>` | Get profile by email |
|
|
76
|
-
| `getProfileById(profileId: string)` | `Promise<Profile>` | Get multi-user profile by Id |
|
|
77
|
-
| `getProfile()` | `Promise<Profile>` | Get profile |
|
|
78
|
-
| `attachProfile(params: AttachParams)` | `Promise<AttachResult>` | Attach profile. |
|
|
79
|
-
| `listProfileUsers()` | `Promise<List<ProfileUserItem>>` | List profiles users. |
|
|
80
|
-
| `getCurrentUser()` | `Promise<TokenData>` | Get current user |
|
|
81
|
-
| `getUserEmail(userId?: string)` | `Promise<{ email: string; }>` | Get profile email if exists or user email |
|
|
82
|
-
| `deleteUser(userId: string, accountId?: string)` | `Promise<void>` | Delete a user from account |
|
|
83
|
-
| `updateUser(userId: string, user: UpdateUserParam, accountId?: string)` | `Promise<void>` | Update user |
|
|
84
|
-
| `requestForceChangePassword(userId: string, multi?: boolean)` | `Promise<void>` | Request force change password for user |
|
|
85
|
-
| `disableUser(userId: string, accountId?: string)` | `Promise<void>` | Disable user |
|
|
86
|
-
| `enableUser(userId: string, accountId?: string)` | `Promise<void>` | Enable user |
|
|
87
|
-
| `createUserWithMulti(userData: CreateUserWithMultData, accountId = this.targetAccountId)` | `Promise<CreateUserWithMultResult>` | Initiate the creation of the multi-user |
|
|
88
|
-
| `userListProfileAccounts()` | `Promise<ProfileAccountItem[]>` | List accounts by profile |
|
|
89
|
-
| `listAccounts(params: ListAccountsParams = {})` | `Promise<ListAccountsResult>` | List accounts (super admin only) |
|
|
90
|
-
| `upsertMultiUser(params: UpsertMultiUserParams)` | `Promise<UpsertMultiUserResult>` | Upsert multi-user. |
|
|
91
|
-
|
|
92
|
-
## More detail
|
|
93
|
-
|
|
94
|
-
Full signatures and exported types are available in `src/` and `dist/types/`.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
## Exported utility reference
|
|
98
|
-
|
|
99
|
-
| Function | Returns | Purpose |
|
|
100
|
-
|---|---|---|
|
|
101
|
-
| `okRes(data: JsonBodyType, status = 200)` | `unknown` | Exported utility; see its TypeScript signature for behavior. |
|
|
102
|
-
| `errorRes(errorMessage: string, status = 500)` | `unknown` | Exported utility; see its TypeScript signature for behavior. |
|
package/dist/types/Users.d.ts
CHANGED
|
@@ -5,30 +5,237 @@ export declare class Users extends Base {
|
|
|
5
5
|
private readonly sdkApi;
|
|
6
6
|
constructor(params: UsersConfig);
|
|
7
7
|
makeRequest<T>(params: CalApiParams): Promise<T>;
|
|
8
|
+
/**
|
|
9
|
+
* List users in account
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* await users.listUsers({
|
|
13
|
+
* from: 0,
|
|
14
|
+
* size: 1,
|
|
15
|
+
* orderDirection: 'asc',
|
|
16
|
+
* orderProperty: 'email',
|
|
17
|
+
* query: {
|
|
18
|
+
* // optional
|
|
19
|
+
* },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
8
23
|
listUsers(params?: ListUsersParams): Promise<ListUsersResult>;
|
|
24
|
+
/**
|
|
25
|
+
* Get account user by Id
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const result = await users.getUserById('<user-id>');
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
9
31
|
getUserById(userId: GetUserByIdParams['userId'], projection: GetUserByIdParams['projection']): Promise<User>;
|
|
32
|
+
/**
|
|
33
|
+
* Get multi-user profile using user token
|
|
34
|
+
*
|
|
35
|
+
* Will throw error if response from server does not comply with schema
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const profile = await instance.getCurrentMultiUserProfile();
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* To prevent validation of response use:
|
|
41
|
+
* ```typescript
|
|
42
|
+
* const profile = await instance.getCurrentMultiUserProfile({ validate: false });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
10
45
|
getCurrentMultiUserProfile({ validate }?: ValidateParams): Promise<CurrentMultiUserProfile>;
|
|
46
|
+
/**
|
|
47
|
+
* Get account info based on given token
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* await users.getAccountInfo();
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
11
53
|
getAccountInfo(): Promise<AccountItem>;
|
|
54
|
+
/**
|
|
55
|
+
* List account multi-user profiles
|
|
56
|
+
*
|
|
57
|
+
* ```typescript
|
|
58
|
+
* await users.listAccountProfiles();
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
12
61
|
listAccountProfiles(): Promise<ListAccountProfilesResult>;
|
|
62
|
+
/**
|
|
63
|
+
* List profiles with ability for partial match by email, username or match by id.
|
|
64
|
+
*
|
|
65
|
+
* Super admin only.
|
|
66
|
+
*
|
|
67
|
+
* ```typescript
|
|
68
|
+
* await users.listProfiles();
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
13
71
|
listProfiles(params: ListProfilesParams): Promise<ListProfilesResult>;
|
|
72
|
+
/**
|
|
73
|
+
* List users with profile information
|
|
74
|
+
*
|
|
75
|
+
* ```typescript
|
|
76
|
+
* const result = await users.listUsersAdvanced();
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
14
79
|
listUsersAdvanced(params: ListUsersAdvancedParams): Promise<UserAdvanced[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Get profile by email
|
|
82
|
+
*
|
|
83
|
+
* Super admin only.
|
|
84
|
+
*
|
|
85
|
+
* ```typescript
|
|
86
|
+
* const result = await users.getProfileByEmail('multi-user@example.com');
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
15
89
|
getProfileByEmail(email: string): Promise<AccountProfile>;
|
|
90
|
+
/**
|
|
91
|
+
* Get multi-user profile by Id
|
|
92
|
+
* ```typescript
|
|
93
|
+
* const result = await users.getProfileById('<profile-id>');
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
16
96
|
getProfileById(profileId: string): Promise<Profile>;
|
|
97
|
+
/**
|
|
98
|
+
* Get profile
|
|
99
|
+
* ```typescript
|
|
100
|
+
* const result = await users.getProfile();
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
17
103
|
getProfile(): Promise<Profile>;
|
|
104
|
+
/**
|
|
105
|
+
* Attach profile.
|
|
106
|
+
*
|
|
107
|
+
* ### Normal: Attach current user (based on token) to multi-user profile
|
|
108
|
+
*
|
|
109
|
+
* Pass only multi-user email and it will begin attachment process with email verification.
|
|
110
|
+
* ```typescript
|
|
111
|
+
* await users.attachProfile({
|
|
112
|
+
* email: 'multi-user@example.com',
|
|
113
|
+
* })
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* ### Super admin: Attach another user to multi-user profile
|
|
117
|
+
* Send userId if you want to attach another user instead of current.
|
|
118
|
+
*
|
|
119
|
+
* ```typescript
|
|
120
|
+
* await users.attachProfile({
|
|
121
|
+
* email: 'multi-user@example.com',
|
|
122
|
+
* userId: '<user-id-uuid>',
|
|
123
|
+
* });
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* ### Super admin: Attach another user to multi-user profile and create new profile if it doesn't exist
|
|
127
|
+
* Send password if you want to automatically create profile.
|
|
128
|
+
*
|
|
129
|
+
* ```typescript
|
|
130
|
+
* await users.attachProfile({
|
|
131
|
+
* email: 'multi-user@example.com',
|
|
132
|
+
* userId: '<user-id-uuid>',
|
|
133
|
+
* password: 's3cure_p@ss0rd!',
|
|
134
|
+
* });
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
18
137
|
attachProfile(params: AttachParams): Promise<AttachResult>;
|
|
138
|
+
/**
|
|
139
|
+
* List profiles users.
|
|
140
|
+
* ```typescript
|
|
141
|
+
* await users.listProfileUsers();
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
19
144
|
listProfileUsers(): Promise<List<ProfileUserItem>>;
|
|
145
|
+
/**
|
|
146
|
+
* Get current user
|
|
147
|
+
* ```typescript
|
|
148
|
+
* const result = await users.getCurrentUser();
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
20
151
|
getCurrentUser(): Promise<TokenData>;
|
|
152
|
+
/**
|
|
153
|
+
* Get profile email if exists or user email
|
|
154
|
+
* ```typescript
|
|
155
|
+
* const result = await users.getUserEmail();
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
21
158
|
getUserEmail(userId?: string): Promise<{
|
|
22
159
|
email: string;
|
|
23
160
|
}>;
|
|
161
|
+
/**
|
|
162
|
+
* Delete a user from account
|
|
163
|
+
* ```typescript
|
|
164
|
+
* await users.deleteUser(userId, accountId);
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
24
167
|
deleteUser(userId: string, accountId?: string): Promise<void>;
|
|
168
|
+
/**
|
|
169
|
+
* Update user
|
|
170
|
+
* ```typescript
|
|
171
|
+
* await users.updateUser(userId, user, accountId);
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
25
174
|
updateUser(userId: string, user: UpdateUserParam, accountId?: string): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* Request force change password for user
|
|
177
|
+
* ```typescript
|
|
178
|
+
* await users.requestForceChangePassword(userId, multi);
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
26
181
|
requestForceChangePassword(userId: string, multi?: boolean): Promise<void>;
|
|
182
|
+
/**
|
|
183
|
+
* Disable user
|
|
184
|
+
* ```typescript
|
|
185
|
+
* await users.disableUser(userId, accountId);
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
27
188
|
disableUser(userId: string, accountId?: string): Promise<void>;
|
|
189
|
+
/**
|
|
190
|
+
* Enable user
|
|
191
|
+
* ```typescript
|
|
192
|
+
* await users.enableUser(userId, accountId);
|
|
193
|
+
* ```
|
|
194
|
+
*/
|
|
28
195
|
enableUser(userId: string, accountId?: string): Promise<void>;
|
|
196
|
+
/**
|
|
197
|
+
* Initiate the creation of the multi-user
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* ```typescript
|
|
201
|
+
* const { userCreated, emailSent } = await users.createUserWithMulti(userData, accountId);
|
|
202
|
+
* // userCreated === true - if user already exists
|
|
203
|
+
* // emailSent === true - if user does not exists and invitation email was sent
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
29
206
|
createUserWithMulti(userData: CreateUserWithMultData, accountId?: string | null): Promise<CreateUserWithMultResult>;
|
|
207
|
+
/**
|
|
208
|
+
* List accounts by profile
|
|
209
|
+
* ```typescript
|
|
210
|
+
* await users.userListProfileAccounts();
|
|
211
|
+
* ```
|
|
212
|
+
*/
|
|
30
213
|
userListProfileAccounts(): Promise<ProfileAccountItem[]>;
|
|
214
|
+
/**
|
|
215
|
+
* List accounts (super admin only)
|
|
216
|
+
* ```typescript
|
|
217
|
+
* await users.listAccounts({limit, skip, query, projection});
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
31
220
|
listAccounts(params?: ListAccountsParams): Promise<ListAccountsResult>;
|
|
221
|
+
/**
|
|
222
|
+
* Upsert multi-user.
|
|
223
|
+
*
|
|
224
|
+
* If multi-user with email already exists return it, otherwise create new one with given email and password
|
|
225
|
+
*
|
|
226
|
+
* Super admin only!
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```typescript
|
|
230
|
+
* await users.createMultiUser({
|
|
231
|
+
* email: 'user@example.com',
|
|
232
|
+
* password: 's3cure_p@ss0rd!',
|
|
233
|
+
* data: {
|
|
234
|
+
* // optional
|
|
235
|
+
* }
|
|
236
|
+
* });
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
32
239
|
upsertMultiUser(params: UpsertMultiUserParams): Promise<UpsertMultiUserResult>;
|
|
33
240
|
}
|
|
34
241
|
//# sourceMappingURL=Users.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Users.d.ts","sourceRoot":"","sources":["../../src/Users.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAY,YAAY,EAAsC,MAAM,cAAc,CAAC;AAetG,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,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users",
|
|
3
|
+
"version": "3.8.6-beta.4281.0",
|
|
5
4
|
"license": "Apache-2.0",
|
|
6
5
|
"main": "dist/cjs/index.js",
|
|
7
6
|
"module": "dist/esm/index.js",
|
|
8
7
|
"types": "dist/types/index.d.ts",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist",
|
|
11
|
-
"src",
|
|
12
|
-
"README.md",
|
|
13
|
-
"CHANGELOG.md"
|
|
14
|
-
],
|
|
15
8
|
"scripts": {
|
|
16
9
|
"build": "pnpm clean && concurrently 'npm:build:*(!watch)'",
|
|
17
10
|
"build:cjs": "tsc --project tsconfig.json",
|
|
@@ -28,7 +21,7 @@
|
|
|
28
21
|
},
|
|
29
22
|
"dependencies": {
|
|
30
23
|
"@or-sdk/base": "^0.44.7",
|
|
31
|
-
"@or-sdk/sdk-api": "^0.29.6-beta.
|
|
24
|
+
"@or-sdk/sdk-api": "^0.29.6-beta.4281.0",
|
|
32
25
|
"validator": "^13.15.23",
|
|
33
26
|
"zod": "^3.24.4"
|
|
34
27
|
},
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
reporters: ['junit', 'default'],
|
|
6
|
+
outputFile: 'test-results/junit.xml',
|
|
7
|
+
include: ['src/**/*.{test,spec}.ts'],
|
|
8
|
+
exclude: ['dist/**'],
|
|
9
|
+
coverage: {
|
|
10
|
+
reporter: ['text', 'json', 'html', 'cobertura', 'text-summary'],
|
|
11
|
+
clean: true,
|
|
12
|
+
include: [
|
|
13
|
+
'src/**',
|
|
14
|
+
],
|
|
15
|
+
exclude: [
|
|
16
|
+
'src/types.ts',
|
|
17
|
+
'**/*.spec.ts',
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
globals: true,
|
|
21
|
+
environment: 'node',
|
|
22
|
+
clearMocks: true,
|
|
23
|
+
watch: false,
|
|
24
|
+
},
|
|
25
|
+
});
|