@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 @@
|
|
|
1
|
+
export type SubscriptionType = 'ai';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { dto } from '@basmilius/http-client';
|
|
2
|
-
import type { ApexOptions } from 'apexcharts';
|
|
3
|
-
import type { EventStatisticsOrderTotalsDto } from '#data/dto';
|
|
4
|
-
|
|
5
|
-
@dto
|
|
6
|
-
export class EventStatisticsOrdersDto {
|
|
7
|
-
get chart(): ApexOptions {
|
|
8
|
-
return this.#chart;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
set chart(value: ApexOptions) {
|
|
12
|
-
this.#chart = value;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
get totals(): EventStatisticsOrderTotalsDto {
|
|
16
|
-
return this.#totals;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
set totals(value: EventStatisticsOrderTotalsDto) {
|
|
20
|
-
this.#totals = value;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
#chart: ApexOptions;
|
|
24
|
-
#totals: EventStatisticsOrderTotalsDto;
|
|
25
|
-
|
|
26
|
-
constructor(chart: ApexOptions, totals: EventStatisticsOrderTotalsDto) {
|
|
27
|
-
this.#chart = chart;
|
|
28
|
-
this.#totals = totals;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { dto } from '@basmilius/http-client';
|
|
2
|
-
|
|
3
|
-
@dto
|
|
4
|
-
export class EventStatisticsScanTotalsDto {
|
|
5
|
-
get total(): number {
|
|
6
|
-
return this.#total;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
set total(value: number) {
|
|
10
|
-
this.#total = 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
|
-
#total: number;
|
|
30
|
-
#checkins: number;
|
|
31
|
-
#checkouts: number;
|
|
32
|
-
|
|
33
|
-
constructor(total: number, checkins: number, checkouts: number) {
|
|
34
|
-
this.#total = total;
|
|
35
|
-
this.#checkins = checkins;
|
|
36
|
-
this.#checkouts = checkouts;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { dto } from '@basmilius/http-client';
|
|
2
|
-
import type { ApexOptions } from 'apexcharts';
|
|
3
|
-
import type { EventStatisticsScansPerAppTeamDto, EventStatisticsScanTotalsDto } from '#data/dto';
|
|
4
|
-
|
|
5
|
-
@dto
|
|
6
|
-
export class EventStatisticsScansDto {
|
|
7
|
-
get appTeams(): EventStatisticsScansPerAppTeamDto[] {
|
|
8
|
-
return this.#appTeams;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
set appTeams(value: EventStatisticsScansPerAppTeamDto[]) {
|
|
12
|
-
this.#appTeams = value;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
get chart(): ApexOptions {
|
|
16
|
-
return this.#chart;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
set chart(value: ApexOptions) {
|
|
20
|
-
this.#chart = value;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
get totals(): EventStatisticsScanTotalsDto {
|
|
24
|
-
return this.#totals;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
set totals(value: EventStatisticsScanTotalsDto) {
|
|
28
|
-
this.#totals = value;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
#appTeams: EventStatisticsScansPerAppTeamDto[];
|
|
32
|
-
#chart: ApexOptions;
|
|
33
|
-
#totals: EventStatisticsScanTotalsDto;
|
|
34
|
-
|
|
35
|
-
constructor(appTeams: EventStatisticsScansPerAppTeamDto[], chart: ApexOptions, totals: EventStatisticsScanTotalsDto) {
|
|
36
|
-
this.#appTeams = appTeams;
|
|
37
|
-
this.#chart = chart;
|
|
38
|
-
this.#totals = totals;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { BaseResponse, BaseService, QueryString } from '@basmilius/http-client';
|
|
2
|
-
import { EventAdapter } from '#data/adapter';
|
|
3
|
-
import type { EventStatisticsAttendanceDto, EventStatisticsBuyerTotalsDto, EventStatisticsFinancialDto, EventStatisticsOrdersDto, EventStatisticsScansDto, EventStatisticsSwapTotalsDto } from '#data/dto';
|
|
4
|
-
|
|
5
|
-
export class MerchantEventStatisticsService extends BaseService {
|
|
6
|
-
async getAttendance(merchantId: string, eventId: string): Promise<BaseResponse<EventStatisticsAttendanceDto>> {
|
|
7
|
-
return await this
|
|
8
|
-
.request(`/merchants/${merchantId}/events/${eventId}/statistics/attendance`)
|
|
9
|
-
.method('get')
|
|
10
|
-
.bearerToken()
|
|
11
|
-
.queryString(QueryString.builder()
|
|
12
|
-
.append('language', 'nl'))
|
|
13
|
-
.runAdapter(EventAdapter.parseEventStatisticsAttendance);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
async getBuyers(merchantId: string, eventId: string): Promise<BaseResponse<EventStatisticsBuyerTotalsDto>> {
|
|
17
|
-
return await this
|
|
18
|
-
.request(`/merchants/${merchantId}/events/${eventId}/statistics/buyers`)
|
|
19
|
-
.method('get')
|
|
20
|
-
.bearerToken()
|
|
21
|
-
.queryString(QueryString.builder()
|
|
22
|
-
.append('language', 'nl'))
|
|
23
|
-
.runAdapter(EventAdapter.parseEventStatisticsBuyerTotals);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
async getFinancial(merchant: string, event: string): Promise<BaseResponse<EventStatisticsFinancialDto>> {
|
|
27
|
-
return await this
|
|
28
|
-
.request(`/merchants/${merchant}/events/${event}/statistics/financial`)
|
|
29
|
-
.method('get')
|
|
30
|
-
.bearerToken()
|
|
31
|
-
.queryString(QueryString.builder()
|
|
32
|
-
.append('language', 'nl'))
|
|
33
|
-
.runAdapter(EventAdapter.parseEventStatisticsFinancial);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
async getOrders(merchant: string, event: string): Promise<BaseResponse<EventStatisticsOrdersDto>> {
|
|
37
|
-
return await this
|
|
38
|
-
.request(`/merchants/${merchant}/events/${event}/statistics/orders`)
|
|
39
|
-
.method('get')
|
|
40
|
-
.bearerToken()
|
|
41
|
-
.queryString(QueryString.builder()
|
|
42
|
-
.append('language', 'nl'))
|
|
43
|
-
.runAdapter(EventAdapter.parseEventStatisticsOrders);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
async getScans(merchant: string, event: string): Promise<BaseResponse<EventStatisticsScansDto>> {
|
|
47
|
-
return await this
|
|
48
|
-
.request(`/merchants/${merchant}/events/${event}/statistics/scans`)
|
|
49
|
-
.method('get')
|
|
50
|
-
.bearerToken()
|
|
51
|
-
.queryString(QueryString.builder()
|
|
52
|
-
.append('language', 'nl'))
|
|
53
|
-
.runAdapter(EventAdapter.parseEventStatisticsScans);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
async getSwaps(merchant: string, event: string): Promise<BaseResponse<EventStatisticsSwapTotalsDto>> {
|
|
57
|
-
return await this
|
|
58
|
-
.request(`/merchants/${merchant}/events/${event}/statistics/swaps`)
|
|
59
|
-
.method('get')
|
|
60
|
-
.bearerToken()
|
|
61
|
-
.queryString(QueryString.builder()
|
|
62
|
-
.append('language', 'nl'))
|
|
63
|
-
.runAdapter(EventAdapter.parseEventStatisticsSwapTotals);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
File without changes
|