Skip to content

Commit 4192f52

Browse files
committed
chore: regenerate
1 parent 96156c3 commit 4192f52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+4147
-239
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite Node.js SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
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 1.7.x. 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)

docs/examples/databases/create-document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const sdk = require('node-appwrite');
22

33
const client = new sdk.Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setAdmin('') //
65
.setSession('') // The user session to authenticate with
76
.setKey('<YOUR_API_KEY>') // Your secret API key
87
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token

docs/examples/databases/create-documents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const sdk = require('node-appwrite');
22

33
const client = new sdk.Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setAdmin('') //
56
.setKey('<YOUR_API_KEY>'); // Your secret API key
67

78
const databases = new sdk.Databases(client);

docs/examples/databases/upsert-document.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ const sdk = require('node-appwrite');
22

33
const client = new sdk.Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6-
.setSession(''); // The user session to authenticate with
5+
.setSession('') // The user session to authenticate with
6+
.setKey('<YOUR_API_KEY>') // Your secret API key
7+
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
78

89
const databases = new sdk.Databases(client);
910

1011
const result = await databases.upsertDocument(
1112
'<DATABASE_ID>', // databaseId
1213
'<COLLECTION_ID>', // collectionId
13-
'<DOCUMENT_ID>', // documentId
14-
{}, // data
15-
["read("any")"] // permissions (optional)
14+
'<DOCUMENT_ID>' // documentId
1615
);

docs/examples/databases/upsert-documents.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ const sdk = require('node-appwrite');
22

33
const client = new sdk.Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
5+
.setAdmin('') //
66
.setKey('<YOUR_API_KEY>'); // Your secret API key
77

88
const databases = new sdk.Databases(client);
99

1010
const result = await databases.upsertDocuments(
1111
'<DATABASE_ID>', // databaseId
12-
'<COLLECTION_ID>', // collectionId
13-
[] // documents
12+
'<COLLECTION_ID>' // collectionId
1413
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const sdk = require('node-appwrite');
2+
3+
const client = new sdk.Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
const tables = new sdk.Tables(client);
9+
10+
const result = await tables.createBooleanColumn(
11+
'<DATABASE_ID>', // databaseId
12+
'<TABLE_ID>', // tableId
13+
'', // key
14+
false, // required
15+
false, // default (optional)
16+
false // array (optional)
17+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const sdk = require('node-appwrite');
2+
3+
const client = new sdk.Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
const tables = new sdk.Tables(client);
9+
10+
const result = await tables.createDatetimeColumn(
11+
'<DATABASE_ID>', // databaseId
12+
'<TABLE_ID>', // tableId
13+
'', // key
14+
false, // required
15+
'', // default (optional)
16+
false // array (optional)
17+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const sdk = require('node-appwrite');
2+
3+
const client = new sdk.Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
const tables = new sdk.Tables(client);
9+
10+
const result = await tables.createEmailColumn(
11+
'<DATABASE_ID>', // databaseId
12+
'<TABLE_ID>', // tableId
13+
'', // key
14+
false, // required
15+
'email@example.com', // default (optional)
16+
false // array (optional)
17+
);
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const sdk = require('node-appwrite');
2+
3+
const client = new sdk.Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
const tables = new sdk.Tables(client);
9+
10+
const result = await tables.createEnumColumn(
11+
'<DATABASE_ID>', // databaseId
12+
'<TABLE_ID>', // tableId
13+
'', // key
14+
[], // elements
15+
false, // required
16+
'<DEFAULT>', // default (optional)
17+
false // array (optional)
18+
);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const sdk = require('node-appwrite');
2+
3+
const client = new sdk.Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>') // Your project ID
6+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
const tables = new sdk.Tables(client);
9+
10+
const result = await tables.createFloatColumn(
11+
'<DATABASE_ID>', // databaseId
12+
'<TABLE_ID>', // tableId
13+
'', // key
14+
false, // required
15+
null, // min (optional)
16+
null, // max (optional)
17+
null, // default (optional)
18+
false // array (optional)
19+
);

0 commit comments

Comments
 (0)