@escapenavigator/services 1.10.12 → 1.10.14

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 (35) hide show
  1. package/dist/api/order-promocodes-api/create-refund.d.ts +9 -0
  2. package/dist/api/order-promocodes-api/create-refund.js +12 -0
  3. package/dist/api/order-promocodes-api/index.d.ts +4 -0
  4. package/dist/api/order-promocodes-api/index.js +4 -0
  5. package/dist/api/order-promocodes-api/remove-refund.d.ts +7 -0
  6. package/dist/api/order-promocodes-api/remove-refund.js +8 -0
  7. package/dist/api/profiles-api/actions/update-action.d.ts +10 -0
  8. package/dist/api/profiles-api/actions/update-action.js +12 -0
  9. package/dist/api/profiles-api/calls/query.d.ts +7 -0
  10. package/dist/api/profiles-api/calls/query.js +9 -0
  11. package/dist/api/profiles-api/contacts/get-contacts.d.ts +8 -0
  12. package/dist/api/profiles-api/contacts/get-contacts.js +11 -0
  13. package/dist/api/profiles-api/contacts/update-contact.d.ts +10 -0
  14. package/dist/api/profiles-api/contacts/update-contact.js +12 -0
  15. package/dist/api/profiles-api/index.d.ts +8 -0
  16. package/dist/api/profiles-api/index.js +12 -4
  17. package/dist/api/users-api/fines/create-fine.d.ts +9 -0
  18. package/dist/api/users-api/fines/create-fine.js +12 -0
  19. package/dist/api/users-api/fines/query-fines.d.ts +8 -0
  20. package/dist/api/users-api/fines/query-fines.js +9 -0
  21. package/dist/api/users-api/fines/remove-fine.d.ts +6 -0
  22. package/dist/api/users-api/fines/remove-fine.js +8 -0
  23. package/dist/api/users-api/fines/update-fine.d.ts +10 -0
  24. package/dist/api/users-api/fines/update-fine.js +12 -0
  25. package/dist/api/users-api/index.d.ts +16 -0
  26. package/dist/api/users-api/index.js +16 -0
  27. package/dist/api/users-api/salary-schemas/create-salary-schema.d.ts +9 -0
  28. package/dist/api/users-api/salary-schemas/create-salary-schema.js +12 -0
  29. package/dist/api/users-api/salary-schemas/get-all-schemas.d.ts +6 -0
  30. package/dist/api/users-api/salary-schemas/get-all-schemas.js +8 -0
  31. package/dist/api/users-api/salary-schemas/remove-position.d.ts +6 -0
  32. package/dist/api/users-api/salary-schemas/remove-position.js +8 -0
  33. package/dist/api/users-api/salary-schemas/update-position.d.ts +10 -0
  34. package/dist/api/users-api/salary-schemas/update-position.js +12 -0
  35. package/package.json +4 -4
@@ -0,0 +1,9 @@
1
+ import { CreateOrderRefundPromocodeDto } from '@escapenavigator/types/dist/order-promocode/create-order-refund-promocode.dto';
2
+ import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ data: CreateOrderRefundPromocodeDto;
6
+ };
7
+ declare type ResponseData = OrderRO;
8
+ export declare const createRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createRefund = void 0;
4
+ var createRefund = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/order-promocodes/refund',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.createRefund = createRefund;
@@ -1,7 +1,11 @@
1
1
  import { create } from './create';
2
+ import { createRefund } from './create-refund';
2
3
  import { query } from './query';
3
4
  import { remove } from './remove';
