@appwrite.io/console 8.1.1 → 8.2.0

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/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": "8.1.1",
5
+ "version": "8.2.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -28,17 +28,20 @@
28
28
  "build:types": "tsc --declaration --emitDeclarationOnly --outDir types",
29
29
  "build:libs": "rollup -c"
30
30
  },
31
+ "engines": {
32
+ "node": ">=18.0.0"
33
+ },
31
34
  "dependencies": {
32
35
  "json-bigint": "1.0.0"
33
36
  },
34
37
  "devDependencies": {
35
- "@rollup/plugin-commonjs": "25.0.8",
36
- "@rollup/plugin-node-resolve": "15.3.1",
37
- "@rollup/plugin-typescript": "11.1.6",
38
+ "@rollup/plugin-commonjs": "29.0.2",
39
+ "@rollup/plugin-node-resolve": "16.0.3",
40
+ "@rollup/plugin-typescript": "12.3.0",
38
41
  "@types/json-bigint": "1.0.4",
39
42
  "playwright": "1.56.1",
40
- "rollup": "3.29.5",
41
- "serve-handler": "6.1.0",
43
+ "rollup": "4.60.1",
44
+ "serve-handler": "6.1.7",
42
45
  "tslib": "2.8.1",
43
46
  "typescript": "5.7.3"
44
47
  },
