starta.apiclient 1.37.3148 → 1.37.3158
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,9 +74,9 @@ 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
|
-
getWorkload(organizationLogin: string, from: string, to: string): Promise<import("../../types").StartaResponse>;
|
|
78
|
-
getMembersSchedule(organizationLogin: string, date: string): Promise<import("../../types").StartaResponse>;
|
|
79
|
-
getSingleMemberSchedule(organizationLogin: any, member: any, from: any, to: any): Promise<import("../../types").StartaResponse>;
|
|
77
|
+
getWorkload(organizationLogin: string, from: string, to: string, scheduleId: string): Promise<import("../../types").StartaResponse>;
|
|
78
|
+
getMembersSchedule(organizationLogin: string, date: string, scheduleId: string): Promise<import("../../types").StartaResponse>;
|
|
79
|
+
getSingleMemberSchedule(organizationLogin: any, member: any, from: any, to: any, scheduleId: string): Promise<import("../../types").StartaResponse>;
|
|
80
80
|
updateRoles(organizationLogin: any, roles: any): Promise<import("../../types").StartaResponse>;
|
|
81
81
|
setApprovedForSearch(organizationLogin: any, { isApproved }: {
|
|
82
82
|
isApproved: any;
|
|
@@ -121,22 +121,31 @@ class Organizations {
|
|
|
121
121
|
body: bookingWidgetStyles,
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
getWorkload(organizationLogin, from /* YYYY-MM-DD */, to /* YYYY-MM-DD
|
|
124
|
+
getWorkload(organizationLogin, from /* YYYY-MM-DD */, to /* YYYY-MM-DD */, scheduleId) {
|
|
125
125
|
return this._requestRunner.performRequest({
|
|
126
126
|
url: `accounts/${organizationLogin}/members/schedule/available-time${(0, _helpers_1.buildQuery)({ from, to })}`,
|
|
127
127
|
method: 'GET',
|
|
128
|
+
body: {
|
|
129
|
+
scheduleId,
|
|
130
|
+
}
|
|
128
131
|
});
|
|
129
132
|
}
|
|
130
|
-
getMembersSchedule(organizationLogin, date /* YYYY-MM-DD
|
|
133
|
+
getMembersSchedule(organizationLogin, date /* YYYY-MM-DD */, scheduleId) {
|
|
131
134
|
return this._requestRunner.performRequest({
|
|
132
135
|
url: `accounts/${organizationLogin}/members/schedule/${date}`,
|
|
133
136
|
method: 'GET',
|
|
137
|
+
body: {
|
|
138
|
+
scheduleId,
|
|
139
|
+
}
|
|
134
140
|
});
|
|
135
141
|
}
|
|
136
|
-
getSingleMemberSchedule(organizationLogin, member, from, to /* YYYY-MM-DD
|
|
142
|
+
getSingleMemberSchedule(organizationLogin, member, from, to /* YYYY-MM-DD */, scheduleId) {
|
|
137
143
|
return this._requestRunner.performRequest({
|
|
138
144
|
url: `accounts/${organizationLogin}/members/${member}/schedule${(0, _helpers_1.buildQuery)({ from, to })}`,
|
|
139
145
|
method: 'GET',
|
|
146
|
+
body: {
|
|
147
|
+
scheduleId,
|
|
148
|
+
}
|
|
140
149
|
});
|
|
141
150
|
}
|
|
142
151
|
updateRoles(organizationLogin, roles) {
|
|
@@ -13,5 +13,5 @@ export default class Rooms {
|
|
|
13
13
|
description: any;
|
|
14
14
|
}): Promise<import("../../types").StartaResponse>;
|
|
15
15
|
delete(organizationLogin: any, roomId: any): Promise<import("../../types").StartaResponse>;
|
|
16
|
-
getSchedule(organizationLogin: any, date: any): Promise<import("../../types").StartaResponse>;
|
|
16
|
+
getSchedule(organizationLogin: any, date: any, scheduleId: any): Promise<import("../../types").StartaResponse>;
|
|
17
17
|
}
|
|
@@ -32,10 +32,13 @@ class Rooms {
|
|
|
32
32
|
method: 'DELETE',
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
getSchedule(organizationLogin, date /* YYYY-MM-DD
|
|
35
|
+
getSchedule(organizationLogin, date /* YYYY-MM-DD */, scheduleId) {
|
|
36
36
|
return this._requestRunner.performRequest({
|
|
37
37
|
url: `accounts/${organizationLogin}/rooms/schedule/${date}`,
|
|
38
38
|
method: 'GET',
|
|
39
|
+
body: {
|
|
40
|
+
scheduleId,
|
|
41
|
+
},
|
|
39
42
|
});
|
|
40
43
|
}
|
|
41
44
|
}
|