@appwrite.io/console 0.1.0-preview-0.1 → 0.1.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 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@0.1.0-preview-0.1"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.1.0"></script>
37
37
  ```
38
38
 
39
39
 
package/dist/cjs/sdk.js CHANGED
@@ -98,7 +98,7 @@ class Client {
98
98
  'x-sdk-name': 'Console',
99
99
  'x-sdk-platform': 'console',
100
100
  'x-sdk-language': 'web',
101
- 'x-sdk-version': '0.1.0-preview-0.1',
101
+ 'x-sdk-version': '0.1.0',
102
102
  'X-Appwrite-Response-Format': '1.0.0',
103
103
  };
104
104
  this.realtime = {
@@ -883,7 +883,7 @@ class Account extends Service {
883
883
  * password combination. This route will create a new session for the user.
884
884
  *
885
885
  * A user is limited to 10 active sessions at a time by default. [Learn more
886
- * about session limits](/docs/authentication#limits).
886
+ * about session limits](/docs/authentication-security#limits).
887
887
  *
888
888
  * @param {string} email
889
889
  * @param {string} password
@@ -928,7 +928,7 @@ class Account extends Service {
928
928
  * your Appwrite instance by default.
929
929
  *
930
930
  * A user is limited to 10 active sessions at a time by default. [Learn more
931
- * about session limits](/docs/authentication#limits).
931
+ * about session limits](/docs/authentication-security#limits).
932
932
  *
933
933
  * @param {string} userId
934
934
  * @param {string} email
@@ -1019,7 +1019,7 @@ class Account extends Service {
1019
1019
  * user.
1020
1020
  *
1021
1021
  * A user is limited to 10 active sessions at a time by default. [Learn more
1022
- * about session limits](/docs/authentication#limits).
1022
+ * about session limits](/docs/authentication-security#limits).
1023
1023
  *
1024
1024
  *
1025
1025
  * @param {string} provider
@@ -1067,7 +1067,7 @@ class Account extends Service {
1067
1067
  * is valid for 15 minutes.
1068
1068
  *
1069
1069
  * A user is limited to 10 active sessions at a time by default. [Learn more
1070
- * about session limits](/docs/authentication#limits).
1070
+ * about session limits](/docs/authentication-security#limits).
1071
1071
  *
1072
1072
  * @param {string} userId
1073
1073
  * @param {string} phone
@@ -2726,7 +2726,10 @@ class Databases extends Service {
2726
2726
  });
2727
2727
  }
2728
2728
  /**
2729
- * Create relationship Attribute
2729
+ * Create Relationship Attribute
2730
+ *
2731
+ * Create relationship attribute. [Learn more about relationship
2732
+ * attributes](docs/databases-relationships#relationship-attributes).
2730
2733
  *
2731
2734
  *
2732
2735
  * @param {string} databaseId
@@ -3038,16 +3041,18 @@ class Databases extends Service {
3038
3041
  /**
3039
3042
  * Update Relationship Attribute
3040
3043
  *
3044
+ * Update relationship attribute. [Learn more about relationship
3045
+ * attributes](docs/databases-relationships#relationship-attributes).
3046
+ *
3041
3047
  *
3042
3048
  * @param {string} databaseId
3043
3049
  * @param {string} collectionId
3044
3050
  * @param {string} key
3045
- * @param {boolean} twoWay
3046
3051
  * @param {string} onDelete
3047
3052
  * @throws {AppwriteException}
3048
3053
  * @returns {Promise}
3049
3054
  */
3050
- updateRelationshipAttribute(databaseId, collectionId, key, twoWay, onDelete) {
3055
+ updateRelationshipAttribute(databaseId, collectionId, key, onDelete) {
3051
3056
  return __awaiter(this, void 0, void 0, function* () {
3052
3057
  if (typeof databaseId === 'undefined') {
3053
3058
  throw new AppwriteException('Missing required parameter: "databaseId"');
@@ -3060,9 +3065,6 @@ class Databases extends Service {
3060
3065
  }
3061
3066
  let path = '/databases/{databaseId}/collections/{collectionId}/attributes/{key}/relationship'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{key}', key);
3062
3067
  let payload = {};
3063
- if (typeof twoWay !== 'undefined') {
3064
- payload['twoWay'] = twoWay;
3065
- }
3066
3068
  if (typeof onDelete !== 'undefined') {
3067
3069
  payload['onDelete'] = onDelete;
3068
3070
  }