@appwrite.io/console 1.5.1 → 1.5.2

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/dist/esm/sdk.js CHANGED
@@ -278,7 +278,7 @@ class Client {
278
278
  'x-sdk-name': 'Console',
279
279
  'x-sdk-platform': 'console',
280
280
  'x-sdk-language': 'web',
281
- 'x-sdk-version': '1.5.1',
281
+ 'x-sdk-version': '1.5.2',
282
282
  'X-Appwrite-Response-Format': '1.6.0',
283
283
  };
284
284
  this.realtime = {
@@ -4261,14 +4261,14 @@ class Databases {
4261
4261
  * @param {string} collectionId
4262
4262
  * @param {string} key
4263
4263
  * @param {boolean} required
4264
+ * @param {number} xdefault
4264
4265
  * @param {number} min
4265
4266
  * @param {number} max
4266
- * @param {number} xdefault
4267
4267
  * @param {string} newKey
4268
4268
  * @throws {AppwriteException}
4269
4269
  * @returns {Promise<Models.AttributeFloat>}
4270
4270
  */
4271
- updateFloatAttribute(databaseId, collectionId, key, required, min, max, xdefault, newKey) {
4271
+ updateFloatAttribute(databaseId, collectionId, key, required, xdefault, min, max, newKey) {
4272
4272
  return __awaiter(this, void 0, void 0, function* () {
4273
4273
  if (typeof databaseId === 'undefined') {
4274
4274
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -4282,12 +4282,6 @@ class Databases {
4282
4282
  if (typeof required === 'undefined') {
4283
4283
  throw new AppwriteException('Missing required parameter: "required"');
4284
4284
  }
4285
- if (typeof min === 'undefined') {
4286
- throw new AppwriteException('Missing required parameter: "min"');
4287
- }
4288
- if (typeof max === 'undefined') {
4289
- throw new AppwriteException('Missing required parameter: "max"');
4290
- }
4291
4285
  if (typeof xdefault === 'undefined') {
4292
4286
  throw new AppwriteException('Missing required parameter: "xdefault"');
4293
4287
  }
@@ -4385,14 +4379,14 @@ class Databases {
4385
4379
  * @param {string} collectionId
4386
4380
  * @param {string} key
4387
4381
  * @param {boolean} required
4382
+ * @param {number} xdefault
4388
4383
  * @param {number} min
4389
4384
  * @param {number} max
4390
- * @param {number} xdefault
4391
4385
  * @param {string} newKey
4392
4386
  * @throws {AppwriteException}
4393
4387
  * @returns {Promise<Models.AttributeInteger>}
4394
4388
  */
4395
- updateIntegerAttribute(databaseId, collectionId, key, required, min, max, xdefault, newKey) {
4389
+ updateIntegerAttribute(databaseId, collectionId, key, required, xdefault, min, max, newKey) {
4396
4390
  return __awaiter(this, void 0, void 0, function* () {
4397
4391
  if (typeof databaseId === 'undefined') {
4398
4392
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -4406,12 +4400,6 @@ class Databases {
4406
4400
  if (typeof required === 'undefined') {
4407
4401
  throw new AppwriteException('Missing required parameter: "required"');
4408
4402
  }
4409
- if (typeof min === 'undefined') {
4410
- throw new AppwriteException('Missing required parameter: "min"');
4411
- }
4412
- if (typeof max === 'undefined') {
4413
- throw new AppwriteException('Missing required parameter: "max"');
4414
- }
4415
4403
  if (typeof xdefault === 'undefined') {
4416
4404
  throw new AppwriteException('Missing required parameter: "xdefault"');
4417
4405
  }
@@ -4961,6 +4949,7 @@ class Databases {
4961
4949
  * Create document
4962
4950
  *
4963
4951
  * Create a new 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.
4952
+
4964
4953
  *
4965
4954
  * @param {string} databaseId
4966
4955
  * @param {string} collectionId
@@ -6602,26 +6591,6 @@ class Health {
6602
6591
  return yield this.client.call('get', uri, apiHeaders, payload);
6603
6592
  });
6604
6593
  }
6605
- /**
6606
- * Get queue
6607
- *
6608
- * Check the Appwrite queue messaging servers are up and connection is successful.
6609
- *
6610
- * @throws {AppwriteException}
6611
- * @returns {Promise<Models.HealthStatus>}
6612
- */
6613
- getQueue() {
6614
- return __awaiter(this, void 0, void 0, function* () {
6615
- const apiPath = '/health/queue';
6616
- const payload = {};
6617
- const uri = new URL(this.client.config.endpoint + apiPath);
6618
- const apiHeaders = {
6619
- 'content-type': 'application/json',
6620
- };
6621
- payload['project'] = this.client.config.project;
6622
- return yield this.client.call('get', uri, apiHeaders, payload);
6623
- });
6624
- }
6625
6594
  /**
6626
6595
  * Get billing aggregation queue
6627
6596
  *
@@ -6920,17 +6889,17 @@ class Health {
6920
6889
  });
6921
6890
  }
6922
6891
  /**
6923
- * Get usage queue
6892
+ * Get stats resources queue
6924
6893
  *
6925
- * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
6894
+ * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
6926
6895
  *
6927
6896
  * @param {number} threshold
6928
6897
  * @throws {AppwriteException}
6929
6898
  * @returns {Promise<Models.HealthQueue>}
6930
6899
  */
6931
- getQueueUsage(threshold) {
6900
+ getQueueStatsResources(threshold) {
6932
6901
  return __awaiter(this, void 0, void 0, function* () {
6933
- const apiPath = '/health/queue/usage';
6902
+ const apiPath = '/health/queue/stats-resources';
6934
6903
  const payload = {};
6935
6904
  if (typeof threshold !== 'undefined') {
6936
6905
  payload['threshold'] = threshold;
@@ -6944,17 +6913,17 @@ class Health {
6944
6913
  });
6945
6914
  }
6946
6915
  /**
6947
- * Get usage count aggregation queue
6916
+ * Get stats usage queue
6948
6917
  *
6949
- * Get the usage count aggregation queue.
6918
+ * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
6950
6919
  *
6951
6920
  * @param {number} threshold
6952
6921
  * @throws {AppwriteException}
6953
6922
  * @returns {Promise<Models.HealthQueue>}
6954
6923
  */
6955
- getQueueUsageCount(threshold) {
6924
+ getQueueUsage(threshold) {
6956
6925
  return __awaiter(this, void 0, void 0, function* () {
6957
- const apiPath = '/health/queue/usage-count';
6926
+ const apiPath = '/health/queue/stats-usage';
6958
6927
  const payload = {};
6959
6928
  if (typeof threshold !== 'undefined') {
6960
6929
  payload['threshold'] = threshold;
@@ -6976,9 +6945,9 @@ class Health {
6976
6945
  * @throws {AppwriteException}
6977
6946
  * @returns {Promise<Models.HealthQueue>}
6978
6947
  */
6979
- getQueueUsageDump(threshold) {
6948
+ getQueueStatsUsageDump(threshold) {
6980
6949
  return __awaiter(this, void 0, void 0, function* () {
6981
- const apiPath = '/health/queue/usage-dump';
6950
+ const apiPath = '/health/queue/stats-usage-dump';
6982
6951
  const payload = {};
6983
6952
  if (typeof threshold !== 'undefined') {
6984
6953
  payload['threshold'] = threshold;
@@ -9911,10 +9880,14 @@ class Organizations {
9911
9880
  * @param {BillingPlan} billingPlan
9912
9881
  * @param {string} paymentMethodId
9913
9882
  * @param {string} billingAddressId
9883
+ * @param {string[]} invites
9884
+ * @param {string} couponId
9885
+ * @param {string} taxId
9886
+ * @param {number} budget
9914
9887
  * @throws {AppwriteException}
9915
9888
  * @returns {Promise<Models.Organization<Preferences>>}
9916
9889
  */
9917
- create(organizationId, name, billingPlan, paymentMethodId, billingAddressId) {
9890
+ create(organizationId, name, billingPlan, paymentMethodId, billingAddressId, invites, couponId, taxId, budget) {
9918
9891
  return __awaiter(this, void 0, void 0, function* () {
9919
9892
  if (typeof organizationId === 'undefined') {
9920
9893
  throw new AppwriteException('Missing required parameter: "organizationId"');
@@ -9942,6 +9915,18 @@ class Organizations {
9942
9915
  if (typeof billingAddressId !== 'undefined') {
9943
9916
  payload['billingAddressId'] = billingAddressId;
9944
9917
  }
9918
+ if (typeof invites !== 'undefined') {
9919
+ payload['invites'] = invites;
9920
+ }
9921
+ if (typeof couponId !== 'undefined') {
9922
+ payload['couponId'] = couponId;
9923
+ }
9924
+ if (typeof taxId !== 'undefined') {
9925
+ payload['taxId'] = taxId;
9926
+ }
9927
+ if (typeof budget !== 'undefined') {
9928
+ payload['budget'] = budget;
9929
+ }
9945
9930
  const uri = new URL(this.client.config.endpoint + apiPath);
9946
9931
  const apiHeaders = {
9947
9932
  'content-type': 'application/json',
@@ -10586,10 +10571,14 @@ class Organizations {
10586
10571
  * @param {BillingPlan} billingPlan
10587
10572
  * @param {string} paymentMethodId
10588
10573
  * @param {string} billingAddressId
10574
+ * @param {string[]} invites
10575
+ * @param {string} couponId
10576
+ * @param {string} taxId
10577
+ * @param {number} budget
10589
10578
  * @throws {AppwriteException}
10590
10579
  * @returns {Promise<Models.Organization<Preferences>>}
10591
10580
  */
10592
- updatePlan(organizationId, billingPlan, paymentMethodId, billingAddressId) {
10581
+ updatePlan(organizationId, billingPlan, paymentMethodId, billingAddressId, invites, couponId, taxId, budget) {
10593
10582
  return __awaiter(this, void 0, void 0, function* () {
10594
10583
  if (typeof organizationId === 'undefined') {
10595
10584
  throw new AppwriteException('Missing required parameter: "organizationId"');
@@ -10608,6 +10597,18 @@ class Organizations {
10608
10597
  if (typeof billingAddressId !== 'undefined') {
10609
10598
  payload['billingAddressId'] = billingAddressId;
10610
10599
  }
10600
+ if (typeof invites !== 'undefined') {
10601
+ payload['invites'] = invites;
10602
+ }
10603
+ if (typeof couponId !== 'undefined') {
10604
+ payload['couponId'] = couponId;
10605
+ }
10606
+ if (typeof taxId !== 'undefined') {
10607
+ payload['taxId'] = taxId;
10608
+ }
10609
+ if (typeof budget !== 'undefined') {
10610
+ payload['budget'] = budget;
10611
+ }
10611
10612
  const uri = new URL(this.client.config.endpoint + apiPath);
10612
10613
  const apiHeaders = {
10613
10614
  'content-type': 'application/json',
@@ -15820,6 +15821,7 @@ var CreditCard;
15820
15821
  CreditCard["Visa"] = "visa";
15821
15822
  CreditCard["MIR"] = "mir";
15822
15823
  CreditCard["Maestro"] = "maestro";
15824
+ CreditCard["Rupay"] = "rupay";
15823
15825
  })(CreditCard || (CreditCard = {}));
15824
15826
 
15825
15827
  var Flag;
@@ -16073,6 +16075,9 @@ var Runtime;
16073
16075
  Runtime["Python311"] = "python-3.11";
16074
16076
  Runtime["Python312"] = "python-3.12";
16075
16077
  Runtime["Pythonml311"] = "python-ml-3.11";
16078
+ Runtime["Deno121"] = "deno-1.21";
16079
+ Runtime["Deno124"] = "deno-1.24";
16080
+ Runtime["Deno135"] = "deno-1.35";
16076
16081
  Runtime["Deno140"] = "deno-1.40";
16077
16082
  Runtime["Deno146"] = "deno-1.46";
16078
16083
  Runtime["Deno20"] = "deno-2.0";
@@ -16134,8 +16139,9 @@ var Name;
16134
16139
  Name["V1audits"] = "v1-audits";
16135
16140
  Name["V1mails"] = "v1-mails";
16136
16141
  Name["V1functions"] = "v1-functions";
16137
- Name["V1usage"] = "v1-usage";
16138
- Name["V1usagedump"] = "v1-usage-dump";
16142
+ Name["V1statsresources"] = "v1-stats-resources";
16143
+ Name["V1statsusage"] = "v1-stats-usage";
16144
+ Name["V1statsusagedump"] = "v1-stats-usage-dump";
16139
16145
  Name["V1webhooks"] = "v1-webhooks";
16140
16146
  Name["V1certificates"] = "v1-certificates";
16141
16147
  Name["V1builds"] = "v1-builds";