@escapenavigator/services 1.4.80 → 1.4.82

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.
Files changed (180) hide show
  1. package/dist/api/agb-api/create.d.ts +9 -0
  2. package/dist/api/agb-api/{create-inside-agb.js → create.js} +3 -3
  3. package/dist/api/agb-api/get-all.d.ts +7 -0
  4. package/dist/api/agb-api/get-all.js +8 -0
  5. package/dist/api/agb-api/get-for-order-service.d.ts +2 -2
  6. package/dist/api/agb-api/get-one.d.ts +7 -0
  7. package/dist/api/agb-api/{get-one-by-id.js → get-one.js} +3 -3
  8. package/dist/api/agb-api/index.d.ts +8 -12
  9. package/dist/api/agb-api/index.js +8 -12
  10. package/dist/api/agb-api/{update-inside-agb.d.ts → update.d.ts} +3 -3
  11. package/dist/api/agb-api/{update-inside-agb.js → update.js} +3 -3
  12. package/dist/api/init-client-api.d.ts +2 -0
  13. package/dist/api/init-client-api.js +2 -0
  14. package/dist/api/{transactions-api → order-transactions-api}/create-order-payment.d.ts +1 -1
  15. package/dist/api/{transactions-api → order-transactions-api}/create-order-refund.d.ts +2 -2
  16. package/dist/api/order-transactions-api/create-order-stripe-refund.d.ts +9 -0
  17. package/dist/api/order-transactions-api/create-order-stripe-refund.js +12 -0
  18. package/dist/api/order-transactions-api/index.d.ts +10 -0
  19. package/dist/api/order-transactions-api/index.js +11 -0
  20. package/dist/api/profiles-api/agb/get-profile-agb-for-order-service.d.ts +6 -0
  21. package/dist/api/profiles-api/agb/get-profile-agb-for-order-service.js +8 -0
  22. package/dist/api/profiles-api/agb/get-profile-agb.d.ts +6 -0
  23. package/dist/api/profiles-api/agb/get-profile-agb.js +8 -0
  24. package/dist/api/profiles-api/agb/update-profile-agb.d.ts +9 -0
  25. package/dist/api/{agb-api → profiles-api/agb}/update-profile-agb.js +1 -1
  26. package/dist/api/profiles-api/bookeo/get-bookeo-info.d.ts +5 -0
  27. package/dist/api/profiles-api/bookeo/get-bookeo-info.js +8 -0
  28. package/dist/api/profiles-api/bookeo/get-bookeo-integration-link.d.ts +5 -0
  29. package/dist/api/profiles-api/bookeo/get-bookeo-integration-link.js +8 -0
  30. package/dist/api/profiles-api/finalize-current.d.ts +9 -0
  31. package/dist/api/profiles-api/finalize-current.js +12 -0
  32. package/dist/api/profiles-api/get-customization.d.ts +7 -0
  33. package/dist/api/profiles-api/get-customization.js +8 -0
  34. package/dist/api/profiles-api/index.d.ts +24 -8
  35. package/dist/api/profiles-api/index.js +24 -8
  36. package/dist/api/profiles-api/subscription/create-subscription-session.d.ts +8 -0
  37. package/dist/api/profiles-api/subscription/create-subscription-session.js +11 -0
  38. package/dist/api/profiles-api/{get-payment-settings.d.ts → subscription/get-payment-settings.d.ts} +1 -1
  39. package/dist/api/profiles-api/subscription/get-prices.d.ts +6 -0
  40. package/dist/api/profiles-api/subscription/get-prices.js +8 -0
  41. package/dist/api/profiles-api/{get-profile-invoices.d.ts → subscription/get-profile-invoices.d.ts} +1 -1
  42. package/dist/api/profiles-api/{get-stripe-session-link.d.ts → subscription/get-stripe-session-link.d.ts} +1 -1
  43. package/dist/api/profiles-api/{paginate-bills.d.ts → subscription/paginate-bills.d.ts} +1 -1
  44. package/dist/api/profiles-api/update-customization.d.ts +7 -0
  45. package/dist/api/profiles-api/update-customization.js +9 -0
  46. package/dist/api/questrooms-api/close-many.d.ts +8 -0
  47. package/dist/api/questrooms-api/close-many.js +9 -0
  48. package/dist/api/questrooms-api/index.d.ts +2 -0
  49. package/dist/api/questrooms-api/index.js +2 -0
  50. package/dist/api/slot-templates-api/update.d.ts +2 -2
  51. package/dist/api/transactions-api/index.d.ts +0 -8
  52. package/dist/api/transactions-api/index.js +0 -8
  53. package/dist/api/users-api/check-token.d.ts +2 -2
  54. package/dist/api/users-api/complite-setup.d.ts +3 -4
  55. package/dist/api/users-api/complite-setup.js +2 -2
  56. package/dist/api/users-api/create.d.ts +2 -2
  57. package/dist/api/users-api/current-update-notifications.d.ts +1 -1
  58. package/dist/api/users-api/current-update-password.d.ts +1 -1
  59. package/dist/api/users-api/current-update.d.ts +1 -1
  60. package/dist/api/users-api/get-one.d.ts +1 -1
  61. package/dist/api/users-api/index.d.ts +20 -20
  62. package/dist/api/users-api/index.js +20 -20
  63. package/dist/api/users-api/login.d.ts +1 -1
  64. package/dist/api/users-api/me-ping.d.ts +6 -0
  65. package/dist/api/users-api/me-ping.js +8 -0
  66. package/dist/api/users-api/me.d.ts +1 -1
  67. package/dist/api/users-api/query.d.ts +1 -1
  68. package/dist/api/users-api/recover.d.ts +1 -1
  69. package/dist/api/users-api/remove.d.ts +1 -1
  70. package/dist/api/users-api/send-invite.d.ts +1 -1
  71. package/dist/api/users-api/sessions/create-session.d.ts +9 -0
  72. package/dist/api/users-api/{create-report.js → sessions/create-session.js} +4 -4
  73. package/dist/api/users-api/sessions/export-sessions.d.ts +6 -0
  74. package/dist/api/users-api/sessions/export-sessions.js +10 -0
  75. package/dist/api/users-api/sessions/get-by-user-and-date.d.ts +7 -0
  76. package/dist/api/users-api/sessions/get-by-user-and-date.js +9 -0
  77. package/dist/api/users-api/sessions/get-calendar-sessions.d.ts +7 -0
  78. package/dist/api/users-api/sessions/get-calendar-sessions.js +9 -0
  79. package/dist/api/users-api/sessions/get-session.d.ts +6 -0
  80. package/dist/api/users-api/sessions/get-session.js +8 -0
  81. package/dist/api/users-api/sessions/query-sessions.d.ts +8 -0
  82. package/dist/api/users-api/sessions/query-sessions.js +9 -0
  83. package/dist/api/users-api/sessions/remove-session.d.ts +6 -0
  84. package/dist/api/users-api/sessions/remove-session.js +8 -0
  85. package/dist/api/users-api/sessions/update-session.d.ts +10 -0
  86. package/dist/api/users-api/{update-report.js → sessions/update-session.js} +4 -4
  87. package/dist/api/users-api/set-cookie.d.ts +7 -0
  88. package/dist/api/users-api/set-cookie.js +11 -0
  89. package/dist/api/users-api/update-password.d.ts +1 -1
  90. package/dist/api/users-api/update.d.ts +2 -2
  91. package/dist/api/widgets-api/get-instruction-token.d.ts +6 -0
  92. package/dist/api/widgets-api/get-instruction-token.js +8 -0
  93. package/dist/api/widgets-api/get-instruction.d.ts +7 -0
  94. package/dist/api/widgets-api/get-instruction.js +9 -0
  95. package/dist/api/widgets-api/index.d.ts +6 -4
  96. package/dist/api/widgets-api/index.js +6 -4
  97. package/dist/api/widgets-api/init.d.ts +7 -0
  98. package/dist/api/widgets-api/init.js +9 -0
  99. package/dist/api/widgets-orders/cancel-order.d.ts +2 -2
  100. package/dist/api/widgets-orders/find-order.d.ts +2 -2
  101. package/dist/hooks/use-api-method/actions/creators/api.d.ts +1 -1
  102. package/dist/hooks/use-api-method/index.d.ts +1 -1
  103. package/dist/hooks/use-api-method/index.js +1 -1
  104. package/dist/hooks/use-api-method/reducers/api.d.ts +1 -1
  105. package/package.json +4 -4
  106. package/dist/api/agb-api/create-inside-agb.d.ts +0 -9
  107. package/dist/api/agb-api/get-all-inside.d.ts +0 -7
  108. package/dist/api/agb-api/get-all-inside.js +0 -8
  109. package/dist/api/agb-api/get-one-by-id.d.ts +0 -7
  110. package/dist/api/agb-api/get-one-for-profile.d.ts +0 -7
  111. package/dist/api/agb-api/get-one-for-profile.js +0 -8
  112. package/dist/api/agb-api/update-profile-agb.d.ts +0 -9
  113. package/dist/api/profiles-api/_get-by-slug.d.ts +0 -7
  114. package/dist/api/profiles-api/_get-by-slug.js +0 -8
  115. package/dist/api/profiles-api/get-all-daily-reports.d.ts +0 -9
  116. package/dist/api/profiles-api/get-all-daily-reports.js +0 -8
  117. package/dist/api/profiles-api/update-payment-settings.d.ts +0 -6
  118. package/dist/api/profiles-api/update-payment-settings.js +0 -9
  119. package/dist/api/transactions-api/remove-order-payment.d.ts +0 -7
  120. package/dist/api/transactions-api/remove-order-payment.js +0 -8
  121. package/dist/api/transactions-api/remove-order-refund.d.ts +0 -7
  122. package/dist/api/transactions-api/remove-order-refund.js +0 -8
  123. package/dist/api/users-api/create-report.d.ts +0 -9
  124. package/dist/api/users-api/query-daily-reports.d.ts +0 -6
  125. package/dist/api/users-api/query-daily-reports.js +0 -8
  126. package/dist/api/users-api/query-month-reports.d.ts +0 -6
  127. package/dist/api/users-api/query-month-reports.js +0 -8
  128. package/dist/api/users-api/query-reports.d.ts +0 -8
  129. package/dist/api/users-api/query-reports.js +0 -9
  130. package/dist/api/users-api/remove-report.d.ts +0 -7
  131. package/dist/api/users-api/remove-report.js +0 -8
  132. package/dist/api/users-api/reports-count.d.ts +0 -6
  133. package/dist/api/users-api/reports-count.js +0 -9
  134. package/dist/api/users-api/reports-export.d.ts +0 -8
  135. package/dist/api/users-api/reports-export.js +0 -10
  136. package/dist/api/users-api/start-timer.d.ts +0 -6
  137. package/dist/api/users-api/start-timer.js +0 -8
  138. package/dist/api/users-api/stop-timer.d.ts +0 -6
  139. package/dist/api/users-api/stop-timer.js +0 -8
  140. package/dist/api/users-api/update-report.d.ts +0 -10
  141. package/dist/api/widgets-api/get-widget-customization.d.ts +0 -7
  142. package/dist/api/widgets-api/get-widget-customization.js +0 -8
  143. package/dist/api/widgets-api/update-widget-customization.d.ts +0 -7
  144. package/dist/api/widgets-api/update-widget-customization.js +0 -9
  145. package/dist/utils/convert-to-options.d.ts +0 -13
  146. package/dist/utils/convert-to-options.js +0 -17
  147. package/dist/utils/enum-to-options.d.ts +0 -5
  148. package/dist/utils/enum-to-options.js +0 -10
  149. package/dist/utils/get-documents-links.d.ts +0 -8
  150. package/dist/utils/get-documents-links.js +0 -14
  151. package/dist/utils/get-handled-error-message.d.ts +0 -1
  152. package/dist/utils/get-handled-error-message.js +0 -7
  153. package/dist/utils/get-many.d.ts +0 -1
  154. package/dist/utils/get-many.js +0 -13
  155. package/dist/utils/get-one.d.ts +0 -1
  156. package/dist/utils/get-one.js +0 -13
  157. package/dist/utils/get-service-error.d.ts +0 -18
  158. package/dist/utils/get-service-error.js +0 -67
  159. package/dist/utils/index.d.ts +0 -5
  160. package/dist/utils/index.js +0 -21
  161. package/dist/utils/is-axios-error.d.ts +0 -6
  162. package/dist/utils/is-axios-error.js +0 -11
  163. package/dist/utils/is-network-error.d.ts +0 -5
  164. package/dist/utils/is-network-error.js +0 -18
  165. package/dist/utils/redirect.d.ts +0 -1
  166. package/dist/utils/redirect.js +0 -7
  167. package/dist/utils/serialize-record.d.ts +0 -2
  168. package/dist/utils/serialize-record.js +0 -10
  169. package/dist/utils/serialize-slot.d.ts +0 -9
  170. package/dist/utils/serialize-slot.js +0 -48
  171. package/dist/utils/tz-date.d.ts +0 -19
  172. package/dist/utils/tz-date.js +0 -37
  173. package/dist/utils/validate-by-dto.d.ts +0 -1
  174. package/dist/utils/validate-by-dto.js +0 -18
  175. /package/dist/api/{transactions-api → order-transactions-api}/create-order-payment.js +0 -0
  176. /package/dist/api/{transactions-api → order-transactions-api}/create-order-refund.js +0 -0
  177. /package/dist/api/profiles-api/{get-payment-settings.js → subscription/get-payment-settings.js} +0 -0
  178. /package/dist/api/profiles-api/{get-profile-invoices.js → subscription/get-profile-invoices.js} +0 -0
  179. /package/dist/api/profiles-api/{get-stripe-session-link.js → subscription/get-stripe-session-link.js} +0 -0
  180. /package/dist/api/profiles-api/{paginate-bills.js → subscription/paginate-bills.js} +0 -0
