node-appwrite 21.0.0 → 21.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.
@@ -387,7 +387,9 @@ var Databases = class {
387
387
  name: rest[1],
388
388
  permissions: rest[2],
389
389
  documentSecurity: rest[3],
390
- enabled: rest[4]
390
+ enabled: rest[4],
391
+ attributes: rest[5],
392
+ indexes: rest[6]
391
393
  };
392
394
  }
393
395
  const databaseId = params.databaseId;
@@ -396,6 +398,8 @@ var Databases = class {
396
398
  const permissions = params.permissions;
397
399
  const documentSecurity = params.documentSecurity;
398
400
  const enabled = params.enabled;
401
+ const attributes = params.attributes;
402
+ const indexes = params.indexes;
399
403
  if (typeof databaseId === "undefined") {
400
404
  throw new AppwriteException('Missing required parameter: "databaseId"');
401
405
  }
@@ -422,6 +426,12 @@ var Databases = class {
422
426
  if (typeof enabled !== "undefined") {
423
427
  payload["enabled"] = enabled;
424
428
  }
429
+ if (typeof attributes !== "undefined") {
430
+ payload["attributes"] = attributes;
431
+ }
432
+ if (typeof indexes !== "undefined") {
433
+ payload["indexes"] = indexes;
434
+ }
425
435
  const uri = new URL(this.client.config.endpoint + apiPath);
426
436
  const apiHeaders = {
427
437
  "content-type": "application/json"