@passly-nl/data 1.0.0-beta.2 → 1.0.0-beta.5

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.
Files changed (242) hide show
  1. package/dist/index.d.mts +1931 -0
  2. package/dist/index.d.mts.map +1 -0
  3. package/dist/index.mjs +2 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/package.json +14 -13
  6. package/src/adapter/AddressAdapter.ts +10 -10
  7. package/src/adapter/AuthAdapter.ts +24 -24
  8. package/src/adapter/BuyerAdapter.ts +12 -12
  9. package/src/adapter/CommonAdapter.ts +4 -4
  10. package/src/adapter/DateTimeAdapter.ts +7 -1
  11. package/src/adapter/EventAdapter.ts +131 -131
  12. package/src/adapter/FileSystemAdapter.ts +5 -5
  13. package/src/adapter/FinanceAdapter.ts +22 -22
  14. package/src/adapter/FluxAdapter.ts +9 -9
  15. package/src/adapter/MerchantAdapter.ts +44 -44
  16. package/src/adapter/MerchantDashboardAdapter.ts +16 -16
  17. package/src/adapter/OrderAdapter.ts +33 -33
  18. package/src/adapter/PaymentAdapter.ts +26 -26
  19. package/src/adapter/ProductAdapter.ts +14 -14
  20. package/src/adapter/PublicPayAdapter.ts +5 -5
  21. package/src/adapter/PublicShopAdapter.ts +79 -79
  22. package/src/adapter/ReservationAdapter.ts +15 -15
  23. package/src/adapter/StatisticsAdapter.ts +13 -0
  24. package/src/adapter/StatisticsBuyersAdapter.ts +28 -0
  25. package/src/adapter/StatisticsEventsAdapter.ts +16 -0
  26. package/src/adapter/StatisticsOverviewAdapter.ts +85 -0
  27. package/src/adapter/StatisticsSalesAdapter.ts +33 -0
  28. package/src/adapter/TicketAdapter.ts +14 -14
  29. package/src/adapter/index.ts +5 -0
  30. package/src/dto/index.ts +1 -0
  31. package/src/dto/statistics/StatisticsBuyersOverviewDto.ts +69 -0
  32. package/src/dto/statistics/StatisticsBuyersRankedDto.ts +69 -0
  33. package/src/dto/statistics/StatisticsEventsOverviewDto.ts +59 -0
  34. package/src/dto/statistics/StatisticsOverviewBestRevenueMonthDto.ts +50 -0
  35. package/src/dto/statistics/StatisticsOverviewEventPerformanceDto.ts +29 -0
  36. package/src/dto/statistics/StatisticsOverviewEventPerformanceEventDto.ts +141 -0
  37. package/src/dto/statistics/StatisticsOverviewEventPerformanceSummaryDto.ts +59 -0
  38. package/src/dto/statistics/StatisticsOverviewKPIsDto.ts +70 -0
  39. package/src/dto/statistics/StatisticsOverviewKPIsTotalEventsHostedDto.ts +48 -0
  40. package/src/dto/statistics/StatisticsOverviewKPIsTotalRevenueDto.ts +30 -0
  41. package/src/dto/statistics/StatisticsOverviewKPIsTotalTicketsSoldDto.ts +29 -0
  42. package/src/dto/statistics/StatisticsSalesLifetimeTotalsDto.ts +59 -0
  43. package/src/dto/statistics/StatisticsSalesPurchaseBehaviorDto.ts +49 -0
  44. package/src/dto/statistics/StatisticsSalesTransactionSuccessRateDto.ts +39 -0
  45. package/src/dto/statistics/StatisticsTrendDto.ts +38 -0
  46. package/src/dto/statistics/index.ts +15 -0
  47. package/src/service/AuthService.ts +3 -3
  48. package/src/service/InvitationService.ts +3 -3
  49. package/src/service/MeService.ts +8 -8
  50. package/src/service/MerchantBuyerService.ts +3 -3
  51. package/src/service/MerchantBuyersService.ts +1 -1
  52. package/src/service/MerchantDashboardService.ts +2 -2
  53. package/src/service/MerchantEventProductService.ts +3 -3
  54. package/src/service/MerchantEventProductsService.ts +3 -3
  55. package/src/service/MerchantEventService.ts +9 -9
  56. package/src/service/MerchantEventShopService.ts +5 -5
  57. package/src/service/MerchantEventShopsService.ts +3 -3
  58. package/src/service/MerchantEventStatisticsService.ts +6 -6
  59. package/src/service/MerchantEventStockPoolsService.ts +4 -4
  60. package/src/service/MerchantEventTicketTemplateService.ts +5 -5
  61. package/src/service/MerchantEventTicketTemplatesService.ts +3 -3
  62. package/src/service/MerchantEventsService.ts +2 -2
  63. package/src/service/MerchantFinanceInvoiceService.ts +1 -1
  64. package/src/service/MerchantFinanceInvoicesService.ts +1 -1
  65. package/src/service/MerchantFinanceService.ts +3 -3
  66. package/src/service/MerchantOrderService.ts +2 -2
  67. package/src/service/MerchantOrdersService.ts +1 -1
  68. package/src/service/MerchantService.ts +8 -8
  69. package/src/service/MerchantStatisticsBuyersService.ts +87 -0
  70. package/src/service/MerchantStatisticsEventsService.ts +15 -0
  71. package/src/service/MerchantStatisticsOverviewService.ts +56 -0
  72. package/src/service/MerchantStatisticsSalesService.ts +67 -0
  73. package/src/service/MerchantStatisticsService.ts +2 -2
  74. package/src/service/MerchantTicketService.ts +1 -1
  75. package/src/service/MerchantTicketsService.ts +1 -1
  76. package/src/service/MerchantUsersService.ts +2 -2
  77. package/src/service/MerchantsService.ts +1 -1
  78. package/src/service/PublicOrderService.ts +3 -3
  79. package/src/service/PublicShopService.ts +3 -3
  80. package/src/service/ReservationService.ts +1 -1
  81. package/src/service/ServicesService.ts +1 -1
  82. package/src/service/UiSelectOptionsService.ts +13 -3
  83. package/src/service/index.ts +4 -0
  84. package/src/types/event.ts +5 -0
  85. package/dist/adapter/AddressAdapter.d.ts +0 -3
  86. package/dist/adapter/AuthAdapter.d.ts +0 -6
  87. package/dist/adapter/BuyerAdapter.d.ts +0 -4
  88. package/dist/adapter/CommonAdapter.d.ts +0 -4
  89. package/dist/adapter/DateTimeAdapter.d.ts +0 -4
  90. package/dist/adapter/EventAdapter.d.ts +0 -22
  91. package/dist/adapter/FileSystemAdapter.d.ts +0 -4
  92. package/dist/adapter/FinanceAdapter.d.ts +0 -6
  93. package/dist/adapter/FluxAdapter.d.ts +0 -6
  94. package/dist/adapter/MerchantAdapter.d.ts +0 -8
  95. package/dist/adapter/MerchantDashboardAdapter.d.ts +0 -5
  96. package/dist/adapter/OrderAdapter.d.ts +0 -7
  97. package/dist/adapter/PaymentAdapter.d.ts +0 -7
  98. package/dist/adapter/ProductAdapter.d.ts +0 -4
  99. package/dist/adapter/PublicPayAdapter.d.ts +0 -4
  100. package/dist/adapter/PublicShopAdapter.d.ts +0 -13
  101. package/dist/adapter/ReservationAdapter.d.ts +0 -6
  102. package/dist/adapter/TicketAdapter.d.ts +0 -4
  103. package/dist/adapter/index.d.ts +0 -18
  104. package/dist/dto/address/AddressDto.d.ts +0 -20
  105. package/dist/dto/address/index.d.ts +0 -1
  106. package/dist/dto/auth/TotpStateDto.d.ts +0 -10
  107. package/dist/dto/auth/UserDto.d.ts +0 -23
  108. package/dist/dto/auth/UserTokenDto.d.ts +0 -23
  109. package/dist/dto/auth/index.d.ts +0 -3
  110. package/dist/dto/common/StatusResponseDto.d.ts +0 -8
  111. package/dist/dto/common/index.d.ts +0 -1
  112. package/dist/dto/event/EventAvailabilityDto.d.ts +0 -14
  113. package/dist/dto/event/EventCountersDto.d.ts +0 -10
  114. package/dist/dto/event/EventDto.d.ts +0 -29
  115. package/dist/dto/event/EventStatisticsAttendanceDto.d.ts +0 -10
  116. package/dist/dto/event/EventStatisticsBuyerTotalsDto.d.ts +0 -14
  117. package/dist/dto/event/EventStatisticsFinancialDto.d.ts +0 -9
  118. package/dist/dto/event/EventStatisticsOrderTotalsDto.d.ts +0 -12
  119. package/dist/dto/event/EventStatisticsOrdersDto.d.ts +0 -10
  120. package/dist/dto/event/EventStatisticsScanTotalsDto.d.ts +0 -10
  121. package/dist/dto/event/EventStatisticsScansDto.d.ts +0 -12
  122. package/dist/dto/event/EventStatisticsScansPerAppTeamDto.d.ts +0 -10
  123. package/dist/dto/event/EventStatisticsSwapTotalsDto.d.ts +0 -10
  124. package/dist/dto/event/ShopDesignDto.d.ts +0 -10
  125. package/dist/dto/event/ShopDto.d.ts +0 -35
  126. package/dist/dto/event/ShopElementButtonDto.d.ts +0 -12
  127. package/dist/dto/event/ShopElementDividerDto.d.ts +0 -10
  128. package/dist/dto/event/ShopElementDto.d.ts +0 -9
  129. package/dist/dto/event/ShopElementHeadingDto.d.ts +0 -10
  130. package/dist/dto/event/ShopElementNoticeDto.d.ts +0 -15
  131. package/dist/dto/event/ShopElementProductDto.d.ts +0 -7
  132. package/dist/dto/event/ShopElementTextDto.d.ts +0 -7
  133. package/dist/dto/event/StockOverviewDto.d.ts +0 -13
  134. package/dist/dto/event/StockOverviewItemDto.d.ts +0 -13
  135. package/dist/dto/event/StockPoolDto.d.ts +0 -25
  136. package/dist/dto/event/TicketTemplateDto.d.ts +0 -18
  137. package/dist/dto/event/index.d.ts +0 -25
  138. package/dist/dto/fileSystem/PictureDto.d.ts +0 -10
  139. package/dist/dto/fileSystem/index.d.ts +0 -1
  140. package/dist/dto/finance/FinanceOverviewDto.d.ts +0 -13
  141. package/dist/dto/finance/InvoiceDto.d.ts +0 -25
  142. package/dist/dto/finance/InvoiceLineDto.d.ts +0 -17
  143. package/dist/dto/finance/index.d.ts +0 -3
  144. package/dist/dto/index.d.ts +0 -14
  145. package/dist/dto/merchant/ContractDto.d.ts +0 -16
  146. package/dist/dto/merchant/InvitationDto.d.ts +0 -25
  147. package/dist/dto/merchant/MerchantDashboardKeyMetricsDto.d.ts +0 -22
  148. package/dist/dto/merchant/MerchantDashboardUpcomingEventDto.d.ts +0 -25
  149. package/dist/dto/merchant/MerchantDto.d.ts +0 -32
  150. package/dist/dto/merchant/MerchantUserDto.d.ts +0 -14
  151. package/dist/dto/merchant/VatNumberDto.d.ts +0 -19
  152. package/dist/dto/merchant/index.d.ts +0 -7
  153. package/dist/dto/order/BuyerDto.d.ts +0 -27
  154. package/dist/dto/order/OrderDto.d.ts +0 -37
  155. package/dist/dto/order/OrderLineDto.d.ts +0 -20
  156. package/dist/dto/order/OrderPaymentProviderDto.d.ts +0 -8
  157. package/dist/dto/order/OrderProductDto.d.ts +0 -12
  158. package/dist/dto/order/index.d.ts +0 -5
  159. package/dist/dto/payment/CostDto.d.ts +0 -16
  160. package/dist/dto/payment/PaymentMethodDto.d.ts +0 -10
  161. package/dist/dto/payment/PaymentProviderDto.d.ts +0 -12
  162. package/dist/dto/payment/TransactionDto.d.ts +0 -24
  163. package/dist/dto/payment/index.d.ts +0 -4
  164. package/dist/dto/product/ProductDto.d.ts +0 -30
  165. package/dist/dto/product/index.d.ts +0 -1
  166. package/dist/dto/publicPay/PublicPaymentMethodDto.d.ts +0 -10
  167. package/dist/dto/publicPay/index.d.ts +0 -1
  168. package/dist/dto/publicShop/PublicShopCartProductDto.d.ts +0 -10
  169. package/dist/dto/publicShop/PublicShopDesignDto.d.ts +0 -10
  170. package/dist/dto/publicShop/PublicShopDto.d.ts +0 -31
  171. package/dist/dto/publicShop/PublicShopElementButtonDto.d.ts +0 -12
  172. package/dist/dto/publicShop/PublicShopElementDividerDto.d.ts +0 -10
  173. package/dist/dto/publicShop/PublicShopElementDto.d.ts +0 -9
  174. package/dist/dto/publicShop/PublicShopElementHeadingDto.d.ts +0 -10
  175. package/dist/dto/publicShop/PublicShopElementNoticeDto.d.ts +0 -15
  176. package/dist/dto/publicShop/PublicShopElementProductDto.d.ts +0 -7
  177. package/dist/dto/publicShop/PublicShopElementTextDto.d.ts +0 -7
  178. package/dist/dto/publicShop/PublicShopEventDto.d.ts +0 -16
  179. package/dist/dto/publicShop/PublicShopMerchantDto.d.ts +0 -8
  180. package/dist/dto/publicShop/PublicShopProductDto.d.ts +0 -28
  181. package/dist/dto/publicShop/PublicShopReservationDto.d.ts +0 -14
  182. package/dist/dto/publicShop/PublicShopReservationProductDetailsDto.d.ts +0 -13
  183. package/dist/dto/publicShop/PublicShopReservationProductDto.d.ts +0 -9
  184. package/dist/dto/publicShop/PublicShopTimeSlotDto.d.ts +0 -15
  185. package/dist/dto/publicShop/index.d.ts +0 -17
  186. package/dist/dto/reservation/ReservationDto.d.ts +0 -16
  187. package/dist/dto/reservation/ReservationItemDto.d.ts +0 -9
  188. package/dist/dto/reservation/ReservationProductDto.d.ts +0 -13
  189. package/dist/dto/reservation/index.d.ts +0 -3
  190. package/dist/dto/ticket/TicketDto.d.ts +0 -31
  191. package/dist/dto/ticket/index.d.ts +0 -1
  192. package/dist/index.d.ts +0 -5
  193. package/dist/index.js +0 -4
  194. package/dist/index.js.map +0 -136
  195. package/dist/service/AuthService.d.ts +0 -11
  196. package/dist/service/InvitationService.d.ts +0 -7
  197. package/dist/service/MeService.d.ts +0 -12
  198. package/dist/service/MerchantBuyerService.d.ts +0 -7
  199. package/dist/service/MerchantBuyersService.d.ts +0 -5
  200. package/dist/service/MerchantDashboardService.d.ts +0 -6
  201. package/dist/service/MerchantEventProductService.d.ts +0 -10
  202. package/dist/service/MerchantEventProductsService.d.ts +0 -8
  203. package/dist/service/MerchantEventService.d.ts +0 -13
  204. package/dist/service/MerchantEventShopService.d.ts +0 -9
  205. package/dist/service/MerchantEventShopsService.d.ts +0 -8
  206. package/dist/service/MerchantEventStatisticsService.d.ts +0 -10
  207. package/dist/service/MerchantEventStockPoolsService.d.ts +0 -9
  208. package/dist/service/MerchantEventTicketTemplateService.d.ts +0 -11
  209. package/dist/service/MerchantEventTicketTemplatesService.d.ts +0 -9
  210. package/dist/service/MerchantEventsService.d.ts +0 -7
  211. package/dist/service/MerchantFinanceInvoiceService.d.ts +0 -6
  212. package/dist/service/MerchantFinanceInvoicesService.d.ts +0 -5
  213. package/dist/service/MerchantFinanceService.d.ts +0 -8
  214. package/dist/service/MerchantOrderService.d.ts +0 -9
  215. package/dist/service/MerchantOrdersService.d.ts +0 -5
  216. package/dist/service/MerchantService.d.ts +0 -14
  217. package/dist/service/MerchantStatisticsService.d.ts +0 -5
  218. package/dist/service/MerchantTicketService.d.ts +0 -7
  219. package/dist/service/MerchantTicketsService.d.ts +0 -5
  220. package/dist/service/MerchantUsersService.d.ts +0 -7
  221. package/dist/service/MerchantsService.d.ts +0 -5
  222. package/dist/service/PublicOrderService.d.ts +0 -7
  223. package/dist/service/PublicShopService.d.ts +0 -9
  224. package/dist/service/ReservationService.d.ts +0 -6
  225. package/dist/service/ServicesService.d.ts +0 -9
  226. package/dist/service/UiSelectOptionsService.d.ts +0 -6
  227. package/dist/service/index.d.ts +0 -32
  228. package/dist/types/auth.d.ts +0 -47
  229. package/dist/types/event.d.ts +0 -28
  230. package/dist/types/finance.d.ts +0 -14
  231. package/dist/types/general.d.ts +0 -19
  232. package/dist/types/index.d.ts +0 -9
  233. package/dist/types/order.d.ts +0 -7
  234. package/dist/types/payment.d.ts +0 -11
  235. package/dist/types/product.d.ts +0 -2
  236. package/dist/types/publicShop.d.ts +0 -7
  237. package/dist/types/ticket.d.ts +0 -12
  238. package/dist/util/emptyNull.d.ts +0 -1
  239. package/dist/util/index.d.ts +0 -4
  240. package/dist/util/jsonBlob.d.ts +0 -1
  241. package/dist/util/optional.d.ts +0 -4
  242. package/dist/util/optionalArray.d.ts +0 -1
