appwrite-cli 10.0.1 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +2 -2
- package/docs/examples/account/create-email-verification.md +2 -0
- package/docs/examples/account/update-email-verification.md +3 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +2 -2
- package/lib/commands/account.js +91 -6
- package/lib/commands/functions.js +1 -1
- package/lib/commands/sites.js +1 -1
- package/lib/commands/tables-db.js +45 -45
- package/lib/parser.js +1 -1
- package/package.json +1 -1
- package/scoop/appwrite.config.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
|
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
31
|
$ appwrite -v
|
|
32
|
-
10.0
|
|
32
|
+
10.1.0
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Install using prebuilt binaries
|
|
@@ -60,7 +60,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
|
|
|
60
60
|
Once the installation completes, you can verify your install using
|
|
61
61
|
```
|
|
62
62
|
$ appwrite -v
|
|
63
|
-
10.0
|
|
63
|
+
10.1.0
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
## Getting Started
|
package/install.ps1
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
# You can use "View source" of this page to see the full script.
|
|
14
14
|
|
|
15
15
|
# REPO
|
|
16
|
-
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/10.0
|
|
17
|
-
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/10.0
|
|
16
|
+
$GITHUB_x64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/10.1.0/appwrite-cli-win-x64.exe"
|
|
17
|
+
$GITHUB_arm64_URL = "https://github.com/appwrite/sdk-for-cli/releases/download/10.1.0/appwrite-cli-win-arm64.exe"
|
|
18
18
|
|
|
19
19
|
$APPWRITE_BINARY_NAME = "appwrite.exe"
|
|
20
20
|
|
package/install.sh
CHANGED
|
@@ -97,7 +97,7 @@ printSuccess() {
|
|
|
97
97
|
downloadBinary() {
|
|
98
98
|
echo "[2/4] Downloading executable for $OS ($ARCH) ..."
|
|
99
99
|
|
|
100
|
-
GITHUB_LATEST_VERSION="10.0
|
|
100
|
+
GITHUB_LATEST_VERSION="10.1.0"
|
|
101
101
|
GITHUB_FILE="appwrite-cli-${OS}-${ARCH}"
|
|
102
102
|
GITHUB_URL="https://github.com/$GITHUB_REPOSITORY_NAME/releases/download/$GITHUB_LATEST_VERSION/$GITHUB_FILE"
|
|
103
103
|
|
package/lib/client.js
CHANGED
|
@@ -16,8 +16,8 @@ class Client {
|
|
|
16
16
|
'x-sdk-name': 'Command Line',
|
|
17
17
|
'x-sdk-platform': 'console',
|
|
18
18
|
'x-sdk-language': 'cli',
|
|
19
|
-
'x-sdk-version': '10.0
|
|
20
|
-
'user-agent' : `AppwriteCLI/10.0
|
|
19
|
+
'x-sdk-version': '10.1.0',
|
|
20
|
+
'user-agent' : `AppwriteCLI/10.1.0 (${os.type()} ${os.version()}; ${os.arch()})`,
|
|
21
21
|
'X-Appwrite-Response-Format' : '1.8.0',
|
|
22
22
|
};
|
|
23
23
|
}
|
package/lib/commands/account.js
CHANGED
|
@@ -1527,6 +1527,39 @@ const accountCreatePhoneToken = async ({userId,phone,parseOutput = true, overrid
|
|
|
1527
1527
|
|
|
1528
1528
|
return response;
|
|
1529
1529
|
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
* @typedef {Object} AccountCreateEmailVerificationRequestParams
|
|
1533
|
+
* @property {string} url URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
1534
|
+
* @property {boolean} overrideForCli
|
|
1535
|
+
* @property {boolean} parseOutput
|
|
1536
|
+
* @property {libClient | undefined} sdk
|
|
1537
|
+
*/
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* @param {AccountCreateEmailVerificationRequestParams} params
|
|
1541
|
+
*/
|
|
1542
|
+
const accountCreateEmailVerification = async ({url,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1543
|
+
let client = !sdk ? await sdkForProject() :
|
|
1544
|
+
sdk;
|
|
1545
|
+
let apiPath = '/account/verifications/email';
|
|
1546
|
+
let payload = {};
|
|
1547
|
+
if (typeof url !== 'undefined') {
|
|
1548
|
+
payload['url'] = url;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
let response = undefined;
|
|
1552
|
+
|
|
1553
|
+
response = await client.call('post', apiPath, {
|
|
1554
|
+
'content-type': 'application/json',
|
|
1555
|
+
}, payload);
|
|
1556
|
+
|
|
1557
|
+
if (parseOutput) {
|
|
1558
|
+
parse(response)
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
return response;
|
|
1562
|
+
|
|
1530
1563
|
}
|
|
1531
1564
|
/**
|
|
1532
1565
|
* @typedef {Object} AccountCreateVerificationRequestParams
|
|
@@ -1542,7 +1575,7 @@ const accountCreatePhoneToken = async ({userId,phone,parseOutput = true, overrid
|
|
|
1542
1575
|
const accountCreateVerification = async ({url,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1543
1576
|
let client = !sdk ? await sdkForProject() :
|
|
1544
1577
|
sdk;
|
|
1545
|
-
let apiPath = '/account/
|
|
1578
|
+
let apiPath = '/account/verifications/email';
|
|
1546
1579
|
let payload = {};
|
|
1547
1580
|
if (typeof url !== 'undefined') {
|
|
1548
1581
|
payload['url'] = url;
|
|
@@ -1560,6 +1593,43 @@ const accountCreateVerification = async ({url,parseOutput = true, overrideForCli
|
|
|
1560
1593
|
|
|
1561
1594
|
return response;
|
|
1562
1595
|
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* @typedef {Object} AccountUpdateEmailVerificationRequestParams
|
|
1599
|
+
* @property {string} userId User ID.
|
|
1600
|
+
* @property {string} secret Valid verification token.
|
|
1601
|
+
* @property {boolean} overrideForCli
|
|
1602
|
+
* @property {boolean} parseOutput
|
|
1603
|
+
* @property {libClient | undefined} sdk
|
|
1604
|
+
*/
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* @param {AccountUpdateEmailVerificationRequestParams} params
|
|
1608
|
+
*/
|
|
1609
|
+
const accountUpdateEmailVerification = async ({userId,secret,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1610
|
+
let client = !sdk ? await sdkForProject() :
|
|
1611
|
+
sdk;
|
|
1612
|
+
let apiPath = '/account/verifications/email';
|
|
1613
|
+
let payload = {};
|
|
1614
|
+
if (typeof userId !== 'undefined') {
|
|
1615
|
+
payload['userId'] = userId;
|
|
1616
|
+
}
|
|
1617
|
+
if (typeof secret !== 'undefined') {
|
|
1618
|
+
payload['secret'] = secret;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
let response = undefined;
|
|
1622
|
+
|
|
1623
|
+
response = await client.call('put', apiPath, {
|
|
1624
|
+
'content-type': 'application/json',
|
|
1625
|
+
}, payload);
|
|
1626
|
+
|
|
1627
|
+
if (parseOutput) {
|
|
1628
|
+
parse(response)
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
return response;
|
|
1632
|
+
|
|
1563
1633
|
}
|
|
1564
1634
|
/**
|
|
1565
1635
|
* @typedef {Object} AccountUpdateVerificationRequestParams
|
|
@@ -1576,7 +1646,7 @@ const accountCreateVerification = async ({url,parseOutput = true, overrideForCli
|
|
|
1576
1646
|
const accountUpdateVerification = async ({userId,secret,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1577
1647
|
let client = !sdk ? await sdkForProject() :
|
|
1578
1648
|
sdk;
|
|
1579
|
-
let apiPath = '/account/
|
|
1649
|
+
let apiPath = '/account/verifications/email';
|
|
1580
1650
|
let payload = {};
|
|
1581
1651
|
if (typeof userId !== 'undefined') {
|
|
1582
1652
|
payload['userId'] = userId;
|
|
@@ -1611,7 +1681,7 @@ const accountUpdateVerification = async ({userId,secret,parseOutput = true, over
|
|
|
1611
1681
|
const accountCreatePhoneVerification = async ({parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1612
1682
|
let client = !sdk ? await sdkForProject() :
|
|
1613
1683
|
sdk;
|
|
1614
|
-
let apiPath = '/account/
|
|
1684
|
+
let apiPath = '/account/verifications/phone';
|
|
1615
1685
|
let payload = {};
|
|
1616
1686
|
|
|
1617
1687
|
let response = undefined;
|
|
@@ -1642,7 +1712,7 @@ const accountCreatePhoneVerification = async ({parseOutput = true, overrideForCl
|
|
|
1642
1712
|
const accountUpdatePhoneVerification = async ({userId,secret,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1643
1713
|
let client = !sdk ? await sdkForProject() :
|
|
1644
1714
|
sdk;
|
|
1645
|
-
let apiPath = '/account/
|
|
1715
|
+
let apiPath = '/account/verifications/phone';
|
|
1646
1716
|
let payload = {};
|
|
1647
1717
|
if (typeof userId !== 'undefined') {
|
|
1648
1718
|
payload['userId'] = userId;
|
|
@@ -1949,16 +2019,29 @@ account
|
|
|
1949
2019
|
.action(actionRunner(accountCreatePhoneToken))
|
|
1950
2020
|
|
|
1951
2021
|
account
|
|
1952
|
-
.command(`create-verification`)
|
|
2022
|
+
.command(`create-email-verification`)
|
|
1953
2023
|
.description(`Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user's email address is valid for 7 days. Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface. `)
|
|
1954
2024
|
.requiredOption(`--url <url>`, `URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`)
|
|
2025
|
+
.action(actionRunner(accountCreateEmailVerification))
|
|
2026
|
+
|
|
2027
|
+
account
|
|
2028
|
+
.command(`create-verification`)
|
|
2029
|
+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account create-email-verification' instead] Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user's email address is valid for 7 days. Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface. `)
|
|
2030
|
+
.requiredOption(`--url <url>`, `URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.`)
|
|
1955
2031
|
.action(actionRunner(accountCreateVerification))
|
|
1956
2032
|
|
|
1957
2033
|
account
|
|
1958
|
-
.command(`update-verification`)
|
|
2034
|
+
.command(`update-email-verification`)
|
|
1959
2035
|
.description(`Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.`)
|
|
1960
2036
|
.requiredOption(`--user-id <user-id>`, `User ID.`)
|
|
1961
2037
|
.requiredOption(`--secret <secret>`, `Valid verification token.`)
|
|
2038
|
+
.action(actionRunner(accountUpdateEmailVerification))
|
|
2039
|
+
|
|
2040
|
+
account
|
|
2041
|
+
.command(`update-verification`)
|
|
2042
|
+
.description(`[**DEPRECATED** - This command is deprecated. Please use 'account update-email-verification' instead] Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.`)
|
|
2043
|
+
.requiredOption(`--user-id <user-id>`, `User ID.`)
|
|
2044
|
+
.requiredOption(`--secret <secret>`, `Valid verification token.`)
|
|
1962
2045
|
.action(actionRunner(accountUpdateVerification))
|
|
1963
2046
|
|
|
1964
2047
|
account
|
|
@@ -2019,7 +2102,9 @@ module.exports = {
|
|
|
2019
2102
|
accountCreateMagicURLToken,
|
|
2020
2103
|
accountCreateOAuth2Token,
|
|
2021
2104
|
accountCreatePhoneToken,
|
|
2105
|
+
accountCreateEmailVerification,
|
|
2022
2106
|
accountCreateVerification,
|
|
2107
|
+
accountUpdateEmailVerification,
|
|
2023
2108
|
accountUpdateVerification,
|
|
2024
2109
|
accountCreatePhoneVerification,
|
|
2025
2110
|
accountUpdatePhoneVerification
|
|
@@ -1541,7 +1541,7 @@ functions
|
|
|
1541
1541
|
|
|
1542
1542
|
functions
|
|
1543
1543
|
.command(`create-template-deployment`)
|
|
1544
|
-
.description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/
|
|
1544
|
+
.description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.`)
|
|
1545
1545
|
.requiredOption(`--function-id <function-id>`, `Function ID.`)
|
|
1546
1546
|
.requiredOption(`--repository <repository>`, `Repository name of the template.`)
|
|
1547
1547
|
.requiredOption(`--owner <owner>`, `The name of the owner of the template.`)
|
package/lib/commands/sites.js
CHANGED
|
@@ -1482,7 +1482,7 @@ sites
|
|
|
1482
1482
|
|
|
1483
1483
|
sites
|
|
1484
1484
|
.command(`create-template-deployment`)
|
|
1485
|
-
.description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/
|
|
1485
|
+
.description(`Create a deployment based on a template. Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/sites/templates) to find the template details.`)
|
|
1486
1486
|
.requiredOption(`--site-id <site-id>`, `Site ID.`)
|
|
1487
1487
|
.requiredOption(`--repository <repository>`, `Repository name of the template.`)
|
|
1488
1488
|
.requiredOption(`--owner <owner>`, `The name of the owner of the template.`)
|
|
@@ -503,7 +503,7 @@ const tablesDBListColumns = async ({databaseId,tableId,queries,parseOutput = tru
|
|
|
503
503
|
/**
|
|
504
504
|
* @typedef {Object} TablesDBCreateBooleanColumnRequestParams
|
|
505
505
|
* @property {string} databaseId Database ID.
|
|
506
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
506
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
507
507
|
* @property {string} key Column Key.
|
|
508
508
|
* @property {boolean} required Is column required?
|
|
509
509
|
* @property {boolean} xdefault Default value for column when not provided. Cannot be set when column is required.
|
|
@@ -550,7 +550,7 @@ const tablesDBCreateBooleanColumn = async ({databaseId,tableId,key,required,xdef
|
|
|
550
550
|
/**
|
|
551
551
|
* @typedef {Object} TablesDBUpdateBooleanColumnRequestParams
|
|
552
552
|
* @property {string} databaseId Database ID.
|
|
553
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
553
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
554
554
|
* @property {string} key Column Key.
|
|
555
555
|
* @property {boolean} required Is column required?
|
|
556
556
|
* @property {boolean} xdefault Default value for column when not provided. Cannot be set when column is required.
|
|
@@ -1182,7 +1182,7 @@ const tablesDBUpdateIpColumn = async ({databaseId,tableId,key,required,xdefault,
|
|
|
1182
1182
|
/**
|
|
1183
1183
|
* @typedef {Object} TablesDBCreateLineColumnRequestParams
|
|
1184
1184
|
* @property {string} databaseId Database ID.
|
|
1185
|
-
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
1185
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1186
1186
|
* @property {string} key Column Key.
|
|
1187
1187
|
* @property {boolean} required Is column required?
|
|
1188
1188
|
* @property {any[]} xdefault Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
@@ -1226,7 +1226,7 @@ const tablesDBCreateLineColumn = async ({databaseId,tableId,key,required,xdefaul
|
|
|
1226
1226
|
/**
|
|
1227
1227
|
* @typedef {Object} TablesDBUpdateLineColumnRequestParams
|
|
1228
1228
|
* @property {string} databaseId Database ID.
|
|
1229
|
-
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
1229
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1230
1230
|
* @property {string} key Column Key.
|
|
1231
1231
|
* @property {boolean} required Is column required?
|
|
1232
1232
|
* @property {any[]} xdefault Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.
|
|
@@ -1271,7 +1271,7 @@ const tablesDBUpdateLineColumn = async ({databaseId,tableId,key,required,xdefaul
|
|
|
1271
1271
|
/**
|
|
1272
1272
|
* @typedef {Object} TablesDBCreatePointColumnRequestParams
|
|
1273
1273
|
* @property {string} databaseId Database ID.
|
|
1274
|
-
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
1274
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1275
1275
|
* @property {string} key Column Key.
|
|
1276
1276
|
* @property {boolean} required Is column required?
|
|
1277
1277
|
* @property {any[]} xdefault Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
@@ -1315,7 +1315,7 @@ const tablesDBCreatePointColumn = async ({databaseId,tableId,key,required,xdefau
|
|
|
1315
1315
|
/**
|
|
1316
1316
|
* @typedef {Object} TablesDBUpdatePointColumnRequestParams
|
|
1317
1317
|
* @property {string} databaseId Database ID.
|
|
1318
|
-
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
1318
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1319
1319
|
* @property {string} key Column Key.
|
|
1320
1320
|
* @property {boolean} required Is column required?
|
|
1321
1321
|
* @property {any[]} xdefault Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.
|
|
@@ -1360,7 +1360,7 @@ const tablesDBUpdatePointColumn = async ({databaseId,tableId,key,required,xdefau
|
|
|
1360
1360
|
/**
|
|
1361
1361
|
* @typedef {Object} TablesDBCreatePolygonColumnRequestParams
|
|
1362
1362
|
* @property {string} databaseId Database ID.
|
|
1363
|
-
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
1363
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1364
1364
|
* @property {string} key Column Key.
|
|
1365
1365
|
* @property {boolean} required Is column required?
|
|
1366
1366
|
* @property {any[]} xdefault Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
@@ -1404,7 +1404,7 @@ const tablesDBCreatePolygonColumn = async ({databaseId,tableId,key,required,xdef
|
|
|
1404
1404
|
/**
|
|
1405
1405
|
* @typedef {Object} TablesDBUpdatePolygonColumnRequestParams
|
|
1406
1406
|
* @property {string} databaseId Database ID.
|
|
1407
|
-
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
1407
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1408
1408
|
* @property {string} key Column Key.
|
|
1409
1409
|
* @property {boolean} required Is column required?
|
|
1410
1410
|
* @property {any[]} xdefault Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.
|
|
@@ -1504,7 +1504,7 @@ const tablesDBCreateRelationshipColumn = async ({databaseId,tableId,relatedTable
|
|
|
1504
1504
|
/**
|
|
1505
1505
|
* @typedef {Object} TablesDBCreateStringColumnRequestParams
|
|
1506
1506
|
* @property {string} databaseId Database ID.
|
|
1507
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
1507
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1508
1508
|
* @property {string} key Column Key.
|
|
1509
1509
|
* @property {number} size Column size for text columns, in number of characters.
|
|
1510
1510
|
* @property {boolean} required Is column required?
|
|
@@ -1559,7 +1559,7 @@ const tablesDBCreateStringColumn = async ({databaseId,tableId,key,size,required,
|
|
|
1559
1559
|
/**
|
|
1560
1560
|
* @typedef {Object} TablesDBUpdateStringColumnRequestParams
|
|
1561
1561
|
* @property {string} databaseId Database ID.
|
|
1562
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
1562
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1563
1563
|
* @property {string} key Column Key.
|
|
1564
1564
|
* @property {boolean} required Is column required?
|
|
1565
1565
|
* @property {string} xdefault Default value for column when not provided. Cannot be set when column is required.
|
|
@@ -1805,7 +1805,7 @@ const tablesDBUpdateRelationshipColumn = async ({databaseId,tableId,key,onDelete
|
|
|
1805
1805
|
/**
|
|
1806
1806
|
* @typedef {Object} TablesDBListIndexesRequestParams
|
|
1807
1807
|
* @property {string} databaseId Database ID.
|
|
1808
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
1808
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1809
1809
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error
|
|
1810
1810
|
* @property {boolean} overrideForCli
|
|
1811
1811
|
* @property {boolean} parseOutput
|
|
@@ -1843,7 +1843,7 @@ const tablesDBListIndexes = async ({databaseId,tableId,queries,parseOutput = tru
|
|
|
1843
1843
|
/**
|
|
1844
1844
|
* @typedef {Object} TablesDBCreateIndexRequestParams
|
|
1845
1845
|
* @property {string} databaseId Database ID.
|
|
1846
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
1846
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1847
1847
|
* @property {string} key Index Key.
|
|
1848
1848
|
* @property {IndexType} type Index type.
|
|
1849
1849
|
* @property {string[]} columns Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.
|
|
@@ -1897,7 +1897,7 @@ const tablesDBCreateIndex = async ({databaseId,tableId,key,type,columns,orders,l
|
|
|
1897
1897
|
/**
|
|
1898
1898
|
* @typedef {Object} TablesDBGetIndexRequestParams
|
|
1899
1899
|
* @property {string} databaseId Database ID.
|
|
1900
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
1900
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1901
1901
|
* @property {string} key Index Key.
|
|
1902
1902
|
* @property {boolean} overrideForCli
|
|
1903
1903
|
* @property {boolean} parseOutput
|
|
@@ -1928,7 +1928,7 @@ const tablesDBGetIndex = async ({databaseId,tableId,key,parseOutput = true, over
|
|
|
1928
1928
|
/**
|
|
1929
1929
|
* @typedef {Object} TablesDBDeleteIndexRequestParams
|
|
1930
1930
|
* @property {string} databaseId Database ID.
|
|
1931
|
-
* @property {string} tableId Table ID. You can create a new table using the
|
|
1931
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
1932
1932
|
* @property {string} key Index Key.
|
|
1933
1933
|
* @property {boolean} overrideForCli
|
|
1934
1934
|
* @property {boolean} parseOutput
|
|
@@ -1998,7 +1998,7 @@ const tablesDBListTableLogs = async ({databaseId,tableId,queries,parseOutput = t
|
|
|
1998
1998
|
/**
|
|
1999
1999
|
* @typedef {Object} TablesDBListRowsRequestParams
|
|
2000
2000
|
* @property {string} databaseId Database ID.
|
|
2001
|
-
* @property {string} tableId Table ID. You can create a new table using the
|
|
2001
|
+
* @property {string} tableId Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).
|
|
2002
2002
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
2003
2003
|
* @property {boolean} overrideForCli
|
|
2004
2004
|
* @property {boolean} parseOutput
|
|
@@ -2036,7 +2036,7 @@ const tablesDBListRows = async ({databaseId,tableId,queries,parseOutput = true,
|
|
|
2036
2036
|
/**
|
|
2037
2037
|
* @typedef {Object} TablesDBCreateRowRequestParams
|
|
2038
2038
|
* @property {string} databaseId Database ID.
|
|
2039
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2039
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.
|
|
2040
2040
|
* @property {string} rowId Row 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.
|
|
2041
2041
|
* @property {object} data Row data as JSON object.
|
|
2042
2042
|
* @property {string[]} permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
@@ -2080,7 +2080,7 @@ const tablesDBCreateRow = async ({databaseId,tableId,rowId,data,permissions,pars
|
|
|
2080
2080
|
/**
|
|
2081
2081
|
* @typedef {Object} TablesDBCreateRowsRequestParams
|
|
2082
2082
|
* @property {string} databaseId Database ID.
|
|
2083
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2083
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.
|
|
2084
2084
|
* @property {object[]} rows Array of rows data as JSON objects.
|
|
2085
2085
|
* @property {boolean} overrideForCli
|
|
2086
2086
|
* @property {boolean} parseOutput
|
|
@@ -2192,7 +2192,7 @@ const tablesDBUpdateRows = async ({databaseId,tableId,data,queries,parseOutput =
|
|
|
2192
2192
|
/**
|
|
2193
2193
|
* @typedef {Object} TablesDBDeleteRowsRequestParams
|
|
2194
2194
|
* @property {string} databaseId Database ID.
|
|
2195
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2195
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
2196
2196
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
2197
2197
|
* @property {boolean} overrideForCli
|
|
2198
2198
|
* @property {boolean} parseOutput
|
|
@@ -2228,7 +2228,7 @@ const tablesDBDeleteRows = async ({databaseId,tableId,queries,parseOutput = true
|
|
|
2228
2228
|
/**
|
|
2229
2229
|
* @typedef {Object} TablesDBGetRowRequestParams
|
|
2230
2230
|
* @property {string} databaseId Database ID.
|
|
2231
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2231
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
2232
2232
|
* @property {string} rowId Row ID.
|
|
2233
2233
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
|
|
2234
2234
|
* @property {boolean} overrideForCli
|
|
@@ -2349,7 +2349,7 @@ const tablesDBUpdateRow = async ({databaseId,tableId,rowId,data,permissions,pars
|
|
|
2349
2349
|
/**
|
|
2350
2350
|
* @typedef {Object} TablesDBDeleteRowRequestParams
|
|
2351
2351
|
* @property {string} databaseId Database ID.
|
|
2352
|
-
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2352
|
+
* @property {string} tableId Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).
|
|
2353
2353
|
* @property {string} rowId Row ID.
|
|
2354
2354
|
* @property {boolean} overrideForCli
|
|
2355
2355
|
* @property {boolean} parseOutput
|
|
@@ -2625,7 +2625,7 @@ tablesDB
|
|
|
2625
2625
|
|
|
2626
2626
|
tablesDB
|
|
2627
2627
|
.command(`create-table`)
|
|
2628
|
-
.description(`Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/
|
|
2628
|
+
.description(`Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
|
|
2629
2629
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2630
2630
|
.requiredOption(`--table-id <table-id>`, `Unique 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.`)
|
|
2631
2631
|
.requiredOption(`--name <name>`, `Table name. Max length: 128 chars.`)
|
|
@@ -2673,7 +2673,7 @@ tablesDB
|
|
|
2673
2673
|
.command(`create-boolean-column`)
|
|
2674
2674
|
.description(`Create a boolean column. `)
|
|
2675
2675
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2676
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2676
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2677
2677
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2678
2678
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2679
2679
|
.option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value) => value === undefined ? true : parseBool(value))
|
|
@@ -2684,7 +2684,7 @@ tablesDB
|
|
|
2684
2684
|
.command(`update-boolean-column`)
|
|
2685
2685
|
.description(`Update a boolean column. Changing the 'default' value will not update already existing rows.`)
|
|
2686
2686
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2687
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2687
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2688
2688
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2689
2689
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2690
2690
|
.option(`--xdefault [value]`, `Default value for column when not provided. Cannot be set when column is required.`, (value) => value === undefined ? true : parseBool(value))
|
|
@@ -2837,7 +2837,7 @@ tablesDB
|
|
|
2837
2837
|
.command(`create-line-column`)
|
|
2838
2838
|
.description(`Create a geometric line column.`)
|
|
2839
2839
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2840
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
2840
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2841
2841
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2842
2842
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2843
2843
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.`)
|
|
@@ -2847,7 +2847,7 @@ tablesDB
|
|
|
2847
2847
|
.command(`update-line-column`)
|
|
2848
2848
|
.description(`Update a line column. Changing the 'default' value will not update already existing rows.`)
|
|
2849
2849
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2850
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
2850
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2851
2851
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2852
2852
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2853
2853
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, two-dimensional array of coordinate pairs, [[longitude, latitude], [longitude, latitude], …], listing the vertices of the line in order. Cannot be set when column is required.`)
|
|
@@ -2858,7 +2858,7 @@ tablesDB
|
|
|
2858
2858
|
.command(`create-point-column`)
|
|
2859
2859
|
.description(`Create a geometric point column.`)
|
|
2860
2860
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2861
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
2861
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2862
2862
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2863
2863
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2864
2864
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.`)
|
|
@@ -2868,7 +2868,7 @@ tablesDB
|
|
|
2868
2868
|
.command(`update-point-column`)
|
|
2869
2869
|
.description(`Update a point column. Changing the 'default' value will not update already existing rows.`)
|
|
2870
2870
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2871
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
2871
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2872
2872
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2873
2873
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2874
2874
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, array of two numbers [longitude, latitude], representing a single coordinate. Cannot be set when column is required.`)
|
|
@@ -2879,7 +2879,7 @@ tablesDB
|
|
|
2879
2879
|
.command(`create-polygon-column`)
|
|
2880
2880
|
.description(`Create a geometric polygon column.`)
|
|
2881
2881
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2882
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
2882
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2883
2883
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2884
2884
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2885
2885
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.`)
|
|
@@ -2889,7 +2889,7 @@ tablesDB
|
|
|
2889
2889
|
.command(`update-polygon-column`)
|
|
2890
2890
|
.description(`Update a polygon column. Changing the 'default' value will not update already existing rows.`)
|
|
2891
2891
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2892
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/server/
|
|
2892
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2893
2893
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2894
2894
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2895
2895
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided, three-dimensional array where the outer array holds one or more linear rings, [[[longitude, latitude], …], …], the first ring is the exterior boundary, any additional rings are interior holes, and each ring must start and end with the same coordinate pair. Cannot be set when column is required.`)
|
|
@@ -2913,7 +2913,7 @@ tablesDB
|
|
|
2913
2913
|
.command(`create-string-column`)
|
|
2914
2914
|
.description(`Create a string column. `)
|
|
2915
2915
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2916
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2916
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2917
2917
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2918
2918
|
.requiredOption(`--size <size>`, `Column size for text columns, in number of characters.`, parseInteger)
|
|
2919
2919
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
@@ -2926,7 +2926,7 @@ tablesDB
|
|
|
2926
2926
|
.command(`update-string-column`)
|
|
2927
2927
|
.description(`Update a string column. Changing the 'default' value will not update already existing rows. `)
|
|
2928
2928
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2929
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2929
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2930
2930
|
.requiredOption(`--key <key>`, `Column Key.`)
|
|
2931
2931
|
.requiredOption(`--required [value]`, `Is column required?`, (value) => value === undefined ? true : parseBool(value))
|
|
2932
2932
|
.option(`--xdefault <xdefault>`, `Default value for column when not provided. Cannot be set when column is required.`)
|
|
@@ -2987,7 +2987,7 @@ tablesDB
|
|
|
2987
2987
|
.command(`list-indexes`)
|
|
2988
2988
|
.description(`List indexes on the table.`)
|
|
2989
2989
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2990
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2990
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
2991
2991
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: key, type, status, attributes, error`)
|
|
2992
2992
|
.option(`--console`, `Get the resource console url`)
|
|
2993
2993
|
.action(actionRunner(tablesDBListIndexes))
|
|
@@ -2996,7 +2996,7 @@ tablesDB
|
|
|
2996
2996
|
.command(`create-index`)
|
|
2997
2997
|
.description(`Creates an index on the columns listed. Your index should include all the columns you will query in a single request. Type can be 'key', 'fulltext', or 'unique'.`)
|
|
2998
2998
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
2999
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
2999
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3000
3000
|
.requiredOption(`--key <key>`, `Index Key.`)
|
|
3001
3001
|
.requiredOption(`--type <type>`, `Index type.`)
|
|
3002
3002
|
.requiredOption(`--columns [columns...]`, `Array of columns to index. Maximum of 100 columns are allowed, each 32 characters long.`)
|
|
@@ -3008,7 +3008,7 @@ tablesDB
|
|
|
3008
3008
|
.command(`get-index`)
|
|
3009
3009
|
.description(`Get index by ID.`)
|
|
3010
3010
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3011
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
3011
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3012
3012
|
.requiredOption(`--key <key>`, `Index Key.`)
|
|
3013
3013
|
.action(actionRunner(tablesDBGetIndex))
|
|
3014
3014
|
|
|
@@ -3016,7 +3016,7 @@ tablesDB
|
|
|
3016
3016
|
.command(`delete-index`)
|
|
3017
3017
|
.description(`Delete an index.`)
|
|
3018
3018
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3019
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the
|
|
3019
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3020
3020
|
.requiredOption(`--key <key>`, `Index Key.`)
|
|
3021
3021
|
.action(actionRunner(tablesDBDeleteIndex))
|
|
3022
3022
|
|
|
@@ -3033,16 +3033,16 @@ tablesDB
|
|
|
3033
3033
|
.command(`list-rows`)
|
|
3034
3034
|
.description(`Get a list of all the user's rows in a given table. You can use the query params to filter your results.`)
|
|
3035
3035
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3036
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the
|
|
3036
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the TablesDB service [server integration](https://appwrite.io/docs/products/databases/tables#create-table).`)
|
|
3037
3037
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
3038
3038
|
.option(`--console`, `Get the resource console url`)
|
|
3039
3039
|
.action(actionRunner(tablesDBListRows))
|
|
3040
3040
|
|
|
3041
3041
|
tablesDB
|
|
3042
3042
|
.command(`create-row`)
|
|
3043
|
-
.description(`Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/
|
|
3043
|
+
.description(`Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
|
|
3044
3044
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3045
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
3045
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.`)
|
|
3046
3046
|
.requiredOption(`--row-id <row-id>`, `Row 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.`)
|
|
3047
3047
|
.requiredOption(`--data <data>`, `Row data as JSON object.`)
|
|
3048
3048
|
.option(`--permissions [permissions...]`, `An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).`)
|
|
@@ -3050,15 +3050,15 @@ tablesDB
|
|
|
3050
3050
|
|
|
3051
3051
|
tablesDB
|
|
3052
3052
|
.command(`create-rows`)
|
|
3053
|
-
.description(`Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/
|
|
3053
|
+
.description(`Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
|
|
3054
3054
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3055
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
3055
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable). Make sure to define columns before creating rows.`)
|
|
3056
3056
|
.requiredOption(`--rows [rows...]`, `Array of rows data as JSON objects.`)
|
|
3057
3057
|
.action(actionRunner(tablesDBCreateRows))
|
|
3058
3058
|
|
|
3059
3059
|
tablesDB
|
|
3060
3060
|
.command(`upsert-rows`)
|
|
3061
|
-
.description(`Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/
|
|
3061
|
+
.description(`Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console. `)
|
|
3062
3062
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3063
3063
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3064
3064
|
.requiredOption(`--rows [rows...]`, `Array of row data as JSON objects. May contain partial rows.`)
|
|
@@ -3077,7 +3077,7 @@ tablesDB
|
|
|
3077
3077
|
.command(`delete-rows`)
|
|
3078
3078
|
.description(`Bulk delete rows using queries, if no queries are passed then all rows are deleted.`)
|
|
3079
3079
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3080
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
3080
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3081
3081
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
3082
3082
|
.action(actionRunner(tablesDBDeleteRows))
|
|
3083
3083
|
|
|
@@ -3085,7 +3085,7 @@ tablesDB
|
|
|
3085
3085
|
.command(`get-row`)
|
|
3086
3086
|
.description(`Get a row by its unique ID. This endpoint response returns a JSON object with the row data.`)
|
|
3087
3087
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3088
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
3088
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3089
3089
|
.requiredOption(`--row-id <row-id>`, `Row ID.`)
|
|
3090
3090
|
.option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.`)
|
|
3091
3091
|
.option(`--console`, `Get the resource console url`)
|
|
@@ -3093,7 +3093,7 @@ tablesDB
|
|
|
3093
3093
|
|
|
3094
3094
|
tablesDB
|
|
3095
3095
|
.command(`upsert-row`)
|
|
3096
|
-
.description(`Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/server/
|
|
3096
|
+
.description(`Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable) API or directly from your database console.`)
|
|
3097
3097
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3098
3098
|
.requiredOption(`--table-id <table-id>`, `Table ID.`)
|
|
3099
3099
|
.requiredOption(`--row-id <row-id>`, `Row ID.`)
|
|
@@ -3115,7 +3115,7 @@ tablesDB
|
|
|
3115
3115
|
.command(`delete-row`)
|
|
3116
3116
|
.description(`Delete a row by its unique ID.`)
|
|
3117
3117
|
.requiredOption(`--database-id <database-id>`, `Database ID.`)
|
|
3118
|
-
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/
|
|
3118
|
+
.requiredOption(`--table-id <table-id>`, `Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/references/cloud/server-dart/tablesDB#createTable).`)
|
|
3119
3119
|
.requiredOption(`--row-id <row-id>`, `Row ID.`)
|
|
3120
3120
|
.action(actionRunner(tablesDBDeleteRow))
|
|
3121
3121
|
|
package/lib/parser.js
CHANGED
|
@@ -122,7 +122,7 @@ const parseError = (err) => {
|
|
|
122
122
|
} catch {
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const version = '10.0
|
|
125
|
+
const version = '10.1.0';
|
|
126
126
|
const stepsToReproduce = `Running \`appwrite ${cliConfig.reportData.data.args.join(' ')}\``;
|
|
127
127
|
const yourEnvironment = `CLI version: ${version}\nOperation System: ${os.type()}\nAppwrite version: ${appwriteVersion}\nIs Cloud: ${isCloud()}`;
|
|
128
128
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "appwrite-cli",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"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": "10.0
|
|
5
|
+
"version": "10.1.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"bin": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
|
|
5
5
|
"homepage": "https://github.com/appwrite/sdk-for-cli",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"architecture": {
|
|
8
8
|
"64bit": {
|
|
9
|
-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/10.0
|
|
9
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/10.1.0/appwrite-cli-win-x64.exe",
|
|
10
10
|
"bin": [
|
|
11
11
|
[
|
|
12
12
|
"appwrite-cli-win-x64.exe",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"arm64": {
|
|
18
|
-
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/10.0
|
|
18
|
+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/10.1.0/appwrite-cli-win-arm64.exe",
|
|
19
19
|
"bin": [
|
|
20
20
|
[
|
|
21
21
|
"appwrite-cli-win-arm64.exe",
|