@@ -47,6 +47,7 @@ export declare enum BuildRuntime {
47
47
  Dart38 = "dart-3.8",
48
48
  Dart39 = "dart-3.9",
49
49
  Dart310 = "dart-3.10",
50
+ Dart311 = "dart-3.11",
50
51
  Dotnet60 = "dotnet-6.0",
51
52
  Dotnet70 = "dotnet-7.0",
52
53
  Dotnet80 = "dotnet-8.0",
@@ -84,5 +85,6 @@ export declare enum BuildRuntime {
84
85
  Flutter329 = "flutter-3.29",
85
86
  Flutter332 = "flutter-3.32",
86
87
  Flutter335 = "flutter-3.35",
87
- Flutter338 = "flutter-3.38"
88
+ Flutter338 = "flutter-3.38",
89
+ Flutter341 = "flutter-3.41"
88
90
  }
@@ -47,6 +47,7 @@ export declare enum Runtime {
47
47
  Dart38 = "dart-3.8",
48
48
  Dart39 = "dart-3.9",
49
49
  Dart310 = "dart-3.10",
50
+ Dart311 = "dart-3.11",
50
51
  Dotnet60 = "dotnet-6.0",
51
52
  Dotnet70 = "dotnet-7.0",
52
53
  Dotnet80 = "dotnet-8.0",
@@ -84,5 +85,6 @@ export declare enum Runtime {
84
85
  Flutter329 = "flutter-3.29",
85
86
  Flutter332 = "flutter-3.32",
86
87
  Flutter335 = "flutter-3.35",
87
- Flutter338 = "flutter-3.38"
88
+ Flutter338 = "flutter-3.38",
89
+ Flutter341 = "flutter-3.41"
88
90
  }
@@ -47,6 +47,7 @@ export declare enum Runtimes {
47
47
  Dart38 = "dart-3.8",
48
48
  Dart39 = "dart-3.9",
49
49
  Dart310 = "dart-3.10",
50
+ Dart311 = "dart-3.11",
50
51
  Dotnet60 = "dotnet-6.0",
51
52
  Dotnet70 = "dotnet-7.0",
52
53
  Dotnet80 = "dotnet-8.0",
@@ -84,5 +85,6 @@ export declare enum Runtimes {
84
85
  Flutter329 = "flutter-3.29",
85
86
  Flutter332 = "flutter-3.32",
86
87
  Flutter335 = "flutter-3.35",
87
- Flutter338 = "flutter-3.38"
88
+ Flutter338 = "flutter-3.38",
89
+ Flutter341 = "flutter-3.41"
88
90
  }
package/types/models.d.ts CHANGED
@@ -6230,27 +6230,27 @@ export declare namespace Models {
6230
6230
  */
6231
6231
  trigger: string;
6232
6232
  /**
6233
- * URL to redirect to. Used if type is "redirect"
6233
+ * URL to redirect to. Only applicable if type is "redirect", otherwise empty string.
6234
6234
  */
6235
6235
  redirectUrl: string;
6236
6236
  /**
6237
- * Status code to apply during redirect. Used if type is "redirect"
6237
+ * Status code to apply during redirect. Only applicable if type is "redirect", defaults to 301.
6238
6238
  */
6239
6239
  redirectStatusCode: number;
6240
6240
  /**
6241
- * ID of deployment. Used if type is "deployment"
6241
+ * ID of deployment. Only applicable if type is "deployment", otherwise empty string.
6242
6242
  */
6243
6243
  deploymentId: string;
6244
6244
  /**
6245
- * Type of deployment. Possible values are "function", "site". Used if rule's type is "deployment".
6245
+ * Type of deployment. Possible values are "function", "site". Only applicable if type is "deployment", otherwise empty string.
6246
6246
  */
6247
6247
  deploymentResourceType: ProxyRuleDeploymentResourceType;
6248
6248
  /**
6249
- * ID deployment's resource. Used if type is "deployment"
6249
+ * ID of deployment's resource. Only applicable if type is "deployment", otherwise empty string.
6250
6250
  */
6251
6251
  deploymentResourceId: string;
6252
6252
  /**
6253
- * Name of Git branch that updates rule. Used if type is "deployment"
6253
+ * Name of Git branch that updates rule. Only applicable if type is "deployment", otherwise empty string.
6254
6254
  */
6255
6255
  deploymentVcsProviderBranch: string;
6256
6256
  /**
@@ -7658,13 +7658,13 @@ export declare namespace Models {
7658
7658
  */
7659
7659
  resourceId: string;
7660
7660
  /**
7661
- * Reason for the block
7661
+ * Reason for the block. Can be null if no reason was provided.
7662
7662
  */
7663
- reason: string;
7663
+ reason?: string;
7664
7664
  /**
7665
- * Block expiration date in ISO 8601 format.
7665
+ * Block expiration date in ISO 8601 format. Can be null if the block does not expire.
7666
7666
  */
7667
- expiredAt: string;
7667
+ expiredAt?: string;
7668
7668
  };
7669
7669
  /**
7670
7670
  * Campaign
@@ -85,6 +85,7 @@ export declare class Health {
85
85
  /**
86
86
  * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.
87
87
  *
88
+ *
88
89
  * @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
89
90
  * @throws {AppwriteException}
90
91
  * @returns {Promise<Models.HealthQueue>}
@@ -95,6 +96,7 @@ export declare class Health {
95
96
  /**
96
97
  * Get the number of audit logs that are waiting to be processed in the Appwrite internal queue server.
97
98
  *
99
+ *
98
100
  * @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
99
101
  * @throws {AppwriteException}
100
102
  * @returns {Promise<Models.HealthQueue>}
@@ -203,6 +203,61 @@ export declare class Migrations {
203
203
  * @deprecated Use the object parameter style method for a better developer experience.
204
204
  */
205
205
  getFirebaseReport(resources: FirebaseMigrationResource[], serviceAccount: string): Promise<Models.MigrationReport>;
206
+ /**
207
+ *
208
+ * @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
209
+ * @param {string} params.filename - The name of the file to be created for the export, excluding the .json extension.
210
+ * @param {string[]} params.columns - List of attributes to export. If empty, all attributes will be exported. You can use the `*` wildcard to export all attributes from the collection.
211
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.
212
+ * @param {boolean} params.notify - Set to true to receive an email when the export is complete. Default is true.
213
+ * @throws {AppwriteException}
214
+ * @returns {Promise<Models.Migration>}
215
+ */
216
+ createJSONExport(params: {
217
+ resourceId: string;
218
+ filename: string;
219
+ columns?: string[];
220
+ queries?: string[];
221
+ notify?: boolean;
222
+ }): Promise<Models.Migration>;
223
+ /**
224
+ *
225
+ * @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database to export.
226
+ * @param {string} filename - The name of the file to be created for the export, excluding the .json extension.
227
+ * @param {string[]} columns - List of attributes to export. If empty, all attributes will be exported. You can use the `*` wildcard to export all attributes from the collection.
228
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK to filter documents to export. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long.
229
+ * @param {boolean} notify - Set to true to receive an email when the export is complete. Default is true.
230
+ * @throws {AppwriteException}
231
+ * @returns {Promise<Models.Migration>}
232
+ * @deprecated Use the object parameter style method for a better developer experience.
233
+ */
234
+ createJSONExport(resourceId: string, filename: string, columns?: string[], queries?: string[], notify?: boolean): Promise<Models.Migration>;
235
+ /**
236
+ *
237
+ * @param {string} params.bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
238
+ * @param {string} params.fileId - File ID.
239
+ * @param {string} params.resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
240
+ * @param {boolean} params.internalFile - Is the file stored in an internal bucket?
241
+ * @throws {AppwriteException}
242
+ * @returns {Promise<Models.Migration>}
243
+ */
244
+ createJSONImport(params: {
245
+ bucketId: string;
246
+ fileId: string;
247
+ resourceId: string;
248
+ internalFile?: boolean;
249
+ }): Promise<Models.Migration>;
250
+ /**
251
+ *
252
+ * @param {string} bucketId - Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
253
+ * @param {string} fileId - File ID.
254
+ * @param {string} resourceId - Composite ID in the format {databaseId:collectionId}, identifying a collection within a database.
255
+ * @param {boolean} internalFile - Is the file stored in an internal bucket?
256
+ * @throws {AppwriteException}
257
+ * @returns {Promise<Models.Migration>}
258
+ * @deprecated Use the object parameter style method for a better developer experience.
259
+ */
260
+ createJSONImport(bucketId: string, fileId: string, resourceId: string, internalFile?: boolean): Promise<Models.Migration>;
206
261
  /**
207
262
  * Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project.
208
263
  *