@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/iife/sdk.js CHANGED
@@ -281,7 +281,7 @@
281
281
  'x-sdk-name': 'Console',
282
282
  'x-sdk-platform': 'console',
283
283
  'x-sdk-language': 'web',
284
- 'x-sdk-version': '1.5.1',
284
+ 'x-sdk-version': '1.5.2',
285
285
  'X-Appwrite-Response-Format': '1.6.0',
286
286
  };
287
287
  this.realtime = {
@@ -4264,14 +4264,14 @@
4264
4264
  * @param {string} collectionId
4265
4265
  * @param {string} key
4266
4266
  * @param {boolean} required
4267
+ * @param {number} xdefault
4267
4268
  * @param {number} min
4268
4269
  * @param {number} max
4269
- * @param {number} xdefault
4270
4270
  * @param {string} newKey
4271
4271
  * @throws {AppwriteException}
4272
4272
  * @returns {Promise<Models.AttributeFloat>}
4273
4273
  */
4274
- updateFloatAttribute(databaseId, collectionId, key, required, min, max, xdefault, newKey) {
4274
+ updateFloatAttribute(databaseId, collectionId, key, required, xdefault, min, max, newKey) {
4275
4275
  return __awaiter(this, void 0, void 0, function* () {
4276
4276
  if (typeof databaseId === 'undefined') {
4277
4277
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -4285,12 +4285,6 @@
4285
4285
  if (typeof required === 'undefined') {
4286
4286
  throw new AppwriteException('Missing required parameter: "required"');
4287
4287
  }
4288
- if (typeof min === 'undefined') {
4289
- throw new AppwriteException('Missing required parameter: "min"');
4290
- }
4291
- if (typeof max === 'undefined') {
4292
- throw new AppwriteException('Missing required parameter: "max"');
4293
- }
4294
4288
  if (typeof xdefault === 'undefined') {
4295
4289
  throw new AppwriteException('Missing required parameter: "xdefault"');
4296
4290
  }
@@ -4388,14 +4382,14 @@
4388
4382
  * @param {string} collectionId
4389
4383
  * @param {string} key
4390
4384
  * @param {boolean} required
4385
+ * @param {number} xdefault
4391
4386
  * @param {number} min
4392
4387
  * @param {number} max
4393
- * @param {number} xdefault
4394
4388
  * @param {string} newKey
4395
4389
  * @throws {AppwriteException}
4396
4390
  * @returns {Promise<Models.AttributeInteger>}
4397
4391
  */
4398
- updateIntegerAttribute(databaseId, collectionId, key, required, min, max, xdefault, newKey) {
4392
+ updateIntegerAttribute(databaseId, collectionId, key, required, xdefault, min, max, newKey) {
4399
4393
  return __awaiter(this, void 0, void 0, function* () {
4400
4394
  if (typeof databaseId === 'undefined') {
4401
4395
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -4409,12 +4403,6 @@
4409
4403
  if (typeof required === 'undefined') {
4410
4404
  throw new AppwriteException('Missing required parameter: "required"');
4411
4405
  }
4412
- if (typeof min === 'undefined') {
4413
- throw new AppwriteException('Missing required parameter: "min"');
4414
- }
4415
- if (typeof max === 'undefined') {
4416
- throw new AppwriteException('Missing required parameter: "max"');
4417
- }
4418
4406
  if (typeof xdefault === 'undefined') {
4419
4407
  throw new AppwriteException('Missing required parameter: "xdefault"');
4420
4408
  }
@@ -4964,6 +4952,7 @@
4964
4952
  * Create document
4965
4953
  *
4966
4954
  * 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.
4955
+
4967
4956
  *
4968
4957
  * @param {string} databaseId
4969
4958
  * @param {string} collectionId
@@ -6605,26 +6594,6 @@
6605
6594
  return yield this.client.call('get', uri, apiHeaders, payload);
6606
6595
  });
6607
6596
  }
6608
- /**
6609
- * Get queue
6610
- *
6611
- * Check the Appwrite queue messaging servers are up and connection is successful.
6612
- *
6613
- * @throws {AppwriteException}
6614
- * @returns {Promise<Models.HealthStatus>}
6615
- */
6616
- getQueue() {
6617
- return __awaiter(this, void 0, void 0, function* () {
6618
- const apiPath = '/health/queue';
6619
- const payload = {};
6620
- const uri = new URL(this.client.config.endpoint + apiPath);
6621
- const apiHeaders = {
6622
- 'content-type': 'application/json',
6623
- };
6624
- payload['project'] = this.client.config.project;
6625
- return yield this.client.call('get', uri, apiHeaders, payload);
6626
- });
6627
- }
6628
6597
  /**
6629
6598
  * Get billing aggregation queue
6630
6599
  *
@@ -6923,17 +6892,17 @@
6923
6892
  });
6924
6893
  }
6925
6894
  /**
6926
- * Get usage queue
6895
+ * Get stats resources queue
6927
6896
  *
6928
- * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
6897
+ * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
6929
6898
  *
6930
6899
  * @param {number} threshold
6931
6900
  * @throws {AppwriteException}
6932
6901
  * @returns {Promise<Models.HealthQueue>}
6933
6902
  */
6934
- getQueueUsage(threshold) {
6903
+ getQueueStatsResources(threshold) {
6935
6904
  return __awaiter(this, void 0, void 0, function* () {
6936
- const apiPath = '/health/queue/usage';
6905
+ const apiPath = '/health/queue/stats-resources';
6937
6906
  const payload = {};
6938
6907
  if (typeof threshold !== 'undefined') {
6939
6908
  payload['threshold'] = threshold;
@@ -6947,17 +6916,17 @@
6947
6916
  });
6948
6917
  }
6949
6918
  /**
6950
- * Get usage count aggregation queue
6919
+ * Get stats usage queue
6951
6920
  *
6952
- * Get the usage count aggregation queue.
6921
+ * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
6953
6922
  *
6954
6923
  * @param {number} threshold
6955
6924
  * @throws {AppwriteException}
6956
6925
  * @returns {Promise<Models.HealthQueue>}
6957
6926
  */
6958
- getQueueUsageCount(threshold) {
6927
+ getQueueUsage(threshold) {
6959
6928
  return __awaiter(this, void 0, void 0, function* () {
6960
- const apiPath = '/health/queue/usage-count';
6929
+ const apiPath = '/health/queue/stats-usage';
6961
6930
  const payload = {};
6962
6931
  if (typeof threshold !== 'undefined') {
6963
6932
  payload['threshold'] = threshold;
@@ -6979,9 +6948,9 @@
6979
6948
  * @throws {AppwriteException}
6980
6949
  * @returns {Promise<Models.HealthQueue>}
6981
6950
  */
6982
- getQueueUsageDump(threshold) {
6951
+ getQueueStatsUsageDump(threshold) {
6983
6952
  return __awaiter(this, void 0, void 0, function* () {
6984
- const apiPath = '/health/queue/usage-dump';
6953
+ const apiPath = '/health/queue/stats-usage-dump';
6985
6954
  const payload = {};
6986
6955
  if (typeof threshold !== 'undefined') {
6987
6956
  payload['threshold'] = threshold;
@@ -9914,10 +9883,14 @@
9914
9883
  * @param {BillingPlan} billingPlan
9915
9884
  * @param {string} paymentMethodId
9916
9885
  * @param {string} billingAddressId
9886
+ * @param {string[]} invites
9887
+ * @param {string} couponId
9888
+ * @param {string} taxId
9889
+ * @param {number} budget
9917
9890
  * @throws {AppwriteException}
9918
9891
  * @returns {Promise<Models.Organization<Preferences>>}
9919
9892
  */
9920
- create(organizationId, name, billingPlan, paymentMethodId, billingAddressId) {
9893
+ create(organizationId, name, billingPlan, paymentMethodId, billingAddressId, invites, couponId, taxId, budget) {
9921
9894
  return __awaiter(this, void 0, void 0, function* () {
9922
9895
  if (typeof organizationId === 'undefined') {
9923
9896
  throw new AppwriteException('Missing required parameter: "organizationId"');
@@ -9945,6 +9918,18 @@
9945
9918
  if (typeof billingAddressId !== 'undefined') {
9946
9919
  payload['billingAddressId'] = billingAddressId;
9947
9920
  }
9921
+ if (typeof invites !== 'undefined') {
9922
+ payload['invites'] = invites;
9923
+ }
9924
+ if (typeof couponId !== 'undefined') {
9925
+ payload['couponId'] = couponId;
9926
+ }
9927
+ if (typeof taxId !== 'undefined') {
9928
+ payload['taxId'] = taxId;
9929
+ }
9930
+ if (typeof budget !== 'undefined') {
9931
+ payload['budget'] = budget;
9932
+ }
9948
9933
  const uri = new URL(this.client.config.endpoint + apiPath);
9949
9934
  const apiHeaders = {
9950
9935
  'content-type': 'application/json',
@@ -10589,10 +10574,14 @@
10589
10574
  * @param {BillingPlan} billingPlan
10590
10575
  * @param {string} paymentMethodId
10591
10576
  * @param {string} billingAddressId
10577
+ * @param {string[]} invites
10578
+ * @param {string} couponId
10579
+ * @param {string} taxId
10580
+ * @param {number} budget
10592
10581
  * @throws {AppwriteException}
10593
10582
  * @returns {Promise<Models.Organization<Preferences>>}
10594
10583
  */
10595
- updatePlan(organizationId, billingPlan, paymentMethodId, billingAddressId) {
10584
+ updatePlan(organizationId, billingPlan, paymentMethodId, billingAddressId, invites, couponId, taxId, budget) {
10596
10585
  return __awaiter(this, void 0, void 0, function* () {
10597
10586
  if (typeof organizationId === 'undefined') {
10598
10587
  throw new AppwriteException('Missing required parameter: "organizationId"');
@@ -10611,6 +10600,18 @@
10611
10600
  if (typeof billingAddressId !== 'undefined') {
10612
10601
  payload['billingAddressId'] = billingAddressId;
10613
10602
  }
10603
+ if (typeof invites !== 'undefined') {
10604
+ payload['invites'] = invites;
10605
+ }
10606
+ if (typeof couponId !== 'undefined') {
10607
+ payload['couponId'] = couponId;
10608
+ }
10609
+ if (typeof taxId !== 'undefined') {
10610
+ payload['taxId'] = taxId;
10611
+ }
10612
+ if (typeof budget !== 'undefined') {
10613
+ payload['budget'] = budget;
10614
+ }
10614
10615
  const uri = new URL(this.client.config.endpoint + apiPath);
10615
10616
  const apiHeaders = {
10616
10617
  'content-type': 'application/json',
@@ -15823,6 +15824,7 @@
15823
15824
  CreditCard["Visa"] = "visa";
15824
15825
  CreditCard["MIR"] = "mir";
15825
15826
  CreditCard["Maestro"] = "maestro";
15827
+ CreditCard["Rupay"] = "rupay";
15826
15828
  })(exports.CreditCard || (exports.CreditCard = {}));
15827
15829
 
15828
15830
  exports.Flag = void 0;
@@ -16076,6 +16078,9 @@
16076
16078
  Runtime["Python311"] = "python-3.11";
16077
16079
  Runtime["Python312"] = "python-3.12";
16078
16080
  Runtime["Pythonml311"] = "python-ml-3.11";
16081
+ Runtime["Deno121"] = "deno-1.21";
16082
+ Runtime["Deno124"] = "deno-1.24";
16083
+ Runtime["Deno135"] = "deno-1.35";
16079
16084
  Runtime["Deno140"] = "deno-1.40";
16080
16085
  Runtime["Deno146"] = "deno-1.46";
16081
16086
  Runtime["Deno20"] = "deno-2.0";
@@ -16137,8 +16142,9 @@
16137
16142
  Name["V1audits"] = "v1-audits";
16138
16143
  Name["V1mails"] = "v1-mails";
16139
16144
  Name["V1functions"] = "v1-functions";
16140
- Name["V1usage"] = "v1-usage";
16141
- Name["V1usagedump"] = "v1-usage-dump";
16145
+ Name["V1statsresources"] = "v1-stats-resources";
16146
+ Name["V1statsusage"] = "v1-stats-usage";
16147
+ Name["V1statsusagedump"] = "v1-stats-usage-dump";
16142
16148
  Name["V1webhooks"] = "v1-webhooks";
16143
16149
  Name["V1certificates"] = "v1-certificates";
16144
16150
  Name["V1builds"] = "v1-builds";
@@ -11,9 +11,9 @@ const result = await databases.updateFloatAttribute(
11
11
  '<COLLECTION_ID>', // collectionId
12
12
  '', // key
13
13
  false, // required
14
- null, // min
15
- null, // max
16
14
  null, // default
15
+ null, // min (optional)
16
+ null, // max (optional)
17
17
  '' // newKey (optional)
18
18
  );
19
19
 
@@ -11,9 +11,9 @@ const result = await databases.updateIntegerAttribute(
11
11
  '<COLLECTION_ID>', // collectionId
12
12
  '', // key
13
13
  false, // required
14
- null, // min
15
- null, // max
16
14
  null, // default
15
+ null, // min (optional)
16
+ null, // max (optional)
17
17
  '' // newKey (optional)
18
18
  );
19
19
 
@@ -6,7 +6,7 @@ const client = new Client()
6
6
 
7
7
  const health = new Health(client);
8
8
 
9
- const result = await health.getQueueUsageCount(
9
+ const result = await health.getQueueStatsResources(
10
10
  null // threshold (optional)
11
11
  );
12
12
 
@@ -6,7 +6,7 @@ const client = new Client()
6
6
 
7
7
  const health = new Health(client);
8
8
 
9
- const result = await health.getQueueUsageDump(
9
+ const result = await health.getQueueStatsUsageDump(
10
10
  null // threshold (optional)
11
11
  );
12
12
 
@@ -11,7 +11,11 @@ const result = await organizations.create(
11
11
  '<NAME>', // name
12
12
  .Tier0, // billingPlan
13
13
  '<PAYMENT_METHOD_ID>', // paymentMethodId (optional)
14
- '<BILLING_ADDRESS_ID>' // billingAddressId (optional)
14
+ '<BILLING_ADDRESS_ID>', // billingAddressId (optional)
15
+ [], // invites (optional)
16
+ '<COUPON_ID>', // couponId (optional)
17
+ '<TAX_ID>', // taxId (optional)
18
+ 0 // budget (optional)
15
19
  );
16
20
 
17
21
  console.log(result);
@@ -10,7 +10,11 @@ const result = await organizations.updatePlan(
10
10
  '<ORGANIZATION_ID>', // organizationId
11
11
  .Tier0, // billingPlan
12
12
  '<PAYMENT_METHOD_ID>', // paymentMethodId (optional)
13
- '<BILLING_ADDRESS_ID>' // billingAddressId (optional)
13
+ '<BILLING_ADDRESS_ID>', // billingAddressId (optional)
14
+ [], // invites (optional)
15
+ '<COUPON_ID>', // couponId (optional)
16
+ '<TAX_ID>', // taxId (optional)
17
+ 0 // budget (optional)
14
18
  );
15
19
 
16
20
  console.log(result);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
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": "1.5.1",
5
+ "version": "1.5.2",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/src/client.ts CHANGED
@@ -316,7 +316,7 @@ class Client {
316
316
  'x-sdk-name': 'Console',
317
317
  'x-sdk-platform': 'console',
318
318
  'x-sdk-language': 'web',
319
- 'x-sdk-version': '1.5.1',
319
+ 'x-sdk-version': '1.5.2',
320
320
  'X-Appwrite-Response-Format': '1.6.0',
321
321
  };
322
322
 
@@ -15,4 +15,5 @@ export enum CreditCard {
15
15
  Visa = 'visa',
16
16
  MIR = 'mir',
17
17
  Maestro = 'maestro',
18
+ Rupay = 'rupay',
18
19
  }
package/src/enums/name.ts CHANGED
@@ -4,8 +4,9 @@ export enum Name {
4
4
  V1audits = 'v1-audits',
5
5
  V1mails = 'v1-mails',
6
6
  V1functions = 'v1-functions',
7
- V1usage = 'v1-usage',
8
- V1usagedump = 'v1-usage-dump',
7
+ V1statsresources = 'v1-stats-resources',
8
+ V1statsusage = 'v1-stats-usage',
9
+ V1statsusagedump = 'v1-stats-usage-dump',
9
10
  V1webhooks = 'v1-webhooks',
10
11
  V1certificates = 'v1-certificates',
11
12
  V1builds = 'v1-builds',
@@ -20,6 +20,9 @@ export enum Runtime {
20
20
  Python311 = 'python-3.11',
21
21
  Python312 = 'python-3.12',
22
22
  Pythonml311 = 'python-ml-3.11',
23
+ Deno121 = 'deno-1.21',
24
+ Deno124 = 'deno-1.24',
25
+ Deno135 = 'deno-1.35',
23
26
  Deno140 = 'deno-1.40',
24
27
  Deno146 = 'deno-1.46',
25
28
  Deno20 = 'deno-2.0',
package/src/models.ts CHANGED
@@ -3316,6 +3316,14 @@ export namespace Models {
3316
3316
  * Aggregated number of bucket storage files (in bytes) per period.
3317
3317
  */
3318
3318
  storage: Metric[];
3319
+ /**
3320
+ * Aggregated number of files transformations per period.
3321
+ */
3322
+ imageTransformations: Metric[];
3323
+ /**
3324
+ * Total aggregated number of files transformations.
3325
+ */
3326
+ imageTransformationsTotal: number;
3319
3327
  }
3320
3328
  /**
3321
3329
  * UsageFunctions
@@ -3607,6 +3615,14 @@ export namespace Models {
3607
3615
  * An array of aggregated number of database writes.
3608
3616
  */
3609
3617
  databasesWrites: Metric[];
3618
+ /**
3619
+ * An array of aggregated number of image transformations.
3620
+ */
3621
+ imageTransformations: Metric[];
3622
+ /**
3623
+ * Total aggregated number of image transformations.
3624
+ */
3625
+ imageTransformationsTotal: number;
3610
3626
  }
3611
3627
  /**
3612
3628
  * Headers
@@ -4254,6 +4270,10 @@ export namespace Models {
4254
4270
  * Additional realtime usage cost
4255
4271
  */
4256
4272
  additionalRealtimeAmount: number;
4273
+ /**
4274
+ * Billing plan
4275
+ */
4276
+ plan: string;
4257
4277
  /**
4258
4278
  * Aggregated amount
4259
4279
  */
@@ -4357,6 +4377,10 @@ export namespace Models {
4357
4377
  * Plan name
4358
4378
  */
4359
4379
  name: string;
4380
+ /**
4381
+ * Plan description
4382
+ */
4383
+ desc: string;
4360
4384
  /**
4361
4385
  * Plan order
4362
4386
  */
@@ -4377,6 +4401,10 @@ export namespace Models {
4377
4401
  * Storage
4378
4402
  */
4379
4403
  storage: number;
4404
+ /**
4405
+ * Image Transformations
4406
+ */
4407
+ imageTransformations: number;
4380
4408
  /**
4381
4409
  * Members
4382
4410
  */
@@ -4428,7 +4456,11 @@ export namespace Models {
4428
4456
  /**
4429
4457
  * Additional resources
4430
4458
  */
4431
- addons: AdditionalResource;
4459
+ usage: AdditionalResource[];
4460
+ /**
4461
+ * Addons
4462
+ */
4463
+ addons: BillingPlanAddon[];
4432
4464
  /**
4433
4465
  * Custom SMTP
4434
4466
  */
@@ -4465,6 +4497,10 @@ export namespace Models {
4465
4497
  * Does plan support mock numbers
4466
4498
  */
4467
4499
  supportsMockNumbers: boolean;
4500
+ /**
4501
+ * Does plan support credit
4502
+ */
4503
+ supportsCredits: boolean;
4468
4504
  /**
4469
4505
  * Does plan support backup policies.
4470
4506
  */
@@ -4474,6 +4510,35 @@ export namespace Models {
4474
4510
  */
4475
4511
  backupPolicies: number;
4476
4512
  }
4513
+ /**
4514
+ * BillingPlanAddon
4515
+ */
4516
+ export type BillingPlanAddon = {
4517
+ /**
4518
+ * Is the addon supported in the plan?
4519
+ */
4520
+ supported: boolean;
4521
+ /**
4522
+ * Addon limit
4523
+ */
4524
+ limit: number;
4525
+ /**
4526
+ * Addon type
4527
+ */
4528
+ type: string;
4529
+ /**
4530
+ * Price currency
4531
+ */
4532
+ currency: string;
4533
+ /**
4534
+ * Price
4535
+ */
4536
+ price: number;
4537
+ /**
4538
+ * Resource value
4539
+ */
4540
+ value: number;
4541
+ }
4477
4542
  /**
4478
4543
  * Campaign
4479
4544
  */
@@ -4787,6 +4852,10 @@ export namespace Models {
4787
4852
  * Current active aggregation id.
4788
4853
  */
4789
4854
  billingAggregationId: string;
4855
+ /**
4856
+ * Current active aggregation id.
4857
+ */
4858
+ billingInvoiceId: string;
4790
4859
  /**
4791
4860
  * Default payment method.
4792
4861
  */
@@ -4799,6 +4868,14 @@ export namespace Models {
4799
4868
  * Backup payment method.
4800
4869
  */
4801
4870
  backupPaymentMethodId: string;
4871
+ /**
4872
+ * Team status.
4873
+ */
4874
+ status: string;
4875
+ /**
4876
+ * Remarks on team status.
4877
+ */
4878
+ remarks: string;
4802
4879
  /**
4803
4880
  * Organization agreements
4804
4881
  */
@@ -5098,6 +5175,14 @@ export namespace Models {
5098
5175
  * Aggregated stats for database writes.
5099
5176
  */
5100
5177
  databasesWrites: Metric[];
5178
+ /**
5179
+ * Aggregated stats for file transformations.
5180
+ */
5181
+ imageTransformations: Metric[];
5182
+ /**
5183
+ * Aggregated stats for total file transformations.
5184
+ */
5185
+ imageTransformationsTotal: number;
5101
5186
  /**
5102
5187
  * Aggregated stats for total users.
5103
5188
  */
@@ -1039,14 +1039,14 @@ export class Databases {
1039
1039
  * @param {string} collectionId
1040
1040
  * @param {string} key
1041
1041
  * @param {boolean} required
1042
+ * @param {number} xdefault
1042
1043
  * @param {number} min
1043
1044
  * @param {number} max
1044
- * @param {number} xdefault
1045
1045
  * @param {string} newKey
1046
1046
  * @throws {AppwriteException}
1047
1047
  * @returns {Promise<Models.AttributeFloat>}
1048
1048
  */
1049
- async updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number, newKey?: string): Promise<Models.AttributeFloat> {
1049
+ async updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeFloat> {
1050
1050
  if (typeof databaseId === 'undefined') {
1051
1051
  throw new AppwriteException('Missing required parameter: "databaseId"');
1052
1052
  }
@@ -1059,12 +1059,6 @@ export class Databases {
1059
1059
  if (typeof required === 'undefined') {
1060
1060
  throw new AppwriteException('Missing required parameter: "required"');
1061
1061
  }
1062
- if (typeof min === 'undefined') {
1063
- throw new AppwriteException('Missing required parameter: "min"');
1064
- }
1065
- if (typeof max === 'undefined') {
1066
- throw new AppwriteException('Missing required parameter: "max"');
1067
- }
1068
1062
  if (typeof xdefault === 'undefined') {
1069
1063
  throw new AppwriteException('Missing required parameter: "xdefault"');
1070
1064
  }
@@ -1177,14 +1171,14 @@ export class Databases {
1177
1171
  * @param {string} collectionId
1178
1172
  * @param {string} key
1179
1173
  * @param {boolean} required
1174
+ * @param {number} xdefault
1180
1175
  * @param {number} min
1181
1176
  * @param {number} max
1182
- * @param {number} xdefault
1183
1177
  * @param {string} newKey
1184
1178
  * @throws {AppwriteException}
1185
1179
  * @returns {Promise<Models.AttributeInteger>}
1186
1180
  */
1187
- async updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number, newKey?: string): Promise<Models.AttributeInteger> {
1181
+ async updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: number, min?: number, max?: number, newKey?: string): Promise<Models.AttributeInteger> {
1188
1182
  if (typeof databaseId === 'undefined') {
1189
1183
  throw new AppwriteException('Missing required parameter: "databaseId"');
1190
1184
  }
@@ -1197,12 +1191,6 @@ export class Databases {
1197
1191
  if (typeof required === 'undefined') {
1198
1192
  throw new AppwriteException('Missing required parameter: "required"');
1199
1193
  }
1200
- if (typeof min === 'undefined') {
1201
- throw new AppwriteException('Missing required parameter: "min"');
1202
- }
1203
- if (typeof max === 'undefined') {
1204
- throw new AppwriteException('Missing required parameter: "max"');
1205
- }
1206
1194
  if (typeof xdefault === 'undefined') {
1207
1195
  throw new AppwriteException('Missing required parameter: "xdefault"');
1208
1196
  }
@@ -1837,6 +1825,7 @@ export class Databases {
1837
1825
  * Create document
1838
1826
  *
1839
1827
  * 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.
1828
+
1840
1829
  *
1841
1830
  * @param {string} databaseId
1842
1831
  * @param {string} collectionId