@escapenavigator/services 1.4.35 → 1.4.37

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.
@@ -1,7 +1,8 @@
1
1
  import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
2
+ import { CheckCertificateSaleDto } from '@escapenavigator/types/dist/certificate-sale/check-certificate-sale.dto';
2
3
  import { ApiMethodDeclaration } from '..';
3
4
  /** Code проданого сертификата */
4
- declare type ParamsData = number;
5
+ declare type ParamsData = CheckCertificateSaleDto;
5
6
  declare type ResponseData = CertificateSaleRO;
6
7
  export declare const getOneByCode: ApiMethodDeclaration<ParamsData, ResponseData>;
7
8
  export {};
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOneByCode = void 0;
4
- var getOneByCode = function (code) { return ({
5
- url: "/certificatesales/code/".concat(code),
4
+ var getOneByCode = function (params) { return ({
5
+ url: '/certificatesales/code',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.getOneByCode = getOneByCode;
@@ -1,7 +1,7 @@
1
1
  import { CalendarQueryDto } from '@escapenavigator/types/dist/slot/calendar-query.dto';
2
- import { SlotResponseObject } from '@escapenavigator/types/dist/slot/slot.ro';
2
+ import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = CalendarQueryDto;
5
- declare type ResponseData = SlotResponseObject[];
5
+ declare type ResponseData = SlotRO[];
6
6
  export declare const calendar: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,6 +1,6 @@
1
- import { SlotResponseObject } from '@escapenavigator/types/dist/slot/slot.ro';
1
+ import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = undefined;
4
- declare type ResponseData = SlotResponseObject[];
4
+ declare type ResponseData = SlotRO[];
5
5
  export declare const conflicts: ApiMethodDeclaration<ParamsData, ResponseData>;
6
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { DailyQueryDto } from '@escapenavigator/types/dist/slot/daily-query.dto';
2
- import { SlotResponseObject } from '@escapenavigator/types/dist/slot/slot.ro';
2
+ import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = DailyQueryDto;
5
- declare type ResponseData = SlotResponseObject[];
5
+ declare type ResponseData = SlotRO[];
6
6
  export declare const daily: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,7 +1,7 @@
1
- import { SlotResponseObject } from '@escapenavigator/types/dist/slot/slot.ro';
1
+ import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
2
2
  import { WeeklyQueryDto } from '@escapenavigator/types/dist/slot/weekly-query.dto';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = WeeklyQueryDto;
5
- declare type ResponseData = SlotResponseObject[];
5
+ declare type ResponseData = SlotRO[];
6
6
  export declare const weekly: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,9 +1,9 @@
1
- import { WidgetOpenapiCertificateResponseObject } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-certificate.ro';
1
+ import { WidgetOpenapiCertificateRO } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-certificate.ro';
2
2
  import { WidgetOpenapiCreateCertificateDto } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-create-certificate.dto';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  data: WidgetOpenapiCreateCertificateDto;
6
6
  };
7
- declare type ResponseData = WidgetOpenapiCertificateResponseObject;
7
+ declare type ResponseData = WidgetOpenapiCertificateRO;
8
8
  export declare const createCertificate: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -1,6 +1,7 @@
1
+ import { WidgetOpenapiFindDiscountByCodeDto } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-find-discount-by-code.dto';
1
2
  import { WidgetOpenapiFindedCertificateRO } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-finded-certificate.ro';
2
3
  import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = WidgetOpenapiFindDiscountByCodeDto;
4
5
  declare type ResponseData = WidgetOpenapiFindedCertificateRO;
5
6
  export declare const findCertificate: ApiMethodDeclaration<ParamsData, ResponseData>;
6
7
  export {};
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findCertificate = void 0;
4
- var findCertificate = function (code) { return ({
5
- url: "/widget/openapi/certificate/".concat(code),
4
+ var findCertificate = function (params) { return ({
5
+ url: '/widget/openapi/certificate',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.findCertificate = findCertificate;
@@ -1,9 +1,9 @@
1
1
  import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
2
- import { SlotResponseObject } from '@escapenavigator/types/dist/slot/slot.ro';
2
+ import { SlotRO } from '@escapenavigator/types/dist/slot/slot.ro';
3
3
  declare type Props = {
4
4
  slot: any;
5
5
  order?: OrderRO;
6
6
  };
7
- export declare const serializeSlotOrderData: (order: Props['order']) => SlotResponseObject['order'];
8
- export declare const serializeSlot: ({ slot, order }: Props) => SlotResponseObject;
7
+ export declare const serializeSlotOrderData: (order: Props['order']) => SlotRO['order'];
8
+ export declare const serializeSlot: ({ slot, order }: Props) => SlotRO;
9
9
  export {};
@@ -25,6 +25,8 @@ var serializeSlot = function (_a) {
25
25
  end: slot.end,
26
26
  tariff: (_b = slot.tariff) === null || _b === void 0 ? void 0 : _b.price,
27
27
  breakReason: slot.breakReason,
28
+ prepayment: slot.prepayment,
29
+ prepaymentType: slot.prepaymentType,
28
30
  order: (0, exports.serializeSlotOrderData)(order),
29
31
  });
30
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.35",
3
+ "version": "1.4.37",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,9 +12,9 @@
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && tsc --project tsconfig.json"
14
14
  },
15
- "gitHead": "1f3079cd1d3bd09762fbbfc069a4c0b2773f483e",
15
+ "gitHead": "daf67867a92e2af14627df30d83235879c537802",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.35",
17
+ "@escapenavigator/types": "^1.4.37",
18
18
  "axios": "^0.21.4",
19
19
  "class-transformer": "^0.5.1",
20
20
  "class-validator": "^0.13.1",