@appwrite.io/console 15.1.0 → 15.1.1

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/README.md CHANGED
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@15.1.0"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@15.1.1"></script>
37
37
  ```
38
38
 
39
39
 
package/dist/cjs/sdk.js CHANGED
@@ -622,7 +622,7 @@ class Client {
622
622
  'x-sdk-name': 'Console',
623
623
  'x-sdk-platform': 'console',
624
624
  'x-sdk-language': 'web',
625
- 'x-sdk-version': '15.1.0',
625
+ 'x-sdk-version': '15.1.1',
626
626
  'X-Appwrite-Response-Format': '1.9.5',
627
627
  };
628
628
  this.realtime = {
@@ -14289,15 +14289,22 @@ class Functions {
14289
14289
  };
14290
14290
  return this.client.call('get', uri, apiHeaders, payload);
14291
14291
  }
14292
- /**
14293
- * List allowed function specifications for this instance.
14294
- *
14295
- * @throws {AppwriteException}
14296
- * @returns {Promise<Models.SpecificationList>}
14297
- */
14298
- listSpecifications() {
14292
+ listSpecifications(paramsOrFirst) {
14293
+ let params;
14294
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14295
+ params = (paramsOrFirst || {});
14296
+ }
14297
+ else {
14298
+ params = {
14299
+ type: paramsOrFirst
14300
+ };
14301
+ }
14302
+ const type = params.type;
14299
14303
  const apiPath = '/functions/specifications';
14300
14304
  const payload = {};
14305
+ if (typeof type !== 'undefined') {
14306
+ payload['type'] = type;
14307
+ }
14301
14308
  const uri = new URL(this.client.config.endpoint + apiPath);
14302
14309
  const apiHeaders = {
14303
14310
  'X-Appwrite-Project': this.client.config.project,
@@ -15632,29 +15639,6 @@ class Health {
15632
15639
  };
15633
15640
  return this.client.call('get', uri, apiHeaders, payload);
15634
15641
  }
15635
- getQueuePriorityBuilds(paramsOrFirst) {
15636
- let params;
15637
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15638
- params = (paramsOrFirst || {});
15639
- }
15640
- else {
15641
- params = {
15642
- threshold: paramsOrFirst
15643
- };
15644
- }
15645
- const threshold = params.threshold;
15646
- const apiPath = '/health/queue/builds-priority';
15647
- const payload = {};
15648
- if (typeof threshold !== 'undefined') {
15649
- payload['threshold'] = threshold;
15650
- }
15651
- const uri = new URL(this.client.config.endpoint + apiPath);
15652
- const apiHeaders = {
15653
- 'X-Appwrite-Project': this.client.config.project,
15654
- 'accept': 'application/json',
15655
- };
15656
- return this.client.call('get', uri, apiHeaders, payload);
15657
- }
15658
15642
  getQueueCertificates(paramsOrFirst) {
15659
15643
  let params;
15660
15644
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -27132,15 +27116,22 @@ class Sites {
27132
27116
  };
27133
27117
  return this.client.call('get', uri, apiHeaders, payload);
27134
27118
  }
27135
- /**
27136
- * List allowed site specifications for this instance.
27137
- *
27138
- * @throws {AppwriteException}
27139
- * @returns {Promise<Models.SpecificationList>}
27140
- */
27141
- listSpecifications() {
27119
+ listSpecifications(paramsOrFirst) {
27120
+ let params;
27121
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
27122
+ params = (paramsOrFirst || {});
27123
+ }
27124
+ else {
27125
+ params = {
27126
+ type: paramsOrFirst
27127
+ };
27128
+ }
27129
+ const type = params.type;
27142
27130
  const apiPath = '/sites/specifications';
27143
27131
  const payload = {};
27132
+ if (typeof type !== 'undefined') {
27133
+ payload['type'] = type;
27134
+ }
27144
27135
  const uri = new URL(this.client.config.endpoint + apiPath);
27145
27136
  const apiHeaders = {
27146
27137
  'X-Appwrite-Project': this.client.config.project,