Skip to content

Commit a0e8f72

Browse files
authored
Merge pull request #123 from appwrite/dev
Merge Dev into Master for 5.0.2 release
2 parents 8511dcd + 0152cab commit a0e8f72

File tree

7 files changed

+31
-31
lines changed

7 files changed

+31
-31
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite Command Line SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-cli.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.5.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.5.4-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)
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
5.0.1
32+
5.0.2
3333
```
3434

3535
### Install using prebuilt binaries
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
6060
Once the installation completes, you can verify your install using
6161
```
6262
$ appwrite -v
63-
5.0.1
63+
5.0.2
6464
```
6565

6666
## Getting Started

install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# You can use "View source" of this page to see the full script.
1414

1515
# REPO
16-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.2/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.2/appwrite-cli-win-arm64.exe"
1818

1919
$APPWRITE_BINARY_NAME = "appwrite.exe"
2020

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ printSuccess() {
9797
downloadBinary() {
9898
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
9999

100-
GITHUB_LATEST_VERSION="5.0.1"
100+
GITHUB_LATEST_VERSION="5.0.2"
101101
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
102102
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
103103

lib/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Client {
1515
'x-sdk-name': 'Command Line',
1616
'x-sdk-platform': 'console',
1717
'x-sdk-language': 'cli',
18-
'x-sdk-version': '5.0.1',
19-
'user-agent' : `AppwriteCLI/5.0.1 (${os.type()} ${os.version()}; ${os.arch()})`,
18+
'x-sdk-version': '5.0.2',
19+
'user-agent' : `AppwriteCLI/5.0.2 (${os.type()} ${os.version()}; ${os.arch()})`,
2020
'X-Appwrite-Response-Format' : '1.5.0',
2121
};
2222
}

lib/commands/messaging.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,9 +1032,9 @@ const messagingUpdateMailgunProvider = async ({ providerId, name, apiKey, domain
10321032
* @typedef {Object} MessagingCreateMsg91ProviderRequestParams
10331033
* @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
10341034
* @property {string} name Provider name.
1035-
* @property {string} from Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1036-
* @property {string} senderId Msg91 Sender ID.
1037-
* @property {string} authKey Msg91 Auth Key.
1035+
* @property {string} templateId Msg91 template ID
1036+
* @property {string} senderId Msg91 sender ID.
1037+
* @property {string} authKey Msg91 auth key.
10381038
* @property {boolean} enabled Set as enabled.
10391039
* @property {boolean} parseOutput
10401040
* @property {libClient | undefined} sdk
@@ -1043,7 +1043,7 @@ const messagingUpdateMailgunProvider = async ({ providerId, name, apiKey, domain
10431043
/**
10441044
* @param {MessagingCreateMsg91ProviderRequestParams} params
10451045
*/
1046-
const messagingCreateMsg91Provider = async ({ providerId, name, from, senderId, authKey, enabled, parseOutput = true, sdk = undefined}) => {
1046+
const messagingCreateMsg91Provider = async ({ providerId, name, templateId, senderId, authKey, enabled, parseOutput = true, sdk = undefined}) => {
10471047
let client = !sdk ? await sdkForProject() : sdk;
10481048
let apiPath = '/messaging/providers/msg91';
10491049
let payload = {};
@@ -1053,8 +1053,8 @@ const messagingCreateMsg91Provider = async ({ providerId, name, from, senderId,
10531053
if (typeof name !== 'undefined') {
10541054
payload['name'] = name;
10551055
}
1056-
if (typeof from !== 'undefined') {
1057-
payload['from'] = from;
1056+
if (typeof templateId !== 'undefined') {
1057+
payload['templateId'] = templateId;
10581058
}
10591059
if (typeof senderId !== 'undefined') {
10601060
payload['senderId'] = senderId;
@@ -1085,17 +1085,17 @@ const messagingCreateMsg91Provider = async ({ providerId, name, from, senderId,
10851085
* @property {string} providerId Provider ID.
10861086
* @property {string} name Provider name.
10871087
* @property {boolean} enabled Set as enabled.
1088-
* @property {string} senderId Msg91 Sender ID.
1089-
* @property {string} authKey Msg91 Auth Key.
1090-
* @property {string} from Sender number.
1088+
* @property {string} templateId Msg91 template ID.
1089+
* @property {string} senderId Msg91 sender ID.
1090+
* @property {string} authKey Msg91 auth key.
10911091
* @property {boolean} parseOutput
10921092
* @property {libClient | undefined} sdk
10931093
*/
10941094

10951095
/**
10961096
* @param {MessagingUpdateMsg91ProviderRequestParams} params
10971097
*/
1098-
const messagingUpdateMsg91Provider = async ({ providerId, name, enabled, senderId, authKey, from, parseOutput = true, sdk = undefined}) => {
1098+
const messagingUpdateMsg91Provider = async ({ providerId, name, enabled, templateId, senderId, authKey, parseOutput = true, sdk = undefined}) => {
10991099
let client = !sdk ? await sdkForProject() : sdk;
11001100
let apiPath = '/messaging/providers/msg91/{providerId}'.replace('{providerId}', providerId);
11011101
let payload = {};
@@ -1105,15 +1105,15 @@ const messagingUpdateMsg91Provider = async ({ providerId, name, enabled, senderI
11051105
if (typeof enabled !== 'undefined') {
11061106
payload['enabled'] = enabled;
11071107
}
1108+
if (typeof templateId !== 'undefined') {
1109+
payload['templateId'] = templateId;
1110+
}
11081111
if (typeof senderId !== 'undefined') {
11091112
payload['senderId'] = senderId;
11101113
}
11111114
if (typeof authKey !== 'undefined') {
11121115
payload['authKey'] = authKey;
11131116
}
1114-
if (typeof from !== 'undefined') {
1115-
payload['from'] = from;
1116-
}
11171117

11181118
let response = undefined;
11191119

@@ -2497,9 +2497,9 @@ messaging
24972497
.description(`Create a new MSG91 provider.`)
24982498
.requiredOption(`--providerId <providerId>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
24992499
.requiredOption(`--name <name>`, `Provider name.`)
2500-
.option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
2501-
.option(`--senderId <senderId>`, `Msg91 Sender ID.`)
2502-
.option(`--authKey <authKey>`, `Msg91 Auth Key.`)
2500+
.option(`--templateId <templateId>`, `Msg91 template ID`)
2501+
.option(`--senderId <senderId>`, `Msg91 sender ID.`)
2502+
.option(`--authKey <authKey>`, `Msg91 auth key.`)
25032503
.option(`--enabled <enabled>`, `Set as enabled.`, parseBool)
25042504
.action(actionRunner(messagingCreateMsg91Provider))
25052505

