@rtsdk/topia 0.11.8 → 0.11.9

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/index.cjs CHANGED
@@ -41111,7 +41111,7 @@ class User extends SDKController {
41111
41111
  fetchAvatars() {
41112
41112
  return __awaiter(this, void 0, void 0, function* () {
41113
41113
  try {
41114
- const response = yield this.topiaPublicApi().get(`/avatars`, this.requestOptions);
41114
+ const response = yield this.topiaPublicApi().get(`/avatars/${this.profileId}`, this.requestOptions);
41115
41115
  return response.data;
41116
41116
  }
41117
41117
  catch (error) {
@@ -41192,7 +41192,7 @@ class User extends SDKController {
41192
41192
  addAvatar(formData) {
41193
41193
  return __awaiter(this, void 0, void 0, function* () {
41194
41194
  try {
41195
- const response = yield this.topiaPublicApi().post(`/avatars`, formData, this.requestOptions);
41195
+ const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}`, formData, this.requestOptions);
41196
41196
  return response.data;
41197
41197
  }
41198
41198
  catch (error) {
@@ -41273,7 +41273,7 @@ class User extends SDKController {
41273
41273
  updateAvatar(avatarId, formData) {
41274
41274
  return __awaiter(this, void 0, void 0, function* () {
41275
41275
  try {
41276
- const response = yield this.topiaPublicApi().post(`/avatars/${avatarId}`, formData, this.requestOptions);
41276
+ const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}/${avatarId}`, formData, this.requestOptions);
41277
41277
  return response.data;
41278
41278
  }
41279
41279
  catch (error) {
@@ -41293,7 +41293,7 @@ class User extends SDKController {
41293
41293
  deleteAvatar(avatarId) {
41294
41294
  return __awaiter(this, void 0, void 0, function* () {
41295
41295
  try {
41296
- const response = yield this.topiaPublicApi().delete(`/avatars/${avatarId}`, this.requestOptions);
41296
+ const response = yield this.topiaPublicApi().delete(`/avatars/${this.profileId}/${avatarId}`, this.requestOptions);
41297
41297
  return response.data;
41298
41298
  }
41299
41299
  catch (error) {
package/dist/index.js CHANGED
@@ -41109,7 +41109,7 @@ class User extends SDKController {
41109
41109
  fetchAvatars() {
41110
41110
  return __awaiter(this, void 0, void 0, function* () {
41111
41111
  try {
41112
- const response = yield this.topiaPublicApi().get(`/avatars`, this.requestOptions);
41112
+ const response = yield this.topiaPublicApi().get(`/avatars/${this.profileId}`, this.requestOptions);
41113
41113
  return response.data;
41114
41114
  }
41115
41115
  catch (error) {
@@ -41190,7 +41190,7 @@ class User extends SDKController {
41190
41190
  addAvatar(formData) {
41191
41191
  return __awaiter(this, void 0, void 0, function* () {
41192
41192
  try {
41193
- const response = yield this.topiaPublicApi().post(`/avatars`, formData, this.requestOptions);
41193
+ const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}`, formData, this.requestOptions);
41194
41194
  return response.data;
41195
41195
  }
41196
41196
  catch (error) {
@@ -41271,7 +41271,7 @@ class User extends SDKController {
41271
41271
  updateAvatar(avatarId, formData) {
41272
41272
  return __awaiter(this, void 0, void 0, function* () {
41273
41273
  try {
41274
- const response = yield this.topiaPublicApi().post(`/avatars/${avatarId}`, formData, this.requestOptions);
41274
+ const response = yield this.topiaPublicApi().post(`/avatars/${this.profileId}/${avatarId}`, formData, this.requestOptions);
41275
41275
  return response.data;
41276
41276
  }
41277
41277
  catch (error) {
@@ -41291,7 +41291,7 @@ class User extends SDKController {
41291
41291
  deleteAvatar(avatarId) {
41292
41292
  return __awaiter(this, void 0, void 0, function* () {
41293
41293
  try {
41294
- const response = yield this.topiaPublicApi().delete(`/avatars/${avatarId}`, this.requestOptions);
41294
+ const response = yield this.topiaPublicApi().delete(`/avatars/${this.profileId}/${avatarId}`, this.requestOptions);
41295
41295
  return response.data;
41296
41296
  }
41297
41297
  catch (error) {
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "local-publish": "yarn build && yalc publish --push --no-scripts"
60
60
  },
61
61
  "type": "module",
62
- "version": "0.11.8"
62
+ "version": "0.11.9"
63
63
  }