@passly-nl/data 1.0.5 → 1.2.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 +1118 -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 +16 -11
- 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 +4 -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 +42 -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,29 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { InsightSignalKind } from '#data/types';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class InsightSignalDto {
|
|
6
|
+
get kind(): InsightSignalKind {
|
|
7
|
+
return this.#kind;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set kind(value: InsightSignalKind) {
|
|
11
|
+
this.#kind = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get text(): string {
|
|
15
|
+
return this.#text;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set text(value: string) {
|
|
19
|
+
this.#text = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#kind: InsightSignalKind;
|
|
23
|
+
#text: string;
|
|
24
|
+
|
|
25
|
+
constructor(kind: InsightSignalKind, text: string) {
|
|
26
|
+
this.#kind = kind;
|
|
27
|
+
this.#text = text;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { InsightDto } from '#data/dto';
|
|
3
|
+
import type { InsightLanguage } from '#data/types';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class InsightsResponseDto {
|
|
7
|
+
get insightsEnabled(): boolean {
|
|
8
|
+
return this.#insightsEnabled;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set insightsEnabled(value: boolean) {
|
|
12
|
+
this.#insightsEnabled = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get language(): InsightLanguage {
|
|
16
|
+
return this.#language;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set language(value: InsightLanguage) {
|
|
20
|
+
this.#language = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get cards(): InsightDto[] {
|
|
24
|
+
return this.#cards;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set cards(value: InsightDto[]) {
|
|
28
|
+
this.#cards = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get lastGeneratedOn(): string | null {
|
|
32
|
+
return this.#lastGeneratedOn;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set lastGeneratedOn(value: string | null) {
|
|
36
|
+
this.#lastGeneratedOn = value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#insightsEnabled: boolean;
|
|
40
|
+
#language: InsightLanguage;
|
|
41
|
+
#cards: InsightDto[];
|
|
42
|
+
#lastGeneratedOn: string | null;
|
|
43
|
+
|
|
44
|
+
constructor(insightsEnabled: boolean, language: InsightLanguage, cards: InsightDto[], lastGeneratedOn: string | null) {
|
|
45
|
+
this.#insightsEnabled = insightsEnabled;
|
|
46
|
+
this.#language = language;
|
|
47
|
+
this.#cards = cards;
|
|
48
|
+
this.#lastGeneratedOn = lastGeneratedOn;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
import type { MilestoneType } from '#data/types';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class MilestoneDto {
|
|
7
|
+
get id(): string {
|
|
8
|
+
return this.#id;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set id(value: string) {
|
|
12
|
+
this.#id = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get type(): MilestoneType {
|
|
16
|
+
return this.#type;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set type(value: MilestoneType) {
|
|
20
|
+
this.#type = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get threshold(): number | null {
|
|
24
|
+
return this.#threshold;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set threshold(value: number | null) {
|
|
28
|
+
this.#threshold = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get value(): number | null {
|
|
32
|
+
return this.#value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set value(value: number | null) {
|
|
36
|
+
this.#value = value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get referenceClass(): string | null {
|
|
40
|
+
return this.#referenceClass;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set referenceClass(value: string | null) {
|
|
44
|
+
this.#referenceClass = value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
get referenceId(): string | null {
|
|
48
|
+
return this.#referenceId;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
set referenceId(value: string | null) {
|
|
52
|
+
this.#referenceId = value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
get achievedOn(): DateTime {
|
|
56
|
+
return this.#achievedOn;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
set achievedOn(value: DateTime) {
|
|
60
|
+
this.#achievedOn = value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#id: string;
|
|
64
|
+
#type: MilestoneType;
|
|
65
|
+
#threshold: number | null;
|
|
66
|
+
#value: number | null;
|
|
67
|
+
#referenceClass: string | null;
|
|
68
|
+
#referenceId: string | null;
|
|
69
|
+
#achievedOn: DateTime;
|
|
70
|
+
|
|
71
|
+
constructor(id: string, type: MilestoneType, threshold: number | null, value: number | null, referenceClass: string | null, referenceId: string | null, achievedOn: DateTime) {
|
|
72
|
+
this.#id = id;
|
|
73
|
+
this.#type = type;
|
|
74
|
+
this.#threshold = threshold;
|
|
75
|
+
this.#value = value;
|
|
76
|
+
this.#referenceClass = referenceClass;
|
|
77
|
+
this.#referenceId = referenceId;
|
|
78
|
+
this.#achievedOn = achievedOn;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto, StatisticsTrendDto } from '#data/dto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsGrowthOverviewDto {
|
|
6
|
+
get revenue(): StatisticsTrendDto<CostDto> {
|
|
7
|
+
return this.#revenue;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set revenue(value: StatisticsTrendDto<CostDto>) {
|
|
11
|
+
this.#revenue = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get tickets(): StatisticsTrendDto<number> {
|
|
15
|
+
return this.#tickets;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set tickets(value: StatisticsTrendDto<number>) {
|
|
19
|
+
this.#tickets = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get buyers(): StatisticsTrendDto<number> {
|
|
23
|
+
return this.#buyers;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set buyers(value: StatisticsTrendDto<number>) {
|
|
27
|
+
this.#buyers = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get events(): StatisticsTrendDto<number> {
|
|
31
|
+
return this.#events;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set events(value: StatisticsTrendDto<number>) {
|
|
35
|
+
this.#events = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get averageEventSize(): StatisticsTrendDto<number> {
|
|
39
|
+
return this.#averageEventSize;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set averageEventSize(value: StatisticsTrendDto<number>) {
|
|
43
|
+
this.#averageEventSize = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#revenue: StatisticsTrendDto<CostDto>;
|
|
47
|
+
#tickets: StatisticsTrendDto<number>;
|
|
48
|
+
#buyers: StatisticsTrendDto<number>;
|
|
49
|
+
#events: StatisticsTrendDto<number>;
|
|
50
|
+
#averageEventSize: StatisticsTrendDto<number>;
|
|
51
|
+
|
|
52
|
+
constructor(revenue: StatisticsTrendDto<CostDto>, tickets: StatisticsTrendDto<number>, buyers: StatisticsTrendDto<number>, events: StatisticsTrendDto<number>, averageEventSize: StatisticsTrendDto<number>) {
|
|
53
|
+
this.#revenue = revenue;
|
|
54
|
+
this.#tickets = tickets;
|
|
55
|
+
this.#buyers = buyers;
|
|
56
|
+
this.#events = events;
|
|
57
|
+
this.#averageEventSize = averageEventSize;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class StatisticsOperationsAppTeamDto {
|
|
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 eventId(): string {
|
|
22
|
+
return this.#eventId;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set eventId(value: string) {
|
|
26
|
+
this.#eventId = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get eventName(): string {
|
|
30
|
+
return this.#eventName;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set eventName(value: string) {
|
|
34
|
+
this.#eventName = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
get scans(): number {
|
|
38
|
+
return this.#scans;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set scans(value: number) {
|
|
42
|
+
this.#scans = value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
get checkins(): number {
|
|
46
|
+
return this.#checkins;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
set checkins(value: number) {
|
|
50
|
+
this.#checkins = value;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get checkouts(): number {
|
|
54
|
+
return this.#checkouts;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
set checkouts(value: number) {
|
|
58
|
+
this.#checkouts = value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#id: string;
|
|
62
|
+
#name: string;
|
|
63
|
+
#eventId: string;
|
|
64
|
+
#eventName: string;
|
|
65
|
+
#scans: number;
|
|
66
|
+
#checkins: number;
|
|
67
|
+
#checkouts: number;
|
|
68
|
+
|
|
69
|
+
constructor(id: string, name: string, eventId: string, eventName: string, scans: number, checkins: number, checkouts: number) {
|
|
70
|
+
this.#id = id;
|
|
71
|
+
this.#name = name;
|
|
72
|
+
this.#eventId = eventId;
|
|
73
|
+
this.#eventName = eventName;
|
|
74
|
+
this.#scans = scans;
|
|
75
|
+
this.#checkins = checkins;
|
|
76
|
+
this.#checkouts = checkouts;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class StatisticsOperationsOverviewDto {
|
|
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 liveEvents(): number {
|
|
38
|
+
return this.#liveEvents;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set liveEvents(value: number) {
|
|
42
|
+
this.#liveEvents = value;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#totalScans: number;
|
|
46
|
+
#checkins: number;
|
|
47
|
+
#checkouts: number;
|
|
48
|
+
#attendanceRate: number;
|
|
49
|
+
#liveEvents: number;
|
|
50
|
+
|
|
51
|
+
constructor(totalScans: number, checkins: number, checkouts: number, attendanceRate: number, liveEvents: number) {
|
|
52
|
+
this.#totalScans = totalScans;
|
|
53
|
+
this.#checkins = checkins;
|
|
54
|
+
this.#checkouts = checkouts;
|
|
55
|
+
this.#attendanceRate = attendanceRate;
|
|
56
|
+
this.#liveEvents = liveEvents;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
|
|
3
|
+
@dto
|
|
4
|
+
export class StatisticsOperationsTaskAssigneeDto {
|
|
5
|
+
get id(): string {
|
|
6
|
+
return this.#id;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
set id(value: string) {
|
|
10
|
+
this.#id = value;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get fullName(): string {
|
|
14
|
+
return this.#fullName;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
set fullName(value: string) {
|
|
18
|
+
this.#fullName = value;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
get initials(): string {
|
|
22
|
+
return this.#initials;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set initials(value: string) {
|
|
26
|
+
this.#initials = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get resolvedCount(): number {
|
|
30
|
+
return this.#resolvedCount;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set resolvedCount(value: number) {
|
|
34
|
+
this.#resolvedCount = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#id: string;
|
|
38
|
+
#fullName: string;
|
|
39
|
+
#initials: string;
|
|
40
|
+
#resolvedCount: number;
|
|
41
|
+
|
|
42
|
+
constructor(id: string, fullName: string, initials: string, resolvedCount: number) {
|
|
43
|
+
this.#id = id;
|
|
44
|
+
this.#fullName = fullName;
|
|
45
|
+
this.#initials = initials;
|
|
46
|
+
this.#resolvedCount = resolvedCount;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { StatisticsOperationsTaskAssigneeDto } from '#data/dto';
|
|
3
|
+
|
|
4
|
+
@dto
|
|
5
|
+
export class StatisticsOperationsTasksOverviewDto {
|
|
6
|
+
get open(): number {
|
|
7
|
+
return this.#open;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
set open(value: number) {
|
|
11
|
+
this.#open = value;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
get inProgress(): number {
|
|
15
|
+
return this.#inProgress;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
set inProgress(value: number) {
|
|
19
|
+
this.#inProgress = value;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get resolved(): number {
|
|
23
|
+
return this.#resolved;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
set resolved(value: number) {
|
|
27
|
+
this.#resolved = value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
get canceled(): number {
|
|
31
|
+
return this.#canceled;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
set canceled(value: number) {
|
|
35
|
+
this.#canceled = value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get averageResolveTimeSeconds(): number {
|
|
39
|
+
return this.#averageResolveTimeSeconds;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
set averageResolveTimeSeconds(value: number) {
|
|
43
|
+
this.#averageResolveTimeSeconds = value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get topAssignees(): StatisticsOperationsTaskAssigneeDto[] {
|
|
47
|
+
return this.#topAssignees;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
set topAssignees(value: StatisticsOperationsTaskAssigneeDto[]) {
|
|
51
|
+
this.#topAssignees = value;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
#open: number;
|
|
55
|
+
#inProgress: number;
|
|
56
|
+
#resolved: number;
|
|
57
|
+
#canceled: number;
|
|
58
|
+
#averageResolveTimeSeconds: number;
|
|
59
|
+
#topAssignees: StatisticsOperationsTaskAssigneeDto[];
|
|
60
|
+
|
|
61
|
+
constructor(open: number, inProgress: number, resolved: number, canceled: number, averageResolveTimeSeconds: number, topAssignees: StatisticsOperationsTaskAssigneeDto[]) {
|
|
62
|
+
this.#open = open;
|
|
63
|
+
this.#inProgress = inProgress;
|
|
64
|
+
this.#resolved = resolved;
|
|
65
|
+
this.#canceled = canceled;
|
|
66
|
+
this.#averageResolveTimeSeconds = averageResolveTimeSeconds;
|
|
67
|
+
this.#topAssignees = topAssignees;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
export * from './InsightDto';
|
|
2
|
+
export * from './InsightSignalDto';
|
|
3
|
+
export * from './InsightsResponseDto';
|
|
4
|
+
export * from './MilestoneDto';
|
|
1
5
|
export * from './StatisticsBuyersOverviewDto';
|
|
2
6
|
export * from './StatisticsBuyersRankedDto';
|
|
3
7
|
export * from './StatisticsEventsOverviewDto';
|
|
8
|
+
export * from './StatisticsGrowthOverviewDto';
|
|
9
|
+
export * from './StatisticsOperationsAppTeamDto';
|
|
10
|
+
export * from './StatisticsOperationsOverviewDto';
|
|
11
|
+
export * from './StatisticsOperationsTaskAssigneeDto';
|
|
12
|
+
export * from './StatisticsOperationsTasksOverviewDto';
|
|
4
13
|
export * from './StatisticsOverviewBestRevenueMonthDto';
|
|
5
14
|
export * from './StatisticsOverviewEventPerformanceDto';
|
|
6
15
|
export * from './StatisticsOverviewEventPerformanceEventDto';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { DateTime } from 'luxon';
|
|
3
|
+
import type { CostDto } from '#data/dto';
|
|
4
|
+
import type { SubscriptionType } from '#data/types';
|
|
5
|
+
|
|
6
|
+
@dto
|
|
7
|
+
export class MerchantSubscriptionDto {
|
|
8
|
+
get id(): string {
|
|
9
|
+
return this.#id;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
set id(value: string) {
|
|
13
|
+
this.#id = value;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get type(): SubscriptionType {
|
|
17
|
+
return this.#type;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
set type(value: SubscriptionType) {
|
|
21
|
+
this.#type = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get planKey(): string {
|
|
25
|
+
return this.#planKey;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set planKey(value: string) {
|
|
29
|
+
this.#planKey = value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get priceMonthly(): CostDto {
|
|
33
|
+
return this.#priceMonthly;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
set priceMonthly(value: CostDto) {
|
|
37
|
+
this.#priceMonthly = value;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get startsOn(): DateTime {
|
|
41
|
+
return this.#startsOn;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
set startsOn(value: DateTime) {
|
|
45
|
+
this.#startsOn = value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
get endsOn(): DateTime | null {
|
|
49
|
+
return this.#endsOn;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set endsOn(value: DateTime | null) {
|
|
53
|
+
this.#endsOn = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get cancelledOn(): DateTime | null {
|
|
57
|
+
return this.#cancelledOn;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
set cancelledOn(value: DateTime | null) {
|
|
61
|
+
this.#cancelledOn = value;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get note(): string | null {
|
|
65
|
+
return this.#note;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
set note(value: string | null) {
|
|
69
|
+
this.#note = value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#id: string;
|
|
73
|
+
#type: SubscriptionType;
|
|
74
|
+
#planKey: string;
|
|
75
|
+
#priceMonthly: CostDto;
|
|
76
|
+
#startsOn: DateTime;
|
|
77
|
+
#endsOn: DateTime | null;
|
|
78
|
+
#cancelledOn: DateTime | null;
|
|
79
|
+
#note: string | null;
|
|
80
|
+
|
|
81
|
+
constructor(id: string, type: SubscriptionType, planKey: string, priceMonthly: CostDto, startsOn: DateTime, endsOn: DateTime | null, cancelledOn: DateTime | null, note: string | null) {
|
|
82
|
+
this.#id = id;
|
|
83
|
+
this.#type = type;
|
|
84
|
+
this.#planKey = planKey;
|
|
85
|
+
this.#priceMonthly = priceMonthly;
|
|
86
|
+
this.#startsOn = startsOn;
|
|
87
|
+
this.#endsOn = endsOn;
|
|
88
|
+
this.#cancelledOn = cancelledOn;
|
|
89
|
+
this.#note = note;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { dto } from '@basmilius/http-client';
|
|
2
|
+
import type { CostDto } from '#data/dto';
|
|
3
|
+
import type { Feature, SubscriptionType } from '#data/types';
|
|
4
|
+
|
|
5
|
+
@dto
|
|
6
|
+
export class SubscriptionPlanDto {
|
|
7
|
+
get key(): string {
|
|
8
|
+
return this.#key;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
set key(value: string) {
|
|
12
|
+
this.#key = value;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
get type(): SubscriptionType {
|
|
16
|
+
return this.#type;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
set type(value: SubscriptionType) {
|
|
20
|
+
this.#type = value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get label(): string {
|
|
24
|
+
return this.#label;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
set label(value: string) {
|
|
28
|
+
this.#label = value;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
get features(): Feature[] {
|
|
32
|
+
return this.#features;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
set features(value: Feature[]) {
|
|
36
|
+
this.#features = value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get tokenLimit(): number | null {
|
|
40
|
+
return this.#tokenLimit;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
set tokenLimit(value: number | null) {
|
|
44
|
+
this.#tokenLimit = value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
get priceMonthly(): CostDto {
|
|
48
|
+
return this.#priceMonthly;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
set priceMonthly(value: CostDto) {
|
|
52
|
+
this.#priceMonthly = value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
get enabled(): boolean {
|
|
56
|
+
return this.#enabled;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
set enabled(value: boolean) {
|
|
60
|
+
this.#enabled = value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#key: string;
|
|
64
|
+
#type: SubscriptionType;
|
|
65
|
+
#label: string;
|
|
66
|
+
#features: Feature[];
|
|
67
|
+
#tokenLimit: number | null;
|
|
68
|
+
#priceMonthly: CostDto;
|
|
69
|
+
#enabled: boolean;
|
|
70
|
+
|
|
71
|
+
constructor(key: string, type: SubscriptionType, label: string, features: Feature[], tokenLimit: number | null, priceMonthly: CostDto, enabled: boolean) {
|
|
72
|
+
this.#key = key;
|
|
73
|
+
this.#type = type;
|
|
74
|
+
this.#label = label;
|
|
75
|
+
this.#features = features;
|
|
76
|
+
this.#tokenLimit = tokenLimit;
|
|
77
|
+
this.#priceMonthly = priceMonthly;
|
|
78
|
+
this.#enabled = enabled;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -45,6 +45,14 @@ export class TicketDto {
|
|
|
45
45
|
this.#validity = value;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
get isRefundable(): boolean {
|
|
49
|
+
return this.#isRefundable;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
set isRefundable(value: boolean) {
|
|
53
|
+
this.#isRefundable = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
48
56
|
get buyer(): BuyerDto {
|
|
49
57
|
return this.#buyer;
|
|
50
58
|
}
|
|
@@ -106,6 +114,7 @@ export class TicketDto {
|
|
|
106
114
|
#code: string;
|
|
107
115
|
#status: ScanStatus;
|
|
108
116
|
#validity: TicketValidity;
|
|
117
|
+
#isRefundable: boolean;
|
|
109
118
|
#buyer: BuyerDto;
|
|
110
119
|
#event: EventDto;
|
|
111
120
|
#holder: BuyerDto | null;
|
|
@@ -114,12 +123,13 @@ export class TicketDto {
|
|
|
114
123
|
#createdOn: DateTime;
|
|
115
124
|
#updatedOn: DateTime;
|
|
116
125
|
|
|
117
|
-
constructor(id: string, sequence: number, code: string, status: ScanStatus, validity: TicketValidity, buyer: BuyerDto, event: EventDto, holder: BuyerDto | null, order: OrderDto, product: ProductDto, createdOn: DateTime, updatedOn: DateTime) {
|
|
126
|
+
constructor(id: string, sequence: number, code: string, status: ScanStatus, validity: TicketValidity, isRefundable: boolean, buyer: BuyerDto, event: EventDto, holder: BuyerDto | null, order: OrderDto, product: ProductDto, createdOn: DateTime, updatedOn: DateTime) {
|
|
118
127
|
this.#id = id;
|
|
119
128
|
this.#sequence = sequence;
|
|
120
129
|
this.#code = code;
|
|
121
130
|
this.#status = status;
|
|
122
131
|
this.#validity = validity;
|
|
132
|
+
this.#isRefundable = isRefundable;
|
|
123
133
|
this.#buyer = buyer;
|
|
124
134
|
this.#event = event;
|
|
125
135
|
this.#holder = holder;
|