@appwrite.io/console 1.4.1 → 1.4.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/README.md +1 -1
- package/dist/cjs/sdk.js +47 -3
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +47 -3
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +47 -3
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/projects/update-memberships-privacy.md +16 -0
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/runtime.ts +1 -0
- package/src/models.ts +24 -4
- package/src/services/projects.ts +49 -0
- package/src/services/teams.ts +2 -2
- package/types/enums/runtime.d.ts +2 -1
- package/types/models.d.ts +24 -4
- package/types/services/projects.d.ts +12 -0
- package/types/services/teams.d.ts +2 -2
- package/docs/examples/account/list-credits.md +0 -14
- package/docs/examples/console/get-copon.md +0 -13
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
|
|
|
33
33
|
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
|
-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.3"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -280,7 +280,7 @@ class Client {
|
|
|
280
280
|
'x-sdk-name': 'Console',
|
|
281
281
|
'x-sdk-platform': 'console',
|
|
282
282
|
'x-sdk-language': 'web',
|
|
283
|
-
'x-sdk-version': '1.4.
|
|
283
|
+
'x-sdk-version': '1.4.3',
|
|
284
284
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
285
285
|
};
|
|
286
286
|
this.realtime = {
|
|
@@ -10921,6 +10921,49 @@ class Projects {
|
|
|
10921
10921
|
return yield this.client.call('patch', uri, apiHeaders, payload);
|
|
10922
10922
|
});
|
|
10923
10923
|
}
|
|
10924
|
+
/**
|
|
10925
|
+
* Update project team memberships privacy attributes
|
|
10926
|
+
*
|
|
10927
|
+
*
|
|
10928
|
+
* @param {string} projectId
|
|
10929
|
+
* @param {boolean} userName
|
|
10930
|
+
* @param {boolean} userEmail
|
|
10931
|
+
* @param {boolean} mfa
|
|
10932
|
+
* @throws {AppwriteException}
|
|
10933
|
+
* @returns {Promise<Models.Project>}
|
|
10934
|
+
*/
|
|
10935
|
+
updateMembershipsPrivacy(projectId, userName, userEmail, mfa) {
|
|
10936
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10937
|
+
if (typeof projectId === 'undefined') {
|
|
10938
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
10939
|
+
}
|
|
10940
|
+
if (typeof userName === 'undefined') {
|
|
10941
|
+
throw new AppwriteException('Missing required parameter: "userName"');
|
|
10942
|
+
}
|
|
10943
|
+
if (typeof userEmail === 'undefined') {
|
|
10944
|
+
throw new AppwriteException('Missing required parameter: "userEmail"');
|
|
10945
|
+
}
|
|
10946
|
+
if (typeof mfa === 'undefined') {
|
|
10947
|
+
throw new AppwriteException('Missing required parameter: "mfa"');
|
|
10948
|
+
}
|
|
10949
|
+
const apiPath = '/projects/{projectId}/auth/memberships-privacy'.replace('{projectId}', projectId);
|
|
10950
|
+
const payload = {};
|
|
10951
|
+
if (typeof userName !== 'undefined') {
|
|
10952
|
+
payload['userName'] = userName;
|
|
10953
|
+
}
|
|
10954
|
+
if (typeof userEmail !== 'undefined') {
|
|
10955
|
+
payload['userEmail'] = userEmail;
|
|
10956
|
+
}
|
|
10957
|
+
if (typeof mfa !== 'undefined') {
|
|
10958
|
+
payload['mfa'] = mfa;
|
|
10959
|
+
}
|
|
10960
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10961
|
+
const apiHeaders = {
|
|
10962
|
+
'content-type': 'application/json',
|
|
10963
|
+
};
|
|
10964
|
+
return yield this.client.call('patch', uri, apiHeaders, payload);
|
|
10965
|
+
});
|
|
10966
|
+
}
|
|
10924
10967
|
/**
|
|
10925
10968
|
* Update the mock numbers for the project
|
|
10926
10969
|
*
|
|
@@ -13034,7 +13077,7 @@ class Teams {
|
|
|
13034
13077
|
/**
|
|
13035
13078
|
* List team memberships
|
|
13036
13079
|
*
|
|
13037
|
-
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.
|
|
13080
|
+
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.
|
|
13038
13081
|
*
|
|
13039
13082
|
* @param {string} teamId
|
|
13040
13083
|
* @param {string[]} queries
|
|
@@ -13122,7 +13165,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
|
|
|
13122
13165
|
/**
|
|
13123
13166
|
* Get team membership
|
|
13124
13167
|
*
|
|
13125
|
-
* Get a team member by the membership unique id. All team members have read access for this resource.
|
|
13168
|
+
* Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.
|
|
13126
13169
|
*
|
|
13127
13170
|
* @param {string} teamId
|
|
13128
13171
|
* @param {string} membershipId
|
|
@@ -15544,6 +15587,7 @@ exports.Runtime = void 0;
|
|
|
15544
15587
|
Runtime["Bun10"] = "bun-1.0";
|
|
15545
15588
|
Runtime["Bun11"] = "bun-1.1";
|
|
15546
15589
|
Runtime["Go123"] = "go-1.23";
|
|
15590
|
+
Runtime["Static1"] = "static-1";
|
|
15547
15591
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
15548
15592
|
|
|
15549
15593
|
exports.FunctionUsageRange = void 0;
|