@escapenavigator/services 1.10.53 → 1.10.54
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/cashboxes-api/get-square-locations.d.ts +5 -0
- package/dist/api/cashboxes-api/get-square-locations.js +8 -0
- package/dist/api/cashboxes-api/index.d.ts +2 -0
- package/dist/api/cashboxes-api/index.js +2 -0
- package/dist/api/openapi-widget-api/certificates/certificate-square-payment.d.ts +7 -0
- package/dist/api/openapi-widget-api/certificates/certificate-square-payment.js +9 -0
- package/dist/api/openapi-widget-api/index.d.ts +4 -0
- package/dist/api/openapi-widget-api/index.js +4 -0
- package/dist/api/openapi-widget-api/orders/order-payment-square.d.ts +7 -0
- package/dist/api/openapi-widget-api/orders/order-payment-square.js +9 -0
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSquareLocations = void 0;
|
|
4
|
+
var getSquareLocations = function (id) { return ({
|
|
5
|
+
url: "/square/oauth/locations/".concat(id),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getSquareLocations = getSquareLocations;
|
|
@@ -2,6 +2,7 @@ import { create } from './create';
|
|
|
2
2
|
import { createOnline } from './create-online';
|
|
3
3
|
import { createSquare } from './create-square';
|
|
4
4
|
import { getOne } from './get-one';
|
|
5
|
+
import { getSquareLocations } from './get-square-locations';
|
|
5
6
|
import { getVerificationLink } from './get-verification-link';
|
|
6
7
|
import { query } from './query';
|
|
7
8
|
import { remove } from './remove';
|
|
@@ -10,6 +11,7 @@ import { updateOnline } from './update-online';
|
|
|
10
11
|
type ApiDeclaration = {
|
|
11
12
|
update: typeof update;
|
|
12
13
|
createOnline: typeof createOnline;
|
|
14
|
+
getSquareLocations: typeof getSquareLocations;
|
|
13
15
|
createSquare: typeof createSquare;
|
|
14
16
|
getVerificationLink: typeof getVerificationLink;
|
|
15
17
|
getOne: typeof getOne;
|
|
@@ -5,6 +5,7 @@ var create_1 = require("./create");
|
|
|
5
5
|
var create_online_1 = require("./create-online");
|
|
6
6
|
var create_square_1 = require("./create-square");
|
|
7
7
|
var get_one_1 = require("./get-one");
|
|
8
|
+
var get_square_locations_1 = require("./get-square-locations");
|
|
8
9
|
var get_verification_link_1 = require("./get-verification-link");
|
|
9
10
|
var query_1 = require("./query");
|
|
10
11
|
var remove_1 = require("./remove");
|
|
@@ -12,6 +13,7 @@ var update_1 = require("./update");
|
|
|
12
13
|
var update_online_1 = require("./update-online");
|
|
13
14
|
exports.cashboxesApiDeclaration = {
|
|
14
15
|
update: update_1.update,
|
|
16
|
+
getSquareLocations: get_square_locations_1.getSquareLocations,
|
|
15
17
|
createSquare: create_square_1.createSquare,
|
|
16
18
|
createOnline: create_online_1.createOnline,
|
|
17
19
|
create: create_1.create,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiCertificateSaleRO } from '@escapenavigator/types/dist/openapi/certificates/openapi-certificate-sale.ro';
|
|
2
|
+
import { OpenapiCreateCertificatePaymentDto } from '@escapenavigator/types/dist/openapi/certificates/openapi-create-certificate-payment.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCreateCertificatePaymentDto;
|
|
5
|
+
type ResponseData = OpenapiCertificateSaleRO;
|
|
6
|
+
export declare const certificateSquarePayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.certificateSquarePayment = void 0;
|
|
4
|
+
var certificateSquarePayment = function (data) { return ({
|
|
5
|
+
url: '/openapi/certificates/payment/square',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.certificateSquarePayment = certificateSquarePayment;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { addPromocodeToCertificate } from './certificates/add-promocode-to-certificate';
|
|
2
2
|
import { capturePaypalCertificate } from './certificates/capture-paypal-certificate';
|
|
3
3
|
import { certificatePaypalPayment } from './certificates/certificate-paypal-payment';
|
|
4
|
+
import { certificateSquarePayment } from './certificates/certificate-square-payment';
|
|
4
5
|
import { certificateStripePayment } from './certificates/certificate-stripe-payment';
|
|
5
6
|
import { createCertificate } from './certificates/create-certificate';
|
|
6
7
|
import { findCertificate } from './certificates/find-certificate';
|
|
@@ -17,6 +18,7 @@ import { findOrderForOrderService } from './orders/find-order-for-order-service'
|
|
|
17
18
|
import { getOrderAvailableUpsellings } from './orders/get-order-available-upsellings';
|
|
18
19
|
import { getOrderPaymentMethods } from './orders/get-order-payment-methods';
|
|
19
20
|
import { orderPaypalPayment } from './orders/order-payment-paypal';
|
|
21
|
+
import { orderSquarePayment } from './orders/order-payment-square';
|
|
20
22
|
import { orderStripePayment } from './orders/order-payment-stripe';
|
|
21
23
|
import { removePromocodeFromOrder } from './orders/remove-promocode-from-order';
|
|
22
24
|
import { removeUpsellingFromOrder } from './orders/remove-upselling-from-order';
|
|
@@ -31,6 +33,8 @@ import { getBookeoPrice } from './widget/bookeo/get-bookeo-price';
|
|
|
31
33
|
import { getAgregatorWidgetData } from './widget/get-agreagator-widget-data';
|
|
32
34
|
import { getWidgetData } from './widget/get-widget-data';
|
|
33
35
|
type ApiDeclaration = {
|
|
36
|
+
certificateSquarePayment: typeof certificateSquarePayment;
|
|
37
|
+
orderSquarePayment: typeof orderSquarePayment;
|
|
34
38
|
getOrderAvailableUpsellings: typeof getOrderAvailableUpsellings;
|
|
35
39
|
capturePaypalCertificate: typeof capturePaypalCertificate;
|
|
36
40
|
getCertificatePaymentMethods: typeof getCertificatePaymentMethods;
|
|
@@ -4,6 +4,7 @@ exports.openapiWidgetApiDeclaration = void 0;
|
|
|
4
4
|
var add_promocode_to_certificate_1 = require("./certificates/add-promocode-to-certificate");
|
|
5
5
|
var capture_paypal_certificate_1 = require("./certificates/capture-paypal-certificate");
|
|
6
6
|
var certificate_paypal_payment_1 = require("./certificates/certificate-paypal-payment");
|
|
7
|
+
var certificate_square_payment_1 = require("./certificates/certificate-square-payment");
|
|
7
8
|
var certificate_stripe_payment_1 = require("./certificates/certificate-stripe-payment");
|
|
8
9
|
var create_certificate_1 = require("./certificates/create-certificate");
|
|
9
10
|
var find_certificate_1 = require("./certificates/find-certificate");
|
|
@@ -20,6 +21,7 @@ var find_order_for_order_service_1 = require("./orders/find-order-for-order-serv
|
|
|
20
21
|
var get_order_available_upsellings_1 = require("./orders/get-order-available-upsellings");
|
|
21
22
|
var get_order_payment_methods_1 = require("./orders/get-order-payment-methods");
|
|
22
23
|
var order_payment_paypal_1 = require("./orders/order-payment-paypal");
|
|
24
|
+
var order_payment_square_1 = require("./orders/order-payment-square");
|
|
23
25
|
var order_payment_stripe_1 = require("./orders/order-payment-stripe");
|
|
24
26
|
var remove_promocode_from_order_1 = require("./orders/remove-promocode-from-order");
|
|
25
27
|
var remove_upselling_from_order_1 = require("./orders/remove-upselling-from-order");
|
|
@@ -35,6 +37,8 @@ var get_agreagator_widget_data_1 = require("./widget/get-agreagator-widget-data"
|
|
|
35
37
|
var get_widget_data_1 = require("./widget/get-widget-data");
|
|
36
38
|
exports.openapiWidgetApiDeclaration = {
|
|
37
39
|
removePromocodeFromCertificate: remove_certificate_from_order_1.removePromocodeFromCertificate,
|
|
40
|
+
certificateSquarePayment: certificate_square_payment_1.certificateSquarePayment,
|
|
41
|
+
orderSquarePayment: order_payment_square_1.orderSquarePayment,
|
|
38
42
|
addPromocodeToCertificate: add_promocode_to_certificate_1.addPromocodeToCertificate,
|
|
39
43
|
getOrderAvailableUpsellings: get_order_available_upsellings_1.getOrderAvailableUpsellings,
|
|
40
44
|
findOrderForOrderService: find_order_for_order_service_1.findOrderForOrderService,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiCreateOrderPaymentDto } from '@escapenavigator/types/dist/openapi/orders/openapi-create-order-payment.dto';
|
|
2
|
+
import { OpenapiOrderRO } from '@escapenavigator/types/dist/openapi/orders/openapi-order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCreateOrderPaymentDto;
|
|
5
|
+
type ResponseData = OpenapiOrderRO;
|
|
6
|
+
export declare const orderSquarePayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderSquarePayment = void 0;
|
|
4
|
+
var orderSquarePayment = function (data) { return ({
|
|
5
|
+
url: '/openapi/orders/payment/square',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.orderSquarePayment = orderSquarePayment;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.54",
|
|
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": "b9f8675aedb703a75bebe5d879ac093c61b27a96",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.49",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.53",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|