@@ -2509,9 +2509,9 @@ messaging
25092509
.requiredOption(`--providerId <providerId>`, `Provider ID.`)
25102510
.option(`--name <name>`, `Provider name.`)
25112511
.option(`--enabled <enabled>`, `Set as enabled.`, parseBool)
2512-
.option(`--senderId <senderId>`, `Msg91 Sender ID.`)
2513-
.option(`--authKey <authKey>`, `Msg91 Auth Key.`)
2514-
.option(`--from <from>`, `Sender number.`)
2512+
.option(`--templateId <templateId>`, `Msg91 template ID.`)
2513+
.option(`--senderId <senderId>`, `Msg91 sender ID.`)
2514+
.option(`--authKey <authKey>`, `Msg91 auth key.`)
25152515
.action(actionRunner(messagingUpdateMsg91Provider))
25162516

25172517
messaging

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "appwrite-cli",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5-
"version": "5.0.1",
5+
"version": "5.0.2",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"bin": {

scoop/appwrite.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
55
"homepage": "https://github.com/appwrite/sdk-for-cli",
66
"license": "BSD-3-Clause",
77
"architecture": {
88
"64bit": {
9-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-x64.exe",
9+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.2/appwrite-cli-win-x64.exe",
1010
"bin": [
1111
[
1212
"appwrite-cli-win-x64.exe",
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"arm64": {
18-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.1/appwrite-cli-win-arm64.exe",
18+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/5.0.2/appwrite-cli-win-arm64.exe",
1919
"bin": [
2020
[
2121
"appwrite-cli-win-arm64.exe",

0 commit comments

Comments
 (0)