Skip to content

Commit a9d89da

Browse files
committed
chore: regenerate
1 parent dc768a5 commit a9d89da

Some content is hidden

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

57 files changed

+4645
-72
lines changed

README.md

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

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-deno.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-deno/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-deno/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Deno SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

docs/examples/databases/create-document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts";
22

33
const client = new 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 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts";
22

33
const client = new 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 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 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts";
22

33
const client = new 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 Databases(client);
910

1011
const response = 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 @@ import { Client, Databases } from "https://deno.land/x/appwrite/mod.ts";
22

33
const client = new 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 Databases(client);
99

1010
const response = 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+
import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts";
2+
3+
const client = new 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 Tables(client);
9+
10+
const response = 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+
import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts";
2+
3+
const client = new 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 Tables(client);
9+
10+
const response = 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+
import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts";
2+
3+
const client = new 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 Tables(client);
9+
10+
const response = 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+
import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts";
2+
3+
const client = new 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 Tables(client);
9+
10+
const response = 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+
import { Client, Tables } from "https://deno.land/x/appwrite/mod.ts";
2+
3+
const client = new 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 Tables(client);
9+
10+
const response = 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)