starta.apiclient 1.37.2876 → 1.37.2879

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.
@@ -14,7 +14,7 @@ import Worklogs from './worklogs';
14
14
  import StartaTransactions from './startaTransactions';
15
15
  export declare type TariffDetails = {
16
16
  tariff: 'lite' | 'pro';
17
- period: 'monthly';
17
+ period: 'monthly' | 'yearly';
18
18
  successUrl?: string;
19
19
  cancelUrl?: string;
20
20
  };
@@ -85,6 +85,7 @@ export default class Organizations {
85
85
  }): Promise<import("../../types").StartaResponse>;
86
86
  setSNSubscribers(organizationLogin: string, snSubscribers: undefined | '<1000' | '1000-5000' | '5000-10000' | '10000-50000' | '50000-100000' | '100000+'): Promise<import("../../types").StartaResponse>;
87
87
  setEndOfTrial(organizationLogin: string, endOfTrialAt: string): Promise<import("../../types").StartaResponse>;
88
+ setForYearBonus(organizationLogin: string, bonusForYearUntil: string): Promise<import("../../types").StartaResponse>;
88
89
  getBillingInfo(organizationLogin: string, month?: string): Promise<import("../../types").StartaResponse>;
89
90
  setTariff(organizationLogin: string, { tariff, period, successUrl, cancelUrl }: TariffDetails): Promise<import("../../types").StartaResponse>;
90
91
  get orders(): Orders;
@@ -174,6 +174,15 @@ class Organizations {
174
174
  }
175
175
  });
176
176
  }
177
+ setForYearBonus(organizationLogin, bonusForYearUntil) {
178
+ return this._requestRunner.performRequest({
179
+ url: `accounts/${organizationLogin}/bonusForYearUntil`,
180
+ method: 'PUT',
181
+ body: {
182
+ bonusForYearUntil,
183
+ }
184
+ });
185
+ }
177
186
  getBillingInfo(organizationLogin, month) {
178
187
  return this._requestRunner.performRequest({
179
188
  url: `accounts/${organizationLogin}/billingInfo${(0, _helpers_1.buildQuery)({ month })}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.2876",
3
+ "version": "1.37.2879",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",