Skip to content

Commit 0da2748

Browse files
authored
feat: SDK update for version 12.1.0 (#89)
1 parent ce98298 commit 0da2748

25 files changed

Lines changed: 256 additions & 38 deletions

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

1919
- name: Use Node.js
20-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@v6
2121
with:
2222
node-version: '24.14.1'
2323
registry-url: 'https://registry.npmjs.org'

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## 12.1.0
4+
5+
* Added: `setSession` method on `Client` for `X-Appwrite-Session` authentication
6+
* Added: `setDevKey` method on `Client` for `X-Appwrite-Dev-Key` authentication
7+
* Added: `suggestQueries` method on `Console` service
8+
* Added: `QuerySuggestionResource` enum for supported list resource types
9+
* Added: `project.policies.read`, `project.policies.write`, `backups.policies.read`, `backups.policies.write` scopes
10+
* Updated: `setCookie` documentation clarified for server-side runtimes
11+
312
## 12.0.0
413

514
* Breaking: Renamed `AuthMethod` enum to `MethodId`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
3333
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:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@12.0.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@12.1.0"></script>
3737
```
3838

3939

docs/examples/console/create-program-membership.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
66
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
77

8-
const console = new Console(client);
8+
const xconsole = new Console(client);
99

10-
const result = await console.createProgramMembership({
10+
const result = await xconsole.createProgramMembership({
1111
programId: '<PROGRAM_ID>'
1212
});
1313

docs/examples/console/create-source.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
66
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
77

8-
const console = new Console(client);
8+
const xconsole = new Console(client);
99

10-
const result = await console.createSource({
10+
const result = await xconsole.createSource({
1111
ref: '<REF>', // optional
1212
referrer: 'https://example.com', // optional
1313
utmSource: '<UTM_SOURCE>', // optional

docs/examples/console/get-campaign.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
66
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
77

8-
const console = new Console(client);
8+
const xconsole = new Console(client);
99

10-
const result = await console.getCampaign({
10+
const result = await xconsole.getCampaign({
1111
campaignId: '<CAMPAIGN_ID>'
1212
});
1313

docs/examples/console/get-coupon.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
66
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
77

8-
const console = new Console(client);
8+
const xconsole = new Console(client);
99

10-
const result = await console.getCoupon({
10+
const result = await xconsole.getCoupon({
1111
couponId: '<COUPON_ID>'
1212
});
1313

docs/examples/console/get-plan.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
66
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
77

8-
const console = new Console(client);
8+
const xconsole = new Console(client);
99

10-
const result = await console.getPlan({
10+
const result = await xconsole.getPlan({
1111
planId: '<PLAN_ID>'
1212
});
1313

docs/examples/console/get-plans.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
66
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
77

8-
const console = new Console(client);
8+
const xconsole = new Console(client);
99

10-
const result = await console.getPlans({
10+
const result = await xconsole.getPlans({
1111
platform: Platform.Appwrite // optional
1212
});
1313

docs/examples/console/get-program.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const client = new Client()
55
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
66
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
77

8-
const console = new Console(client);
8+
const xconsole = new Console(client);
99

10-
const result = await console.getProgram({
10+
const result = await xconsole.getProgram({
1111
programId: '<PROGRAM_ID>'
1212
});
1313

0 commit comments

Comments
 (0)