@@ -1,11 +0,0 @@
1
- import { BaseResponse, BaseService, type Paginated } from "@basmilius/http-client";
2
- import type { UserTokenDto } from "#data/dto";
3
- import type { Claim } from "#data/types";
4
- export declare class AuthService extends BaseService {
5
- get(): Promise<BaseResponse<UserTokenDto>>;
6
- getClaims(): Promise<BaseResponse<Claim[]>>;
7
- getPasswordCompromised(): Promise<BaseResponse<boolean>>;
8
- getSessions(offset: number, limit: number): Promise<BaseResponse<Paginated<UserTokenDto>>>;
9
- post(email: string, password: string, code?: string): Promise<BaseResponse<UserTokenDto>>;
10
- deleteSession(token: string): Promise<BaseResponse<never>>;
11
- }
@@ -1,7 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { InvitationDto, StatusResponseDto, UserTokenDto } from "#data/dto";
3
- export declare class InvitationService extends BaseService {
4
- get(invitationId: string): Promise<BaseResponse<InvitationDto>>;
5
- postAccept(invitationId: string, password?: string): Promise<BaseResponse<UserTokenDto>>;
6
- postDecline(invitationId: string): Promise<BaseResponse<StatusResponseDto>>;
7
- }
@@ -1,12 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { StatusResponseDto, TotpStateDto, UserDto } from "#data/dto";
3
- export declare class MeService extends BaseService {
4
- get(): Promise<BaseResponse<UserDto>>;
5
- getTotp(): Promise<BaseResponse<TotpStateDto>>;
6
- post(firstName: string, lastName: string, phoneNumber: string): Promise<BaseResponse<StatusResponseDto>>;
7
- postChangePassword(password: string, newPassword: string, newPasswordConfirm: string): Promise<BaseResponse<StatusResponseDto>>;
8
- postProfilePicture(picture: File): Promise<BaseResponse<StatusResponseDto>>;
9
- postTotp(secret: string, code: string): Promise<BaseResponse<TotpStateDto>>;
10
- deleteProfilePicture(): Promise<BaseResponse<StatusResponseDto>>;
11
- deleteTotp(code: string): Promise<BaseResponse<TotpStateDto>>;
12
- }
@@ -1,7 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { BuyerDto, OrderDto } from "#data/dto";
3
- export declare class MerchantBuyerService extends BaseService {
4
- get(merchantId: string, buyerId: string): Promise<BaseResponse<BuyerDto>>;
5
- getOrder(merchantId: string, buyerId: string, orderId: string): Promise<BaseResponse<OrderDto>>;
6
- getOrders(merchantId: string, buyerId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<OrderDto>>>;
7
- }
@@ -1,5 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { BuyerDto } from "#data/dto";
3
- export declare class MerchantBuyersService extends BaseService {
4
- get(merchantId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<BuyerDto>>>;
5
- }
@@ -1,6 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { MerchantDashboardKeyMetricsDto, MerchantDashboardUpcomingEventDto } from "#data/dto";
3
- export declare class MerchantDashboardService extends BaseService {
4
- getKeyMetrics(merchantId: string): Promise<BaseResponse<MerchantDashboardKeyMetricsDto>>;
5
- getUpcomingEvents(merchantId: string): Promise<BaseResponse<MerchantDashboardUpcomingEventDto[]>>;
6
- }
@@ -1,10 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { ProductDto } from "#data/dto";
3
- export declare class MerchantEventProductService extends BaseService {
4
- get(merchantId: string, eventId: string, productId: string): Promise<BaseResponse<ProductDto>>;
5
- postImage(merchantId: string, eventId: string, productId: string, picture: File): Promise<BaseResponse<object>>;
6
- patch(merchantId: string, eventId: string, productId: string, product: ProductDto): Promise<BaseResponse<ProductDto>>;
7
- patchPause(merchantId: string, eventId: string, productId: string): Promise<BaseResponse<never>>;
8
- patchResume(merchantId: string, eventId: string, productId: string): Promise<BaseResponse<never>>;
9
- delete(merchantId: string, eventId: string, productId: string): Promise<BaseResponse<never>>;
10
- }
@@ -1,8 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { FluxFormSelectEntry } from "@flux-ui/types";
3
- import type { ProductDto } from "#data/dto";
4
- export declare class MerchantEventProductsService extends BaseService {
5
- get(merchantId: string, eventId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<ProductDto>>>;
6
- getSelectOptions(merchantId: string, eventId: string, searchQuery?: string | null, ids?: string[] | null): Promise<BaseResponse<FluxFormSelectEntry[]>>;
7
- post(merchantId: string, eventId: string, name: string, description: string, price: number, maxQuantity: number, stock: number | null, stockPoolId: string | null): Promise<BaseResponse<ProductDto>>;
8
- }
@@ -1,13 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { EventAvailabilityDto, EventCountersDto, EventDto, StatusResponseDto } from "#data/dto";
3
- export declare class MerchantEventService extends BaseService {
4
- get(merchantId: string, eventId: string): Promise<BaseResponse<EventDto>>;
5
- getAvailability(merchantId: string, eventId: string): Promise<BaseResponse<EventAvailabilityDto>>;
6
- getCounters(merchantId: string, eventId: string): Promise<BaseResponse<EventCountersDto>>;
7
- post(merchantId: string, event: EventDto): Promise<BaseResponse<EventDto>>;
8
- postHeader(merchantId: string, eventId: string, picture: File): Promise<BaseResponse<StatusResponseDto>>;
9
- postPublish(merchantId: string, eventId: string): Promise<BaseResponse<StatusResponseDto>>;
10
- postUnpublish(merchantId: string, eventId: string): Promise<BaseResponse<StatusResponseDto>>;
11
- delete(merchantId: string, eventId: string): Promise<BaseResponse<StatusResponseDto>>;
12
- deleteHeader(merchantId: string, eventId: string): Promise<BaseResponse<StatusResponseDto>>;
13
- }
@@ -1,9 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { ShopDesignDto, ShopDto, ShopElementDto } from "#data/dto";
3
- export declare class MerchantEventShopService extends BaseService {
4
- get(merchantId: string, eventId: string, shopId: string): Promise<BaseResponse<ShopDto>>;
5
- getElements(merchantId: string, eventId: string, shopId: string): Promise<BaseResponse<ShopElementDto[]>>;
6
- patch(merchantId: string, eventId: string, shop: ShopDto): Promise<BaseResponse<ShopDto>>;
7
- patchDesign(merchantId: string, eventId: string, shopId: string, design: ShopDesignDto): Promise<BaseResponse<ShopDesignDto>>;
8
- patchElements(merchantId: string, eventId: string, shopId: string, elements: object[]): Promise<BaseResponse<ShopElementDto[]>>;
9
- }
@@ -1,8 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { DateTime } from "luxon";
3
- import type { ShopDto, StatusResponseDto } from "#data/dto";
4
- export declare class MerchantEventShopsService extends BaseService {
5
- get(merchantId: string, eventId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<ShopDto>>>;
6
- post(merchantId: string, eventId: string, name: string, startsOn: DateTime, endsOn: DateTime): Promise<BaseResponse<ShopDto>>;
7
- delete(merchantId: string, eventId: string, shopId: string): Promise<BaseResponse<StatusResponseDto>>;
8
- }
@@ -1,10 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { EventStatisticsAttendanceDto, EventStatisticsBuyerTotalsDto, EventStatisticsFinancialDto, EventStatisticsOrdersDto, EventStatisticsScansDto, EventStatisticsSwapTotalsDto } from "#data/dto";
3
- export declare class MerchantEventStatisticsService extends BaseService {
4
- getAttendance(merchantId: string, eventId: string): Promise<BaseResponse<EventStatisticsAttendanceDto>>;
5
- getBuyers(merchantId: string, eventId: string): Promise<BaseResponse<EventStatisticsBuyerTotalsDto>>;
6
- getFinancial(merchant: string, event: string): Promise<BaseResponse<EventStatisticsFinancialDto>>;
7
- getOrders(merchant: string, event: string): Promise<BaseResponse<EventStatisticsOrdersDto>>;
8
- getScans(merchant: string, event: string): Promise<BaseResponse<EventStatisticsScansDto>>;
9
- getSwaps(merchant: string, event: string): Promise<BaseResponse<EventStatisticsSwapTotalsDto>>;
10
- }
@@ -1,9 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { FluxFormSelectEntry } from "@flux-ui/types";
3
- import type { StockOverviewDto, StockPoolDto } from "#data/dto";
4
- export declare class MerchantEventStockPoolsService extends BaseService {
5
- get(merchantId: string, eventId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<StockPoolDto>>>;
6
- getOverview(merchantId: string, eventId: string): Promise<BaseResponse<StockOverviewDto>>;
7
- getSelectOptions(merchantId: string, eventId: string, searchQuery?: string | null, ids?: string[] | null): Promise<BaseResponse<FluxFormSelectEntry[]>>;
8
- post(merchantId: string, eventId: string, name: string, stock: number): Promise<BaseResponse<StockPoolDto>>;
9
- }
@@ -1,11 +0,0 @@
1
- import { BaseResponse, BaseService, type BlobResponse } from "@basmilius/http-client";
2
- import type { StatusResponseDto, TicketTemplateDto } from "#data/dto";
3
- import type { TicketTemplateType } from "#data/types";
4
- export declare class MerchantEventTicketTemplateService extends BaseService {
5
- get(merchantId: string, eventId: string, ticketTemplateId: string): Promise<BaseResponse<TicketTemplateDto>>;
6
- getDemo(merchantId: string, eventId: string, ticketTemplateId: string): Promise<BlobResponse>;
7
- postVisual(merchantId: string, eventId: string, ticketTemplateId: string, picture: File): Promise<BaseResponse<StatusResponseDto>>;
8
- patch(merchantId: string, eventId: string, ticketTemplateId: string, name: string, productId: string | null, variant: TicketTemplateType): Promise<BaseResponse<TicketTemplateDto>>;
9
- delete(merchantId: string, eventId: string, ticketTemplateId: string): Promise<BaseResponse<StatusResponseDto>>;
10
- deleteVisual(merchantId: string, eventId: string, ticketTemplateId: string): Promise<BaseResponse<StatusResponseDto>>;
11
- }
@@ -1,9 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { FluxFormSelectEntry } from "@flux-ui/types";
3
- import type { TicketTemplateDto } from "#data/dto";
4
- import type { TicketTemplateType } from "#data/types";
5
- export declare class MerchantEventTicketTemplatesService extends BaseService {
6
- get(merchantId: string, eventId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<TicketTemplateDto>>>;
7
- getSelectOptions(merchantId: string, eventId: string, searchQuery?: string | null, ids?: string[] | null): Promise<BaseResponse<FluxFormSelectEntry[]>>;
8
- post(merchantId: string, eventId: string, name: string, productId: string | null, variant: TicketTemplateType, visual: File): Promise<BaseResponse<TicketTemplateDto>>;
9
- }
@@ -1,7 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { DateTime } from "luxon";
3
- import type { EventDto } from "#data/dto";
4
- export declare class MerchantEventsService extends BaseService {
5
- get(merchantId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<EventDto>>>;
6
- post(merchantId: string, name: string, description: string, startsOn: DateTime, endsOn: DateTime, minimumAge: number): Promise<BaseResponse<EventDto>>;
7
- }
@@ -1,6 +0,0 @@
1
- import { BaseResponse, BaseService, BlobResponse } from "@basmilius/http-client";
2
- import type { InvoiceDto } from "#data/dto";
3
- export declare class MerchantFinanceInvoiceService extends BaseService {
4
- get(merchantId: string, invoiceId: string): Promise<BaseResponse<InvoiceDto>>;
5
- getPDF(merchantId: string, invoiceId: string): Promise<BlobResponse>;
6
- }
@@ -1,5 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { InvoiceDto } from "#data/dto";
3
- export declare class MerchantFinanceInvoicesService extends BaseService {
4
- get(merchantId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<InvoiceDto>>>;
5
- }
@@ -1,8 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { FinanceOverviewDto } from "#data/dto";
3
- import type { DailyRevenueChart } from "#data/types";
4
- export declare class MerchantFinanceService extends BaseService {
5
- getDailyRevenue(merchantId: string): Promise<BaseResponse<DailyRevenueChart>>;
6
- getMonthlyRevenue(merchantId: string): Promise<BaseResponse<DailyRevenueChart>>;
7
- getOverview(merchantId: string): Promise<BaseResponse<FinanceOverviewDto>>;
8
- }
@@ -1,9 +0,0 @@
1
- import { BaseResponse, BaseService, BlobResponse } from "@basmilius/http-client";
2
- import type { OrderDto, TicketDto } from "#data/dto";
3
- export declare class MerchantOrderService extends BaseService {
4
- get(merchantId: string, orderId: string): Promise<BaseResponse<OrderDto>>;
5
- getPasses(merchantId: string, orderId: string): Promise<BlobResponse>;
6
- getPDF(merchantId: string, orderId: string): Promise<BlobResponse>;
7
- getTickets(merchantId: string, orderId: string): Promise<BaseResponse<TicketDto[]>>;
8
- postResend(merchantId: string, orderId: string): Promise<BaseResponse<never>>;
9
- }
@@ -1,5 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { OrderDto } from "#data/dto";
3
- export declare class MerchantOrdersService extends BaseService {
4
- get(merchantId: string, offset: number, limit: number, filter?: Record<string, string | number | boolean>): Promise<BaseResponse<Paginated<OrderDto>>>;
5
- }
@@ -1,14 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { ContractDto, MerchantDto, PaymentProviderDto, StatusResponseDto, UserDto, VatNumberDto } from "#data/dto";
3
- import type { Claim } from "#data/types";
4
- export declare class MerchantService extends BaseService {
5
- get(merchantId: string): Promise<BaseResponse<MerchantDto>>;
6
- getAccountManager(merchantId: string): Promise<BaseResponse<UserDto | null>>;
7
- getClaims(merchantId: string): Promise<BaseResponse<Claim[]>>;
8
- getContract(merchantId: string): Promise<BaseResponse<ContractDto>>;
9
- getPaymentProviders(merchantId: string): Promise<BaseResponse<PaymentProviderDto[]>>;
10
- getVatNumber(merchantId: string): Promise<BaseResponse<VatNumberDto>>;
11
- put(merchantId: string, merchant: MerchantDto): Promise<BaseResponse<MerchantDto>>;
12
- postLogo(merchantId: string, picture: File): Promise<BaseResponse<StatusResponseDto>>;
13
- deleteLogo(merchantId: string): Promise<BaseResponse<StatusResponseDto>>;
14
- }
@@ -1,5 +0,0 @@
1
- import { type BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { ApexOptions } from "apexcharts";
3
- export declare class MerchantStatisticsService extends BaseService {
4
- getRevenueTrend(merchantId: string): Promise<BaseResponse<ApexOptions>>;
5
- }
@@ -1,7 +0,0 @@
1
- import { BaseResponse, BaseService, BlobResponse } from "@basmilius/http-client";
2
- import type { TicketDto } from "#data/dto";
3
- export declare class MerchantTicketService extends BaseService {
4
- get(merchantId: string, ticketId: string): Promise<BaseResponse<TicketDto>>;
5
- getPass(merchantId: string, ticketId: string): Promise<BlobResponse>;
6
- getPDF(merchantId: string, ticketId: string): Promise<BlobResponse>;
7
- }
@@ -1,5 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { TicketDto } from "#data/dto";
3
- export declare class MerchantTicketsService extends BaseService {
4
- get(merchantId: string, offset: number, limit: number, filter?: Record<string, string | number | boolean>): Promise<BaseResponse<Paginated<TicketDto>>>;
5
- }
@@ -1,7 +0,0 @@
1
- import { BaseResponse, BaseService, Paginated } from "@basmilius/http-client";
2
- import type { InvitationDto, MerchantUserDto } from "#data/dto";
3
- import type { Claim } from "#data/types";
4
- export declare class MerchantUsersService extends BaseService {
5
- get(merchantId: string, offset: number, limit: number): Promise<BaseResponse<Paginated<MerchantUserDto>>>;
6
- postInvite(merchantId: string, firstName: string, lastName: string, email: string, claims: Claim[]): Promise<BaseResponse<InvitationDto>>;
7
- }
@@ -1,5 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { MerchantDto } from "#data/dto";
3
- export declare class MerchantsService extends BaseService {
4
- get(): Promise<BaseResponse<MerchantDto[]>>;
5
- }
@@ -1,7 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { OrderDto, PublicPaymentMethodDto, TransactionDto } from "#data/dto";
3
- export declare class PublicOrderService extends BaseService {
4
- get(orderId: string): Promise<BaseResponse<OrderDto>>;
5
- getPaymentMethods(orderId: string): Promise<BaseResponse<PublicPaymentMethodDto[]>>;
6
- postPay(orderId: string, paymentMethodId: string): Promise<BaseResponse<TransactionDto>>;
7
- }
@@ -1,9 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { DateTime } from "luxon";
3
- import type { OrderDto, PublicShopCartProductDto, PublicShopDto, PublicShopReservationDto } from "#data/dto";
4
- import type { Gender } from "#data/types";
5
- export declare class PublicShopService extends BaseService {
6
- get(shopId: string): Promise<BaseResponse<PublicShopDto>>;
7
- buy(shopId: string, reservationId: string, firstName: string, lastName: string, email: string, phoneNumber: string, dateOfBirth: DateTime | null, gender: Gender | null): Promise<BaseResponse<OrderDto>>;
8
- reserve(shopId: string, products: PublicShopCartProductDto[]): Promise<BaseResponse<PublicShopReservationDto>>;
9
- }
@@ -1,6 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { ReservationDto } from "#data/dto";
3
- export declare class ReservationService extends BaseService {
4
- get(id: string): Promise<BaseResponse<ReservationDto>>;
5
- remove(id: string): Promise<BaseResponse<never>>;
6
- }
@@ -1,9 +0,0 @@
1
- import { type BaseResponse, BaseService } from "@basmilius/http-client";
2
- export declare class ServicesService extends BaseService {
3
- checkEmail(email: string): Promise<BaseResponse<CheckEmailResponse>>;
4
- }
5
- type CheckEmailResponse = {
6
- readonly email: string;
7
- readonly suggestions?: string[];
8
- };
9
- export {};
@@ -1,6 +0,0 @@
1
- import { BaseResponse, BaseService } from "@basmilius/http-client";
2
- import type { FluxFormSelectEntry, FluxFormSelectOption } from "@flux-ui/types";
3
- export declare class UiSelectOptionsService extends BaseService {
4
- getClaims(): Promise<BaseResponse<FluxFormSelectEntry[]>>;
5
- getCountries(): Promise<BaseResponse<FluxFormSelectOption[]>>;
6
- }
@@ -1,32 +0,0 @@
1
- export * from "./AuthService";
2
- export * from "./InvitationService";
3
- export * from "./MerchantService";
4
- export * from "./MerchantsService";
5
- export * from "./MerchantBuyerService";
6
- export * from "./MerchantBuyersService";
7
- export * from "./MerchantDashboardService";
8
- export * from "./MerchantEventProductService";
9
- export * from "./MerchantEventProductsService";
10
- export * from "./MerchantEventService";
11
- export * from "./MerchantEventStatisticsService";
12
- export * from "./MerchantEventShopService";
13
- export * from "./MerchantEventShopsService";
14
- export * from "./MerchantEventStockPoolsService";
15
- export * from "./MerchantEventTicketTemplateService";
16
- export * from "./MerchantEventTicketTemplatesService";
17
- export * from "./MerchantEventsService";
18
- export * from "./MerchantFinanceInvoiceService";
19
- export * from "./MerchantFinanceInvoicesService";
20
- export * from "./MerchantFinanceService";
21
- export * from "./MerchantOrderService";
22
- export * from "./MerchantOrdersService";
23
- export * from "./MerchantStatisticsService";
24
- export * from "./MerchantTicketService";
25
- export * from "./MerchantTicketsService";
26
- export * from "./MerchantUsersService";
27
- export * from "./MeService";
28
- export * from "./PublicOrderService";
29
- export * from "./PublicShopService";
30
- export * from "./ReservationService";
31
- export * from "./ServicesService";
32
- export * from "./UiSelectOptionsService";
@@ -1,47 +0,0 @@
1
- export type Claim =
2
- | 'admin:view'
3
- | 'auth:login'
4
- | 'buyers:view'
5
- | 'events:create'
6
- | 'events:manage'
7
- | 'events:publish'
8
- | 'events:statistics'
9
- | 'events:unpublish'
10
- | 'events:view'
11
- | 'events:tickets:export'
12
- | 'events:tickets:scan'
13
- | 'events:tickets:view'
14
- | 'finance:export'
15
- | 'finance:view'
16
- | 'finance:invoices:view'
17
- | 'merchant:admin'
18
- | 'merchant:users'
19
- | 'orders:export'
20
- | 'orders:view'
21
- | 'statistics:view'
22
- | 'tasks:view';
23
-
24
- export type UserTokenType =
25
- | 'access_token'
26
- | 'authorization_code'
27
- | 'refresh_token'
28
- | 'session';
29
-
30
- export type BrowserType =
31
- | 'brave'
32
- | 'chrome'
33
- | 'edge'
34
- | 'firefox'
35
- | 'opera'
36
- | 'safari'
37
- | 'samsunginternet'
38
- | 'vivaldi';
39
-
40
- export type OperatingSystemType =
41
- | 'ios'
42
- | 'ipados'
43
- | 'macos'
44
- | 'windows'
45
- | 'linux'
46
- | 'android'
47
- | 'chromeos';
@@ -1,28 +0,0 @@
1
- export type EventStatus =
2
- | 'active'
3
- | 'concluded'
4
- | 'happening'
5
- | 'in_sale'
6
- | 'pending';
7
-
8
- export type ShopElementType =
9
- | 'button'
10
- | 'divider'
11
- | 'heading'
12
- | 'notice'
13
- | 'product'
14
- | 'text';
15
-
16
- export type ShopFieldRequirement =
17
- | 'disabled'
18
- | 'enabled'
19
- | 'required';
20
-
21
- export type ShopStatus =
22
- | 'closed'
23
- | 'concluded'
24
- | 'in_sale'
25
- | 'pending';
26
-
27
- export type TicketTemplateType =
28
- | 'default';
@@ -1,14 +0,0 @@
1
- export type DailyRevenueChart = {
2
- current: DailyRevenueChartEntry[];
3
- previous: DailyRevenueChartEntry[];
4
- };
5
-
6
- export type DailyRevenueChartEntry = {
7
- readonly date: string;
8
- readonly label: string;
9
- readonly value: number;
10
- };
11
-
12
- export type InvoiceLineType =
13
- | 'fee'
14
- | 'manual';
@@ -1,19 +0,0 @@
1
- export type Gender =
2
- | 'female'
3
- | 'male'
4
- | 'other';
5
-
6
- export type HeadingLevel =
7
- | 1
8
- | 2
9
- | 3
10
- | 4
11
- | 5
12
- | 6;
13
-
14
- export type NoticeType =
15
- | 'primary'
16
- | 'danger'
17
- | 'info'
18
- | 'success'
19
- | 'warning';
@@ -1,9 +0,0 @@
1
- export type * from "./auth";
2
- export type * from "./general";
3
- export type * from "./event";
4
- export type * from "./finance";
5
- export type * from "./order";
6
- export type * from "./payment";
7
- export type * from "./product";
8
- export type * from "./publicShop";
9
- export type * from "./ticket";
@@ -1,7 +0,0 @@
1
- export type OrderOrigin =
2
- | 'local'
3
- | 'ticketswap';
4
-
5
- export type OrderType =
6
- | 'default'
7
- | 'guest';
@@ -1,11 +0,0 @@
1
- export type PaymentProviderType =
2
- | 'mollie'
3
- | 'manual';
4
-
5
- export type TransactionStatus =
6
- | 'canceled'
7
- | 'expired'
8
- | 'failed'
9
- | 'paid'
10
- | 'pending'
11
- | 'setup'
@@ -1,2 +0,0 @@
1
- export type ProductType =
2
- | 'ticket'
@@ -1,7 +0,0 @@
1
- export type PublicShopElementType =
2
- | 'button'
3
- | 'divider'
4
- | 'heading'
5
- | 'notice'
6
- | 'product'
7
- | 'text';
@@ -1,12 +0,0 @@
1
- export type ScanStatus =
2
- | 'checkin'
3
- | 'checkout'
4
- | 'expired'
5
- | 'pending'
6
- | 'upcoming';
7
-
8
- export type TicketValidity =
9
- | 'valid'
10
- | 'invalid'
11
- | 'refunded'
12
- | 'swapped';
@@ -1 +0,0 @@
1
- export default function<T>(value: T): T | null;
@@ -1,4 +0,0 @@
1
- export { default as emptyNull } from "./emptyNull";
2
- export { default as jsonBlob } from "./jsonBlob";
3
- export { default as optional } from "./optional";
4
- export { default as optionalArray } from "./optionalArray";
@@ -1 +0,0 @@
1
- export default function<T>(json: T): Blob;
@@ -1,4 +0,0 @@
1
- export default function<
2
- T,
3
- U
4
- >(value: U, adapter: (value: U) => T): T;
@@ -1 +0,0 @@
1
- export default function<T>(value: object[], adapter: (value: object) => T): T[] | null;