@escapenavigator/services 1.6.78 → 1.6.80
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/orders-api/index.d.ts +6 -0
- package/dist/api/orders-api/index.js +6 -0
- package/dist/api/orders-api/workers/add-worker.d.ts +9 -0
- package/dist/api/orders-api/workers/add-worker.js +36 -0
- package/dist/api/orders-api/workers/get-workers.d.ts +6 -0
- package/dist/api/orders-api/workers/get-workers.js +8 -0
- package/dist/api/orders-api/workers/remove-worker.d.ts +6 -0
- package/dist/api/orders-api/workers/remove-worker.js +32 -0
- package/dist/api/profiles-api/index.d.ts +4 -0
- package/dist/api/profiles-api/index.js +6 -3
- package/dist/api/profiles-api/widget-customization/get.d.ts +6 -0
- package/dist/api/profiles-api/widget-customization/get.js +8 -0
- package/dist/api/profiles-api/widget-customization/update.d.ts +9 -0
- package/dist/api/profiles-api/widget-customization/update.js +12 -0
- package/dist/api/questrooms-api/awards/create-award.d.ts +9 -0
- package/dist/api/questrooms-api/awards/create-award.js +12 -0
- package/dist/api/questrooms-api/awards/remove-award.d.ts +6 -0
- package/dist/api/questrooms-api/awards/remove-award.js +8 -0
- package/dist/api/questrooms-api/awards/update-award.d.ts +10 -0
- package/dist/api/questrooms-api/awards/update-award.js +12 -0
- package/dist/api/questrooms-api/index.d.ts +6 -0
- package/dist/api/questrooms-api/index.js +6 -0
- package/dist/api/questrooms-api/paginate.d.ts +2 -2
- package/dist/api/users-api/index.d.ts +10 -0
- package/dist/api/users-api/index.js +10 -0
- package/dist/api/users-api/positions/create-position.d.ts +9 -0
- package/dist/api/users-api/positions/create-position.js +12 -0
- package/dist/api/users-api/positions/get-all-positions.d.ts +6 -0
- package/dist/api/users-api/positions/get-all-positions.js +8 -0
- package/dist/api/users-api/positions/remove-position.d.ts +6 -0
- package/dist/api/users-api/positions/remove-position.js +8 -0
- package/dist/api/users-api/positions/update-position.d.ts +10 -0
- package/dist/api/users-api/positions/update-position.js +12 -0
- package/dist/api/users-api/reports/user-monthly-report.d.ts +9 -0
- package/dist/api/users-api/reports/user-monthly-report.js +9 -0
- package/package.json +4 -4
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { addWorkers } from './workers/add-worker';
|
|
2
|
+
import { getWorkers } from './workers/get-workers';
|
|
3
|
+
import { removeWorker } from './workers/remove-worker';
|
|
1
4
|
import { bookImmediately } from './book-immediately';
|
|
2
5
|
import { cancel } from './cancel';
|
|
3
6
|
import { count } from './count';
|
|
@@ -14,6 +17,9 @@ import { updatePlayers } from './update-players';
|
|
|
14
17
|
import { updateSlot } from './update-slot';
|
|
15
18
|
import { uploadOrders } from './upload-orders';
|
|
16
19
|
declare type ApiDeclaration = {
|
|
20
|
+
addWorkers: typeof addWorkers;
|
|
21
|
+
getWorkers: typeof getWorkers;
|
|
22
|
+
removeWorker: typeof removeWorker;
|
|
17
23
|
uploadOrders: typeof uploadOrders;
|
|
18
24
|
remove: typeof remove;
|
|
19
25
|
bookImmediately: typeof bookImmediately;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ordersApiDeclaration = void 0;
|
|
4
|
+
var add_worker_1 = require("./workers/add-worker");
|
|
5
|
+
var get_workers_1 = require("./workers/get-workers");
|
|
6
|
+
var remove_worker_1 = require("./workers/remove-worker");
|
|
4
7
|
var book_immediately_1 = require("./book-immediately");
|
|
5
8
|
var cancel_1 = require("./cancel");
|
|
6
9
|
var count_1 = require("./count");
|
|
@@ -18,6 +21,9 @@ var update_slot_1 = require("./update-slot");
|
|
|
18
21
|
var upload_orders_1 = require("./upload-orders");
|
|
19
22
|
exports.ordersApiDeclaration = {
|
|
20
23
|
count: count_1.count,
|
|
24
|
+
removeWorker: remove_worker_1.removeWorker,
|
|
25
|
+
getWorkers: get_workers_1.getWorkers,
|
|
26
|
+
addWorkers: add_worker_1.addWorkers,
|
|
21
27
|
uploadOrders: upload_orders_1.uploadOrders,
|
|
22
28
|
remove: remove_1.remove,
|
|
23
29
|
bookImmediately: book_immediately_1.bookImmediately,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrderWorkersAddDTO } from '@escapenavigator/types/dist/order/workers/order-workers-add.dto';
|
|
2
|
+
import { OrderWorkersRO } from '@escapenavigator/types/dist/order/workers/order-workers.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: OrderWorkersAddDTO;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = OrderWorkersRO;
|
|
8
|
+
export declare const addWorkers: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addWorkers = void 0;
|
|
4
|
+
var addWorkers = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/order-workers',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.addWorkers = addWorkers;
|
|
13
|
+
// @UseGuards(AppGuard)
|
|
14
|
+
// @Post()
|
|
15
|
+
// @UseInterceptors(new Serializer(OrderWorkersRO))
|
|
16
|
+
// async create(
|
|
17
|
+
// @Body() dto: OrderWorkersAddDTO,
|
|
18
|
+
// @User() { profileId }: AppExpressRequest['user'],
|
|
19
|
+
// ): Promise<OrderWorkersRO> {
|
|
20
|
+
// return this.orderWorkersService.create(dto, profileId);
|
|
21
|
+
// }
|
|
22
|
+
// @UseGuards(AppGuard)
|
|
23
|
+
// @Get(':orderId')
|
|
24
|
+
// @UseInterceptors(new Serializer(OrderWorkersRO))
|
|
25
|
+
// async orderWorkers(
|
|
26
|
+
// @Param('orderId') orderId: string,
|
|
27
|
+
// @User() { profileId }: AppExpressRequest['user'],
|
|
28
|
+
// ): Promise<OrderWorkersRO[]> {
|
|
29
|
+
// return this.orderWorkersService.orderWorkers(+orderId, profileId);
|
|
30
|
+
// }
|
|
31
|
+
// @UseGuards(AppGuard)
|
|
32
|
+
// @Delete(':id')
|
|
33
|
+
// async deleteSessions(@Param('id') id: string) {
|
|
34
|
+
// return this.orderWorkersService.remove(+id);
|
|
35
|
+
// }
|
|
36
|
+
// order-workers
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OrderWorkersRO } from '@escapenavigator/types/dist/order/workers/order-workers.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = OrderWorkersRO[];
|
|
5
|
+
export declare const getWorkers: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OrderWorkersRO } from '@escapenavigator/types/dist/order/workers/order-workers.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = OrderWorkersRO;
|
|
5
|
+
export declare const removeWorker: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeWorker = void 0;
|
|
4
|
+
var removeWorker = function (id) { return ({
|
|
5
|
+
url: "/order-workers/".concat(id),
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
}); };
|
|
8
|
+
exports.removeWorker = removeWorker;
|
|
9
|
+
// @UseGuards(AppGuard)
|
|
10
|
+
// @Post()
|
|
11
|
+
// @UseInterceptors(new Serializer(OrderWorkersRO))
|
|
12
|
+
// async create(
|
|
13
|
+
// @Body() dto: OrderWorkersAddDTO,
|
|
14
|
+
// @User() { profileId }: AppExpressRequest['user'],
|
|
15
|
+
// ): Promise<OrderWorkersRO> {
|
|
16
|
+
// return this.orderWorkersService.create(dto, profileId);
|
|
17
|
+
// }
|
|
18
|
+
// @UseGuards(AppGuard)
|
|
19
|
+
// @Get(':orderId')
|
|
20
|
+
// @UseInterceptors(new Serializer(OrderWorkersRO))
|
|
21
|
+
// async orderWorkers(
|
|
22
|
+
// @Param('orderId') orderId: string,
|
|
23
|
+
// @User() { profileId }: AppExpressRequest['user'],
|
|
24
|
+
// ): Promise<OrderWorkersRO[]> {
|
|
25
|
+
// return this.orderWorkersService.orderWorkers(+orderId, profileId);
|
|
26
|
+
// }
|
|
27
|
+
// @UseGuards(AppGuard)
|
|
28
|
+
// @Delete(':id')
|
|
29
|
+
// async deleteSessions(@Param('id') id: string) {
|
|
30
|
+
// return this.orderWorkersService.remove(+id);
|
|
31
|
+
// }
|
|
32
|
+
// order-workers
|
|
@@ -26,6 +26,8 @@ import { getProfileInvoices } from './subscription/get-profile-invoices';
|
|
|
26
26
|
import { getSubscriptionInfo } from './subscription/get-subscription-info';
|
|
27
27
|
import { paginateBills } from './subscription/paginate-bills';
|
|
28
28
|
import { updateSubscription } from './subscription/update-subscription';
|
|
29
|
+
import { getWidgetCustomization } from './widget-customization/get';
|
|
30
|
+
import { updateWidgetCustomization } from './widget-customization/update';
|
|
29
31
|
import { create } from './create';
|
|
30
32
|
import { getBySlugForVerify } from './get-by-slug-for-verify';
|
|
31
33
|
import { getOnboardingSteps } from './get-onboarding-steps';
|
|
@@ -37,6 +39,8 @@ import { updateCrmVerification } from './update-crm-verification';
|
|
|
37
39
|
import { updatePartnerProgram } from './update-partner-program';
|
|
38
40
|
import { updateStep } from './update-step';
|
|
39
41
|
declare type ApiDeclaration = {
|
|
42
|
+
getWidgetCustomization: typeof getWidgetCustomization;
|
|
43
|
+
updateWidgetCustomization: typeof updateWidgetCustomization;
|
|
40
44
|
createContact: typeof createContact;
|
|
41
45
|
removeContact: typeof removeContact;
|
|
42
46
|
testEmail: typeof testEmail;
|
|
@@ -29,19 +29,22 @@ var get_profile_invoices_1 = require("./subscription/get-profile-invoices");
|
|
|
29
29
|
var get_subscription_info_1 = require("./subscription/get-subscription-info");
|
|
30
30
|
var paginate_bills_1 = require("./subscription/paginate-bills");
|
|
31
31
|
var update_subscription_1 = require("./subscription/update-subscription");
|
|
32
|
+
var get_1 = require("./widget-customization/get");
|
|
33
|
+
var update_1 = require("./widget-customization/update");
|
|
32
34
|
var create_1 = require("./create");
|
|
33
35
|
var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
|
|
34
36
|
var get_onboarding_steps_1 = require("./get-onboarding-steps");
|
|
35
37
|
var get_one_1 = require("./get-one");
|
|
36
|
-
// import { initialCustomization } from './initial-customization';
|
|
37
38
|
var query_1 = require("./query");
|
|
38
39
|
var remove_1 = require("./remove");
|
|
39
|
-
var
|
|
40
|
+
var update_2 = require("./update");
|
|
40
41
|
var update_crm_verification_1 = require("./update-crm-verification");
|
|
41
42
|
var update_partner_program_1 = require("./update-partner-program");
|
|
42
43
|
var update_step_1 = require("./update-step");
|
|
43
44
|
exports.profilesApiDeclaration = {
|
|
44
45
|
createContact: create_contact_1.createContact,
|
|
46
|
+
getWidgetCustomization: get_1.getWidgetCustomization,
|
|
47
|
+
updateWidgetCustomization: update_1.updateWidgetCustomization,
|
|
45
48
|
removeContact: remove_contact_1.removeContact,
|
|
46
49
|
updateProfileCrm: update_profile_crm_1.updateProfileCrm,
|
|
47
50
|
getOnboardingSteps: get_onboarding_steps_1.getOnboardingSteps,
|
|
@@ -75,7 +78,7 @@ exports.profilesApiDeclaration = {
|
|
|
75
78
|
// initialCustomization,
|
|
76
79
|
create: create_1.create,
|
|
77
80
|
remove: remove_1.remove,
|
|
78
|
-
update:
|
|
81
|
+
update: update_2.update,
|
|
79
82
|
query: query_1.query,
|
|
80
83
|
getOne: get_one_1.getOne,
|
|
81
84
|
current: current_1.current,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WidgetCustomizationRO } from '@escapenavigator/types/dist/profile/widget-customization/widget-customization.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = WidgetCustomizationRO;
|
|
5
|
+
export declare const getWidgetCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UpdateWidgetCustomizationDto } from '@escapenavigator/types/dist/profile/widget-customization/update-widget-customization.dto';
|
|
2
|
+
import { WidgetCustomizationRO } from '@escapenavigator/types/dist/profile/widget-customization/widget-customization.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: UpdateWidgetCustomizationDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = WidgetCustomizationRO;
|
|
8
|
+
export declare const updateWidgetCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateWidgetCustomization = void 0;
|
|
4
|
+
var updateWidgetCustomization = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/widget-customization',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateWidgetCustomization = updateWidgetCustomization;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AwardRO } from '@escapenavigator/types/dist/questroom/awards/award.ro';
|
|
2
|
+
import { CreateAwardDto } from '@escapenavigator/types/dist/questroom/awards/create-award.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateAwardDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = AwardRO;
|
|
8
|
+
export declare const createAward: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createAward = void 0;
|
|
4
|
+
var createAward = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/questroom-awards',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createAward = createAward;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AwardRO } from '@escapenavigator/types/dist/questroom/awards/award.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = AwardRO;
|
|
5
|
+
export declare const removeAward: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AwardRO } from '@escapenavigator/types/dist/questroom/awards/award.ro';
|
|
2
|
+
import { CreateAwardDto } from '@escapenavigator/types/dist/questroom/awards/create-award.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: CreateAwardDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = AwardRO;
|
|
9
|
+
export declare const updateAward: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateAward = void 0;
|
|
4
|
+
var updateAward = function (_a) {
|
|
5
|
+
var data = _a.data, id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/questroom-awards/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateAward = updateAward;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { createAward } from './awards/create-award';
|
|
2
|
+
import { removeAward } from './awards/remove-award';
|
|
3
|
+
import { updateAward } from './awards/update-award';
|
|
1
4
|
import { createResource } from './resources/create-resource';
|
|
2
5
|
import { queryResources } from './resources/query-resources';
|
|
3
6
|
import { removeResource } from './resources/remove-resource';
|
|
@@ -17,6 +20,9 @@ import { recover } from './recover';
|
|
|
17
20
|
import { remove } from './remove';
|
|
18
21
|
import { update } from './update';
|
|
19
22
|
declare type ApiDeclaration = {
|
|
23
|
+
removeAward: typeof removeAward;
|
|
24
|
+
createAward: typeof createAward;
|
|
25
|
+
updateAward: typeof updateAward;
|
|
20
26
|
createResource: typeof createResource;
|
|
21
27
|
queryResources: typeof queryResources;
|
|
22
28
|
removeResource: typeof removeResource;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.questroomsApiDeclaration = void 0;
|
|
4
|
+
var create_award_1 = require("./awards/create-award");
|
|
5
|
+
var remove_award_1 = require("./awards/remove-award");
|
|
6
|
+
var update_award_1 = require("./awards/update-award");
|
|
4
7
|
var create_resource_1 = require("./resources/create-resource");
|
|
5
8
|
var query_resources_1 = require("./resources/query-resources");
|
|
6
9
|
var remove_resource_1 = require("./resources/remove-resource");
|
|
@@ -20,6 +23,9 @@ var recover_1 = require("./recover");
|
|
|
20
23
|
var remove_1 = require("./remove");
|
|
21
24
|
var update_1 = require("./update");
|
|
22
25
|
exports.questroomsApiDeclaration = {
|
|
26
|
+
removeAward: remove_award_1.removeAward,
|
|
27
|
+
updateAward: update_award_1.updateAward,
|
|
28
|
+
createAward: create_award_1.createAward,
|
|
23
29
|
removeResource: remove_resource_1.removeResource,
|
|
24
30
|
queryResources: query_resources_1.queryResources,
|
|
25
31
|
createResource: create_resource_1.createResource,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuestroomAdminRO } from '@escapenavigator/types/dist/questroom/questroom-admin.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
4
|
import { ApiMethodDeclaration } from '..';
|
|
5
5
|
declare type ParamsData = QueryDto;
|
|
6
|
-
declare type ResponseData = QueryRO<
|
|
6
|
+
declare type ResponseData = QueryRO<QuestroomAdminRO>;
|
|
7
7
|
export declare const paginate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -5,6 +5,11 @@ import { currentUpdatePassword } from './current/current-update-password';
|
|
|
5
5
|
import { currentUpdatePreferences } from './current/current-update-preferences';
|
|
6
6
|
import { me } from './current/me';
|
|
7
7
|
import { mePing } from './current/me-ping';
|
|
8
|
+
import { createPosition } from './positions/create-position';
|
|
9
|
+
import { getAllPositions } from './positions/get-all-positions';
|
|
10
|
+
import { removePosition } from './positions/remove-position';
|
|
11
|
+
import { updatePosition } from './positions/update-position';
|
|
12
|
+
import { userMonthlyReport } from './reports/user-monthly-report';
|
|
8
13
|
import { createSession } from './sessions/create-session';
|
|
9
14
|
import { exportSession } from './sessions/export-sessions';
|
|
10
15
|
import { getSessionByUserAndDate } from './sessions/get-by-user-and-date';
|
|
@@ -30,6 +35,11 @@ import { setCookie } from './set-cookie';
|
|
|
30
35
|
import { update } from './update';
|
|
31
36
|
import { updatePassword } from './update-password';
|
|
32
37
|
declare type ApiDeclaration = {
|
|
38
|
+
userMonthlyReport: typeof userMonthlyReport;
|
|
39
|
+
createPosition: typeof createPosition;
|
|
40
|
+
getAllPositions: typeof getAllPositions;
|
|
41
|
+
removePosition: typeof removePosition;
|
|
42
|
+
updatePosition: typeof updatePosition;
|
|
33
43
|
loginSwitch: typeof loginSwitch;
|
|
34
44
|
currentUpdateAvatar: typeof currentUpdateAvatar;
|
|
35
45
|
currentUpdatePreferences: typeof currentUpdatePreferences;
|
|
@@ -8,6 +8,11 @@ var current_update_password_1 = require("./current/current-update-password");
|
|
|
8
8
|
var current_update_preferences_1 = require("./current/current-update-preferences");
|
|
9
9
|
var me_1 = require("./current/me");
|
|
10
10
|
var me_ping_1 = require("./current/me-ping");
|
|
11
|
+
var create_position_1 = require("./positions/create-position");
|
|
12
|
+
var get_all_positions_1 = require("./positions/get-all-positions");
|
|
13
|
+
var remove_position_1 = require("./positions/remove-position");
|
|
14
|
+
var update_position_1 = require("./positions/update-position");
|
|
15
|
+
var user_monthly_report_1 = require("./reports/user-monthly-report");
|
|
11
16
|
var create_session_1 = require("./sessions/create-session");
|
|
12
17
|
var export_sessions_1 = require("./sessions/export-sessions");
|
|
13
18
|
var get_by_user_and_date_1 = require("./sessions/get-by-user-and-date");
|
|
@@ -33,6 +38,11 @@ var set_cookie_1 = require("./set-cookie");
|
|
|
33
38
|
var update_1 = require("./update");
|
|
34
39
|
var update_password_1 = require("./update-password");
|
|
35
40
|
exports.usersApiDeclaration = {
|
|
41
|
+
createPosition: create_position_1.createPosition,
|
|
42
|
+
userMonthlyReport: user_monthly_report_1.userMonthlyReport,
|
|
43
|
+
updatePosition: update_position_1.updatePosition,
|
|
44
|
+
getAllPositions: get_all_positions_1.getAllPositions,
|
|
45
|
+
removePosition: remove_position_1.removePosition,
|
|
36
46
|
currentUpdateAvatar: current_update_avatar_1.currentUpdateAvatar,
|
|
37
47
|
loginSwitch: login_switch_1.loginSwitch,
|
|
38
48
|
currentUpdatePreferences: current_update_preferences_1.currentUpdatePreferences,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateUserPositionDto } from '@escapenavigator/types/dist/user/position/create-user-position.dto';
|
|
2
|
+
import { UserPositionRO } from '@escapenavigator/types/dist/user/position/user-position.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateUserPositionDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = UserPositionRO;
|
|
8
|
+
export declare const createPosition: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPosition = void 0;
|
|
4
|
+
var createPosition = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/user-position',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createPosition = createPosition;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserPositionRO } from '@escapenavigator/types/dist/user/position/user-position.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = UserPositionRO[];
|
|
5
|
+
export declare const getAllPositions: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserPositionRO } from '@escapenavigator/types/dist/user/position/user-position.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = UserPositionRO;
|
|
5
|
+
export declare const removePosition: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removePosition = void 0;
|
|
4
|
+
var removePosition = function (id) { return ({
|
|
5
|
+
url: "/user-position/".concat(id),
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
}); };
|
|
8
|
+
exports.removePosition = removePosition;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateUserPositionDto } from '@escapenavigator/types/dist/user/position/create-user-position.dto';
|
|
2
|
+
import { UserPositionRO } from '@escapenavigator/types/dist/user/position/user-position.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: CreateUserPositionDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = UserPositionRO;
|
|
9
|
+
export declare const updatePosition: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePosition = void 0;
|
|
4
|
+
var updatePosition = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/user-position/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updatePosition = updatePosition;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UserMonthlyReportRO } from '@escapenavigator/types/dist/user/reports/user-monthly-report.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
startDate: Date;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = UserMonthlyReportRO[];
|
|
8
|
+
export declare const userMonthlyReport: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userMonthlyReport = void 0;
|
|
4
|
+
var userMonthlyReport = function (params) { return ({
|
|
5
|
+
url: '/user-reports',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.userMonthlyReport = userMonthlyReport;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.80",
|
|
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": "e38edfa6f7a60d870918a2d54e015d8a02434fd5",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.75",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.77",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|