Skip to content

Commit

Permalink
Merge pull request #80 from appwrite/dev
Browse files Browse the repository at this point in the history
feat: add support for typescript
  • Loading branch information
christyjacob4 authored Apr 17, 2024
2 parents ba665ec + 49a8015 commit a3e1acd
Show file tree
Hide file tree
Showing 76 changed files with 8,724 additions and 12,795 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_js:
jobs:
include:
- stage: NPM RC Release
if: tag == *-rc*
if: tag =~ /-(rc|RC)/
node_js: "14.16"
script: echo "Deploying RC to NPM..."
deploy:
Expand All @@ -14,7 +14,7 @@ jobs:
api_key: $NPM_API_KEY
tag: next
- stage: NPM Release
if: tag != *-rc*
if: not tag =~ /-(rc|RC)/
node_js: "14.16"
script: echo "Deploying to NPM..."
deploy:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Appwrite Node.js SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.5.4-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.5.0-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/functions/create-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const functions = new sdk.Functions(client);

const result = await functions.createDeployment(
'<FUNCTION_ID>', // functionId
InputFile.fromPath('/path/to/file.png', 'file.png'), // code
InputFile.fromPath('/path/to/file', 'filename'), // code
false, // activate
'<ENTRYPOINT>', // entrypoint (optional)
'<COMMANDS>' // commands (optional)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/messaging/create-msg91provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const messaging = new sdk.Messaging(client);
const result = await messaging.createMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name
'<TEMPLATE_ID>', // templateId (optional)
'+12065550100', // from (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>', // authKey (optional)
false // enabled (optional)
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/messaging/update-msg91provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const result = await messaging.updateMsg91Provider(
'<PROVIDER_ID>', // providerId
'<NAME>', // name (optional)
false, // enabled (optional)
'<TEMPLATE_ID>', // templateId (optional)
'<SENDER_ID>', // senderId (optional)
'<AUTH_KEY>' // authKey (optional)
'<AUTH_KEY>', // authKey (optional)
'<FROM>' // from (optional)
);
2 changes: 1 addition & 1 deletion docs/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ const storage = new sdk.Storage(client);
const result = await storage.createFile(
'<BUCKET_ID>', // bucketId
'<FILE_ID>', // fileId
InputFile.fromPath('/path/to/file.png', 'file.png'), // file
InputFile.fromPath('/path/to/file', 'filename'), // file
["read("any")"] // permissions (optional)
);
Loading

0 comments on commit a3e1acd

Please sign in to comment.