@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,41 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { FluxIconName } from '@flux-ui/types';
3
+ import { ShopElementDto } from '#data/dto';
4
+
5
+ @dto
6
+ export class ShopElementButtonDto extends ShopElementDto {
7
+ get icon(): FluxIconName | null {
8
+ return this.#icon;
9
+ }
10
+
11
+ set icon(value: FluxIconName | null) {
12
+ this.#icon = value;
13
+ }
14
+
15
+ get text(): string {
16
+ return this.#text;
17
+ }
18
+
19
+ set text(value: string) {
20
+ this.#text = value;
21
+ }
22
+
23
+ get url(): string {
24
+ return this.#url;
25
+ }
26
+
27
+ set url(value: string) {
28
+ this.#url = value;
29
+ }
30
+
31
+ #icon: FluxIconName | null;
32
+ #text: string;
33
+ #url: string;
34
+
35
+ constructor(id: string, icon: FluxIconName | null, text: string, url: string) {
36
+ super(id, 'button');
37
+ this.#icon = icon;
38
+ this.#text = text;
39
+ this.#url = url;
40
+ }
41
+ }
@@ -0,0 +1,31 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { FluxIconName } from '@flux-ui/types';
3
+ import { ShopElementDto } from '#data/dto';
4
+
5
+ @dto
6
+ export class ShopElementDividerDto extends ShopElementDto {
7
+ get icon(): FluxIconName | null {
8
+ return this.#icon;
9
+ }
10
+
11
+ set icon(value: FluxIconName | null) {
12
+ this.#icon = value;
13
+ }
14
+
15
+ get text(): string | null {
16
+ return this.#text;
17
+ }
18
+
19
+ set text(value: string | null) {
20
+ this.#text = value;
21
+ }
22
+
23
+ #icon: FluxIconName | null;
24
+ #text: string | null;
25
+
26
+ constructor(id: string, icon: FluxIconName | null, text: string | null) {
27
+ super(id, 'divider');
28
+ this.#icon = icon;
29
+ this.#text = text;
30
+ }
31
+ }
@@ -0,0 +1,27 @@
1
+ import type { ShopElementType } from '#data/types';
2
+
3
+ export abstract class ShopElementDto {
4
+ get id(): string {
5
+ return this.#id;
6
+ }
7
+
8
+ set id(value: string) {
9
+ this.#id = value;
10
+ }
11
+
12
+ get type(): ShopElementType {
13
+ return this.#type;
14
+ }
15
+
16
+ set type(value: ShopElementType) {
17
+ this.#type = value;
18
+ }
19
+
20
+ #id: string;
21
+ #type: ShopElementType;
22
+
23
+ protected constructor(id: string, type: ShopElementType) {
24
+ this.#id = id;
25
+ this.#type = type;
26
+ }
27
+ }
@@ -0,0 +1,31 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import { ShopElementDto } from '#data/dto';
3
+ import type { HeadingLevel } from '#data/types';
4
+
5
+ @dto
6
+ export class ShopElementHeadingDto extends ShopElementDto {
7
+ get headingLevel(): HeadingLevel {
8
+ return this.#headingLevel;
9
+ }
10
+
11
+ set headingLevel(value: HeadingLevel) {
12
+ this.#headingLevel = value;
13
+ }
14
+
15
+ get title(): string {
16
+ return this.#title;
17
+ }
18
+
19
+ set title(value: string) {
20
+ this.#title = value;
21
+ }
22
+
23
+ #headingLevel: HeadingLevel;
24
+ #title: string;
25
+
26
+ constructor(id: string, headingLevel: HeadingLevel, title: string) {
27
+ super(id, 'heading');
28
+ this.#headingLevel = headingLevel;
29
+ this.#title = title;
30
+ }
31
+ }
@@ -0,0 +1,52 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { FluxIconName } from '@flux-ui/types';
3
+ import { ShopElementDto } from '#data/dto';
4
+ import type { NoticeType } from '#data/types';
5
+
6
+ @dto
7
+ export class ShopElementNoticeDto extends ShopElementDto {
8
+ get icon(): FluxIconName {
9
+ return this.#icon;
10
+ }
11
+
12
+ set icon(value: FluxIconName) {
13
+ this.#icon = value;
14
+ }
15
+
16
+ get noticeType(): NoticeType {
17
+ return this.#noticeType;
18
+ }
19
+
20
+ set noticeType(value: NoticeType) {
21
+ this.#noticeType = value;
22
+ }
23
+
24
+ get title(): string | null {
25
+ return this.#title;
26
+ }
27
+
28
+ set title(value: string | null) {
29
+ this.#title = value;
30
+ }
31
+
32
+ get text(): string {
33
+ return this.#text;
34
+ }
35
+
36
+ set text(value: string) {
37
+ this.#text = value;
38
+ }
39
+
40
+ #icon: FluxIconName;
41
+ #noticeType: NoticeType;
42
+ #title: string | null;
43
+ #text: string;
44
+
45
+ constructor(id: string, icon: FluxIconName, noticeType: NoticeType, title: string | null, text: string) {
46
+ super(id, 'notice');
47
+ this.#icon = icon;
48
+ this.#noticeType = noticeType;
49
+ this.#title = title;
50
+ this.#text = text;
51
+ }
52
+ }
@@ -0,0 +1,20 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import { type ProductDto, ShopElementDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class ShopElementProductDto extends ShopElementDto {
6
+ get product(): ProductDto {
7
+ return this.#product;
8
+ }
9
+
10
+ set product(value: ProductDto) {
11
+ this.#product = value;
12
+ }
13
+
14
+ #product: ProductDto;
15
+
16
+ constructor(id: string, product: ProductDto) {
17
+ super(id, 'product');
18
+ this.#product = product;
19
+ }
20
+ }
@@ -0,0 +1,20 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import { ShopElementDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class ShopElementTextDto extends ShopElementDto {
6
+ get text(): string {
7
+ return this.#text;
8
+ }
9
+
10
+ set text(value: string) {
11
+ this.#text = value;
12
+ }
13
+
14
+ #text: string;
15
+
16
+ constructor(id: string, text: string) {
17
+ super(id, 'text');
18
+ this.#text = text;
19
+ }
20
+ }
@@ -0,0 +1,49 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { StockOverviewItemDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class StockOverviewDto {
6
+ get total(): number {
7
+ return this.#total;
8
+ }
9
+
10
+ set total(value: number) {
11
+ this.#total = value;
12
+ }
13
+
14
+ get sold(): number {
15
+ return this.#sold;
16
+ }
17
+
18
+ set sold(value: number) {
19
+ this.#sold = value;
20
+ }
21
+
22
+ get remaining(): number {
23
+ return this.#remaining;
24
+ }
25
+
26
+ set remaining(value: number) {
27
+ this.#remaining = value;
28
+ }
29
+
30
+ get items(): StockOverviewItemDto[] {
31
+ return this.#items;
32
+ }
33
+
34
+ set items(value: StockOverviewItemDto[]) {
35
+ this.#items = value;
36
+ }
37
+
38
+ #total: number;
39
+ #sold: number;
40
+ #remaining: number;
41
+ #items: StockOverviewItemDto[];
42
+
43
+ constructor(total: number, sold: number, remaining: number, items: StockOverviewItemDto[]) {
44
+ this.#total = total;
45
+ this.#sold = sold;
46
+ this.#remaining = remaining;
47
+ this.#items = items;
48
+ }
49
+ }
@@ -0,0 +1,49 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { ProductDto, StockPoolDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class StockOverviewItemDto {
6
+ get pool(): StockPoolDto {
7
+ return this.#pool;
8
+ }
9
+
10
+ set pool(value: StockPoolDto) {
11
+ this.#pool = value;
12
+ }
13
+
14
+ get product(): ProductDto {
15
+ return this.#product;
16
+ }
17
+
18
+ set product(value: ProductDto) {
19
+ this.#product = value;
20
+ }
21
+
22
+ get remaining(): number {
23
+ return this.#remaining;
24
+ }
25
+
26
+ set remaining(value: number) {
27
+ this.#remaining = value;
28
+ }
29
+
30
+ get sold(): number {
31
+ return this.#sold;
32
+ }
33
+
34
+ set sold(value: number) {
35
+ this.#sold = value;
36
+ }
37
+
38
+ #pool: StockPoolDto;
39
+ #product: ProductDto;
40
+ #remaining: number;
41
+ #sold: number;
42
+
43
+ constructor(pool: StockPoolDto, product: ProductDto, remaining: number, sold: number) {
44
+ this.#pool = pool;
45
+ this.#product = product;
46
+ this.#remaining = remaining;
47
+ this.#sold = sold;
48
+ }
49
+ }
@@ -0,0 +1,109 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { DateTime } from 'luxon';
3
+
4
+ @dto
5
+ export class StockPoolDto {
6
+ get id(): string {
7
+ return this.#id;
8
+ }
9
+
10
+ set id(value: string) {
11
+ this.#id = value;
12
+ }
13
+
14
+ get eventId(): string {
15
+ return this.#eventId;
16
+ }
17
+
18
+ set eventId(value: string) {
19
+ this.#eventId = value;
20
+ }
21
+
22
+ get merchantId(): string {
23
+ return this.#merchantId;
24
+ }
25
+
26
+ set merchantId(value: string) {
27
+ this.#merchantId = value;
28
+ }
29
+
30
+ get name(): string | null {
31
+ return this.#name;
32
+ }
33
+
34
+ set name(value: string | null) {
35
+ this.#name = value;
36
+ }
37
+
38
+ get remainingStock(): number {
39
+ return this.#remainingStock;
40
+ }
41
+
42
+ set remainingStock(value: number) {
43
+ this.#remainingStock = value;
44
+ }
45
+
46
+ get stock(): number {
47
+ return this.#stock;
48
+ }
49
+
50
+ set stock(value: number) {
51
+ this.#stock = value;
52
+ }
53
+
54
+ get isShared(): boolean {
55
+ return this.#isShared;
56
+ }
57
+
58
+ set isShared(value: boolean) {
59
+ this.#isShared = value;
60
+ }
61
+
62
+ get productNames(): string[] {
63
+ return this.#productNames;
64
+ }
65
+
66
+ set productNames(value: string[]) {
67
+ this.#productNames = value;
68
+ }
69
+
70
+ get createdOn(): DateTime {
71
+ return this.#createdOn;
72
+ }
73
+
74
+ set createdOn(value: DateTime) {
75
+ this.#createdOn = value;
76
+ }
77
+
78
+ get updatedOn(): DateTime {
79
+ return this.#updatedOn;
80
+ }
81
+
82
+ set updatedOn(value: DateTime) {
83
+ this.#updatedOn = value;
84
+ }
85
+
86
+ #id: string;
87
+ #eventId: string;
88
+ #merchantId: string;
89
+ #name: string | null;
90
+ #remainingStock: number;
91
+ #stock: number;
92
+ #isShared: boolean;
93
+ #productNames: string[];
94
+ #createdOn: DateTime;
95
+ #updatedOn: DateTime;
96
+
97
+ constructor(id: string, eventId: string, merchantId: string, name: string | null, remainingStock: number, stock: number, isShared: boolean, productNames: string[], createdOn: DateTime, updatedOn: DateTime) {
98
+ this.#id = id;
99
+ this.#eventId = eventId;
100
+ this.#merchantId = merchantId;
101
+ this.#name = name;
102
+ this.#remainingStock = remainingStock;
103
+ this.#stock = stock;
104
+ this.#isShared = isShared;
105
+ this.#productNames = productNames;
106
+ this.#createdOn = createdOn;
107
+ this.#updatedOn = updatedOn;
108
+ }
109
+ }
@@ -0,0 +1,70 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { PictureDto, ProductDto } from '#data/dto';
3
+ import type { TicketTemplateType } from '#data/types';
4
+
5
+ @dto
6
+ export class TicketTemplateDto {
7
+ get id(): string {
8
+ return this.#id;
9
+ }
10
+
11
+ set id(value: string) {
12
+ this.#id = value;
13
+ }
14
+
15
+ get name(): string {
16
+ return this.#name;
17
+ }
18
+
19
+ set name(value: string) {
20
+ this.#name = value;
21
+ }
22
+
23
+ get product(): ProductDto | null {
24
+ return this.#product;
25
+ }
26
+
27
+ set product(value: ProductDto | null) {
28
+ this.#product = value;
29
+ }
30
+
31
+ get productId(): string | null {
32
+ return this.#productId;
33
+ }
34
+
35
+ set productId(value: string | null) {
36
+ this.#productId = value;
37
+ }
38
+
39
+ get variant(): TicketTemplateType {
40
+ return this.#variant;
41
+ }
42
+
43
+ set variant(value: TicketTemplateType) {
44
+ this.#variant = value;
45
+ }
46
+
47
+ get visual(): PictureDto | null {
48
+ return this.#visual;
49
+ }
50
+
51
+ set visual(value: PictureDto | null) {
52
+ this.#visual = value;
53
+ }
54
+
55
+ #id: string;
56
+ #name: string;
57
+ #product: ProductDto | null;
58
+ #productId: string | null;
59
+ #variant: TicketTemplateType;
60
+ #visual: PictureDto | null;
61
+
62
+ constructor(id: string, name: string, product: ProductDto, productId: string | null, variant: TicketTemplateType, visual: PictureDto | null) {
63
+ this.#id = id;
64
+ this.#name = name;
65
+ this.#product = product;
66
+ this.#productId = productId;
67
+ this.#variant = variant;
68
+ this.#visual = visual;
69
+ }
70
+ }
@@ -0,0 +1,25 @@
1
+ export * from './EventAvailabilityDto';
2
+ export * from './EventCountersDto';
3
+ export * from './EventDto';
4
+ export * from './EventStatisticsAttendanceDto';
5
+ export * from './EventStatisticsBuyerTotalsDto';
6
+ export * from './EventStatisticsFinancialDto';
7
+ export * from './EventStatisticsOrdersDto';
8
+ export * from './EventStatisticsOrderTotalsDto';
9
+ export * from './EventStatisticsScansDto';
10
+ export * from './EventStatisticsScansPerAppTeamDto';
11
+ export * from './EventStatisticsScanTotalsDto';
12
+ export * from './EventStatisticsSwapTotalsDto';
13
+ export * from './ShopDesignDto';
14
+ export * from './ShopDto';
15
+ export * from './ShopElementDto';
16
+ export * from './ShopElementButtonDto';
17
+ export * from './ShopElementDividerDto';
18
+ export * from './ShopElementHeadingDto';
19
+ export * from './ShopElementNoticeDto';
20
+ export * from './ShopElementProductDto';
21
+ export * from './ShopElementTextDto';
22
+ export * from './StockOverviewDto';
23
+ export * from './StockOverviewItemDto';
24
+ export * from './StockPoolDto';
25
+ export * from './TicketTemplateDto';
@@ -0,0 +1,38 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class PictureDto {
5
+ get id(): string {
6
+ return this.#id;
7
+ }
8
+
9
+ set id(value: string) {
10
+ this.#id = value;
11
+ }
12
+
13
+ get url(): string {
14
+ return this.#url;
15
+ }
16
+
17
+ set url(value: string) {
18
+ this.#url = value;
19
+ }
20
+
21
+ get variants(): Record<'large' | 'medium' | 'thumb', string> {
22
+ return this.#variants;
23
+ }
24
+
25
+ set variants(value: Record<'large' | 'medium' | 'thumb', string>) {
26
+ this.#variants = value;
27
+ }
28
+
29
+ #id: string;
30
+ #url: string;
31
+ #variants: Record<'large' | 'medium' | 'thumb', string>;
32
+
33
+ constructor(id: string, url: string, variants: Record<'large' | 'medium' | 'thumb', string>) {
34
+ this.#id = id;
35
+ this.#url = url;
36
+ this.#variants = variants;
37
+ }
38
+ }
@@ -0,0 +1 @@
1
+ export * from './PictureDto';
@@ -0,0 +1,49 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { CostDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class FinanceOverviewDto {
6
+ get estimatedPaymentCost(): CostDto {
7
+ return this.#estimatedPaymentCost;
8
+ }
9
+
10
+ set estimatedPaymentCost(value: CostDto) {
11
+ this.#estimatedPaymentCost = value;
12
+ }
13
+
14
+ get orders(): Record<string, number> {
15
+ return this.#orders;
16
+ }
17
+
18
+ set orders(value: Record<string, number>) {
19
+ this.#orders = value;
20
+ }
21
+
22
+ get platformCost(): CostDto {
23
+ return this.#platformCost;
24
+ }
25
+
26
+ set platformCost(value: CostDto) {
27
+ this.#platformCost = value;
28
+ }
29
+
30
+ get revenue(): CostDto {
31
+ return this.#revenue;
32
+ }
33
+
34
+ set revenue(value: CostDto) {
35
+ this.#revenue = value;
36
+ }
37
+
38
+ #estimatedPaymentCost: CostDto;
39
+ #orders: Record<string, number>;
40
+ #platformCost: CostDto;
41
+ #revenue: CostDto;
42
+
43
+ constructor(estimatedPaymentCost: CostDto, orders: Record<string, number>, platformCost: CostDto, revenue: CostDto) {
44
+ this.#estimatedPaymentCost = estimatedPaymentCost;
45
+ this.#orders = orders;
46
+ this.#platformCost = platformCost;
47
+ this.#revenue = revenue;
48
+ }
49
+ }