starta.apiclient 1.35.866 → 1.35.871
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.
|
@@ -9,6 +9,39 @@ import Payments from './payments';
|
|
|
9
9
|
import Dashboard from './dashboard';
|
|
10
10
|
import Public from './public';
|
|
11
11
|
import Integrations from './integrations';
|
|
12
|
+
export declare type OrganizationSchedule = {
|
|
13
|
+
name: any;
|
|
14
|
+
location: {
|
|
15
|
+
isOnline: any;
|
|
16
|
+
description: {
|
|
17
|
+
default: any;
|
|
18
|
+
};
|
|
19
|
+
address: {
|
|
20
|
+
id: any;
|
|
21
|
+
formattedAddress: any;
|
|
22
|
+
timezone: any;
|
|
23
|
+
name: any;
|
|
24
|
+
streetNumber: any;
|
|
25
|
+
streetName: any;
|
|
26
|
+
region: any;
|
|
27
|
+
city: any;
|
|
28
|
+
country: any;
|
|
29
|
+
zipCode: any;
|
|
30
|
+
appartment: any;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
schedule: {
|
|
34
|
+
weekly: {
|
|
35
|
+
mon: any;
|
|
36
|
+
tue: any;
|
|
37
|
+
wed: any;
|
|
38
|
+
thu: any;
|
|
39
|
+
fri: any;
|
|
40
|
+
sat: any;
|
|
41
|
+
sun: any;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
12
45
|
export default class Organizations {
|
|
13
46
|
private _requestRunner;
|
|
14
47
|
constructor(requestRunner: StartaRequestRunner);
|
|
@@ -52,17 +85,7 @@ export default class Organizations {
|
|
|
52
85
|
theme: any;
|
|
53
86
|
}): Promise<import("../../types").StartaResponse>;
|
|
54
87
|
setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
|
|
55
|
-
|
|
56
|
-
weekly: {
|
|
57
|
-
mon: any;
|
|
58
|
-
tue: any;
|
|
59
|
-
wed: any;
|
|
60
|
-
thu: any;
|
|
61
|
-
fri: any;
|
|
62
|
-
sat: any;
|
|
63
|
-
sun: any;
|
|
64
|
-
};
|
|
65
|
-
}): Promise<import("../../types").StartaResponse>;
|
|
88
|
+
addSchedule(organizationLogin: any, { name, location: { isOnline, description, address: { id, formattedAddress, timezone, name: addressName, streetNumber, streetName, region, city, country, zipCode, appartment, } }, schedule: { weekly: { mon, tue, wed, thu, fri, sat, sun } } }: OrganizationSchedule): Promise<import("../../types").StartaResponse>;
|
|
66
89
|
getMembersSchedule(organizationLogin: any, date: any): Promise<import("../../types").StartaResponse>;
|
|
67
90
|
getSingleMemberSchedule(organizationLogin: any, member: any, from: any, to: any): Promise<import("../../types").StartaResponse>;
|
|
68
91
|
get orders(): Orders;
|
|
@@ -135,12 +135,34 @@ var Organizations = /** @class */ (function () {
|
|
|
135
135
|
body: bookingWidgetStyles,
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
|
-
Organizations.prototype.
|
|
139
|
-
var _b = _a.weekly, mon =
|
|
138
|
+
Organizations.prototype.addSchedule = function (organizationLogin, _a) {
|
|
139
|
+
var name = _a.name, _b = _a.location, isOnline = _b.isOnline, description = _b.description, _c = _b.address, id = _c.id, formattedAddress = _c.formattedAddress, timezone = _c.timezone, addressName = _c.name, streetNumber = _c.streetNumber, streetName = _c.streetName, region = _c.region, city = _c.city, country = _c.country, zipCode = _c.zipCode, appartment = _c.appartment, _d = _a.schedule.weekly, mon = _d.mon, tue = _d.tue, wed = _d.wed, thu = _d.thu, fri = _d.fri, sat = _d.sat, sun = _d.sun;
|
|
140
140
|
return this._requestRunner.performRequest({
|
|
141
|
-
url: "accounts/".concat(organizationLogin, "/
|
|
142
|
-
method: '
|
|
143
|
-
body: {
|
|
141
|
+
url: "accounts/".concat(organizationLogin, "/schedules"),
|
|
142
|
+
method: 'POST',
|
|
143
|
+
body: {
|
|
144
|
+
name: name,
|
|
145
|
+
location: {
|
|
146
|
+
isOnline: isOnline,
|
|
147
|
+
description: description,
|
|
148
|
+
address: {
|
|
149
|
+
id: id,
|
|
150
|
+
formattedAddress: formattedAddress,
|
|
151
|
+
timezone: timezone,
|
|
152
|
+
name: addressName,
|
|
153
|
+
streetNumber: streetNumber,
|
|
154
|
+
streetName: streetName,
|
|
155
|
+
region: region,
|
|
156
|
+
city: city,
|
|
157
|
+
country: country,
|
|
158
|
+
zipCode: zipCode,
|
|
159
|
+
appartment: appartment,
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
schedule: {
|
|
163
|
+
weekly: { mon: mon, tue: tue, wed: wed, thu: thu, fri: fri, sat: sat, sun: sun }
|
|
164
|
+
}
|
|
165
|
+
},
|
|
144
166
|
});
|
|
145
167
|
};
|
|
146
168
|
Organizations.prototype.getMembersSchedule = function (organizationLogin, date /* YYYY-MM-DD */) {
|