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.
package/lib/services/agenda.d.ts
CHANGED
|
@@ -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
|
}
|
package/lib/services/agenda.js
CHANGED
package/lib/services/search.d.ts
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
27
|
+
startaDiscount?: boolean;
|
|
28
28
|
}): Promise<import("../types").StartaResponse>;
|
|
29
|
-
getSections({ term, categoryKey, type, location, free, mfuDiscount, languages, isTop,
|
|
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
|
-
|
|
49
|
+
startaDiscount?: boolean;
|
|
50
50
|
}): Promise<import("../types").StartaResponse>;
|
|
51
51
|
categories(): Promise<import("../types").StartaResponse>;
|
|
52
52
|
}
|
package/lib/services/search.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
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) => {
|