@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,20 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import { PublicShopElementDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class PublicShopElementTextDto extends PublicShopElementDto {
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,60 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { AddressDto, PictureDto } from '#data/dto';
3
+ import type { EventStatus } from '#data/types';
4
+
5
+ @dto
6
+ export class PublicShopEventDto {
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 status(): EventStatus {
24
+ return this.#status;
25
+ }
26
+
27
+ set status(value: EventStatus) {
28
+ this.#status = value;
29
+ }
30
+
31
+ get address(): AddressDto {
32
+ return this.#address;
33
+ }
34
+
35
+ set address(value: AddressDto) {
36
+ this.#address = value;
37
+ }
38
+
39
+ get headerFile(): PictureDto | null {
40
+ return this.#headerFile;
41
+ }
42
+
43
+ set headerFile(value: PictureDto | null) {
44
+ this.#headerFile = value;
45
+ }
46
+
47
+ #id: string;
48
+ #name: string;
49
+ #status: EventStatus;
50
+ #address: AddressDto;
51
+ #headerFile: PictureDto | null;
52
+
53
+ constructor(id: string, name: string, status: EventStatus, address: AddressDto, headerFile: PictureDto | null) {
54
+ this.#id = id;
55
+ this.#name = name;
56
+ this.#status = status;
57
+ this.#address = address;
58
+ this.#headerFile = headerFile;
59
+ }
60
+ }
@@ -0,0 +1,28 @@
1
+ import { dto } from '@basmilius/http-client';
2
+
3
+ @dto
4
+ export class PublicShopMerchantDto {
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
+ #id: string;
22
+ #name: string;
23
+
24
+ constructor(id: string, name: string) {
25
+ this.#id = id;
26
+ this.#name = name;
27
+ }
28
+ }
@@ -0,0 +1,120 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { CostDto, PictureDto, PublicShopTimeSlotDto } from '#data/dto';
3
+ import type { ProductType } from '#data/types';
4
+
5
+ @dto
6
+ export class PublicShopProductDto {
7
+ get id(): string {
8
+ return this.#id;
9
+ }
10
+
11
+ set id(value: string) {
12
+ this.#id = value;
13
+ }
14
+
15
+ get type(): ProductType {
16
+ return this.#type;
17
+ }
18
+
19
+ set type(value: ProductType) {
20
+ this.#type = value;
21
+ }
22
+
23
+ get name(): string {
24
+ return this.#name;
25
+ }
26
+
27
+ set name(value: string) {
28
+ this.#name = value;
29
+ }
30
+
31
+ get description(): string {
32
+ return this.#description;
33
+ }
34
+
35
+ set description(value: string) {
36
+ this.#description = value;
37
+ }
38
+
39
+ get price(): CostDto {
40
+ return this.#price;
41
+ }
42
+
43
+ set price(value: CostDto) {
44
+ this.#price = value;
45
+ }
46
+
47
+ get maxQuantity(): number {
48
+ return this.#maxQuantity;
49
+ }
50
+
51
+ set maxQuantity(value: number) {
52
+ this.#maxQuantity = value;
53
+ }
54
+
55
+ get isActive(): boolean {
56
+ return this.#isActive;
57
+ }
58
+
59
+ set isActive(value: boolean) {
60
+ this.#isActive = value;
61
+ }
62
+
63
+ get isTimeslotted(): boolean {
64
+ return this.#isTimeslotted;
65
+ }
66
+
67
+ set isTimeslotted(value: boolean) {
68
+ this.#isTimeslotted = value;
69
+ }
70
+
71
+ get timeSlots(): PublicShopTimeSlotDto[] {
72
+ return this.#timeSlots;
73
+ }
74
+
75
+ set timeSlots(value: PublicShopTimeSlotDto[]) {
76
+ this.#timeSlots = value;
77
+ }
78
+
79
+ get image(): PictureDto | null {
80
+ return this.#image;
81
+ }
82
+
83
+ set image(value: PictureDto | null) {
84
+ this.#image = value;
85
+ }
86
+
87
+ get images(): PictureDto[] {
88
+ return this.#images;
89
+ }
90
+
91
+ set images(value: PictureDto[]) {
92
+ this.#images = value;
93
+ }
94
+
95
+ #id: string;
96
+ #type: ProductType;
97
+ #name: string;
98
+ #description: string;
99
+ #price: CostDto;
100
+ #maxQuantity: number;
101
+ #isActive: boolean;
102
+ #isTimeslotted: boolean;
103
+ #timeSlots: PublicShopTimeSlotDto[];
104
+ #image: PictureDto | null;
105
+ #images: PictureDto[];
106
+
107
+ constructor(id: string, type: ProductType, name: string, description: string, price: CostDto, maxQuantity: number, isActive: boolean, isTimeslotted: boolean, timeSlots: PublicShopTimeSlotDto[], image: PictureDto | null, images: PictureDto[]) {
108
+ this.#id = id;
109
+ this.#type = type;
110
+ this.#name = name;
111
+ this.#description = description;
112
+ this.#price = price;
113
+ this.#maxQuantity = maxQuantity;
114
+ this.#isActive = isActive;
115
+ this.#isTimeslotted = isTimeslotted;
116
+ this.#timeSlots = timeSlots;
117
+ this.#image = image;
118
+ this.#images = images;
119
+ }
120
+ }
@@ -0,0 +1,50 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { DateTime } from 'luxon';
3
+ import type { PublicShopReservationProductDto } from '#data/dto';
4
+
5
+ @dto
6
+ export class PublicShopReservationDto {
7
+ get id(): string {
8
+ return this.#id;
9
+ }
10
+
11
+ set id(value: string) {
12
+ this.#id = value;
13
+ }
14
+
15
+ get createdOn(): DateTime {
16
+ return this.#createdOn;
17
+ }
18
+
19
+ set createdOn(value: DateTime) {
20
+ this.#createdOn = value;
21
+ }
22
+
23
+ get expiresOn(): DateTime {
24
+ return this.#expiresOn;
25
+ }
26
+
27
+ set expiresOn(value: DateTime) {
28
+ this.#expiresOn = value;
29
+ }
30
+
31
+ get products(): PublicShopReservationProductDto[] {
32
+ return this.#products;
33
+ }
34
+
35
+ set products(value: PublicShopReservationProductDto[]) {
36
+ this.#products = value;
37
+ }
38
+
39
+ #id: string;
40
+ #createdOn: DateTime;
41
+ #expiresOn: DateTime;
42
+ #products: PublicShopReservationProductDto[];
43
+
44
+ constructor(id: string, createdOn: DateTime, expiresOn: DateTime, products: PublicShopReservationProductDto[]) {
45
+ this.#id = id;
46
+ this.#createdOn = createdOn;
47
+ this.#expiresOn = expiresOn;
48
+ this.#products = products;
49
+ }
50
+ }
@@ -0,0 +1,49 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { PictureDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class PublicShopReservationProductDetailsDto {
6
+ get id(): string {
7
+ return this.#id;
8
+ }
9
+
10
+ set id(value: string) {
11
+ this.#id = value;
12
+ }
13
+
14
+ get name(): string {
15
+ return this.#name;
16
+ }
17
+
18
+ set name(value: string) {
19
+ this.#name = value;
20
+ }
21
+
22
+ get description(): string {
23
+ return this.#description;
24
+ }
25
+
26
+ set description(value: string) {
27
+ this.#description = value;
28
+ }
29
+
30
+ get image(): PictureDto {
31
+ return this.#image;
32
+ }
33
+
34
+ set image(value: PictureDto) {
35
+ this.#image = value;
36
+ }
37
+
38
+ #id: string;
39
+ #name: string;
40
+ #description: string;
41
+ #image: PictureDto;
42
+
43
+ constructor(id: string, name: string, description: string, image: PictureDto) {
44
+ this.#id = id;
45
+ this.#name = name;
46
+ this.#description = description;
47
+ this.#image = image;
48
+ }
49
+ }
@@ -0,0 +1,29 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { PublicShopReservationProductDetailsDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class PublicShopReservationProductDto {
6
+ get product(): PublicShopReservationProductDetailsDto {
7
+ return this.#product;
8
+ }
9
+
10
+ set product(value: PublicShopReservationProductDetailsDto) {
11
+ this.#product = value;
12
+ }
13
+
14
+ get quantity(): number {
15
+ return this.#quantity;
16
+ }
17
+
18
+ set quantity(value: number) {
19
+ this.#quantity = value;
20
+ }
21
+
22
+ #product: PublicShopReservationProductDetailsDto;
23
+ #quantity: number;
24
+
25
+ constructor(product: PublicShopReservationProductDetailsDto, quantity: number) {
26
+ this.#product = product;
27
+ this.#quantity = quantity;
28
+ }
29
+ }
@@ -0,0 +1,59 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { DateTime } from 'luxon';
3
+
4
+ @dto
5
+ export class PublicShopTimeSlotDto {
6
+ get id(): string {
7
+ return this.#id;
8
+ }
9
+
10
+ set id(value: string) {
11
+ this.#id = value;
12
+ }
13
+
14
+ get label(): string | null {
15
+ return this.#label;
16
+ }
17
+
18
+ set label(value: string | null) {
19
+ this.#label = value;
20
+ }
21
+
22
+ get fromTime(): DateTime {
23
+ return this.#fromTime;
24
+ }
25
+
26
+ set fromTime(value: DateTime) {
27
+ this.#fromTime = value;
28
+ }
29
+
30
+ get toTime(): DateTime {
31
+ return this.#toTime;
32
+ }
33
+
34
+ set toTime(value: DateTime) {
35
+ this.#toTime = value;
36
+ }
37
+
38
+ get maxQuantity(): number {
39
+ return this.#maxQuantity;
40
+ }
41
+
42
+ set maxQuantity(value: number) {
43
+ this.#maxQuantity = value;
44
+ }
45
+
46
+ #id: string;
47
+ #label: string | null;
48
+ #fromTime: DateTime;
49
+ #toTime: DateTime;
50
+ #maxQuantity: number;
51
+
52
+ constructor(id: string, label: string | null, fromTime: DateTime, toTime: DateTime, maxQuantity: number) {
53
+ this.#id = id;
54
+ this.#label = label;
55
+ this.#fromTime = fromTime;
56
+ this.#toTime = toTime;
57
+ this.#maxQuantity = maxQuantity;
58
+ }
59
+ }
@@ -0,0 +1,17 @@
1
+ export * from './PublicShopCartProductDto';
2
+ export * from './PublicShopDesignDto';
3
+ export * from './PublicShopDto';
4
+ export * from './PublicShopElementDto';
5
+ export * from './PublicShopElementButtonDto';
6
+ export * from './PublicShopElementDividerDto';
7
+ export * from './PublicShopElementHeadingDto';
8
+ export * from './PublicShopElementNoticeDto';
9
+ export * from './PublicShopElementProductDto';
10
+ export * from './PublicShopElementTextDto';
11
+ export * from './PublicShopEventDto';
12
+ export * from './PublicShopMerchantDto';
13
+ export * from './PublicShopProductDto';
14
+ export * from './PublicShopReservationDto';
15
+ export * from './PublicShopReservationProductDto';
16
+ export * from './PublicShopReservationProductDetailsDto';
17
+ export * from './PublicShopTimeSlotDto';
@@ -0,0 +1,60 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { DateTime } from 'luxon';
3
+ import type { ReservationItemDto } from '#data/dto';
4
+
5
+ @dto
6
+ export class ReservationDto {
7
+ get id(): string {
8
+ return this.#id;
9
+ }
10
+
11
+ set id(value: string) {
12
+ this.#id = value;
13
+ }
14
+
15
+ get createdOn(): DateTime {
16
+ return this.#createdOn;
17
+ }
18
+
19
+ set createdOn(value: DateTime) {
20
+ this.#createdOn = value;
21
+ }
22
+
23
+ get expiresOn(): DateTime {
24
+ return this.#expiresOn;
25
+ }
26
+
27
+ set expiresOn(value: DateTime) {
28
+ this.#expiresOn = value;
29
+ }
30
+
31
+ get isExpired(): boolean {
32
+ return this.#isExpired;
33
+ }
34
+
35
+ set isExpired(value: boolean) {
36
+ this.#isExpired = value;
37
+ }
38
+
39
+ get items(): ReservationItemDto[] {
40
+ return this.#items;
41
+ }
42
+
43
+ set items(value: ReservationItemDto[]) {
44
+ this.#items = value;
45
+ }
46
+
47
+ #id: string;
48
+ #createdOn: DateTime;
49
+ #expiresOn: DateTime;
50
+ #isExpired: boolean;
51
+ #items: ReservationItemDto[];
52
+
53
+ constructor(id: string, createdOn: DateTime, expiresOn: DateTime, isExpired: boolean, items: ReservationItemDto[]) {
54
+ this.#id = id;
55
+ this.#createdOn = createdOn;
56
+ this.#expiresOn = expiresOn;
57
+ this.#isExpired = isExpired;
58
+ this.#items = items;
59
+ }
60
+ }
@@ -0,0 +1,29 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { ReservationProductDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class ReservationItemDto {
6
+ get quantity(): number {
7
+ return this.#quantity;
8
+ }
9
+
10
+ set quantity(value: number) {
11
+ this.#quantity = value;
12
+ }
13
+
14
+ get product(): ReservationProductDto {
15
+ return this.#product;
16
+ }
17
+
18
+ set product(value: ReservationProductDto) {
19
+ this.#product = value;
20
+ }
21
+
22
+ #quantity: number;
23
+ #product: ReservationProductDto;
24
+
25
+ constructor(quantity: number, product: ReservationProductDto) {
26
+ this.#quantity = quantity;
27
+ this.#product = product;
28
+ }
29
+ }
@@ -0,0 +1,49 @@
1
+ import { dto } from '@basmilius/http-client';
2
+ import type { PictureDto } from '#data/dto';
3
+
4
+ @dto
5
+ export class ReservationProductDto {
6
+ get id(): string {
7
+ return this.#id;
8
+ }
9
+
10
+ set id(value: string) {
11
+ this.#id = value;
12
+ }
13
+
14
+ get name(): string {
15
+ return this.#name;
16
+ }
17
+
18
+ set name(value: string) {
19
+ this.#name = value;
20
+ }
21
+
22
+ get description(): string {
23
+ return this.#description;
24
+ }
25
+
26
+ set description(value: string) {
27
+ this.#description = value;
28
+ }
29
+
30
+ get image(): PictureDto | null {
31
+ return this.#image;
32
+ }
33
+
34
+ set image(value: PictureDto | null) {
35
+ this.#image = value;
36
+ }
37
+
38
+ #id: string;
39
+ #name: string;
40
+ #description: string;
41
+ #image: PictureDto | null;
42
+
43
+ constructor(id: string, name: string, description: string, image: PictureDto | null) {
44
+ this.#id = id;
45
+ this.#name = name;
46
+ this.#description = description;
47
+ this.#image = image;
48
+ }
49
+ }
@@ -0,0 +1,3 @@
1
+ export * from './ReservationDto';
2
+ export * from './ReservationItemDto';
3
+ export * from './ReservationProductDto';