starta.apiclient 1.37.2877 → 1.37.2879

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.
@@ -67,10 +67,11 @@ export default class Organizations {
67
67
  }): Promise<import("../../types").StartaResponse>;
68
68
  setDescription(organizationLogin: any, description: any): Promise<import("../../types").StartaResponse>;
69
69
  getBookingWidgetSettings(organizationLogin: any): Promise<import("../../types").StartaResponse>;
70
- setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme }: {
71
- enabled: any;
72
- bookingInterval: any;
73
- theme: any;
70
+ setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme, schedulingPreference }: {
71
+ enabled: boolean;
72
+ bookingInterval?: number;
73
+ theme?: 'dark' | 'light' | 'pink';
74
+ schedulingPreference?: 'stickToIntervals' | 'fillGaps';
74
75
  }): Promise<import("../../types").StartaResponse>;
75
76
  setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
76
77
  getMembersSchedule(organizationLogin: any, date: any): Promise<import("../../types").StartaResponse>;
@@ -107,11 +107,11 @@ class Organizations {
107
107
  method: 'GET',
108
108
  });
109
109
  }
110
- setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme }) {
110
+ setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme, schedulingPreference }) {
111
111
  return this._requestRunner.performRequest({
112
112
  url: `accounts/${organizationLogin}/bookingWidget/settings`,
113
- method: 'PUT',
114
- body: { enabled, bookingInterval, theme },
113
+ method: 'PATCH',
114
+ body: { enabled, bookingInterval, theme, schedulingPreference },
115
115
  });
116
116
  }
117
117
  setBookingWidgetStyles(organizationLogin, bookingWidgetStyles) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.2877",
3
+ "version": "1.37.2879",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",