@passly-nl/data 1.0.4 → 1.1.0
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/index.d.mts +1116 -171
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -10
- package/src/adapter/AiChatAdapter.ts +37 -0
- package/src/adapter/AiUsageAdapter.ts +42 -0
- package/src/adapter/CashFlowAdapter.ts +70 -0
- package/src/adapter/ContentCalendarAdapter.ts +34 -0
- package/src/adapter/DiscountCodeAdapter.ts +33 -0
- package/src/adapter/EventAdapter.ts +8 -71
- package/src/adapter/EventStatisticsBuyersAdapter.ts +27 -0
- package/src/adapter/EventStatisticsOperationsAdapter.ts +41 -0
- package/src/adapter/EventStatisticsOverviewAdapter.ts +39 -0
- package/src/adapter/EventStatisticsSalesAdapter.ts +21 -0
- package/src/adapter/MarketingAttributionAdapter.ts +18 -0
- package/src/adapter/MerchantAdapter.ts +3 -1
- package/src/adapter/OrderAdapter.ts +6 -2
- package/src/adapter/ProductAdapter.ts +3 -0
- package/src/adapter/PublicShopAdapter.ts +1 -2
- package/src/adapter/RefundAdapter.ts +34 -0
- package/src/adapter/ReservationAdapter.ts +3 -2
- package/src/adapter/StatisticsEventsAdapter.ts +6 -2
- package/src/adapter/StatisticsGrowthAdapter.ts +38 -0
- package/src/adapter/StatisticsInsightsAdapter.ts +39 -0
- package/src/adapter/StatisticsOperationsAdapter.ts +47 -0
- package/src/adapter/SubscriptionAdapter.ts +32 -0
- package/src/adapter/TicketAdapter.ts +1 -0
- package/src/adapter/index.ts +16 -1
- package/src/dto/aiChat/AiChatConversationDto.ts +49 -0
- package/src/dto/aiChat/AiChatMessageDto.ts +73 -0
- package/src/dto/aiChat/AiChatToolCallDto.ts +58 -0
- package/src/dto/aiChat/index.ts +3 -0
- package/src/dto/aiUsage/AiUsageDto.ts +110 -0
- package/src/dto/aiUsage/AiUsageFeatureStatusDto.ts +39 -0
- package/src/dto/aiUsage/AiUsagePeriodDto.ts +80 -0
- package/src/dto/aiUsage/index.ts +3 -0
- package/src/dto/cashFlow/CashFlowDiscountDto.ts +40 -0
- package/src/dto/cashFlow/CashFlowDto.ts +99 -0
- package/src/dto/cashFlow/CashFlowPaymentDto.ts +50 -0
- package/src/dto/cashFlow/CashFlowPlatformCostDto.ts +29 -0
- package/src/dto/cashFlow/CashFlowRefundDto.ts +101 -0
- package/src/dto/cashFlow/CashFlowTimelineEventDto.ts +71 -0
- package/src/dto/cashFlow/index.ts +6 -0
- package/src/dto/contentCalendar/ContentCalendarItemCreatorDto.ts +69 -0
- package/src/dto/contentCalendar/ContentCalendarItemDto.ts +133 -0
- package/src/dto/contentCalendar/index.ts +2 -0
- package/src/dto/discountCode/DiscountCodeDto.ts +141 -0
- package/src/dto/discountCode/index.ts +1 -0
- package/src/dto/event/TimeSlotDto.ts +59 -0
- package/src/dto/event/index.ts +1 -9
- package/src/dto/eventStatistics/EventStatisticsAppTeamDto.ts +58 -0
- package/src/dto/{event/EventStatisticsBuyerTotalsDto.ts → eventStatistics/EventStatisticsBuyersOverviewDto.ts} +18 -18
- package/src/dto/{event → eventStatistics}/EventStatisticsFinancialDto.ts +11 -1
- package/src/dto/eventStatistics/EventStatisticsKpisDto.ts +119 -0
- package/src/dto/eventStatistics/EventStatisticsOperationsOverviewDto.ts +58 -0
- package/src/dto/eventStatistics/EventStatisticsSalesFlowChartDto.ts +66 -0
- package/src/dto/{event/EventStatisticsOrderTotalsDto.ts → eventStatistics/EventStatisticsStatusDto.ts} +1 -1
- package/src/dto/{event/EventStatisticsSwapTotalsDto.ts → eventStatistics/EventStatisticsSwapsDto.ts} +1 -1
- package/src/dto/eventStatistics/index.ts +9 -0
- package/src/dto/index.ts +10 -0
- package/src/dto/marketingAttribution/MarketingAttributionDto.ts +88 -0
- package/src/dto/marketingAttribution/index.ts +1 -0
- package/src/dto/merchant/MerchantDto.ts +39 -2
- package/src/dto/order/OrderDto.ts +42 -2
- package/src/dto/product/ProductDto.ts +32 -2
- package/src/dto/publicShop/PublicShopCartProductDto.ts +1 -11
- package/src/dto/publicShop/PublicShopTimeSlotDto.ts +1 -11
- package/src/dto/realtime/AiChatMessageCompletedMessageDto.ts +9 -0
- package/src/dto/realtime/ContentCalendarGenerationCompletedMessageDto.ts +8 -0
- package/src/dto/realtime/InsightCardCompletedMessageDto.ts +9 -0
- package/src/dto/realtime/index.ts +3 -0
- package/src/dto/refund/RefundDto.ts +91 -0
- package/src/dto/{event/EventStatisticsScansPerAppTeamDto.ts → refund/RefundInitiatorDto.ts} +2 -12
- package/src/dto/refund/RefundTicketRefDto.ts +28 -0
- package/src/dto/refund/index.ts +3 -0
- package/src/dto/reservation/ReservationDto.ts +12 -2
- package/src/dto/statistics/InsightDto.ts +130 -0
- package/src/dto/statistics/InsightSignalDto.ts +29 -0
- package/src/dto/statistics/InsightsResponseDto.ts +50 -0
- package/src/dto/statistics/MilestoneDto.ts +80 -0
- package/src/dto/statistics/StatisticsGrowthOverviewDto.ts +59 -0
- package/src/dto/statistics/StatisticsOperationsAppTeamDto.ts +78 -0
- package/src/dto/statistics/StatisticsOperationsOverviewDto.ts +58 -0
- package/src/dto/statistics/StatisticsOperationsTaskAssigneeDto.ts +48 -0
- package/src/dto/statistics/StatisticsOperationsTasksOverviewDto.ts +69 -0
- package/src/dto/statistics/index.ts +9 -0
- package/src/dto/subscription/MerchantSubscriptionDto.ts +91 -0
- package/src/dto/subscription/SubscriptionPlanDto.ts +80 -0
- package/src/dto/subscription/index.ts +2 -0
- package/src/dto/ticket/TicketDto.ts +11 -1
- package/src/service/AdminMerchantSubscriptionService.ts +34 -0
- package/src/service/MerchantAiChatService.ts +51 -0
- package/src/service/MerchantAiSettingsService.ts +14 -0
- package/src/service/MerchantAiUsageService.ts +32 -0
- package/src/service/MerchantDiscountCodeService.ts +42 -0
- package/src/service/MerchantDiscountCodesService.ts +45 -0
- package/src/service/MerchantEventContentCalendarService.ts +122 -0
- package/src/service/MerchantEventProductService.ts +34 -8
- package/src/service/MerchantEventProductsService.ts +3 -2
- package/src/service/MerchantEventStatisticsBuyersService.ts +86 -0
- package/src/service/MerchantEventStatisticsOperationsService.ts +56 -0
- package/src/service/MerchantEventStatisticsOverviewService.ts +35 -0
- package/src/service/MerchantEventStatisticsSalesService.ts +76 -0
- package/src/service/MerchantEventTimeSlotService.ts +51 -0
- package/src/service/MerchantEventTimeSlotsService.ts +33 -0
- package/src/service/MerchantOrderService.ts +28 -2
- package/src/service/MerchantStatisticsEventsService.ts +43 -1
- package/src/service/MerchantStatisticsGrowthService.ts +37 -0
- package/src/service/MerchantStatisticsInsightsService.ts +15 -0
- package/src/service/MerchantStatisticsOperationsService.ts +57 -0
- package/src/service/PublicOrderService.ts +30 -0
- package/src/service/PublicShopService.ts +25 -7
- package/src/service/index.ts +17 -2
- package/src/types/aiUsage.ts +5 -0
- package/src/types/auth.ts +2 -0
- package/src/types/cashFlow.ts +10 -0
- package/src/types/contentCalendar.ts +3 -0
- package/src/types/discountCode.ts +8 -0
- package/src/types/feature.ts +14 -0
- package/src/types/general.ts +11 -0
- package/src/types/index.ts +9 -0
- package/src/types/insights.ts +24 -0
- package/src/types/milestone.ts +7 -0
- package/src/types/refund.ts +12 -0
- package/src/types/subscription.ts +1 -0
- package/src/dto/event/EventStatisticsOrdersDto.ts +0 -30
- package/src/dto/event/EventStatisticsScanTotalsDto.ts +0 -38
- package/src/dto/event/EventStatisticsScansDto.ts +0 -40
- package/src/service/MerchantEventStatisticsService.ts +0 -65
- /package/src/dto/{event → eventStatistics}/EventStatisticsAttendanceDto.ts +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class TimeSlotDto {
|
|
6
|
+
get id(): string {
|
|
7
|
+
return this.#id;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set id(value: string) {
|
|
11
|
+
this.#id = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get label(): string | null {
|
|
15
|
+
return this.#label;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set label(value: string | null) {
|
|
19
|
+
this.#label = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get fromTime(): DateTime {
|
|
23
|
+
return this.#fromTime;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set fromTime(value: DateTime) {
|
|
27
|
+
this.#fromTime = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get toTime(): DateTime {
|
|
31
|
+
return this.#toTime;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set toTime(value: DateTime) {
|
|
35
|
+
this.#toTime = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get productCount(): number {
|
|
39
|
+
return this.#productCount;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set productCount(value: number) {
|
|
43
|
+
this.#productCount = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#id: string;
|
|
47
|
+
#label: string | null;
|
|
48
|
+
#fromTime: DateTime;
|
|
49
|
+
#toTime: DateTime;
|
|
50
|
+
#productCount: number;
|
|
51
|
+
|
|
52
|
+
constructor(id: string, label: string | null, fromTime: DateTime, toTime: DateTime, productCount: number) {
|
|
53
|
+
this.#id = id;
|
|
54
|
+
this.#label = label;
|
|
55
|
+
this.#fromTime = fromTime;
|
|
56
|
+
this.#toTime = toTime;
|
|
57
|
+
this.#productCount = productCount;
|
|
58
|
+
}
|
|
59
|
+
}
|
package/src/dto/event/index.ts
CHANGED
|
@@ -2,15 +2,6 @@ export * from './AppTeamDto';
|
|
|
2
2
|
export * from './EventAvailabilityDto';
|
|
3
3
|
export * from './EventCountersDto';
|
|
4
4
|
export * from './EventDto';
|
|
5
|
-
export * from './EventStatisticsAttendanceDto';
|
|
6
|
-
export * from './EventStatisticsBuyerTotalsDto';
|
|
7
|
-
export * from './EventStatisticsFinancialDto';
|
|
8
|
-
export * from './EventStatisticsOrdersDto';
|
|
9
|
-
export * from './EventStatisticsOrderTotalsDto';
|
|
10
|
-
export * from './EventStatisticsScansDto';
|
|
11
|
-
export * from './EventStatisticsScansPerAppTeamDto';
|
|
12
|
-
export * from './EventStatisticsScanTotalsDto';
|
|
13
|
-
export * from './EventStatisticsSwapTotalsDto';
|
|
14
5
|
export * from './ShopDesignDto';
|
|
15
6
|
export * from './ShopDto';
|
|
16
7
|
export * from './ShopElementDto';
|
|
@@ -25,3 +16,4 @@ export * from './StockOverviewDto';
|
|
|
25
16
|
export * from './StockOverviewItemDto';
|
|
26
17
|
export * from './StockPoolDto';
|
|
27
18
|
export * from './TicketTemplateDto';
|
|
19
|
+
export * from './TimeSlotDto';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class EventStatisticsAppTeamDto {
|
|
5
|
+
get id(): string {
|
|
6
|
+
return this.#id;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set id(value: string) {
|
|
10
|
+
this.#id = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get name(): string {
|
|
14
|
+
return this.#name;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set name(value: string) {
|
|
18
|
+
this.#name = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get scans(): number {
|
|
22
|
+
return this.#scans;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set scans(value: number) {
|
|
26
|
+
this.#scans = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get checkins(): number {
|
|
30
|
+
return this.#checkins;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set checkins(value: number) {
|
|
34
|
+
this.#checkins = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
get checkouts(): number {
|
|
38
|
+
return this.#checkouts;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set checkouts(value: number) {
|
|
42
|
+
this.#checkouts = value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#id: string;
|
|
46
|
+
#name: string;
|
|
47
|
+
#scans: number;
|
|
48
|
+
#checkins: number;
|
|
49
|
+
#checkouts: number;
|
|
50
|
+
|
|
51
|
+
constructor(id: string, name: string, scans: number, checkins: number, checkouts: number) {
|
|
52
|
+
this.#id = id;
|
|
53
|
+
this.#name = name;
|
|
54
|
+
this.#scans = scans;
|
|
55
|
+
this.#checkins = checkins;
|
|
56
|
+
this.#checkouts = checkouts;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { dto } from '@basmilius/http-client';
|
|
2
2
|
|
|
3
3
|
@dto
|
|
4
|
-
export class
|
|
5
|
-
get
|
|
6
|
-
return this.#
|
|
4
|
+
export class EventStatisticsBuyersOverviewDto {
|
|
5
|
+
get total(): number {
|
|
6
|
+
return this.#total;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
set
|
|
10
|
-
this.#
|
|
9
|
+
set total(value: number) {
|
|
10
|
+
this.#total = value;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
get
|
|
14
|
-
return this.#
|
|
13
|
+
get acquired(): number {
|
|
14
|
+
return this.#acquired;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
set
|
|
18
|
-
this.#
|
|
17
|
+
set acquired(value: number) {
|
|
18
|
+
this.#acquired = value;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
get doubting(): number {
|
|
@@ -34,25 +34,25 @@ export class EventStatisticsBuyerTotalsDto {
|
|
|
34
34
|
this.#returning = value;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
get
|
|
38
|
-
return this.#
|
|
37
|
+
get averageTickets(): number {
|
|
38
|
+
return this.#averageTickets;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
set
|
|
42
|
-
this.#
|
|
41
|
+
set averageTickets(value: number) {
|
|
42
|
+
this.#averageTickets = value;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
#total: number;
|
|
45
46
|
#acquired: number;
|
|
46
|
-
#averageTickets: number;
|
|
47
47
|
#doubting: number;
|
|
48
48
|
#returning: number;
|
|
49
|
-
#
|
|
49
|
+
#averageTickets: number;
|
|
50
50
|
|
|
51
|
-
constructor(
|
|
51
|
+
constructor(total: number, acquired: number, doubting: number, returning: number, averageTickets: number) {
|
|
52
|
+
this.#total = total;
|
|
52
53
|
this.#acquired = acquired;
|
|
53
|
-
this.#averageTickets = averageTickets;
|
|
54
54
|
this.#doubting = doubting;
|
|
55
55
|
this.#returning = returning;
|
|
56
|
-
this.#
|
|
56
|
+
this.#averageTickets = averageTickets;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -19,11 +19,21 @@ export class EventStatisticsFinancialDto {
|
|
|
19
19
|
this.#revenue = value;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
get netRevenue(): CostDto {
|
|
23
|
+
return this.#netRevenue;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set netRevenue(value: CostDto) {
|
|
27
|
+
this.#netRevenue = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
#platformCost: CostDto;
|
|
23
31
|
#revenue: CostDto;
|
|
32
|
+
#netRevenue: CostDto;
|
|
24
33
|
|
|
25
|
-
constructor(platformCost: CostDto, revenue: CostDto) {
|
|
34
|
+
constructor(platformCost: CostDto, revenue: CostDto, netRevenue: CostDto) {
|
|
26
35
|
this.#platformCost = platformCost;
|
|
27
36
|
this.#revenue = revenue;
|
|
37
|
+
this.#netRevenue = netRevenue;
|
|
28
38
|
}
|
|
29
39
|
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto } from '#data/dto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class EventStatisticsKpisDto {
|
|
6
|
+
get revenue(): CostDto {
|
|
7
|
+
return this.#revenue;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set revenue(value: CostDto) {
|
|
11
|
+
this.#revenue = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get platformCost(): CostDto {
|
|
15
|
+
return this.#platformCost;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set platformCost(value: CostDto) {
|
|
19
|
+
this.#platformCost = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get netRevenue(): CostDto {
|
|
23
|
+
return this.#netRevenue;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set netRevenue(value: CostDto) {
|
|
27
|
+
this.#netRevenue = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get totalOrders(): number {
|
|
31
|
+
return this.#totalOrders;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set totalOrders(value: number) {
|
|
35
|
+
this.#totalOrders = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get totalTicketsSold(): number {
|
|
39
|
+
return this.#totalTicketsSold;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set totalTicketsSold(value: number) {
|
|
43
|
+
this.#totalTicketsSold = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get ticketsCapacity(): number {
|
|
47
|
+
return this.#ticketsCapacity;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
set ticketsCapacity(value: number) {
|
|
51
|
+
this.#ticketsCapacity = value;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
get sellThroughRate(): number {
|
|
55
|
+
return this.#sellThroughRate;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
set sellThroughRate(value: number) {
|
|
59
|
+
this.#sellThroughRate = value;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
get attendanceRate(): number {
|
|
63
|
+
return this.#attendanceRate;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
set attendanceRate(value: number) {
|
|
67
|
+
this.#attendanceRate = value;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
get averageOrderValue(): CostDto {
|
|
71
|
+
return this.#averageOrderValue;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
set averageOrderValue(value: CostDto) {
|
|
75
|
+
this.#averageOrderValue = value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
get averageTicketPrice(): CostDto {
|
|
79
|
+
return this.#averageTicketPrice;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
set averageTicketPrice(value: CostDto) {
|
|
83
|
+
this.#averageTicketPrice = value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
get uniqueBuyers(): number {
|
|
87
|
+
return this.#uniqueBuyers;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
set uniqueBuyers(value: number) {
|
|
91
|
+
this.#uniqueBuyers = value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#revenue: CostDto;
|
|
95
|
+
#platformCost: CostDto;
|
|
96
|
+
#netRevenue: CostDto;
|
|
97
|
+
#totalOrders: number;
|
|
98
|
+
#totalTicketsSold: number;
|
|
99
|
+
#ticketsCapacity: number;
|
|
100
|
+
#sellThroughRate: number;
|
|
101
|
+
#attendanceRate: number;
|
|
102
|
+
#averageOrderValue: CostDto;
|
|
103
|
+
#averageTicketPrice: CostDto;
|
|
104
|
+
#uniqueBuyers: number;
|
|
105
|
+
|
|
106
|
+
constructor(revenue: CostDto, platformCost: CostDto, netRevenue: CostDto, totalOrders: number, totalTicketsSold: number, ticketsCapacity: number, sellThroughRate: number, attendanceRate: number, averageOrderValue: CostDto, averageTicketPrice: CostDto, uniqueBuyers: number) {
|
|
107
|
+
this.#revenue = revenue;
|
|
108
|
+
this.#platformCost = platformCost;
|
|
109
|
+
this.#netRevenue = netRevenue;
|
|
110
|
+
this.#totalOrders = totalOrders;
|
|
111
|
+
this.#totalTicketsSold = totalTicketsSold;
|
|
112
|
+
this.#ticketsCapacity = ticketsCapacity;
|
|
113
|
+
this.#sellThroughRate = sellThroughRate;
|
|
114
|
+
this.#attendanceRate = attendanceRate;
|
|
115
|
+
this.#averageOrderValue = averageOrderValue;
|
|
116
|
+
this.#averageTicketPrice = averageTicketPrice;
|
|
117
|
+
this.#uniqueBuyers = uniqueBuyers;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class EventStatisticsOperationsOverviewDto {
|
|
5
|
+
get totalScans(): number {
|
|
6
|
+
return this.#totalScans;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set totalScans(value: number) {
|
|
10
|
+
this.#totalScans = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get checkins(): number {
|
|
14
|
+
return this.#checkins;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set checkins(value: number) {
|
|
18
|
+
this.#checkins = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get checkouts(): number {
|
|
22
|
+
return this.#checkouts;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set checkouts(value: number) {
|
|
26
|
+
this.#checkouts = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get attendanceRate(): number {
|
|
30
|
+
return this.#attendanceRate;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set attendanceRate(value: number) {
|
|
34
|
+
this.#attendanceRate = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
get appTeams(): number {
|
|
38
|
+
return this.#appTeams;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set appTeams(value: number) {
|
|
42
|
+
this.#appTeams = value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#totalScans: number;
|
|
46
|
+
#checkins: number;
|
|
47
|
+
#checkouts: number;
|
|
48
|
+
#attendanceRate: number;
|
|
49
|
+
#appTeams: number;
|
|
50
|
+
|
|
51
|
+
constructor(totalScans: number, checkins: number, checkouts: number, attendanceRate: number, appTeams: number) {
|
|
52
|
+
this.#totalScans = totalScans;
|
|
53
|
+
this.#checkins = checkins;
|
|
54
|
+
this.#checkouts = checkouts;
|
|
55
|
+
this.#attendanceRate = attendanceRate;
|
|
56
|
+
this.#appTeams = appTeams;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class EventStatisticsSalesFlowChartSeriesDto {
|
|
6
|
+
get name(): string {
|
|
7
|
+
return this.#name;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set name(value: string) {
|
|
11
|
+
this.#name = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get data(): number[] {
|
|
15
|
+
return this.#data;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set data(value: number[]) {
|
|
19
|
+
this.#data = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get zIndex(): number {
|
|
23
|
+
return this.#zIndex;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set zIndex(value: number) {
|
|
27
|
+
this.#zIndex = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#name: string;
|
|
31
|
+
#data: number[];
|
|
32
|
+
#zIndex: number;
|
|
33
|
+
|
|
34
|
+
constructor(name: string, data: number[], zIndex: number) {
|
|
35
|
+
this.#name = name;
|
|
36
|
+
this.#data = data;
|
|
37
|
+
this.#zIndex = zIndex;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@dto
|
|
42
|
+
export class EventStatisticsSalesFlowChartDto {
|
|
43
|
+
get series(): EventStatisticsSalesFlowChartSeriesDto[] {
|
|
44
|
+
return this.#series;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
set series(value: EventStatisticsSalesFlowChartSeriesDto[]) {
|
|
48
|
+
this.#series = value;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
get categories(): DateTime[] {
|
|
52
|
+
return this.#categories;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
set categories(value: DateTime[]) {
|
|
56
|
+
this.#categories = value;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#series: EventStatisticsSalesFlowChartSeriesDto[];
|
|
60
|
+
#categories: DateTime[];
|
|
61
|
+
|
|
62
|
+
constructor(series: EventStatisticsSalesFlowChartSeriesDto[], categories: DateTime[]) {
|
|
63
|
+
this.#series = series;
|
|
64
|
+
this.#categories = categories;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './EventStatisticsAppTeamDto';
|
|
2
|
+
export * from './EventStatisticsAttendanceDto';
|
|
3
|
+
export * from './EventStatisticsBuyersOverviewDto';
|
|
4
|
+
export * from './EventStatisticsFinancialDto';
|
|
5
|
+
export * from './EventStatisticsKpisDto';
|
|
6
|
+
export * from './EventStatisticsOperationsOverviewDto';
|
|
7
|
+
export * from './EventStatisticsSalesFlowChartDto';
|
|
8
|
+
export * from './EventStatisticsStatusDto';
|
|
9
|
+
export * from './EventStatisticsSwapsDto';
|
package/src/dto/index.ts
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
export * from './address';
|
|
2
|
+
export * from './aiChat';
|
|
3
|
+
export * from './contentCalendar';
|
|
4
|
+
export * from './aiUsage';
|
|
2
5
|
export * from './auth';
|
|
6
|
+
export * from './cashFlow';
|
|
3
7
|
export * from './common';
|
|
8
|
+
export * from './discountCode';
|
|
4
9
|
export * from './emailTemplate';
|
|
5
10
|
export * from './event';
|
|
11
|
+
export * from './eventStatistics';
|
|
6
12
|
export * from './fileSystem';
|
|
7
13
|
export * from './finance';
|
|
14
|
+
export * from './marketingAttribution';
|
|
8
15
|
export * from './merchant';
|
|
9
16
|
export * from './order';
|
|
10
17
|
export * from './payment';
|
|
11
18
|
export * from './product';
|
|
12
19
|
export * from './publicPay';
|
|
13
20
|
export * from './publicShop';
|
|
21
|
+
export * from './realtime';
|
|
22
|
+
export * from './refund';
|
|
14
23
|
export * from './reservation';
|
|
15
24
|
export * from './service';
|
|
16
25
|
export * from './shortlink';
|
|
17
26
|
export * from './statistics';
|
|
27
|
+
export * from './subscription';
|
|
18
28
|
export * from './ticket';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class MarketingAttributionDto {
|
|
5
|
+
get utmSource(): string | null {
|
|
6
|
+
return this.#utmSource;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set utmSource(value: string | null) {
|
|
10
|
+
this.#utmSource = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get utmMedium(): string | null {
|
|
14
|
+
return this.#utmMedium;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set utmMedium(value: string | null) {
|
|
18
|
+
this.#utmMedium = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get utmCampaign(): string | null {
|
|
22
|
+
return this.#utmCampaign;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set utmCampaign(value: string | null) {
|
|
26
|
+
this.#utmCampaign = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get utmTerm(): string | null {
|
|
30
|
+
return this.#utmTerm;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set utmTerm(value: string | null) {
|
|
34
|
+
this.#utmTerm = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
get utmContent(): string | null {
|
|
38
|
+
return this.#utmContent;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set utmContent(value: string | null) {
|
|
42
|
+
this.#utmContent = value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
get gclid(): string | null {
|
|
46
|
+
return this.#gclid;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
set gclid(value: string | null) {
|
|
50
|
+
this.#gclid = value;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get fbclid(): string | null {
|
|
54
|
+
return this.#fbclid;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
set fbclid(value: string | null) {
|
|
58
|
+
this.#fbclid = value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
get referrer(): string | null {
|
|
62
|
+
return this.#referrer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
set referrer(value: string | null) {
|
|
66
|
+
this.#referrer = value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#utmSource: string | null;
|
|
70
|
+
#utmMedium: string | null;
|
|
71
|
+
#utmCampaign: string | null;
|
|
72
|
+
#utmTerm: string | null;
|
|
73
|
+
#utmContent: string | null;
|
|
74
|
+
#gclid: string | null;
|
|
75
|
+
#fbclid: string | null;
|
|
76
|
+
#referrer: string | null;
|
|
77
|
+
|
|
78
|
+
constructor(utmSource: string | null, utmMedium: string | null, utmCampaign: string | null, utmTerm: string | null, utmContent: string | null, gclid: string | null, fbclid: string | null, referrer: string | null) {
|
|
79
|
+
this.#utmSource = utmSource;
|
|
80
|
+
this.#utmMedium = utmMedium;
|
|
81
|
+
this.#utmCampaign = utmCampaign;
|
|
82
|
+
this.#utmTerm = utmTerm;
|
|
83
|
+
this.#utmContent = utmContent;
|
|
84
|
+
this.#gclid = gclid;
|
|
85
|
+
this.#fbclid = fbclid;
|
|
86
|
+
this.#referrer = referrer;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MarketingAttributionDto';
|