starta.apiclient 1.37.4376 → 1.37.4385

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.
@@ -7,4 +7,5 @@ export default class Agenda {
7
7
  sendOrderUnconfirmedByOrgReminderToOrgSMS(): Promise<import("../types").StartaResponse>;
8
8
  sendOrderUnconfirmedByOrgReminderToChat(): Promise<import("../types").StartaResponse>;
9
9
  ordersAutocancel(): Promise<import("../types").StartaResponse>;
10
+ sendOrderReviewToEmail(): Promise<import("../types").StartaResponse>;
10
11
  }
@@ -34,5 +34,11 @@ class Agenda {
34
34
  method: 'PUT',
35
35
  });
36
36
  }
37
+ sendOrderReviewToEmail() {
38
+ return this._requestRunner.performRequest({
39
+ url: 'agenda/orders-customers-review-notify',
40
+ method: 'PUT',
41
+ });
42
+ }
37
43
  }
38
44
  exports.default = Agenda;
@@ -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, languages, isTop, discounts }?: {
5
+ index({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, startaDiscount }?: {
6
6
  term?: string;
7
7
  categoryKey?: string;
8
8
  type?: 'organization' | 'service';
@@ -24,9 +24,9 @@ export default class Search {
24
24
  mfuDiscount?: boolean;
25
25
  languages?: string[];
26
26
  isTop?: boolean;
27
- discounts?: boolean;
27
+ startaDiscount?: boolean;
28
28
  }): Promise<import("../types").StartaResponse>;
29
- getSections({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, discounts }?: {
29
+ getSections({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, startaDiscount }?: {
30
30
  term?: string;
31
31
  categoryKey?: string;
32
32
  type?: 'organization' | 'service';
@@ -46,7 +46,7 @@ export default class Search {
46
46
  mfuDiscount?: boolean;
47
47
  languages?: string[];
48
48
  isTop?: boolean;
49
- discounts?: boolean;
49
+ startaDiscount?: boolean;
50
50
  }): Promise<import("../types").StartaResponse>;
51
51
  categories(): Promise<import("../types").StartaResponse>;
52
52
  }
@@ -5,9 +5,9 @@ class Search {
5
5
  constructor(requestRunner) {
6
6
  this._requestRunner = requestRunner;
7
7
  }
8
- index({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, discounts } = {}) {
8
+ index({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, startaDiscount } = {}) {
9
9
  return this._requestRunner.performRequest({
10
- url: `searchItems${(0, _helpers_1.buildQuery)({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, discounts })}`,
10
+ url: `searchItems${(0, _helpers_1.buildQuery)({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, startaDiscount })}`,
11
11
  method: 'GET',
12
12
  config: {
13
13
  rewriteBaseUrl: (url) => {
@@ -16,9 +16,9 @@ class Search {
16
16
  },
17
17
  });
18
18
  }
19
- getSections({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, discounts } = {}) {
19
+ getSections({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, startaDiscount } = {}) {
20
20
  return this._requestRunner.performRequest({
21
- url: `searchItemsSections${(0, _helpers_1.buildQuery)({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, discounts })}`,
21
+ url: `searchItemsSections${(0, _helpers_1.buildQuery)({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop, startaDiscount })}`,
22
22
  method: 'GET',
23
23
  config: {
24
24
  rewriteBaseUrl: (url) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.4376",
3
+ "version": "1.37.4385",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",