@passly-nl/data 0.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.
Files changed (309) hide show
  1. package/CODEOWNERS +1 -0
  2. package/LICENSE +21 -0
  3. package/README.md +19 -0
  4. package/dist/adapter/AddressAdapter.d.ts +3 -0
  5. package/dist/adapter/AuthAdapter.d.ts +6 -0
  6. package/dist/adapter/BuyerAdapter.d.ts +4 -0
  7. package/dist/adapter/CommonAdapter.d.ts +4 -0
  8. package/dist/adapter/DateTimeAdapter.d.ts +4 -0
  9. package/dist/adapter/EventAdapter.d.ts +22 -0
  10. package/dist/adapter/FileSystemAdapter.d.ts +4 -0
  11. package/dist/adapter/FinanceAdapter.d.ts +6 -0
  12. package/dist/adapter/FluxAdapter.d.ts +6 -0
  13. package/dist/adapter/MerchantAdapter.d.ts +8 -0
  14. package/dist/adapter/MerchantDashboardAdapter.d.ts +5 -0
  15. package/dist/adapter/OrderAdapter.d.ts +7 -0
  16. package/dist/adapter/PaymentAdapter.d.ts +7 -0
  17. package/dist/adapter/ProductAdapter.d.ts +4 -0
  18. package/dist/adapter/PublicPayAdapter.d.ts +4 -0
  19. package/dist/adapter/PublicShopAdapter.d.ts +13 -0
  20. package/dist/adapter/ReservationAdapter.d.ts +6 -0
  21. package/dist/adapter/TicketAdapter.d.ts +4 -0
  22. package/dist/adapter/index.d.ts +18 -0
  23. package/dist/dto/address/AddressDto.d.ts +20 -0
  24. package/dist/dto/address/index.d.ts +1 -0
  25. package/dist/dto/auth/TotpStateDto.d.ts +10 -0
  26. package/dist/dto/auth/UserDto.d.ts +23 -0
  27. package/dist/dto/auth/UserTokenDto.d.ts +23 -0
  28. package/dist/dto/auth/index.d.ts +3 -0
  29. package/dist/dto/common/StatusResponseDto.d.ts +8 -0
  30. package/dist/dto/common/index.d.ts +1 -0
  31. package/dist/dto/event/EventAvailabilityDto.d.ts +14 -0
  32. package/dist/dto/event/EventCountersDto.d.ts +10 -0
  33. package/dist/dto/event/EventDto.d.ts +29 -0
  34. package/dist/dto/event/EventStatisticsAttendanceDto.d.ts +10 -0
  35. package/dist/dto/event/EventStatisticsBuyerTotalsDto.d.ts +14 -0
  36. package/dist/dto/event/EventStatisticsFinancialDto.d.ts +9 -0
  37. package/dist/dto/event/EventStatisticsOrderTotalsDto.d.ts +12 -0
  38. package/dist/dto/event/EventStatisticsOrdersDto.d.ts +10 -0
  39. package/dist/dto/event/EventStatisticsScanTotalsDto.d.ts +10 -0
  40. package/dist/dto/event/EventStatisticsScansDto.d.ts +12 -0
  41. package/dist/dto/event/EventStatisticsScansPerAppTeamDto.d.ts +10 -0
  42. package/dist/dto/event/EventStatisticsSwapTotalsDto.d.ts +10 -0
  43. package/dist/dto/event/ShopDesignDto.d.ts +10 -0
  44. package/dist/dto/event/ShopDto.d.ts +35 -0
  45. package/dist/dto/event/ShopElementButtonDto.d.ts +12 -0
  46. package/dist/dto/event/ShopElementDividerDto.d.ts +10 -0
  47. package/dist/dto/event/ShopElementDto.d.ts +9 -0
  48. package/dist/dto/event/ShopElementHeadingDto.d.ts +10 -0
  49. package/dist/dto/event/ShopElementNoticeDto.d.ts +15 -0
  50. package/dist/dto/event/ShopElementProductDto.d.ts +7 -0
  51. package/dist/dto/event/ShopElementTextDto.d.ts +7 -0
  52. package/dist/dto/event/StockOverviewDto.d.ts +13 -0
  53. package/dist/dto/event/StockOverviewItemDto.d.ts +13 -0
  54. package/dist/dto/event/StockPoolDto.d.ts +25 -0
  55. package/dist/dto/event/TicketTemplateDto.d.ts +18 -0
  56. package/dist/dto/event/index.d.ts +25 -0
  57. package/dist/dto/fileSystem/PictureDto.d.ts +10 -0
  58. package/dist/dto/fileSystem/index.d.ts +1 -0
  59. package/dist/dto/finance/FinanceOverviewDto.d.ts +13 -0
  60. package/dist/dto/finance/InvoiceDto.d.ts +25 -0
  61. package/dist/dto/finance/InvoiceLineDto.d.ts +17 -0
  62. package/dist/dto/finance/index.d.ts +3 -0
  63. package/dist/dto/index.d.ts +14 -0
  64. package/dist/dto/merchant/ContractDto.d.ts +16 -0
  65. package/dist/dto/merchant/InvitationDto.d.ts +25 -0
  66. package/dist/dto/merchant/MerchantDashboardKeyMetricsDto.d.ts +22 -0
  67. package/dist/dto/merchant/MerchantDashboardUpcomingEventDto.d.ts +25 -0
  68. package/dist/dto/merchant/MerchantDto.d.ts +32 -0
  69. package/dist/dto/merchant/MerchantUserDto.d.ts +14 -0
  70. package/dist/dto/merchant/VatNumberDto.d.ts +19 -0
  71. package/dist/dto/merchant/index.d.ts +7 -0
  72. package/dist/dto/order/BuyerDto.d.ts +27 -0
  73. package/dist/dto/order/OrderDto.d.ts +37 -0
  74. package/dist/dto/order/OrderLineDto.d.ts +20 -0
  75. package/dist/dto/order/OrderPaymentProviderDto.d.ts +8 -0
  76. package/dist/dto/order/OrderProductDto.d.ts +12 -0
  77. package/dist/dto/order/index.d.ts +5 -0
  78. package/dist/dto/payment/CostDto.d.ts +16 -0
  79. package/dist/dto/payment/PaymentMethodDto.d.ts +10 -0
  80. package/dist/dto/payment/PaymentProviderDto.d.ts +12 -0
  81. package/dist/dto/payment/TransactionDto.d.ts +24 -0
  82. package/dist/dto/payment/index.d.ts +4 -0
  83. package/dist/dto/product/ProductDto.d.ts +30 -0
  84. package/dist/dto/product/index.d.ts +1 -0
  85. package/dist/dto/publicPay/PublicPaymentMethodDto.d.ts +10 -0
  86. package/dist/dto/publicPay/index.d.ts +1 -0
  87. package/dist/dto/publicShop/PublicShopCartProductDto.d.ts +10 -0
  88. package/dist/dto/publicShop/PublicShopDesignDto.d.ts +10 -0
  89. package/dist/dto/publicShop/PublicShopDto.d.ts +31 -0
  90. package/dist/dto/publicShop/PublicShopElementButtonDto.d.ts +12 -0
  91. package/dist/dto/publicShop/PublicShopElementDividerDto.d.ts +10 -0
  92. package/dist/dto/publicShop/PublicShopElementDto.d.ts +9 -0
  93. package/dist/dto/publicShop/PublicShopElementHeadingDto.d.ts +10 -0
  94. package/dist/dto/publicShop/PublicShopElementNoticeDto.d.ts +15 -0
  95. package/dist/dto/publicShop/PublicShopElementProductDto.d.ts +7 -0
  96. package/dist/dto/publicShop/PublicShopElementTextDto.d.ts +7 -0
  97. package/dist/dto/publicShop/PublicShopEventDto.d.ts +16 -0
  98. package/dist/dto/publicShop/PublicShopMerchantDto.d.ts +8 -0
  99. package/dist/dto/publicShop/PublicShopProductDto.d.ts +28 -0
  100. package/dist/dto/publicShop/PublicShopReservationDto.d.ts +14 -0
  101. package/dist/dto/publicShop/PublicShopReservationProductDetailsDto.d.ts +13 -0
  102. package/dist/dto/publicShop/PublicShopReservationProductDto.d.ts +9 -0
  103. package/dist/dto/publicShop/PublicShopTimeSlotDto.d.ts +15 -0
  104. package/dist/dto/publicShop/index.d.ts +17 -0
  105. package/dist/dto/reservation/ReservationDto.d.ts +16 -0
  106. package/dist/dto/reservation/ReservationItemDto.d.ts +9 -0
  107. package/dist/dto/reservation/ReservationProductDto.d.ts +13 -0
  108. package/dist/dto/reservation/index.d.ts +3 -0
  109. package/dist/dto/ticket/TicketDto.d.ts +31 -0
  110. package/dist/dto/ticket/index.d.ts +1 -0
  111. package/dist/index.d.ts +5 -0
  112. package/dist/index.js +4 -0
  113. package/dist/index.js.map +136 -0
  114. package/dist/service/AuthService.d.ts +11 -0
  115. package/dist/service/InvitationService.d.ts +7 -0
  116. package/dist/service/MeService.d.ts +12 -0
  117. package/dist/service/MerchantBuyerService.d.ts +7 -0
  118. package/dist/service/MerchantBuyersService.d.ts +5 -0
  119. package/dist/service/MerchantDashboardService.d.ts +6 -0
  120. package/dist/service/MerchantEventProductService.d.ts +10 -0
  121. package/dist/service/MerchantEventProductsService.d.ts +8 -0
  122. package/dist/service/MerchantEventService.d.ts +13 -0
  123. package/dist/service/MerchantEventShopService.d.ts +9 -0
  124. package/dist/service/MerchantEventShopsService.d.ts +8 -0
  125. package/dist/service/MerchantEventStatisticsService.d.ts +10 -0
  126. package/dist/service/MerchantEventStockPoolsService.d.ts +9 -0
  127. package/dist/service/MerchantEventTicketTemplateService.d.ts +11 -0
  128. package/dist/service/MerchantEventTicketTemplatesService.d.ts +9 -0
  129. package/dist/service/MerchantEventsService.d.ts +7 -0
  130. package/dist/service/MerchantFinanceInvoiceService.d.ts +6 -0
  131. package/dist/service/MerchantFinanceInvoicesService.d.ts +5 -0
  132. package/dist/service/MerchantFinanceService.d.ts +8 -0
  133. package/dist/service/MerchantOrderService.d.ts +9 -0
  134. package/dist/service/MerchantOrdersService.d.ts +5 -0
  135. package/dist/service/MerchantService.d.ts +14 -0
  136. package/dist/service/MerchantStatisticsService.d.ts +5 -0
  137. package/dist/service/MerchantTicketService.d.ts +7 -0
  138. package/dist/service/MerchantTicketsService.d.ts +5 -0
  139. package/dist/service/MerchantUsersService.d.ts +7 -0
  140. package/dist/service/MerchantsService.d.ts +5 -0
  141. package/dist/service/PublicOrderService.d.ts +7 -0
  142. package/dist/service/PublicShopService.d.ts +9 -0
  143. package/dist/service/ReservationService.d.ts +6 -0
  144. package/dist/service/ServicesService.d.ts +9 -0
  145. package/dist/service/UiSelectOptionsService.d.ts +6 -0
  146. package/dist/service/index.d.ts +32 -0
  147. package/dist/types/index.d.ts +9 -0
  148. package/dist/util/emptyNull.d.ts +1 -0
  149. package/dist/util/index.d.ts +4 -0
  150. package/dist/util/jsonBlob.d.ts +1 -0
  151. package/dist/util/optional.d.ts +4 -0
  152. package/dist/util/optionalArray.d.ts +1 -0
  153. package/package.json +62 -0
  154. package/src/adapter/AddressAdapter.ts +18 -0
  155. package/src/adapter/AuthAdapter.ts +42 -0
  156. package/src/adapter/BuyerAdapter.ts +22 -0
  157. package/src/adapter/CommonAdapter.ts +12 -0
  158. package/src/adapter/DateTimeAdapter.ts +11 -0
  159. package/src/adapter/EventAdapter.ts +237 -0
  160. package/src/adapter/FileSystemAdapter.ts +13 -0
  161. package/src/adapter/FinanceAdapter.ts +40 -0
  162. package/src/adapter/FluxAdapter.ts +21 -0
  163. package/src/adapter/MerchantAdapter.ts +70 -0
  164. package/src/adapter/MerchantDashboardAdapter.ts +29 -0
  165. package/src/adapter/OrderAdapter.ts +55 -0
  166. package/src/adapter/PaymentAdapter.ts +48 -0
  167. package/src/adapter/ProductAdapter.ts +24 -0
  168. package/src/adapter/PublicPayAdapter.ts +13 -0
  169. package/src/adapter/PublicShopAdapter.ts +149 -0
  170. package/src/adapter/ReservationAdapter.ts +33 -0
  171. package/src/adapter/TicketAdapter.ts +24 -0
  172. package/src/adapter/index.ts +18 -0
  173. package/src/dto/address/AddressDto.ts +88 -0
  174. package/src/dto/address/index.ts +1 -0
  175. package/src/dto/auth/TotpStateDto.ts +38 -0
  176. package/src/dto/auth/UserDto.ts +99 -0
  177. package/src/dto/auth/UserTokenDto.ts +91 -0
  178. package/src/dto/auth/index.ts +3 -0
  179. package/src/dto/common/StatusResponseDto.ts +28 -0
  180. package/src/dto/common/index.ts +1 -0
  181. package/src/dto/event/EventAvailabilityDto.ts +58 -0
  182. package/src/dto/event/EventCountersDto.ts +38 -0
  183. package/src/dto/event/EventDto.ts +121 -0
  184. package/src/dto/event/EventStatisticsAttendanceDto.ts +38 -0
  185. package/src/dto/event/EventStatisticsBuyerTotalsDto.ts +58 -0
  186. package/src/dto/event/EventStatisticsFinancialDto.ts +29 -0
  187. package/src/dto/event/EventStatisticsOrderTotalsDto.ts +48 -0
  188. package/src/dto/event/EventStatisticsOrdersDto.ts +30 -0
  189. package/src/dto/event/EventStatisticsScanTotalsDto.ts +38 -0
  190. package/src/dto/event/EventStatisticsScansDto.ts +40 -0
  191. package/src/dto/event/EventStatisticsScansPerAppTeamDto.ts +38 -0
  192. package/src/dto/event/EventStatisticsSwapTotalsDto.ts +38 -0
  193. package/src/dto/event/ShopDesignDto.ts +38 -0
  194. package/src/dto/event/ShopDto.ts +151 -0
  195. package/src/dto/event/ShopElementButtonDto.ts +41 -0
  196. package/src/dto/event/ShopElementDividerDto.ts +31 -0
  197. package/src/dto/event/ShopElementDto.ts +27 -0
  198. package/src/dto/event/ShopElementHeadingDto.ts +31 -0
  199. package/src/dto/event/ShopElementNoticeDto.ts +52 -0
  200. package/src/dto/event/ShopElementProductDto.ts +20 -0
  201. package/src/dto/event/ShopElementTextDto.ts +20 -0
  202. package/src/dto/event/StockOverviewDto.ts +49 -0
  203. package/src/dto/event/StockOverviewItemDto.ts +49 -0
  204. package/src/dto/event/StockPoolDto.ts +109 -0
  205. package/src/dto/event/TicketTemplateDto.ts +70 -0
  206. package/src/dto/event/index.ts +25 -0
  207. package/src/dto/fileSystem/PictureDto.ts +38 -0
  208. package/src/dto/fileSystem/index.ts +1 -0
  209. package/src/dto/finance/FinanceOverviewDto.ts +49 -0
  210. package/src/dto/finance/InvoiceDto.ts +101 -0
  211. package/src/dto/finance/InvoiceLineDto.ts +61 -0
  212. package/src/dto/finance/index.ts +3 -0
  213. package/src/dto/index.ts +14 -0
  214. package/src/dto/merchant/ContractDto.ts +60 -0
  215. package/src/dto/merchant/InvitationDto.ts +101 -0
  216. package/src/dto/merchant/MerchantDashboardKeyMetricsDto.ts +59 -0
  217. package/src/dto/merchant/MerchantDashboardUpcomingEventDto.ts +101 -0
  218. package/src/dto/merchant/MerchantDto.ts +140 -0
  219. package/src/dto/merchant/MerchantUserDto.ts +50 -0
  220. package/src/dto/merchant/VatNumberDto.ts +79 -0
  221. package/src/dto/merchant/index.ts +7 -0
  222. package/src/dto/order/BuyerDto.ts +111 -0
  223. package/src/dto/order/OrderDto.ts +161 -0
  224. package/src/dto/order/OrderLineDto.ts +80 -0
  225. package/src/dto/order/OrderPaymentProviderDto.ts +28 -0
  226. package/src/dto/order/OrderProductDto.ts +48 -0
  227. package/src/dto/order/index.ts +5 -0
  228. package/src/dto/payment/CostDto.ts +68 -0
  229. package/src/dto/payment/PaymentMethodDto.ts +38 -0
  230. package/src/dto/payment/PaymentProviderDto.ts +40 -0
  231. package/src/dto/payment/TransactionDto.ts +100 -0
  232. package/src/dto/payment/index.ts +4 -0
  233. package/src/dto/product/ProductDto.ts +130 -0
  234. package/src/dto/product/index.ts +1 -0
  235. package/src/dto/publicPay/PublicPaymentMethodDto.ts +38 -0
  236. package/src/dto/publicPay/index.ts +1 -0
  237. package/src/dto/publicShop/PublicShopCartProductDto.ts +38 -0
  238. package/src/dto/publicShop/PublicShopDesignDto.ts +38 -0
  239. package/src/dto/publicShop/PublicShopDto.ts +131 -0
  240. package/src/dto/publicShop/PublicShopElementButtonDto.ts +41 -0
  241. package/src/dto/publicShop/PublicShopElementDividerDto.ts +31 -0
  242. package/src/dto/publicShop/PublicShopElementDto.ts +27 -0
  243. package/src/dto/publicShop/PublicShopElementHeadingDto.ts +31 -0
  244. package/src/dto/publicShop/PublicShopElementNoticeDto.ts +52 -0
  245. package/src/dto/publicShop/PublicShopElementProductDto.ts +20 -0
  246. package/src/dto/publicShop/PublicShopElementTextDto.ts +20 -0
  247. package/src/dto/publicShop/PublicShopEventDto.ts +60 -0
  248. package/src/dto/publicShop/PublicShopMerchantDto.ts +28 -0
  249. package/src/dto/publicShop/PublicShopProductDto.ts +120 -0
  250. package/src/dto/publicShop/PublicShopReservationDto.ts +50 -0
  251. package/src/dto/publicShop/PublicShopReservationProductDetailsDto.ts +49 -0
  252. package/src/dto/publicShop/PublicShopReservationProductDto.ts +29 -0
  253. package/src/dto/publicShop/PublicShopTimeSlotDto.ts +59 -0
  254. package/src/dto/publicShop/index.ts +17 -0
  255. package/src/dto/reservation/ReservationDto.ts +60 -0
  256. package/src/dto/reservation/ReservationItemDto.ts +29 -0
  257. package/src/dto/reservation/ReservationProductDto.ts +49 -0
  258. package/src/dto/reservation/index.ts +3 -0
  259. package/src/dto/ticket/TicketDto.ts +131 -0
  260. package/src/dto/ticket/index.ts +1 -0
  261. package/src/index.ts +5 -0
  262. package/src/service/AuthService.ts +71 -0
  263. package/src/service/InvitationService.ts +35 -0
  264. package/src/service/MeService.ts +106 -0
  265. package/src/service/MerchantBuyerService.ts +37 -0
  266. package/src/service/MerchantBuyersService.ts +17 -0
  267. package/src/service/MerchantDashboardService.ts +23 -0
  268. package/src/service/MerchantEventProductService.ts +76 -0
  269. package/src/service/MerchantEventProductsService.ts +48 -0
  270. package/src/service/MerchantEventService.ts +115 -0
  271. package/src/service/MerchantEventShopService.ts +66 -0
  272. package/src/service/MerchantEventShopsService.ts +43 -0
  273. package/src/service/MerchantEventStatisticsService.ts +65 -0
  274. package/src/service/MerchantEventStockPoolsService.ts +54 -0
  275. package/src/service/MerchantEventTicketTemplateService.ts +75 -0
  276. package/src/service/MerchantEventTicketTemplatesService.ts +53 -0
  277. package/src/service/MerchantEventsService.ts +35 -0
  278. package/src/service/MerchantFinanceInvoiceService.ts +25 -0
  279. package/src/service/MerchantFinanceInvoicesService.ts +17 -0
  280. package/src/service/MerchantFinanceService.ts +36 -0
  281. package/src/service/MerchantOrderService.ts +55 -0
  282. package/src/service/MerchantOrdersService.ts +26 -0
  283. package/src/service/MerchantService.ts +117 -0
  284. package/src/service/MerchantStatisticsService.ts +14 -0
  285. package/src/service/MerchantTicketService.ts +35 -0
  286. package/src/service/MerchantTicketsService.ts +26 -0
  287. package/src/service/MerchantUsersService.ts +34 -0
  288. package/src/service/MerchantsService.ts +15 -0
  289. package/src/service/PublicOrderService.ts +35 -0
  290. package/src/service/PublicShopService.ts +49 -0
  291. package/src/service/ReservationService.ts +23 -0
  292. package/src/service/ServicesService.ts +18 -0
  293. package/src/service/UiSelectOptionsService.ts +33 -0
  294. package/src/service/index.ts +32 -0
  295. package/src/types/auth.ts +47 -0
  296. package/src/types/event.ts +28 -0
  297. package/src/types/finance.ts +14 -0
  298. package/src/types/general.ts +19 -0
  299. package/src/types/index.ts +9 -0
  300. package/src/types/order.ts +7 -0
  301. package/src/types/payment.ts +11 -0
  302. package/src/types/product.ts +2 -0
  303. package/src/types/publicShop.ts +7 -0
  304. package/src/types/ticket.ts +12 -0
  305. package/src/util/emptyNull.ts +9 -0
  306. package/src/util/index.ts +4 -0
  307. package/src/util/jsonBlob.ts +5 -0
  308. package/src/util/optional.ts +7 -0
  309. package/src/util/optionalArray.ts +7 -0
