@escapenavigator/services 2.0.36 → 2.0.40
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/dist/api/init-client-api.d.ts +4 -0
- package/dist/api/init-client-api.js +4 -0
- package/dist/api/loyalty-api/adjust-client-bonuses.d.ts +10 -0
- package/dist/api/loyalty-api/adjust-client-bonuses.js +12 -0
- package/dist/api/loyalty-api/assign-client-tier.d.ts +10 -0
- package/dist/api/loyalty-api/assign-client-tier.js +12 -0
- package/dist/api/loyalty-api/create-tier.d.ts +9 -0
- package/dist/api/loyalty-api/create-tier.js +12 -0
- package/dist/api/loyalty-api/get-client-bonuses.d.ts +6 -0
- package/dist/api/loyalty-api/get-client-bonuses.js +8 -0
- package/dist/api/loyalty-api/get-client-loyalty.d.ts +7 -0
- package/dist/api/loyalty-api/get-client-loyalty.js +8 -0
- package/dist/api/loyalty-api/get-settings.d.ts +5 -0
- package/dist/api/loyalty-api/get-settings.js +8 -0
- package/dist/api/loyalty-api/index.d.ts +26 -0
- package/dist/api/loyalty-api/index.js +27 -0
- package/dist/api/loyalty-api/preview.d.ts +9 -0
- package/dist/api/loyalty-api/preview.js +12 -0
- package/dist/api/loyalty-api/remove-tier.d.ts +7 -0
- package/dist/api/loyalty-api/remove-tier.js +8 -0
- package/dist/api/loyalty-api/setup.d.ts +9 -0
- package/dist/api/loyalty-api/setup.js +12 -0
- package/dist/api/loyalty-api/update-settings.d.ts +9 -0
- package/dist/api/loyalty-api/update-settings.js +12 -0
- package/dist/api/loyalty-api/update-tier.d.ts +10 -0
- package/dist/api/loyalty-api/update-tier.js +12 -0
- package/dist/api/order-bonuses-api/available.d.ts +8 -0
- package/dist/api/order-bonuses-api/available.js +8 -0
- package/dist/api/order-bonuses-api/create.d.ts +9 -0
- package/dist/api/order-bonuses-api/create.js +12 -0
- package/dist/api/order-bonuses-api/index.d.ts +10 -0
- package/dist/api/order-bonuses-api/index.js +11 -0
- package/dist/api/order-bonuses-api/remove.d.ts +7 -0
- package/dist/api/order-bonuses-api/remove.js +8 -0
- package/dist/api/profiles-api/notification-chanel/test.d.ts +3 -1
- package/dist/api/slots-api/index.d.ts +2 -0
- package/dist/api/slots-api/index.js +2 -0
- package/dist/api/slots-api/update-upsellings-range.d.ts +9 -0
- package/dist/api/slots-api/update-upsellings-range.js +12 -0
- package/package.json +4 -4
|
@@ -34,6 +34,7 @@ import { imagesApiDeclaration } from './images-api';
|
|
|
34
34
|
import { landingReviewsApiDeclaration } from './landing-reviews-api';
|
|
35
35
|
import { locationsApiDeclaration } from './locations-api';
|
|
36
36
|
import { logsApiDeclaration } from './logs-api';
|
|
37
|
+
import { loyaltyApiDeclaration } from './loyalty-api';
|
|
37
38
|
import { mailchimpApiDeclaration } from './mailchimp-api';
|
|
38
39
|
import { marketingAutomationApiDeclaration } from './marketing-automation-api';
|
|
39
40
|
import { marketingEmailVariablesApiDeclaration } from './marketing-email-variables-api';
|
|
@@ -41,6 +42,7 @@ import { marketingEmailsUnsubscribeApiDeclaration } from './marketing-emails-uns
|
|
|
41
42
|
import { navigatorCertificateApiDeclaration } from './navigator-certificate-api';
|
|
42
43
|
import { nowEscapeApiDeclaration } from './now-escape-api';
|
|
43
44
|
import { openapiWidgetApiDeclaration } from './openapi-widget-api';
|
|
45
|
+
import { orderBonusesApiDeclaration } from './order-bonuses-api';
|
|
44
46
|
import { orderCertificateUploadsApiDeclaration } from './order-certificate-uploads-api';
|
|
45
47
|
import { orderCertificatesApiDeclaration } from './order-certificates-api';
|
|
46
48
|
import { orderDiscountsApiDeclaration } from './order-discounts-api';
|
|
@@ -125,12 +127,14 @@ export type InitApiDeclaration = {
|
|
|
125
127
|
orderEmailsApi: Api<typeof orderEmailsApiDeclaration>;
|
|
126
128
|
orderCertificateUploads: Api<typeof orderCertificateUploadsApiDeclaration>;
|
|
127
129
|
orderCertificates: Api<typeof orderCertificatesApiDeclaration>;
|
|
130
|
+
orderBonuses: Api<typeof orderBonusesApiDeclaration>;
|
|
128
131
|
orderGroups: Api<typeof orderGroupsApiDeclaration>;
|
|
129
132
|
cities: Api<typeof citiesApiDeclaration>;
|
|
130
133
|
districts: Api<typeof districtsApiDeclaration>;
|
|
131
134
|
subwayStations: Api<typeof subwayStationsApiDeclaration>;
|
|
132
135
|
nowEscape: Api<typeof nowEscapeApiDeclaration>;
|
|
133
136
|
logs: Api<typeof logsApiDeclaration>;
|
|
137
|
+
loyalty: Api<typeof loyaltyApiDeclaration>;
|
|
134
138
|
marketingAutomationApi: Api<typeof marketingAutomationApiDeclaration>;
|
|
135
139
|
marketingEmailVariables: Api<typeof marketingEmailVariablesApiDeclaration>;
|
|
136
140
|
marketingEmailsUnsubscribe: Api<typeof marketingEmailsUnsubscribeApiDeclaration>;
|
|
@@ -37,6 +37,7 @@ var images_api_1 = require("./images-api");
|
|
|
37
37
|
var landing_reviews_api_1 = require("./landing-reviews-api");
|
|
38
38
|
var locations_api_1 = require("./locations-api");
|
|
39
39
|
var logs_api_1 = require("./logs-api");
|
|
40
|
+
var loyalty_api_1 = require("./loyalty-api");
|
|
40
41
|
var mailchimp_api_1 = require("./mailchimp-api");
|
|
41
42
|
var marketing_automation_api_1 = require("./marketing-automation-api");
|
|
42
43
|
var marketing_email_variables_api_1 = require("./marketing-email-variables-api");
|
|
@@ -44,6 +45,7 @@ var marketing_emails_unsubscribe_api_1 = require("./marketing-emails-unsubscribe
|
|
|
44
45
|
var navigator_certificate_api_1 = require("./navigator-certificate-api");
|
|
45
46
|
var now_escape_api_1 = require("./now-escape-api");
|
|
46
47
|
var openapi_widget_api_1 = require("./openapi-widget-api");
|
|
48
|
+
var order_bonuses_api_1 = require("./order-bonuses-api");
|
|
47
49
|
var order_certificate_uploads_api_1 = require("./order-certificate-uploads-api");
|
|
48
50
|
var order_certificates_api_1 = require("./order-certificates-api");
|
|
49
51
|
var order_discounts_api_1 = require("./order-discounts-api");
|
|
@@ -128,8 +130,10 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
128
130
|
districts: (0, _1.initApi)(districts_api_1.districtsApiDeclaration, url, clientOptions),
|
|
129
131
|
subwayStations: (0, _1.initApi)(subway_stations_api_1.subwayStationsApiDeclaration, url, clientOptions),
|
|
130
132
|
orderCertificates: (0, _1.initApi)(order_certificates_api_1.orderCertificatesApiDeclaration, url, clientOptions),
|
|
133
|
+
orderBonuses: (0, _1.initApi)(order_bonuses_api_1.orderBonusesApiDeclaration, url, clientOptions),
|
|
131
134
|
orderGroups: (0, _1.initApi)(order_groups_api_1.orderGroupsApiDeclaration, url, clientOptions),
|
|
132
135
|
logs: (0, _1.initApi)(logs_api_1.logsApiDeclaration, url, clientOptions),
|
|
136
|
+
loyalty: (0, _1.initApi)(loyalty_api_1.loyaltyApiDeclaration, url, clientOptions),
|
|
133
137
|
marketingAutomationApi: (0, _1.initApi)(marketing_automation_api_1.marketingAutomationApiDeclaration, url, clientOptions),
|
|
134
138
|
marketingEmailVariables: (0, _1.initApi)(marketing_email_variables_api_1.marketingEmailVariablesApiDeclaration, url, clientOptions),
|
|
135
139
|
marketingEmailsUnsubscribe: (0, _1.initApi)(marketing_emails_unsubscribe_api_1.marketingEmailsUnsubscribeApiDeclaration, url, clientOptions),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AdjustBonusDto } from '@escapenavigator/types/dist/loyalty/adjust-bonus.dto';
|
|
2
|
+
import { LoyaltyBonusRO } from '@escapenavigator/types/dist/loyalty/loyalty-bonus.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
clientId: number;
|
|
6
|
+
data: AdjustBonusDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LoyaltyBonusRO;
|
|
9
|
+
export declare const adjustClientBonuses: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.adjustClientBonuses = void 0;
|
|
4
|
+
var adjustClientBonuses = function (_a) {
|
|
5
|
+
var clientId = _a.clientId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/loyalty/clients/".concat(clientId, "/bonuses"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.adjustClientBonuses = adjustClientBonuses;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AssignClientTierDto } from '@escapenavigator/types/dist/loyalty/assign-client-tier.dto';
|
|
2
|
+
import { ClientLoyaltyRO } from '@escapenavigator/types/dist/loyalty/client-loyalty.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
clientId: number;
|
|
6
|
+
data: AssignClientTierDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = ClientLoyaltyRO;
|
|
9
|
+
export declare const assignClientTier: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assignClientTier = void 0;
|
|
4
|
+
var assignClientTier = function (_a) {
|
|
5
|
+
var clientId = _a.clientId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/loyalty/clients/".concat(clientId),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.assignClientTier = assignClientTier;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateLoyaltyTierDto } from '@escapenavigator/types/dist/loyalty/loyalty-tier.dto';
|
|
2
|
+
import { LoyaltyTierRO } from '@escapenavigator/types/dist/loyalty/loyalty-tier.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: CreateLoyaltyTierDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LoyaltyTierRO;
|
|
8
|
+
export declare const createTier: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTier = void 0;
|
|
4
|
+
var createTier = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/loyalty/tiers',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createTier = createTier;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LoyaltyBonusRO } from '@escapenavigator/types/dist/loyalty/loyalty-bonus.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = number;
|
|
4
|
+
type ResponseData = LoyaltyBonusRO[];
|
|
5
|
+
export declare const getClientBonuses: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClientBonuses = void 0;
|
|
4
|
+
var getClientBonuses = function (clientId) { return ({
|
|
5
|
+
url: "/loyalty/clients/".concat(clientId, "/bonuses"),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getClientBonuses = getClientBonuses;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ClientLoyaltyRO } from '@escapenavigator/types/dist/loyalty/client-loyalty.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID клиента */
|
|
4
|
+
type ParamsData = number;
|
|
5
|
+
type ResponseData = ClientLoyaltyRO;
|
|
6
|
+
export declare const getClientLoyalty: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getClientLoyalty = void 0;
|
|
4
|
+
var getClientLoyalty = function (clientId) { return ({
|
|
5
|
+
url: "/loyalty/clients/".concat(clientId),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getClientLoyalty = getClientLoyalty;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LoyaltySettingsRO } from '@escapenavigator/types/dist/loyalty/loyalty-settings.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ResponseData = LoyaltySettingsRO;
|
|
4
|
+
export declare const getSettings: ApiMethodDeclaration<undefined, ResponseData>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { adjustClientBonuses } from './adjust-client-bonuses';
|
|
2
|
+
import { assignClientTier } from './assign-client-tier';
|
|
3
|
+
import { createTier } from './create-tier';
|
|
4
|
+
import { getClientBonuses } from './get-client-bonuses';
|
|
5
|
+
import { getClientLoyalty } from './get-client-loyalty';
|
|
6
|
+
import { getSettings } from './get-settings';
|
|
7
|
+
import { preview } from './preview';
|
|
8
|
+
import { removeTier } from './remove-tier';
|
|
9
|
+
import { setup } from './setup';
|
|
10
|
+
import { updateSettings } from './update-settings';
|
|
11
|
+
import { updateTier } from './update-tier';
|
|
12
|
+
type ApiDeclaration = {
|
|
13
|
+
getSettings: typeof getSettings;
|
|
14
|
+
setup: typeof setup;
|
|
15
|
+
updateSettings: typeof updateSettings;
|
|
16
|
+
preview: typeof preview;
|
|
17
|
+
createTier: typeof createTier;
|
|
18
|
+
updateTier: typeof updateTier;
|
|
19
|
+
removeTier: typeof removeTier;
|
|
20
|
+
getClientLoyalty: typeof getClientLoyalty;
|
|
21
|
+
assignClientTier: typeof assignClientTier;
|
|
22
|
+
getClientBonuses: typeof getClientBonuses;
|
|
23
|
+
adjustClientBonuses: typeof adjustClientBonuses;
|
|
24
|
+
};
|
|
25
|
+
export declare const loyaltyApiDeclaration: ApiDeclaration;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loyaltyApiDeclaration = void 0;
|
|
4
|
+
var adjust_client_bonuses_1 = require("./adjust-client-bonuses");
|
|
5
|
+
var assign_client_tier_1 = require("./assign-client-tier");
|
|
6
|
+
var create_tier_1 = require("./create-tier");
|
|
7
|
+
var get_client_bonuses_1 = require("./get-client-bonuses");
|
|
8
|
+
var get_client_loyalty_1 = require("./get-client-loyalty");
|
|
9
|
+
var get_settings_1 = require("./get-settings");
|
|
10
|
+
var preview_1 = require("./preview");
|
|
11
|
+
var remove_tier_1 = require("./remove-tier");
|
|
12
|
+
var setup_1 = require("./setup");
|
|
13
|
+
var update_settings_1 = require("./update-settings");
|
|
14
|
+
var update_tier_1 = require("./update-tier");
|
|
15
|
+
exports.loyaltyApiDeclaration = {
|
|
16
|
+
getSettings: get_settings_1.getSettings,
|
|
17
|
+
setup: setup_1.setup,
|
|
18
|
+
updateSettings: update_settings_1.updateSettings,
|
|
19
|
+
preview: preview_1.preview,
|
|
20
|
+
createTier: create_tier_1.createTier,
|
|
21
|
+
updateTier: update_tier_1.updateTier,
|
|
22
|
+
removeTier: remove_tier_1.removeTier,
|
|
23
|
+
getClientLoyalty: get_client_loyalty_1.getClientLoyalty,
|
|
24
|
+
assignClientTier: assign_client_tier_1.assignClientTier,
|
|
25
|
+
getClientBonuses: get_client_bonuses_1.getClientBonuses,
|
|
26
|
+
adjustClientBonuses: adjust_client_bonuses_1.adjustClientBonuses,
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoyaltyPreviewDto } from '@escapenavigator/types/dist/loyalty/loyalty-preview.dto';
|
|
2
|
+
import { LoyaltyPreviewRO } from '@escapenavigator/types/dist/loyalty/loyalty-preview.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: LoyaltyPreviewDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LoyaltyPreviewRO;
|
|
8
|
+
export declare const preview: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.preview = void 0;
|
|
4
|
+
var preview = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/loyalty/preview',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.preview = preview;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoyaltyTierRO } from '@escapenavigator/types/dist/loyalty/loyalty-tier.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID ступени */
|
|
4
|
+
type ParamsData = number;
|
|
5
|
+
type ResponseData = LoyaltyTierRO;
|
|
6
|
+
export declare const removeTier: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SetupLoyaltyDto } from '@escapenavigator/types/dist/loyalty/loyalty-settings.dto';
|
|
2
|
+
import { LoyaltySettingsRO } from '@escapenavigator/types/dist/loyalty/loyalty-settings.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: SetupLoyaltyDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LoyaltySettingsRO;
|
|
8
|
+
export declare const setup: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setup = void 0;
|
|
4
|
+
var setup = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/loyalty/setup',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.setup = setup;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UpdateLoyaltySettingsDto } from '@escapenavigator/types/dist/loyalty/loyalty-settings.dto';
|
|
2
|
+
import { LoyaltySettingsRO } from '@escapenavigator/types/dist/loyalty/loyalty-settings.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateLoyaltySettingsDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LoyaltySettingsRO;
|
|
8
|
+
export declare const updateSettings: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateSettings = void 0;
|
|
4
|
+
var updateSettings = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/loyalty',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateSettings = updateSettings;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UpdateLoyaltyTierDto } from '@escapenavigator/types/dist/loyalty/loyalty-tier.dto';
|
|
2
|
+
import { LoyaltyTierRO } from '@escapenavigator/types/dist/loyalty/loyalty-tier.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateLoyaltyTierDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LoyaltyTierRO;
|
|
9
|
+
export declare const updateTier: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateTier = void 0;
|
|
4
|
+
var updateTier = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/loyalty/tiers/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateTier = updateTier;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.available = void 0;
|
|
4
|
+
var available = function (orderId) { return ({
|
|
5
|
+
url: "/order-bonuses/".concat(orderId, "/available"),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.available = available;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PayWithBonusDto } from '@escapenavigator/types/dist/loyalty/pay-with-bonus.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: PayWithBonusDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = SuccessRO;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/order-bonuses',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { available } from './available';
|
|
2
|
+
import { create } from './create';
|
|
3
|
+
import { remove } from './remove';
|
|
4
|
+
type ApiDeclaration = {
|
|
5
|
+
available: typeof available;
|
|
6
|
+
create: typeof create;
|
|
7
|
+
remove: typeof remove;
|
|
8
|
+
};
|
|
9
|
+
export declare const orderBonusesApiDeclaration: ApiDeclaration;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderBonusesApiDeclaration = void 0;
|
|
4
|
+
var available_1 = require("./available");
|
|
5
|
+
var create_1 = require("./create");
|
|
6
|
+
var remove_1 = require("./remove");
|
|
7
|
+
exports.orderBonusesApiDeclaration = {
|
|
8
|
+
available: available_1.available,
|
|
9
|
+
create: create_1.create,
|
|
10
|
+
remove: remove_1.remove,
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID операции списания */
|
|
4
|
+
type ParamsData = number;
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -3,7 +3,9 @@ import { WebhookTestResultRO } from '@escapenavigator/types/dist/profile/notific
|
|
|
3
3
|
import { ApiMethodDeclaration } from '../..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
|
-
|
|
6
|
+
/** Нужен для событий по заказу; для `certificate-*` вместо него код. */
|
|
7
|
+
orderId?: number;
|
|
8
|
+
certificateCode?: string;
|
|
7
9
|
trigger?: NotificationTriggerEnum;
|
|
8
10
|
};
|
|
9
11
|
/** Ручной тест webhook-канала: шлёт боевой payload по заказу с `test: true`. */
|
|
@@ -12,6 +12,7 @@ import { setSlotResourceOverride } from './set-resource-override';
|
|
|
12
12
|
import { slotDetails } from './slot-details';
|
|
13
13
|
import { updateBreaks } from './update-breaks';
|
|
14
14
|
import { updateSlot } from './update-slot';
|
|
15
|
+
import { updateUpsellingsRange } from './update-upsellings-range';
|
|
15
16
|
type ApiDeclaration = {
|
|
16
17
|
calendarDaysWithOrder: typeof calendarDaysWithOrder;
|
|
17
18
|
allDaySlots: typeof allDaySlots;
|
|
@@ -26,6 +27,7 @@ type ApiDeclaration = {
|
|
|
26
27
|
create: typeof create;
|
|
27
28
|
remove: typeof remove;
|
|
28
29
|
updateSlot: typeof updateSlot;
|
|
30
|
+
updateUpsellingsRange: typeof updateUpsellingsRange;
|
|
29
31
|
slotDetails: typeof slotDetails;
|
|
30
32
|
};
|
|
31
33
|
export declare const slotsApiDeclaration: ApiDeclaration;
|
|
@@ -15,12 +15,14 @@ var set_resource_override_1 = require("./set-resource-override");
|
|
|
15
15
|
var slot_details_1 = require("./slot-details");
|
|
16
16
|
var update_breaks_1 = require("./update-breaks");
|
|
17
17
|
var update_slot_1 = require("./update-slot");
|
|
18
|
+
var update_upsellings_range_1 = require("./update-upsellings-range");
|
|
18
19
|
exports.slotsApiDeclaration = {
|
|
19
20
|
allDaySlots: all_day_slots_1.allDaySlots,
|
|
20
21
|
bulkUpdate: bulk_update_1.bulkUpdate,
|
|
21
22
|
forceRemoveHold: force_remove_hold_1.forceRemoveHold,
|
|
22
23
|
calendarDaysWithOrder: calendar_days_with_orders_1.calendarDaysWithOrder,
|
|
23
24
|
updateSlot: update_slot_1.updateSlot,
|
|
25
|
+
updateUpsellingsRange: update_upsellings_range_1.updateUpsellingsRange,
|
|
24
26
|
updateBreaks: update_breaks_1.updateBreaks,
|
|
25
27
|
calendarDay: calendar_day_1.calendarDay,
|
|
26
28
|
invalidateDay: invalidate_day_1.invalidateDay,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { UpdateSlotUpsellingsRangeDto } from '@escapenavigator/types/dist/slot/update-slot-upsellings-range.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateSlotUpsellingsRangeDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = SuccessRO;
|
|
8
|
+
export declare const updateUpsellingsRange: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateUpsellingsRange = void 0;
|
|
4
|
+
var updateUpsellingsRange = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/slots/upsellings-range',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateUpsellingsRange = updateUpsellingsRange;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.40",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "46c94f5f9d49d1c7efb30798d44bc5ed6e2dcc50",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.38",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.40",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|