@escapenavigator/services 1.10.12 → 1.10.13

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 (33) 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/contacts/get-contacts.d.ts +8 -0
  10. package/dist/api/profiles-api/contacts/get-contacts.js +11 -0
  11. package/dist/api/profiles-api/contacts/update-contact.d.ts +10 -0
  12. package/dist/api/profiles-api/contacts/update-contact.js +12 -0
  13. package/dist/api/profiles-api/index.d.ts +6 -0
  14. package/dist/api/profiles-api/index.js +6 -0
  15. package/dist/api/users-api/fines/create-fine.d.ts +9 -0
  16. package/dist/api/users-api/fines/create-fine.js +12 -0
  17. package/dist/api/users-api/fines/query-fines.d.ts +8 -0
  18. package/dist/api/users-api/fines/query-fines.js +9 -0
  19. package/dist/api/users-api/fines/remove-fine.d.ts +6 -0
  20. package/dist/api/users-api/fines/remove-fine.js +8 -0
  21. package/dist/api/users-api/fines/update-fine.d.ts +10 -0
  22. package/dist/api/users-api/fines/update-fine.js +12 -0
  23. package/dist/api/users-api/index.d.ts +16 -0
  24. package/dist/api/users-api/index.js +16 -0
  25. package/dist/api/users-api/salary-schemas/create-salary-schema.d.ts +9 -0
  26. package/dist/api/users-api/salary-schemas/create-salary-schema.js +12 -0
  27. package/dist/api/users-api/salary-schemas/get-all-schemas.d.ts +6 -0
  28. package/dist/api/users-api/salary-schemas/get-all-schemas.js +8 -0
  29. package/dist/api/users-api/salary-schemas/remove-position.d.ts +6 -0
  30. package/dist/api/users-api/salary-schemas/remove-position.js +8 -0
  31. package/dist/api/users-api/salary-schemas/update-position.d.ts +10 -0
  32. package/dist/api/users-api/salary-schemas/update-position.js +12 -0
  33. 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,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';
@@ -17,7 +18,9 @@ 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';
19
20
  import { createContact } from './contacts/create-contact';
21
+ import { getContacts } from './contacts/get-contacts';
20
22
  import { removeContact } from './contacts/remove-contact';
23
+ import { updateContact } from './contacts/update-contact';
21
24
  import { current } from './current/current';
22
25
  import { finalizeCurrent } from './current/finalize-current';
23
26
  import { updateCurrent } from './current/update-current';
@@ -76,14 +79,17 @@ declare type ApiDeclaration = {
76
79
  queryActivity: typeof queryActivity;
77
80
  getWidgetCustomization: typeof getWidgetCustomization;
78
81
  updateWidgetCustomization: typeof updateWidgetCustomization;
82
+ updateContact: typeof updateContact;
79
83
  createContact: typeof createContact;
80
84
  removeContact: typeof removeContact;
85
+ getContacts: typeof getContacts;
81
86
  getAllCustomersEmail: typeof getAllCustomersEmail;
82
87
  getCustomerEmail: typeof getCustomerEmail;
83
88
  testEmail: typeof testEmail;
84
89
  queryCampaigns: typeof queryCampaigns;
85
90
  createAction: typeof createAction;
86
91
  queryActions: typeof queryActions;
92
+ updateAction: typeof updateAction;
87
93
  updateGa: typeof updateGa;
88
94
  getProfileFilters: typeof getProfileFilters;
89
95
  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");
@@ -20,7 +21,9 @@ var get_bookeo_integration_link_1 = require("./bookeo/get-bookeo-integration-lin
20
21
  var get_bookeo_orders_1 = require("./bookeo/get-bookeo-orders");
21
22
  var resync_bookeo_1 = require("./bookeo/resync-bookeo");
22
23
  var create_contact_1 = require("./contacts/create-contact");
24
+ var get_contacts_1 = require("./contacts/get-contacts");
23
25
  var remove_contact_1 = require("./contacts/remove-contact");
26
+ var update_contact_1 = require("./contacts/update-contact");
24
27
  var current_1 = require("./current/current");
25
28
  var finalize_current_1 = require("./current/finalize-current");
26
29
  var update_current_1 = require("./current/update-current");
@@ -81,6 +84,8 @@ exports.profilesApiDeclaration = {
81
84
  updateGa: update_ga_1.updateGa,
82
85
  cancelSubscription: remove_subscription_1.cancelSubscription,
83
86
  getSmtps: get_smtps_1.getSmtps,
87
+ updateContact: update_contact_1.updateContact,
88
+ getContacts: get_contacts_1.getContacts,
84
89
  createSmtp: create_smtp_1.createSmtp,
85
90
  updateSmtp: update_smtp_1.updateSmtp,
86
91
  removeSmtp: remove_smtp_1.removeSmtp,
@@ -98,6 +103,7 @@ exports.profilesApiDeclaration = {
98
103
  queryActivity: query_activity_1.queryActivity,
99
104
  createContact: create_contact_1.createContact,
100
105
  getWidgetCustomization: get_1.getWidgetCustomization,
106
+ updateAction: update_action_1.updateAction,
101
107
  updateWidgetCustomization: update_2.updateWidgetCustomization,
102
108
  removeContact: remove_contact_1.removeContact,
103
109
  updateProfileCrm: update_profile_crm_1.updateProfileCrm,
@@ -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.13",
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": "504d44ebc89b0446ea7551122214f10be3ddc7a1",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.10.12",
18
- "@escapenavigator/utils": "^1.10.12",
17
+ "@escapenavigator/types": "^1.10.13",
18
+ "@escapenavigator/utils": "^1.10.13",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",