starta.apiclient 1.37.3148 → 1.37.3159
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,21 +121,21 @@ 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
|
-
url: `accounts/${organizationLogin}/members/schedule/available-time${(0, _helpers_1.buildQuery)({ from, to })}`,
|
|
126
|
+
url: `accounts/${organizationLogin}/members/schedule/available-time${(0, _helpers_1.buildQuery)({ from, to, scheduleId })}`,
|
|
127
127
|
method: 'GET',
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
getMembersSchedule(organizationLogin, date /* YYYY-MM-DD
|
|
130
|
+
getMembersSchedule(organizationLogin, date /* YYYY-MM-DD */, scheduleId) {
|
|
131
131
|
return this._requestRunner.performRequest({
|
|
132
|
-
url: `accounts/${organizationLogin}/members/schedule/${date}`,
|
|
132
|
+
url: `accounts/${organizationLogin}/members/schedule/${date}${(0, _helpers_1.buildQuery)({ scheduleId })}`,
|
|
133
133
|
method: 'GET',
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
getSingleMemberSchedule(organizationLogin, member, from, to /* YYYY-MM-DD
|
|
136
|
+
getSingleMemberSchedule(organizationLogin, member, from, to /* YYYY-MM-DD */, scheduleId) {
|
|
137
137
|
return this._requestRunner.performRequest({
|
|
138
|
-
url: `accounts/${organizationLogin}/members/${member}/schedule${(0, _helpers_1.buildQuery)({ from, to })}`,
|
|
138
|
+
url: `accounts/${organizationLogin}/members/${member}/schedule${(0, _helpers_1.buildQuery)({ from, to, scheduleId })}`,
|
|
139
139
|
method: 'GET',
|
|
140
140
|
});
|
|
141
141
|
}
|
|
@@ -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?: string): Promise<import("../../types").StartaResponse>;
|
|
17
17
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const _helpers_1 = require("../_helpers");
|
|
3
4
|
class Rooms {
|
|
4
5
|
constructor(requestRunner) {
|
|
5
6
|
this._requestRunner = requestRunner;
|
|
@@ -32,9 +33,9 @@ class Rooms {
|
|
|
32
33
|
method: 'DELETE',
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
getSchedule(organizationLogin, date /* YYYY-MM-DD
|
|
36
|
+
getSchedule(organizationLogin, date /* YYYY-MM-DD */, scheduleId) {
|
|
36
37
|
return this._requestRunner.performRequest({
|
|
37
|
-
url: `accounts/${organizationLogin}/rooms/schedule/${date}`,
|
|
38
|
+
url: `accounts/${organizationLogin}/rooms/schedule/${date}${(0, _helpers_1.buildQuery)({ scheduleId })}`,
|
|
38
39
|
method: 'GET',
|
|
39
40
|
});
|
|
40
41
|
}
|