@passly-nl/data 1.0.0-beta.3 → 1.0.0-rc.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 +1931 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +17 -12
- package/src/adapter/AddressAdapter.ts +11 -11
- package/src/adapter/AuthAdapter.ts +27 -27
- package/src/adapter/BuyerAdapter.ts +15 -15
- package/src/adapter/CommonAdapter.ts +5 -5
- package/src/adapter/DateTimeAdapter.ts +7 -1
- package/src/adapter/EventAdapter.ts +134 -134
- package/src/adapter/FileSystemAdapter.ts +6 -6
- package/src/adapter/FinanceAdapter.ts +25 -25
- package/src/adapter/FluxAdapter.ts +9 -9
- package/src/adapter/MerchantAdapter.ts +47 -47
- package/src/adapter/MerchantDashboardAdapter.ts +18 -18
- package/src/adapter/OrderAdapter.ts +36 -36
- package/src/adapter/PaymentAdapter.ts +29 -29
- package/src/adapter/ProductAdapter.ts +17 -17
- package/src/adapter/PublicPayAdapter.ts +6 -6
- package/src/adapter/PublicShopAdapter.ts +82 -82
- package/src/adapter/ReservationAdapter.ts +18 -18
- package/src/adapter/StatisticsAdapter.ts +13 -0
- package/src/adapter/StatisticsBuyersAdapter.ts +28 -0
- package/src/adapter/StatisticsEventsAdapter.ts +16 -0
- package/src/adapter/StatisticsOverviewAdapter.ts +85 -0
- package/src/adapter/StatisticsSalesAdapter.ts +33 -0
- package/src/adapter/TicketAdapter.ts +17 -17
- package/src/adapter/index.ts +5 -0
- package/src/dto/auth/UserDto.ts +1 -1
- package/src/dto/auth/UserTokenDto.ts +2 -2
- package/src/dto/event/EventDto.ts +2 -2
- package/src/dto/event/EventStatisticsFinancialDto.ts +1 -1
- package/src/dto/event/EventStatisticsOrdersDto.ts +1 -1
- package/src/dto/event/EventStatisticsScansDto.ts +1 -1
- package/src/dto/event/ShopDto.ts +2 -2
- package/src/dto/event/ShopElementButtonDto.ts +1 -1
- package/src/dto/event/ShopElementDividerDto.ts +1 -1
- package/src/dto/event/ShopElementDto.ts +1 -1
- package/src/dto/event/ShopElementHeadingDto.ts +2 -2
- package/src/dto/event/ShopElementNoticeDto.ts +2 -2
- package/src/dto/event/ShopElementProductDto.ts +1 -1
- package/src/dto/event/ShopElementTextDto.ts +1 -1
- package/src/dto/event/StockOverviewDto.ts +1 -1
- package/src/dto/event/StockOverviewItemDto.ts +1 -1
- package/src/dto/event/TicketTemplateDto.ts +2 -2
- package/src/dto/finance/FinanceOverviewDto.ts +1 -1
- package/src/dto/finance/InvoiceDto.ts +2 -2
- package/src/dto/finance/InvoiceLineDto.ts +2 -2
- package/src/dto/index.ts +1 -0
- package/src/dto/merchant/ContractDto.ts +1 -1
- package/src/dto/merchant/InvitationDto.ts +2 -2
- package/src/dto/merchant/MerchantDashboardKeyMetricsDto.ts +1 -1
- package/src/dto/merchant/MerchantDashboardUpcomingEventDto.ts +2 -2
- package/src/dto/merchant/MerchantDto.ts +1 -1
- package/src/dto/merchant/MerchantUserDto.ts +1 -1
- package/src/dto/order/BuyerDto.ts +2 -2
- package/src/dto/order/OrderDto.ts +2 -2
- package/src/dto/order/OrderLineDto.ts +1 -1
- package/src/dto/payment/PaymentProviderDto.ts +2 -2
- package/src/dto/payment/TransactionDto.ts +2 -2
- package/src/dto/product/ProductDto.ts +2 -2
- package/src/dto/publicShop/PublicShopDto.ts +2 -2
- package/src/dto/publicShop/PublicShopElementButtonDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementDividerDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementHeadingDto.ts +2 -2
- package/src/dto/publicShop/PublicShopElementNoticeDto.ts +2 -2
- package/src/dto/publicShop/PublicShopElementProductDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementTextDto.ts +1 -1
- package/src/dto/publicShop/PublicShopEventDto.ts +2 -2
- package/src/dto/publicShop/PublicShopProductDto.ts +2 -2
- package/src/dto/publicShop/PublicShopReservationDto.ts +1 -1
- package/src/dto/publicShop/PublicShopReservationProductDetailsDto.ts +1 -1
- package/src/dto/publicShop/PublicShopReservationProductDto.ts +1 -1
- package/src/dto/reservation/ReservationDto.ts +1 -1
- package/src/dto/reservation/ReservationItemDto.ts +1 -1
- package/src/dto/reservation/ReservationProductDto.ts +1 -1
- package/src/dto/statistics/StatisticsBuyersOverviewDto.ts +69 -0
- package/src/dto/statistics/StatisticsBuyersRankedDto.ts +69 -0
- package/src/dto/statistics/StatisticsEventsOverviewDto.ts +59 -0
- package/src/dto/statistics/StatisticsOverviewBestRevenueMonthDto.ts +50 -0
- package/src/dto/statistics/StatisticsOverviewEventPerformanceDto.ts +29 -0
- package/src/dto/statistics/StatisticsOverviewEventPerformanceEventDto.ts +141 -0
- package/src/dto/statistics/StatisticsOverviewEventPerformanceSummaryDto.ts +59 -0
- package/src/dto/statistics/StatisticsOverviewKPIsDto.ts +70 -0
- package/src/dto/statistics/StatisticsOverviewKPIsTotalEventsHostedDto.ts +48 -0
- package/src/dto/statistics/StatisticsOverviewKPIsTotalRevenueDto.ts +30 -0
- package/src/dto/statistics/StatisticsOverviewKPIsTotalTicketsSoldDto.ts +29 -0
- package/src/dto/statistics/StatisticsSalesLifetimeTotalsDto.ts +59 -0
- package/src/dto/statistics/StatisticsSalesPurchaseBehaviorDto.ts +49 -0
- package/src/dto/statistics/StatisticsSalesTransactionSuccessRateDto.ts +39 -0
- package/src/dto/statistics/StatisticsTrendDto.ts +38 -0
- package/src/dto/statistics/index.ts +15 -0
- package/src/dto/ticket/TicketDto.ts +2 -2
- package/src/service/AuthService.ts +6 -6
- package/src/service/InvitationService.ts +5 -5
- package/src/service/MeService.ts +10 -10
- package/src/service/MerchantBuyerService.ts +5 -5
- package/src/service/MerchantBuyersService.ts +3 -3
- package/src/service/MerchantDashboardService.ts +4 -4
- package/src/service/MerchantEventProductService.ts +5 -5
- package/src/service/MerchantEventProductsService.ts +5 -5
- package/src/service/MerchantEventService.ts +12 -12
- package/src/service/MerchantEventShopService.ts +7 -7
- package/src/service/MerchantEventShopsService.ts +5 -5
- package/src/service/MerchantEventStatisticsService.ts +8 -8
- package/src/service/MerchantEventStockPoolsService.ts +6 -6
- package/src/service/MerchantEventTicketTemplateService.ts +8 -8
- package/src/service/MerchantEventTicketTemplatesService.ts +7 -7
- package/src/service/MerchantEventsService.ts +4 -4
- package/src/service/MerchantFinanceInvoiceService.ts +3 -3
- package/src/service/MerchantFinanceInvoicesService.ts +3 -3
- package/src/service/MerchantFinanceService.ts +6 -6
- package/src/service/MerchantOrderService.ts +4 -4
- package/src/service/MerchantOrdersService.ts +3 -3
- package/src/service/MerchantService.ts +12 -12
- package/src/service/MerchantStatisticsBuyersService.ts +87 -0
- package/src/service/MerchantStatisticsEventsService.ts +15 -0
- package/src/service/MerchantStatisticsOverviewService.ts +56 -0
- package/src/service/MerchantStatisticsSalesService.ts +67 -0
- package/src/service/MerchantStatisticsService.ts +2 -2
- package/src/service/MerchantTicketService.ts +3 -3
- package/src/service/MerchantTicketsService.ts +3 -3
- package/src/service/MerchantUsersService.ts +5 -5
- package/src/service/MerchantsService.ts +3 -3
- package/src/service/PublicOrderService.ts +5 -5
- package/src/service/PublicShopService.ts +6 -6
- package/src/service/ReservationService.ts +3 -3
- package/src/service/ServicesService.ts +1 -1
- package/src/service/UiSelectOptionsService.ts +13 -3
- package/src/service/index.ts +4 -0
- package/src/types/event.ts +5 -0
- package/dist/adapter/AddressAdapter.d.ts +0 -3
- package/dist/adapter/AuthAdapter.d.ts +0 -6
- package/dist/adapter/BuyerAdapter.d.ts +0 -4
- package/dist/adapter/CommonAdapter.d.ts +0 -4
- package/dist/adapter/DateTimeAdapter.d.ts +0 -4
- package/dist/adapter/EventAdapter.d.ts +0 -22
- package/dist/adapter/FileSystemAdapter.d.ts +0 -4
- package/dist/adapter/FinanceAdapter.d.ts +0 -6
- package/dist/adapter/FluxAdapter.d.ts +0 -6
- package/dist/adapter/MerchantAdapter.d.ts +0 -8
- package/dist/adapter/MerchantDashboardAdapter.d.ts +0 -5
- package/dist/adapter/OrderAdapter.d.ts +0 -7
- package/dist/adapter/PaymentAdapter.d.ts +0 -7
- package/dist/adapter/ProductAdapter.d.ts +0 -4
- package/dist/adapter/PublicPayAdapter.d.ts +0 -4
- package/dist/adapter/PublicShopAdapter.d.ts +0 -13
- package/dist/adapter/ReservationAdapter.d.ts +0 -6
- package/dist/adapter/TicketAdapter.d.ts +0 -4
- package/dist/adapter/index.d.ts +0 -18
- package/dist/dto/address/AddressDto.d.ts +0 -20
- package/dist/dto/address/index.d.ts +0 -1
- package/dist/dto/auth/TotpStateDto.d.ts +0 -10
- package/dist/dto/auth/UserDto.d.ts +0 -23
- package/dist/dto/auth/UserTokenDto.d.ts +0 -23
- package/dist/dto/auth/index.d.ts +0 -3
- package/dist/dto/common/StatusResponseDto.d.ts +0 -8
- package/dist/dto/common/index.d.ts +0 -1
- package/dist/dto/event/EventAvailabilityDto.d.ts +0 -14
- package/dist/dto/event/EventCountersDto.d.ts +0 -10
- package/dist/dto/event/EventDto.d.ts +0 -29
- package/dist/dto/event/EventStatisticsAttendanceDto.d.ts +0 -10
- package/dist/dto/event/EventStatisticsBuyerTotalsDto.d.ts +0 -14
- package/dist/dto/event/EventStatisticsFinancialDto.d.ts +0 -9
- package/dist/dto/event/EventStatisticsOrderTotalsDto.d.ts +0 -12
- package/dist/dto/event/EventStatisticsOrdersDto.d.ts +0 -10
- package/dist/dto/event/EventStatisticsScanTotalsDto.d.ts +0 -10
- package/dist/dto/event/EventStatisticsScansDto.d.ts +0 -12
- package/dist/dto/event/EventStatisticsScansPerAppTeamDto.d.ts +0 -10
- package/dist/dto/event/EventStatisticsSwapTotalsDto.d.ts +0 -10
- package/dist/dto/event/ShopDesignDto.d.ts +0 -10
- package/dist/dto/event/ShopDto.d.ts +0 -35
- package/dist/dto/event/ShopElementButtonDto.d.ts +0 -12
- package/dist/dto/event/ShopElementDividerDto.d.ts +0 -10
- package/dist/dto/event/ShopElementDto.d.ts +0 -9
- package/dist/dto/event/ShopElementHeadingDto.d.ts +0 -10
- package/dist/dto/event/ShopElementNoticeDto.d.ts +0 -15
- package/dist/dto/event/ShopElementProductDto.d.ts +0 -7
- package/dist/dto/event/ShopElementTextDto.d.ts +0 -7
- package/dist/dto/event/StockOverviewDto.d.ts +0 -13
- package/dist/dto/event/StockOverviewItemDto.d.ts +0 -13
- package/dist/dto/event/StockPoolDto.d.ts +0 -25
- package/dist/dto/event/TicketTemplateDto.d.ts +0 -18
- package/dist/dto/event/index.d.ts +0 -25
- package/dist/dto/fileSystem/PictureDto.d.ts +0 -10
- package/dist/dto/fileSystem/index.d.ts +0 -1
- package/dist/dto/finance/FinanceOverviewDto.d.ts +0 -13
- package/dist/dto/finance/InvoiceDto.d.ts +0 -25
- package/dist/dto/finance/InvoiceLineDto.d.ts +0 -17
- package/dist/dto/finance/index.d.ts +0 -3
- package/dist/dto/index.d.ts +0 -14
- package/dist/dto/merchant/ContractDto.d.ts +0 -16
- package/dist/dto/merchant/InvitationDto.d.ts +0 -25
- package/dist/dto/merchant/MerchantDashboardKeyMetricsDto.d.ts +0 -22
- package/dist/dto/merchant/MerchantDashboardUpcomingEventDto.d.ts +0 -25
- package/dist/dto/merchant/MerchantDto.d.ts +0 -32
- package/dist/dto/merchant/MerchantUserDto.d.ts +0 -14
- package/dist/dto/merchant/VatNumberDto.d.ts +0 -19
- package/dist/dto/merchant/index.d.ts +0 -7
- package/dist/dto/order/BuyerDto.d.ts +0 -27
- package/dist/dto/order/OrderDto.d.ts +0 -37
- package/dist/dto/order/OrderLineDto.d.ts +0 -20
- package/dist/dto/order/OrderPaymentProviderDto.d.ts +0 -8
- package/dist/dto/order/OrderProductDto.d.ts +0 -12
- package/dist/dto/order/index.d.ts +0 -5
- package/dist/dto/payment/CostDto.d.ts +0 -16
- package/dist/dto/payment/PaymentMethodDto.d.ts +0 -10
- package/dist/dto/payment/PaymentProviderDto.d.ts +0 -12
- package/dist/dto/payment/TransactionDto.d.ts +0 -24
- package/dist/dto/payment/index.d.ts +0 -4
- package/dist/dto/product/ProductDto.d.ts +0 -30
- package/dist/dto/product/index.d.ts +0 -1
- package/dist/dto/publicPay/PublicPaymentMethodDto.d.ts +0 -10
- package/dist/dto/publicPay/index.d.ts +0 -1
- package/dist/dto/publicShop/PublicShopCartProductDto.d.ts +0 -10
- package/dist/dto/publicShop/PublicShopDesignDto.d.ts +0 -10
- package/dist/dto/publicShop/PublicShopDto.d.ts +0 -31
- package/dist/dto/publicShop/PublicShopElementButtonDto.d.ts +0 -12
- package/dist/dto/publicShop/PublicShopElementDividerDto.d.ts +0 -10
- package/dist/dto/publicShop/PublicShopElementDto.d.ts +0 -9
- package/dist/dto/publicShop/PublicShopElementHeadingDto.d.ts +0 -10
- package/dist/dto/publicShop/PublicShopElementNoticeDto.d.ts +0 -15
- package/dist/dto/publicShop/PublicShopElementProductDto.d.ts +0 -7
- package/dist/dto/publicShop/PublicShopElementTextDto.d.ts +0 -7
- package/dist/dto/publicShop/PublicShopEventDto.d.ts +0 -16
- package/dist/dto/publicShop/PublicShopMerchantDto.d.ts +0 -8
- package/dist/dto/publicShop/PublicShopProductDto.d.ts +0 -28
- package/dist/dto/publicShop/PublicShopReservationDto.d.ts +0 -14
- package/dist/dto/publicShop/PublicShopReservationProductDetailsDto.d.ts +0 -13
- package/dist/dto/publicShop/PublicShopReservationProductDto.d.ts +0 -9
- package/dist/dto/publicShop/PublicShopTimeSlotDto.d.ts +0 -15
- package/dist/dto/publicShop/index.d.ts +0 -17
- package/dist/dto/reservation/ReservationDto.d.ts +0 -16
- package/dist/dto/reservation/ReservationItemDto.d.ts +0 -9
- package/dist/dto/reservation/ReservationProductDto.d.ts +0 -13
- package/dist/dto/reservation/index.d.ts +0 -3
- package/dist/dto/ticket/TicketDto.d.ts +0 -31
- package/dist/dto/ticket/index.d.ts +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -4
- package/dist/index.js.map +0 -136
- package/dist/service/AuthService.d.ts +0 -11
- package/dist/service/InvitationService.d.ts +0 -7
- package/dist/service/MeService.d.ts +0 -12
- package/dist/service/MerchantBuyerService.d.ts +0 -7
- package/dist/service/MerchantBuyersService.d.ts +0 -5
- package/dist/service/MerchantDashboardService.d.ts +0 -6
- package/dist/service/MerchantEventProductService.d.ts +0 -10
- package/dist/service/MerchantEventProductsService.d.ts +0 -8
- package/dist/service/MerchantEventService.d.ts +0 -13
- package/dist/service/MerchantEventShopService.d.ts +0 -9
- package/dist/service/MerchantEventShopsService.d.ts +0 -8
- package/dist/service/MerchantEventStatisticsService.d.ts +0 -10
- package/dist/service/MerchantEventStockPoolsService.d.ts +0 -9
- package/dist/service/MerchantEventTicketTemplateService.d.ts +0 -11
- package/dist/service/MerchantEventTicketTemplatesService.d.ts +0 -9
- package/dist/service/MerchantEventsService.d.ts +0 -7
- package/dist/service/MerchantFinanceInvoiceService.d.ts +0 -6
- package/dist/service/MerchantFinanceInvoicesService.d.ts +0 -5
- package/dist/service/MerchantFinanceService.d.ts +0 -8
- package/dist/service/MerchantOrderService.d.ts +0 -9
- package/dist/service/MerchantOrdersService.d.ts +0 -5
- package/dist/service/MerchantService.d.ts +0 -14
- package/dist/service/MerchantStatisticsService.d.ts +0 -5
- package/dist/service/MerchantTicketService.d.ts +0 -7
- package/dist/service/MerchantTicketsService.d.ts +0 -5
- package/dist/service/MerchantUsersService.d.ts +0 -7
- package/dist/service/MerchantsService.d.ts +0 -5
- package/dist/service/PublicOrderService.d.ts +0 -7
- package/dist/service/PublicShopService.d.ts +0 -9
- package/dist/service/ReservationService.d.ts +0 -6
- package/dist/service/ServicesService.d.ts +0 -9
- package/dist/service/UiSelectOptionsService.d.ts +0 -6
- package/dist/service/index.d.ts +0 -32
- package/dist/types/auth.d.ts +0 -47
- package/dist/types/event.d.ts +0 -28
- package/dist/types/finance.d.ts +0 -14
- package/dist/types/general.d.ts +0 -19
- package/dist/types/index.d.ts +0 -9
- package/dist/types/order.d.ts +0 -7
- package/dist/types/payment.d.ts +0 -11
- package/dist/types/product.d.ts +0 -2
- package/dist/types/publicShop.d.ts +0 -7
- package/dist/types/ticket.d.ts +0 -12
- package/dist/util/emptyNull.d.ts +0 -1
- package/dist/util/index.d.ts +0 -4
- package/dist/util/jsonBlob.d.ts +0 -1
- package/dist/util/optional.d.ts +0 -4
- package/dist/util/optionalArray.d.ts +0 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
import type { CostDto, PictureDto } from '#data/dto';
|
|
4
|
+
import type { EventStatisticsStatus } from '#data/types';
|
|
5
|
+
|
|
6
|
+
@dto
|
|
7
|
+
export class StatisticsOverviewEventPerformanceEventDto {
|
|
8
|
+
get id(): string {
|
|
9
|
+
return this.#id;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
set id(value: string) {
|
|
13
|
+
this.#id = value;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get name(): string {
|
|
17
|
+
return this.#name;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
set name(value: string) {
|
|
21
|
+
this.#name = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get startsOn(): DateTime {
|
|
25
|
+
return this.#startsOn;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set startsOn(value: DateTime) {
|
|
29
|
+
this.#startsOn = value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get endsOn(): DateTime {
|
|
33
|
+
return this.#endsOn;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set endsOn(value: DateTime) {
|
|
37
|
+
this.#endsOn = value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get headerFile(): PictureDto | null {
|
|
41
|
+
return this.#headerFile;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
set headerFile(value: PictureDto | null) {
|
|
45
|
+
this.#headerFile = value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
get status(): EventStatisticsStatus {
|
|
49
|
+
return this.#status;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set status(value: EventStatisticsStatus) {
|
|
53
|
+
this.#status = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get revenue(): CostDto {
|
|
57
|
+
return this.#revenue;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
set revenue(value: CostDto) {
|
|
61
|
+
this.#revenue = value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get ticketsSold(): number {
|
|
65
|
+
return this.#ticketsSold;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
set ticketsSold(value: number) {
|
|
69
|
+
this.#ticketsSold = value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get ticketsTotal(): number {
|
|
73
|
+
return this.#ticketsTotal;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
set ticketsTotal(value: number) {
|
|
77
|
+
this.#ticketsTotal = value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get sellThroughRate(): number {
|
|
81
|
+
return this.#sellThroughRate;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set sellThroughRate(value: number) {
|
|
85
|
+
this.#sellThroughRate = value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
get attendanceRate(): number {
|
|
89
|
+
return this.#attendanceRate;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
set attendanceRate(value: number) {
|
|
93
|
+
this.#attendanceRate = value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
get attendedCount(): number {
|
|
97
|
+
return this.#attendedCount;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
set attendedCount(value: number) {
|
|
101
|
+
this.#attendedCount = value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
get ordersCount(): number {
|
|
105
|
+
return this.#ordersCount;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
set ordersCount(value: number) {
|
|
109
|
+
this.#ordersCount = value;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#id: string;
|
|
113
|
+
#name: string;
|
|
114
|
+
#startsOn: DateTime;
|
|
115
|
+
#endsOn: DateTime;
|
|
116
|
+
#headerFile: PictureDto | null;
|
|
117
|
+
#status: EventStatisticsStatus;
|
|
118
|
+
#revenue: CostDto;
|
|
119
|
+
#ticketsSold: number;
|
|
120
|
+
#ticketsTotal: number;
|
|
121
|
+
#sellThroughRate: number;
|
|
122
|
+
#attendanceRate: number;
|
|
123
|
+
#attendedCount: number;
|
|
124
|
+
#ordersCount: number;
|
|
125
|
+
|
|
126
|
+
constructor(id: string, name: string, startsOn: DateTime, endsOn: DateTime, headerFile: PictureDto | null, status: EventStatisticsStatus, revenue: CostDto, ticketsSold: number, ticketsTotal: number, sellThroughRate: number, attendanceRate: number, attendedCount: number, ordersCount: number) {
|
|
127
|
+
this.#id = id;
|
|
128
|
+
this.#name = name;
|
|
129
|
+
this.#startsOn = startsOn;
|
|
130
|
+
this.#endsOn = endsOn;
|
|
131
|
+
this.#headerFile = headerFile;
|
|
132
|
+
this.#status = status;
|
|
133
|
+
this.#revenue = revenue;
|
|
134
|
+
this.#ticketsSold = ticketsSold;
|
|
135
|
+
this.#ticketsTotal = ticketsTotal;
|
|
136
|
+
this.#sellThroughRate = sellThroughRate;
|
|
137
|
+
this.#attendanceRate = attendanceRate;
|
|
138
|
+
this.#attendedCount = attendedCount;
|
|
139
|
+
this.#ordersCount = ordersCount;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto } from '#data/dto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsOverviewEventPerformanceSummaryDto {
|
|
6
|
+
get totalRevenue(): CostDto {
|
|
7
|
+
return this.#totalRevenue;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set totalRevenue(value: CostDto) {
|
|
11
|
+
this.#totalRevenue = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get totalTicketsSold(): number {
|
|
15
|
+
return this.#totalTicketsSold;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set totalTicketsSold(value: number) {
|
|
19
|
+
this.#totalTicketsSold = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get totalTicketsCapacity(): number {
|
|
23
|
+
return this.#totalTicketsCapacity;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set totalTicketsCapacity(value: number) {
|
|
27
|
+
this.#totalTicketsCapacity = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get averageSellThroughRate(): number {
|
|
31
|
+
return this.#averageSellThroughRate;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set averageSellThroughRate(value: number) {
|
|
35
|
+
this.#averageSellThroughRate = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get averageAttendanceRate(): number {
|
|
39
|
+
return this.#averageAttendanceRate;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set averageAttendanceRate(value: number) {
|
|
43
|
+
this.#averageAttendanceRate = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#totalRevenue: CostDto;
|
|
47
|
+
#totalTicketsSold: number;
|
|
48
|
+
#totalTicketsCapacity: number;
|
|
49
|
+
#averageSellThroughRate: number;
|
|
50
|
+
#averageAttendanceRate: number;
|
|
51
|
+
|
|
52
|
+
constructor(totalRevenue: CostDto, totalTicketsSold: number, totalTicketsCapacity: number, averageSellThroughRate: number, averageAttendanceRate: number) {
|
|
53
|
+
this.#totalRevenue = totalRevenue;
|
|
54
|
+
this.#totalTicketsSold = totalTicketsSold;
|
|
55
|
+
this.#totalTicketsCapacity = totalTicketsCapacity;
|
|
56
|
+
this.#averageSellThroughRate = averageSellThroughRate;
|
|
57
|
+
this.#averageAttendanceRate = averageAttendanceRate;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto, StatisticsOverviewKPIsTotalEventsHostedDto, StatisticsOverviewKPIsTotalRevenueDto, StatisticsOverviewKPIsTotalTicketsSoldDto } from '#data/dto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsOverviewKPIsDto {
|
|
6
|
+
get totalRevenue(): StatisticsOverviewKPIsTotalRevenueDto {
|
|
7
|
+
return this.#totalRevenue;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set totalRevenue(value: StatisticsOverviewKPIsTotalRevenueDto) {
|
|
11
|
+
this.#totalRevenue = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get totalTicketsSold(): StatisticsOverviewKPIsTotalTicketsSoldDto {
|
|
15
|
+
return this.#totalTicketsSold;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set totalTicketsSold(value: StatisticsOverviewKPIsTotalTicketsSoldDto) {
|
|
19
|
+
this.#totalTicketsSold = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get totalEventsHosted(): StatisticsOverviewKPIsTotalEventsHostedDto {
|
|
23
|
+
return this.#totalEventsHosted;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set totalEventsHosted(value: StatisticsOverviewKPIsTotalEventsHostedDto) {
|
|
27
|
+
this.#totalEventsHosted = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get totalCustomers(): number {
|
|
31
|
+
return this.#totalCustomers;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set totalCustomers(value: number) {
|
|
35
|
+
this.#totalCustomers = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get averageOrderValue(): CostDto {
|
|
39
|
+
return this.#averageOrderValue;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set averageOrderValue(value: CostDto) {
|
|
43
|
+
this.#averageOrderValue = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get averageAttendanceRate(): number {
|
|
47
|
+
return this.#averageAttendanceRate;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
set averageAttendanceRate(value: number) {
|
|
51
|
+
this.#averageAttendanceRate = value;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#totalRevenue: StatisticsOverviewKPIsTotalRevenueDto;
|
|
55
|
+
#totalTicketsSold: StatisticsOverviewKPIsTotalTicketsSoldDto;
|
|
56
|
+
#totalEventsHosted: StatisticsOverviewKPIsTotalEventsHostedDto;
|
|
57
|
+
#totalCustomers: number;
|
|
58
|
+
#averageOrderValue: CostDto;
|
|
59
|
+
#averageAttendanceRate: number;
|
|
60
|
+
|
|
61
|
+
constructor(totalRevenue: StatisticsOverviewKPIsTotalRevenueDto, totalTicketsSold: StatisticsOverviewKPIsTotalTicketsSoldDto, totalEventsHosted: StatisticsOverviewKPIsTotalEventsHostedDto, totalCustomers: number, averageOrderValue: CostDto, averageAttendanceRate: number) {
|
|
62
|
+
this.#totalRevenue = totalRevenue;
|
|
63
|
+
this.#totalTicketsSold = totalTicketsSold;
|
|
64
|
+
this.#totalEventsHosted = totalEventsHosted;
|
|
65
|
+
this.#totalCustomers = totalCustomers;
|
|
66
|
+
this.#averageOrderValue = averageOrderValue;
|
|
67
|
+
this.#averageAttendanceRate = averageAttendanceRate;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class StatisticsOverviewKPIsTotalEventsHostedDto {
|
|
5
|
+
get active(): number {
|
|
6
|
+
return this.#active;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set active(value: number) {
|
|
10
|
+
this.#active = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get concluded(): number {
|
|
14
|
+
return this.#concluded;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set concluded(value: number) {
|
|
18
|
+
this.#concluded = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get total(): number {
|
|
22
|
+
return this.#total;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set total(value: number) {
|
|
26
|
+
this.#total = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get upcoming(): number {
|
|
30
|
+
return this.#upcoming;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set upcoming(value: number) {
|
|
34
|
+
this.#upcoming = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#active: number;
|
|
38
|
+
#concluded: number;
|
|
39
|
+
#total: number;
|
|
40
|
+
#upcoming: number;
|
|
41
|
+
|
|
42
|
+
constructor(active: number, concluded: number, total: number, upcoming: number) {
|
|
43
|
+
this.#active = active;
|
|
44
|
+
this.#concluded = concluded;
|
|
45
|
+
this.#total = total;
|
|
46
|
+
this.#upcoming = upcoming;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto } from '#data/dto';
|
|
3
|
+
import type { StatisticsTrendDto } from './StatisticsTrendDto';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class StatisticsOverviewKPIsTotalRevenueDto {
|
|
7
|
+
get lifetime(): CostDto {
|
|
8
|
+
return this.#lifetime;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set lifetime(value: CostDto) {
|
|
12
|
+
this.#lifetime = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get trend(): StatisticsTrendDto<CostDto> {
|
|
16
|
+
return this.#trend;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set trend(value: StatisticsTrendDto<CostDto>) {
|
|
20
|
+
this.#trend = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#lifetime: CostDto;
|
|
24
|
+
#trend: StatisticsTrendDto<CostDto>;
|
|
25
|
+
|
|
26
|
+
constructor(lifetime: CostDto, trend: StatisticsTrendDto<CostDto>) {
|
|
27
|
+
this.#lifetime = lifetime;
|
|
28
|
+
this.#trend = trend;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { StatisticsTrendDto } from './StatisticsTrendDto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsOverviewKPIsTotalTicketsSoldDto {
|
|
6
|
+
get lifetime(): number {
|
|
7
|
+
return this.#lifetime;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set lifetime(value: number) {
|
|
11
|
+
this.#lifetime = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get trend(): StatisticsTrendDto<number> {
|
|
15
|
+
return this.#trend;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set trend(value: StatisticsTrendDto<number>) {
|
|
19
|
+
this.#trend = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#lifetime: number;
|
|
23
|
+
#trend: StatisticsTrendDto<number>;
|
|
24
|
+
|
|
25
|
+
constructor(lifetime: number, trend: StatisticsTrendDto<number>) {
|
|
26
|
+
this.#lifetime = lifetime;
|
|
27
|
+
this.#trend = trend;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto } from '#data/dto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsSalesLifetimeTotalsDto {
|
|
6
|
+
get totalRevenue(): CostDto {
|
|
7
|
+
return this.#totalRevenue;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set totalRevenue(value: CostDto) {
|
|
11
|
+
this.#totalRevenue = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get totalPlatformCost(): CostDto {
|
|
15
|
+
return this.#totalPlatformCost;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set totalPlatformCost(value: CostDto) {
|
|
19
|
+
this.#totalPlatformCost = 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 averageOrderValue(): CostDto {
|
|
31
|
+
return this.#averageOrderValue;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set averageOrderValue(value: CostDto) {
|
|
35
|
+
this.#averageOrderValue = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get averageRevenuePerTicket(): CostDto {
|
|
39
|
+
return this.#averageRevenuePerTicket;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set averageRevenuePerTicket(value: CostDto) {
|
|
43
|
+
this.#averageRevenuePerTicket = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#totalRevenue: CostDto;
|
|
47
|
+
#totalPlatformCost: CostDto;
|
|
48
|
+
#netRevenue: CostDto;
|
|
49
|
+
#averageOrderValue: CostDto;
|
|
50
|
+
#averageRevenuePerTicket: CostDto;
|
|
51
|
+
|
|
52
|
+
constructor(totalRevenue: CostDto, totalPlatformCost: CostDto, netRevenue: CostDto, averageOrderValue: CostDto, averageRevenuePerTicket: CostDto) {
|
|
53
|
+
this.#totalRevenue = totalRevenue;
|
|
54
|
+
this.#totalPlatformCost = totalPlatformCost;
|
|
55
|
+
this.#netRevenue = netRevenue;
|
|
56
|
+
this.#averageOrderValue = averageOrderValue;
|
|
57
|
+
this.#averageRevenuePerTicket = averageRevenuePerTicket;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsSalesPurchaseBehaviorDto {
|
|
6
|
+
get averageTimeToPurchase(): number {
|
|
7
|
+
return this.#averageTimeToPurchase;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set averageTimeToPurchase(value: number) {
|
|
11
|
+
this.#averageTimeToPurchase = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get cartAbandonmentRate(): number {
|
|
15
|
+
return this.#cartAbandonmentRate;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set cartAbandonmentRate(value: number) {
|
|
19
|
+
this.#cartAbandonmentRate = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get peakBuyingCount(): number {
|
|
23
|
+
return this.#peakBuyingCount;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set peakBuyingCount(value: number) {
|
|
27
|
+
this.#peakBuyingCount = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get peakBuyingTime(): DateTime {
|
|
31
|
+
return this.#peakBuyingTime;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set peakBuyingTime(value: DateTime) {
|
|
35
|
+
this.#peakBuyingTime = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#averageTimeToPurchase: number;
|
|
39
|
+
#cartAbandonmentRate: number;
|
|
40
|
+
#peakBuyingCount: number;
|
|
41
|
+
#peakBuyingTime: DateTime;
|
|
42
|
+
|
|
43
|
+
constructor(averageTimeToPurchase: number, cartAbandonmentRate: number, peakBuyingCount: number, peakBuyingTime: DateTime) {
|
|
44
|
+
this.#averageTimeToPurchase = averageTimeToPurchase;
|
|
45
|
+
this.#cartAbandonmentRate = cartAbandonmentRate;
|
|
46
|
+
this.#peakBuyingCount = peakBuyingCount;
|
|
47
|
+
this.#peakBuyingTime = peakBuyingTime;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { TransactionStatus } from '#data/types';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsSalesTransactionSuccessRateDto {
|
|
6
|
+
get successRate(): number {
|
|
7
|
+
return this.#successRate;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set successRate(value: number) {
|
|
11
|
+
this.#successRate = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get failedRate(): number {
|
|
15
|
+
return this.#failedRate;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set failedRate(value: number) {
|
|
19
|
+
this.#failedRate = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get reasons(): Record<TransactionStatus, number> {
|
|
23
|
+
return this.#reasons;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set reasons(value: Record<TransactionStatus, number>) {
|
|
27
|
+
this.#reasons = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#successRate: number;
|
|
31
|
+
#failedRate: number;
|
|
32
|
+
#reasons: Record<TransactionStatus, number>;
|
|
33
|
+
|
|
34
|
+
constructor(successRate: number, failedRate: number, reasons: Record<TransactionStatus, number>) {
|
|
35
|
+
this.#successRate = successRate;
|
|
36
|
+
this.#failedRate = failedRate;
|
|
37
|
+
this.#reasons = reasons;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class StatisticsTrendDto<TValue> {
|
|
5
|
+
get current(): TValue {
|
|
6
|
+
return this.#current;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set current(value: TValue) {
|
|
10
|
+
this.#current = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get previous(): TValue {
|
|
14
|
+
return this.#previous;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set previous(value: TValue) {
|
|
18
|
+
this.#previous = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get growthRate(): number {
|
|
22
|
+
return this.#growthRate;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set growthRate(value: number) {
|
|
26
|
+
this.#growthRate = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#current: TValue;
|
|
30
|
+
#previous: TValue;
|
|
31
|
+
#growthRate: number;
|
|
32
|
+
|
|
33
|
+
constructor(current: TValue, previous: TValue, growthRate: number) {
|
|
34
|
+
this.#current = current;
|
|
35
|
+
this.#previous = previous;
|
|
36
|
+
this.#growthRate = growthRate;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './StatisticsBuyersOverviewDto';
|
|
2
|
+
export * from './StatisticsBuyersRankedDto';
|
|
3
|
+
export * from './StatisticsEventsOverviewDto';
|
|
4
|
+
export * from './StatisticsOverviewBestRevenueMonthDto';
|
|
5
|
+
export * from './StatisticsOverviewEventPerformanceDto';
|
|
6
|
+
export * from './StatisticsOverviewEventPerformanceEventDto';
|
|
7
|
+
export * from './StatisticsOverviewEventPerformanceSummaryDto';
|
|
8
|
+
export * from './StatisticsOverviewKPIsDto';
|
|
9
|
+
export * from './StatisticsOverviewKPIsTotalEventsHostedDto';
|
|
10
|
+
export * from './StatisticsOverviewKPIsTotalRevenueDto';
|
|
11
|
+
export * from './StatisticsOverviewKPIsTotalTicketsSoldDto';
|
|
12
|
+
export * from './StatisticsSalesLifetimeTotalsDto';
|
|
13
|
+
export * from './StatisticsSalesPurchaseBehaviorDto';
|
|
14
|
+
export * from './StatisticsSalesTransactionSuccessRateDto';
|
|
15
|
+
export * from './StatisticsTrendDto';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dto } from '@basmilius/http-client';
|
|
2
2
|
import type { DateTime } from 'luxon';
|
|
3
|
-
import type { BuyerDto, EventDto, OrderDto, ProductDto } from '
|
|
4
|
-
import type { ScanStatus, TicketValidity } from '
|
|
3
|
+
import type { BuyerDto, EventDto, OrderDto, ProductDto } from '#data/dto';
|
|
4
|
+
import type { ScanStatus, TicketValidity } from '#data/types';
|
|
5
5
|
|
|
6
6
|
@dto
|
|
7
7
|
export class TicketDto {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseResponse, BaseService, type Paginated, QueryString } from '@basmilius/http-client';
|
|
2
|
-
import { AuthAdapter } from '
|
|
3
|
-
import type { UserTokenDto } from '
|
|
4
|
-
import type { Claim } from '
|
|
2
|
+
import { AuthAdapter } from '#data/adapter';
|
|
3
|
+
import type { UserTokenDto } from '#data/dto';
|
|
4
|
+
import type { Claim } from '#data/types';
|
|
5
5
|
|
|
6
6
|
export class AuthService extends BaseService {
|
|
7
7
|
async get(): Promise<BaseResponse<UserTokenDto>> {
|
|
@@ -11,7 +11,7 @@ export class AuthService extends BaseService {
|
|
|
11
11
|
.bearerToken()
|
|
12
12
|
.queryString(QueryString.builder()
|
|
13
13
|
.append('language', 'nl'))
|
|
14
|
-
.runAdapter(AuthAdapter.
|
|
14
|
+
.runAdapter(AuthAdapter.parseUserToken);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
async getClaims(): Promise<BaseResponse<Claim[]>> {
|
|
@@ -43,7 +43,7 @@ export class AuthService extends BaseService {
|
|
|
43
43
|
.append('language', 'nl')
|
|
44
44
|
.append('offset', offset)
|
|
45
45
|
.append('limit', limit))
|
|
46
|
-
.runPaginatedAdapter(AuthAdapter.
|
|
46
|
+
.runPaginatedAdapter(AuthAdapter.parseUserToken);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
async post(email: string, password: string, code?: string): Promise<BaseResponse<UserTokenDto>> {
|
|
@@ -53,7 +53,7 @@ export class AuthService extends BaseService {
|
|
|
53
53
|
.body({email, password, code})
|
|
54
54
|
.queryString(QueryString.builder()
|
|
55
55
|
.append('language', 'nl'))
|
|
56
|
-
.runAdapter(AuthAdapter.
|
|
56
|
+
.runAdapter(AuthAdapter.parseUserToken);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
async deleteSession(token: string): Promise<BaseResponse<never>> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseResponse, BaseService, QueryString } from '@basmilius/http-client';
|
|
2
|
-
import { AuthAdapter, CommonAdapter, MerchantAdapter } from '
|
|
3
|
-
import type { InvitationDto, StatusResponseDto, UserTokenDto } from '
|
|
2
|
+
import { AuthAdapter, CommonAdapter, MerchantAdapter } from '#data/adapter';
|
|
3
|
+
import type { InvitationDto, StatusResponseDto, UserTokenDto } from '#data/dto';
|
|
4
4
|
|
|
5
5
|
export class InvitationService extends BaseService {
|
|
6
6
|
async get(invitationId: string): Promise<BaseResponse<InvitationDto>> {
|
|
@@ -9,7 +9,7 @@ export class InvitationService extends BaseService {
|
|
|
9
9
|
.method('get')
|
|
10
10
|
.queryString(QueryString.builder()
|
|
11
11
|
.append('language', 'nl'))
|
|
12
|
-
.runAdapter(MerchantAdapter.
|
|
12
|
+
.runAdapter(MerchantAdapter.parseInvitation);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
async postAccept(invitationId: string, password?: string): Promise<BaseResponse<UserTokenDto>> {
|
|
@@ -21,7 +21,7 @@ export class InvitationService extends BaseService {
|
|
|
21
21
|
.body({
|
|
22
22
|
password
|
|
23
23
|
})
|
|
24
|
-
.runAdapter(AuthAdapter.
|
|
24
|
+
.runAdapter(AuthAdapter.parseUserToken);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
async postDecline(invitationId: string): Promise<BaseResponse<StatusResponseDto>> {
|
|
@@ -30,6 +30,6 @@ export class InvitationService extends BaseService {
|
|
|
30
30
|
.method('post')
|
|
31
31
|
.queryString(QueryString.builder()
|
|
32
32
|
.append('language', 'nl'))
|
|
33
|
-
.runAdapter(CommonAdapter.
|
|
33
|
+
.runAdapter(CommonAdapter.parseStatusResponse);
|
|
34
34
|
}
|
|
35
35
|
}
|