@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/README.md +1 -1
- package/dist/cjs/sdk.js +101 -1
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +101 -1
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3751 -3626
- package/package.json +9 -6
- package/types/enums/build-runtime.d.ts +3 -1
- package/types/enums/runtime.d.ts +3 -1
- package/types/enums/runtimes.d.ts +3 -1
- package/types/models.d.ts +10 -10
- package/types/services/health.d.ts +2 -0
- package/types/services/migrations.d.ts +55 -0
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@8.
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@8.2.0"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -580,7 +580,7 @@ class Client {
|
|
|
580
580
|
'x-sdk-name': 'Console',
|
|
581
581
|
'x-sdk-platform': 'console',
|
|
582
582
|
'x-sdk-language': 'web',
|
|
583
|
-
'x-sdk-version': '8.
|
|
583
|
+
'x-sdk-version': '8.2.0',
|
|
584
584
|
'X-Appwrite-Response-Format': '1.9.0',
|
|
585
585
|
};
|
|
586
586
|
this.realtime = {
|
|
@@ -14750,6 +14750,100 @@ class Migrations {
|
|
|
14750
14750
|
const apiHeaders = {};
|
|
14751
14751
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
14752
14752
|
}
|
|
14753
|
+
createJSONExport(paramsOrFirst, ...rest) {
|
|
14754
|
+
let params;
|
|
14755
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14756
|
+
params = (paramsOrFirst || {});
|
|
14757
|
+
}
|
|
14758
|
+
else {
|
|
14759
|
+
params = {
|
|
14760
|
+
resourceId: paramsOrFirst,
|
|
14761
|
+
filename: rest[0],
|
|
14762
|
+
columns: rest[1],
|
|
14763
|
+
queries: rest[2],
|
|
14764
|
+
notify: rest[3]
|
|
14765
|
+
};
|
|
14766
|
+
}
|
|
14767
|
+
const resourceId = params.resourceId;
|
|
14768
|
+
const filename = params.filename;
|
|
14769
|
+
const columns = params.columns;
|
|
14770
|
+
const queries = params.queries;
|
|
14771
|
+
const notify = params.notify;
|
|
14772
|
+
if (typeof resourceId === 'undefined') {
|
|
14773
|
+
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
14774
|
+
}
|
|
14775
|
+
if (typeof filename === 'undefined') {
|
|
14776
|
+
throw new AppwriteException('Missing required parameter: "filename"');
|
|
14777
|
+
}
|
|
14778
|
+
const apiPath = '/migrations/json/exports';
|
|
14779
|
+
const payload = {};
|
|
14780
|
+
if (typeof resourceId !== 'undefined') {
|
|
14781
|
+
payload['resourceId'] = resourceId;
|
|
14782
|
+
}
|
|
14783
|
+
if (typeof filename !== 'undefined') {
|
|
14784
|
+
payload['filename'] = filename;
|
|
14785
|
+
}
|
|
14786
|
+
if (typeof columns !== 'undefined') {
|
|
14787
|
+
payload['columns'] = columns;
|
|
14788
|
+
}
|
|
14789
|
+
if (typeof queries !== 'undefined') {
|
|
14790
|
+
payload['queries'] = queries;
|
|
14791
|
+
}
|
|
14792
|
+
if (typeof notify !== 'undefined') {
|
|
14793
|
+
payload['notify'] = notify;
|
|
14794
|
+
}
|
|
14795
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
14796
|
+
const apiHeaders = {
|
|
14797
|
+
'content-type': 'application/json',
|
|
14798
|
+
};
|
|
14799
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
14800
|
+
}
|
|
14801
|
+
createJSONImport(paramsOrFirst, ...rest) {
|
|
14802
|
+
let params;
|
|
14803
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
14804
|
+
params = (paramsOrFirst || {});
|
|
14805
|
+
}
|
|
14806
|
+
else {
|
|
14807
|
+
params = {
|
|
14808
|
+
bucketId: paramsOrFirst,
|
|
14809
|
+
fileId: rest[0],
|
|
14810
|
+
resourceId: rest[1],
|
|
14811
|
+
internalFile: rest[2]
|
|
14812
|
+
};
|
|
14813
|
+
}
|
|
14814
|
+
const bucketId = params.bucketId;
|
|
14815
|
+
const fileId = params.fileId;
|
|
14816
|
+
const resourceId = params.resourceId;
|
|
14817
|
+
const internalFile = params.internalFile;
|
|
14818
|
+
if (typeof bucketId === 'undefined') {
|
|
14819
|
+
throw new AppwriteException('Missing required parameter: "bucketId"');
|
|
14820
|
+
}
|
|
14821
|
+
if (typeof fileId === 'undefined') {
|
|
14822
|
+
throw new AppwriteException('Missing required parameter: "fileId"');
|
|
14823
|
+
}
|
|
14824
|
+
if (typeof resourceId === 'undefined') {
|
|
14825
|
+
throw new AppwriteException('Missing required parameter: "resourceId"');
|
|
14826
|
+
}
|
|
14827
|
+
const apiPath = '/migrations/json/imports';
|
|
14828
|
+
const payload = {};
|
|
14829
|
+
if (typeof bucketId !== 'undefined') {
|
|
14830
|
+
payload['bucketId'] = bucketId;
|
|
14831
|
+
}
|
|
14832
|
+
if (typeof fileId !== 'undefined') {
|
|
14833
|
+
payload['fileId'] = fileId;
|
|
14834
|
+
}
|
|
14835
|
+
if (typeof resourceId !== 'undefined') {
|
|
14836
|
+
payload['resourceId'] = resourceId;
|
|
14837
|
+
}
|
|
14838
|
+
if (typeof internalFile !== 'undefined') {
|
|
14839
|
+
payload['internalFile'] = internalFile;
|
|
14840
|
+
}
|
|
14841
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
14842
|
+
const apiHeaders = {
|
|
14843
|
+
'content-type': 'application/json',
|
|
14844
|
+
};
|
|
14845
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
14846
|
+
}
|
|
14753
14847
|
createNHostMigration(paramsOrFirst, ...rest) {
|
|
14754
14848
|
let params;
|
|
14755
14849
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resources' in paramsOrFirst || 'subdomain' in paramsOrFirst || 'region' in paramsOrFirst || 'adminSecret' in paramsOrFirst || 'database' in paramsOrFirst || 'username' in paramsOrFirst || 'password' in paramsOrFirst || 'port' in paramsOrFirst))) {
|
|
@@ -28715,6 +28809,7 @@ exports.Runtime = void 0;
|
|
|
28715
28809
|
Runtime["Dart38"] = "dart-3.8";
|
|
28716
28810
|
Runtime["Dart39"] = "dart-3.9";
|
|
28717
28811
|
Runtime["Dart310"] = "dart-3.10";
|
|
28812
|
+
Runtime["Dart311"] = "dart-3.11";
|
|
28718
28813
|
Runtime["Dotnet60"] = "dotnet-6.0";
|
|
28719
28814
|
Runtime["Dotnet70"] = "dotnet-7.0";
|
|
28720
28815
|
Runtime["Dotnet80"] = "dotnet-8.0";
|
|
@@ -28753,6 +28848,7 @@ exports.Runtime = void 0;
|
|
|
28753
28848
|
Runtime["Flutter332"] = "flutter-3.32";
|
|
28754
28849
|
Runtime["Flutter335"] = "flutter-3.35";
|
|
28755
28850
|
Runtime["Flutter338"] = "flutter-3.38";
|
|
28851
|
+
Runtime["Flutter341"] = "flutter-3.41";
|
|
28756
28852
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
28757
28853
|
|
|
28758
28854
|
exports.Runtimes = void 0;
|
|
@@ -28805,6 +28901,7 @@ exports.Runtimes = void 0;
|
|
|
28805
28901
|
Runtimes["Dart38"] = "dart-3.8";
|
|
28806
28902
|
Runtimes["Dart39"] = "dart-3.9";
|
|
28807
28903
|
Runtimes["Dart310"] = "dart-3.10";
|
|
28904
|
+
Runtimes["Dart311"] = "dart-3.11";
|
|
28808
28905
|
Runtimes["Dotnet60"] = "dotnet-6.0";
|
|
28809
28906
|
Runtimes["Dotnet70"] = "dotnet-7.0";
|
|
28810
28907
|
Runtimes["Dotnet80"] = "dotnet-8.0";
|
|
@@ -28843,6 +28940,7 @@ exports.Runtimes = void 0;
|
|
|
28843
28940
|
Runtimes["Flutter332"] = "flutter-3.32";
|
|
28844
28941
|
Runtimes["Flutter335"] = "flutter-3.35";
|
|
28845
28942
|
Runtimes["Flutter338"] = "flutter-3.38";
|
|
28943
|
+
Runtimes["Flutter341"] = "flutter-3.41";
|
|
28846
28944
|
})(exports.Runtimes || (exports.Runtimes = {}));
|
|
28847
28945
|
|
|
28848
28946
|
exports.UseCases = void 0;
|
|
@@ -29458,6 +29556,7 @@ exports.BuildRuntime = void 0;
|
|
|
29458
29556
|
BuildRuntime["Dart38"] = "dart-3.8";
|
|
29459
29557
|
BuildRuntime["Dart39"] = "dart-3.9";
|
|
29460
29558
|
BuildRuntime["Dart310"] = "dart-3.10";
|
|
29559
|
+
BuildRuntime["Dart311"] = "dart-3.11";
|
|
29461
29560
|
BuildRuntime["Dotnet60"] = "dotnet-6.0";
|
|
29462
29561
|
BuildRuntime["Dotnet70"] = "dotnet-7.0";
|
|
29463
29562
|
BuildRuntime["Dotnet80"] = "dotnet-8.0";
|
|
@@ -29496,6 +29595,7 @@ exports.BuildRuntime = void 0;
|
|
|
29496
29595
|
BuildRuntime["Flutter332"] = "flutter-3.32";
|
|
29497
29596
|
BuildRuntime["Flutter335"] = "flutter-3.35";
|
|
29498
29597
|
BuildRuntime["Flutter338"] = "flutter-3.38";
|
|
29598
|
+
BuildRuntime["Flutter341"] = "flutter-3.41";
|
|
29499
29599
|
})(exports.BuildRuntime || (exports.BuildRuntime = {}));
|
|
29500
29600
|
|
|
29501
29601
|
exports.Adapter = void 0;
|