Skip to content

Commit e57b981

Browse files
Merge pull request #166 from appwrite/dev
chore: regenerate sdk
2 parents 078e017 + 02a5799 commit e57b981

File tree

15 files changed

+42
-22
lines changed

15 files changed

+42
-22
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
2929

3030
```sh
3131
$ appwrite -v
32-
8.0.0
32+
8.0.1
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-
8.0.0
63+
8.0.1
6464
```
6565

6666
## Getting Started
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
appwrite proxy createRedirectRule \
22
--domain '' \
33
--url https://example.com \
4-
--statusCode 301
4+
--statusCode 301 \
5+
--resourceId <RESOURCE_ID> \
6+
--resourceType site

docs/examples/vcs/get-repository-contents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ appwrite vcs getRepositoryContents \
22
--installationId <INSTALLATION_ID> \
33
--providerRepositoryId <PROVIDER_REPOSITORY_ID> \
44

5+

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/8.0.0/appwrite-cli-win-x64.exe"
17-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/8.0.0/appwrite-cli-win-arm64.exe"
16+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/8.0.1/appwrite-cli-win-x64.exe"
17+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/8.0.1/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="8.0.0"
100+
GITHUB_LATEST_VERSION="8.0.1"
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
@@ -16,8 +16,8 @@ class Client {
1616
'x-sdk-name': 'Command Line',
1717
'x-sdk-platform': 'console',
1818
'x-sdk-language': 'cli',
19-
'x-sdk-version': '8.0.0',
20-
'user-agent' : `AppwriteCLI/8.0.0 (${os.type()} ${os.version()}; ${os.arch()})`,
19+
'x-sdk-version': '8.0.1',
20+
'user-agent' : `AppwriteCLI/8.0.1 (${os.type()} ${os.version()}; ${os.arch()})`,
2121
'X-Appwrite-Response-Format' : '1.7.0',
2222
};
2323
}

lib/commands/databases.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,15 +2668,15 @@ databases
26682668

26692669
databases
26702670
.command(`upsert-documents`)
2671-
.description(`**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions. Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console. `)
2671+
.description(`**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions. Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.`)
26722672
.requiredOption(`--database-id <database-id>`, `Database ID.`)
26732673
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
26742674
.requiredOption(`--documents [documents...]`, `Array of document data as JSON objects. May contain partial documents.`)
26752675
.action(actionRunner(databasesUpsertDocuments))
26762676

26772677
databases
26782678
.command(`update-documents`)
2679-
.description(`Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.`)
2679+
.description(`**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions. Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.`)
26802680
.requiredOption(`--database-id <database-id>`, `Database ID.`)
26812681
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
26822682
.option(`--data <data>`, `Document data as JSON object. Include only attribute and value pairs to be updated.`)

lib/commands/proxy.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ const proxyCreateFunctionRule = async ({domain,functionId,branch,parseOutput = t
157157
* @property {string} domain Domain name.
158158
* @property {string} url Target URL of redirection
159159
* @property {StatusCode} statusCode Status code of redirection
160+
* @property {string} resourceId ID of parent resource.
161+
* @property {ProxyResourceType} resourceType Type of parent resource.
160162
* @property {boolean} overrideForCli
161163
* @property {boolean} parseOutput
162164
* @property {libClient | undefined} sdk
@@ -165,7 +167,7 @@ const proxyCreateFunctionRule = async ({domain,functionId,branch,parseOutput = t
165167
/**
166168
* @param {ProxyCreateRedirectRuleRequestParams} params
167169
*/
168-
const proxyCreateRedirectRule = async ({domain,url,statusCode,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
170+
const proxyCreateRedirectRule = async ({domain,url,statusCode,resourceId,resourceType,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
169171
let client = !sdk ? await sdkForProject() :
170172
sdk;
171173
let apiPath = '/proxy/rules/redirect';
@@ -179,6 +181,12 @@ const proxyCreateRedirectRule = async ({domain,url,statusCode,parseOutput = true
179181
if (typeof statusCode !== 'undefined') {
180182
payload['statusCode'] = statusCode;
181183
}
184+
if (typeof resourceId !== 'undefined') {
185+
payload['resourceId'] = resourceId;
186+
}
187+
if (typeof resourceType !== 'undefined') {
188+
payload['resourceType'] = resourceType;
189+
}
182190

183191
let response = undefined;
184192

@@ -355,6 +363,8 @@ proxy
355363
.requiredOption(`--domain <domain>`, `Domain name.`)
356364
.requiredOption(`--url <url>`, `Target URL of redirection`)
357365
.requiredOption(`--status-code <status-code>`, `Status code of redirection`)
366+
.requiredOption(`--resource-id <resource-id>`, `ID of parent resource.`)
367+
.requiredOption(`--resource-type <resource-type>`, `Type of parent resource.`)
358368
.action(actionRunner(proxyCreateRedirectRule))
359369

360370
proxy

lib/commands/vcs.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ const vcsListRepositoryBranches = async ({installationId,providerRepositoryId,pa
226226
* @property {string} installationId Installation Id
227227
* @property {string} providerRepositoryId Repository Id
228228
* @property {string} providerRootDirectory Path to get contents of nested directory
229+
* @property {string} providerReference Git reference (branch, tag, commit) to get contents from
229230
* @property {boolean} overrideForCli
230231
* @property {boolean} parseOutput
231232
* @property {libClient | undefined} sdk
@@ -234,14 +235,17 @@ const vcsListRepositoryBranches = async ({installationId,providerRepositoryId,pa
234235
/**
235236
* @param {VcsGetRepositoryContentsRequestParams} params
236237
*/
237-
const vcsGetRepositoryContents = async ({installationId,providerRepositoryId,providerRootDirectory,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
238+
const vcsGetRepositoryContents = async ({installationId,providerRepositoryId,providerRootDirectory,providerReference,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
238239
let client = !sdk ? await sdkForProject() :
239240
sdk;
240241
let apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/contents'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
241242
let payload = {};
242243
if (typeof providerRootDirectory !== 'undefined') {
243244
payload['providerRootDirectory'] = providerRootDirectory;
244245
}
246+
if (typeof providerReference !== 'undefined') {
247+
payload['providerReference'] = providerReference;
248+
}
245249

246250
let response = undefined;
247251

@@ -435,6 +439,7 @@ vcs
435439
.requiredOption(`--installation-id <installation-id>`, `Installation Id`)
436440
.requiredOption(`--provider-repository-id <provider-repository-id>`, `Repository Id`)
437441
.option(`--provider-root-directory <provider-root-directory>`, `Path to get contents of nested directory`)
442+
.option(`--provider-reference <provider-reference>`, `Git reference (branch, tag, commit) to get contents from`)
438443
.action(actionRunner(vcsGetRepositoryContents))
439444

440445
vcs

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const parseError = (err) => {
120120
} catch {
121121
}
122122

123-
const version = '8.0.0';
123+
const version = '8.0.1';
124124
const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
125125
const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud}`;
126126

0 commit comments

Comments
 (0)