@appwrite.io/console 2.3.0 → 3.0.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/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +294 -28
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +294 -28
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +347 -61
- package/docs/examples/activities/get-event.md +15 -0
- package/docs/examples/activities/list-events.md +15 -0
- package/docs/examples/databases/create-longtext-attribute.md +2 -1
- package/docs/examples/databases/create-mediumtext-attribute.md +2 -1
- package/docs/examples/databases/create-text-attribute.md +2 -1
- package/docs/examples/databases/create-varchar-attribute.md +2 -1
- package/docs/examples/projects/create-schedule.md +20 -0
- package/docs/examples/projects/get-schedule.md +16 -0
- package/docs/examples/projects/list-schedules.md +17 -0
- package/docs/examples/tablesdb/create-longtext-column.md +2 -1
- package/docs/examples/tablesdb/create-mediumtext-column.md +2 -1
- package/docs/examples/tablesdb/create-text-column.md +2 -1
- package/docs/examples/tablesdb/create-varchar-column.md +2 -1
- package/package.json +2 -3
- package/src/channel.ts +4 -0
- package/src/client.ts +11 -3
- package/src/enums/build-runtime.ts +20 -3
- package/src/enums/email-template-type.ts +4 -4
- package/src/enums/o-auth-provider.ts +0 -2
- package/src/enums/resource-type.ts +6 -0
- package/src/enums/runtime.ts +20 -3
- package/src/enums/runtimes.ts +20 -3
- package/src/enums/scopes.ts +2 -0
- package/src/enums/sms-template-type.ts +1 -1
- package/src/index.ts +3 -0
- package/src/models.ts +250 -6
- package/src/services/account.ts +4 -4
- package/src/services/activities.ts +116 -0
- package/src/services/databases.ts +56 -28
- package/src/services/migrations.ts +2 -2
- package/src/services/projects.ts +223 -0
- package/src/services/tables-db.ts +56 -28
- package/types/channel.d.ts +1 -0
- package/types/enums/build-runtime.d.ts +20 -3
- package/types/enums/email-template-type.d.ts +4 -4
- package/types/enums/o-auth-provider.d.ts +1 -3
- package/types/enums/resource-type.d.ts +6 -0
- package/types/enums/runtime.d.ts +20 -3
- package/types/enums/runtimes.d.ts +20 -3
- package/types/enums/scopes.d.ts +2 -0
- package/types/enums/sms-template-type.d.ts +1 -1
- package/types/index.d.ts +3 -0
- package/types/models.d.ts +246 -6
- package/types/services/account.d.ts +4 -4
- package/types/services/activities.d.ts +46 -0
- package/types/services/databases.d.ts +16 -4
- package/types/services/migrations.d.ts +2 -2
- package/types/services/projects.d.ts +82 -0
- package/types/services/tables-db.d.ts +16 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Activities } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const activities = new Activities(client);
|
|
9
|
+
|
|
10
|
+
const result = await activities.getEvent({
|
|
11
|
+
eventId: '<EVENT_ID>'
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
console.log(result);
|
|
15
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Activities } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const activities = new Activities(client);
|
|
9
|
+
|
|
10
|
+
const result = await activities.listEvents({
|
|
11
|
+
queries: '' // optional
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
console.log(result);
|
|
15
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Projects, ResourceType } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const projects = new Projects(client);
|
|
9
|
+
|
|
10
|
+
const result = await projects.createSchedule({
|
|
11
|
+
projectId: '<PROJECT_ID>',
|
|
12
|
+
resourceType: ResourceType.Function,
|
|
13
|
+
resourceId: '<RESOURCE_ID>',
|
|
14
|
+
schedule: '',
|
|
15
|
+
active: false, // optional
|
|
16
|
+
data: {} // optional
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
console.log(result);
|
|
20
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Projects } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const projects = new Projects(client);
|
|
9
|
+
|
|
10
|
+
const result = await projects.getSchedule({
|
|
11
|
+
projectId: '<PROJECT_ID>',
|
|
12
|
+
scheduleId: '<SCHEDULE_ID>'
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
console.log(result);
|
|
16
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
```javascript
|
|
2
|
+
import { Client, Projects } from "@appwrite.io/console";
|
|
3
|
+
|
|
4
|
+
const client = new Client()
|
|
5
|
+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
|
+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
|
+
|
|
8
|
+
const projects = new Projects(client);
|
|
9
|
+
|
|
10
|
+
const result = await projects.listSchedules({
|
|
11
|
+
projectId: '<PROJECT_ID>',
|
|
12
|
+
queries: [], // optional
|
|
13
|
+
total: false // optional
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
console.log(result);
|
|
17
|
+
```
|
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": "
|
|
5
|
+
"version": "3.0.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"build:libs": "rollup -c"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"json-bigint": "1.0.0"
|
|
29
|
-
"bignumber.js": "9.0.0"
|
|
28
|
+
"json-bigint": "1.0.0"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@rollup/plugin-commonjs": "22.0.0",
|
package/src/channel.ts
CHANGED
|
@@ -78,6 +78,10 @@ export class Channel<T> {
|
|
|
78
78
|
return this.resolve("create");
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
upsert(this: Channel<Document | Row>): Channel<Resolved> {
|
|
82
|
+
return this.resolve("upsert");
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
update(this: Channel<Actionable>): Channel<Resolved> {
|
|
82
86
|
return this.resolve("update");
|
|
83
87
|
}
|
package/src/client.ts
CHANGED
|
@@ -2,15 +2,23 @@ import { Models } from './models';
|
|
|
2
2
|
import { Channel, ActionableChannel, ResolvedChannel } from './channel';
|
|
3
3
|
import { Query } from './query';
|
|
4
4
|
import JSONbigModule from 'json-bigint';
|
|
5
|
-
import BigNumber from 'bignumber.js';
|
|
6
5
|
const JSONbigParser = JSONbigModule({ storeAsString: false });
|
|
7
6
|
const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true });
|
|
8
7
|
|
|
9
8
|
const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER);
|
|
10
9
|
const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER);
|
|
11
10
|
|
|
11
|
+
function isBigNumber(value: any): boolean {
|
|
12
|
+
return value !== null
|
|
13
|
+
&& typeof value === 'object'
|
|
14
|
+
&& value._isBigNumber === true
|
|
15
|
+
&& typeof value.isInteger === 'function'
|
|
16
|
+
&& typeof value.toFixed === 'function'
|
|
17
|
+
&& typeof value.toNumber === 'function';
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
function reviver(_key: string, value: any): any {
|
|
13
|
-
if (
|
|
21
|
+
if (isBigNumber(value)) {
|
|
14
22
|
if (value.isInteger()) {
|
|
15
23
|
const str = value.toFixed();
|
|
16
24
|
const bi = BigInt(str);
|
|
@@ -387,7 +395,7 @@ class Client {
|
|
|
387
395
|
'x-sdk-name': 'Console',
|
|
388
396
|
'x-sdk-platform': 'console',
|
|
389
397
|
'x-sdk-language': 'web',
|
|
390
|
-
'x-sdk-version': '
|
|
398
|
+
'x-sdk-version': '3.0.0',
|
|
391
399
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
392
400
|
};
|
|
393
401
|
|
|
@@ -6,27 +6,35 @@ export enum BuildRuntime {
|
|
|
6
6
|
Node200 = 'node-20.0',
|
|
7
7
|
Node210 = 'node-21.0',
|
|
8
8
|
Node22 = 'node-22',
|
|
9
|
+
Node23 = 'node-23',
|
|
10
|
+
Node24 = 'node-24',
|
|
11
|
+
Node25 = 'node-25',
|
|
9
12
|
Php80 = 'php-8.0',
|
|
10
13
|
Php81 = 'php-8.1',
|
|
11
14
|
Php82 = 'php-8.2',
|
|
12
15
|
Php83 = 'php-8.3',
|
|
16
|
+
Php84 = 'php-8.4',
|
|
13
17
|
Ruby30 = 'ruby-3.0',
|
|
14
18
|
Ruby31 = 'ruby-3.1',
|
|
15
19
|
Ruby32 = 'ruby-3.2',
|
|
16
20
|
Ruby33 = 'ruby-3.3',
|
|
21
|
+
Ruby34 = 'ruby-3.4',
|
|
22
|
+
Ruby40 = 'ruby-4.0',
|
|
17
23
|
Python38 = 'python-3.8',
|
|
18
24
|
Python39 = 'python-3.9',
|
|
19
25
|
Python310 = 'python-3.10',
|
|
20
26
|
Python311 = 'python-3.11',
|
|
21
27
|
Python312 = 'python-3.12',
|
|
28
|
+
Python313 = 'python-3.13',
|
|
29
|
+
Python314 = 'python-3.14',
|
|
22
30
|
Pythonml311 = 'python-ml-3.11',
|
|
23
31
|
Pythonml312 = 'python-ml-3.12',
|
|
24
|
-
|
|
25
|
-
Deno124 = 'deno-1.24',
|
|
26
|
-
Deno135 = 'deno-1.35',
|
|
32
|
+
Pythonml313 = 'python-ml-3.13',
|
|
27
33
|
Deno140 = 'deno-1.40',
|
|
28
34
|
Deno146 = 'deno-1.46',
|
|
29
35
|
Deno20 = 'deno-2.0',
|
|
36
|
+
Deno25 = 'deno-2.5',
|
|
37
|
+
Deno26 = 'deno-2.6',
|
|
30
38
|
Dart215 = 'dart-2.15',
|
|
31
39
|
Dart216 = 'dart-2.16',
|
|
32
40
|
Dart217 = 'dart-2.17',
|
|
@@ -42,25 +50,34 @@ export enum BuildRuntime {
|
|
|
42
50
|
Dotnet60 = 'dotnet-6.0',
|
|
43
51
|
Dotnet70 = 'dotnet-7.0',
|
|
44
52
|
Dotnet80 = 'dotnet-8.0',
|
|
53
|
+
Dotnet10 = 'dotnet-10',
|
|
45
54
|
Java80 = 'java-8.0',
|
|
46
55
|
Java110 = 'java-11.0',
|
|
47
56
|
Java170 = 'java-17.0',
|
|
48
57
|
Java180 = 'java-18.0',
|
|
49
58
|
Java210 = 'java-21.0',
|
|
50
59
|
Java22 = 'java-22',
|
|
60
|
+
Java25 = 'java-25',
|
|
51
61
|
Swift55 = 'swift-5.5',
|
|
52
62
|
Swift58 = 'swift-5.8',
|
|
53
63
|
Swift59 = 'swift-5.9',
|
|
54
64
|
Swift510 = 'swift-5.10',
|
|
65
|
+
Swift62 = 'swift-6.2',
|
|
55
66
|
Kotlin16 = 'kotlin-1.6',
|
|
56
67
|
Kotlin18 = 'kotlin-1.8',
|
|
57
68
|
Kotlin19 = 'kotlin-1.9',
|
|
58
69
|
Kotlin20 = 'kotlin-2.0',
|
|
70
|
+
Kotlin23 = 'kotlin-2.3',
|
|
59
71
|
Cpp17 = 'cpp-17',
|
|
60
72
|
Cpp20 = 'cpp-20',
|
|
61
73
|
Bun10 = 'bun-1.0',
|
|
62
74
|
Bun11 = 'bun-1.1',
|
|
75
|
+
Bun12 = 'bun-1.2',
|
|
76
|
+
Bun13 = 'bun-1.3',
|
|
63
77
|
Go123 = 'go-1.23',
|
|
78
|
+
Go124 = 'go-1.24',
|
|
79
|
+
Go125 = 'go-1.25',
|
|
80
|
+
Go126 = 'go-1.26',
|
|
64
81
|
Static1 = 'static-1',
|
|
65
82
|
Flutter324 = 'flutter-3.24',
|
|
66
83
|
Flutter327 = 'flutter-3.27',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export enum EmailTemplateType {
|
|
2
2
|
Verification = 'verification',
|
|
3
|
-
|
|
3
|
+
MagicSession = 'magicSession',
|
|
4
4
|
Recovery = 'recovery',
|
|
5
5
|
Invitation = 'invitation',
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
MfaChallenge = 'mfaChallenge',
|
|
7
|
+
SessionAlert = 'sessionAlert',
|
|
8
|
+
OtpSession = 'otpSession',
|
|
9
9
|
}
|
package/src/enums/runtime.ts
CHANGED
|
@@ -6,27 +6,35 @@ export enum Runtime {
|
|
|
6
6
|
Node200 = 'node-20.0',
|
|
7
7
|
Node210 = 'node-21.0',
|
|
8
8
|
Node22 = 'node-22',
|
|
9
|
+
Node23 = 'node-23',
|
|
10
|
+
Node24 = 'node-24',
|
|
11
|
+
Node25 = 'node-25',
|
|
9
12
|
Php80 = 'php-8.0',
|
|
10
13
|
Php81 = 'php-8.1',
|
|
11
14
|
Php82 = 'php-8.2',
|
|
12
15
|
Php83 = 'php-8.3',
|
|
16
|
+
Php84 = 'php-8.4',
|
|
13
17
|
Ruby30 = 'ruby-3.0',
|
|
14
18
|
Ruby31 = 'ruby-3.1',
|
|
15
19
|
Ruby32 = 'ruby-3.2',
|
|
16
20
|
Ruby33 = 'ruby-3.3',
|
|
21
|
+
Ruby34 = 'ruby-3.4',
|
|
22
|
+
Ruby40 = 'ruby-4.0',
|
|
17
23
|
Python38 = 'python-3.8',
|
|
18
24
|
Python39 = 'python-3.9',
|
|
19
25
|
Python310 = 'python-3.10',
|
|
20
26
|
Python311 = 'python-3.11',
|
|
21
27
|
Python312 = 'python-3.12',
|
|
28
|
+
Python313 = 'python-3.13',
|
|
29
|
+
Python314 = 'python-3.14',
|
|
22
30
|
Pythonml311 = 'python-ml-3.11',
|
|
23
31
|
Pythonml312 = 'python-ml-3.12',
|
|
24
|
-
|
|
25
|
-
Deno124 = 'deno-1.24',
|
|
26
|
-
Deno135 = 'deno-1.35',
|
|
32
|
+
Pythonml313 = 'python-ml-3.13',
|
|
27
33
|
Deno140 = 'deno-1.40',
|
|
28
34
|
Deno146 = 'deno-1.46',
|
|
29
35
|
Deno20 = 'deno-2.0',
|
|
36
|
+
Deno25 = 'deno-2.5',
|
|
37
|
+
Deno26 = 'deno-2.6',
|
|
30
38
|
Dart215 = 'dart-2.15',
|
|
31
39
|
Dart216 = 'dart-2.16',
|
|
32
40
|
Dart217 = 'dart-2.17',
|
|
@@ -42,25 +50,34 @@ export enum Runtime {
|
|
|
42
50
|
Dotnet60 = 'dotnet-6.0',
|
|
43
51
|
Dotnet70 = 'dotnet-7.0',
|
|
44
52
|
Dotnet80 = 'dotnet-8.0',
|
|
53
|
+
Dotnet10 = 'dotnet-10',
|
|
45
54
|
Java80 = 'java-8.0',
|
|
46
55
|
Java110 = 'java-11.0',
|
|
47
56
|
Java170 = 'java-17.0',
|
|
48
57
|
Java180 = 'java-18.0',
|
|
49
58
|
Java210 = 'java-21.0',
|
|
50
59
|
Java22 = 'java-22',
|
|
60
|
+
Java25 = 'java-25',
|
|
51
61
|
Swift55 = 'swift-5.5',
|
|
52
62
|
Swift58 = 'swift-5.8',
|
|
53
63
|
Swift59 = 'swift-5.9',
|
|
54
64
|
Swift510 = 'swift-5.10',
|
|
65
|
+
Swift62 = 'swift-6.2',
|
|
55
66
|
Kotlin16 = 'kotlin-1.6',
|
|
56
67
|
Kotlin18 = 'kotlin-1.8',
|
|
57
68
|
Kotlin19 = 'kotlin-1.9',
|
|
58
69
|
Kotlin20 = 'kotlin-2.0',
|
|
70
|
+
Kotlin23 = 'kotlin-2.3',
|
|
59
71
|
Cpp17 = 'cpp-17',
|
|
60
72
|
Cpp20 = 'cpp-20',
|
|
61
73
|
Bun10 = 'bun-1.0',
|
|
62
74
|
Bun11 = 'bun-1.1',
|
|
75
|
+
Bun12 = 'bun-1.2',
|
|
76
|
+
Bun13 = 'bun-1.3',
|
|
63
77
|
Go123 = 'go-1.23',
|
|
78
|
+
Go124 = 'go-1.24',
|
|
79
|
+
Go125 = 'go-1.25',
|
|
80
|
+
Go126 = 'go-1.26',
|
|
64
81
|
Static1 = 'static-1',
|
|
65
82
|
Flutter324 = 'flutter-3.24',
|
|
66
83
|
Flutter327 = 'flutter-3.27',
|
package/src/enums/runtimes.ts
CHANGED
|
@@ -6,27 +6,35 @@ export enum Runtimes {
|
|
|
6
6
|
Node200 = 'node-20.0',
|
|
7
7
|
Node210 = 'node-21.0',
|
|
8
8
|
Node22 = 'node-22',
|
|
9
|
+
Node23 = 'node-23',
|
|
10
|
+
Node24 = 'node-24',
|
|
11
|
+
Node25 = 'node-25',
|
|
9
12
|
Php80 = 'php-8.0',
|
|
10
13
|
Php81 = 'php-8.1',
|
|
11
14
|
Php82 = 'php-8.2',
|
|
12
15
|
Php83 = 'php-8.3',
|
|
16
|
+
Php84 = 'php-8.4',
|
|
13
17
|
Ruby30 = 'ruby-3.0',
|
|
14
18
|
Ruby31 = 'ruby-3.1',
|
|
15
19
|
Ruby32 = 'ruby-3.2',
|
|
16
20
|
Ruby33 = 'ruby-3.3',
|
|
21
|
+
Ruby34 = 'ruby-3.4',
|
|
22
|
+
Ruby40 = 'ruby-4.0',
|
|
17
23
|
Python38 = 'python-3.8',
|
|
18
24
|
Python39 = 'python-3.9',
|
|
19
25
|
Python310 = 'python-3.10',
|
|
20
26
|
Python311 = 'python-3.11',
|
|
21
27
|
Python312 = 'python-3.12',
|
|
28
|
+
Python313 = 'python-3.13',
|
|
29
|
+
Python314 = 'python-3.14',
|
|
22
30
|
Pythonml311 = 'python-ml-3.11',
|
|
23
31
|
Pythonml312 = 'python-ml-3.12',
|
|
24
|
-
|
|
25
|
-
Deno124 = 'deno-1.24',
|
|
26
|
-
Deno135 = 'deno-1.35',
|
|
32
|
+
Pythonml313 = 'python-ml-3.13',
|
|
27
33
|
Deno140 = 'deno-1.40',
|
|
28
34
|
Deno146 = 'deno-1.46',
|
|
29
35
|
Deno20 = 'deno-2.0',
|
|
36
|
+
Deno25 = 'deno-2.5',
|
|
37
|
+
Deno26 = 'deno-2.6',
|
|
30
38
|
Dart215 = 'dart-2.15',
|
|
31
39
|
Dart216 = 'dart-2.16',
|
|
32
40
|
Dart217 = 'dart-2.17',
|
|
@@ -42,25 +50,34 @@ export enum Runtimes {
|
|
|
42
50
|
Dotnet60 = 'dotnet-6.0',
|
|
43
51
|
Dotnet70 = 'dotnet-7.0',
|
|
44
52
|
Dotnet80 = 'dotnet-8.0',
|
|
53
|
+
Dotnet10 = 'dotnet-10',
|
|
45
54
|
Java80 = 'java-8.0',
|
|
46
55
|
Java110 = 'java-11.0',
|
|
47
56
|
Java170 = 'java-17.0',
|
|
48
57
|
Java180 = 'java-18.0',
|
|
49
58
|
Java210 = 'java-21.0',
|
|
50
59
|
Java22 = 'java-22',
|
|
60
|
+
Java25 = 'java-25',
|
|
51
61
|
Swift55 = 'swift-5.5',
|
|
52
62
|
Swift58 = 'swift-5.8',
|
|
53
63
|
Swift59 = 'swift-5.9',
|
|
54
64
|
Swift510 = 'swift-5.10',
|
|
65
|
+
Swift62 = 'swift-6.2',
|
|
55
66
|
Kotlin16 = 'kotlin-1.6',
|
|
56
67
|
Kotlin18 = 'kotlin-1.8',
|
|
57
68
|
Kotlin19 = 'kotlin-1.9',
|
|
58
69
|
Kotlin20 = 'kotlin-2.0',
|
|
70
|
+
Kotlin23 = 'kotlin-2.3',
|
|
59
71
|
Cpp17 = 'cpp-17',
|
|
60
72
|
Cpp20 = 'cpp-20',
|
|
61
73
|
Bun10 = 'bun-1.0',
|
|
62
74
|
Bun11 = 'bun-1.1',
|
|
75
|
+
Bun12 = 'bun-1.2',
|
|
76
|
+
Bun13 = 'bun-1.3',
|
|
63
77
|
Go123 = 'go-1.23',
|
|
78
|
+
Go124 = 'go-1.24',
|
|
79
|
+
Go125 = 'go-1.25',
|
|
80
|
+
Go126 = 'go-1.26',
|
|
64
81
|
Static1 = 'static-1',
|
|
65
82
|
Flutter324 = 'flutter-3.24',
|
|
66
83
|
Flutter327 = 'flutter-3.27',
|
package/src/enums/scopes.ts
CHANGED
|
@@ -47,6 +47,8 @@ export enum Scopes {
|
|
|
47
47
|
TargetsWrite = 'targets.write',
|
|
48
48
|
RulesRead = 'rules.read',
|
|
49
49
|
RulesWrite = 'rules.write',
|
|
50
|
+
SchedulesRead = 'schedules.read',
|
|
51
|
+
SchedulesWrite = 'schedules.write',
|
|
50
52
|
MigrationsRead = 'migrations.read',
|
|
51
53
|
MigrationsWrite = 'migrations.write',
|
|
52
54
|
VcsRead = 'vcs.read',
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { Client, Query, AppwriteException } from './client';
|
|
9
9
|
export { Account } from './services/account';
|
|
10
|
+
export { Activities } from './services/activities';
|
|
10
11
|
export { Avatars } from './services/avatars';
|
|
11
12
|
export { Backups } from './services/backups';
|
|
12
13
|
export { Assistant } from './services/assistant';
|
|
@@ -32,6 +33,7 @@ export { Users } from './services/users';
|
|
|
32
33
|
export { Vcs } from './services/vcs';
|
|
33
34
|
export { Realtime } from './services/realtime';
|
|
34
35
|
export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
|
|
36
|
+
export type { RealtimeSubscription } from './services/realtime';
|
|
35
37
|
export type { QueryTypes, QueryTypesList } from './query';
|
|
36
38
|
export { Permission } from './permission';
|
|
37
39
|
export { Role } from './role';
|
|
@@ -75,6 +77,7 @@ export { Region } from './enums/region';
|
|
|
75
77
|
export { Api } from './enums/api';
|
|
76
78
|
export { AuthMethod } from './enums/auth-method';
|
|
77
79
|
export { PlatformType } from './enums/platform-type';
|
|
80
|
+
export { ResourceType } from './enums/resource-type';
|
|
78
81
|
export { ApiService } from './enums/api-service';
|
|
79
82
|
export { SMTPSecure } from './enums/smtp-secure';
|
|
80
83
|
export { EmailTemplateType } from './enums/email-template-type';
|