starta.apiclient 1.37.2876 → 1.37.2877

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
  };
@@ -67,11 +67,10 @@ export default class Organizations {
67
67
  }): Promise<import("../../types").StartaResponse>;
68
68
  setDescription(organizationLogin: any, description: any): Promise<import("../../types").StartaResponse>;
69
69
  getBookingWidgetSettings(organizationLogin: any): Promise<import("../../types").StartaResponse>;
70
- setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme, schedulingPreference }: {
71
- enabled: boolean;
72
- bookingInterval?: number;
73
- theme?: 'dark' | 'light' | 'pink';
74
- schedulingPreference?: 'stickToIntervals' | 'fillGaps';
70
+ setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, theme }: {
71
+ enabled: any;
72
+ bookingInterval: any;
73
+ theme: any;
75
74
  }): Promise<import("../../types").StartaResponse>;
76
75
  setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
77
76
  getMembersSchedule(organizationLogin: any, date: any): Promise<import("../../types").StartaResponse>;
@@ -85,6 +84,7 @@ export default class Organizations {
85
84
  }): Promise<import("../../types").StartaResponse>;
86
85
  setSNSubscribers(organizationLogin: string, snSubscribers: undefined | '<1000' | '1000-5000' | '5000-10000' | '10000-50000' | '50000-100000' | '100000+'): Promise<import("../../types").StartaResponse>;
87
86
  setEndOfTrial(organizationLogin: string, endOfTrialAt: string): Promise<import("../../types").StartaResponse>;
87
+ setForYearBonus(organizationLogin: string, bonusForYearUntil: string): Promise<import("../../types").StartaResponse>;
88
88
  getBillingInfo(organizationLogin: string, month?: string): Promise<import("../../types").StartaResponse>;
89
89
  setTariff(organizationLogin: string, { tariff, period, successUrl, cancelUrl }: TariffDetails): Promise<import("../../types").StartaResponse>;
90
90
  get orders(): Orders;
@@ -107,11 +107,11 @@ class Organizations {
107
107
  method: 'GET',
108
108
  });
109
109
  }
110
- setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme, schedulingPreference }) {
110
+ setBookingWidgetSettings(organizationLogin, { enabled, bookingInterval, theme }) {
111
111
  return this._requestRunner.performRequest({
112
112
  url: `accounts/${organizationLogin}/bookingWidget/settings`,
113
- method: 'PATCH',
114
- body: { enabled, bookingInterval, theme, schedulingPreference },
113
+ method: 'PUT',
114
+ body: { enabled, bookingInterval, theme },
115
115
  });
116
116
  }
117
117
  setBookingWidgetStyles(organizationLogin, bookingWidgetStyles) {
@@ -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.2877",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",