@appwrite.io/console 18.4.0-rc.1 → 18.4.0-rc.2
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 +21 -6
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +21 -6
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +21 -6
- package/package.json +1 -1
- package/types/models.d.ts +4 -0
- package/types/services/project.d.ts +10 -4
- package/types/services/teams.d.ts +4 -1
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@18.4.0-rc.
|
|
36
|
+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@18.4.0-rc.2"></script>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Getting Started
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -669,7 +669,7 @@ class Client {
|
|
|
669
669
|
'x-sdk-name': 'Console',
|
|
670
670
|
'x-sdk-platform': 'console',
|
|
671
671
|
'x-sdk-language': 'web',
|
|
672
|
-
'x-sdk-version': '18.4.0-rc.
|
|
672
|
+
'x-sdk-version': '18.4.0-rc.2',
|
|
673
673
|
'X-Appwrite-Response-Format': '2.3.0',
|
|
674
674
|
};
|
|
675
675
|
this.realtime = {
|
|
@@ -31781,11 +31781,13 @@ class Project {
|
|
|
31781
31781
|
platformId: paramsOrFirst,
|
|
31782
31782
|
name: rest[0],
|
|
31783
31783
|
applicationId: rest[1],
|
|
31784
|
+
fingerprints: rest[2],
|
|
31784
31785
|
};
|
|
31785
31786
|
}
|
|
31786
31787
|
const platformId = params.platformId;
|
|
31787
31788
|
const name = params.name;
|
|
31788
31789
|
const applicationId = params.applicationId;
|
|
31790
|
+
const fingerprints = params.fingerprints;
|
|
31789
31791
|
if (typeof platformId === 'undefined') {
|
|
31790
31792
|
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
31791
31793
|
}
|
|
@@ -31806,6 +31808,9 @@ class Project {
|
|
|
31806
31808
|
if (typeof applicationId !== 'undefined') {
|
|
31807
31809
|
apiPayload['applicationId'] = applicationId;
|
|
31808
31810
|
}
|
|
31811
|
+
if (typeof fingerprints !== 'undefined') {
|
|
31812
|
+
apiPayload['fingerprints'] = fingerprints;
|
|
31813
|
+
}
|
|
31809
31814
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
31810
31815
|
const apiHeaders = {
|
|
31811
31816
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -31826,11 +31831,13 @@ class Project {
|
|
|
31826
31831
|
platformId: paramsOrFirst,
|
|
31827
31832
|
name: rest[0],
|
|
31828
31833
|
applicationId: rest[1],
|
|
31834
|
+
fingerprints: rest[2],
|
|
31829
31835
|
};
|
|
31830
31836
|
}
|
|
31831
31837
|
const platformId = params.platformId;
|
|
31832
31838
|
const name = params.name;
|
|
31833
31839
|
const applicationId = params.applicationId;
|
|
31840
|
+
const fingerprints = params.fingerprints;
|
|
31834
31841
|
if (typeof platformId === 'undefined' || platformId === '') {
|
|
31835
31842
|
throw new AppwriteException('Missing required parameter: "platformId"');
|
|
31836
31843
|
}
|
|
@@ -31848,6 +31855,9 @@ class Project {
|
|
|
31848
31855
|
if (typeof applicationId !== 'undefined') {
|
|
31849
31856
|
apiPayload['applicationId'] = applicationId;
|
|
31850
31857
|
}
|
|
31858
|
+
if (typeof fingerprints !== 'undefined') {
|
|
31859
|
+
apiPayload['fingerprints'] = fingerprints;
|
|
31860
|
+
}
|
|
31851
31861
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
31852
31862
|
const apiHeaders = {
|
|
31853
31863
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -40651,15 +40661,17 @@ class Teams {
|
|
|
40651
40661
|
params = {
|
|
40652
40662
|
teamId: paramsOrFirst,
|
|
40653
40663
|
roles: rest[0],
|
|
40654
|
-
|
|
40655
|
-
|
|
40656
|
-
|
|
40657
|
-
|
|
40658
|
-
|
|
40664
|
+
membershipId: rest[1],
|
|
40665
|
+
email: rest[2],
|
|
40666
|
+
userId: rest[3],
|
|
40667
|
+
phone: rest[4],
|
|
40668
|
+
url: rest[5],
|
|
40669
|
+
name: rest[6],
|
|
40659
40670
|
};
|
|
40660
40671
|
}
|
|
40661
40672
|
const teamId = params.teamId;
|
|
40662
40673
|
const roles = params.roles;
|
|
40674
|
+
const membershipId = params.membershipId;
|
|
40663
40675
|
const email = params.email;
|
|
40664
40676
|
const userId = params.userId;
|
|
40665
40677
|
const phone = params.phone;
|
|
@@ -40673,6 +40685,9 @@ class Teams {
|
|
|
40673
40685
|
}
|
|
40674
40686
|
const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', encodeURIComponent(String(teamId)));
|
|
40675
40687
|
const apiPayload = {};
|
|
40688
|
+
if (typeof membershipId !== 'undefined') {
|
|
40689
|
+
apiPayload['membershipId'] = membershipId;
|
|
40690
|
+
}
|
|
40676
40691
|
if (typeof email !== 'undefined') {
|
|
40677
40692
|
apiPayload['email'] = email;
|
|
40678
40693
|
}
|