tycho-components 0.38.0 → 0.38.1

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.
@@ -1,5 +1,7 @@
1
1
  declare function updateLiveTour(liveTour: boolean): Promise<import("axios").AxiosResponse<string, any, {}>>;
2
+ declare function updateSettings(settings: Record<string, unknown>): Promise<import("axios").AxiosResponse<string, any, {}>>;
2
3
  declare const ProfileService: {
3
4
  updateLiveTour: typeof updateLiveTour;
5
+ updateSettings: typeof updateSettings;
4
6
  };
5
7
  export default ProfileService;
@@ -2,7 +2,11 @@ import api from '../api';
2
2
  function updateLiveTour(liveTour) {
3
3
  return api.patch(`${import.meta.env.VITE_APP_AUTH_API}/profile/live-tour`, { liveTour });
4
4
  }
5
+ function updateSettings(settings) {
6
+ return api.patch(`${import.meta.env.VITE_APP_AUTH_API}/profile/settings`, { settings });
7
+ }
5
8
  const ProfileService = {
6
9
  updateLiveTour,
10
+ updateSettings,
7
11
  };
8
12
  export default ProfileService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tycho-components",
3
3
  "private": false,
4
- "version": "0.38.0",
4
+ "version": "0.38.1",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {