Skip to content

Commit a3e1acd

Browse files
Merge pull request #80 from appwrite/dev
feat: add support for typescript
2 parents ba665ec + 49a8015 commit a3e1acd

Some content is hidden

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

76 files changed

+8724
-12795
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ node_js:
55
jobs:
66
include:
77
- stage: NPM RC Release
8-
if: tag == *-rc*
8+
if: tag =~ /-(rc|RC)/
99
node_js: "14.16"
1010
script: echo "Deploying RC to NPM..."
1111
deploy:
@@ -14,7 +14,7 @@ jobs:
1414
api_key: $NPM_API_KEY
1515
tag: next
1616
- stage: NPM Release
17-
if: tag != *-rc*
17+
if: not tag =~ /-(rc|RC)/
1818
node_js: "14.16"
1919
script: echo "Deploying to NPM..."
2020
deploy:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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.5.4-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.5.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)

docs/examples/functions/create-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const functions = new sdk.Functions(client);
1010

1111
const result = await functions.createDeployment(
1212
'<FUNCTION_ID>', // functionId
13-
InputFile.fromPath('/path/to/file.png', 'file.png'), // code
13+
InputFile.fromPath('/path/to/file', 'filename'), // code
1414
false, // activate
1515
'<ENTRYPOINT>', // entrypoint (optional)
1616
'<COMMANDS>' // commands (optional)

docs/examples/messaging/create-msg91provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const messaging = new sdk.Messaging(client);
1010
const result = await messaging.createMsg91Provider(
1111
'<PROVIDER_ID>', // providerId
1212
'<NAME>', // name
13-
'<TEMPLATE_ID>', // templateId (optional)
13+
'+12065550100', // from (optional)
1414
'<SENDER_ID>', // senderId (optional)
1515
'<AUTH_KEY>', // authKey (optional)
1616
false // enabled (optional)

docs/examples/messaging/update-msg91provider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const result = await messaging.updateMsg91Provider(
1111
'<PROVIDER_ID>', // providerId
1212
'<NAME>', // name (optional)
1313
false, // enabled (optional)
14-
'<TEMPLATE_ID>', // templateId (optional)
1514
'<SENDER_ID>', // senderId (optional)
16-
'<AUTH_KEY>' // authKey (optional)
15+
'<AUTH_KEY>', // authKey (optional)
16+
'<FROM>' // from (optional)
1717
);

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ const storage = new sdk.Storage(client);
1111
const result = await storage.createFile(
1212
'<BUCKET_ID>', // bucketId
1313
'<FILE_ID>', // fileId
14-
InputFile.fromPath('/path/to/file.png', 'file.png'), // file
14+
InputFile.fromPath('/path/to/file', 'filename'), // file
1515
["read("any")"] // permissions (optional)
1616
);

0 commit comments

Comments
 (0)