@escapenavigator/services 1.10.110 → 1.10.111
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/{openapi-widget-api → agregator-api}/certificates/capture-paypal-navigator-certificate.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/check-navigator-certificate-by-code.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/create-navigator-certificate.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/find-navigator-certificate.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-payment-methods.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-templates.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-paypal-payment.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-square-payment.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-stripe-payment.js +1 -1
- package/dist/api/agregator-api/index.d.ts +20 -0
- package/dist/api/agregator-api/index.js +20 -0
- package/dist/api/{profiles-api → agregator-api/questrooms}/register-questroom-visit.d.ts +1 -1
- package/dist/api/{profiles-api → agregator-api/questrooms}/register-questroom-visit.js +1 -1
- package/dist/api/cashboxes-api/query.d.ts +3 -1
- package/dist/api/cashboxes-api/query.js +2 -1
- package/dist/api/certificates-api/query.d.ts +3 -1
- package/dist/api/certificates-api/query.js +2 -1
- package/dist/api/index.js +12 -2
- package/dist/api/init-client-api.d.ts +0 -2
- package/dist/api/init-client-api.js +0 -2
- package/dist/api/locations-api/query.d.ts +3 -1
- package/dist/api/openapi-widget-api/certificates/find-certificate.js +1 -1
- package/dist/api/openapi-widget-api/index.d.ts +10 -8
- package/dist/api/openapi-widget-api/index.js +10 -8
- package/dist/api/openapi-widget-api/orders/find-order-for-order-service.js +1 -1
- package/dist/api/openapi-widget-api/orders/find-order.js +1 -1
- package/dist/api/openapi-widget-api/slots/slot-details.d.ts +7 -0
- package/dist/api/openapi-widget-api/slots/slot-details.js +23 -0
- package/dist/api/openapi-widget-api/slots/slots-for-day.d.ts +4 -1
- package/dist/api/openapi-widget-api/slots/slots-for-week.d.ts +4 -1
- package/dist/api/profiles-api/index.d.ts +18 -12
- package/dist/api/profiles-api/index.js +26 -20
- package/dist/api/profiles-api/notification-chanel/get-client-notofocations.d.ts +1 -1
- package/dist/api/profiles-api/profile-sms/get-sms-settings.d.ts +4 -0
- package/dist/api/profiles-api/profile-sms/get-sms-settings.js +9 -0
- package/dist/api/profiles-api/profile-sms/query-order-sms-logs.d.ts +12 -0
- package/dist/api/profiles-api/profile-sms/query-order-sms-logs.js +12 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-email.d.ts +9 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-email.js +12 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-sms.d.ts +9 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-sms.js +12 -0
- package/dist/api/profiles-api/profile-sms/update-sms-settings.d.ts +8 -0
- package/dist/api/{slot-room-templates-api/update.js → profiles-api/profile-sms/update-sms-settings.js} +4 -4
- package/dist/api/profiles-api/waiver/create-profile-waiver.d.ts +9 -0
- package/dist/api/profiles-api/{rooms/create.js → waiver/create-profile-waiver.js} +4 -4
- package/dist/api/profiles-api/waiver/get-profile-waiver-for-order-service.d.ts +4 -1
- package/dist/api/profiles-api/waiver/get-profile-waiver-for-order-service.js +10 -4
- package/dist/api/profiles-api/waiver/query-profile-waivers.d.ts +6 -0
- package/dist/api/profiles-api/waiver/query-profile-waivers.js +8 -0
- package/dist/api/profiles-api/waiver/remove-profile-waiver-by-id.d.ts +6 -0
- package/dist/api/profiles-api/waiver/remove-profile-waiver-by-id.js +10 -0
- package/dist/api/profiles-api/waiver/update-profile-waiver-by-id.d.ts +10 -0
- package/dist/api/profiles-api/waiver/update-profile-waiver-by-id.js +12 -0
- package/dist/api/questrooms-api/query.d.ts +3 -1
- package/dist/api/roles-api/query.d.ts +3 -1
- package/dist/api/slots-api/index.d.ts +2 -0
- package/dist/api/slots-api/index.js +2 -0
- package/dist/api/slots-api/slot-details.d.ts +7 -0
- package/dist/api/slots-api/slot-details.js +23 -0
- package/dist/api/tariffs-api/query.d.ts +3 -1
- package/dist/api/upsellings-api/query.d.ts +3 -1
- package/dist/api/users-api/query.d.ts +3 -1
- package/dist/hooks/use-api-method/index.js +13 -7
- package/package.json +4 -4
- package/dist/api/profiles-api/rooms/create.d.ts +0 -9
- package/dist/api/profiles-api/rooms/delete.d.ts +0 -7
- package/dist/api/profiles-api/rooms/delete.js +0 -11
- package/dist/api/profiles-api/rooms/get-all.d.ts +0 -6
- package/dist/api/profiles-api/rooms/get-all.js +0 -8
- package/dist/api/profiles-api/rooms/get-one.d.ts +0 -8
- package/dist/api/profiles-api/rooms/get-one.js +0 -11
- package/dist/api/profiles-api/rooms/update.d.ts +0 -10
- package/dist/api/profiles-api/rooms/update.js +0 -12
- package/dist/api/slot-room-templates-api/get-all-actual.d.ts +0 -6
- package/dist/api/slot-room-templates-api/get-all-actual.js +0 -8
- package/dist/api/slot-room-templates-api/get-one.d.ts +0 -7
- package/dist/api/slot-room-templates-api/get-one.js +0 -8
- package/dist/api/slot-room-templates-api/index.d.ts +0 -10
- package/dist/api/slot-room-templates-api/index.js +0 -11
- package/dist/api/slot-room-templates-api/update.d.ts +0 -8
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/capture-paypal-navigator-certificate.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/check-navigator-certificate-by-code.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/create-navigator-certificate.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/find-navigator-certificate.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-payment-methods.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-templates.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-paypal-payment.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-square-payment.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-stripe-payment.d.ts +0 -0
|
@@ -46,11 +46,11 @@ var get_all_crm_1 = require("./other-crm/get-all-crm");
|
|
|
46
46
|
var get_profile_filters_1 = require("./other-crm/get-profile-filters");
|
|
47
47
|
var remove_profile_crm_1 = require("./other-crm/remove-profile-crm");
|
|
48
48
|
var update_profile_crm_1 = require("./other-crm/update-profile-crm");
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
49
|
+
var get_sms_settings_1 = require("./profile-sms/get-sms-settings");
|
|
50
|
+
var query_order_sms_logs_1 = require("./profile-sms/query-order-sms-logs");
|
|
51
|
+
var send_order_client_email_1 = require("./profile-sms/send-order-client-email");
|
|
52
|
+
var send_order_client_sms_1 = require("./profile-sms/send-order-client-sms");
|
|
53
|
+
var update_sms_settings_1 = require("./profile-sms/update-sms-settings");
|
|
54
54
|
var create_smtp_1 = require("./smtp/create-smtp");
|
|
55
55
|
var get_smtps_1 = require("./smtp/get-smtps");
|
|
56
56
|
var remove_smtp_1 = require("./smtp/remove-smtp");
|
|
@@ -63,32 +63,29 @@ var get_subscription_info_1 = require("./subscription/get-subscription-info");
|
|
|
63
63
|
var paginate_bills_1 = require("./subscription/paginate-bills");
|
|
64
64
|
var remove_subscription_1 = require("./subscription/remove-subscription");
|
|
65
65
|
var update_subscription_1 = require("./subscription/update-subscription");
|
|
66
|
+
var create_profile_waiver_1 = require("./waiver/create-profile-waiver");
|
|
66
67
|
var get_profile_waiver_1 = require("./waiver/get-profile-waiver");
|
|
67
68
|
var get_profile_waiver_for_order_service_1 = require("./waiver/get-profile-waiver-for-order-service");
|
|
69
|
+
var query_profile_waivers_1 = require("./waiver/query-profile-waivers");
|
|
70
|
+
var remove_profile_waiver_by_id_1 = require("./waiver/remove-profile-waiver-by-id");
|
|
68
71
|
var update_profile_waiver_1 = require("./waiver/update-profile-waiver");
|
|
72
|
+
var update_profile_waiver_by_id_1 = require("./waiver/update-profile-waiver-by-id");
|
|
69
73
|
var get_1 = require("./widget-customization/get");
|
|
70
|
-
var
|
|
71
|
-
var
|
|
74
|
+
var update_2 = require("./widget-customization/update");
|
|
75
|
+
var create_3 = require("./create");
|
|
72
76
|
var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
|
|
73
77
|
var get_inactive_companies_short_1 = require("./get-inactive-companies-short");
|
|
74
78
|
var get_onboarding_steps_1 = require("./get-onboarding-steps");
|
|
75
|
-
var
|
|
79
|
+
var get_one_1 = require("./get-one");
|
|
76
80
|
var query_3 = require("./query");
|
|
77
|
-
var register_questroom_visit_1 = require("./register-questroom-visit");
|
|
78
81
|
var remove_2 = require("./remove");
|
|
79
|
-
var
|
|
82
|
+
var update_3 = require("./update");
|
|
80
83
|
var update_crm_verification_1 = require("./update-crm-verification");
|
|
81
84
|
var update_partner_program_1 = require("./update-partner-program");
|
|
82
85
|
var update_step_1 = require("./update-step");
|
|
83
86
|
exports.profilesApiDeclaration = {
|
|
84
|
-
getAllRooms: get_all_1.getAllRooms,
|
|
85
|
-
deleteRoom: delete_1.deleteRoom,
|
|
86
|
-
registerQuestroomVisit: register_questroom_visit_1.registerQuestroomVisit,
|
|
87
87
|
getInactiveCompaniesShort: get_inactive_companies_short_1.getInactiveCompaniesShort,
|
|
88
88
|
updateNotificationChanel: update_1.updateNotificationChanel,
|
|
89
|
-
getRoom: get_one_1.getRoom,
|
|
90
|
-
createRoom: create_3.createRoom,
|
|
91
|
-
updateRoom: update_2.updateRoom,
|
|
92
89
|
deleteAction: delete_action_1.deleteAction,
|
|
93
90
|
queryCalls: query_1.queryCalls,
|
|
94
91
|
createNotificationChanel: create_2.createNotificationChanel,
|
|
@@ -96,6 +93,11 @@ exports.profilesApiDeclaration = {
|
|
|
96
93
|
queryNotificationChanels: query_2.queryNotificationChanels,
|
|
97
94
|
webHookApi: webhook_api_1.webHookApi,
|
|
98
95
|
getClientNotifications: get_client_notofocations_1.getClientNotifications,
|
|
96
|
+
sendOrderClientSms: send_order_client_sms_1.sendOrderClientSms,
|
|
97
|
+
sendOrderClientEmail: send_order_client_email_1.sendOrderClientEmail,
|
|
98
|
+
queryOrderSmsLogs: query_order_sms_logs_1.queryOrderSmsLogs,
|
|
99
|
+
getSmsSettings: get_sms_settings_1.getSmsSettings,
|
|
100
|
+
updateSmsSettings: update_sms_settings_1.updateSmsSettings,
|
|
99
101
|
queryBalancePayments: query_balance_payments_1.queryBalancePayments,
|
|
100
102
|
queryProfileBalancePayments: query_profile_balance_payments_1.queryProfileBalancePayments,
|
|
101
103
|
adjustBalance: adjust_balance_1.adjustBalance,
|
|
@@ -111,8 +113,12 @@ exports.profilesApiDeclaration = {
|
|
|
111
113
|
testSmtp: test_smtp_1.testSmtp,
|
|
112
114
|
getAllCustomersEmail: get_all_customer_emails_1.getAllCustomersEmail,
|
|
113
115
|
getCustomerEmail: get_customer_email_1.getCustomerEmail,
|
|
116
|
+
queryProfileWaivers: query_profile_waivers_1.queryProfileWaivers,
|
|
114
117
|
getProfileWaiverForOrderService: get_profile_waiver_for_order_service_1.getProfileWaiverForOrderService,
|
|
118
|
+
createProfileWaiver: create_profile_waiver_1.createProfileWaiver,
|
|
115
119
|
updateProfileWaiver: update_profile_waiver_1.updateProfileWaiver,
|
|
120
|
+
updateProfileWaiverById: update_profile_waiver_by_id_1.updateProfileWaiverById,
|
|
121
|
+
removeProfileWaiverById: remove_profile_waiver_by_id_1.removeProfileWaiverById,
|
|
116
122
|
getProfileWaiver: get_profile_waiver_1.getProfileWaiver,
|
|
117
123
|
getApiKeys: get_api_keys_1.getApiKeys,
|
|
118
124
|
createApiKey: create_api_key_1.createApiKey,
|
|
@@ -123,7 +129,7 @@ exports.profilesApiDeclaration = {
|
|
|
123
129
|
createContact: create_contact_1.createContact,
|
|
124
130
|
getWidgetCustomization: get_1.getWidgetCustomization,
|
|
125
131
|
updateAction: update_action_1.updateAction,
|
|
126
|
-
updateWidgetCustomization:
|
|
132
|
+
updateWidgetCustomization: update_2.updateWidgetCustomization,
|
|
127
133
|
removeContact: remove_contact_1.removeContact,
|
|
128
134
|
updateProfileCrm: update_profile_crm_1.updateProfileCrm,
|
|
129
135
|
getOnboardingSteps: get_onboarding_steps_1.getOnboardingSteps,
|
|
@@ -153,11 +159,11 @@ exports.profilesApiDeclaration = {
|
|
|
153
159
|
getBookeoOrders: get_bookeo_orders_1.getBookeoOrders,
|
|
154
160
|
getBookeoInfo: get_bookeo_info_1.getBookeoInfo,
|
|
155
161
|
getBookeoIntegrationLink: get_bookeo_integration_link_1.getBookeoIntegrationLink,
|
|
156
|
-
create:
|
|
162
|
+
create: create_3.create,
|
|
157
163
|
remove: remove_2.remove,
|
|
158
|
-
update:
|
|
164
|
+
update: update_3.update,
|
|
159
165
|
query: query_3.query,
|
|
160
|
-
getOne:
|
|
166
|
+
getOne: get_one_1.getOne,
|
|
161
167
|
current: current_1.current,
|
|
162
168
|
getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
|
|
163
169
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationChanelRO } from '@escapenavigator/types/dist/profile/notification-chanel/notification-chanel.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '../..';
|
|
3
3
|
type ParamsData = undefined;
|
|
4
|
-
type ResponseData = NotificationChanelRO;
|
|
4
|
+
type ResponseData = NotificationChanelRO[];
|
|
5
5
|
export declare const getClientNotifications: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '../..';
|
|
2
|
+
import { GetSmsSettingsDto } from '@escapenavigator/types/dist/profile/profile-sms/dto/get-sms-settings.dto';
|
|
3
|
+
import { SmsSettingsRO } from '@escapenavigator/types/dist/profile/profile-sms/ro/sms-settings.ro';
|
|
4
|
+
export declare const getSmsSettings: ApiMethodDeclaration<GetSmsSettingsDto, SmsSettingsRO>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSmsSettings = void 0;
|
|
4
|
+
var getSmsSettings = function (params) { return ({
|
|
5
|
+
url: '/profile-sms/settings',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getSmsSettings = getSmsSettings;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '../..';
|
|
2
|
+
import { ProfileSmsRecipientTypeEnum } from '@escapenavigator/types/dist/profile/profile-sms/profile-sms-recipient-type.enum';
|
|
3
|
+
import { QueryOrderSmsLogsDto } from '@escapenavigator/types/dist/profile/profile-sms/dto/query-order-sms-logs.dto';
|
|
4
|
+
import { ProfileSmsLogRO } from '@escapenavigator/types/dist/profile/profile-sms/ro/profile-sms-log.ro';
|
|
5
|
+
type ParamsData = {
|
|
6
|
+
orderId: number;
|
|
7
|
+
limit?: QueryOrderSmsLogsDto['limit'];
|
|
8
|
+
recipientType?: ProfileSmsRecipientTypeEnum;
|
|
9
|
+
};
|
|
10
|
+
type ResponseData = ProfileSmsLogRO[];
|
|
11
|
+
export declare const queryOrderSmsLogs: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryOrderSmsLogs = void 0;
|
|
4
|
+
var queryOrderSmsLogs = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, limit = _a.limit, recipientType = _a.recipientType;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile-sms/order/".concat(orderId, "/logs"),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: { limit: limit, recipientType: recipientType },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.queryOrderSmsLogs = queryOrderSmsLogs;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '../..';
|
|
2
|
+
import { SendOrderClientEmailDto } from '@escapenavigator/types/dist/profile/profile-sms/dto/send-order-client-email.dto';
|
|
3
|
+
import { SendOrderClientEmailRO } from '@escapenavigator/types/dist/profile/profile-sms/ro/send-order-client-email.ro';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
data: SendOrderClientEmailDto;
|
|
7
|
+
};
|
|
8
|
+
export declare const sendOrderClientEmail: ApiMethodDeclaration<ParamsData, SendOrderClientEmailRO>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendOrderClientEmail = void 0;
|
|
4
|
+
var sendOrderClientEmail = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile-sms/send-order-client-email/".concat(orderId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.sendOrderClientEmail = sendOrderClientEmail;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '../..';
|
|
2
|
+
import { SendOrderClientSmsDto } from '@escapenavigator/types/dist/profile/profile-sms/dto/send-order-client-sms.dto';
|
|
3
|
+
import { ProfileSmsLogRO } from '@escapenavigator/types/dist/profile/profile-sms/ro/profile-sms-log.ro';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
data: SendOrderClientSmsDto;
|
|
7
|
+
};
|
|
8
|
+
export declare const sendOrderClientSms: ApiMethodDeclaration<ParamsData, ProfileSmsLogRO>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendOrderClientSms = void 0;
|
|
4
|
+
var sendOrderClientSms = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile-sms/send-order-client-sms/".concat(orderId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.sendOrderClientSms = sendOrderClientSms;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '../..';
|
|
2
|
+
import { UpdateSmsSettingsDto } from '@escapenavigator/types/dist/profile/profile-sms/dto/update-sms-settings.dto';
|
|
3
|
+
import { SmsSettingsRO } from '@escapenavigator/types/dist/profile/profile-sms/ro/sms-settings.ro';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateSmsSettingsDto;
|
|
6
|
+
};
|
|
7
|
+
export declare const updateSmsSettings: ApiMethodDeclaration<ParamsData, SmsSettingsRO>;
|
|
8
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.updateSmsSettings = void 0;
|
|
4
|
+
var updateSmsSettings = function (_a) {
|
|
5
5
|
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url: '/
|
|
7
|
+
url: '/profile-sms/settings',
|
|
8
8
|
method: 'PATCH',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.updateSmsSettings = updateSmsSettings;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProfileWaiverRO } from '@escapenavigator/types/dist/profile/waiver/profile-waiver.ro';
|
|
2
|
+
import { UpdateProfileWaiverDto } from '@escapenavigator/types/dist/profile/waiver/update-waiver.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: UpdateProfileWaiverDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = ProfileWaiverRO;
|
|
8
|
+
export declare const createProfileWaiver: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.createProfileWaiver = void 0;
|
|
4
|
+
var createProfileWaiver = function (_a) {
|
|
5
5
|
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url: '/
|
|
7
|
+
url: '/profile-waivers',
|
|
8
8
|
method: 'POST',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.createProfileWaiver = createProfileWaiver;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ProfileWaiverRO } from '@escapenavigator/types/dist/profile/waiver/profile-waiver.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '../..';
|
|
3
|
-
type ParamsData =
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
profileId: number;
|
|
5
|
+
questroomId?: number;
|
|
6
|
+
};
|
|
4
7
|
type ResponseData = ProfileWaiverRO;
|
|
5
8
|
export declare const getProfileWaiverForOrderService: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
9
|
export {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getProfileWaiverForOrderService = void 0;
|
|
4
|
-
var getProfileWaiverForOrderService = function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var getProfileWaiverForOrderService = function (_a) {
|
|
5
|
+
var profileId = _a.profileId, questroomId = _a.questroomId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile-waivers/order/".concat(profileId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: {
|
|
10
|
+
questroomId: questroomId,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
};
|
|
8
14
|
exports.getProfileWaiverForOrderService = getProfileWaiverForOrderService;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileWaiverRO } from '@escapenavigator/types/dist/profile/waiver/profile-waiver.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = null;
|
|
4
|
+
type ResponseData = ProfileWaiverRO[];
|
|
5
|
+
export declare const queryProfileWaivers: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryProfileWaivers = void 0;
|
|
4
|
+
var queryProfileWaivers = function () { return ({
|
|
5
|
+
url: '/profile-waivers',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.queryProfileWaivers = queryProfileWaivers;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = number;
|
|
4
|
+
type ResponseData = SuccessRO;
|
|
5
|
+
export declare const removeProfileWaiverById: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeProfileWaiverById = void 0;
|
|
4
|
+
var removeProfileWaiverById = function (waiverId) {
|
|
5
|
+
return {
|
|
6
|
+
url: "/profile-waivers/".concat(waiverId),
|
|
7
|
+
method: 'DELETE',
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
exports.removeProfileWaiverById = removeProfileWaiverById;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProfileWaiverRO } from '@escapenavigator/types/dist/profile/waiver/profile-waiver.ro';
|
|
2
|
+
import { UpdateProfileWaiverDto } from '@escapenavigator/types/dist/profile/waiver/update-waiver.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
waiverId: number;
|
|
6
|
+
data: UpdateProfileWaiverDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = ProfileWaiverRO;
|
|
9
|
+
export declare const updateProfileWaiverById: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateProfileWaiverById = void 0;
|
|
4
|
+
var updateProfileWaiverById = function (_a) {
|
|
5
|
+
var waiverId = _a.waiverId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/profile-waivers/".concat(waiverId),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateProfileWaiverById = updateProfileWaiverById;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData =
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
lastUpdate?: number | null;
|
|
5
|
+
};
|
|
4
6
|
type ResponseData = QuestroomRO[];
|
|
5
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
8
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RoleRO } from '@escapenavigator/types/dist/role/role.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData =
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
etag?: number | null;
|
|
5
|
+
};
|
|
4
6
|
type ResponseData = RoleRO[];
|
|
5
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
8
|
export {};
|
|
@@ -6,6 +6,7 @@ import { create } from './create';
|
|
|
6
6
|
import { forceRemoveHold } from './force-remove-hold';
|
|
7
7
|
import { oneQuestroomDaySlots } from './one-questroom-day-slots';
|
|
8
8
|
import { remove } from './remove';
|
|
9
|
+
import { slotDetails } from './slot-details';
|
|
9
10
|
import { updateBreaks } from './update-breaks';
|
|
10
11
|
import { updateSlot } from './update-slot';
|
|
11
12
|
type ApiDeclaration = {
|
|
@@ -19,6 +20,7 @@ type ApiDeclaration = {
|
|
|
19
20
|
create: typeof create;
|
|
20
21
|
remove: typeof remove;
|
|
21
22
|
updateSlot: typeof updateSlot;
|
|
23
|
+
slotDetails: typeof slotDetails;
|
|
22
24
|
};
|
|
23
25
|
export declare const slotsApiDeclaration: ApiDeclaration;
|
|
24
26
|
export {};
|
|
@@ -9,6 +9,7 @@ var create_1 = require("./create");
|
|
|
9
9
|
var force_remove_hold_1 = require("./force-remove-hold");
|
|
10
10
|
var one_questroom_day_slots_1 = require("./one-questroom-day-slots");
|
|
11
11
|
var remove_1 = require("./remove");
|
|
12
|
+
var slot_details_1 = require("./slot-details");
|
|
12
13
|
var update_breaks_1 = require("./update-breaks");
|
|
13
14
|
var update_slot_1 = require("./update-slot");
|
|
14
15
|
exports.slotsApiDeclaration = {
|
|
@@ -22,4 +23,5 @@ exports.slotsApiDeclaration = {
|
|
|
22
23
|
addOrRemoveBreak: add_or_remove_break_1.addOrRemoveBreak,
|
|
23
24
|
create: create_1.create,
|
|
24
25
|
remove: remove_1.remove,
|
|
26
|
+
slotDetails: slot_details_1.slotDetails,
|
|
25
27
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiSlotEnrichedRO } from '@escapenavigator/types/dist/openapi/slots/openapi-slot-enriched.ro';
|
|
2
|
+
import { SlotDetailsDto } from '@escapenavigator/types/dist/slot/slot-details.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = SlotDetailsDto;
|
|
5
|
+
type ResponseData = OpenapiSlotEnrichedRO;
|
|
6
|
+
export declare const slotDetails: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.slotDetails = void 0;
|
|
15
|
+
var slotDetails = function (params) {
|
|
16
|
+
var _a;
|
|
17
|
+
return ({
|
|
18
|
+
url: '/slots/details',
|
|
19
|
+
method: 'GET',
|
|
20
|
+
params: __assign(__assign({}, params), { orderId: (_a = params.orderId) !== null && _a !== void 0 ? _a : undefined }),
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.slotDetails = slotDetails;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TariffRO } from '@escapenavigator/types/dist/tariff/tariff.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData =
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
etag?: number | null;
|
|
5
|
+
};
|
|
4
6
|
type ResponseData = TariffRO[];
|
|
5
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
8
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { UpsellingResponseObject } from '@escapenavigator/types/dist/upselling/upselling.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData =
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
etag?: number | null;
|
|
5
|
+
};
|
|
4
6
|
type ResponseData = UpsellingResponseObject[];
|
|
5
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
8
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { UserRO } from '@escapenavigator/types/dist/user/crud/user.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData =
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
etag?: number | null;
|
|
5
|
+
};
|
|
4
6
|
type ResponseData = UserRO[];
|
|
5
7
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
8
|
export {};
|
|
@@ -53,23 +53,29 @@ var useApiMethod = function (_a) {
|
|
|
53
53
|
var _c = (0, react_1.useReducer)(api_2.apiReducer, api_2.initialState), state = _c[0], dispatch = _c[1];
|
|
54
54
|
var fetch = (0, react_1.useCallback)(function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var response, error_1, err;
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
var _a;
|
|
57
|
+
return __generator(this, function (_b) {
|
|
58
|
+
switch (_b.label) {
|
|
58
59
|
case 0:
|
|
60
|
+
(_a = source.current) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
59
61
|
source.current = axios_1.default.CancelToken.source();
|
|
60
|
-
|
|
62
|
+
_b.label = 1;
|
|
61
63
|
case 1:
|
|
62
|
-
|
|
64
|
+
_b.trys.push([1, 3, , 4]);
|
|
63
65
|
dispatch((0, api_1.fetchStart)());
|
|
64
|
-
return [4 /*yield*/, api(params
|
|
66
|
+
return [4 /*yield*/, api(params, {
|
|
67
|
+
cancelToken: source.current.token,
|
|
68
|
+
})];
|
|
65
69
|
case 2:
|
|
66
|
-
response =
|
|
70
|
+
response = _b.sent();
|
|
67
71
|
if (successCallback)
|
|
68
72
|
successCallback(response, params);
|
|
69
73
|
dispatch((0, api_1.fetchSuccess)(response));
|
|
70
74
|
return [2 /*return*/, response];
|
|
71
75
|
case 3:
|
|
72
|
-
error_1 =
|
|
76
|
+
error_1 = _b.sent();
|
|
77
|
+
if (axios_1.default.isCancel(error_1))
|
|
78
|
+
return [2 /*return*/, null];
|
|
73
79
|
if (!mounted.current)
|
|
74
80
|
return [2 /*return*/, null];
|
|
75
81
|
err = (0, get_service_error_1.getServiceError)(error_1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.111",
|
|
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": "2b24c3c15eb1add8eba28d8f90ca97f5fac884ab",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.102",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.106",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UpsertRoomDto } from '@escapenavigator/types/dist/room/dto';
|
|
2
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
3
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
4
|
-
type ParamsData = {
|
|
5
|
-
data: UpsertRoomDto;
|
|
6
|
-
};
|
|
7
|
-
type ResponseData = RoomRO;
|
|
8
|
-
export declare const createRoom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteRoom = void 0;
|
|
4
|
-
var deleteRoom = function (_a) {
|
|
5
|
-
var id = _a.id;
|
|
6
|
-
return ({
|
|
7
|
-
url: "/rooms/".concat(id),
|
|
8
|
-
method: 'DELETE',
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
exports.deleteRoom = deleteRoom;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
2
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
3
|
-
type ParamsData = undefined;
|
|
4
|
-
type ResponseData = RoomRO[];
|
|
5
|
-
export declare const getAllRooms: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
2
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
3
|
-
type ParamsData = {
|
|
4
|
-
id: number;
|
|
5
|
-
};
|
|
6
|
-
type ResponseData = RoomRO;
|
|
7
|
-
export declare const getRoom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UpsertRoomDto } from '@escapenavigator/types/dist/room/dto';
|
|
2
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
3
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
4
|
-
type ParamsData = {
|
|
5
|
-
id: number;
|
|
6
|
-
data: UpsertRoomDto;
|
|
7
|
-
};
|
|
8
|
-
type ResponseData = RoomRO;
|
|
9
|
-
export declare const updateRoom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
-
export {};
|