@escapenavigator/types 1.10.35 → 1.10.37
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/client/query-client.dto.d.ts +1 -0
- package/dist/client/query-client.dto.js +6 -0
- package/dist/financeitem/enum/recognition-type.enum.d.ts +5 -0
- package/dist/financeitem/enum/recognition-type.enum.js +9 -0
- package/dist/openapi/ru-aggregators/mk-order-dto.d.ts +1 -0
- package/dist/openapi/ru-aggregators/mk-order-dto.js +5 -0
- package/dist/order/dashboard/dashboard-order.ro.d.ts +18 -0
- package/dist/order/dashboard/dashboard-order.ro.js +77 -0
- package/dist/order/dashboard/query-dashboard-order.dto.d.ts +4 -0
- package/dist/{dashboard/create-dashboard-task.dto.js → order/dashboard/query-dashboard-order.dto.js} +6 -12
- package/dist/order/enum/order-status.enum.d.ts +1 -0
- package/dist/order/enum/order-status.enum.js +1 -0
- package/dist/order/query-order.dto.d.ts +1 -0
- package/dist/order/query-order.dto.js +5 -0
- package/dist/profile/action/create-profile-action.dto.d.ts +0 -7
- package/dist/profile/action/create-profile-action.dto.js +0 -41
- package/dist/profile/action/{profile-action.dto.d.ts → profile-action.ro.d.ts} +0 -3
- package/dist/profile/action/{profile-action.dto.js → profile-action.ro.js} +0 -12
- package/dist/profile/admin-dashboard-profile.ro.d.ts +1 -1
- package/dist/profile/admin-dashboard-profile.ro.js +2 -2
- package/dist/profile/admin-profile.ro.d.ts +2 -1
- package/dist/profile/admin-profile.ro.js +6 -2
- package/dist/profile/create-profile.dto.d.ts +1 -1
- package/dist/profile/create-profile.dto.js +3 -3
- package/dist/profile/enum/profile-sales-status.enum.d.ts +1 -0
- package/dist/profile/enum/profile-sales-status.enum.js +1 -0
- package/dist/profile/query-admin-profile.dto.d.ts +1 -1
- package/dist/profile/query-admin-profile.dto.js +1 -1
- package/dist/questroom/questrooms-list-admin.ro.d.ts +3 -0
- package/dist/questroom/questrooms-list-admin.ro.js +9 -0
- package/dist/statistics/bookings.d.ts +57 -0
- package/dist/statistics/pnl.d.ts +44 -0
- package/dist/{dashboard/update-dashboard-task.dto.js → statistics/pnl.js} +17 -14
- package/dist/transaction/create-transaction.dto.d.ts +6 -1
- package/dist/transaction/create-transaction.dto.js +25 -1
- package/dist/transaction/transaction.ro.d.ts +3 -0
- package/dist/transaction/transaction.ro.js +9 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/current/current-user.ro.d.ts +9 -0
- package/dist/user/current/current-user.ro.js +25 -0
- package/dist/user/current/update-current-user-dashboard.dto.d.ts +29 -0
- package/dist/user/current/update-current-user-dashboard.dto.js +62 -0
- package/dist/user/fine/create-user-fine.dto.d.ts +1 -0
- package/dist/user/fine/create-user-fine.dto.js +5 -0
- package/dist/user/fine/user-fine.ro.d.ts +1 -0
- package/dist/user/fine/user-fine.ro.js +4 -0
- package/dist/user/reports/user-monthly-report.ro.d.ts +8 -6
- package/dist/user/task/user-task-status.enum.d.ts +6 -0
- package/dist/user/task/user-task-status.enum.js +10 -0
- package/dist/user/task/user-task.dto.d.ts +9 -0
- package/dist/{profile/action/update-profile-action.dto.js → user/task/user-task.dto.js} +22 -27
- package/dist/user/task/user-task.ro.d.ts +27 -0
- package/dist/user/task/user-task.ro.js +93 -0
- package/package.json +2 -2
- package/dist/dashboard/create-dashboard-task.dto.d.ts +0 -6
- package/dist/dashboard/dashboard-task.ro.d.ts +0 -8
- package/dist/dashboard/enum/dashboard-task-status.enum.d.ts +0 -7
- package/dist/dashboard/enum/dashboard-task-status.enum.js +0 -11
- package/dist/dashboard/update-dashboard-task.dto.d.ts +0 -6
- package/dist/profile/action/update-profile-action.dto.d.ts +0 -10
- package/dist/statistics/revenue.d.ts +0 -24
- package/dist/statistics/revenue.js +0 -2
- /package/dist/{dashboard/dashboard-task.ro.js → statistics/bookings.js} +0 -0
|
@@ -25,6 +25,12 @@ __decorate([
|
|
|
25
25
|
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
26
26
|
__metadata("design:type", Array)
|
|
27
27
|
], QueryClientDto.prototype, "lastGame", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'object' ? value : ['', ''])),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], QueryClientDto.prototype, "birthday", void 0);
|
|
28
34
|
__decorate([
|
|
29
35
|
(0, class_validator_1.IsOptional)(),
|
|
30
36
|
(0, class_transformer_1.Expose)(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecognitionTypeEnum = void 0;
|
|
4
|
+
var RecognitionTypeEnum;
|
|
5
|
+
(function (RecognitionTypeEnum) {
|
|
6
|
+
RecognitionTypeEnum["DEFAULT"] = "default";
|
|
7
|
+
RecognitionTypeEnum["OTHER_MONTH"] = "other_month";
|
|
8
|
+
RecognitionTypeEnum["LINER"] = "evenly_linear";
|
|
9
|
+
})(RecognitionTypeEnum = exports.RecognitionTypeEnum || (exports.RecognitionTypeEnum = {}));
|
|
@@ -30,6 +30,11 @@ __decorate([
|
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], MKOrderDto.prototype, "phone", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], MKOrderDto.prototype, "players", void 0);
|
|
33
38
|
__decorate([
|
|
34
39
|
(0, class_transformer_1.Expose)(),
|
|
35
40
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OpenapiTariffRO } from '../../openapi/shared/openapi-tariff.ro';
|
|
2
|
+
export declare class DashboardOrderRO {
|
|
3
|
+
orderId: number;
|
|
4
|
+
location: string;
|
|
5
|
+
questTitle: string;
|
|
6
|
+
start: string;
|
|
7
|
+
players: number;
|
|
8
|
+
children: number;
|
|
9
|
+
upsellings: string[];
|
|
10
|
+
confirmed: boolean;
|
|
11
|
+
slotDiscount: number;
|
|
12
|
+
utcDate: string;
|
|
13
|
+
total: number;
|
|
14
|
+
payed: number;
|
|
15
|
+
code: string;
|
|
16
|
+
slotId: number;
|
|
17
|
+
roles: OpenapiTariffRO;
|
|
18
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DashboardOrderRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const openapi_tariff_ro_1 = require("../../openapi/shared/openapi-tariff.ro");
|
|
15
|
+
class DashboardOrderRO {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], DashboardOrderRO.prototype, "orderId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DashboardOrderRO.prototype, "location", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], DashboardOrderRO.prototype, "questTitle", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], DashboardOrderRO.prototype, "start", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], DashboardOrderRO.prototype, "players", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], DashboardOrderRO.prototype, "children", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], DashboardOrderRO.prototype, "upsellings", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], DashboardOrderRO.prototype, "confirmed", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], DashboardOrderRO.prototype, "slotDiscount", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], DashboardOrderRO.prototype, "utcDate", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], DashboardOrderRO.prototype, "total", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], DashboardOrderRO.prototype, "payed", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], DashboardOrderRO.prototype, "code", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], DashboardOrderRO.prototype, "slotId", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
__metadata("design:type", openapi_tariff_ro_1.OpenapiTariffRO)
|
|
76
|
+
], DashboardOrderRO.prototype, "roles", void 0);
|
|
77
|
+
exports.DashboardOrderRO = DashboardOrderRO;
|
package/dist/{dashboard/create-dashboard-task.dto.js → order/dashboard/query-dashboard-order.dto.js}
RENAMED
|
@@ -9,26 +9,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.QueryDashboardOrderDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const is_not_blank_1 = require("
|
|
16
|
-
|
|
17
|
-
class CreateDashboardTaskDto {
|
|
15
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
16
|
+
class QueryDashboardOrderDto {
|
|
18
17
|
}
|
|
19
18
|
__decorate([
|
|
20
19
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
20
|
(0, class_transformer_1.Expose)(),
|
|
22
21
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsNumber)(),
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], CreateDashboardTaskDto.prototype, "assignedTo", void 0);
|
|
22
|
+
], QueryDashboardOrderDto.prototype, "date", void 0);
|
|
29
23
|
__decorate([
|
|
30
24
|
(0, class_validator_1.IsOptional)(),
|
|
31
25
|
(0, class_transformer_1.Expose)(),
|
|
32
26
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
34
|
-
exports.
|
|
27
|
+
], QueryDashboardOrderDto.prototype, "locationId", void 0);
|
|
28
|
+
exports.QueryDashboardOrderDto = QueryDashboardOrderDto;
|
|
@@ -4,6 +4,7 @@ exports.OrderStatusEnum = void 0;
|
|
|
4
4
|
var OrderStatusEnum;
|
|
5
5
|
(function (OrderStatusEnum) {
|
|
6
6
|
OrderStatusEnum["CONFIRMED"] = "confirmed";
|
|
7
|
+
OrderStatusEnum["NOT_CONFIRMED"] = "not_confirmed";
|
|
7
8
|
OrderStatusEnum["PREPAYED"] = "prepayed";
|
|
8
9
|
OrderStatusEnum["PAYED"] = "payed";
|
|
9
10
|
OrderStatusEnum["NOT_PAYED"] = "not_payed";
|
|
@@ -26,6 +26,11 @@ __decorate([
|
|
|
26
26
|
(0, class_validator_1.IsOptional)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], QueryOrderDto.prototype, "utmMedium", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], QueryOrderDto.prototype, "upsellingId", void 0);
|
|
29
34
|
__decorate([
|
|
30
35
|
(0, class_transformer_1.Expose)(),
|
|
31
36
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -3,14 +3,7 @@ export declare class CreateProfileActionRO {
|
|
|
3
3
|
salesStatus: ProfileSalesStatus;
|
|
4
4
|
type: string;
|
|
5
5
|
description: string;
|
|
6
|
-
result: string;
|
|
7
|
-
done: boolean;
|
|
8
|
-
success: boolean;
|
|
9
6
|
date: string;
|
|
10
7
|
time: string;
|
|
11
8
|
profileId: number;
|
|
12
|
-
nextActionType: string;
|
|
13
|
-
nextActionDescription: string;
|
|
14
|
-
nextActionDate: string;
|
|
15
|
-
nextActionTime: string;
|
|
16
9
|
}
|
|
@@ -35,22 +35,6 @@ __decorate([
|
|
|
35
35
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
36
|
(0, class_transformer_1.Expose)(),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
|
-
], CreateProfileActionRO.prototype, "result", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsBoolean)(),
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", Boolean)
|
|
43
|
-
], CreateProfileActionRO.prototype, "done", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsBoolean)(),
|
|
46
|
-
(0, class_transformer_1.Expose)(),
|
|
47
|
-
__metadata("design:type", Boolean)
|
|
48
|
-
], CreateProfileActionRO.prototype, "success", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, class_validator_1.ValidateIf)(({ done }) => !done),
|
|
51
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
52
|
-
(0, class_transformer_1.Expose)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
38
|
], CreateProfileActionRO.prototype, "date", void 0);
|
|
55
39
|
__decorate([
|
|
56
40
|
(0, class_validator_1.ValidateIf)(({ done }) => !done),
|
|
@@ -64,29 +48,4 @@ __decorate([
|
|
|
64
48
|
(0, class_transformer_1.Expose)(),
|
|
65
49
|
__metadata("design:type", Number)
|
|
66
50
|
], CreateProfileActionRO.prototype, "profileId", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, class_validator_1.ValidateIf)(({ success }) => success),
|
|
69
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
70
|
-
(0, class_transformer_1.Expose)(),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], CreateProfileActionRO.prototype, "nextActionType", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, class_validator_1.ValidateIf)(({ success }) => success),
|
|
75
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
76
|
-
(0, class_transformer_1.Expose)(),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], CreateProfileActionRO.prototype, "nextActionDescription", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, class_validator_1.ValidateIf)(({ success }) => success),
|
|
81
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
82
|
-
(0, class_transformer_1.Expose)(),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], CreateProfileActionRO.prototype, "nextActionDate", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.ValidateIf)(({ success }) => success),
|
|
87
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
88
|
-
(0, class_validator_1.IsMilitaryTime)(),
|
|
89
|
-
(0, class_transformer_1.Expose)(),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], CreateProfileActionRO.prototype, "nextActionTime", void 0);
|
|
92
51
|
exports.CreateProfileActionRO = CreateProfileActionRO;
|
|
@@ -37,26 +37,14 @@ __decorate([
|
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
38
|
__metadata("design:type", Date)
|
|
39
39
|
], ProfileActionRO.prototype, "createdAt", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], ProfileActionRO.prototype, "author", void 0);
|
|
44
40
|
__decorate([
|
|
45
41
|
(0, class_transformer_1.Expose)(),
|
|
46
42
|
__metadata("design:type", String)
|
|
47
43
|
], ProfileActionRO.prototype, "type", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_transformer_1.Expose)(),
|
|
50
|
-
__metadata("design:type", Boolean)
|
|
51
|
-
], ProfileActionRO.prototype, "success", void 0);
|
|
52
44
|
__decorate([
|
|
53
45
|
(0, class_transformer_1.Expose)(),
|
|
54
46
|
__metadata("design:type", String)
|
|
55
47
|
], ProfileActionRO.prototype, "description", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_transformer_1.Expose)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], ProfileActionRO.prototype, "result", void 0);
|
|
60
48
|
__decorate([
|
|
61
49
|
(0, class_transformer_1.Expose)(),
|
|
62
50
|
__metadata("design:type", String)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
-
import { ProfileActionRO } from './action/profile-action.
|
|
2
|
+
import { ProfileActionRO } from './action/profile-action.ro';
|
|
3
3
|
import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
|
|
4
4
|
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
5
5
|
import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
|
|
@@ -13,7 +13,7 @@ exports.AdminDashboardProfileRO = void 0;
|
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
|
-
const
|
|
16
|
+
const profile_action_ro_1 = require("./action/profile-action.ro");
|
|
17
17
|
const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
|
|
18
18
|
const partner_program_enum_1 = require("./enum/partner-program.enum");
|
|
19
19
|
const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
|
|
@@ -80,7 +80,7 @@ __decorate([
|
|
|
80
80
|
], AdminDashboardProfileRO.prototype, "crm", void 0);
|
|
81
81
|
__decorate([
|
|
82
82
|
(0, class_transformer_1.Expose)(),
|
|
83
|
-
(0, class_transformer_1.Type)(() =>
|
|
83
|
+
(0, class_transformer_1.Type)(() => profile_action_ro_1.ProfileActionRO),
|
|
84
84
|
__metadata("design:type", Array)
|
|
85
85
|
], AdminDashboardProfileRO.prototype, "actions", void 0);
|
|
86
86
|
exports.AdminDashboardProfileRO = AdminDashboardProfileRO;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
-
import { ProfileActionRO } from './action/profile-action.
|
|
2
|
+
import { ProfileActionRO } from './action/profile-action.ro';
|
|
3
3
|
import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
|
|
4
4
|
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
5
5
|
import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
|
|
@@ -29,6 +29,7 @@ export declare class AdminProfileRO {
|
|
|
29
29
|
id: number;
|
|
30
30
|
createdAt: Date;
|
|
31
31
|
title: string;
|
|
32
|
+
timeZone: string;
|
|
32
33
|
legalTitle: string;
|
|
33
34
|
inn: string;
|
|
34
35
|
phoneForCustomers: string;
|
|
@@ -13,7 +13,7 @@ exports.AdminProfileRO = void 0;
|
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
|
-
const
|
|
16
|
+
const profile_action_ro_1 = require("./action/profile-action.ro");
|
|
17
17
|
const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
|
|
18
18
|
const partner_program_enum_1 = require("./enum/partner-program.enum");
|
|
19
19
|
const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
|
|
@@ -98,6 +98,10 @@ __decorate([
|
|
|
98
98
|
(0, class_transformer_1.Expose)(),
|
|
99
99
|
__metadata("design:type", String)
|
|
100
100
|
], AdminProfileRO.prototype, "title", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], AdminProfileRO.prototype, "timeZone", void 0);
|
|
101
105
|
__decorate([
|
|
102
106
|
(0, class_transformer_1.Expose)(),
|
|
103
107
|
__metadata("design:type", String)
|
|
@@ -184,7 +188,7 @@ __decorate([
|
|
|
184
188
|
], AdminProfileRO.prototype, "crm", void 0);
|
|
185
189
|
__decorate([
|
|
186
190
|
(0, class_transformer_1.Expose)(),
|
|
187
|
-
(0, class_transformer_1.Type)(() =>
|
|
191
|
+
(0, class_transformer_1.Type)(() => profile_action_ro_1.ProfileActionRO),
|
|
188
192
|
__metadata("design:type", Array)
|
|
189
193
|
], AdminProfileRO.prototype, "actions", void 0);
|
|
190
194
|
exports.AdminProfileRO = AdminProfileRO;
|
|
@@ -4,8 +4,8 @@ import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
|
|
|
4
4
|
import { PartnerProgramEnum } from './enum/partner-program.enum';
|
|
5
5
|
import { ProfileSalesStatus } from './enum/profile-sales-status.enum';
|
|
6
6
|
import { ProfileStatusEnum } from './enum/profile-step.enum';
|
|
7
|
-
import { ProfileTagEnum } from './enum/profile-tag.enum';
|
|
8
7
|
import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
|
|
8
|
+
import { ProfileTagEnum } from './enum/profile-tag.enum';
|
|
9
9
|
export declare class CreateProfileDto {
|
|
10
10
|
country: CountriesEnum;
|
|
11
11
|
salesStatus: ProfileSalesStatus;
|
|
@@ -28,7 +28,7 @@ __decorate([
|
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], CreateProfileDto.prototype, "country", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0,
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
32
|
(0, class_transformer_1.Expose)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], CreateProfileDto.prototype, "salesStatus", void 0);
|
|
@@ -87,12 +87,12 @@ __decorate([
|
|
|
87
87
|
__metadata("design:type", String)
|
|
88
88
|
], CreateProfileDto.prototype, "mainEmail", void 0);
|
|
89
89
|
__decorate([
|
|
90
|
-
(0, class_validator_1.
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
91
|
(0, class_transformer_1.Expose)(),
|
|
92
92
|
__metadata("design:type", Array)
|
|
93
93
|
], CreateProfileDto.prototype, "secondaryEmails", void 0);
|
|
94
94
|
__decorate([
|
|
95
|
-
(0, class_validator_1.
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
96
|
(0, class_transformer_1.Expose)(),
|
|
97
97
|
__metadata("design:type", Array)
|
|
98
98
|
], CreateProfileDto.prototype, "tags", void 0);
|
|
@@ -5,6 +5,7 @@ var ProfileSalesStatus;
|
|
|
5
5
|
(function (ProfileSalesStatus) {
|
|
6
6
|
ProfileSalesStatus["NEW"] = "new";
|
|
7
7
|
ProfileSalesStatus["NO_ANSWER"] = "no_answer";
|
|
8
|
+
ProfileSalesStatus["NO_CEO"] = "no_ceo";
|
|
8
9
|
ProfileSalesStatus["FOLLOW_UP"] = "follow_up";
|
|
9
10
|
ProfileSalesStatus["DEMO"] = "demo";
|
|
10
11
|
ProfileSalesStatus["THINKING"] = "thinking";
|
|
@@ -60,7 +60,7 @@ __decorate([
|
|
|
60
60
|
], QueryAdminProfileDto.prototype, "country", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, class_transformer_1.Expose)(),
|
|
63
|
-
__metadata("design:type",
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
64
|
], QueryAdminProfileDto.prototype, "city", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ProfileStatusEnum } from '../profile/enum/profile-step.enum';
|
|
1
2
|
declare class ProfileRO {
|
|
2
3
|
country: string;
|
|
3
4
|
title: string;
|
|
5
|
+
status: ProfileStatusEnum;
|
|
4
6
|
}
|
|
5
7
|
declare class CityRO {
|
|
6
8
|
title: string;
|
|
@@ -23,6 +25,7 @@ export declare class AdminQuestroomsListRO {
|
|
|
23
25
|
profileId: number;
|
|
24
26
|
title: string;
|
|
25
27
|
verified: boolean;
|
|
28
|
+
closed: boolean;
|
|
26
29
|
slug: string;
|
|
27
30
|
photo: string;
|
|
28
31
|
teaser: string;
|
|
@@ -13,6 +13,7 @@ exports.AdminQuestroomsListRO = void 0;
|
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
// questroom.ro.ts
|
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
16
17
|
class ProfileRO {
|
|
17
18
|
}
|
|
18
19
|
__decorate([
|
|
@@ -23,6 +24,10 @@ __decorate([
|
|
|
23
24
|
(0, class_transformer_1.Expose)(),
|
|
24
25
|
__metadata("design:type", String)
|
|
25
26
|
], ProfileRO.prototype, "title", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ProfileRO.prototype, "status", void 0);
|
|
26
31
|
class CityRO {
|
|
27
32
|
}
|
|
28
33
|
__decorate([
|
|
@@ -83,6 +88,10 @@ __decorate([
|
|
|
83
88
|
(0, class_transformer_1.Expose)(),
|
|
84
89
|
__metadata("design:type", Boolean)
|
|
85
90
|
], AdminQuestroomsListRO.prototype, "verified", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_transformer_1.Expose)(),
|
|
93
|
+
__metadata("design:type", Boolean)
|
|
94
|
+
], AdminQuestroomsListRO.prototype, "closed", void 0);
|
|
86
95
|
__decorate([
|
|
87
96
|
(0, class_transformer_1.Expose)(),
|
|
88
97
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type Bucket = 'day' | 'week' | 'month';
|
|
2
|
+
export type OrdersOverview = {
|
|
3
|
+
/** Всего бронирований за период */
|
|
4
|
+
ordersTotal: number;
|
|
5
|
+
/** Есть slotId (состоялось или запланировано) */
|
|
6
|
+
withSlotTotal: number;
|
|
7
|
+
/** Нет slotId (отменено) */
|
|
8
|
+
cancelledTotal: number;
|
|
9
|
+
/** Состоялось: slotId есть и utcDate < NOW() */
|
|
10
|
+
occurredTotal: number;
|
|
11
|
+
/** Планируется: slotId есть и utcDate >= NOW() */
|
|
12
|
+
plannedTotal: number;
|
|
13
|
+
/** Выручка (SUM(total)) только по заказам с slotId */
|
|
14
|
+
revenueTotal: number;
|
|
15
|
+
/** Оплачено (SUM(payed)) только по заказам с slotId */
|
|
16
|
+
payedTotal: number;
|
|
17
|
+
/** Доля отмен (cancelledTotal / ordersTotal), 0..1 */
|
|
18
|
+
cancelRate: number;
|
|
19
|
+
};
|
|
20
|
+
export type OrdersReportRO = {
|
|
21
|
+
overview: OrdersOverview;
|
|
22
|
+
dynamic: Array<{
|
|
23
|
+
period: string;
|
|
24
|
+
new_orders: number;
|
|
25
|
+
orders: number;
|
|
26
|
+
cancelled_orders: number;
|
|
27
|
+
}>;
|
|
28
|
+
payedBreakdown: Record<string, {
|
|
29
|
+
amount: number;
|
|
30
|
+
count: number;
|
|
31
|
+
}>;
|
|
32
|
+
sourcesPie: Array<{
|
|
33
|
+
name: string;
|
|
34
|
+
value: number;
|
|
35
|
+
}>;
|
|
36
|
+
questsPie: Array<{
|
|
37
|
+
name: string;
|
|
38
|
+
value: number;
|
|
39
|
+
}>;
|
|
40
|
+
utm: Array<{
|
|
41
|
+
utmSource: string;
|
|
42
|
+
utmMedium: string;
|
|
43
|
+
utmCampaign: string;
|
|
44
|
+
utmTerm: string;
|
|
45
|
+
orders: number;
|
|
46
|
+
confirmed: number;
|
|
47
|
+
cancelled: number;
|
|
48
|
+
total: string;
|
|
49
|
+
payed: string;
|
|
50
|
+
toPay: string;
|
|
51
|
+
}>;
|
|
52
|
+
upsellings: Array<{
|
|
53
|
+
name: string;
|
|
54
|
+
count: number;
|
|
55
|
+
amount: string;
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { FinanceitemTypeEnum } from '../financeitem/enum/financeitem-type.enum';
|
|
2
|
+
export type RevenueType = 'pnl' | 'cash';
|
|
3
|
+
export declare enum PeriodType {
|
|
4
|
+
MONTH = "month",
|
|
5
|
+
QUARTER = "quarter",
|
|
6
|
+
YEAR = "year"
|
|
7
|
+
}
|
|
8
|
+
export declare class DashboardQueryDto {
|
|
9
|
+
periods: string[];
|
|
10
|
+
locationId?: number;
|
|
11
|
+
questroomId?: number;
|
|
12
|
+
}
|
|
13
|
+
export type PnlRO = {
|
|
14
|
+
totals: {
|
|
15
|
+
income: number;
|
|
16
|
+
expense: number;
|
|
17
|
+
profit: number;
|
|
18
|
+
};
|
|
19
|
+
byMonth: Array<{
|
|
20
|
+
period: string;
|
|
21
|
+
income: number;
|
|
22
|
+
expense: number;
|
|
23
|
+
profit: number;
|
|
24
|
+
}>;
|
|
25
|
+
byLocation: Array<{
|
|
26
|
+
locationId: number | null;
|
|
27
|
+
locationTitle: string;
|
|
28
|
+
income: number;
|
|
29
|
+
expense: number;
|
|
30
|
+
profit: number;
|
|
31
|
+
}>;
|
|
32
|
+
byCashbox: Array<{
|
|
33
|
+
id: number | null;
|
|
34
|
+
title: string;
|
|
35
|
+
income: number;
|
|
36
|
+
expense: number;
|
|
37
|
+
}>;
|
|
38
|
+
items: Array<{
|
|
39
|
+
financeitemId: number | null;
|
|
40
|
+
name: string;
|
|
41
|
+
type: FinanceitemTypeEnum;
|
|
42
|
+
amount: number;
|
|
43
|
+
}>;
|
|
44
|
+
};
|