Skip to content

Commit 0c82649

Browse files
committed
chore: regenerate sdk
1 parent ad80215 commit 0c82649

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

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

lib/commands/databases.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,15 +2660,15 @@ databases
26602660

26612661
databases
26622662
.command(`create-documents`)
2663-
.description(`Create new 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.`)
2663+
.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 new 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.`)
26642664
.requiredOption(`--database-id <database-id>`, `Database ID.`)
26652665
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.`)
26662666
.requiredOption(`--documents [documents...]`, `Array of documents data as JSON objects.`)
26672667
.action(actionRunner(databasesCreateDocuments))
26682668

26692669
databases
26702670
.command(`upsert-documents`)
2671-
.description(`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.`)
@@ -2685,7 +2685,7 @@ databases
26852685

26862686
databases
26872687
.command(`delete-documents`)
2688-
.description(`Bulk delete documents using queries, if no queries are passed then all documents are deleted.`)
2688+
.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. Bulk delete documents using queries, if no queries are passed then all documents are deleted.`)
26892689
.requiredOption(`--database-id <database-id>`, `Database ID.`)
26902690
.requiredOption(`--collection-id <collection-id>`, `Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).`)
26912691
.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.`)
@@ -2703,7 +2703,7 @@ databases
27032703

27042704
databases
27052705
.command(`upsert-document`)
2706-
.description(`Create or update a Document. 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.`)
2706+
.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 a Document. 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.`)
27072707
.requiredOption(`--database-id <database-id>`, `Database ID.`)
27082708
.requiredOption(`--collection-id <collection-id>`, `Collection ID.`)
27092709
.requiredOption(`--document-id <document-id>`, `Document ID.`)

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

0 commit comments

Comments
 (0)