@escapenavigator/services 1.4.30 → 1.4.32
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/certificatesales-api/create.d.ts +2 -2
- package/dist/api/certificatesales-api/get-one-by-code.d.ts +2 -2
- package/dist/api/certificatesales-api/get-one.d.ts +2 -2
- package/dist/api/certificatesales-api/index.d.ts +1 -1
- package/dist/api/certificatesales-api/query.d.ts +2 -2
- package/dist/api/certificatesales-api/resend.d.ts +2 -2
- package/dist/api/certificatesales-api/ship.d.ts +2 -2
- package/dist/api/certificatesales-api/update-delivery-info.d.ts +2 -2
- package/dist/api/certificatesales-api/update-expire-date.d.ts +2 -2
- package/dist/api/certificatesales-api/update-tracking-info.d.ts +2 -2
- package/dist/api/certificatesales-discounts-api/create.d.ts +2 -2
- package/dist/api/certificatesales-discounts-api/remove.d.ts +2 -2
- package/dist/api/clients-api/create-from-widget.d.ts +2 -2
- package/dist/api/clients-api/create.d.ts +2 -2
- package/dist/api/clients-api/get-all.d.ts +2 -2
- package/dist/api/clients-api/get-one.d.ts +2 -2
- package/dist/api/clients-api/query.d.ts +2 -2
- package/dist/api/clients-api/tobble-block.d.ts +2 -2
- package/dist/api/clients-api/update.d.ts +2 -2
- package/dist/api/financeitems-api/query.d.ts +2 -1
- package/dist/api/init-client-api.d.ts +6 -0
- package/dist/api/init-client-api.js +6 -0
- package/dist/api/order-certificates-api/create.d.ts +2 -2
- package/dist/api/order-certificates-api/remove.d.ts +2 -2
- package/dist/api/order-discounts-api/create.d.ts +2 -2
- package/dist/api/order-discounts-api/remove.d.ts +2 -2
- package/dist/api/order-penalties-api/create.d.ts +2 -2
- package/dist/api/order-penalties-api/remove.d.ts +2 -2
- package/dist/api/order-promocodes-api/create.d.ts +9 -0
- package/dist/api/order-promocodes-api/create.js +12 -0
- package/dist/api/order-promocodes-api/index.d.ts +10 -0
- package/dist/api/order-promocodes-api/index.js +11 -0
- package/dist/api/order-promocodes-api/query.d.ts +8 -0
- package/dist/api/order-promocodes-api/query.js +9 -0
- package/dist/api/order-promocodes-api/remove.d.ts +7 -0
- package/dist/api/order-promocodes-api/remove.js +8 -0
- package/dist/api/order-upsellings-api/create.d.ts +2 -2
- package/dist/api/order-upsellings-api/remove.d.ts +2 -2
- package/dist/api/orders-api/cancel.d.ts +2 -2
- package/dist/api/orders-api/create.d.ts +2 -2
- package/dist/api/orders-api/get-one.d.ts +2 -2
- package/dist/api/orders-api/query.d.ts +2 -2
- package/dist/api/orders-api/update-slot.d.ts +2 -2
- package/dist/api/orders-api/update.d.ts +2 -2
- package/dist/api/promocodes-api/create.d.ts +9 -0
- package/dist/api/promocodes-api/create.js +12 -0
- package/dist/api/promocodes-api/get-one.d.ts +6 -0
- package/dist/api/promocodes-api/get-one.js +8 -0
- package/dist/api/promocodes-api/index.d.ts +14 -0
- package/dist/api/promocodes-api/index.js +15 -0
- package/dist/api/promocodes-api/query.d.ts +7 -0
- package/dist/api/promocodes-api/query.js +9 -0
- package/dist/api/promocodes-api/remove.d.ts +7 -0
- package/dist/api/promocodes-api/remove.js +8 -0
- package/dist/api/promocodes-api/update.d.ts +10 -0
- package/dist/api/promocodes-api/update.js +12 -0
- package/dist/api/search-api/global-search.d.ts +7 -0
- package/dist/api/search-api/global-search.js +8 -0
- package/dist/api/search-api/index.d.ts +6 -0
- package/dist/api/search-api/index.js +7 -0
- package/dist/api/transactions-api/create-certificate-payment.d.ts +2 -2
- package/dist/api/transactions-api/create-certificate-refund.d.ts +2 -2
- package/dist/api/transactions-api/create-order-payment.d.ts +2 -2
- package/dist/api/transactions-api/create-order-refund.d.ts +2 -2
- package/dist/api/transactions-api/remove-certificate-payment.d.ts +2 -2
- package/dist/api/transactions-api/remove-certificate-refund.d.ts +2 -2
- package/dist/api/transactions-api/remove-order-payment.d.ts +2 -2
- package/dist/api/transactions-api/remove-order-refund.d.ts +2 -2
- package/dist/utils/serialize-slot.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { CreateCertificatesaleDto } from '@escapenavigator/types/dist/certificate-sale/create-certificatesale.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateCertificatesaleDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = CertificateSaleRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** Code проданого сертификата */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateSaleRO;
|
|
6
6
|
export declare const getOneByCode: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID проданого сертификата */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateSaleRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -7,7 +7,7 @@ import { ship } from './ship';
|
|
|
7
7
|
import { updateDeliveryInfo } from './update-delivery-info';
|
|
8
8
|
import { updateExpireDate } from './update-expire-date';
|
|
9
9
|
import { updateTrackingInfo } from './update-tracking-info';
|
|
10
|
-
export type {
|
|
10
|
+
export type { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
11
11
|
declare type ApiDeclaration = {
|
|
12
12
|
create: typeof create;
|
|
13
13
|
updateDeliveryInfo: typeof updateDeliveryInfo;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
4
|
import { ApiMethodDeclaration } from '..';
|
|
5
5
|
declare type ParamsData = QueryDto;
|
|
6
|
-
declare type ResponseData = QueryRO<
|
|
6
|
+
declare type ResponseData = QueryRO<CertificateSaleRO>;
|
|
7
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = {
|
|
4
4
|
id: number;
|
|
5
5
|
};
|
|
6
|
-
declare type ResponseData =
|
|
6
|
+
declare type ResponseData = CertificateSaleRO;
|
|
7
7
|
export declare const resend: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = {
|
|
4
4
|
id: number;
|
|
5
5
|
};
|
|
6
|
-
declare type ResponseData =
|
|
6
|
+
declare type ResponseData = CertificateSaleRO;
|
|
7
7
|
export declare const ship: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { UpdateCertificatesaleDeliveryInfoDto } from '@escapenavigator/types/dist/certificate-sale/update-certificatesale-delivery-info.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateCertificatesaleDeliveryInfoDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = CertificateSaleRO;
|
|
9
9
|
export declare const updateDeliveryInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { UpdateCertificateSaleExpireDateDto } from '@escapenavigator/types/dist/certificate-sale/update-certificate-sale-expire-date.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateCertificateSaleExpireDateDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = CertificateSaleRO;
|
|
9
9
|
export declare const updateExpireDate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { UpdateCertificatesaleDeliveryInfoDto } from '@escapenavigator/types/dist/certificate-sale/update-certificatesale-delivery-info.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateCertificatesaleDeliveryInfoDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = CertificateSaleRO;
|
|
9
9
|
export declare const updateTrackingInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { CreateCertificatesaleDiscountDto } from '@escapenavigator/types/dist/certificate-sale/create-certificatesale-discount.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateCertificatesaleDiscountDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = CertificateSaleRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID скидки */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateSaleRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
2
|
import { CreateClientFromWidgetDto } from '@escapenavigator/types/dist/client/create-client-from-widget.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateClientFromWidgetDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = ClientRO;
|
|
8
8
|
export declare const createFromWidget: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
2
|
import { CreateClientDto } from '@escapenavigator/types/dist/client/create-client.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateClientDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = ClientRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = ClientRO[];
|
|
5
5
|
export declare const getAll: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID клиента */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = ClientRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
4
|
import { ApiMethodDeclaration } from '..';
|
|
5
5
|
declare type ParamsData = QueryDto;
|
|
6
|
-
declare type ResponseData = QueryRO<
|
|
6
|
+
declare type ResponseData = QueryRO<ClientRO>;
|
|
7
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID клиента */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = ClientRO;
|
|
6
6
|
export declare const toggleBlock: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
2
|
import { UpdateClientDto } from '@escapenavigator/types/dist/client/update-client.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateClientDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = ClientRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FinanceitemResponseObject } from '@escapenavigator/types/dist/financeitem/financeitem.ro';
|
|
2
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
2
3
|
import { ApiMethodDeclaration } from '..';
|
|
3
4
|
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData = FinanceitemResponseObject
|
|
5
|
+
declare type ResponseData = QueryRO<FinanceitemResponseObject>;
|
|
5
6
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
7
|
export {};
|
|
@@ -16,13 +16,16 @@ import { logsApiDeclaration } from './logs-api';
|
|
|
16
16
|
import { orderCertificatesApiDeclaration } from './order-certificates-api';
|
|
17
17
|
import { orderDiscountsApiDeclaration } from './order-discounts-api';
|
|
18
18
|
import { orderPenaltiesApiDeclaration } from './order-penalties-api';
|
|
19
|
+
import { orderPromocodesApiDeclaration } from './order-promocodes-api';
|
|
19
20
|
import { orderUpsellngsApiDeclaration } from './order-upsellings-api';
|
|
20
21
|
import { ordersApiDeclaration } from './orders-api';
|
|
21
22
|
import { partnersApiDeclaration } from './partners-api';
|
|
22
23
|
import { profilesApiDeclaration } from './profiles-api';
|
|
24
|
+
import { promocodesApiDeclaration } from './promocodes-api';
|
|
23
25
|
import { questroomsApiDeclaration } from './questrooms-api';
|
|
24
26
|
import { registrationRequestsApiDeclaration } from './registration-requests-api';
|
|
25
27
|
import { rolesApiDeclaration } from './roles-api';
|
|
28
|
+
import { searchApiDeclaration } from './search-api';
|
|
26
29
|
import { slotTemplatesApiDeclaration } from './slot-templates-api';
|
|
27
30
|
import { slotsApiDeclaration } from './slots-api';
|
|
28
31
|
import { subscriptionApiDeclaration } from './subscription-api';
|
|
@@ -37,6 +40,9 @@ import { widgetsApiDeclaration } from './widgets-api';
|
|
|
37
40
|
import { widgetsOpenApiDeclaration } from './widgets-openapi';
|
|
38
41
|
import { Api } from '.';
|
|
39
42
|
export declare type InitApiDeclaration = {
|
|
43
|
+
searchApi: Api<typeof searchApiDeclaration>;
|
|
44
|
+
promocodes: Api<typeof promocodesApiDeclaration>;
|
|
45
|
+
orderPromocodes: Api<typeof orderPromocodesApiDeclaration>;
|
|
40
46
|
cities: Api<typeof citiesApiDeclaration>;
|
|
41
47
|
orderCertificates: Api<typeof orderCertificatesApiDeclaration>;
|
|
42
48
|
certificatesaleDiscounts: Api<typeof certificatesaleDiscountsApiDeclaration>;
|
|
@@ -19,13 +19,16 @@ var logs_api_1 = require("./logs-api");
|
|
|
19
19
|
var order_certificates_api_1 = require("./order-certificates-api");
|
|
20
20
|
var order_discounts_api_1 = require("./order-discounts-api");
|
|
21
21
|
var order_penalties_api_1 = require("./order-penalties-api");
|
|
22
|
+
var order_promocodes_api_1 = require("./order-promocodes-api");
|
|
22
23
|
var order_upsellings_api_1 = require("./order-upsellings-api");
|
|
23
24
|
var orders_api_1 = require("./orders-api");
|
|
24
25
|
var partners_api_1 = require("./partners-api");
|
|
25
26
|
var profiles_api_1 = require("./profiles-api");
|
|
27
|
+
var promocodes_api_1 = require("./promocodes-api");
|
|
26
28
|
var questrooms_api_1 = require("./questrooms-api");
|
|
27
29
|
var registration_requests_api_1 = require("./registration-requests-api");
|
|
28
30
|
var roles_api_1 = require("./roles-api");
|
|
31
|
+
var search_api_1 = require("./search-api");
|
|
29
32
|
var slot_templates_api_1 = require("./slot-templates-api");
|
|
30
33
|
var slots_api_1 = require("./slots-api");
|
|
31
34
|
var subscription_api_1 = require("./subscription-api");
|
|
@@ -40,6 +43,9 @@ var widgets_api_1 = require("./widgets-api");
|
|
|
40
43
|
var widgets_openapi_1 = require("./widgets-openapi");
|
|
41
44
|
var _1 = require(".");
|
|
42
45
|
var initClientApi = function (url) { return ({
|
|
46
|
+
searchApi: (0, _1.initApi)(search_api_1.searchApiDeclaration, url),
|
|
47
|
+
promocodes: (0, _1.initApi)(promocodes_api_1.promocodesApiDeclaration, url),
|
|
48
|
+
orderPromocodes: (0, _1.initApi)(order_promocodes_api_1.orderPromocodesApiDeclaration, url),
|
|
43
49
|
cities: (0, _1.initApi)(cities_api_1.citiesApiDeclaration, url),
|
|
44
50
|
orderCertificates: (0, _1.initApi)(order_certificates_api_1.orderCertificatesApiDeclaration, url),
|
|
45
51
|
certificatesaleDiscounts: (0, _1.initApi)(certificatesales_discounts_api_1.certificatesaleDiscountsApiDeclaration, url),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderCertificateDto } from '@escapenavigator/types/dist/order-certificate/create-order-certificate.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderCertificateDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID скидки */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderDiscountDto } from '@escapenavigator/types/dist/order-discount/create-order-discount.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderDiscountDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID скидки */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderPenaltyDto } from '@escapenavigator/types/dist/order-penalty/create-order-penalty.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderPenaltyDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID штрафа */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateOrderPromocodeDto } from '@escapenavigator/types/dist/order-promocode/create-order-promocode.dto';
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateOrderPromocodeDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
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-promocodes',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { query } from './query';
|
|
3
|
+
import { remove } from './remove';
|
|
4
|
+
declare type ApiDeclaration = {
|
|
5
|
+
create: typeof create;
|
|
6
|
+
remove: typeof remove;
|
|
7
|
+
query: typeof query;
|
|
8
|
+
};
|
|
9
|
+
export declare const orderPromocodesApiDeclaration: ApiDeclaration;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderPromocodesApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var query_1 = require("./query");
|
|
6
|
+
var remove_1 = require("./remove");
|
|
7
|
+
exports.orderPromocodesApiDeclaration = {
|
|
8
|
+
create: create_1.create,
|
|
9
|
+
remove: remove_1.remove,
|
|
10
|
+
query: query_1.query,
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderPromocodeRO } from '@escapenavigator/types/dist/order-promocode/order-promocode.ro';
|
|
2
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
declare type ParamsData = QueryDto;
|
|
6
|
+
declare type ResponseData = QueryRO<OrderPromocodeRO>;
|
|
7
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID допродажи */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderUpsellingDto } from '@escapenavigator/types/dist/order-upselling/create-order-upselling.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderUpsellingDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID допродажи */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = number;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = OrderRO;
|
|
5
5
|
export declare const cancel: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderDto } from '@escapenavigator/types/dist/order/create-order.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID ордера */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
4
|
import { ApiMethodDeclaration } from '..';
|
|
5
5
|
declare type ParamsData = QueryDto;
|
|
6
|
-
declare type ResponseData = QueryRO<
|
|
6
|
+
declare type ResponseData = QueryRO<OrderRO>;
|
|
7
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { UpdateOrderSlotDto } from '@escapenavigator/types/dist/order/update-order-slot.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: UpdateOrderSlotDto;
|
|
6
6
|
id: number;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = OrderRO;
|
|
9
9
|
export declare const updateSlot: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { UpdateOrderDto } from '@escapenavigator/types/dist/order/update-order.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: UpdateOrderDto;
|
|
6
6
|
id: number;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = OrderRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreatePromocodeDto } from '@escapenavigator/types/dist/promocode/create-promocode.dto';
|
|
2
|
+
import { PromocodeRO } from '@escapenavigator/types/dist/promocode/promocode.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreatePromocodeDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = PromocodeRO;
|
|
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: '/promocodes',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PromocodeRO } from '@escapenavigator/types/dist/promocode/promocode.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = PromocodeRO;
|
|
5
|
+
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { getOne } from './get-one';
|
|
3
|
+
import { query } from './query';
|
|
4
|
+
import { remove } from './remove';
|
|
5
|
+
import { update } from './update';
|
|
6
|
+
declare type ApiDeclaration = {
|
|
7
|
+
getOne: typeof getOne;
|
|
8
|
+
create: typeof create;
|
|
9
|
+
remove: typeof remove;
|
|
10
|
+
query: typeof query;
|
|
11
|
+
update: typeof update;
|
|
12
|
+
};
|
|
13
|
+
export declare const promocodesApiDeclaration: ApiDeclaration;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.promocodesApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_one_1 = require("./get-one");
|
|
6
|
+
var query_1 = require("./query");
|
|
7
|
+
var remove_1 = require("./remove");
|
|
8
|
+
var update_1 = require("./update");
|
|
9
|
+
exports.promocodesApiDeclaration = {
|
|
10
|
+
create: create_1.create,
|
|
11
|
+
remove: remove_1.remove,
|
|
12
|
+
query: query_1.query,
|
|
13
|
+
getOne: get_one_1.getOne,
|
|
14
|
+
update: update_1.update,
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PromocodeRO } from '@escapenavigator/types/dist/promocode/promocode.ro';
|
|
2
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = undefined;
|
|
5
|
+
declare type ResponseData = QueryRO<PromocodeRO>;
|
|
6
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PromocodeRO } from '@escapenavigator/types/dist/promocode/promocode.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID кассы */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = PromocodeRO;
|
|
6
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UpdateCashboxDto } from '@escapenavigator/types/dist/cashbox/update-cashbox.dto';
|
|
2
|
+
import { PromocodeRO } from '@escapenavigator/types/dist/promocode/promocode.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateCashboxDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = PromocodeRO;
|
|
9
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/promocodes/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SearchRO } from '@escapenavigator/types/dist/search/search.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** Поиск по названию организации и контактному телефону */
|
|
4
|
+
declare type ParamsData = string;
|
|
5
|
+
declare type ResponseData = SearchRO;
|
|
6
|
+
export declare const globalSearch: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateCertificateSalePaymentDto } from '@escapenavigator/types/dist/transaction/create-certificate-sale-payment.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { CertificateSaleRO } from '../certificatesales-api';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateCertificateSalePaymentDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = CertificateSaleRO;
|
|
8
8
|
export declare const createCertificatePayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateCertificateSaleRefundDto } from '@escapenavigator/types/dist/transaction/create-certificate-sale-refund.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { CertificateSaleRO } from '../certificatesales-api';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateCertificateSaleRefundDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = CertificateSaleRO;
|
|
8
8
|
export declare const createCertificateRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/transaction/create-order-payment.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderPaymentDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const createOrderPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { CreateOrderRefundDto } from '@escapenavigator/types/dist/transaction/create-order-refund.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderRefundDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const createOrderRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID транзакции */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateSaleRO;
|
|
6
6
|
export declare const removeCertificatePayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateSaleRO } from '@escapenavigator/types/dist/certificate-sale/certificate-sale.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID транзакции */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateSaleRO;
|
|
6
6
|
export declare const removeCertificateRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID транзакции */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
6
|
export declare const removeOrderPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID транзакции */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = OrderRO;
|
|
6
6
|
export declare const removeOrderRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
2
|
import { SlotResponseObject } from '@escapenavigator/types/dist/slot/slot.ro';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
slot: any;
|
|
5
|
-
order?:
|
|
5
|
+
order?: OrderRO;
|
|
6
6
|
};
|
|
7
7
|
export declare const serializeSlotOrderData: (order: Props['order']) => SlotResponseObject['order'];
|
|
8
8
|
export declare const serializeSlot: ({ slot, order }: Props) => SlotResponseObject;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.32",
|
|
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": "
|
|
15
|
+
"gitHead": "07087235f7ae8a3d7cd30a3fe50d76b6d53f463e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.32",
|
|
18
18
|
"axios": "^0.21.4",
|
|
19
19
|
"class-transformer": "^0.5.1",
|
|
20
20
|
"class-validator": "^0.13.1",
|