starta.apiclient 1.37.3069 → 1.37.3071

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.
@@ -74,7 +74,8 @@ export default class Organizations {
74
74
  schedulingPreference?: 'stickToIntervals' | 'fillGaps';
75
75
  }): Promise<import("../../types").StartaResponse>;
76
76
  setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
77
- getMembersSchedule(organizationLogin: any, dates: any): Promise<import("../../types").StartaResponse>;
77
+ getCalendarFilling(organizationLogin: string, from: string, to: string): Promise<import("../../types").StartaResponse>;
78
+ getMembersSchedule(organizationLogin: string, date: string): Promise<import("../../types").StartaResponse>;
78
79
  getSingleMemberSchedule(organizationLogin: any, member: any, from: any, to: any): Promise<import("../../types").StartaResponse>;
79
80
  updateRoles(organizationLogin: any, roles: any): Promise<import("../../types").StartaResponse>;
80
81
  setApprovedForSearch(organizationLogin: any, { isApproved }: {
@@ -121,9 +121,15 @@ class Organizations {
121
121
  body: bookingWidgetStyles,
122
122
  });
123
123
  }
124
- getMembersSchedule(organizationLogin, dates /* YYYY-MM-DD */) {
124
+ getCalendarFilling(organizationLogin, from /* YYYY-MM-DD */, to /* YYYY-MM-DD */) {
125
125
  return this._requestRunner.performRequest({
126
- url: `accounts/${organizationLogin}/members/schedules${(0, _helpers_1.buildQuery)({ dates })}`,
126
+ url: `accounts/${organizationLogin}/members/schedule/available-time${(0, _helpers_1.buildQuery)({ from, to })}`,
127
+ method: 'GET',
128
+ });
129
+ }
130
+ getMembersSchedule(organizationLogin, date /* YYYY-MM-DD */) {
131
+ return this._requestRunner.performRequest({
132
+ url: `accounts/${organizationLogin}/members/schedule/${date}`,
127
133
  method: 'GET',
128
134
  });
129
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.3069",
3
+ "version": "1.37.3071",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",