@@ -0,0 +1,121 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { DateTime } from 'luxon';
3
+ import type { AddressDto, PictureDto } from '#data/dto';
4
+ import type { EventStatus } from '#data/types';
5
+
6
+ @dto
7
+ export class EventDto {
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 description(): string {
25
+ return this.#description;
26
+ }
27
+
28
+ set description(value: string) {
29
+ this.#description = value;
30
+ }
31
+
32
+ get startsOn(): DateTime {
33
+ return this.#startsOn;
34
+ }
35
+
36
+ set startsOn(value: DateTime) {
37
+ this.#startsOn = value;
38
+ }
39
+
40
+ get endsOn(): DateTime {
41
+ return this.#endsOn;
42
+ }
43
+
44
+ set endsOn(value: DateTime) {
45
+ this.#endsOn = value;
46
+ }
47
+
48
+ get minimumAge(): number {
49
+ return this.#minimumAge;
50
+ }
51
+
52
+ set minimumAge(value: number) {
53
+ this.#minimumAge = value;
54
+ }
55
+
56
+ get status(): EventStatus {
57
+ return this.#status;
58
+ }
59
+
60
+ set status(value: EventStatus) {
61
+ this.#status = value;
62
+ }
63
+
64
+ get address(): AddressDto {
65
+ return this.#address;
66
+ }
67
+
68
+ set address(value: AddressDto) {
69
+ this.#address = value;
70
+ }
71
+
72
+ get headerFile(): PictureDto | null {
73
+ return this.#headerFile;
74
+ }
75
+
76
+ set headerFile(value: PictureDto | null) {
77
+ this.#headerFile = value;
78
+ }
79
+
80
+ get createdOn(): DateTime {
81
+ return this.#createdOn;
82
+ }
83
+
84
+ set createdOn(value: DateTime) {
85
+ this.#createdOn = value;
86
+ }
87
+
88
+ get updatedOn(): DateTime {
89
+ return this.#updatedOn;
90
+ }
91
+
92
+ set updatedOn(value: DateTime) {
93
+ this.#updatedOn = value;
94
+ }
95
+
96
+ #id: string;
97
+ #name: string;
98
+ #description: string;
99
+ #startsOn: DateTime;
100
+ #endsOn: DateTime;
101
+ #minimumAge: number;
102
+ #status: EventStatus;
103
+ #address: AddressDto;
104
+ #headerFile: PictureDto | null;
105
+ #createdOn: DateTime;
106
+ #updatedOn: DateTime;
107
+
108
+ constructor(id: string, name: string, description: string, startsOn: DateTime, endsOn: DateTime, minimumAge: number, status: EventStatus, address: AddressDto, headerFile: PictureDto | null, createdOn: DateTime, updatedOn: DateTime) {
109
+ this.#id = id;
110
+ this.#name = name;
111
+ this.#description = description;
112
+ this.#startsOn = startsOn;
113
+ this.#endsOn = endsOn;
114
+ this.#minimumAge = minimumAge;
115
+ this.#status = status;
116
+ this.#address = address;
117
+ this.#headerFile = headerFile;
118
+ this.#createdOn = createdOn;
119
+ this.#updatedOn = updatedOn;
120
+ }
121
+ }
@@ -0,0 +1,38 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class EventStatisticsAttendanceDto {
5
+ get attended(): number {
6
+ return this.#attended;
7
+ }
8
+
9
+ set attended(value: number) {
10
+ this.#attended = value;
11
+ }
12
+
13
+ get expected(): number {
14
+ return this.#expected;
15
+ }
16
+
17
+ set expected(value: number) {
18
+ this.#expected = value;
19
+ }
20
+
21
+ get rate(): number {
22
+ return this.#rate;
23
+ }
24
+
25
+ set rate(value: number) {
26
+ this.#rate = value;
27
+ }
28
+
29
+ #attended: number;
30
+ #expected: number;
31
+ #rate: number;
32
+
33
+ constructor(attended: number, expected: number, rate: number) {
34
+ this.#attended = attended;
35
+ this.#expected = expected;
36
+ this.#rate = rate;
37
+ }
38
+ }
@@ -0,0 +1,58 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class EventStatisticsBuyerTotalsDto {
5
+ get acquired(): number {
6
+ return this.#acquired;
7
+ }
8
+
9
+ set acquired(value: number) {
10
+ this.#acquired = value;
11
+ }
12
+
13
+ get averageTickets(): number {
14
+ return this.#averageTickets;
15
+ }
16
+
17
+ set averageTickets(value: number) {
18
+ this.#averageTickets = value;
19
+ }
20
+
21
+ get doubting(): number {
22
+ return this.#doubting;
23
+ }
24
+
25
+ set doubting(value: number) {
26
+ this.#doubting = value;
27
+ }
28
+
29
+ get returning(): number {
30
+ return this.#returning;
31
+ }
32
+
33
+ set returning(value: number) {
34
+ this.#returning = value;
35
+ }
36
+
37
+ get total(): number {
38
+ return this.#total;
39
+ }
40
+
41
+ set total(value: number) {
42
+ this.#total = value;
43
+ }
44
+
45
+ #acquired: number;
46
+ #averageTickets: number;
47
+ #doubting: number;
48
+ #returning: number;
49
+ #total: number;
50
+
51
+ constructor(acquired: number, averageTickets: number, doubting: number, returning: number, total: number) {
52
+ this.#acquired = acquired;
53
+ this.#averageTickets = averageTickets;
54
+ this.#doubting = doubting;
55
+ this.#returning = returning;
56
+ this.#total = total;
57
+ }
58
+ }
@@ -0,0 +1,29 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { CostDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class EventStatisticsFinancialDto {
6
+ get platformCost(): CostDto {
7
+ return this.#platformCost;
8
+ }
9
+
10
+ set platformCost(value: CostDto) {
11
+ this.#platformCost = value;
12
+ }
13
+
14
+ get revenue(): CostDto {
15
+ return this.#revenue;
16
+ }
17
+
18
+ set revenue(value: CostDto) {
19
+ this.#revenue = value;
20
+ }
21
+
22
+ #platformCost: CostDto;
23
+ #revenue: CostDto;
24
+
25
+ constructor(platformCost: CostDto, revenue: CostDto) {
26
+ this.#platformCost = platformCost;
27
+ this.#revenue = revenue;
28
+ }
29
+ }
@@ -0,0 +1,48 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class EventStatisticsOrderTotalsDto {
5
+ get fulfilled(): number {
6
+ return this.#fulfilled;
7
+ }
8
+
9
+ set fulfilled(value: number) {
10
+ this.#fulfilled = value;
11
+ }
12
+
13
+ get interrupted(): number {
14
+ return this.#interrupted;
15
+ }
16
+
17
+ set interrupted(value: number) {
18
+ this.#interrupted = value;
19
+ }
20
+
21
+ get pending(): number {
22
+ return this.#pending;
23
+ }
24
+
25
+ set pending(value: number) {
26
+ this.#pending = value;
27
+ }
28
+
29
+ get total(): number {
30
+ return this.#total;
31
+ }
32
+
33
+ set total(value: number) {
34
+ this.#total = value;
35
+ }
36
+
37
+ #fulfilled: number;
38
+ #interrupted: number;
39
+ #pending: number;
40
+ #total: number;
41
+
42
+ constructor(fulfilled: number, interrupted: number, pending: number, total: number) {
43
+ this.#fulfilled = fulfilled;
44
+ this.#interrupted = interrupted;
45
+ this.#pending = pending;
46
+ this.#total = total;
47
+ }
48
+ }
@@ -0,0 +1,30 @@
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
+ }
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1,40 @@
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
+ }
@@ -0,0 +1,38 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class EventStatisticsScansPerAppTeamDto {
5
+ get id(): string {
6
+ return this.#id;
7
+ }
8
+
9
+ set id(value: string) {
10
+ this.#id = value;
11
+ }
12
+
13
+ get name(): string {
14
+ return this.#name;
15
+ }
16
+
17
+ set name(value: string) {
18
+ this.#name = value;
19
+ }
20
+
21
+ get scans(): number {
22
+ return this.#scans;
23
+ }
24
+
25
+ set scans(value: number) {
26
+ this.#scans = value;
27
+ }
28
+
29
+ #id: string;
30
+ #name: string;
31
+ #scans: number;
32
+
33
+ constructor(id: string, name: string, scans: number) {
34
+ this.#id = id;
35
+ this.#name = name;
36
+ this.#scans = scans;
37
+ }
38
+ }
@@ -0,0 +1,38 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class EventStatisticsSwapTotalsDto {
5
+ get swaps(): number {
6
+ return this.#swaps;
7
+ }
8
+
9
+ set swaps(value: number) {
10
+ this.#swaps = value;
11
+ }
12
+
13
+ get tickets(): number {
14
+ return this.#tickets;
15
+ }
16
+
17
+ set tickets(value: number) {
18
+ this.#tickets = value;
19
+ }
20
+
21
+ get rate(): number {
22
+ return this.#rate;
23
+ }
24
+
25
+ set rate(value: number) {
26
+ this.#rate = value;
27
+ }
28
+
29
+ #swaps: number;
30
+ #tickets: number;
31
+ #rate: number;
32
+
33
+ constructor(swaps: number, tickets: number, rate: number) {
34
+ this.#swaps = swaps;
35
+ this.#tickets = tickets;
36
+ this.#rate = rate;
37
+ }
38
+ }
@@ -0,0 +1,38 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class ShopDesignDto {
5
+ get backgroundColor(): string {
6
+ return this.#backgroundColor;
7
+ }
8
+
9
+ set backgroundColor(value: string) {
10
+ this.#backgroundColor = value;
11
+ }
12
+
13
+ get foregroundColor(): string {
14
+ return this.#foregroundColor;
15
+ }
16
+
17
+ set foregroundColor(value: string) {
18
+ this.#foregroundColor = value;
19
+ }
20
+
21
+ get primaryColor(): string {
22
+ return this.#primaryColor;
23
+ }
24
+
25
+ set primaryColor(value: string) {
26
+ this.#primaryColor = value;
27
+ }
28
+
29
+ #backgroundColor: string;
30
+ #foregroundColor: string;
31
+ #primaryColor: string;
32
+
33
+ constructor(backgroundColor: string, foregroundColor: string, primaryColor: string) {
34
+ this.#backgroundColor = backgroundColor;
35
+ this.#foregroundColor = foregroundColor;
36
+ this.#primaryColor = primaryColor;
37
+ }
38
+ }
@@ -0,0 +1,151 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { DateTime } from 'luxon';
3
+ import type { EventDto, MerchantDto, ShopDesignDto } from '#data/dto';
4
+ import type { ShopFieldRequirement, ShopStatus } from '#data/types';
5
+
6
+ @dto
7
+ export class ShopDto {
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 isPublished(): boolean {
25
+ return this.#isPublished;
26
+ }
27
+
28
+ set isPublished(value: boolean) {
29
+ this.#isPublished = value;
30
+ }
31
+
32
+ get password(): string {
33
+ return this.#password;
34
+ }
35
+
36
+ set password(value: string) {
37
+ this.#password = value;
38
+ }
39
+
40
+ get startsOn(): DateTime | null {
41
+ return this.#startsOn;
42
+ }
43
+
44
+ set startsOn(value: DateTime | null) {
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 fieldAddress(): ShopFieldRequirement {
57
+ return this.#fieldAddress;
58
+ }
59
+
60
+ set fieldAddress(value: ShopFieldRequirement) {
61
+ this.#fieldAddress = value;
62
+ }
63
+
64
+ get fieldBirthdate(): ShopFieldRequirement {
65
+ return this.#fieldBirthdate;
66
+ }
67
+
68
+ set fieldBirthdate(value: ShopFieldRequirement) {
69
+ this.#fieldBirthdate = value;
70
+ }
71
+
72
+ get fieldGender(): ShopFieldRequirement {
73
+ return this.#fieldGender;
74
+ }
75
+
76
+ set fieldGender(value: ShopFieldRequirement) {
77
+ this.#fieldGender = value;
78
+ }
79
+
80
+ get fieldPhoneNumber(): ShopFieldRequirement {
81
+ return this.#fieldPhoneNumber;
82
+ }
83
+
84
+ set fieldPhoneNumber(value: ShopFieldRequirement) {
85
+ this.#fieldPhoneNumber = value;
86
+ }
87
+
88
+ get status(): ShopStatus {
89
+ return this.#status;
90
+ }
91
+
92
+ set status(value: ShopStatus) {
93
+ this.#status = value;
94
+ }
95
+
96
+ get design(): ShopDesignDto {
97
+ return this.#design;
98
+ }
99
+
100
+ set design(value: ShopDesignDto) {
101
+ this.#design = value;
102
+ }
103
+
104
+ get event(): EventDto {
105
+ return this.#event;
106
+ }
107
+
108
+ set event(value: EventDto) {
109
+ this.#event = value;
110
+ }
111
+
112
+ get merchant(): MerchantDto {
113
+ return this.#merchant;
114
+ }
115
+
116
+ set merchant(value: MerchantDto) {
117
+ this.#merchant = value;
118
+ }
119
+
120
+ #id: string;
121
+ #name: string;
122
+ #isPublished: boolean;
123
+ #password: string;
124
+ #startsOn: DateTime | null;
125
+ #endsOn: DateTime | null;
126
+ #fieldAddress: ShopFieldRequirement;
127
+ #fieldBirthdate: ShopFieldRequirement;
128
+ #fieldGender: ShopFieldRequirement;
129
+ #fieldPhoneNumber: ShopFieldRequirement;
130
+ #status: ShopStatus;
131
+ #design: ShopDesignDto;
132
+ #event: EventDto;
133
+ #merchant: MerchantDto;
134
+
135
+ constructor(id: string, name: string, isPublished: boolean, password: string, startsOn: DateTime | null, endsOn: DateTime | null, fieldAddress: ShopFieldRequirement, fieldBirthdate: ShopFieldRequirement, fieldGender: ShopFieldRequirement, fieldPhoneNumber: ShopFieldRequirement, status: ShopStatus, design: ShopDesignDto, event: EventDto, merchant: MerchantDto) {
136
+ this.#id = id;
137
+ this.#name = name;
138
+ this.#isPublished = isPublished;
139
+ this.#password = password;
140
+ this.#startsOn = startsOn;
141
+ this.#endsOn = endsOn;
142
+ this.#fieldAddress = fieldAddress;
143
+ this.#fieldBirthdate = fieldBirthdate;
144
+ this.#fieldGender = fieldGender;
145
+ this.#fieldPhoneNumber = fieldPhoneNumber;
146
+ this.#status = status;
147
+ this.#design = design;
148
+ this.#event = event;
149
+ this.#merchant = merchant;
150
+ }
151
+ }