starta.apiclient 1.37.7771 → 1.37.7773

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.
@@ -121,6 +121,7 @@ export default class Organizations {
121
121
  approved: any;
122
122
  }): Promise<import("../../types").StartaResponse>;
123
123
  receiveReward(organizationLogin: string, rewardType: OrgRewardType): Promise<import("../../types").StartaResponse>;
124
+ setRewardConditions(organizationLogin: string, rewardType: OrgRewardType, conditions: any): Promise<import("../../types").StartaResponse>;
124
125
  get orders(): Orders;
125
126
  get customers(): Customers;
126
127
  get salaries(): Salaries;
@@ -265,6 +265,13 @@ class Organizations {
265
265
  body: {},
266
266
  });
267
267
  }
268
+ setRewardConditions(organizationLogin, rewardType, conditions) {
269
+ return this._requestRunner.performRequest({
270
+ url: `accounts/${organizationLogin}/rewards/${rewardType}/conditions`,
271
+ method: 'PUT',
272
+ body: conditions,
273
+ });
274
+ }
268
275
  get orders() {
269
276
  return new orders_1.default(this._requestRunner);
270
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.7771",
3
+ "version": "1.37.7773",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",