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