@escapenavigator/services 2.0.35 → 2.0.39

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.
Files changed (44) hide show
  1. package/dist/api/init-client-api.d.ts +4 -0
  2. package/dist/api/init-client-api.js +4 -0
  3. package/dist/api/loyalty-api/adjust-client-bonuses.d.ts +10 -0
  4. package/dist/api/loyalty-api/adjust-client-bonuses.js +12 -0
  5. package/dist/api/loyalty-api/assign-client-tier.d.ts +10 -0
  6. package/dist/api/loyalty-api/assign-client-tier.js +12 -0
  7. package/dist/api/loyalty-api/create-tier.d.ts +9 -0
  8. package/dist/api/loyalty-api/create-tier.js +12 -0
  9. package/dist/api/loyalty-api/get-client-bonuses.d.ts +6 -0
  10. package/dist/api/loyalty-api/get-client-bonuses.js +8 -0
  11. package/dist/api/loyalty-api/get-client-loyalty.d.ts +7 -0
  12. package/dist/api/loyalty-api/get-client-loyalty.js +8 -0
  13. package/dist/api/loyalty-api/get-settings.d.ts +5 -0
  14. package/dist/api/loyalty-api/get-settings.js +8 -0
  15. package/dist/api/loyalty-api/index.d.ts +26 -0
  16. package/dist/api/loyalty-api/index.js +27 -0
  17. package/dist/api/loyalty-api/preview.d.ts +9 -0
  18. package/dist/api/loyalty-api/preview.js +12 -0
  19. package/dist/api/loyalty-api/remove-tier.d.ts +7 -0
  20. package/dist/api/loyalty-api/remove-tier.js +8 -0
  21. package/dist/api/loyalty-api/setup.d.ts +9 -0
  22. package/dist/api/loyalty-api/setup.js +12 -0
  23. package/dist/api/loyalty-api/update-settings.d.ts +9 -0
  24. package/dist/api/loyalty-api/update-settings.js +12 -0
  25. package/dist/api/loyalty-api/update-tier.d.ts +10 -0
  26. package/dist/api/loyalty-api/update-tier.js +12 -0
  27. package/dist/api/order-bonuses-api/available.d.ts +8 -0
  28. package/dist/api/order-bonuses-api/available.js +8 -0
  29. package/dist/api/order-bonuses-api/create.d.ts +9 -0
  30. package/dist/api/order-bonuses-api/create.js +12 -0
  31. package/dist/api/order-bonuses-api/index.d.ts +10 -0
  32. package/dist/api/order-bonuses-api/index.js +11 -0
  33. package/dist/api/order-bonuses-api/remove.d.ts +7 -0
  34. package/dist/api/order-bonuses-api/remove.js +8 -0
  35. package/dist/api/profiles-api/get-sales-board-column.d.ts +14 -0
  36. package/dist/api/profiles-api/get-sales-board-column.js +23 -0
  37. package/dist/api/profiles-api/index.d.ts +2 -0
  38. package/dist/api/profiles-api/index.js +2 -0
  39. package/dist/api/profiles-api/notification-chanel/test.d.ts +3 -1
  40. package/dist/api/slots-api/index.d.ts +2 -0
  41. package/dist/api/slots-api/index.js +2 -0
  42. package/dist/api/slots-api/update-upsellings-range.d.ts +9 -0
  43. package/dist/api/slots-api/update-upsellings-range.js +12 -0
  44. 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';
@@ -42,6 +43,7 @@ import { navigatorCertificateApiDeclaration } from './navigator-certificate-api'
42
43
  import { nowEscapeApiDeclaration } from './now-escape-api';
43
44
  import { openapiWidgetApiDeclaration } from './openapi-widget-api';
44
45
  import { orderCertificateUploadsApiDeclaration } from './order-certificate-uploads-api';
46
+ import { orderBonusesApiDeclaration } from './order-bonuses-api';
45
47
  import { orderCertificatesApiDeclaration } from './order-certificates-api';
46
48
  import { orderDiscountsApiDeclaration } from './order-discounts-api';
47
49
  import { orderEmailsApiDeclaration } from './order-emails-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");
@@ -45,6 +46,7 @@ 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");
47
48
  var order_certificate_uploads_api_1 = require("./order-certificate-uploads-api");
49
+ var order_bonuses_api_1 = require("./order-bonuses-api");
48
50
  var order_certificates_api_1 = require("./order-certificates-api");
49
51
  var order_discounts_api_1 = require("./order-discounts-api");
