starta.apiclient 1.37.1907 → 1.37.1908

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.
@@ -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 }?: {
5
+ index({ term, categoryKey, type, location, free, mfuDiscount }?: {
6
6
  term?: string;
7
7
  categoryKey?: string;
8
8
  type?: 'organization' | 'service';
@@ -14,6 +14,8 @@ export default class Search {
14
14
  lng: number;
15
15
  };
16
16
  };
17
+ free?: boolean;
18
+ mfuDiscount?: boolean;
17
19
  }): Promise<import("../types").StartaResponse>;
18
20
  categories(): Promise<import("../types").StartaResponse>;
19
21
  }
@@ -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;
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;
10
10
  return this._requestRunner.performRequest({
11
- url: "searchItems".concat((0, _helpers_1.buildQuery)({ term: term, categoryKey: categoryKey, type: type, location: location })),
11
+ url: "searchItems".concat((0, _helpers_1.buildQuery)({ term: term, categoryKey: categoryKey, type: type, location: location, free: free, mfuDiscount: mfuDiscount })),
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.1907",
3
+ "version": "1.37.1908",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",