5
+ import { removeRefund } from './remove-refund';
4
6
  declare type ApiDeclaration = {
7
+ removeRefund: typeof removeRefund;
8
+ createRefund: typeof createRefund;
5
9
  create: typeof create;
6
10
  remove: typeof remove;
7
11
  query: typeof query;
@@ -2,10 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.orderPromocodesApiDeclaration = void 0;
4
4
  var create_1 = require("./create");
5
+ var create_refund_1 = require("./create-refund");
5
6
  var query_1 = require("./query");
6
7
  var remove_1 = require("./remove");
8
+ var remove_refund_1 = require("./remove-refund");
7
9
  exports.orderPromocodesApiDeclaration = {
8
10
  create: create_1.create,
11
+ createRefund: create_refund_1.createRefund,
12
+ removeRefund: remove_refund_1.removeRefund,
9
13
  remove: remove_1.remove,
10
14
  query: query_1.query,
11
15
  };
@@ -0,0 +1,7 @@
1
+ import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ /** ID допродажи */
4
+ declare type ParamsData = number;
5
+ declare type ResponseData = OrderRO;
6
+ export declare const removeRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeRefund = void 0;
4
+ var removeRefund = function (id) { return ({
5
+ url: "/order-promocodes/refund/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeRefund = removeRefund;
@@ -0,0 +1,10 @@
1
+ import { ProfileActionRO } from '@escapenavigator/types/dist/profile/action/profile-action.dto';
2
+ import { UpdateProfileActionRO } from '@escapenavigator/types/dist/profile/action/update-profile-action.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: UpdateProfileActionRO;
7
+ };
8
+ declare type ResponseData = ProfileActionRO;
9
+ export declare const updateAction: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateAction = void 0;
4
+ var updateAction = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/profile-actions/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateAction = updateAction;
@@ -0,0 +1,7 @@
1
+ import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
2
+ import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = QueryDto;
5
+ declare type ResponseData = QueryRO<any>;
6
+ export declare const queryCalls: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.queryCalls = void 0;
4
+ var queryCalls = function (params) { return ({
5
+ url: '/calls',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.queryCalls = queryCalls;
@@ -0,0 +1,8 @@
1
+ import { AllProfileContctsRO } from '@escapenavigator/types/dist/profile/contacts/all-profile-contacst.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = {
4
+ profileId: number;
5
+ };
6
+ declare type ResponseData = AllProfileContctsRO;
7
+ export declare const getContacts: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getContacts = void 0;
4
+ var getContacts = function (_a) {
5
+ var profileId = _a.profileId;
6
+ return ({
7
+ url: "/profile-contacts/".concat(profileId),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.getContacts = getContacts;
@@ -0,0 +1,10 @@
1
+ import { CreateProfileContactDto } from '@escapenavigator/types/dist/profile/contacts/create-profile-contact.dto';
2
+ import { ProfileContctRO } from '@escapenavigator/types/dist/profile/contacts/profile-contact.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: CreateProfileContactDto;
7
+ };
8
+ declare type ResponseData = ProfileContctRO;
9
+ export declare const updateContact: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateContact = void 0;
4
+ var updateContact = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/profile-contacts/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateContact = updateContact;
@@ -1,5 +1,6 @@
1
1
  import { createAction } from './actions/create-action';
2
2
  import { queryActions } from './actions/query-actions';
3
+ import { updateAction } from './actions/update-action';
3
4
  import { createActivity } from './activity/create';
4
5
  import { queryActivity } from './activity/query-activity';
5
6
  import { getProfileAgb } from './agb/get-profile-agb';
@@ -16,8 +17,11 @@ import { getBookeoInfo } from './bookeo/get-bookeo-info';
16
17
  import { getBookeoIntegrationLink } from './bookeo/get-bookeo-integration-link';
17
18
  import { getBookeoOrders } from './bookeo/get-bookeo-orders';
18
19
  import { resyncBookeo } from './bookeo/resync-bookeo';
20
+ import { queryCalls } from './calls/query';
19
21
  import { createContact } from './contacts/create-contact';
22
+ import { getContacts } from './contacts/get-contacts';
20
23
  import { removeContact } from './contacts/remove-contact';
24
+ import { updateContact } from './contacts/update-contact';
21
25
  import { current } from './current/current';
22
26
  import { finalizeCurrent } from './current/finalize-current';
23
27
  import { updateCurrent } from './current/update-current';
@@ -65,6 +69,7 @@ import { updateCrmVerification } from './update-crm-verification';
65
69
  import { updatePartnerProgram } from './update-partner-program';
66
70
  import { updateStep } from './update-step';
67
71
  declare type ApiDeclaration = {
72
+ queryCalls: typeof queryCalls;
68
73
  adjustBalance: typeof adjustBalance;
69
74
  queryBalanceItems: typeof queryBalanceItems;
70
75
  queryBalancePayments: typeof queryBalancePayments;
@@ -76,14 +81,17 @@ declare type ApiDeclaration = {
76
81
  queryActivity: typeof queryActivity;
77
82
  getWidgetCustomization: typeof getWidgetCustomization;
78
83
  updateWidgetCustomization: typeof updateWidgetCustomization;
84
+ updateContact: typeof updateContact;
79
85
  createContact: typeof createContact;
80
86
  removeContact: typeof removeContact;
87
+ getContacts: typeof getContacts;
81
88
  getAllCustomersEmail: typeof getAllCustomersEmail;
82
89
  getCustomerEmail: typeof getCustomerEmail;
83
90
  testEmail: typeof testEmail;
84
91
  queryCampaigns: typeof queryCampaigns;
85
92
  createAction: typeof createAction;
86
93
  queryActions: typeof queryActions;
94
+ updateAction: typeof updateAction;
87
95
  updateGa: typeof updateGa;
88
96
  getProfileFilters: typeof getProfileFilters;
89
97
  removeProfileCrm: typeof removeProfileCrm;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.profilesApiDeclaration = void 0;
4
4
  var create_action_1 = require("./actions/create-action");
5
5
  var query_actions_1 = require("./actions/query-actions");
6
+ var update_action_1 = require("./actions/update-action");
6
7
  var create_1 = require("./activity/create");
7
8
  var query_activity_1 = require("./activity/query-activity");
8
9
  var get_profile_agb_1 = require("./agb/get-profile-agb");
@@ -19,8 +20,11 @@ var get_bookeo_info_1 = require("./bookeo/get-bookeo-info");
19
20
  var get_bookeo_integration_link_1 = require("./bookeo/get-bookeo-integration-link");
20
21
  var get_bookeo_orders_1 = require("./bookeo/get-bookeo-orders");
21
22
  var resync_bookeo_1 = require("./bookeo/resync-bookeo");
23
+ var query_1 = require("./calls/query");
22
24
  var create_contact_1 = require("./contacts/create-contact");
25
+ var get_contacts_1 = require("./contacts/get-contacts");
23
26
  var remove_contact_1 = require("./contacts/remove-contact");
27
+ var update_contact_1 = require("./contacts/update-contact");
24
28
  var current_1 = require("./current/current");
25
29
  var finalize_current_1 = require("./current/finalize-current");
26
30
  var update_current_1 = require("./current/update-current");
@@ -31,7 +35,7 @@ var query_campaigns_1 = require("./email/query-campaigns");
31
35
  var test_email_1 = require("./email/test-email");
32
36
  var create_2 = require("./notification-chanel/create");
33
37
  var get_client_notofocations_1 = require("./notification-chanel/get-client-notofocations");
34
- var query_1 = require("./notification-chanel/query");
38
+ var query_2 = require("./notification-chanel/query");
35
39
  var remove_1 = require("./notification-chanel/remove");
36
40
  var update_1 = require("./notification-chanel/update");
37
41
  var webhook_api_1 = require("./notification-chanel/webhook-api");
@@ -61,7 +65,7 @@ var create_3 = require("./create");
61
65
  var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
62
66
  var get_onboarding_steps_1 = require("./get-onboarding-steps");
63
67
  var get_one_1 = require("./get-one");
64
- var query_2 = require("./query");
68
+ var query_3 = require("./query");
65
69
  var remove_2 = require("./remove");
66
70
  var update_3 = require("./update");
67
71
  var update_crm_verification_1 = require("./update-crm-verification");
@@ -69,9 +73,10 @@ var update_partner_program_1 = require("./update-partner-program");
69
73
  var update_step_1 = require("./update-step");
70
74
  exports.profilesApiDeclaration = {
71
75
  updateNotificationChanel: update_1.updateNotificationChanel,
76
+ queryCalls: query_1.queryCalls,
72
77
  createNotificationChanel: create_2.createNotificationChanel,
73
78
  removeNotificationChanel: remove_1.removeNotificationChanel,
74
- queryNotificationChanels: query_1.queryNotificationChanels,
79
+ queryNotificationChanels: query_2.queryNotificationChanels,
75
80
  webHookApi: webhook_api_1.webHookApi,
76
81
  getClientNotifications: get_client_notofocations_1.getClientNotifications,
77
82
  queryBalancePayments: query_balance_payments_1.queryBalancePayments,
@@ -81,6 +86,8 @@ exports.profilesApiDeclaration = {
81
86
  updateGa: update_ga_1.updateGa,
82
87
  cancelSubscription: remove_subscription_1.cancelSubscription,
83
88
  getSmtps: get_smtps_1.getSmtps,
89
+ updateContact: update_contact_1.updateContact,
90
+ getContacts: get_contacts_1.getContacts,
84
91
  createSmtp: create_smtp_1.createSmtp,
85
92
  updateSmtp: update_smtp_1.updateSmtp,
86
93
  removeSmtp: remove_smtp_1.removeSmtp,
@@ -98,6 +105,7 @@ exports.profilesApiDeclaration = {
98
105
  queryActivity: query_activity_1.queryActivity,
99
106
  createContact: create_contact_1.createContact,
100
107
  getWidgetCustomization: get_1.getWidgetCustomization,
108
+ updateAction: update_action_1.updateAction,
101
109
  updateWidgetCustomization: update_2.updateWidgetCustomization,
102
110
  removeContact: remove_contact_1.removeContact,
103
111
  updateProfileCrm: update_profile_crm_1.updateProfileCrm,
@@ -130,7 +138,7 @@ exports.profilesApiDeclaration = {
130
138
  create: create_3.create,
131
139
  remove: remove_2.remove,
132
140
  update: update_3.update,
133
- query: query_2.query,
141
+ query: query_3.query,
134
142
  getOne: get_one_1.getOne,
135
143
  current: current_1.current,
136
144
  getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
@@ -0,0 +1,9 @@
1
+ import { CreateUserFineDto } from '@escapenavigator/types/dist/user/fine/create-user-fine.dto';
2
+ import { UserFineRO } from '@escapenavigator/types/dist/user/fine/user-fine.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ data: CreateUserFineDto;
6
+ };
7
+ declare type ResponseData = UserFineRO;
8
+ export declare const createFine: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFine = void 0;
4
+ var createFine = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/user-fines',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.createFine = createFine;
@@ -0,0 +1,8 @@
1
+ import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
2
+ import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
3
+ import { UserFineRO } from '@escapenavigator/types/dist/user/fine/user-fine.ro';
4
+ import { ApiMethodDeclaration } from '../..';
5
+ declare type ParamsData = QueryDto;
6
+ declare type ResponseData = QueryRO<UserFineRO>;
7
+ export declare const queryFines: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.queryFines = void 0;
4
+ var queryFines = function (params) { return ({
5
+ url: '/user-fines',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.queryFines = queryFines;
@@ -0,0 +1,6 @@
1
+ import { UserFineRO } from '@escapenavigator/types/dist/user/fine/user-fine.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = UserFineRO;
5
+ export declare const removeFine: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeFine = void 0;
4
+ var removeFine = function (id) { return ({
5
+ url: "/user-fines/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeFine = removeFine;
@@ -0,0 +1,10 @@
1
+ import { CreateUserFineDto } from '@escapenavigator/types/dist/user/fine/create-user-fine.dto';
2
+ import { UserFineRO } from '@escapenavigator/types/dist/user/fine/user-fine.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: CreateUserFineDto;
7
+ };
8
+ declare type ResponseData = UserFineRO;
9
+ export declare const updateFine: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateFine = void 0;
4
+ var updateFine = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/user-fines/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateFine = updateFine;
@@ -6,11 +6,19 @@ import { currentUpdatePreferences } from './current/current-update-preferences';
6
6
  import { getTmpToken } from './current/get-tmp-token';
7
7
  import { me } from './current/me';
8
8
  import { mePing } from './current/me-ping';
9
+ import { createFine } from './fines/create-fine';
10
+ import { queryFines } from './fines/query-fines';
11
+ import { removeFine } from './fines/remove-fine';
12
+ import { updateFine } from './fines/update-fine';
9
13
  import { createPosition } from './positions/create-position';
10
14
  import { getAllPositions } from './positions/get-all-positions';
11
15
  import { removePosition } from './positions/remove-position';
12
16
  import { updatePosition } from './positions/update-position';
13
17
  import { userMonthlyReport } from './reports/user-monthly-report';
18
+ import { createSalarySchema } from './salary-schemas/create-salary-schema';
19
+ import { getAllSchemas } from './salary-schemas/get-all-schemas';
20
+ import { removeSalarySchema } from './salary-schemas/remove-position';
21
+ import { updateSalarySchema } from './salary-schemas/update-position';
14
22
  import { createSession } from './sessions/create-session';
15
23
  import { exportSession } from './sessions/export-sessions';
16
24
  import { getSessionByUserAndDate } from './sessions/get-by-user-and-date';
@@ -43,6 +51,14 @@ declare type ApiDeclaration = {
43
51
  updatePosition: typeof updatePosition;
44
52
  loginSwitch: typeof loginSwitch;
45
53
  getTmpToken: typeof getTmpToken;
54
+ createSalarySchema: typeof createSalarySchema;
55
+ updateSalarySchema: typeof updateSalarySchema;
56
+ removeSalarySchema: typeof removeSalarySchema;
57
+ getAllSchemas: typeof getAllSchemas;
58
+ createFine: typeof createFine;
59
+ updateFine: typeof updateFine;
60
+ removeFine: typeof removeFine;
61
+ queryFines: typeof queryFines;
46
62
  currentUpdateAvatar: typeof currentUpdateAvatar;
47
63
  currentUpdatePreferences: typeof currentUpdatePreferences;
48
64
  currentUpdateNotifications: typeof currentUpdateNotifications;
@@ -9,11 +9,19 @@ var current_update_preferences_1 = require("./current/current-update-preferences
9
9
  var get_tmp_token_1 = require("./current/get-tmp-token");
10
10
  var me_1 = require("./current/me");
11
11
  var me_ping_1 = require("./current/me-ping");
12
+ var create_fine_1 = require("./fines/create-fine");
13
+ var query_fines_1 = require("./fines/query-fines");
14
+ var remove_fine_1 = require("./fines/remove-fine");
15
+ var update_fine_1 = require("./fines/update-fine");
12
16
  var create_position_1 = require("./positions/create-position");
13
17
  var get_all_positions_1 = require("./positions/get-all-positions");
14
18
  var remove_position_1 = require("./positions/remove-position");
15
19
  var update_position_1 = require("./positions/update-position");
16
20
  var user_monthly_report_1 = require("./reports/user-monthly-report");
21
+ var create_salary_schema_1 = require("./salary-schemas/create-salary-schema");
22
+ var get_all_schemas_1 = require("./salary-schemas/get-all-schemas");
23
+ var remove_position_2 = require("./salary-schemas/remove-position");
24
+ var update_position_2 = require("./salary-schemas/update-position");
17
25
  var create_session_1 = require("./sessions/create-session");
18
26
  var export_sessions_1 = require("./sessions/export-sessions");
19
27
  var get_by_user_and_date_1 = require("./sessions/get-by-user-and-date");
@@ -40,6 +48,10 @@ var update_1 = require("./update");
40
48
  var update_password_1 = require("./update-password");
41
49
  exports.usersApiDeclaration = {
42
50
  createPosition: create_position_1.createPosition,
51
+ createSalarySchema: create_salary_schema_1.createSalarySchema,
52
+ updateSalarySchema: update_position_2.updateSalarySchema,
53
+ removeSalarySchema: remove_position_2.removeSalarySchema,
54
+ getAllSchemas: get_all_schemas_1.getAllSchemas,
43
55
  userMonthlyReport: user_monthly_report_1.userMonthlyReport,
44
56
  updatePosition: update_position_1.updatePosition,
45
57
  getAllPositions: get_all_positions_1.getAllPositions,
@@ -52,6 +64,10 @@ exports.usersApiDeclaration = {
52
64
  getTmpToken: get_tmp_token_1.getTmpToken,
53
65
  querySessions: query_sessions_1.querySessions,
54
66
  getSessionByUserAndDate: get_by_user_and_date_1.getSessionByUserAndDate,
67
+ createFine: create_fine_1.createFine,
68
+ updateFine: update_fine_1.updateFine,
69
+ removeFine: remove_fine_1.removeFine,
70
+ queryFines: query_fines_1.queryFines,
55
71
  getSession: get_session_1.getSession,
56
72
  removeSession: remove_session_1.removeSession,
57
73
  createSession: create_session_1.createSession,
@@ -0,0 +1,9 @@
1
+ import { CreateSalarySchemaDto } from '@escapenavigator/types/dist/user/salary-schema/create-salary-schema.dto';
2
+ import { SalarySchemaRO } from '@escapenavigator/types/dist/user/salary-schema/salary-schema.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ data: CreateSalarySchemaDto;
6
+ };
7
+ declare type ResponseData = SalarySchemaRO;
8
+ export declare const createSalarySchema: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createSalarySchema = void 0;
4
+ var createSalarySchema = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/salary-schemas',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.createSalarySchema = createSalarySchema;
@@ -0,0 +1,6 @@
1
+ import { SalarySchemaRO } from '@escapenavigator/types/dist/user/salary-schema/salary-schema.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = SalarySchemaRO[];
5
+ export declare const getAllSchemas: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllSchemas = void 0;
4
+ var getAllSchemas = function () { return ({
5
+ url: '/salary-schemas',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getAllSchemas = getAllSchemas;
@@ -0,0 +1,6 @@
1
+ import { SalarySchemaRO } from '@escapenavigator/types/dist/user/salary-schema/salary-schema.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = SalarySchemaRO;
5
+ export declare const removeSalarySchema: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeSalarySchema = void 0;
4
+ var removeSalarySchema = function (id) { return ({
5
+ url: "/salary-schemas/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeSalarySchema = removeSalarySchema;
@@ -0,0 +1,10 @@
1
+ import { CreateSalarySchemaDto } from '@escapenavigator/types/dist/user/salary-schema/create-salary-schema.dto';
2
+ import { SalarySchemaRO } from '@escapenavigator/types/dist/user/salary-schema/salary-schema.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: CreateSalarySchemaDto;
7
+ };
8
+ declare type ResponseData = SalarySchemaRO;
9
+ export declare const updateSalarySchema: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateSalarySchema = void 0;
4
+ var updateSalarySchema = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/salary-schemas/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateSalarySchema = updateSalarySchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.10.12",
3
+ "version": "1.10.14",
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": "e9913126e26cfa2142e3785f21d3d6f738d0c4ff",
15
+ "gitHead": "252f559ebc56da2d45854ec62f2c66525478efcf",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.10.12",
18
- "@escapenavigator/utils": "^1.10.12",
17
+ "@escapenavigator/types": "^1.10.14",
18
+ "@escapenavigator/utils": "^1.10.14",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",