starta.apiclient 1.37.7773 → 1.37.7775
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.
|
@@ -122,6 +122,7 @@ export default class Organizations {
|
|
|
122
122
|
}): Promise<import("../../types").StartaResponse>;
|
|
123
123
|
receiveReward(organizationLogin: string, rewardType: OrgRewardType): Promise<import("../../types").StartaResponse>;
|
|
124
124
|
setRewardConditions(organizationLogin: string, rewardType: OrgRewardType, conditions: any): Promise<import("../../types").StartaResponse>;
|
|
125
|
+
getStats(organizationLogin: string): Promise<import("../../types").StartaResponse>;
|
|
125
126
|
get orders(): Orders;
|
|
126
127
|
get customers(): Customers;
|
|
127
128
|
get salaries(): Salaries;
|
|
@@ -269,7 +269,15 @@ class Organizations {
|
|
|
269
269
|
return this._requestRunner.performRequest({
|
|
270
270
|
url: `accounts/${organizationLogin}/rewards/${rewardType}/conditions`,
|
|
271
271
|
method: 'PUT',
|
|
272
|
-
body:
|
|
272
|
+
body: {
|
|
273
|
+
conditions,
|
|
274
|
+
},
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
getStats(organizationLogin) {
|
|
278
|
+
return this._requestRunner.performRequest({
|
|
279
|
+
url: `accounts/${organizationLogin}/stats`,
|
|
280
|
+
method: 'GET',
|
|
273
281
|
});
|
|
274
282
|
}
|
|
275
283
|
get orders() {
|