starta.apiclient 1.37.5461 → 1.37.5569

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.
@@ -81,11 +81,13 @@ export default class Organizations {
81
81
  }): Promise<import("../../types").StartaResponse>;
82
82
  setDescription(organizationLogin: any, description: any): Promise<import("../../types").StartaResponse>;
83
83
  getBookingWidgetSettings(organizationLogin: any): Promise<import("../../types").StartaResponse>;
84
- setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme, schedulingPreference }: {
84
+ setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme, schedulingPreference, multibookingEnabled, confirmOrders }: {
85
85
  enabled: boolean;
86
86
  bookingInterval?: number;
87
87
  theme?: 'dark' | 'light' | 'pink';
88
88
  schedulingPreference?: 'stickToIntervals' | 'fillGaps';
89
+ multibookingEnabled?: boolean;
90
+ confirmOrders?: 'manuallyNewCustomers' | 'manuallyAll' | 'autoAll';
89
91
  }): Promise<import("../../types").StartaResponse>;
90
92
  setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
91
93
  getWorkload(organizationLogin: string, from: string, to: string, scheduleId?: string): Promise<import("../../types").StartaResponse>;
@@ -127,11 +127,11 @@ class Organizations {
127
127
  method: 'GET',
128
128
  });
129
129
  }
130
- setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme, schedulingPreference }) {
130
+ setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme, schedulingPreference, multibookingEnabled, confirmOrders }) {
131
131
  return this._requestRunner.performRequest({
132
132
  url: `accounts/${organizationLogin}/bookingWidget/settings`,
133
133
  method: 'PATCH',
134
- body: { enabled, bookingInterval, theme, schedulingPreference },
134
+ body: { enabled, bookingInterval, theme, schedulingPreference, multibookingEnabled, confirmOrders },
135
135
  });
136
136
  }
137
137
  setBookingWidgetStyles(organizationLogin, bookingWidgetStyles) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.5461",
3
+ "version": "1.37.5569",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",