@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/iife/sdk.js CHANGED
@@ -4420,7 +4420,7 @@
4420
4420
  'x-sdk-name': 'Console',
4421
4421
  'x-sdk-platform': 'console',
4422
4422
  'x-sdk-language': 'web',
4423
- 'x-sdk-version': '15.1.0',
4423
+ 'x-sdk-version': '15.1.1',
4424
4424
  'X-Appwrite-Response-Format': '1.9.5',
4425
4425
  };
4426
4426
  this.realtime = {
@@ -18087,15 +18087,22 @@
18087
18087
  };
18088
18088
  return this.client.call('get', uri, apiHeaders, payload);
18089
18089
  }
18090
- /**
18091
- * List allowed function specifications for this instance.
18092
- *
18093
- * @throws {AppwriteException}
18094
- * @returns {Promise<Models.SpecificationList>}
18095
- */
18096
- listSpecifications() {
18090
+ listSpecifications(paramsOrFirst) {
18091
+ let params;
18092
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18093
+ params = (paramsOrFirst || {});
18094
+ }
18095
+ else {
18096
+ params = {
18097
+ type: paramsOrFirst
18098
+ };
18099
+ }
18100
+ const type = params.type;
18097
18101
  const apiPath = '/functions/specifications';
18098
18102
  const payload = {};
18103
+ if (typeof type !== 'undefined') {
18104
+ payload['type'] = type;
18105
+ }
18099
18106
  const uri = new URL(this.client.config.endpoint + apiPath);
18100
18107
  const apiHeaders = {
18101
18108
  'X-Appwrite-Project': this.client.config.project,
@@ -19430,29 +19437,6 @@
19430
19437
  };
19431
19438
  return this.client.call('get', uri, apiHeaders, payload);
19432
19439
  }
19433
- getQueuePriorityBuilds(paramsOrFirst) {
19434
- let params;
19435
- if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
19436
- params = (paramsOrFirst || {});
19437
- }
19438
- else {
19439
- params = {
19440
- threshold: paramsOrFirst
19441
- };
19442
- }
19443
- const threshold = params.threshold;
19444
- const apiPath = '/health/queue/builds-priority';
19445
- const payload = {};
19446
- if (typeof threshold !== 'undefined') {
19447
- payload['threshold'] = threshold;
19448
- }
19449
- const uri = new URL(this.client.config.endpoint + apiPath);
19450
- const apiHeaders = {
19451
- 'X-Appwrite-Project': this.client.config.project,
19452
- 'accept': 'application/json',
19453
- };
19454
- return this.client.call('get', uri, apiHeaders, payload);
19455
- }
19456
19440
  getQueueCertificates(paramsOrFirst) {
19457
19441
  let params;
19458
19442
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -30930,15 +30914,22 @@
30930
30914
  };
30931
30915
  return this.client.call('get', uri, apiHeaders, payload);
30932
30916
  }
30933
- /**
30934
- * List allowed site specifications for this instance.
30935
- *
30936
- * @throws {AppwriteException}
30937
- * @returns {Promise<Models.SpecificationList>}
30938
- */
30939
- listSpecifications() {
30917
+ listSpecifications(paramsOrFirst) {
30918
+ let params;
30919
+ if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
30920
+ params = (paramsOrFirst || {});
30921
+ }
30922
+ else {
30923
+ params = {
30924
+ type: paramsOrFirst
30925
+ };
30926
+ }
30927
+ const type = params.type;
30940
30928
  const apiPath = '/sites/specifications';
30941
30929
  const payload = {};
30930
+ if (typeof type !== 'undefined') {
30931
+ payload['type'] = type;
30932
+ }
30942
30933
  const uri = new URL(this.client.config.endpoint + apiPath);
30943
30934
  const apiHeaders = {
30944
30935
  'X-Appwrite-Project': this.client.config.project,
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 abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "15.1.0",
5
+ "version": "15.1.1",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -128,10 +128,22 @@ export declare class Functions {
128
128
  /**
129
129
  * List allowed function specifications for this instance.
130
130
  *
131
+ * @param {string} params.type - Specification type to list. Can be one of: runtimes, builds.
131
132
  * @throws {AppwriteException}
132
133
  * @returns {Promise<Models.SpecificationList>}
133
134
  */
134
- listSpecifications(): Promise<Models.SpecificationList>;
135
+ listSpecifications(params?: {
136
+ type?: string;
137
+ }): Promise<Models.SpecificationList>;
138
+ /**
139
+ * List allowed function specifications for this instance.
140
+ *
141
+ * @param {string} type - Specification type to list. Can be one of: runtimes, builds.
142
+ * @throws {AppwriteException}
143
+ * @returns {Promise<Models.SpecificationList>}
144
+ * @deprecated Use the object parameter style method for a better developer experience.
145
+ */
146
+ listSpecifications(type?: string): Promise<Models.SpecificationList>;
135
147
  /**
136
148
  * List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
137
149
  *
@@ -168,25 +168,6 @@ export declare class Health {
168
168
  * @deprecated Use the object parameter style method for a better developer experience.
169
169
  */
170
170
  getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
171
- /**
172
- * Get the priority builds queue size.
173
- *
174
- * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
175
- * @throws {AppwriteException}
176
- * @returns {Promise<Models.HealthQueue>}
177
- */
178
- getQueuePriorityBuilds(params?: {
179
- threshold?: number;
180
- }): Promise<Models.HealthQueue>;
181
- /**
182
- * Get the priority builds queue size.
183
- *
184
- * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
185
- * @throws {AppwriteException}
186
- * @returns {Promise<Models.HealthQueue>}
187
- * @deprecated Use the object parameter style method for a better developer experience.
188
- */
189
- getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue>;
190
171
  /**
191
172
  * Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
192
173
  *
@@ -131,10 +131,22 @@ export declare class Sites {
131
131
  /**
132
132
  * List allowed site specifications for this instance.
133
133
  *
134
+ * @param {string} params.type - Specification type to list. Can be one of: runtimes, builds.
134
135
  * @throws {AppwriteException}
135
136
  * @returns {Promise<Models.SpecificationList>}
136
137
  */
137
- listSpecifications(): Promise<Models.SpecificationList>;
138
+ listSpecifications(params?: {
139
+ type?: string;
140
+ }): Promise<Models.SpecificationList>;
141
+ /**
142
+ * List allowed site specifications for this instance.
143
+ *
144
+ * @param {string} type - Specification type to list. Can be one of: runtimes, builds.
145
+ * @throws {AppwriteException}
146
+ * @returns {Promise<Models.SpecificationList>}
147
+ * @deprecated Use the object parameter style method for a better developer experience.
148
+ */
149
+ listSpecifications(type?: string): Promise<Models.SpecificationList>;
138
150
  /**
139
151
  * List available site templates. You can use template details in [createSite](/docs/references/cloud/server-nodejs/sites#create) method.
140
152
  *