@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/dist/esm/sdk.js CHANGED
@@ -620,7 +620,7 @@ class Client {
620
620
  'x-sdk-name': 'Console',
621
621
  'x-sdk-platform': 'console',
622
622
  'x-sdk-language': 'web',
623
- 'x-sdk-version': '15.1.0',
623
+ 'x-sdk-version': '15.1.1',
624
624
  'X-Appwrite-Response-Format': '1.9.5',
625
625
  };
626
626
  this.realtime = {
@@ -14287,15 +14287,22 @@ class Functions {
14287
14287
  };
14288
14288
  return this.client.call('get', uri, apiHeaders, payload);
14289
14289
  }
14290
- /**
14291
- * List allowed function specifications for this instance.
14292
- *
14293
- * @throws {AppwriteException}
14294
- * @returns {Promise<Models.SpecificationList>}
14295
- */
14296
- listSpecifications() {
14290
+ listSpecifications(paramsOrFirst) {
14291
+ let params;
14292
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
14293
+ params = (paramsOrFirst || {});
14294
+ }
14295
+ else {
14296
+ params = {
14297
+ type: paramsOrFirst
14298
+ };
14299
+ }
14300
+ const type = params.type;
14297
14301
  const apiPath = '/functions/specifications';
14298
14302
  const payload = {};
14303
+ if (typeof type !== 'undefined') {
14304
+ payload['type'] = type;
14305
+ }
14299
14306
  const uri = new URL(this.client.config.endpoint + apiPath);
14300
14307
  const apiHeaders = {
14301
14308
  'X-Appwrite-Project': this.client.config.project,
@@ -15630,29 +15637,6 @@ class Health {
15630
15637
  };
15631
15638
  return this.client.call('get', uri, apiHeaders, payload);
15632
15639
  }
15633
- getQueuePriorityBuilds(paramsOrFirst) {
15634
- let params;
15635
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
15636
- params = (paramsOrFirst || {});
15637
- }
15638
- else {
15639
- params = {
15640
- threshold: paramsOrFirst
15641
- };
15642
- }
15643
- const threshold = params.threshold;
15644
- const apiPath = '/health/queue/builds-priority';
15645
- const payload = {};
15646
- if (typeof threshold !== 'undefined') {
15647
- payload['threshold'] = threshold;
15648
- }
15649
- const uri = new URL(this.client.config.endpoint + apiPath);
15650
- const apiHeaders = {
15651
- 'X-Appwrite-Project': this.client.config.project,
15652
- 'accept': 'application/json',
15653
- };
15654
- return this.client.call('get', uri, apiHeaders, payload);
15655
- }
15656
15640
  getQueueCertificates(paramsOrFirst) {
15657
15641
  let params;
15658
15642
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -27130,15 +27114,22 @@ class Sites {
27130
27114
  };
27131
27115
  return this.client.call('get', uri, apiHeaders, payload);
27132
27116
  }
27133
- /**
27134
- * List allowed site specifications for this instance.
27135
- *
27136
- * @throws {AppwriteException}
27137
- * @returns {Promise<Models.SpecificationList>}
27138
- */
27139
- listSpecifications() {
27117
+ listSpecifications(paramsOrFirst) {
27118
+ let params;
27119
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
27120
+ params = (paramsOrFirst || {});
27121
+ }
27122
+ else {
27123
+ params = {
27124
+ type: paramsOrFirst
27125
+ };
27126
+ }
27127
+ const type = params.type;
27140
27128
  const apiPath = '/sites/specifications';
27141
27129
  const payload = {};
27130
+ if (typeof type !== 'undefined') {
27131
+ payload['type'] = type;
27132
+ }
27142
27133
  const uri = new URL(this.client.config.endpoint + apiPath);
27143
27134
  const apiHeaders = {
27144
27135
  'X-Appwrite-Project': this.client.config.project,