50
52
  var order_emails_api_1 = require("./order-emails-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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSettings = void 0;
4
+ var getSettings = function () { return ({
5
+ url: '/loyalty',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getSettings = getSettings;
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeTier = void 0;
4
+ var removeTier = function (id) { return ({
5
+ url: "/loyalty/tiers/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeTier = removeTier;
@@ -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
+ import { ApiMethodDeclaration } from '..';
2
+ /** ID заказа */
3
+ type ParamsData = number;
4
+ type ResponseData = {
5
+ available: number;
6
+ };
7
+ export declare const available: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -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 {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.remove = void 0;
4
+ var remove = function (id) { return ({
5
+ url: "/order-bonuses/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.remove = remove;
@@ -0,0 +1,14 @@
1
+ import { ProfileSalesStatus } from '@escapenavigator/types/dist/profile/enum/profile-sales-status.enum';
2
+ import { SalesBoardCardRO } from '@escapenavigator/types/dist/profile/sales-board.ro';
3
+ import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
4
+ import { ApiMethodDeclaration } from '..';
5
+ type ParamsData = {
6
+ salesStatus: ProfileSalesStatus;
7
+ /** Сколько карточек колонки уже показано — с них и продолжаем. */
8
+ offset: number;
9
+ country?: CountriesEnum;
10
+ onlyMy?: boolean;
11
+ };
12
+ type ResponseData = SalesBoardCardRO[];
13
+ export declare const getSalesBoardColumn: ApiMethodDeclaration<ParamsData, ResponseData>;
14
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getSalesBoardColumn = void 0;
15
+ var getSalesBoardColumn = function (_a) {
16
+ var salesStatus = _a.salesStatus, offset = _a.offset, country = _a.country, onlyMy = _a.onlyMy;
17
+ return ({
18
+ url: '/profiles/sales/board/column',
19
+ method: 'GET',
20
+ params: __assign(__assign({ salesStatus: salesStatus, offset: offset }, (country ? { country: country } : {})), (onlyMy ? { onlyMy: true } : {})),
21
+ });
22
+ };
23
+ exports.getSalesBoardColumn = getSalesBoardColumn;
@@ -56,6 +56,7 @@ import { getOnboardingSteps } from './get-onboarding-steps';
56
56
  import { getOne } from './get-one';
57
57
  import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
58
58
  import { getSalesBoard } from './get-sales-board';
59
+ import { getSalesBoardColumn } from './get-sales-board-column';
59
60
  import { cancelMarketingEmailCampaign } from './marketing-email-campaign/cancel-marketing-email-campaign';
60
61
  import { createMarketingEmailCampaign } from './marketing-email-campaign/create-marketing-email-campaign';
61
62
  import { getMarketingEmailCampaign } from './marketing-email-campaign/get-marketing-email-campaign';
@@ -212,6 +213,7 @@ type ApiDeclaration = {
212
213
  getInactiveCompaniesShort: typeof getInactiveCompaniesShort;
213
214
  getProfilesWithoutNextAction: typeof getProfilesWithoutNextAction;
214
215
  getSalesBoard: typeof getSalesBoard;
216
+ getSalesBoardColumn: typeof getSalesBoardColumn;
215
217
  finalizeCurrent: typeof finalizeCurrent;
216
218
  updateCurrent: typeof updateCurrent;
217
219
  updateBookingFields: typeof updateBookingFields;
@@ -59,6 +59,7 @@ var get_onboarding_steps_1 = require("./get-onboarding-steps");
59
59
  var get_one_1 = require("./get-one");
60
60
  var get_profiles_without_next_action_1 = require("./get-profiles-without-next-action");
61
61
  var get_sales_board_1 = require("./get-sales-board");
62
+ var get_sales_board_column_1 = require("./get-sales-board-column");
62
63
  var cancel_marketing_email_campaign_1 = require("./marketing-email-campaign/cancel-marketing-email-campaign");
63
64
  var create_marketing_email_campaign_1 = require("./marketing-email-campaign/create-marketing-email-campaign");
64
65
  var get_marketing_email_campaign_1 = require("./marketing-email-campaign/get-marketing-email-campaign");
@@ -133,6 +134,7 @@ exports.profilesApiDeclaration = {
133
134
  getInactiveCompaniesShort: get_inactive_companies_short_1.getInactiveCompaniesShort,
134
135
  getProfilesWithoutNextAction: get_profiles_without_next_action_1.getProfilesWithoutNextAction,
135
136
  getSalesBoard: get_sales_board_1.getSalesBoard,
137
+ getSalesBoardColumn: get_sales_board_column_1.getSalesBoardColumn,
136
138
  updateNotificationChanel: update_1.updateNotificationChanel,
137
139
  deleteAction: delete_action_1.deleteAction,
138
140
  queryCalls: query_1.queryCalls,
@@ -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
- orderId: number;
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.35",
3
+ "version": "2.0.39",
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": "2c47385d8e152226b70a9b11213eb511b671ad0f",
15
+ "gitHead": "a5a2b7072d29242e6477d13cf07022fca9862b8c",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^2.0.33",
18
- "@escapenavigator/utils": "^2.0.35",
17
+ "@escapenavigator/types": "^2.0.37",
18
+ "@escapenavigator/utils": "^2.0.39",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",