@open-xchange/soap-client 0.1.1 → 0.1.3
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/services/sharedAccount.js +18 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.1.3] - 2026-04-28
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Use default admin credentials for `convertUserToSharedAccount` SOAP call
|
|
12
|
+
|
|
13
|
+
## [0.1.2] - 2026-04-21
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `convertUserToSharedAccount` to convert an existing user to a shared account
|
|
18
|
+
|
|
7
19
|
## [0.1.0] - 2026-03-15
|
|
8
20
|
|
|
9
21
|
### Changed
|
package/package.json
CHANGED
|
@@ -42,6 +42,24 @@ export async function create (context, sharedAccountData) {
|
|
|
42
42
|
})
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Converts an existing user to a shared account using the OX Shared Account Service
|
|
47
|
+
*
|
|
48
|
+
* @param {Object} context - The context of the user to be converted
|
|
49
|
+
* @param {number} userId - ID of the user to be converted
|
|
50
|
+
* @param {string} password - The password for the new shared account
|
|
51
|
+
* @returns {Promise<void>}
|
|
52
|
+
* @throws {Error} If the conversion fails
|
|
53
|
+
*/
|
|
54
|
+
export async function convertUserToSharedAccount (context, userId, password) {
|
|
55
|
+
return (await getClient()).convertUserToSharedAccountAsync({
|
|
56
|
+
ctx: { id: context.id },
|
|
57
|
+
user: { id: userId },
|
|
58
|
+
password,
|
|
59
|
+
auth: context.admin
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
|
|
45
63
|
/**
|
|
46
64
|
* Add users and groups with specified permissions and capabilities to an existing shared account using the OX Shared Account Service.
|
|
47
65
|
*
|