@@ -0,0 +1,7 @@
1
+ import { InstructionDto } from '@escapenavigator/types/dist/widget/instruction.dto';
2
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = InstructionDto;
5
+ declare type ResponseData = WidgetRO[];
6
+ export declare const getInstruction: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getInstruction = void 0;
4
+ var getInstruction = function (params) { return ({
5
+ url: '/widgets/instruction',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.getInstruction = getInstruction;
@@ -1,13 +1,15 @@
1
1
  import { create } from './create';
2
+ import { getInstruction } from './get-instruction';
3
+ import { getInstructionToken } from './get-instruction-token';
2
4
  import { getOne } from './get-one';
3
- import { getWidgetCustomization } from './get-widget-customization';
5
+ import { init } from './init';
4
6
  import { query } from './query';
5
7
  import { remove } from './remove';
6
8
  import { update } from './update';
7
- import { updateWidgetCustomization } from './update-widget-customization';
8
9
  declare type ApiDeclaration = {
9
- getWidgetCustomization: typeof getWidgetCustomization;
10
- updateWidgetCustomization: typeof updateWidgetCustomization;
10
+ init: typeof init;
11
+ getInstructionToken: typeof getInstructionToken;
12
+ getInstruction: typeof getInstruction;
11
13
  create: typeof create;
12
14
  remove: typeof remove;
13
15
  update: typeof update;
@@ -2,16 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.widgetsApiDeclaration = void 0;
4
4
  var create_1 = require("./create");
5
+ var get_instruction_1 = require("./get-instruction");
6
+ var get_instruction_token_1 = require("./get-instruction-token");
5
7
  var get_one_1 = require("./get-one");
6
- var get_widget_customization_1 = require("./get-widget-customization");
8
+ var init_1 = require("./init");
7
9
  var query_1 = require("./query");
8
10
  var remove_1 = require("./remove");
9
11
  var update_1 = require("./update");
10
- var update_widget_customization_1 = require("./update-widget-customization");
11
12
  exports.widgetsApiDeclaration = {
12
- getWidgetCustomization: get_widget_customization_1.getWidgetCustomization,
13
- updateWidgetCustomization: update_widget_customization_1.updateWidgetCustomization,
13
+ init: init_1.init,
14
14
  create: create_1.create,
15
+ getInstruction: get_instruction_1.getInstruction,
16
+ getInstructionToken: get_instruction_token_1.getInstructionToken,
15
17
  remove: remove_1.remove,
16
18
  update: update_1.update,
17
19
  query: query_1.query,
@@ -0,0 +1,7 @@
1
+ import { InitWidgetsDto } from '@escapenavigator/types/dist/widget/init-widgets.dto';
2
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = InitWidgetsDto;
5
+ declare type ResponseData = WidgetRO[];
6
+ export declare const init: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.init = void 0;
4
+ var init = function (data) { return ({
5
+ url: '/widgets/init',
6
+ method: 'POST',
7
+ data: data,
8
+ }); };
9
+ exports.init = init;
@@ -1,6 +1,6 @@
1
- import { WidgetOrdersOrderRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-order.ro';
1
+ import { WidgetOrderRO } from '@escapenavigator/types/dist/widget-orders/widget-order.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = string;
4
- declare type ResponseData = WidgetOrdersOrderRO;
4
+ declare type ResponseData = WidgetOrderRO;
5
5
  export declare const cancelOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
6
6
  export {};
@@ -1,6 +1,6 @@
1
- import { WidgetOrdersOrderRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-order.ro';
1
+ import { WidgetOrderRO } from '@escapenavigator/types/dist/widget-orders/widget-order.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = string;
4
- declare type ResponseData = WidgetOrdersOrderRO;
4
+ declare type ResponseData = WidgetOrderRO;
5
5
  export declare const findOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
6
6
  export {};
@@ -1,5 +1,5 @@
1
+ import { ServiceError } from '@escapenavigator/utils/dist/get-service-error';
1
2
  import { AxiosResponse } from 'axios';
2
- import { ServiceError } from '../../../../utils/get-service-error';
3
3
  import { ActionTypes } from '../types/api';
4
4
  export declare const fetchStart: () => {
5
5
  type: ActionTypes.FETCH_START;
@@ -1,5 +1,5 @@
1
+ import { ServiceError } from '@escapenavigator/utils/dist/get-service-error';
1
2
  import { AxiosPromise, AxiosResponse } from 'axios';
2
- import { ServiceError } from '../../utils/get-service-error';
3
3
  declare type ApiMethod<P, T, R, DisplayName> = {
4
4
  (params: P, transportConfig?: T): AxiosPromise<R>;
5
5
  displayName: DisplayName;
@@ -41,8 +41,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  Object.defineProperty(exports, "__esModule", { value: true });
42
42
  exports.useApiMethod = void 0;
43
43
  var react_1 = require("react");
44
+ var get_service_error_1 = require("@escapenavigator/utils/dist/get-service-error");
44
45
  var axios_1 = __importDefault(require("axios"));
45
- var get_service_error_1 = require("../../utils/get-service-error");
46
46
  var api_1 = require("./actions/creators/api");
47
47
  var api_2 = require("./reducers/api");
48
48
  var useApiMethod = function (_a) {
@@ -1,6 +1,6 @@
1
1
  import { Reducer } from 'react';
2
+ import { ServiceError } from '@escapenavigator/utils/dist/get-service-error';
2
3
  import { AxiosResponse } from 'axios';
3
- import { ServiceError } from '../../../utils/get-service-error';
4
4
  import * as actions from '../actions/creators/api';
5
5
  import { GenericActionCreator } from '../actions/types';
6
6
  declare type Action = GenericActionCreator<typeof actions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.80",
3
+ "version": "1.4.82",
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": "b0620c9b57569ed54200f4fdc958b21315602f23",
15
+ "gitHead": "75ee4a0b736f25264243eaca5971fb2d2ffdf6cf",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.79",
18
- "@paypal/react-paypal-js": "^7.8.3",
17
+ "@escapenavigator/types": "^1.4.80",
18
+ "@escapenavigator/utils": "^1.4.82",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
@@ -1,9 +0,0 @@
1
- import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
2
- import { CreateInsideAgbDto } from '@escapenavigator/types/dist/agb/create-inside-agb.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- data: CreateInsideAgbDto;
6
- };
7
- declare type ResponseData = AgbResponseObject;
8
- export declare const createInsideAgb: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,7 +0,0 @@
1
- import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- /** ID профиля */
4
- declare type ParamsData = undefined;
5
- declare type ResponseData = AgbResponseObject[];
6
- export declare const getAllInside: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAllInside = void 0;
4
- var getAllInside = function () { return ({
5
- url: '/agbs/inside',
6
- method: 'GET',
7
- }); };
8
- exports.getAllInside = getAllInside;
@@ -1,7 +0,0 @@
1
- import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- /** ID профиля */
4
- declare type ParamsData = number;
5
- declare type ResponseData = AgbResponseObject;
6
- export declare const getOneByIde: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- /** ID профиля */
4
- declare type ParamsData = undefined;
5
- declare type ResponseData = AgbResponseObject;
6
- export declare const getOneForProfile: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOneForProfile = void 0;
4
- var getOneForProfile = function () { return ({
5
- url: '/agbs',
6
- method: 'GET',
7
- }); };
8
- exports.getOneForProfile = getOneForProfile;
@@ -1,9 +0,0 @@
1
- import { AgbResponseObject } from '@escapenavigator/types/dist/agb/agb.ro';
2
- import { UpdateAgbDto } from '@escapenavigator/types/dist/agb/update-agb.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- data: UpdateAgbDto;
6
- };
7
- declare type ResponseData = AgbResponseObject;
8
- export declare const updateProfileAgb: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,7 +0,0 @@
1
- import { AgregatorProfileRO } from '@escapenavigator/types/dist/profile/agregator-profile.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- /** slug */
4
- declare type ParamsData = string;
5
- declare type ResponseData = AgregatorProfileRO;
6
- export declare const getBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBySlug = void 0;
4
- var getBySlug = function (slug) { return ({
5
- url: "/profiles/slug/".concat(slug),
6
- method: 'GET',
7
- }); };
8
- exports.getBySlug = getBySlug;
@@ -1,9 +0,0 @@
1
- import { ApiMethodDeclaration } from '..';
2
- declare type ParamsData = string;
3
- declare type ResponseData = Array<{
4
- month: string;
5
- questroomsCount: number;
6
- amount: number;
7
- }>;
8
- export declare const getAllDailyReports: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAllDailyReports = void 0;
4
- var getAllDailyReports = function (month) { return ({
5
- url: "/subscription/daily-reports/".concat(month),
6
- method: 'GET',
7
- }); };
8
- exports.getAllDailyReports = getAllDailyReports;
@@ -1,6 +0,0 @@
1
- import { UpdatePaymentSettingsDto } from '@escapenavigator/types/dist/profile/update-payment-settings.dto';
2
- import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = UpdatePaymentSettingsDto;
4
- declare type ResponseData = string;
5
- export declare const updatePaymentSettings: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updatePaymentSettings = void 0;
4
- var updatePaymentSettings = function (data) { return ({
5
- url: '/subscription/payment-settings',
6
- method: 'PATCH',
7
- data: data,
8
- }); };
9
- exports.updatePaymentSettings = updatePaymentSettings;
@@ -1,7 +0,0 @@
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 removeOrderPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeOrderPayment = void 0;
4
- var removeOrderPayment = function (id) { return ({
5
- url: "/order-transactions/".concat(id),
6
- method: 'DELETE',
7
- }); };
8
- exports.removeOrderPayment = removeOrderPayment;
@@ -1,7 +0,0 @@
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 removeOrderRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeOrderRefund = void 0;
4
- var removeOrderRefund = function (id) { return ({
5
- url: "/transactions/order-refund/".concat(id),
6
- method: 'DELETE',
7
- }); };
8
- exports.removeOrderRefund = removeOrderRefund;
@@ -1,9 +0,0 @@
1
- import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
- import { CreateUserReportDto } from '@escapenavigator/types/dist/user/create-user-report.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- data: CreateUserReportDto;
6
- };
7
- declare type ResponseData = SuccessRO;
8
- export declare const createReport: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,6 +0,0 @@
1
- import { UserReportRO } from '@escapenavigator/types/dist/user/user-report.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = string;
4
- declare type ResponseData = UserReportRO[];
5
- export declare const queryDailyReports: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.queryDailyReports = void 0;
4
- var queryDailyReports = function (params) { return ({
5
- url: "/user-reports/day/".concat(params),
6
- method: 'GET',
7
- }); };
8
- exports.queryDailyReports = queryDailyReports;
@@ -1,6 +0,0 @@
1
- import { UserMonthlyReportRO } from '@escapenavigator/types/dist/user/user-monthly-report.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = string;
4
- declare type ResponseData = UserMonthlyReportRO[];
5
- export declare const queryMonthReports: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.queryMonthReports = void 0;
4
- var queryMonthReports = function (params) { return ({
5
- url: "/user-reports/month/".concat(params),
6
- method: 'GET',
7
- }); };
8
- exports.queryMonthReports = queryMonthReports;
@@ -1,8 +0,0 @@
1
- import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
2
- import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
3
- import { UserReportRO } from '@escapenavigator/types/dist/user/user-report.ro';
4
- import { ApiMethodDeclaration } from '..';
5
- declare type ParamsData = QueryDto;
6
- declare type ResponseData = QueryRO<UserReportRO>;
7
- export declare const queryReports: ApiMethodDeclaration<ParamsData, ResponseData>;
8
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.queryReports = void 0;
4
- var queryReports = function (params) { return ({
5
- url: '/user-reports',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- exports.queryReports = queryReports;
@@ -1,7 +0,0 @@
1
- import { UserReportRO } from '@escapenavigator/types/dist/user/user-report.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- /** ID репорта */
4
- declare type ParamsData = number;
5
- declare type ResponseData = UserReportRO;
6
- export declare const removeReport: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeReport = void 0;
4
- var removeReport = function (id) { return ({
5
- url: "/user-reports/".concat(id),
6
- method: 'DELETE',
7
- }); };
8
- exports.removeReport = removeReport;
@@ -1,6 +0,0 @@
1
- import { QueryUserReportDto } from '@escapenavigator/types/dist/user/query-user-report.dto';
2
- import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = QueryUserReportDto;
4
- declare type ResponseData = number;
5
- export declare const reportsCount: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reportsCount = void 0;
4
- var reportsCount = function (params) { return ({
5
- url: '/user-reports/count',
6
- method: 'GET',
7
- params: params,
8
- }); };
9
- exports.reportsCount = reportsCount;
@@ -1,8 +0,0 @@
1
- import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
2
- import { QueryUserReportDto } from '@escapenavigator/types/dist/user/query-user-report.dto';
3
- import { UserReportRO } from '@escapenavigator/types/dist/user/user-report.ro';
4
- import { ApiMethodDeclaration } from '..';
5
- declare type ParamsData = QueryUserReportDto;
6
- declare type ResponseData = QueryRO<UserReportRO>;
7
- export declare const reportsExport: ApiMethodDeclaration<ParamsData, ResponseData>;
8
- export {};
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reportsExport = void 0;
4
- var reportsExport = function (params) { return ({
5
- url: '/user-reports/export',
6
- method: 'GET',
7
- responseType: 'blob',
8
- params: params,
9
- }); };
10
- exports.reportsExport = reportsExport;
@@ -1,6 +0,0 @@
1
- import { CurrentUserRO } from '@escapenavigator/types/dist/user/current-user.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = undefined;
4
- declare type ResponseData = CurrentUserRO;
5
- export declare const startTimer: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.startTimer = void 0;
4
- var startTimer = function () { return ({
5
- url: '/user-reports/start-timer',
6
- method: 'GET',
7
- }); };
8
- exports.startTimer = startTimer;
@@ -1,6 +0,0 @@
1
- import { CurrentUserRO } from '@escapenavigator/types/dist/user/current-user.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = undefined;
4
- declare type ResponseData = CurrentUserRO;
5
- export declare const stopTimer: ApiMethodDeclaration<ParamsData, ResponseData>;
6
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stopTimer = void 0;
4
- var stopTimer = function () { return ({
5
- url: '/user-reports/stop-timer',
6
- method: 'GET',
7
- }); };
8
- exports.stopTimer = stopTimer;
@@ -1,10 +0,0 @@
1
- import { UpdateUserReportDto } from '@escapenavigator/types/dist/user/update-user-report.dto';
2
- import { UserReportRO } from '@escapenavigator/types/dist/user/user-report.ro';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- id: number;
6
- data: UpdateUserReportDto;
7
- };
8
- declare type ResponseData = UserReportRO;
9
- export declare const updateReport: ApiMethodDeclaration<ParamsData, ResponseData>;
10
- export {};
@@ -1,7 +0,0 @@
1
- import { WidgetCustomizationRO } from '@escapenavigator/types/dist/widget/widget-customization.ro';
2
- import { ApiMethodDeclaration } from '..';
3
- /** ID профиля */
4
- declare type ParamsData = undefined;
5
- declare type ResponseData = WidgetCustomizationRO;
6
- export declare const getWidgetCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getWidgetCustomization = void 0;
4
- var getWidgetCustomization = function () { return ({
5
- url: '/widget/customization',
6
- method: 'GET',
7
- }); };
8
- exports.getWidgetCustomization = getWidgetCustomization;
@@ -1,7 +0,0 @@
1
- import { UpdateWidgetCustomizationDto } from '@escapenavigator/types/dist/widget/update-widget-customization.dto';
2
- import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = UpdateWidgetCustomizationDto;
5
- declare type ResponseData = WidgetRO;
6
- export declare const updateWidgetCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
7
- export {};
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateWidgetCustomization = void 0;
4
- var updateWidgetCustomization = function (data) { return ({
5
- url: '/widget/customization',
6
- method: 'PATCH',
7
- data: data,
8
- }); };
9
- exports.updateWidgetCustomization = updateWidgetCustomization;
@@ -1,13 +0,0 @@
1
- export declare type OptionsType<T> = Array<{
2
- key: T;
3
- content: any;
4
- }>;
5
- declare type ConvertToOptions = <T extends {
6
- id: string | number;
7
- [field: string]: any;
8
- }>(data: T[]) => Array<{
9
- key: T['id'];
10
- content: any;
11
- }>;
12
- export declare const convertToOptions: ConvertToOptions;
13
- export {};
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertToOptions = void 0;
4
- var getContentByItemField = function (item) {
5
- if (item.surname)
6
- return "".concat(item.name, " ").concat(item.surname);
7
- if (item.name)
8
- return item.name;
9
- return item.title;
10
- };
11
- var convertToOptions = function (data, field) {
12
- return data.map(function (item) { return ({
13
- key: item.id,
14
- content: field ? item[field] : getContentByItemField(item),
15
- }); });
16
- };
17
- exports.convertToOptions = convertToOptions;
@@ -1,5 +0,0 @@
1
- import { TFunction } from 'i18next';
2
- export declare const enumToOptions: (options: Enumerator, t?: TFunction, modelName?: string) => {
3
- key: string;
4
- content: string;
5
- }[];
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.enumToOptions = void 0;
4
- var enumToOptions = function (options, t, modelName) {
5
- return Object.values(options).map(function (option) { return ({
6
- key: option,
7
- content: t ? t("options.".concat(modelName, ".").concat(option)) : option.toString().toUpperCase(),
8
- }); });
9
- };
10
- exports.enumToOptions = enumToOptions;
@@ -1,8 +0,0 @@
1
- import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
2
- export declare function getLinks(lang: CountriesEnum, domain: string): {
3
- COOKIES: string;
4
- AGREEMENT: string;
5
- IMPRINT: string;
6
- PRIVACY_POLICY: string;
7
- REGISTRATION_NEW_PROFILE: string;
8
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLinks = void 0;
4
- var agb_type_enum_1 = require("@escapenavigator/types/dist/agb/agb-type.enum");
5
- function getLinks(lang, domain) {
6
- return {
7
- COOKIES: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.COOKIES, "&country=").concat(lang),
8
- AGREEMENT: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.AGREEMENT, "&country=").concat(lang),
9
- IMPRINT: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.IMPRINT, "&country=").concat(lang),
10
- PRIVACY_POLICY: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.PRIVACY_POLICY, "&country=").concat(lang),
11
- REGISTRATION_NEW_PROFILE: "".concat(domain, "?type=").concat(agb_type_enum_1.AgbTypeEnum.REGISTRATION_NEW_PROFILE, "&country=").concat(lang),
12
- };
13
- }
14
- exports.getLinks = getLinks;
@@ -1 +0,0 @@
1
- export declare const getHandledErrorMessage: (error: any) => any;