@escapenavigator/services 1.10.167 → 1.10.168

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.
@@ -0,0 +1,13 @@
1
+ import { ProfileEmailPreviewRO } from '@escapenavigator/types/dist/profile/email/profile-email-preview.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = {
4
+ profileEmailId: number;
5
+ };
6
+ type ResponseData = ProfileEmailPreviewRO;
7
+ /**
8
+ * Готовый HTML отправленного письма для модалки просмотра. Бэк рендерит
9
+ * и v1 (alfa-mailer `/render`), и v2 (локальный maily-рендер), поэтому
10
+ * фронту больше не нужно знать про версию payload'а.
11
+ */
12
+ export declare const previewCustomerEmail: ApiMethodDeclaration<ParamsData, ResponseData>;
13
+ export {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.previewCustomerEmail = void 0;
4
+ /**
5
+ * Готовый HTML отправленного письма для модалки просмотра. Бэк рендерит
6
+ * и v1 (alfa-mailer `/render`), и v2 (локальный maily-рендер), поэтому
7
+ * фронту больше не нужно знать про версию payload'а.
8
+ */
9
+ var previewCustomerEmail = function (_a) {
10
+ var profileEmailId = _a.profileEmailId;
11
+ return ({
12
+ url: "/profile-emails/".concat(profileEmailId, "/preview"),
13
+ method: 'GET',
14
+ });
15
+ };
16
+ exports.previewCustomerEmail = previewCustomerEmail;
@@ -34,6 +34,7 @@ import { updateCurrent } from './current/update-current';
34
34
  import { updateGa } from './current/update-ga';
35
35
  import { getAllCustomersEmail } from './email/get-all-customer-emails';
36
36
  import { getCustomerEmail } from './email/get-customer-email';
37
+ import { previewCustomerEmail } from './email/preview-customer-email';
37
38
  import { getProfileEmailsSummary } from './email/get-profile-emails-summary';
38
39
  import { queryCampaigns } from './email/query-campaigns';
39
40
  import { queryProfileEmails } from './email/query-profile-emails';
@@ -140,6 +141,7 @@ type ApiDeclaration = {
140
141
  getAllCustomersEmail: typeof getAllCustomersEmail;
141
142
  getProfileEmailsSummary: typeof getProfileEmailsSummary;
142
143
  getCustomerEmail: typeof getCustomerEmail;
144
+ previewCustomerEmail: typeof previewCustomerEmail;
143
145
  queryProfileEmails: typeof queryProfileEmails;
144
146
  resendProfileEmail: typeof resendProfileEmail;
145
147
  testEmail: typeof testEmail;
@@ -37,6 +37,7 @@ var update_current_1 = require("./current/update-current");
37
37
  var update_ga_1 = require("./current/update-ga");
38
38
  var get_all_customer_emails_1 = require("./email/get-all-customer-emails");
39
39
  var get_customer_email_1 = require("./email/get-customer-email");
40
+ var preview_customer_email_1 = require("./email/preview-customer-email");
40
41
  var get_profile_emails_summary_1 = require("./email/get-profile-emails-summary");
41
42
  var query_campaigns_1 = require("./email/query-campaigns");
42
43
  var query_profile_emails_1 = require("./email/query-profile-emails");
@@ -164,6 +165,7 @@ exports.profilesApiDeclaration = {
164
165
  getAllCustomersEmail: get_all_customer_emails_1.getAllCustomersEmail,
165
166
  getProfileEmailsSummary: get_profile_emails_summary_1.getProfileEmailsSummary,
166
167
  getCustomerEmail: get_customer_email_1.getCustomerEmail,
168
+ previewCustomerEmail: preview_customer_email_1.previewCustomerEmail,
167
169
  queryProfileEmails: query_profile_emails_1.queryProfileEmails,
168
170
  resendProfileEmail: resend_profile_email_1.resendProfileEmail,
169
171
  queryProfileWaivers: query_profile_waivers_1.queryProfileWaivers,
@@ -1,4 +1,5 @@
1
1
  import { certificatesReport } from './certificates-report';
2
+ import { occupancyReport } from './occupancy-report';
2
3
  import { ordersReport } from './orders-report';
3
4
  import { promocodesReport } from './promocodes-report';
4
5
  import { revenue } from './revenue';
@@ -7,6 +8,7 @@ type ApiDeclaration = {
7
8
  revenue: typeof revenue;
8
9
  certificatesReport: typeof certificatesReport;
9
10
  promocodesReport: typeof promocodesReport;
11
+ occupancyReport: typeof occupancyReport;
10
12
  };
11
13
  export declare const statisticsApiDeclaration: ApiDeclaration;
12
14
  export {};
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.statisticsApiDeclaration = void 0;
4
4
  var certificates_report_1 = require("./certificates-report");
5
+ var occupancy_report_1 = require("./occupancy-report");
5
6
  var orders_report_1 = require("./orders-report");
6
7
  var promocodes_report_1 = require("./promocodes-report");
7
8
  var revenue_1 = require("./revenue");
@@ -10,4 +11,5 @@ exports.statisticsApiDeclaration = {
10
11
  ordersReport: orders_report_1.ordersReport,
11
12
  certificatesReport: certificates_report_1.certificatesReport,
12
13
  promocodesReport: promocodes_report_1.promocodesReport,
14
+ occupancyReport: occupancy_report_1.occupancyReport,
13
15
  };
@@ -0,0 +1,9 @@
1
+ import { OccupancyReportRO } from '@escapenavigator/types/dist/statistics/occupancy';
2
+ import { DashboardQueryDto } from '@escapenavigator/types/dist/statistics/pnl';
3
+ import { ApiMethodDeclaration } from '..';
4
+ type ParamsData = {
5
+ data: DashboardQueryDto;
6
+ };
7
+ type ResponseData = OccupancyReportRO;
8
+ export declare const occupancyReport: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.occupancyReport = void 0;
4
+ var occupancyReport = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/statistics/occupancy',
8
+ method: 'GET',
9
+ params: data,
10
+ });
11
+ };
12
+ exports.occupancyReport = occupancyReport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.10.167",
3
+ "version": "1.10.168",
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": "bbcd0d556a8f3a489d140cdc967af0ef83beb3c8",
15
+ "gitHead": "26ffcdce197011e09b3678d0606fe07d57958230",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.10.153",
18
- "@escapenavigator/utils": "^1.10.160",
17
+ "@escapenavigator/types": "^1.10.154",
18
+ "@escapenavigator/utils": "^1.10.161",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",