starta.apiclient 1.37.3238 → 1.37.3243
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.
- package/lib/services/communications.d.ts +1 -0
- package/lib/services/communications.js +7 -0
- package/lib/services/organizations/index.d.ts +0 -1
- package/lib/services/organizations/index.js +0 -7
- package/lib/services/organizations/orders.d.ts +5 -1
- package/lib/services/organizations/orders.js +11 -1
- package/package.json +1 -1
|
@@ -16,4 +16,5 @@ export default class Communications {
|
|
|
16
16
|
};
|
|
17
17
|
}): Promise<import("../types").StartaResponse>;
|
|
18
18
|
getSMSCreditsBalance(organizationLogin: string): Promise<import("../types").StartaResponse>;
|
|
19
|
+
getSMSCreditsPaymentLink(organizationLogin: string, creditsPackage: 'lite250' | 'lite1100' | 'pro250' | 'pro1100'): Promise<import("../types").StartaResponse>;
|
|
19
20
|
}
|
|
@@ -69,5 +69,12 @@ class Communications {
|
|
|
69
69
|
},
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
+
getSMSCreditsPaymentLink(organizationLogin, creditsPackage) {
|
|
73
|
+
return this._requestRunner.performRequest({
|
|
74
|
+
url: `accounts/${organizationLogin}/smsCreditsPaymentLink`,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
body: { creditsPackage },
|
|
77
|
+
});
|
|
78
|
+
}
|
|
72
79
|
}
|
|
73
80
|
exports.default = Communications;
|
|
@@ -89,7 +89,6 @@ export default class Organizations {
|
|
|
89
89
|
setForYearBonus(organizationLogin: string, bonusForYearUntil: string): Promise<import("../../types").StartaResponse>;
|
|
90
90
|
getBillingInfo(organizationLogin: string, month?: string): Promise<import("../../types").StartaResponse>;
|
|
91
91
|
setTariff(organizationLogin: string, { tariff, period, successUrl, cancelUrl }: TariffDetails): Promise<import("../../types").StartaResponse>;
|
|
92
|
-
getSMSCreditsPaymentLink(organizationLogin: string, creditsPackage: 'lite250' | 'lite1100' | 'pro250' | 'pro1100'): Promise<import("../../types").StartaResponse>;
|
|
93
92
|
get orders(): Orders;
|
|
94
93
|
get customers(): Customers;
|
|
95
94
|
get rooms(): Rooms;
|
|
@@ -202,13 +202,6 @@ class Organizations {
|
|
|
202
202
|
body: { tariff, period, successUrl, cancelUrl },
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
getSMSCreditsPaymentLink(organizationLogin, creditsPackage) {
|
|
206
|
-
return this._requestRunner.performRequest({
|
|
207
|
-
url: `accounts/${organizationLogin}/smsCreditsPaymentLink`,
|
|
208
|
-
method: 'GET',
|
|
209
|
-
body: { creditsPackage },
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
205
|
get orders() {
|
|
213
206
|
return new orders_1.default(this._requestRunner);
|
|
214
207
|
}
|
|
@@ -2,7 +2,7 @@ import { StartaRequestRunner, OrderStatus, OrderRepeatSettings } from '../../typ
|
|
|
2
2
|
export default class Orders {
|
|
3
3
|
private _requestRunner;
|
|
4
4
|
constructor(requestRunner: StartaRequestRunner);
|
|
5
|
-
index(organizationLogin: string, { from, to, status, startaCommissionMonth, product, sortColumn, sortDirection, statusOperator, needsToBeConfirmedByOrganization, needsToBeApprovedByCustomer, }: {
|
|
5
|
+
index(organizationLogin: string, { from, to, status, startaCommissionMonth, product, sortColumn, sortDirection, statusOperator, needsToBeConfirmedByOrganization, needsToBeApprovedByCustomer, isShownInNotificationCenter, }: {
|
|
6
6
|
from?: string;
|
|
7
7
|
to?: string;
|
|
8
8
|
status?: OrderStatus | OrderStatus[];
|
|
@@ -17,6 +17,7 @@ export default class Orders {
|
|
|
17
17
|
sortColumn?: 'starttime';
|
|
18
18
|
needsToBeConfirmedByOrganization?: boolean;
|
|
19
19
|
needsToBeApprovedByCustomer?: boolean;
|
|
20
|
+
isShownInNotificationCenter?: boolean;
|
|
20
21
|
}): Promise<import("../../types").StartaResponse>;
|
|
21
22
|
isTimeSlotAvailable(organizationLogin: string, { executor, starttime, endtime, skipOrderId, scheduleId }: {
|
|
22
23
|
executor: any;
|
|
@@ -69,4 +70,7 @@ export default class Orders {
|
|
|
69
70
|
setConfirmation(organizationOrCustomerLogin: any, orderId: any, { isConfirmed }: {
|
|
70
71
|
isConfirmed: any;
|
|
71
72
|
}): Promise<import("../../types").StartaResponse>;
|
|
73
|
+
setShownInNotificationCenter(organizationOrCustomerLogin: any, orderId: any, { isShownInNotificationCenter }: {
|
|
74
|
+
isShownInNotificationCenter: any;
|
|
75
|
+
}): Promise<import("../../types").StartaResponse>;
|
|
72
76
|
}
|
|
@@ -5,7 +5,7 @@ class Orders {
|
|
|
5
5
|
constructor(requestRunner) {
|
|
6
6
|
this._requestRunner = requestRunner;
|
|
7
7
|
}
|
|
8
|
-
index(organizationLogin, { from, to, status, startaCommissionMonth, product, sortColumn, sortDirection, statusOperator, needsToBeConfirmedByOrganization, needsToBeApprovedByCustomer, }) {
|
|
8
|
+
index(organizationLogin, { from, to, status, startaCommissionMonth, product, sortColumn, sortDirection, statusOperator, needsToBeConfirmedByOrganization, needsToBeApprovedByCustomer, isShownInNotificationCenter, }) {
|
|
9
9
|
return this._requestRunner.performRequest({
|
|
10
10
|
url: `accounts/${organizationLogin}/orders${(0, _helpers_1.buildQuery)({
|
|
11
11
|
from,
|
|
@@ -18,6 +18,7 @@ class Orders {
|
|
|
18
18
|
statusOperator,
|
|
19
19
|
needsToBeConfirmedByOrganization,
|
|
20
20
|
needsToBeApprovedByCustomer,
|
|
21
|
+
isShownInNotificationCenter,
|
|
21
22
|
})}`,
|
|
22
23
|
method: 'GET',
|
|
23
24
|
});
|
|
@@ -90,5 +91,14 @@ class Orders {
|
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
93
|
}
|
|
94
|
+
setShownInNotificationCenter(organizationOrCustomerLogin, orderId, { isShownInNotificationCenter }) {
|
|
95
|
+
return this._requestRunner.performRequest({
|
|
96
|
+
url: `accounts/${organizationOrCustomerLogin}/orders/${orderId}/isShownInNotificationCenter`,
|
|
97
|
+
method: 'PUT',
|
|
98
|
+
body: {
|
|
99
|
+
isShownInNotificationCenter,
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
93
103
|
}
|
|
94
104
|
exports.default = Orders;
|