starta.apiclient 1.37.2021 → 1.37.2026

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.
@@ -68,7 +68,6 @@ export default class Organizations {
68
68
  setBookingWidgetStyles(organizationLogin: any, bookingWidgetStyles: any): Promise<import("../../types").StartaResponse>;
69
69
  getMembersSchedule(organizationLogin: any, date: any): Promise<import("../../types").StartaResponse>;
70
70
  getSingleMemberSchedule(organizationLogin: any, member: any, from: any, to: any): Promise<import("../../types").StartaResponse>;
71
- setLanguages(organizationLogin: string, languages: Array<string>): Promise<import("../../types").StartaResponse>;
72
71
  updateRoles(organizationLogin: any, roles: any): Promise<import("../../types").StartaResponse>;
73
72
  setLicense(organizationLogin: any, { period, returnUrl }: {
74
73
  period: 'monthly' | 'yearly';
@@ -138,13 +138,6 @@ var Organizations = /** @class */ (function () {
138
138
  method: 'GET',
139
139
  });
140
140
  };
141
- Organizations.prototype.setLanguages = function (organizationLogin, languages) {
142
- return this._requestRunner.performRequest({
143
- url: "accounts/".concat(organizationLogin, "/languages"),
144
- method: 'PUT',
145
- body: { languages: languages },
146
- });
147
- };
148
141
  Organizations.prototype.updateRoles = function (organizationLogin, roles) {
149
142
  return this._requestRunner.performRequest({
150
143
  url: "accounts/".concat(organizationLogin, "/roles"),
@@ -2,7 +2,7 @@ import { StartaRequestRunner } from '../types';
2
2
  export default class Search {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
- index({ term, categoryKey, type, location, free, mfuDiscount }?: {
5
+ index({ term, categoryKey, type, location, free, mfuDiscount, languages }?: {
6
6
  term?: string;
7
7
  categoryKey?: string;
8
8
  type?: 'organization' | 'service';
@@ -16,6 +16,7 @@ export default class Search {
16
16
  };
17
17
  free?: boolean;
18
18
  mfuDiscount?: boolean;
19
+ languages?: string[];
19
20
  }): Promise<import("../types").StartaResponse>;
20
21
  categories(): Promise<import("../types").StartaResponse>;
21
22
  }
@@ -6,9 +6,9 @@ var Search = /** @class */ (function () {
6
6
  this._requestRunner = requestRunner;
7
7
  }
8
8
  Search.prototype.index = function (_a) {
9
- var _b = _a === void 0 ? {} : _a, term = _b.term, categoryKey = _b.categoryKey, type = _b.type, location = _b.location, free = _b.free, mfuDiscount = _b.mfuDiscount;
9
+ var _b = _a === void 0 ? {} : _a, term = _b.term, categoryKey = _b.categoryKey, type = _b.type, location = _b.location, free = _b.free, mfuDiscount = _b.mfuDiscount, languages = _b.languages;
10
10
  return this._requestRunner.performRequest({
11
- url: "searchItems".concat((0, _helpers_1.buildQuery)({ term: term, categoryKey: categoryKey, type: type, location: location, free: free, mfuDiscount: mfuDiscount })),
11
+ url: "searchItems".concat((0, _helpers_1.buildQuery)({ term: term, categoryKey: categoryKey, type: type, location: location, free: free, mfuDiscount: mfuDiscount, languages: languages })),
12
12
  method: 'GET',
13
13
  config: {
14
14
  rewriteBaseUrl: function (url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.2021",
3
+ "version": "1.37.2026",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",