@escapenavigator/services 1.10.116 → 1.10.130

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,7 @@
1
+ import { AgbRO } from '@escapenavigator/types/dist/agb/agb.ro';
2
+ import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
3
+ import { ApiMethodDeclaration } from '..';
4
+ type ParamsData = CountriesEnum;
5
+ type ResponseData = AgbRO;
6
+ export declare const getTemplate: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTemplate = void 0;
4
+ var getTemplate = function (country) { return ({
5
+ url: "/agbs/template/".concat(country),
6
+ method: 'GET',
7
+ }); };
8
+ exports.getTemplate = getTemplate;
@@ -2,6 +2,7 @@ import { create } from './create';
2
2
  import { getAll } from './get-all';
3
3
  import { getForOrderService } from './get-for-order-service';
4
4
  import { getOne } from './get-one';
5
+ import { getTemplate } from './get-template';
5
6
  import { remove } from './remove';
6
7
  import { update } from './update';
7
8
  type ApiDeclaration = {
@@ -10,6 +11,7 @@ type ApiDeclaration = {
10
11
  getAll: typeof getAll;
11
12
  getOne: typeof getOne;
12
13
  getForOrderService: typeof getForOrderService;
14
+ getTemplate: typeof getTemplate;
13
15
  update: typeof update;
14
16
  };
15
17
  export declare const agbApiDeclaration: ApiDeclaration;
@@ -5,6 +5,7 @@ var create_1 = require("./create");
5
5
  var get_all_1 = require("./get-all");
6
6
  var get_for_order_service_1 = require("./get-for-order-service");
7
7
  var get_one_1 = require("./get-one");
8
+ var get_template_1 = require("./get-template");
8
9
  var remove_1 = require("./remove");
9
10
  var update_1 = require("./update");
10
11
  exports.agbApiDeclaration = {
@@ -13,5 +14,6 @@ exports.agbApiDeclaration = {
13
14
  getAll: get_all_1.getAll,
14
15
  getOne: get_one_1.getOne,
15
16
  getForOrderService: get_for_order_service_1.getForOrderService,
17
+ getTemplate: get_template_1.getTemplate,
16
18
  update: update_1.update,
17
19
  };
@@ -16,6 +16,7 @@ import { findCertificate } from './certificates/find-certificate';
16
16
  import { getCertificatePaymentMethods } from './certificates/get-certificate-payment-methods';
17
17
  import { removePromocodeFromCertificate } from './certificates/remove-certificate-from-order';
18
18
  import { createBookeoOrder, createMyerpOrder, getBookeoPrice, getMyerpPrice } from './external';
19
+ import { batchCreateOrderGroup } from './order-groups/batch-create-order-group';
19
20
  import { capturePaypalOrderGroup } from './order-groups/capture-paypal-order-group';
20
21
  import { findOrderGroup } from './order-groups/find-order-group';
21
22
  import { getOrderGroupPaymentMethods } from './order-groups/get-order-group-payment-methods';
@@ -37,6 +38,7 @@ import { getOrderPaymentMethods } from './orders/get-order-payment-methods';
37
38
  import { orderPaypalPayment } from './orders/order-payment-paypal';
38
39
  import { orderSquarePayment } from './orders/order-payment-square';
39
40
  import { orderStripePayment } from './orders/order-payment-stripe';
41
+ import { removePreorder } from './orders/remove-preorder';
40
42
  import { removePromocodeFromOrder } from './orders/remove-promocode-from-order';
41
43
  import { removeUpsellingFromOrder } from './orders/remove-upselling-from-order';
42
44
  import { updateOrder } from './orders/update-order';
@@ -84,6 +86,7 @@ type ApiDeclaration = {
84
86
  confirmWithoutPayment: typeof confirmWithoutPayment;
85
87
  confirmWithoutPaymentMany: typeof confirmWithoutPaymentMany;
86
88
  createPreorder: typeof createPreorder;
89
+ removePreorder: typeof removePreorder;
87
90
  findOrder: typeof findOrder;
88
91
  removePromocodeFromOrder: typeof removePromocodeFromOrder;
89
92
  findOrderForOrderService: typeof findOrderForOrderService;
@@ -110,6 +113,7 @@ type ApiDeclaration = {
110
113
  orderGroupSquarePayment: typeof orderGroupSquarePayment;
111
114
  orderGroupConfirmWithoutPayment: typeof orderGroupConfirmWithoutPayment;
112
115
  capturePaypalOrderGroup: typeof capturePaypalOrderGroup;
116
+ batchCreateOrderGroup: typeof batchCreateOrderGroup;
113
117
  };
114
118
  export declare const openapiWidgetApiDeclaration: ApiDeclaration;
115
119
  export {};
@@ -19,6 +19,7 @@ var find_certificate_1 = require("./certificates/find-certificate");
19
19
  var get_certificate_payment_methods_1 = require("./certificates/get-certificate-payment-methods");
20
20
  var remove_certificate_from_order_1 = require("./certificates/remove-certificate-from-order");
21
21
  var external_1 = require("./external");
22
+ var batch_create_order_group_1 = require("./order-groups/batch-create-order-group");
22
23
  var capture_paypal_order_group_1 = require("./order-groups/capture-paypal-order-group");
23
24
  var find_order_group_1 = require("./order-groups/find-order-group");
24
25
  var get_order_group_payment_methods_1 = require("./order-groups/get-order-group-payment-methods");
@@ -40,6 +41,7 @@ var get_order_payment_methods_1 = require("./orders/get-order-payment-methods");
40
41
  var order_payment_paypal_1 = require("./orders/order-payment-paypal");
41
42
  var order_payment_square_1 = require("./orders/order-payment-square");
42
43
  var order_payment_stripe_1 = require("./orders/order-payment-stripe");
44
+ var remove_preorder_1 = require("./orders/remove-preorder");
43
45
  var remove_promocode_from_order_1 = require("./orders/remove-promocode-from-order");
44
46
  var remove_upselling_from_order_1 = require("./orders/remove-upselling-from-order");
45
47
  var update_order_1 = require("./orders/update-order");
@@ -90,6 +92,7 @@ exports.openapiWidgetApiDeclaration = {
90
92
  confirmWithoutPayment: continue_order_without_payment_1.confirmWithoutPayment,
91
93
  confirmWithoutPaymentMany: continue_orders_without_payment_1.confirmWithoutPaymentMany,
92
94
  createPreorder: create_preorder_1.createPreorder,
95
+ removePreorder: remove_preorder_1.removePreorder,
93
96
  findOrder: find_order_1.findOrder,
94
97
  removePromocodeFromOrder: remove_promocode_from_order_1.removePromocodeFromOrder,
95
98
  updateOrder: update_order_1.updateOrder,
@@ -113,4 +116,5 @@ exports.openapiWidgetApiDeclaration = {
113
116
  orderGroupSquarePayment: order_group_payment_square_1.orderGroupSquarePayment,
114
117
  orderGroupConfirmWithoutPayment: order_group_confirm_without_payment_1.orderGroupConfirmWithoutPayment,
115
118
  capturePaypalOrderGroup: capture_paypal_order_group_1.capturePaypalOrderGroup,
119
+ batchCreateOrderGroup: batch_create_order_group_1.batchCreateOrderGroup,
116
120
  };
@@ -0,0 +1,7 @@
1
+ import { OpenapiBatchCreatePreorderDto } from '@escapenavigator/types/dist/openapi/order-groups/openapi-batch-create-preorder.dto';
2
+ import { OpenapiOrderGroupRO } from '@escapenavigator/types/dist/openapi/order-groups/openapi-order-group.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = OpenapiBatchCreatePreorderDto;
5
+ type ResponseData = OpenapiOrderGroupRO;
6
+ export declare const batchCreateOrderGroup: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batchCreateOrderGroup = void 0;
4
+ var batchCreateOrderGroup = function (data) { return ({
5
+ url: '/openapi/order-groups/batch-create',
6
+ method: 'POST',
7
+ data: data,
8
+ }); };
9
+ exports.batchCreateOrderGroup = batchCreateOrderGroup;
@@ -0,0 +1,7 @@
1
+ import { OpenapiGetOrderDTO } from '@escapenavigator/types/dist/openapi/orders/openapi-get-order.dto';
2
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ type ParamsData = OpenapiGetOrderDTO;
5
+ type ResponseData = SuccessRO;
6
+ export declare const removePreorder: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removePreorder = void 0;
4
+ var removePreorder = function (params) { return ({
5
+ url: '/openapi/orders/preorder',
6
+ method: 'DELETE',
7
+ params: params,
8
+ }); };
9
+ exports.removePreorder = removePreorder;
@@ -0,0 +1,8 @@
1
+ import { AdminProfileAgbRO } from '@escapenavigator/types/dist/profile/agb/admin-profile-agb.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
+ type ParamsData = QueryDto;
6
+ type ResponseData = QueryRO<AdminProfileAgbRO>;
7
+ export declare const getAllProfileAgbsForAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllProfileAgbsForAdmin = void 0;
4
+ var getAllProfileAgbsForAdmin = function (params) { return ({
5
+ url: '/profile/agb/admin/list',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.getAllProfileAgbsForAdmin = getAllProfileAgbsForAdmin;
@@ -0,0 +1,6 @@
1
+ import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/agb/profile-agb.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ type ParamsData = string;
4
+ type ResponseData = ProfileAgbRO;
5
+ export declare const getProfileAgbBySlugForOrderService: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProfileAgbBySlugForOrderService = void 0;
4
+ var getProfileAgbBySlugForOrderService = function (slug) { return ({
5
+ url: "/profile/agb/by-slug/".concat(slug),
6
+ method: 'GET',
7
+ }); };
8
+ exports.getProfileAgbBySlugForOrderService = getProfileAgbBySlugForOrderService;
@@ -4,7 +4,9 @@ import { queryActions } from './actions/query-actions';
4
4
  import { updateAction } from './actions/update-action';
5
5
  import { createActivity } from './activity/create';
6
6
  import { queryActivity } from './activity/query-activity';
7
+ import { getAllProfileAgbsForAdmin } from './agb/get-all-profile-agbs-for-admin';
7
8
  import { getProfileAgb } from './agb/get-profile-agb';
9
+ import { getProfileAgbBySlugForOrderService } from './agb/get-profile-agb-by-slug-for-order-service';
8
10
  import { getProfileAgbForOrderService } from './agb/get-profile-agb-for-order-service';
9
11
  import { updateProfileAgb } from './agb/update-profile-agb';
10
12
  import { createApiKey } from './api-keys/create-api-key';
@@ -176,6 +178,8 @@ type ApiDeclaration = {
176
178
  getBookeoOrders: typeof getBookeoOrders;
177
179
  getProfileAgb: typeof getProfileAgb;
178
180
  getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
181
+ getProfileAgbBySlugForOrderService: typeof getProfileAgbBySlugForOrderService;
182
+ getAllProfileAgbsForAdmin: typeof getAllProfileAgbsForAdmin;
179
183
  updateProfileAgb: typeof updateProfileAgb;
180
184
  queryProfileWaivers: typeof queryProfileWaivers;
181
185
  getProfileWaiver: typeof getProfileWaiver;
@@ -7,7 +7,9 @@ var query_actions_1 = require("./actions/query-actions");
7
7
  var update_action_1 = require("./actions/update-action");
8
8
  var create_1 = require("./activity/create");
9
9
  var query_activity_1 = require("./activity/query-activity");
10
+ var get_all_profile_agbs_for_admin_1 = require("./agb/get-all-profile-agbs-for-admin");
10
11
  var get_profile_agb_1 = require("./agb/get-profile-agb");
12
+ var get_profile_agb_by_slug_for_order_service_1 = require("./agb/get-profile-agb-by-slug-for-order-service");
11
13
  var get_profile_agb_for_order_service_1 = require("./agb/get-profile-agb-for-order-service");
12
14
  var update_profile_agb_1 = require("./agb/update-profile-agb");
13
15
  var create_api_key_1 = require("./api-keys/create-api-key");
@@ -211,6 +213,8 @@ exports.profilesApiDeclaration = {
211
213
  getAllCrm: get_all_crm_1.getAllCrm,
212
214
  createOtherCrm: create_other_crm_1.createOtherCrm,
213
215
  getProfileAgbForOrderService: get_profile_agb_for_order_service_1.getProfileAgbForOrderService,
216
+ getProfileAgbBySlugForOrderService: get_profile_agb_by_slug_for_order_service_1.getProfileAgbBySlugForOrderService,
217
+ getAllProfileAgbsForAdmin: get_all_profile_agbs_for_admin_1.getAllProfileAgbsForAdmin,
214
218
  getProfileAgb: get_profile_agb_1.getProfileAgb,
215
219
  updateProfileAgb: update_profile_agb_1.updateProfileAgb,
216
220
  updateSubscription: update_subscription_1.updateSubscription,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.10.116",
3
+ "version": "1.10.130",
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": "a01481bc86de3662a353e0a62c1c03ebe5b4a5a8",
15
+ "gitHead": "08150aaaf12ad8d0f89a2bea4a8282e5fd938171",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.10.107",
18
- "@escapenavigator/utils": "^1.10.111",
17
+ "@escapenavigator/types": "^1.10.121",
18
+ "@escapenavigator/utils": "^1.10.125",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",