Skip to content

Commit f41ae31

Browse files
regen
1 parent 4338c47 commit f41ae31

29 files changed

+1799
-15
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Change Log
22

3+
## 22.1.2
4+
5+
* Fix very large double values (for example 1.7976931348623157e+308) from being expanded into giant integer literals
6+
7+
## 22.1.1
8+
9+
* Removed unused BigNumber import from src/client.ts to clean up dependencies
10+
* Updated documentation examples to include the new encrypt option for text-like attributes (encrypt: false) across multiple examples
11+
* Updated README to specify Appwrite server compatibility with 1.8.x
12+
* Repo cleanup: removed obsolete GitHub workflow and issue template files as part of repository cleanup (non-breaking)
13+
314
## 22.0.1
415

516
* Fix doc examples with proper formatting
17+
* Add support for the new `Backups` service
618

719
## 22.0.0
820

@@ -107,4 +119,4 @@
107119
* Rename `templateBranch` to `templateVersion` in `createFunction()`.
108120
* Rename `downloadDeployment()` to `getDeploymentDownload()`
109121

110-
> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.
122+
> You can find the new syntax for breaking changes in the [Appwrite API references](https://appwrite.io/docs/references). Select version `1.6.x`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
9+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-node/releases).**
1010

1111
> This is the Node.js SDK for integrating with Appwrite from your Node.js server-side code.
1212
If you're looking to integrate from the browser, you should check [appwrite/sdk-for-web](https://github.com/appwrite/sdk-for-web)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const activities = new sdk.Activities(client);
10+
11+
const result = await activities.getEvent({
12+
eventId: '<EVENT_ID>'
13+
});
14+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const activities = new sdk.Activities(client);
10+
11+
const result = await activities.listEvents({
12+
queries: '' // optional
13+
});
14+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const backups = new sdk.Backups(client);
10+
11+
const result = await backups.createArchive({
12+
services: [sdk.BackupServices.Databases],
13+
resourceId: '<RESOURCE_ID>' // optional
14+
});
15+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const backups = new sdk.Backups(client);
10+
11+
const result = await backups.createPolicy({
12+
policyId: '<POLICY_ID>',
13+
services: [sdk.BackupServices.Databases],
14+
retention: 1,
15+
schedule: '',
16+
name: '<NAME>', // optional
17+
resourceId: '<RESOURCE_ID>', // optional
18+
enabled: false // optional
19+
});
20+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const backups = new sdk.Backups(client);
10+
11+
const result = await backups.createRestoration({
12+
archiveId: '<ARCHIVE_ID>',
13+
services: [sdk.BackupServices.Databases],
14+
newResourceId: '<NEW_RESOURCE_ID>', // optional
15+
newResourceName: '<NEW_RESOURCE_NAME>' // optional
16+
});
17+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const backups = new sdk.Backups(client);
10+
11+
const result = await backups.deleteArchive({
12+
archiveId: '<ARCHIVE_ID>'
13+
});
14+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const backups = new sdk.Backups(client);
10+
11+
const result = await backups.deletePolicy({
12+
policyId: '<POLICY_ID>'
13+
});
14+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```javascript
2+
const sdk = require('node-appwrite');
3+
4+
const client = new sdk.Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
7+
.setKey('<YOUR_API_KEY>'); // Your secret API key
8+
9+
const backups = new sdk.Backups(client);
10+
11+
const result = await backups.getArchive({
12+
archiveId: '<ARCHIVE_ID>'
13+
});
14+
```

0 commit comments

Comments
 (0)