@passly-nl/data 1.0.0-beta.1 → 1.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter/AuthAdapter.d.ts +1 -1
- package/dist/adapter/BuyerAdapter.d.ts +1 -1
- package/dist/adapter/CommonAdapter.d.ts +1 -1
- package/dist/adapter/EventAdapter.d.ts +1 -1
- package/dist/adapter/FileSystemAdapter.d.ts +1 -1
- package/dist/adapter/FinanceAdapter.d.ts +1 -1
- package/dist/adapter/MerchantAdapter.d.ts +1 -1
- package/dist/adapter/MerchantDashboardAdapter.d.ts +1 -1
- package/dist/adapter/OrderAdapter.d.ts +1 -1
- package/dist/adapter/PaymentAdapter.d.ts +1 -1
- package/dist/adapter/ProductAdapter.d.ts +1 -1
- package/dist/adapter/PublicPayAdapter.d.ts +1 -1
- package/dist/adapter/PublicShopAdapter.d.ts +1 -1
- package/dist/adapter/ReservationAdapter.d.ts +1 -1
- package/dist/adapter/TicketAdapter.d.ts +1 -1
- package/dist/dto/auth/UserDto.d.ts +1 -1
- package/dist/dto/auth/UserTokenDto.d.ts +2 -2
- package/dist/dto/event/EventDto.d.ts +2 -2
- package/dist/dto/event/EventStatisticsFinancialDto.d.ts +1 -1
- package/dist/dto/event/EventStatisticsOrdersDto.d.ts +1 -1
- package/dist/dto/event/EventStatisticsScansDto.d.ts +1 -1
- package/dist/dto/event/ShopDto.d.ts +2 -2
- package/dist/dto/event/ShopElementButtonDto.d.ts +1 -1
- package/dist/dto/event/ShopElementDividerDto.d.ts +1 -1
- package/dist/dto/event/ShopElementDto.d.ts +1 -1
- package/dist/dto/event/ShopElementHeadingDto.d.ts +2 -2
- package/dist/dto/event/ShopElementNoticeDto.d.ts +2 -2
- package/dist/dto/event/ShopElementProductDto.d.ts +1 -1
- package/dist/dto/event/ShopElementTextDto.d.ts +1 -1
- package/dist/dto/event/StockOverviewDto.d.ts +1 -1
- package/dist/dto/event/StockOverviewItemDto.d.ts +1 -1
- package/dist/dto/event/TicketTemplateDto.d.ts +2 -2
- package/dist/dto/finance/FinanceOverviewDto.d.ts +1 -1
- package/dist/dto/finance/InvoiceDto.d.ts +2 -2
- package/dist/dto/finance/InvoiceLineDto.d.ts +2 -2
- package/dist/dto/merchant/ContractDto.d.ts +1 -1
- package/dist/dto/merchant/InvitationDto.d.ts +2 -2
- package/dist/dto/merchant/MerchantDashboardKeyMetricsDto.d.ts +1 -1
- package/dist/dto/merchant/MerchantDashboardUpcomingEventDto.d.ts +2 -2
- package/dist/dto/merchant/MerchantDto.d.ts +1 -1
- package/dist/dto/merchant/MerchantUserDto.d.ts +1 -1
- package/dist/dto/order/BuyerDto.d.ts +2 -2
- package/dist/dto/order/OrderDto.d.ts +2 -2
- package/dist/dto/order/OrderLineDto.d.ts +1 -1
- package/dist/dto/payment/PaymentProviderDto.d.ts +2 -2
- package/dist/dto/payment/TransactionDto.d.ts +2 -2
- package/dist/dto/product/ProductDto.d.ts +2 -2
- package/dist/dto/publicShop/PublicShopDto.d.ts +2 -2
- package/dist/dto/publicShop/PublicShopElementButtonDto.d.ts +1 -1
- package/dist/dto/publicShop/PublicShopElementDividerDto.d.ts +1 -1
- package/dist/dto/publicShop/PublicShopElementDto.d.ts +1 -1
- package/dist/dto/publicShop/PublicShopElementHeadingDto.d.ts +2 -2
- package/dist/dto/publicShop/PublicShopElementNoticeDto.d.ts +2 -2
- package/dist/dto/publicShop/PublicShopElementProductDto.d.ts +1 -1
- package/dist/dto/publicShop/PublicShopElementTextDto.d.ts +1 -1
- package/dist/dto/publicShop/PublicShopEventDto.d.ts +2 -2
- package/dist/dto/publicShop/PublicShopProductDto.d.ts +2 -2
- package/dist/dto/publicShop/PublicShopReservationDto.d.ts +1 -1
- package/dist/dto/publicShop/PublicShopReservationProductDetailsDto.d.ts +1 -1
- package/dist/dto/publicShop/PublicShopReservationProductDto.d.ts +1 -1
- package/dist/dto/reservation/ReservationDto.d.ts +1 -1
- package/dist/dto/reservation/ReservationItemDto.d.ts +1 -1
- package/dist/dto/reservation/ReservationProductDto.d.ts +1 -1
- package/dist/dto/ticket/TicketDto.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +103 -103
- package/dist/service/AuthService.d.ts +2 -2
- package/dist/service/InvitationService.d.ts +1 -1
- package/dist/service/MeService.d.ts +1 -1
- package/dist/service/MerchantBuyerService.d.ts +1 -1
- package/dist/service/MerchantBuyersService.d.ts +1 -1
- package/dist/service/MerchantDashboardService.d.ts +1 -1
- package/dist/service/MerchantEventProductService.d.ts +1 -1
- package/dist/service/MerchantEventProductsService.d.ts +1 -1
- package/dist/service/MerchantEventService.d.ts +1 -1
- package/dist/service/MerchantEventShopService.d.ts +1 -1
- package/dist/service/MerchantEventShopsService.d.ts +1 -1
- package/dist/service/MerchantEventStatisticsService.d.ts +1 -1
- package/dist/service/MerchantEventStockPoolsService.d.ts +1 -1
- package/dist/service/MerchantEventTicketTemplateService.d.ts +2 -2
- package/dist/service/MerchantEventTicketTemplatesService.d.ts +2 -2
- package/dist/service/MerchantEventsService.d.ts +1 -1
- package/dist/service/MerchantFinanceInvoiceService.d.ts +1 -1
- package/dist/service/MerchantFinanceInvoicesService.d.ts +1 -1
- package/dist/service/MerchantFinanceService.d.ts +2 -2
- package/dist/service/MerchantOrderService.d.ts +1 -1
- package/dist/service/MerchantOrdersService.d.ts +1 -1
- package/dist/service/MerchantService.d.ts +2 -2
- package/dist/service/MerchantTicketService.d.ts +1 -1
- package/dist/service/MerchantTicketsService.d.ts +1 -1
- package/dist/service/MerchantUsersService.d.ts +2 -2
- package/dist/service/MerchantsService.d.ts +1 -1
- package/dist/service/PublicOrderService.d.ts +1 -1
- package/dist/service/PublicShopService.d.ts +2 -2
- package/dist/service/ReservationService.d.ts +1 -1
- package/package.json +1 -4
- package/src/adapter/AddressAdapter.ts +1 -1
- package/src/adapter/AuthAdapter.ts +3 -3
- package/src/adapter/BuyerAdapter.ts +3 -3
- package/src/adapter/CommonAdapter.ts +1 -1
- package/src/adapter/EventAdapter.ts +3 -3
- package/src/adapter/FileSystemAdapter.ts +1 -1
- package/src/adapter/FinanceAdapter.ts +3 -3
- package/src/adapter/MerchantAdapter.ts +3 -3
- package/src/adapter/MerchantDashboardAdapter.ts +2 -2
- package/src/adapter/OrderAdapter.ts +3 -3
- package/src/adapter/PaymentAdapter.ts +3 -3
- package/src/adapter/ProductAdapter.ts +3 -3
- package/src/adapter/PublicPayAdapter.ts +1 -1
- package/src/adapter/PublicShopAdapter.ts +3 -3
- package/src/adapter/ReservationAdapter.ts +3 -3
- package/src/adapter/TicketAdapter.ts +3 -3
- package/src/dto/auth/UserDto.ts +1 -1
- package/src/dto/auth/UserTokenDto.ts +2 -2
- package/src/dto/event/EventDto.ts +2 -2
- package/src/dto/event/EventStatisticsFinancialDto.ts +1 -1
- package/src/dto/event/EventStatisticsOrdersDto.ts +1 -1
- package/src/dto/event/EventStatisticsScansDto.ts +1 -1
- package/src/dto/event/ShopDto.ts +2 -2
- package/src/dto/event/ShopElementButtonDto.ts +1 -1
- package/src/dto/event/ShopElementDividerDto.ts +1 -1
- package/src/dto/event/ShopElementDto.ts +1 -1
- package/src/dto/event/ShopElementHeadingDto.ts +2 -2
- package/src/dto/event/ShopElementNoticeDto.ts +2 -2
- package/src/dto/event/ShopElementProductDto.ts +1 -1
- package/src/dto/event/ShopElementTextDto.ts +1 -1
- package/src/dto/event/StockOverviewDto.ts +1 -1
- package/src/dto/event/StockOverviewItemDto.ts +1 -1
- package/src/dto/event/TicketTemplateDto.ts +2 -2
- package/src/dto/finance/FinanceOverviewDto.ts +1 -1
- package/src/dto/finance/InvoiceDto.ts +2 -2
- package/src/dto/finance/InvoiceLineDto.ts +2 -2
- package/src/dto/merchant/ContractDto.ts +1 -1
- package/src/dto/merchant/InvitationDto.ts +2 -2
- package/src/dto/merchant/MerchantDashboardKeyMetricsDto.ts +1 -1
- package/src/dto/merchant/MerchantDashboardUpcomingEventDto.ts +2 -2
- package/src/dto/merchant/MerchantDto.ts +1 -1
- package/src/dto/merchant/MerchantUserDto.ts +1 -1
- package/src/dto/order/BuyerDto.ts +2 -2
- package/src/dto/order/OrderDto.ts +2 -2
- package/src/dto/order/OrderLineDto.ts +1 -1
- package/src/dto/payment/PaymentProviderDto.ts +2 -2
- package/src/dto/payment/TransactionDto.ts +2 -2
- package/src/dto/product/ProductDto.ts +2 -2
- package/src/dto/publicShop/PublicShopDto.ts +2 -2
- package/src/dto/publicShop/PublicShopElementButtonDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementDividerDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementHeadingDto.ts +2 -2
- package/src/dto/publicShop/PublicShopElementNoticeDto.ts +2 -2
- package/src/dto/publicShop/PublicShopElementProductDto.ts +1 -1
- package/src/dto/publicShop/PublicShopElementTextDto.ts +1 -1
- package/src/dto/publicShop/PublicShopEventDto.ts +2 -2
- package/src/dto/publicShop/PublicShopProductDto.ts +2 -2
- package/src/dto/publicShop/PublicShopReservationDto.ts +1 -1
- package/src/dto/publicShop/PublicShopReservationProductDetailsDto.ts +1 -1
- package/src/dto/publicShop/PublicShopReservationProductDto.ts +1 -1
- package/src/dto/reservation/ReservationDto.ts +1 -1
- package/src/dto/reservation/ReservationItemDto.ts +1 -1
- package/src/dto/reservation/ReservationProductDto.ts +1 -1
- package/src/dto/ticket/TicketDto.ts +2 -2
- package/src/service/AuthService.ts +3 -3
- package/src/service/InvitationService.ts +2 -2
- package/src/service/MeService.ts +2 -2
- package/src/service/MerchantBuyerService.ts +2 -2
- package/src/service/MerchantBuyersService.ts +2 -2
- package/src/service/MerchantDashboardService.ts +2 -2
- package/src/service/MerchantEventProductService.ts +2 -2
- package/src/service/MerchantEventProductsService.ts +2 -2
- package/src/service/MerchantEventService.ts +3 -3
- package/src/service/MerchantEventShopService.ts +2 -2
- package/src/service/MerchantEventShopsService.ts +2 -2
- package/src/service/MerchantEventStatisticsService.ts +2 -2
- package/src/service/MerchantEventStockPoolsService.ts +2 -2
- package/src/service/MerchantEventTicketTemplateService.ts +3 -3
- package/src/service/MerchantEventTicketTemplatesService.ts +4 -4
- package/src/service/MerchantEventsService.ts +2 -2
- package/src/service/MerchantFinanceInvoiceService.ts +2 -2
- package/src/service/MerchantFinanceInvoicesService.ts +2 -2
- package/src/service/MerchantFinanceService.ts +3 -3
- package/src/service/MerchantOrderService.ts +2 -2
- package/src/service/MerchantOrdersService.ts +2 -2
- package/src/service/MerchantService.ts +4 -4
- package/src/service/MerchantTicketService.ts +2 -2
- package/src/service/MerchantTicketsService.ts +2 -2
- package/src/service/MerchantUsersService.ts +3 -3
- package/src/service/MerchantsService.ts +2 -2
- package/src/service/PublicOrderService.ts +2 -2
- package/src/service/PublicShopService.ts +3 -3
- package/src/service/ReservationService.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var s=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,r,i);else for(var u=t.length-1;u>=0;u--)if(a=t[u])o=(n<3?a(o):n>3?a(e,r,o):a(e,r))||o;return n>3&&o&&Object.defineProperty(e,r,o),o};import{adapter as Tr}from"@basmilius/http-client";import{AddressDto as Sr}from"#data/dto";class Y{static parseAddressFromObject(t){return new Sr(t.id,t.label,t.street,t.number,t.postal_code,t.city,t.country,t.formatted)}}Y=s([Tr],Y);import{adapter as Or}from"@basmilius/http-client";import{DateTimeAdapter as Ue,FileSystemAdapter as Pr}from"#data/adapter";import{TotpStateDto as xr,UserDto as Fr,UserTokenDto as Rr}from"#data/dto";import{optional as Qe}from"#data/util";class U{static parseTotpStateFromObject(t){return new xr(t.enabled,t.secret,t.qr)}static parseUserFromObject(t){return new Fr(t.id,t.email,t.first_name,t.last_name,t.full_name,t.initials,t.phone_number,t.is_online,Qe(t.picture,Pr.parsePictureFromObject))}static parseUserTokenFromObject(t){return new Rr(t.token,t.type,t.browser,t.operating_system,Ue.parseDateTimeFromString(t.created_on),Ue.parseDateTimeFromString(t.expires_on),t.realtime_channel,Qe(t.user,U.parseUserFromObject))}}U=s([Or],U);import{adapter as qr}from"@basmilius/http-client";import{AddressAdapter as Br,DateTimeAdapter as kr}from"#data/adapter";import{BuyerDto as Cr}from"#data/dto";import{optional as Le}from"#data/util";class tt{static parseBuyerFromObject(t){return new Cr(t.id,t.first_name,t.last_name,t.email,t.phone_number,Le(t.date_of_birth,kr.parseDateTimeFromString),t.gender,t.order_count??-1,t.full_name,Le(t.address,Br.parseAddressFromObject))}}tt=s([qr],tt);import{adapter as vr}from"@basmilius/http-client";import{StatusResponseDto as jr}from"#data/dto";class et{static parseStatusResponseFromObject(t){return new jr(t.message,t.status)}}et=s([vr],et);import{adapter as $r}from"@basmilius/http-client";import{DateTime as Ar}from"luxon";class rt{static parseDateTimeFromString(t){return Ar.fromISO(t,{zone:"UTC"}).setZone("Europe/Amsterdam")}}rt=s([$r],rt);import{adapter as _r}from"@basmilius/http-client";import{AddressAdapter as wr,DateTimeAdapter as f,FileSystemAdapter as Ge,MerchantAdapter as Ir,PaymentAdapter as Ve,ProductAdapter as st}from"#data/adapter";import{EventAvailabilityDto as Nr,EventCountersDto as Er,EventDto as Mr,EventStatisticsAttendanceDto as Ur,EventStatisticsBuyerTotalsDto as Qr,EventStatisticsFinancialDto as Lr,EventStatisticsOrdersDto as Gr,EventStatisticsOrderTotalsDto as Vr,EventStatisticsScansDto as Hr,EventStatisticsScansPerAppTeamDto as Wr,EventStatisticsScanTotalsDto as zr,EventStatisticsSwapTotalsDto as Jr,ShopDesignDto as Kr,ShopDto as Zr,ShopElementButtonDto as Xr,ShopElementDividerDto as Yr,ShopElementHeadingDto as ts,ShopElementNoticeDto as es,ShopElementProductDto as rs,ShopElementTextDto as He,StockOverviewDto as ss,StockOverviewItemDto as is,StockPoolDto as ns,TicketTemplateDto as os}from"#data/dto";import{optional as y}from"#data/util";class c{static parseEventFromObject(t){return new Mr(t.id,t.name,t.description,f.parseDateTimeFromString(t.starts_on),f.parseDateTimeFromString(t.ends_on),t.minimum_age,t.status,y(t.address,wr.parseAddressFromObject),y(t.header_file,Ge.parsePictureFromObject),f.parseDateTimeFromString(t.created_on),f.parseDateTimeFromString(t.updated_on))}static parseEventAvailabilityFromObject(t){return new Nr(t.has_products,t.has_shops,t.has_shops_with_products,t.is_publishable,t.is_published)}static parseEventCountersFromObject(t){return new Er(t.guests,t.orders,t.tickets)}static parseShopFromObject(t){return new Zr(t.id,t.name,t.is_published,t.password,y(t.starts_on,f.parseDateTimeFromString),y(t.ends_on,f.parseDateTimeFromString),t.field_address,t.field_birthdate,t.field_gender,t.field_phone_number,t.status,y(t.design,c.parseShopDesignFromObject),y(t.event,c.parseEventFromObject),y(t.merchant,Ir.parseMerchantFromObject))}static parseShopDesignFromObject(t){return new Kr(t.background_color,t.foreground_color,t.primary_color)}static parseShopElementFromObject(t){switch(t.type){case"button":return new Xr(t.id,t.icon,t.text,t.url);case"divider":return new Yr(t.id,t.icon,t.text);case"heading":return new ts(t.id,t.heading_level,t.title);case"notice":return new es(t.id,t.icon,t.notice_type,t.title,t.text);case"product":return new rs(t.id,st.parseProductFromObject(t.product));case"text":return new He(t.id,t.text)}return new He("unknown","Unknown element type.")}static parseStockOverviewFromObject(t){return new ss(t.total,t.sold,t.remaining,t.items.map(c.parseStockOverviewItemFromObject))}static parseStockOverviewItemFromObject(t){return new is(c.parseStockPoolFromObject(t.pool),st.parseProductFromObject(t.product),t.remaining,t.sold)}static parseStockPoolFromObject(t){return new ns(t.id,t.event_id,t.merchant_id,t.name,t.remaining_stock,t.stock,t.is_shared,t.product_names??[],f.parseDateTimeFromString(t.created_on),f.parseDateTimeFromString(t.updated_on))}static parseTicketTemplateFromObject(t){return new os(t.id,t.name,y(t.product,st.parseProductFromObject),t.product_id,t.variant,y(t.visual,Ge.parsePictureFromObject))}static parseEventStatisticsAttendanceFromObject(t){return new Ur(t.attended,t.expected,t.rate)}static parseEventStatisticsBuyerTotalsFromObject(t){return new Qr(t.acquired,t.average_tickets,t.doubting,t.returning,t.total)}static parseEventStatisticsFinancialFromObject(t){return new Lr(Ve.parseCostFromObject(t.platform_cost),Ve.parseCostFromObject(t.revenue))}static parseEventStatisticsOrdersFromObject(t){return new Gr(t.chart,c.parseEventStatisticsOrderTotalsFromObject(t.totals))}static parseEventStatisticsOrderTotalsFromObject(t){return new Vr(t.fulfilled,t.interrupted,t.pending,t.total)}static parseEventStatisticsScansFromObject(t){return new Hr(t.app_teams.map(c.parseEventStatisticsScansPerAppTeamFromObject),t.chart,c.parseEventStatisticsScanTotalsFromObject(t.totals))}static parseEventStatisticsScansPerAppTeamFromObject(t){return new Wr(t.id,t.name,t.scans)}static parseEventStatisticsScanTotalsFromObject(t){return new zr(t.total,t.checkins,t.checkouts)}static parseEventStatisticsSwapTotalsFromObject(t){return new Jr(t.swaps,t.tickets,t.rate)}}c=s([_r],c);import{adapter as as}from"@basmilius/http-client";import{PictureDto as us}from"#data/dto";class it{static parsePictureFromObject(t){return new us(t.id,t.url,t.variants)}}it=s([as],it);import{adapter as ms}from"@basmilius/http-client";import{DateTimeAdapter as Q,PaymentAdapter as j}from"#data/adapter";import{FinanceOverviewDto as gs,InvoiceDto as ps,InvoiceLineDto as ds}from"#data/dto";import{optionalArray as hs}from"#data/util";class L{static parseFinanceOverviewFromObject(t){return new gs(j.parseCostFromObject(t.estimated_payment_cost),t.orders,j.parseCostFromObject(t.platform_cost),j.parseCostFromObject(t.revenue))}static parseInvoiceFromObject(t){return new ps(t.id,t.number,t.sequence,t.status,t.year,j.parseCostFromObject(t.total),hs(t.lines,L.parseInvoiceLineFromObject),Q.parseDateTimeFromString(t.created_on),Q.parseDateTimeFromString(t.updated_on))}static parseInvoiceLineFromObject(t){return new ds(t.id,t.type,j.parseCostFromObject(t.cost),Q.parseDateTimeFromString(t.created_on),Q.parseDateTimeFromString(t.updated_on))}}L=s([ms],L);import{adapter as cs}from"@basmilius/http-client";class ${static parseFluxFormSelectEntryFromObject(t){if("value"in t)return $.parseFluxFormSelectOptionFromObject(t);return $.parseFluxFormSelectGroupFromObject(t)}static parseFluxFormSelectGroupFromObject(t){return t}static parseFluxFormSelectOptionFromObject(t){return t}}$=s([cs],$);import{adapter as ls}from"@basmilius/http-client";import{AddressAdapter as ys,AuthAdapter as We,DateTimeAdapter as l,FileSystemAdapter as bs,PaymentAdapter as Ds}from"#data/adapter";import{ContractDto as fs,InvitationDto as Ts,MerchantDto as Ss,MerchantUserDto as Os,VatNumberDto as Ps}from"#data/dto";import{optional as A}from"#data/util";class _{static parseContractFromObject(t){return new fs(t.id,l.parseDateTimeFromString(t.starts_on),l.parseDateTimeFromString(t.ends_on),Ds.parseCostFromObject(t.fee),t.remark)}static parseInvitationFromObject(t){return new Ts(t.id,t.merchant_id,t.user_id,t.claims,t.is_new_user,l.parseDateTimeFromString(t.created_on),l.parseDateTimeFromString(t.updated_on),_.parseMerchantFromObject(t.merchant),We.parseUserFromObject(t.user))}static parseMerchantFromObject(t){return new Ss(t.id,t.name,t.email,t.phone_number,t.url,t.chamber_of_commerce_number,t.vat_number,t.currency,A(t.address,ys.parseAddressFromObject),A(t.current_contract,_.parseContractFromObject),A(t.logo,bs.parsePictureFromObject),A(t.created_on,l.parseDateTimeFromString),A(t.updated_on,l.parseDateTimeFromString))}static parseMerchantUserFromObject(t){return new Os(t.is_manager,l.parseDateTimeFromString(t.created_on),l.parseDateTimeFromString(t.updated_on),We.parseUserFromObject(t.user))}static parseVatNumberFromObject(t){return new Ps(t.id,t.vat_number,t.name,t.address,t.country_code,l.parseDateTimeFromString(t.created_on),l.parseDateTimeFromString(t.updated_on))}}_=s([ls],_);import{adapter as xs}from"@basmilius/http-client";import{DateTimeAdapter as Fs,FileSystemAdapter as Rs}from"#data/adapter";import{MerchantDashboardKeyMetricsDto as qs,MerchantDashboardUpcomingEventDto as Bs}from"#data/dto";class nt{static parseKeyMetricsFromObject(t){return new qs(t.revenue,t.tickets,t.events,t.tasks)}static parseUpcomingEventFromObject(t){return new Bs(t.id,t.name,t.description,Rs.parsePictureFromObject(t.header_file),t.status,Fs.parseDateTimeFromString(t.starts_on),t.tickets_sold,t.tickets_total,t.sell_through_rate)}}nt=s([xs],nt);import{adapter as ks}from"@basmilius/http-client";import{BuyerAdapter as Cs,DateTimeAdapter as ot,EventAdapter as vs,PaymentAdapter as O,PublicShopAdapter as js}from"#data/adapter";import{OrderDto as $s,OrderLineDto as As,OrderPaymentProviderDto as _s,OrderProductDto as ws}from"#data/dto";import{optional as T,optionalArray as Is}from"#data/util";class P{static parseOrderFromObject(t){return new $s(t.id,t.code,t.origin,t.type,ot.parseDateTimeFromString(t.created_on),T(t.payment_provider,P.parseOrderPaymentProviderFromObject),T(t.platform_cost,O.parseCostFromObject),T(t.sub_total,O.parseCostFromObject),T(t.total,O.parseCostFromObject),t.url,T(t.buyer,Cs.parseBuyerFromObject),T(t.event,vs.parseEventFromObject),Is(t.lines,P.parseOrderLineFromObject),T(t.shop,js.parsePublicShopFromObject),T(t.transaction,O.parseTransactionFromObject))}static parseOrderLineFromObject(t){return new As(t.id,O.parseCostFromObject(t.price),t.quantity,P.parseOrderProductFromObject(t.product),O.parseCostFromObject(t.sub_total),ot.parseDateTimeFromString(t.created_on),ot.parseDateTimeFromString(t.updated_on))}static parseOrderPaymentProviderFromObject(t){return new _s(t.name,t.url)}static parseOrderProductFromObject(t){return new ws(t.id,t.name,t.description,t.image)}}P=s([ks],P);import{adapter as Ns}from"@basmilius/http-client";import{OrderAdapter as Es}from"#data/adapter";import{CostDto as Ms,PaymentMethodDto as Us,PaymentProviderDto as Qs,TransactionDto as Ls}from"#data/dto";import{optional as ze}from"#data/util";class x{static parseCostFromObject(t){return new Ms(t.currency_code,t.currency_decimals,t.currency_sign,t.decimal,t.formatted,t.value)}static parsePaymentMethodFromObject(t){return new Us(t.id,t.name,t.image)}static parsePaymentProviderFromObject(t){return new Qs(t.id,t.type,t.methods.map(x.parsePaymentMethodFromObject))}static parseTransactionFromObject(t){return new Ls(t.id,t.description,t.status,x.parseCostFromObject(t.cost),t.metadata,t.external_checkout_url,t.external_details,ze(t.order,Es.parseOrderFromObject),ze(t.payment_method,x.parsePaymentMethodFromObject))}}x=s([Ns],x);import{adapter as Gs}from"@basmilius/http-client";import{EventAdapter as Vs,FileSystemAdapter as Je,PaymentAdapter as Hs}from"#data/adapter";import{ProductDto as Ws}from"#data/dto";import{optional as at,optionalArray as zs}from"#data/util";class ut{static parseProductFromObject(t){return new Ws(t.id,t.type,t.name,t.description,at(t.price,Hs.parseCostFromObject),t.max_quantity,t.is_active,t.is_swappable,t.remaining_stock,at(t.stock_pool,Vs.parseStockPoolFromObject),at(t.image,Je.parsePictureFromObject),zs(t.images,Je.parsePictureFromObject))}}ut=s([Gs],ut);import{adapter as Js}from"@basmilius/http-client";import{PublicPaymentMethodDto as Ks}from"#data/dto";class mt{static parsePublicPaymentMethodFromObject(t){return new Ks(t.id,t.name,t.image)}}mt=s([Js],mt);import{adapter as Zs}from"@basmilius/http-client";import{AddressAdapter as Xs,DateTimeAdapter as F,FileSystemAdapter as G,PaymentAdapter as Ys}from"#data/adapter";import{PublicShopDesignDto as ti,PublicShopDto as ei,PublicShopElementButtonDto as ri,PublicShopElementDividerDto as si,PublicShopElementHeadingDto as ii,PublicShopElementNoticeDto as ni,PublicShopElementProductDto as oi,PublicShopElementTextDto as ai,PublicShopEventDto as ui,PublicShopMerchantDto as mi,PublicShopProductDto as gi,PublicShopReservationDto as pi,PublicShopReservationProductDetailsDto as di,PublicShopReservationProductDto as hi,PublicShopTimeSlotDto as ci}from"#data/dto";import{optional as V,optionalArray as gt}from"#data/util";class h{static parsePublicShopFromObject(t){return new ei(t.id,t.name,F.parseDateTimeFromString(t.starts_on),F.parseDateTimeFromString(t.ends_on),t.field_address,t.field_birthdate,t.field_gender,t.field_phone_number,V(t.design,h.parsePublicShopDesignFromObject),gt(t.elements,h.parsePublicShopElementFromObject),h.parsePublicShopEventFromObject(t.event),h.parsePublicShopMerchantFromObject(t.merchant))}static parsePublicShopDesignFromObject(t){return new ti(t.background_color,t.foreground_color,t.primary_color)}static parsePublicShopElementFromObject(t){switch(t.type){case"button":return new ri(t.id,t.icon,t.text,t.url);case"divider":return new si(t.id,t.icon,t.text);case"heading":return new ii(t.id,t.heading_level,t.title);case"notice":return new ni(t.id,t.icon,t.notice_type,t.title,t.text);case"product":return new oi(t.id,h.parsePublicShopProductFromObject(t.product));case"text":return new ai(t.id,t.text)}throw Error("Unknown shop element.")}static parsePublicShopEventFromObject(t){return new ui(t.id,t.name,t.status,Xs.parseAddressFromObject(t.address),V(t.header_file,G.parsePictureFromObject))}static parsePublicShopMerchantFromObject(t){return new mi(t.id,t.name)}static parsePublicShopProductFromObject(t){return new gi(t.id,t.type,t.name,t.description,Ys.parseCostFromObject(t.price),t.max_quantity,t.is_active,t.is_timeslotted,gt(t.time_slots,h.parsePublicShopTimeSlotFromObject),V(t.image,G.parsePictureFromObject),gt(t.images,G.parsePictureFromObject))}static parsePublicShopReservationFromObject(t){return new pi(t.id,F.parseDateTimeFromString(t.created_on),F.parseDateTimeFromString(t.expires_on),t.products.map(h.parsePublicShopReservationProductFromObject))}static parsePublicShopReservationProductFromObject(t){return new hi(h.parsePublicShopReservationProductDetailsFromObject(t.product),t.quantity)}static parsePublicShopReservationProductDetailsFromObject(t){return new di(t.id,t.name,t.description,V(t.image,G.parsePictureFromObject))}static parsePublicShopTimeSlotFromObject(t){return new ci(t.id,t.label,F.parseDateTimeFromString(t.from_time),F.parseDateTimeFromString(t.to_time),t.max_quantity)}}h=s([Zs],h);import{adapter as li}from"@basmilius/http-client";import{DateTimeAdapter as Ke,FileSystemAdapter as yi}from"#data/adapter";import{ReservationDto as bi,ReservationItemDto as Di,ReservationProductDto as fi}from"#data/dto";import{optional as Ti,optionalArray as Si}from"#data/util";class w{static parseReservationFromObject(t){return new bi(t.id,Ke.parseDateTimeFromString(t.created_on),Ke.parseDateTimeFromString(t.expires_on),t.is_expired,Si(t.products,w.parseReservationItemFromObject))}static parseReservationItemFromObject(t){return new Di(t.quantity,w.parseReservationProductFromObject(t.product))}static parseReservationProductFromObject(t){return new fi(t.id,t.name,t.description,Ti(t.image,yi.parsePictureFromObject))}}w=s([li],w);import{adapter as Oi}from"@basmilius/http-client";import{BuyerAdapter as Ze,DateTimeAdapter as Xe,EventAdapter as Pi,OrderAdapter as xi,ProductAdapter as Fi}from"#data/adapter";import{TicketDto as Ri}from"#data/dto";import{optional as I}from"#data/util";class pt{static parseTicketFromObject(t){return new Ri(t.id,t.sequence,t.code,t.status,t.validity,I(t.buyer,Ze.parseBuyerFromObject),I(t.event,Pi.parseEventFromObject),I(t.holder,Ze.parseBuyerFromObject),I(t.order,xi.parseOrderFromObject),I(t.product,Fi.parseProductFromObject),Xe.parseDateTimeFromString(t.created_on),Xe.parseDateTimeFromString(t.updated_on))}}pt=s([Oi],pt);import{dto as qi}from"@basmilius/http-client";class dt{get id(){return this.#t}set id(t){this.#t=t}get label(){return this.#e}set label(t){this.#e=t}get street(){return this.#r}set street(t){this.#r=t}get number(){return this.#s}set number(t){this.#s=t}get postalCode(){return this.#i}set postalCode(t){this.#i=t}get city(){return this.#n}set city(t){this.#n=t}get country(){return this.#o}set country(t){this.#o=t}get formatted(){return this.#a}set formatted(t){this.#a=t}#t;#e;#r;#s;#i;#n;#o;#a;constructor(t,e,r,i,n,o,a,u){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u}}dt=s([qi],dt);import{dto as Bi}from"@basmilius/http-client";class ht{get enabled(){return this.#t}set enabled(t){this.#t=t}get secret(){return this.#e}set secret(t){this.#e=t}get qr(){return this.#r}set qr(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ht=s([Bi],ht);import{dto as ki}from"@basmilius/http-client";class ct{get id(){return this.#t}set id(t){this.#t=t}get email(){return this.#e}set email(t){this.#e=t}get firstName(){return this.#r}set firstName(t){this.#r=t}get lastName(){return this.#s}set lastName(t){this.#s=t}get fullName(){return this.#i}set fullName(t){this.#i=t}get initials(){return this.#n}set initials(t){this.#n=t}get phoneNumber(){return this.#o}set phoneNumber(t){this.#o=t}get isOnline(){return this.#a}set isOnline(t){this.#a=t}get picture(){return this.#u}set picture(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,u,m){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m}}ct=s([ki],ct);import{dto as Ci}from"@basmilius/http-client";class lt{get token(){return this.#t}set token(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get browser(){return this.#r}set browser(t){this.#r=t}get operatingSystem(){return this.#s}set operatingSystem(t){this.#s=t}get createdOn(){return this.#i}set createdOn(t){this.#i=t}get expiresOn(){return this.#n}set expiresOn(t){this.#n=t}get realtimeChannel(){return this.#o}set realtimeChannel(t){this.#o=t}get user(){return this.#a}set user(t){this.#a=t}#t;#e;#r;#s;#i;#n;#o;#a;constructor(t,e,r,i,n,o,a,u){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u}}lt=s([Ci],lt);import{dto as vi}from"@basmilius/http-client";class yt{get message(){return this.#t}set message(t){this.#t=t}get status(){return this.#e}set status(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}yt=s([vi],yt);import{dto as ji}from"@basmilius/http-client";class bt{get hasProducts(){return this.#t}set hasProducts(t){this.#t=t}get hasShops(){return this.#e}set hasShops(t){this.#e=t}get hasShopsWithProducts(){return this.#r}set hasShopsWithProducts(t){this.#r=t}get isPublishable(){return this.#s}set isPublishable(t){this.#s=t}get isPublished(){return this.#i}set isPublished(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}bt=s([ji],bt);import{dto as $i}from"@basmilius/http-client";class Dt{get guests(){return this.#t}set guests(t){this.#t=t}get orders(){return this.#e}set orders(t){this.#e=t}get tickets(){return this.#r}set tickets(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Dt=s([$i],Dt);import{dto as Ai}from"@basmilius/http-client";class ft{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get startsOn(){return this.#s}set startsOn(t){this.#s=t}get endsOn(){return this.#i}set endsOn(t){this.#i=t}get minimumAge(){return this.#n}set minimumAge(t){this.#n=t}get status(){return this.#o}set status(t){this.#o=t}get address(){return this.#a}set address(t){this.#a=t}get headerFile(){return this.#u}set headerFile(t){this.#u=t}get createdOn(){return this.#m}set createdOn(t){this.#m=t}get updatedOn(){return this.#g}set updatedOn(t){this.#g=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;constructor(t,e,r,i,n,o,a,u,m,g,p){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p}}ft=s([Ai],ft);import{dto as _i}from"@basmilius/http-client";class Tt{get attended(){return this.#t}set attended(t){this.#t=t}get expected(){return this.#e}set expected(t){this.#e=t}get rate(){return this.#r}set rate(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Tt=s([_i],Tt);import{dto as wi}from"@basmilius/http-client";class St{get acquired(){return this.#t}set acquired(t){this.#t=t}get averageTickets(){return this.#e}set averageTickets(t){this.#e=t}get doubting(){return this.#r}set doubting(t){this.#r=t}get returning(){return this.#s}set returning(t){this.#s=t}get total(){return this.#i}set total(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}St=s([wi],St);import{dto as Ii}from"@basmilius/http-client";class Ot{get platformCost(){return this.#t}set platformCost(t){this.#t=t}get revenue(){return this.#e}set revenue(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}Ot=s([Ii],Ot);import{dto as Ni}from"@basmilius/http-client";class Pt{get chart(){return this.#t}set chart(t){this.#t=t}get totals(){return this.#e}set totals(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}Pt=s([Ni],Pt);import{dto as Ei}from"@basmilius/http-client";class xt{get fulfilled(){return this.#t}set fulfilled(t){this.#t=t}get interrupted(){return this.#e}set interrupted(t){this.#e=t}get pending(){return this.#r}set pending(t){this.#r=t}get total(){return this.#s}set total(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}xt=s([Ei],xt);import{dto as Mi}from"@basmilius/http-client";class Ft{get appTeams(){return this.#t}set appTeams(t){this.#t=t}get chart(){return this.#e}set chart(t){this.#e=t}get totals(){return this.#r}set totals(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Ft=s([Mi],Ft);import{dto as Ui}from"@basmilius/http-client";class Rt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get scans(){return this.#r}set scans(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Rt=s([Ui],Rt);import{dto as Qi}from"@basmilius/http-client";class qt{get total(){return this.#t}set total(t){this.#t=t}get checkins(){return this.#e}set checkins(t){this.#e=t}get checkouts(){return this.#r}set checkouts(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}qt=s([Qi],qt);import{dto as Li}from"@basmilius/http-client";class Bt{get swaps(){return this.#t}set swaps(t){this.#t=t}get tickets(){return this.#e}set tickets(t){this.#e=t}get rate(){return this.#r}set rate(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Bt=s([Li],Bt);import{dto as Gi}from"@basmilius/http-client";class kt{get backgroundColor(){return this.#t}set backgroundColor(t){this.#t=t}get foregroundColor(){return this.#e}set foregroundColor(t){this.#e=t}get primaryColor(){return this.#r}set primaryColor(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}kt=s([Gi],kt);import{dto as Vi}from"@basmilius/http-client";class Ct{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get isPublished(){return this.#r}set isPublished(t){this.#r=t}get password(){return this.#s}set password(t){this.#s=t}get startsOn(){return this.#i}set startsOn(t){this.#i=t}get endsOn(){return this.#n}set endsOn(t){this.#n=t}get fieldAddress(){return this.#o}set fieldAddress(t){this.#o=t}get fieldBirthdate(){return this.#a}set fieldBirthdate(t){this.#a=t}get fieldGender(){return this.#u}set fieldGender(t){this.#u=t}get fieldPhoneNumber(){return this.#m}set fieldPhoneNumber(t){this.#m=t}get status(){return this.#g}set status(t){this.#g=t}get design(){return this.#p}set design(t){this.#p=t}get event(){return this.#d}set event(t){this.#d=t}get merchant(){return this.#h}set merchant(t){this.#h=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;#d;#h;constructor(t,e,r,i,n,o,a,u,m,g,p,d,v,X){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p,this.#p=d,this.#d=v,this.#h=X}}Ct=s([Vi],Ct);class Hi{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}import{dto as Wi}from"@basmilius/http-client";import{ShopElementDto as zi}from"#data/dto";class vt extends zi{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}get url(){return this.#r}set url(t){this.#r=t}#t;#e;#r;constructor(t,e,r,i){super(t,"button");this.#t=e,this.#e=r,this.#r=i}}vt=s([Wi],vt);import{dto as Ji}from"@basmilius/http-client";import{ShopElementDto as Ki}from"#data/dto";class jt extends Ki{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"divider");this.#t=e,this.#e=r}}jt=s([Ji],jt);import{dto as Zi}from"@basmilius/http-client";import{ShopElementDto as Xi}from"#data/dto";class $t extends Xi{get headingLevel(){return this.#t}set headingLevel(t){this.#t=t}get title(){return this.#e}set title(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"heading");this.#t=e,this.#e=r}}$t=s([Zi],$t);import{dto as Yi}from"@basmilius/http-client";import{ShopElementDto as tn}from"#data/dto";class At extends tn{get icon(){return this.#t}set icon(t){this.#t=t}get noticeType(){return this.#e}set noticeType(t){this.#e=t}get title(){return this.#r}set title(t){this.#r=t}get text(){return this.#s}set text(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i,n){super(t,"notice");this.#t=e,this.#e=r,this.#r=i,this.#s=n}}At=s([Yi],At);import{dto as en}from"@basmilius/http-client";import{ShopElementDto as rn}from"#data/dto";class _t extends rn{get product(){return this.#t}set product(t){this.#t=t}#t;constructor(t,e){super(t,"product");this.#t=e}}_t=s([en],_t);import{dto as sn}from"@basmilius/http-client";import{ShopElementDto as nn}from"#data/dto";class wt extends nn{get text(){return this.#t}set text(t){this.#t=t}#t;constructor(t,e){super(t,"text");this.#t=e}}wt=s([sn],wt);import{dto as on}from"@basmilius/http-client";class It{get total(){return this.#t}set total(t){this.#t=t}get sold(){return this.#e}set sold(t){this.#e=t}get remaining(){return this.#r}set remaining(t){this.#r=t}get items(){return this.#s}set items(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}It=s([on],It);import{dto as an}from"@basmilius/http-client";class Nt{get pool(){return this.#t}set pool(t){this.#t=t}get product(){return this.#e}set product(t){this.#e=t}get remaining(){return this.#r}set remaining(t){this.#r=t}get sold(){return this.#s}set sold(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Nt=s([an],Nt);import{dto as un}from"@basmilius/http-client";class Et{get id(){return this.#t}set id(t){this.#t=t}get eventId(){return this.#e}set eventId(t){this.#e=t}get merchantId(){return this.#r}set merchantId(t){this.#r=t}get name(){return this.#s}set name(t){this.#s=t}get remainingStock(){return this.#i}set remainingStock(t){this.#i=t}get stock(){return this.#n}set stock(t){this.#n=t}get isShared(){return this.#o}set isShared(t){this.#o=t}get productNames(){return this.#a}set productNames(t){this.#a=t}get createdOn(){return this.#u}set createdOn(t){this.#u=t}get updatedOn(){return this.#m}set updatedOn(t){this.#m=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;constructor(t,e,r,i,n,o,a,u,m,g){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g}}Et=s([un],Et);import{dto as mn}from"@basmilius/http-client";class Mt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get product(){return this.#r}set product(t){this.#r=t}get productId(){return this.#s}set productId(t){this.#s=t}get variant(){return this.#i}set variant(t){this.#i=t}get visual(){return this.#n}set visual(t){this.#n=t}#t;#e;#r;#s;#i;#n;constructor(t,e,r,i,n,o){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o}}Mt=s([mn],Mt);import{dto as gn}from"@basmilius/http-client";class Ut{get id(){return this.#t}set id(t){this.#t=t}get url(){return this.#e}set url(t){this.#e=t}get variants(){return this.#r}set variants(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Ut=s([gn],Ut);import{dto as pn}from"@basmilius/http-client";class Qt{get estimatedPaymentCost(){return this.#t}set estimatedPaymentCost(t){this.#t=t}get orders(){return this.#e}set orders(t){this.#e=t}get platformCost(){return this.#r}set platformCost(t){this.#r=t}get revenue(){return this.#s}set revenue(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Qt=s([pn],Qt);import{dto as dn}from"@basmilius/http-client";class Lt{get id(){return this.#t}set id(t){this.#t=t}get number(){return this.#e}set number(t){this.#e=t}get sequence(){return this.#r}set sequence(t){this.#r=t}get status(){return this.#s}set status(t){this.#s=t}get year(){return this.#i}set year(t){this.#i=t}get total(){return this.#n}set total(t){this.#n=t}get lines(){return this.#o}set lines(t){this.#o=t}get createdOn(){return this.#a}set createdOn(t){this.#a=t}get updatedOn(){return this.#u}set updatedOn(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,u,m){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m}}Lt=s([dn],Lt);import{dto as hn}from"@basmilius/http-client";class Gt{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get cost(){return this.#r}set cost(t){this.#r=t}get createdOn(){return this.#s}set createdOn(t){this.#s=t}get updatedOn(){return this.#i}set updatedOn(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}Gt=s([hn],Gt);import{dto as cn}from"@basmilius/http-client";class Vt{get id(){return this.#t}set id(t){this.#t=t}get startsOn(){return this.#e}set startsOn(t){this.#e=t}get endsOn(){return this.#r}set endsOn(t){this.#r=t}get fee(){return this.#s}set fee(t){this.#s=t}get remark(){return this.#i}set remark(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}Vt=s([cn],Vt);import{dto as ln}from"@basmilius/http-client";class Ht{get id(){return this.#t}set id(t){this.#t=t}get merchantId(){return this.#e}set merchantId(t){this.#e=t}get userId(){return this.#r}set userId(t){this.#r=t}get claims(){return this.#s}set claims(t){this.#s=t}get isNewUser(){return this.#i}set isNewUser(t){this.#i=t}get createdOn(){return this.#n}set createdOn(t){this.#n=t}get updatedOn(){return this.#o}set updatedOn(t){this.#o=t}get merchant(){return this.#a}set merchant(t){this.#a=t}get user(){return this.#u}set user(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,u,m){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m}}Ht=s([ln],Ht);import{dto as yn}from"@basmilius/http-client";class Wt{get revenue(){return this.#t}set revenue(t){this.#t=t}get tickets(){return this.#e}set tickets(t){this.#e=t}get events(){return this.#r}set events(t){this.#r=t}get tasks(){return this.#s}set tasks(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Wt=s([yn],Wt);import{dto as bn}from"@basmilius/http-client";class zt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get headerFile(){return this.#s}set headerFile(t){this.#s=t}get status(){return this.#i}set status(t){this.#i=t}get startsOn(){return this.#n}set startsOn(t){this.#n=t}get ticketsSold(){return this.#o}set ticketsSold(t){this.#o=t}get ticketsTotal(){return this.#a}set ticketsTotal(t){this.#a=t}get sellThroughRate(){return this.#u}set sellThroughRate(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,u,m){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m}}zt=s([bn],zt);import{dto as Dn}from"@basmilius/http-client";class Jt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get email(){return this.#r}set email(t){this.#r=t}get phoneNumber(){return this.#s}set phoneNumber(t){this.#s=t}get url(){return this.#i}set url(t){this.#i=t}get chamberOfCommerceNumber(){return this.#n}set chamberOfCommerceNumber(t){this.#n=t}get vatNumber(){return this.#o}set vatNumber(t){this.#o=t}get currency(){return this.#a}set currency(t){this.#a=t}get address(){return this.#u}set address(t){this.#u=t}get currentContract(){return this.#m}set currentContract(t){this.#m=t}get logo(){return this.#g}set logo(t){this.#g=t}get createdOn(){return this.#p}set createdOn(t){this.#p=t}get updatedOn(){return this.#d}set updatedOn(t){this.#d=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;#d;constructor(t,e,r,i,n,o,a,u,m,g,p,d,v){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p,this.#p=d,this.#d=v}}Jt=s([Dn],Jt);import{dto as fn}from"@basmilius/http-client";class Kt{get isManager(){return this.#t}set isManager(t){this.#t=t}get createdOn(){return this.#e}set createdOn(t){this.#e=t}get updatedOn(){return this.#r}set updatedOn(t){this.#r=t}get user(){return this.#s}set user(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Kt=s([fn],Kt);import{dto as Tn}from"@basmilius/http-client";class Zt{get id(){return this.#t}set id(t){this.#t=t}get vatNumber(){return this.#e}set vatNumber(t){this.#e=t}get name(){return this.#r}set name(t){this.#r=t}get address(){return this.#s}set address(t){this.#s=t}get countryCode(){return this.#i}set countryCode(t){this.#i=t}get createdOn(){return this.#n}set createdOn(t){this.#n=t}get updatedOn(){return this.#o}set updatedOn(t){this.#o=t}#t;#e;#r;#s;#i;#n;#o;constructor(t,e,r,i,n,o,a){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a}}Zt=s([Tn],Zt);import{dto as Sn}from"@basmilius/http-client";class Xt{get id(){return this.#t}set id(t){this.#t=t}get firstName(){return this.#e}set firstName(t){this.#e=t}get lastName(){return this.#r}set lastName(t){this.#r=t}get email(){return this.#s}set email(t){this.#s=t}get phoneNumber(){return this.#i}set phoneNumber(t){this.#i=t}get dateOfBirth(){return this.#n}set dateOfBirth(t){this.#n=t}get gender(){return this.#o}set gender(t){this.#o=t}get orderCount(){return this.#a}set orderCount(t){this.#a=t}get fullName(){return this.#u}set fullName(t){this.#u=t}get address(){return this.#m}set address(t){this.#m=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;constructor(t,e,r,i,n,o,a,u,m,g){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g}}Xt=s([Sn],Xt);import{dto as On}from"@basmilius/http-client";class Yt{get id(){return this.#t}set id(t){this.#t=t}get code(){return this.#e}set code(t){this.#e=t}get origin(){return this.#r}set origin(t){this.#r=t}get type(){return this.#s}set type(t){this.#s=t}get createdOn(){return this.#i}set createdOn(t){this.#i=t}get paymentProvider(){return this.#n}set paymentProvider(t){this.#n=t}get platformCost(){return this.#o}set platformCost(t){this.#o=t}get subTotal(){return this.#a}set subTotal(t){this.#a=t}get total(){return this.#u}set total(t){this.#u=t}get url(){return this.#m}set url(t){this.#m=t}get buyer(){return this.#g}set buyer(t){this.#g=t}get event(){return this.#p}set event(t){this.#p=t}get lines(){return this.#d}set lines(t){this.#d=t}get shop(){return this.#h}set shop(t){this.#h=t}get transaction(){return this.#c}set transaction(t){this.#c=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;#d;#h;#c;constructor(t,e,r,i,n,o,a,u,m,g,p,d,v,X,fr){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p,this.#p=d,this.#d=v,this.#h=X,this.#c=fr}}Yt=s([On],Yt);import{dto as Pn}from"@basmilius/http-client";class te{get id(){return this.#t}set id(t){this.#t=t}get price(){return this.#e}set price(t){this.#e=t}get quantity(){return this.#r}set quantity(t){this.#r=t}get product(){return this.#s}set product(t){this.#s=t}get subTotal(){return this.#i}set subTotal(t){this.#i=t}get createdOn(){return this.#n}set createdOn(t){this.#n=t}get updatedOn(){return this.#o}set updatedOn(t){this.#o=t}#t;#e;#r;#s;#i;#n;#o;constructor(t,e,r,i,n,o,a){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a}}te=s([Pn],te);import{dto as xn}from"@basmilius/http-client";class ee{get name(){return this.#t}set name(t){this.#t=t}get url(){return this.#e}set url(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}ee=s([xn],ee);import{dto as Fn}from"@basmilius/http-client";class re{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get image(){return this.#s}set image(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}re=s([Fn],re);import{dto as Rn}from"@basmilius/http-client";class se{get currencyCode(){return this.#t}set currencyCode(t){this.#t=t}get currencyDecimals(){return this.#e}set currencyDecimals(t){this.#e=t}get currencySign(){return this.#r}set currencySign(t){this.#r=t}get decimal(){return this.#s}set decimal(t){this.#s=t}get formatted(){return this.#i}set formatted(t){this.#i=t}get cents(){return this.#n}set cents(t){this.#n=t}#t;#e;#r;#s;#i;#n;constructor(t,e,r,i,n,o){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o}}se=s([Rn],se);import{dto as qn}from"@basmilius/http-client";class ie{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get image(){return this.#r}set image(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ie=s([qn],ie);import{dto as Bn}from"@basmilius/http-client";class ne{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get methods(){return this.#r}set methods(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ne=s([Bn],ne);import{dto as kn}from"@basmilius/http-client";class oe{get id(){return this.#t}set id(t){this.#t=t}get description(){return this.#e}set description(t){this.#e=t}get status(){return this.#r}set status(t){this.#r=t}get cost(){return this.#s}set cost(t){this.#s=t}get metadata(){return this.#i}set metadata(t){this.#i=t}get externalCheckoutUrl(){return this.#n}set externalCheckoutUrl(t){this.#n=t}get externalDetails(){return this.#o}set externalDetails(t){this.#o=t}get order(){return this.#a}set order(t){this.#a=t}get paymentMethod(){return this.#u}set paymentMethod(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,u,m){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m}}oe=s([kn],oe);import{dto as Cn}from"@basmilius/http-client";class ae{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get name(){return this.#r}set name(t){this.#r=t}get description(){return this.#s}set description(t){this.#s=t}get price(){return this.#i}set price(t){this.#i=t}get maxQuantity(){return this.#n}set maxQuantity(t){this.#n=t}get isActive(){return this.#o}set isActive(t){this.#o=t}get isSwappable(){return this.#a}set isSwappable(t){this.#a=t}get remainingStock(){return this.#u}set remainingStock(t){this.#u=t}get stock(){return this.#m}set stock(t){this.#m=t}get image(){return this.#g}set image(t){this.#g=t}get images(){return this.#p}set images(t){this.#p=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;constructor(t,e,r,i,n,o,a,u,m,g,p,d){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p,this.#p=d}}ae=s([Cn],ae);import{dto as vn}from"@basmilius/http-client";class ue{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get image(){return this.#r}set image(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ue=s([vn],ue);import{dto as jn}from"@basmilius/http-client";class me{get productId(){return this.#t}set productId(t){this.#t=t}get quantity(){return this.#e}set quantity(t){this.#e=t}get timeSlotId(){return this.#r}set timeSlotId(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}me=s([jn],me);import{dto as $n}from"@basmilius/http-client";class ge{get backgroundColor(){return this.#t}set backgroundColor(t){this.#t=t}get foregroundColor(){return this.#e}set foregroundColor(t){this.#e=t}get primaryColor(){return this.#r}set primaryColor(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ge=s([$n],ge);import{dto as An}from"@basmilius/http-client";class pe{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get startsOn(){return this.#r}set startsOn(t){this.#r=t}get endsOn(){return this.#s}set endsOn(t){this.#s=t}get fieldAddress(){return this.#i}set fieldAddress(t){this.#i=t}get fieldBirthdate(){return this.#n}set fieldBirthdate(t){this.#n=t}get fieldGender(){return this.#o}set fieldGender(t){this.#o=t}get fieldPhoneNumber(){return this.#a}set fieldPhoneNumber(t){this.#a=t}get design(){return this.#u}set design(t){this.#u=t}get elements(){return this.#m}set elements(t){this.#m=t}get event(){return this.#g}set event(t){this.#g=t}get merchant(){return this.#p}set merchant(t){this.#p=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;constructor(t,e,r,i,n,o,a,u,m,g,p,d){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p,this.#p=d}}pe=s([An],pe);class _n{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}import{dto as wn}from"@basmilius/http-client";import{PublicShopElementDto as In}from"#data/dto";class de extends In{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}get url(){return this.#r}set url(t){this.#r=t}#t;#e;#r;constructor(t,e,r,i){super(t,"button");this.#t=e,this.#e=r,this.#r=i}}de=s([wn],de);import{dto as Nn}from"@basmilius/http-client";import{PublicShopElementDto as En}from"#data/dto";class he extends En{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"divider");this.#t=e,this.#e=r}}he=s([Nn],he);import{dto as Mn}from"@basmilius/http-client";import{PublicShopElementDto as Un}from"#data/dto";class ce extends Un{get headingLevel(){return this.#t}set headingLevel(t){this.#t=t}get title(){return this.#e}set title(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"heading");this.#t=e,this.#e=r}}ce=s([Mn],ce);import{dto as Qn}from"@basmilius/http-client";import{PublicShopElementDto as Ln}from"#data/dto";class le extends Ln{get icon(){return this.#t}set icon(t){this.#t=t}get noticeType(){return this.#e}set noticeType(t){this.#e=t}get title(){return this.#r}set title(t){this.#r=t}get text(){return this.#s}set text(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i,n){super(t,"notice");this.#t=e,this.#e=r,this.#r=i,this.#s=n}}le=s([Qn],le);import{dto as Gn}from"@basmilius/http-client";import{PublicShopElementDto as Vn}from"#data/dto";class ye extends Vn{get product(){return this.#t}set product(t){this.#t=t}#t;constructor(t,e){super(t,"product");this.#t=e}}ye=s([Gn],ye);import{dto as Hn}from"@basmilius/http-client";import{PublicShopElementDto as Wn}from"#data/dto";class be extends Wn{get text(){return this.#t}set text(t){this.#t=t}#t;constructor(t,e){super(t,"text");this.#t=e}}be=s([Hn],be);import{dto as zn}from"@basmilius/http-client";class De{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get status(){return this.#r}set status(t){this.#r=t}get address(){return this.#s}set address(t){this.#s=t}get headerFile(){return this.#i}set headerFile(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}De=s([zn],De);import{dto as Jn}from"@basmilius/http-client";class fe{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}fe=s([Jn],fe);import{dto as Kn}from"@basmilius/http-client";class Te{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get name(){return this.#r}set name(t){this.#r=t}get description(){return this.#s}set description(t){this.#s=t}get price(){return this.#i}set price(t){this.#i=t}get maxQuantity(){return this.#n}set maxQuantity(t){this.#n=t}get isActive(){return this.#o}set isActive(t){this.#o=t}get isTimeslotted(){return this.#a}set isTimeslotted(t){this.#a=t}get timeSlots(){return this.#u}set timeSlots(t){this.#u=t}get image(){return this.#m}set image(t){this.#m=t}get images(){return this.#g}set images(t){this.#g=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;constructor(t,e,r,i,n,o,a,u,m,g,p){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p}}Te=s([Kn],Te);import{dto as Zn}from"@basmilius/http-client";class Se{get id(){return this.#t}set id(t){this.#t=t}get createdOn(){return this.#e}set createdOn(t){this.#e=t}get expiresOn(){return this.#r}set expiresOn(t){this.#r=t}get products(){return this.#s}set products(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Se=s([Zn],Se);import{dto as Xn}from"@basmilius/http-client";class Oe{get product(){return this.#t}set product(t){this.#t=t}get quantity(){return this.#e}set quantity(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}Oe=s([Xn],Oe);import{dto as Yn}from"@basmilius/http-client";class Pe{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get image(){return this.#s}set image(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Pe=s([Yn],Pe);import{dto as to}from"@basmilius/http-client";class xe{get id(){return this.#t}set id(t){this.#t=t}get label(){return this.#e}set label(t){this.#e=t}get fromTime(){return this.#r}set fromTime(t){this.#r=t}get toTime(){return this.#s}set toTime(t){this.#s=t}get maxQuantity(){return this.#i}set maxQuantity(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}xe=s([to],xe);import{dto as eo}from"@basmilius/http-client";class Fe{get id(){return this.#t}set id(t){this.#t=t}get createdOn(){return this.#e}set createdOn(t){this.#e=t}get expiresOn(){return this.#r}set expiresOn(t){this.#r=t}get isExpired(){return this.#s}set isExpired(t){this.#s=t}get items(){return this.#i}set items(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}Fe=s([eo],Fe);import{dto as ro}from"@basmilius/http-client";class Re{get quantity(){return this.#t}set quantity(t){this.#t=t}get product(){return this.#e}set product(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}Re=s([ro],Re);import{dto as so}from"@basmilius/http-client";class qe{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get image(){return this.#s}set image(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}qe=s([so],qe);import{dto as io}from"@basmilius/http-client";class H{get id(){return this.#t}set id(t){this.#t=t}get sequence(){return this.#e}set sequence(t){this.#e=t}get code(){return this.#r}set code(t){this.#r=t}get status(){return this.#s}set status(t){this.#s=t}get validity(){return this.#i}set validity(t){this.#i=t}get buyer(){return this.#n}set buyer(t){this.#n=t}get event(){return this.#o}set event(t){this.#o=t}get holder(){return this.#a}set holder(t){this.#a=t}get order(){return this.#u}set order(t){this.#u=t}get product(){return this.#m}set product(t){this.#m=t}get createdOn(){return this.#g}set createdOn(t){this.#g=t}get updatedOn(){return this.#p}set updatedOn(t){this.#p=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;constructor(t,e,r,i,n,o,a,u,m,g,p,d){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=u,this.#u=m,this.#m=g,this.#g=p,this.#p=d}}H=s([io],H);import{BaseService as no,QueryString as R}from"@basmilius/http-client";import{AuthAdapter as Be}from"#data/adapter";class oo extends no{async get(){return await this.request("/auth").method("get").bearerToken().queryString(R.builder().append("language","nl")).runAdapter(Be.parseUserTokenFromObject)}async getClaims(){return await this.request("/auth/claims").method("get").bearerToken().queryString(R.builder().append("language","nl")).runAdapter((t)=>Object.values(t))}async getPasswordCompromised(){return await this.request("/auth/password-compromised").method("get").bearerToken().queryString(R.builder().append("language","nl")).runDataKey("compromised")}async getSessions(t,e){return await this.request("/auth/sessions").method("get").bearerToken().queryString(R.builder().append("language","nl").append("offset",t).append("limit",e)).runPaginatedAdapter(Be.parseUserTokenFromObject)}async post(t,e,r){return await this.request("/auth").method("post").body({email:t,password:e,code:r}).queryString(R.builder().append("language","nl")).runAdapter(Be.parseUserTokenFromObject)}async deleteSession(t){return await this.request("/auth/sessions").method("delete").bearerToken().queryString(R.builder().append("language","nl")).body({token:t}).runEmpty()}}import{BaseService as ao,QueryString as ke}from"@basmilius/http-client";import{AuthAdapter as uo,CommonAdapter as mo,MerchantAdapter as go}from"#data/adapter";class po extends ao{async get(t){return await this.request(`/invitations/${t}`).method("get").queryString(ke.builder().append("language","nl")).runAdapter(go.parseInvitationFromObject)}async postAccept(t,e){return await this.request(`/invitations/${t}/accept`).method("post").queryString(ke.builder().append("language","nl")).body({password:e}).runAdapter(uo.parseUserTokenFromObject)}async postDecline(t){return await this.request(`/invitations/${t}/decline`).method("post").queryString(ke.builder().append("language","nl")).runAdapter(mo.parseStatusResponseFromObject)}}import{BaseService as ho,QueryString as b}from"@basmilius/http-client";import{AuthAdapter as co,CommonAdapter as Ye,MerchantAdapter as W,PaymentAdapter as lo}from"#data/adapter";import{emptyNull as yo}from"#data/util";class bo extends ho{async get(t){return await this.request(`/merchants/${t}`).method("get").queryString(b.builder().append("language","nl")).bearerToken().runAdapter(W.parseMerchantFromObject)}async getAccountManager(t){return await this.request(`/merchants/${t}/account-manager`).method("get").queryString(b.builder().append("language","nl")).bearerToken().runAdapter(co.parseUserFromObject)}async getClaims(t){return await this.request(`/merchants/${t}/claims`).method("get").queryString(b.builder().append("language","nl")).bearerToken().runAdapter((e)=>Object.values(e))}async getContract(t){return await this.request(`/merchants/${t}/contract`).method("get").queryString(b.builder().append("language","nl")).bearerToken().runAdapter(W.parseContractFromObject)}async getPaymentProviders(t){return await this.request(`/merchants/${t}/payment-providers`).method("get").queryString(b.builder().append("language","nl")).bearerToken().runArrayAdapter(lo.parsePaymentProviderFromObject)}async getVatNumber(t){return await this.request(`/merchants/${t}/vat-number`).method("get").queryString(b.builder().append("language","nl")).bearerToken().runAdapter(W.parseVatNumberFromObject)}async put(t,e){return await this.request(`/merchants/${t}`).method("put").queryString(b.builder().append("language","nl")).bearerToken().body({name:e.name,email:e.email,phone_number:e.phoneNumber,url:e.url,chamber_of_commerce_number:e.chamberOfCommerceNumber,vat_number:e.vatNumber,address:{label:yo(e.address.label),street:e.address.street,number:e.address.number,postal_code:e.address.postalCode,city:e.address.city,country_code:e.address.country}}).runAdapter(W.parseMerchantFromObject)}async postLogo(t,e){let r=new FormData;return r.append("file",e),await this.request(`/merchants/${t}/logo`).method("post").bearerToken().queryString(b.builder().append("language","nl")).body(r).runAdapter(Ye.parseStatusResponseFromObject)}async deleteLogo(t){return await this.request(`/merchants/${t}/logo`).method("delete").bearerToken().queryString(b.builder().append("language","nl")).runAdapter(Ye.parseStatusResponseFromObject)}}import{BaseService as Do,QueryString as fo}from"@basmilius/http-client";import{MerchantAdapter as To}from"#data/adapter";class So extends Do{async get(){return await this.request("/merchants").method("get").bearerToken().queryString(fo.builder().append("language","nl")).runArrayAdapter(To.parseMerchantFromObject)}}import{BaseService as Oo,QueryString as Ce}from"@basmilius/http-client";import{BuyerAdapter as Po,OrderAdapter as tr}from"#data/adapter";class xo extends Oo{async get(t,e){return await this.request(`/merchants/${t}/buyers/${e}`).method("get").bearerToken().queryString(Ce.builder().append("language","nl")).runAdapter(Po.parseBuyerFromObject)}async getOrder(t,e,r){return await this.request(`/merchants/${t}/buyers/${e}/orders/${r}`).method("get").bearerToken().queryString(Ce.builder().append("language","nl")).runAdapter(tr.parseOrderFromObject)}async getOrders(t,e,r,i){return await this.request(`/merchants/${t}/buyers/${e}/orders`).method("get").bearerToken().queryString(Ce.builder().append("language","nl").append("offset",r).append("limit",i)).runPaginatedAdapter(tr.parseOrderFromObject)}}import{BaseService as Fo,QueryString as Ro}from"@basmilius/http-client";import{BuyerAdapter as qo}from"#data/adapter";class Bo extends Fo{async get(t,e,r){return await this.request(`/merchants/${t}/buyers`).method("get").queryString(Ro.builder().append("language","nl").append("offset",e).append("limit",r)).bearerToken().runPaginatedAdapter(qo.parseBuyerFromObject)}}import{BaseService as ko,QueryString as Co}from"@basmilius/http-client";import{MerchantDashboardAdapter as er}from"#data/adapter";class vo extends ko{async getKeyMetrics(t){return await this.request(`/merchants/${t}/dashboard/key-metrics`).method("get").queryString(Co.builder().append("language","nl")).bearerToken().runAdapter(er.parseKeyMetricsFromObject)}async getUpcomingEvents(t){return await this.request(`/merchants/${t}/dashboard/upcoming-events`).method("get").bearerToken().runArrayAdapter(er.parseUpcomingEventFromObject)}}import{BaseService as jo,QueryString as q}from"@basmilius/http-client";import{ProductAdapter as rr}from"#data/adapter";class $o extends jo{async get(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}`).method("get").bearerToken().queryString(q.builder().append("language","nl")).runAdapter(rr.parseProductFromObject)}async postImage(t,e,r,i){let n=new FormData;return n.append("file",i),await this.request(`/merchants/${t}/events/${e}/products/${r}/media`).method("post").bearerToken().queryString(q.builder().append("language","nl")).body(n).runAdapter((o)=>o)}async patch(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/products/${r}`).method("patch").bearerToken().queryString(q.builder().append("language","nl")).body({name:i.name,description:i.description,price:i.price.cents,max_quantity:i.maxQuantity,is_swappable:i.isSwappable}).runAdapter(rr.parseProductFromObject)}async patchPause(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}/pause`).method("patch").bearerToken().queryString(q.builder().append("language","nl")).runEmpty()}async patchResume(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}/resume`).method("patch").bearerToken().queryString(q.builder().append("language","nl")).runEmpty()}async delete(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}`).method("delete").bearerToken().queryString(q.builder().append("language","nl")).runEmpty()}}import{BaseService as Ao,QueryString as ve}from"@basmilius/http-client";import{FluxAdapter as _o,ProductAdapter as sr}from"#data/adapter";class wo extends Ao{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/products`).method("get").bearerToken().queryString(ve.builder().append("language","nl").append("offset",r).append("limit",i)).runPaginatedAdapter(sr.parseProductFromObject)}async getSelectOptions(t,e,r=null,i=null){return await this.request(`/merchants/${t}/events/${e}/products/select-options`).method("get").bearerToken().queryString(ve.builder().append("language","nl").appendArray("ids[]",i).append("searchQuery",r)).runArrayAdapter(_o.parseFluxFormSelectEntryFromObject)}async post(t,e,r,i,n,o,a,u){return await this.request(`/merchants/${t}/events/${e}/products`).method("post").bearerToken().queryString(ve.builder().append("language","nl")).body({name:r,description:i,price:n,stock:a,max_quantity:o,stock_pool_id:u}).runAdapter(sr.parseProductFromObject)}}import{BaseService as Io,QueryString as D}from"@basmilius/http-client";import{CommonAdapter as N,EventAdapter as z}from"#data/adapter";import{emptyNull as No}from"#data/util";class Eo extends Io{async get(t,e){return await this.request(`/merchants/${t}/events/${e}`).method("get").bearerToken().queryString(D.builder().append("language","nl")).runAdapter(z.parseEventFromObject)}async getAvailability(t,e){return await this.request(`/merchants/${t}/events/${e}/availability`).method("get").bearerToken().queryString(D.builder().append("language","nl")).runAdapter(z.parseEventAvailabilityFromObject)}async getCounters(t,e){return await this.request(`/merchants/${t}/events/${e}/counters`).method("get").bearerToken().queryString(D.builder().append("language","nl")).runAdapter(z.parseEventCountersFromObject)}async post(t,e){return await this.request(`/merchants/${t}/events/${e.id}`).method("post").bearerToken().queryString(D.builder().append("language","nl")).body({name:e.name,description:e.description,starts_on:e.startsOn.toISO(),ends_on:e.endsOn.toISO(),minimum_age:e.minimumAge,address:{label:No(e.address.label),street:e.address.street,number:e.address.number,postal_code:e.address.postalCode,city:e.address.city,country_code:e.address.country}}).runAdapter(z.parseEventFromObject)}async postHeader(t,e,r){let i=new FormData;return i.append("file",r),await this.request(`/merchants/${t}/events/${e}/header`).method("post").bearerToken().queryString(D.builder().append("language","nl")).body(i).runAdapter(N.parseStatusResponseFromObject)}async postPublish(t,e){return await this.request(`/merchants/${t}/events/${e}/publish`).method("post").bearerToken().queryString(D.builder().append("language","nl")).runAdapter(N.parseStatusResponseFromObject)}async postUnpublish(t,e){return await this.request(`/merchants/${t}/events/${e}/unpublish`).method("post").bearerToken().queryString(D.builder().append("language","nl")).runAdapter(N.parseStatusResponseFromObject)}async delete(t,e){return await this.request(`/merchants/${t}/events/${e}`).method("delete").bearerToken().queryString(D.builder().append("language","nl")).runAdapter(N.parseStatusResponseFromObject)}async deleteHeader(t,e){return await this.request(`/merchants/${t}/events/${e}/header`).method("delete").bearerToken().queryString(D.builder().append("language","nl")).runAdapter(N.parseStatusResponseFromObject)}}import{BaseService as Mo,QueryString as B}from"@basmilius/http-client";import{EventAdapter as k}from"#data/adapter";class Uo extends Mo{async getAttendance(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/attendance`).method("get").bearerToken().queryString(B.builder().append("language","nl")).runAdapter(k.parseEventStatisticsAttendanceFromObject)}async getBuyers(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/buyers`).method("get").bearerToken().queryString(B.builder().append("language","nl")).runAdapter(k.parseEventStatisticsBuyerTotalsFromObject)}async getFinancial(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/financial`).method("get").bearerToken().queryString(B.builder().append("language","nl")).runAdapter(k.parseEventStatisticsFinancialFromObject)}async getOrders(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/orders`).method("get").bearerToken().queryString(B.builder().append("language","nl")).runAdapter(k.parseEventStatisticsOrdersFromObject)}async getScans(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/scans`).method("get").bearerToken().queryString(B.builder().append("language","nl")).runAdapter(k.parseEventStatisticsScansFromObject)}async getSwaps(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/swaps`).method("get").bearerToken().queryString(B.builder().append("language","nl")).runAdapter(k.parseEventStatisticsSwapTotalsFromObject)}}import{BaseService as Qo,QueryString as je}from"@basmilius/http-client";import{EventAdapter as E}from"#data/adapter";class Lo extends Qo{async get(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r}`).method("get").queryString(je.builder().append("language","nl")).bearerToken().runAdapter(E.parseShopFromObject)}async getElements(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r}/elements`).method("get").queryString(je.builder().append("language","nl")).bearerToken().runArrayAdapter(E.parseShopElementFromObject)}async patch(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r.id}`).method("patch").queryString(je.builder().append("language","nl")).bearerToken().body({name:r.name,is_published:r.isPublished,starts_on:r.startsOn,ends_on:r.endsOn,password:r.password}).runAdapter(E.parseShopFromObject)}async patchDesign(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/shops/${r}/design`).method("patch").bearerToken().body({background_color:i.backgroundColor,foreground_color:i.foregroundColor,primary_color:i.primaryColor}).runAdapter(E.parseShopDesignFromObject)}async patchElements(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/shops/${r}/elements`).method("patch").bearerToken().body({elements:i}).runArrayAdapter(E.parseShopElementFromObject)}}import{BaseService as Go,QueryString as $e}from"@basmilius/http-client";import{CommonAdapter as Vo,EventAdapter as ir}from"#data/adapter";class Ho extends Go{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/shops`).method("get").queryString($e.builder().append("language","nl").append("offset",r).append("limit",i)).bearerToken().runPaginatedAdapter(ir.parseShopFromObject)}async post(t,e,r,i,n){return await this.request(`/merchants/${t}/events/${e}/shops`).method("post").bearerToken().queryString($e.builder().append("language","nl")).body({name:r,starts_on:i,ends_on:n}).runAdapter(ir.parseShopFromObject)}async delete(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r}`).method("delete").bearerToken().queryString($e.builder().append("language","nl")).runAdapter(Vo.parseStatusResponseFromObject)}}import{BaseService as Wo,QueryString as J}from"@basmilius/http-client";import{EventAdapter as Ae,FluxAdapter as zo}from"#data/adapter";class Jo extends Wo{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/stock-pools`).method("get").queryString(J.builder().append("language","nl").append("offset",r).append("limit",i)).bearerToken().runPaginatedAdapter(Ae.parseStockPoolFromObject)}async getOverview(t,e){return await this.request(`/merchants/${t}/events/${e}/stock-pools/overview`).method("get").queryString(J.builder().append("language","nl")).bearerToken().runAdapter(Ae.parseStockOverviewFromObject)}async getSelectOptions(t,e,r=null,i=null){return await this.request(`/merchants/${t}/events/${e}/stock-pools/select-options`).method("get").queryString(J.builder().append("language","nl").appendArray("ids[]",i).append("searchQuery",r)).bearerToken().runArrayAdapter(zo.parseFluxFormSelectEntryFromObject)}async post(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/stock-pools`).method("post").bearerToken().queryString(J.builder().append("language","nl")).body({name:r,stock:i}).runAdapter(Ae.parseStockPoolFromObject)}}import{BaseService as Ko,QueryString as C}from"@basmilius/http-client";import{CommonAdapter as _e,EventAdapter as nr}from"#data/adapter";class Zo extends Ko{async get(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}`).method("get").bearerToken().queryString(C.builder().append("language","nl")).runAdapter(nr.parseTicketTemplateFromObject)}async getDemo(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}/demo`).method("get").bearerToken().queryString(C.builder().append("language","nl")).fetchBlob()}async postVisual(t,e,r,i){let n=new FormData;return n.append("file",i),await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}/visual`).method("post").bearerToken().queryString(C.builder().append("language","nl")).body(n).runAdapter(_e.parseStatusResponseFromObject)}async patch(t,e,r,i,n,o){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}`).method("patch").bearerToken().queryString(C.builder().append("language","nl")).body({name:i,product_id:n,variant:o}).runAdapter(nr.parseTicketTemplateFromObject)}async delete(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}`).method("delete").bearerToken().queryString(C.builder().append("language","nl")).runAdapter(_e.parseStatusResponseFromObject)}async deleteVisual(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}/visual`).method("delete").bearerToken().queryString(C.builder().append("language","nl")).runAdapter(_e.parseStatusResponseFromObject)}}import{BaseService as Xo,QueryString as we}from"@basmilius/http-client";import{EventAdapter as or,FluxAdapter as Yo}from"#data/adapter";import{jsonBlob as ta}from"#data/util";class ea extends Xo{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/ticket-templates`).method("get").queryString(we.builder().append("language","nl").append("offset",r).append("limit",i)).bearerToken().runPaginatedAdapter(or.parseTicketTemplateFromObject)}async getSelectOptions(t,e,r=null,i=null){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/select-options`).method("get").queryString(we.builder().append("language","nl").appendArray("ids[]",i).append("searchQuery",r)).bearerToken().runArrayAdapter(Yo.parseFluxFormSelectEntryFromObject)}async post(t,e,r,i,n,o){let a=new FormData;return a.append("data",ta({name:r,product_id:i,variant:n})),a.append("visual",o),await this.request(`/merchants/${t}/events/${e}/ticket-templates`).method("post").bearerToken().queryString(we.builder().append("language","nl")).body(a).runAdapter(or.parseTicketTemplateFromObject)}}import{BaseService as ra,QueryString as ar}from"@basmilius/http-client";import{EventAdapter as ur}from"#data/adapter";class sa extends ra{async get(t,e,r){return await this.request(`/merchants/${t}/events`).method("get").bearerToken().queryString(ar.builder().append("language","nl").append("offset",e).append("limit",r)).runPaginatedAdapter(ur.parseEventFromObject)}async post(t,e,r,i,n,o){return await this.request(`/merchants/${t}/events`).method("post").bearerToken().queryString(ar.builder().append("language","nl")).body({name:e,description:r,starts_on:i,ends_on:n,minimum_age:o}).runAdapter(ur.parseEventFromObject)}}import{BaseService as ia,QueryString as mr}from"@basmilius/http-client";import{FinanceAdapter as na}from"#data/adapter";class oa extends ia{async get(t,e){return await this.request(`/merchants/${t}/finance/invoices/${e}`).method("get").bearerToken().queryString(mr.builder().append("language","nl")).runAdapter(na.parseInvoiceFromObject)}async getPDF(t,e){return await this.request(`/merchants/${t}/finance/invoices/${e}/pdf`).method("get").bearerToken().queryString(mr.builder().append("language","nl")).fetchBlob()}}import{BaseService as aa,QueryString as ua}from"@basmilius/http-client";import{FinanceAdapter as ma}from"#data/adapter";class ga extends aa{async get(t,e,r){return await this.request(`/merchants/${t}/finance/invoices`).method("get").bearerToken().queryString(ua.builder().append("language","nl").append("offset",e).append("limit",r)).runPaginatedAdapter(ma.parseInvoiceFromObject)}}import{BaseService as pa,QueryString as Ie}from"@basmilius/http-client";import{FinanceAdapter as da}from"#data/adapter";class ha extends pa{async getDailyRevenue(t){return await this.request(`/merchants/${t}/finance/daily-revenue`).method("get").bearerToken().queryString(Ie.builder().append("language","nl")).runAdapter((e)=>e)}async getMonthlyRevenue(t){return await this.request(`/merchants/${t}/finance/monthly-revenue`).method("get").bearerToken().queryString(Ie.builder().append("language","nl")).runAdapter((e)=>e)}async getOverview(t){return await this.request(`/merchants/${t}/finance/overview`).method("get").bearerToken().queryString(Ie.builder().append("language","nl")).runAdapter(da.parseFinanceOverviewFromObject)}}import{BaseService as ca,QueryString as M}from"@basmilius/http-client";import{OrderAdapter as la,TicketAdapter as ya}from"#data/adapter";class ba extends ca{async get(t,e){return await this.request(`/merchants/${t}/orders/${e}`).method("get").bearerToken().queryString(M.builder().append("language","nl")).runAdapter(la.parseOrderFromObject)}async getPasses(t,e){return await this.request(`/merchants/${t}/orders/${e}/passes`).method("get").bearerToken().queryString(M.builder().append("language","nl")).fetchBlob()}async getPDF(t,e){return await this.request(`/merchants/${t}/orders/${e}/pdf`).method("get").bearerToken().queryString(M.builder().append("language","nl")).fetchBlob()}async getTickets(t,e){return await this.request(`/merchants/${t}/orders/${e}/tickets`).method("get").bearerToken().queryString(M.builder().append("language","nl")).runArrayAdapter(ya.parseTicketFromObject)}async postResend(t,e){return await this.request(`/merchants/${t}/orders/${e}/resend`).method("post").bearerToken().queryString(M.builder().append("language","nl")).runEmpty()}}import{BaseService as Da,QueryString as fa}from"@basmilius/http-client";import{OrderAdapter as Ta}from"#data/adapter";class Sa extends Da{async get(t,e,r,i){let n=fa.builder().append("language","nl").append("offset",e).append("limit",r);if(i)Object.entries(i).forEach(([o,a])=>n.append(o,a));return await this.request(`/merchants/${t}/orders`).method("get").queryString(n).bearerToken().runPaginatedAdapter(Ta.parseOrderFromObject)}}import{BaseService as Oa,QueryString as Pa}from"@basmilius/http-client";class xa extends Oa{async getRevenueTrend(t){return this.request(`/merchants/${t}/statistics/revenue-trend`).method("get").queryString(Pa.builder().append("language","nl")).bearerToken().runAdapter((e)=>e)}}import{BaseService as Fa,QueryString as Ne}from"@basmilius/http-client";import{TicketAdapter as Ra}from"#data/adapter";class qa extends Fa{async get(t,e){return await this.request(`/merchants/${t}/tickets/${e}`).method("get").bearerToken().queryString(Ne.builder().append("language","nl")).runAdapter(Ra.parseTicketFromObject)}async getPass(t,e){return await this.request(`/merchants/${t}/tickets/${e}/pass`).method("get").bearerToken().queryString(Ne.builder().append("language","nl")).fetchBlob()}async getPDF(t,e){return await this.request(`/merchants/${t}/tickets/${e}/pdf`).method("get").bearerToken().queryString(Ne.builder().append("language","nl")).fetchBlob()}}import{BaseService as Ba,QueryString as ka}from"@basmilius/http-client";import{TicketAdapter as Ca}from"#data/adapter";class va extends Ba{async get(t,e,r,i){let n=ka.builder().append("language","nl").append("offset",e).append("limit",r);if(i)Object.entries(i).forEach(([o,a])=>n.append(o,a));return await this.request(`/merchants/${t}/tickets`).method("get").queryString(n).bearerToken().runPaginatedAdapter(Ca.parseTicketFromObject)}}import{BaseService as ja,QueryString as gr}from"@basmilius/http-client";import{MerchantAdapter as pr}from"#data/adapter";class $a extends ja{async get(t,e,r){return await this.request(`/merchants/${t}/users`).method("get").queryString(gr.builder().append("language","nl").append("offset",e).append("limit",r)).bearerToken().runPaginatedAdapter(pr.parseMerchantUserFromObject)}async postInvite(t,e,r,i,n){return await this.request(`/merchants/${t}/users/invite`).method("post").queryString(gr.builder().append("language","nl")).bearerToken().body({first_name:e,last_name:r,email:i,claims:n}).runAdapter(pr.parseInvitationFromObject)}}import{BaseService as Aa,QueryString as S}from"@basmilius/http-client";import{AuthAdapter as K,CommonAdapter as Z}from"#data/adapter";class _a extends Aa{async get(){return await this.request("/me").method("get").bearerToken().queryString(S.builder().append("language","nl")).runAdapter(K.parseUserFromObject)}async getTotp(){return await this.request("/me/totp").method("get").bearerToken().queryString(S.builder().append("language","nl")).runAdapter(K.parseTotpStateFromObject)}async post(t,e,r){return await this.request("/me").method("post").bearerToken().queryString(S.builder().append("language","nl")).body({first_name:t,last_name:e,phone_number:r}).runAdapter(Z.parseStatusResponseFromObject)}async postChangePassword(t,e,r){return await this.request("/me/change-password").method("post").bearerToken().queryString(S.builder().append("language","nl")).body({password:t,new_password:e,new_password_confirm:r}).runAdapter(Z.parseStatusResponseFromObject)}async postProfilePicture(t){let e=new FormData;return e.append("file",t),await this.request("/me/profile-picture").method("post").bearerToken().queryString(S.builder().append("language","nl")).body(e).runAdapter(Z.parseStatusResponseFromObject)}async postTotp(t,e){return await this.request("/me/totp").method("post").bearerToken().queryString(S.builder().append("language","nl")).body({secret:t,code:e}).runAdapter(K.parseTotpStateFromObject)}async deleteProfilePicture(){return await this.request("/me/profile-picture").method("delete").bearerToken().queryString(S.builder().append("language","nl")).runAdapter(Z.parseStatusResponseFromObject)}async deleteTotp(t){return await this.request("/me/totp").method("delete").bearerToken().queryString(S.builder().append("language","nl")).body({code:t}).runAdapter(K.parseTotpStateFromObject)}}import{BaseService as wa,QueryString as Ee}from"@basmilius/http-client";import{OrderAdapter as Ia,PaymentAdapter as Na,PublicPayAdapter as Ea}from"#data/adapter";class Ma extends wa{async get(t){return await this.request(`/orders/${t}`).method("get").queryString(Ee.builder().append("language","nl")).runAdapter(Ia.parseOrderFromObject)}async getPaymentMethods(t){return await this.request(`/orders/${t}/payment-methods`).method("get").queryString(Ee.builder().append("language","nl")).runArrayAdapter(Ea.parsePublicPaymentMethodFromObject)}async postPay(t,e){return await this.request(`/orders/${t}/pay`).method("post").queryString(Ee.builder().append("language","nl")).body({payment_method_id:e}).runAdapter(Na.parseTransactionFromObject)}}import{BaseService as Ua,QueryString as Me}from"@basmilius/http-client";import{OrderAdapter as Qa,PublicShopAdapter as dr}from"#data/adapter";class La extends Ua{async get(t){return await this.request(`/shops/${t}`).method("get").queryString(Me.builder().append("language","nl")).runAdapter(dr.parsePublicShopFromObject)}async buy(t,e,r,i,n,o,a,u){return await this.request(`/shops/${t}/buy/${e}`).method("post").queryString(Me.builder().append("language","nl")).body({first_name:r,last_name:i,email:n,phone_number:o.trim()===""?null:o.trim(),date_of_birth:a?.toISODate(),gender:u}).runAdapter(Qa.parseOrderFromObject)}async reserve(t,e){return await this.request(`/shops/${t}/reserve`).method("post").queryString(Me.builder().append("language","nl")).body({products:e.map((r)=>[r.productId,r.quantity,r.timeSlotId])}).runAdapter(dr.parsePublicShopReservationFromObject)}}import{BaseService as Ga,QueryString as hr}from"@basmilius/http-client";import{ReservationAdapter as Va}from"#data/adapter";class Ha extends Ga{async get(t){return await this.request(`/reservations/${t}`).method("get").queryString(hr.builder().append("language","nl")).runAdapter(Va.parseReservationFromObject)}async remove(t){return await this.request(`/reservations/${t}`).method("delete").queryString(hr.builder().append("language","nl")).run()}}import{BaseService as Wa,QueryString as za}from"@basmilius/http-client";class Ja extends Wa{async checkEmail(t){return await this.request("/service/check-email").method("get").queryString(za.builder().append("email",t).append("language","nl")).runAdapter((e)=>e)}}import{BaseService as Ka,QueryString as cr}from"@basmilius/http-client";class Za extends Ka{async getClaims(){return await this.request("/ui/select-options/claims").method("get").bearerToken().queryString(cr.builder().append("language","nl")).runAdapter((t)=>{let e=[];return t.forEach((r)=>{e.push({icon:r.icon,label:r.label}),r.claims.forEach((i)=>e.push({label:i.label,value:i.value}))}),e})}async getCountries(){return await this.request("/ui/select-options/countries").method("get").bearerToken().queryString(cr.builder().append("language","nl")).runArrayAdapter((t)=>t)}}function lr(t){if(typeof t==="string"&&t.trim().length===0)return null;else if(Array.isArray(t)&&t.length===0)return null;return t}function yr(t){return new Blob([JSON.stringify(t)],{type:"application/json"})}function br(t,e){if(t===void 0||t===null)return null;return e(t)}function Dr(t,e){if(t===void 0||t===null)return null;return t.map(e)}export{Dr as optionalArray,br as optional,yr as jsonBlob,lr as emptyNull,Zt as VatNumberDto,lt as UserTokenDto,ct as UserDto,Za as UiSelectOptionsService,oe as TransactionDto,ht as TotpStateDto,Mt as TicketTemplateDto,H as TicketDto,pt as TicketAdapter,Et as StockPoolDto,Nt as StockOverviewItemDto,It as StockOverviewDto,yt as StatusResponseDto,wt as ShopElementTextDto,_t as ShopElementProductDto,At as ShopElementNoticeDto,$t as ShopElementHeadingDto,Hi as ShopElementDto,jt as ShopElementDividerDto,vt as ShopElementButtonDto,Ct as ShopDto,kt as ShopDesignDto,Ja as ServicesService,Ha as ReservationService,qe as ReservationProductDto,Re as ReservationItemDto,Fe as ReservationDto,w as ReservationAdapter,xe as PublicShopTimeSlotDto,La as PublicShopService,Oe as PublicShopReservationProductDto,Pe as PublicShopReservationProductDetailsDto,Se as PublicShopReservationDto,Te as PublicShopProductDto,fe as PublicShopMerchantDto,De as PublicShopEventDto,be as PublicShopElementTextDto,ye as PublicShopElementProductDto,le as PublicShopElementNoticeDto,ce as PublicShopElementHeadingDto,_n as PublicShopElementDto,he as PublicShopElementDividerDto,de as PublicShopElementButtonDto,pe as PublicShopDto,ge as PublicShopDesignDto,me as PublicShopCartProductDto,h as PublicShopAdapter,ue as PublicPaymentMethodDto,mt as PublicPayAdapter,Ma as PublicOrderService,ae as ProductDto,ut as ProductAdapter,Ut as PictureDto,ne as PaymentProviderDto,ie as PaymentMethodDto,x as PaymentAdapter,re as OrderProductDto,ee as OrderPaymentProviderDto,te as OrderLineDto,Yt as OrderDto,P as OrderAdapter,So as MerchantsService,$a as MerchantUsersService,Kt as MerchantUserDto,va as MerchantTicketsService,qa as MerchantTicketService,xa as MerchantStatisticsService,bo as MerchantService,Sa as MerchantOrdersService,ba as MerchantOrderService,ha as MerchantFinanceService,ga as MerchantFinanceInvoicesService,oa as MerchantFinanceInvoiceService,sa as MerchantEventsService,ea as MerchantEventTicketTemplatesService,Zo as MerchantEventTicketTemplateService,Jo as MerchantEventStockPoolsService,Uo as MerchantEventStatisticsService,Ho as MerchantEventShopsService,Lo as MerchantEventShopService,Eo as MerchantEventService,wo as MerchantEventProductsService,$o as MerchantEventProductService,Jt as MerchantDto,zt as MerchantDashboardUpcomingEventDto,vo as MerchantDashboardService,Wt as MerchantDashboardKeyMetricsDto,nt as MerchantDashboardAdapter,Bo as MerchantBuyersService,xo as MerchantBuyerService,_ as MerchantAdapter,_a as MeService,Gt as InvoiceLineDto,Lt as InvoiceDto,po as InvitationService,Ht as InvitationDto,$ as FluxAdapter,Qt as FinanceOverviewDto,L as FinanceAdapter,it as FileSystemAdapter,Bt as EventStatisticsSwapTotalsDto,Rt as EventStatisticsScansPerAppTeamDto,Ft as EventStatisticsScansDto,qt as EventStatisticsScanTotalsDto,Pt as EventStatisticsOrdersDto,xt as EventStatisticsOrderTotalsDto,Ot as EventStatisticsFinancialDto,St as EventStatisticsBuyerTotalsDto,Tt as EventStatisticsAttendanceDto,ft as EventDto,Dt as EventCountersDto,bt as EventAvailabilityDto,c as EventAdapter,rt as DateTimeAdapter,se as CostDto,Vt as ContractDto,et as CommonAdapter,Xt as BuyerDto,tt as BuyerAdapter,oo as AuthService,U as AuthAdapter,dt as AddressDto,Y as AddressAdapter};
|
|
1
|
+
var s=function(t,e,r,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,r,i);else for(var p=t.length-1;p>=0;p--)if(a=t[p])o=(n<3?a(o):n>3?a(e,r,o):a(e,r))||o;return n>3&&o&&Object.defineProperty(e,r,o),o};import{adapter as Gr}from"@basmilius/http-client";import{dto as qe}from"@basmilius/http-client";class V{get id(){return this.#t}set id(t){this.#t=t}get label(){return this.#e}set label(t){this.#e=t}get street(){return this.#r}set street(t){this.#r=t}get number(){return this.#s}set number(t){this.#s=t}get postalCode(){return this.#i}set postalCode(t){this.#i=t}get city(){return this.#n}set city(t){this.#n=t}get country(){return this.#o}set country(t){this.#o=t}get formatted(){return this.#a}set formatted(t){this.#a=t}#t;#e;#r;#s;#i;#n;#o;#a;constructor(t,e,r,i,n,o,a,p){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p}}V=s([qe],V);import{dto as Be}from"@basmilius/http-client";class H{get enabled(){return this.#t}set enabled(t){this.#t=t}get secret(){return this.#e}set secret(t){this.#e=t}get qr(){return this.#r}set qr(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}H=s([Be],H);import{dto as ke}from"@basmilius/http-client";class W{get id(){return this.#t}set id(t){this.#t=t}get email(){return this.#e}set email(t){this.#e=t}get firstName(){return this.#r}set firstName(t){this.#r=t}get lastName(){return this.#s}set lastName(t){this.#s=t}get fullName(){return this.#i}set fullName(t){this.#i=t}get initials(){return this.#n}set initials(t){this.#n=t}get phoneNumber(){return this.#o}set phoneNumber(t){this.#o=t}get isOnline(){return this.#a}set isOnline(t){this.#a=t}get picture(){return this.#u}set picture(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,p,h){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h}}W=s([ke],W);import{dto as Ce}from"@basmilius/http-client";class z{get token(){return this.#t}set token(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get browser(){return this.#r}set browser(t){this.#r=t}get operatingSystem(){return this.#s}set operatingSystem(t){this.#s=t}get createdOn(){return this.#i}set createdOn(t){this.#i=t}get expiresOn(){return this.#n}set expiresOn(t){this.#n=t}get realtimeChannel(){return this.#o}set realtimeChannel(t){this.#o=t}get user(){return this.#a}set user(t){this.#a=t}#t;#e;#r;#s;#i;#n;#o;#a;constructor(t,e,r,i,n,o,a,p){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p}}z=s([Ce],z);import{dto as ve}from"@basmilius/http-client";class J{get message(){return this.#t}set message(t){this.#t=t}get status(){return this.#e}set status(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}J=s([ve],J);import{dto as je}from"@basmilius/http-client";class K{get hasProducts(){return this.#t}set hasProducts(t){this.#t=t}get hasShops(){return this.#e}set hasShops(t){this.#e=t}get hasShopsWithProducts(){return this.#r}set hasShopsWithProducts(t){this.#r=t}get isPublishable(){return this.#s}set isPublishable(t){this.#s=t}get isPublished(){return this.#i}set isPublished(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}K=s([je],K);import{dto as $e}from"@basmilius/http-client";class Z{get guests(){return this.#t}set guests(t){this.#t=t}get orders(){return this.#e}set orders(t){this.#e=t}get tickets(){return this.#r}set tickets(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Z=s([$e],Z);import{dto as Ae}from"@basmilius/http-client";class X{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get startsOn(){return this.#s}set startsOn(t){this.#s=t}get endsOn(){return this.#i}set endsOn(t){this.#i=t}get minimumAge(){return this.#n}set minimumAge(t){this.#n=t}get status(){return this.#o}set status(t){this.#o=t}get address(){return this.#a}set address(t){this.#a=t}get headerFile(){return this.#u}set headerFile(t){this.#u=t}get createdOn(){return this.#m}set createdOn(t){this.#m=t}get updatedOn(){return this.#g}set updatedOn(t){this.#g=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;constructor(t,e,r,i,n,o,a,p,h,D,S){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S}}X=s([Ae],X);import{dto as _e}from"@basmilius/http-client";class Y{get attended(){return this.#t}set attended(t){this.#t=t}get expected(){return this.#e}set expected(t){this.#e=t}get rate(){return this.#r}set rate(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Y=s([_e],Y);import{dto as we}from"@basmilius/http-client";class tt{get acquired(){return this.#t}set acquired(t){this.#t=t}get averageTickets(){return this.#e}set averageTickets(t){this.#e=t}get doubting(){return this.#r}set doubting(t){this.#r=t}get returning(){return this.#s}set returning(t){this.#s=t}get total(){return this.#i}set total(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}tt=s([we],tt);import{dto as Ie}from"@basmilius/http-client";class et{get platformCost(){return this.#t}set platformCost(t){this.#t=t}get revenue(){return this.#e}set revenue(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}et=s([Ie],et);import{dto as Ne}from"@basmilius/http-client";class rt{get chart(){return this.#t}set chart(t){this.#t=t}get totals(){return this.#e}set totals(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}rt=s([Ne],rt);import{dto as Ee}from"@basmilius/http-client";class st{get fulfilled(){return this.#t}set fulfilled(t){this.#t=t}get interrupted(){return this.#e}set interrupted(t){this.#e=t}get pending(){return this.#r}set pending(t){this.#r=t}get total(){return this.#s}set total(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}st=s([Ee],st);import{dto as Me}from"@basmilius/http-client";class it{get appTeams(){return this.#t}set appTeams(t){this.#t=t}get chart(){return this.#e}set chart(t){this.#e=t}get totals(){return this.#r}set totals(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}it=s([Me],it);import{dto as Ue}from"@basmilius/http-client";class nt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get scans(){return this.#r}set scans(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}nt=s([Ue],nt);import{dto as Qe}from"@basmilius/http-client";class ot{get total(){return this.#t}set total(t){this.#t=t}get checkins(){return this.#e}set checkins(t){this.#e=t}get checkouts(){return this.#r}set checkouts(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ot=s([Qe],ot);import{dto as Le}from"@basmilius/http-client";class at{get swaps(){return this.#t}set swaps(t){this.#t=t}get tickets(){return this.#e}set tickets(t){this.#e=t}get rate(){return this.#r}set rate(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}at=s([Le],at);import{dto as Ge}from"@basmilius/http-client";class ut{get backgroundColor(){return this.#t}set backgroundColor(t){this.#t=t}get foregroundColor(){return this.#e}set foregroundColor(t){this.#e=t}get primaryColor(){return this.#r}set primaryColor(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ut=s([Ge],ut);import{dto as Ve}from"@basmilius/http-client";class mt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get isPublished(){return this.#r}set isPublished(t){this.#r=t}get password(){return this.#s}set password(t){this.#s=t}get startsOn(){return this.#i}set startsOn(t){this.#i=t}get endsOn(){return this.#n}set endsOn(t){this.#n=t}get fieldAddress(){return this.#o}set fieldAddress(t){this.#o=t}get fieldBirthdate(){return this.#a}set fieldBirthdate(t){this.#a=t}get fieldGender(){return this.#u}set fieldGender(t){this.#u=t}get fieldPhoneNumber(){return this.#m}set fieldPhoneNumber(t){this.#m=t}get status(){return this.#g}set status(t){this.#g=t}get design(){return this.#p}set design(t){this.#p=t}get event(){return this.#d}set event(t){this.#d=t}get merchant(){return this.#h}set merchant(t){this.#h=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;#d;#h;constructor(t,e,r,i,n,o,a,p,h,D,S,q,G,me){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S,this.#p=q,this.#d=G,this.#h=me}}mt=s([Ve],mt);class x{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}import{dto as He}from"@basmilius/http-client";class gt extends x{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}get url(){return this.#r}set url(t){this.#r=t}#t;#e;#r;constructor(t,e,r,i){super(t,"button");this.#t=e,this.#e=r,this.#r=i}}gt=s([He],gt);import{dto as We}from"@basmilius/http-client";class pt extends x{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"divider");this.#t=e,this.#e=r}}pt=s([We],pt);import{dto as ze}from"@basmilius/http-client";class dt extends x{get headingLevel(){return this.#t}set headingLevel(t){this.#t=t}get title(){return this.#e}set title(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"heading");this.#t=e,this.#e=r}}dt=s([ze],dt);import{dto as Je}from"@basmilius/http-client";class ht extends x{get icon(){return this.#t}set icon(t){this.#t=t}get noticeType(){return this.#e}set noticeType(t){this.#e=t}get title(){return this.#r}set title(t){this.#r=t}get text(){return this.#s}set text(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i,n){super(t,"notice");this.#t=e,this.#e=r,this.#r=i,this.#s=n}}ht=s([Je],ht);import{dto as Ke}from"@basmilius/http-client";class ct extends x{get product(){return this.#t}set product(t){this.#t=t}#t;constructor(t,e){super(t,"product");this.#t=e}}ct=s([Ke],ct);import{dto as Ze}from"@basmilius/http-client";class w extends x{get text(){return this.#t}set text(t){this.#t=t}#t;constructor(t,e){super(t,"text");this.#t=e}}w=s([Ze],w);import{dto as Xe}from"@basmilius/http-client";class lt{get total(){return this.#t}set total(t){this.#t=t}get sold(){return this.#e}set sold(t){this.#e=t}get remaining(){return this.#r}set remaining(t){this.#r=t}get items(){return this.#s}set items(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}lt=s([Xe],lt);import{dto as Ye}from"@basmilius/http-client";class yt{get pool(){return this.#t}set pool(t){this.#t=t}get product(){return this.#e}set product(t){this.#e=t}get remaining(){return this.#r}set remaining(t){this.#r=t}get sold(){return this.#s}set sold(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}yt=s([Ye],yt);import{dto as tr}from"@basmilius/http-client";class bt{get id(){return this.#t}set id(t){this.#t=t}get eventId(){return this.#e}set eventId(t){this.#e=t}get merchantId(){return this.#r}set merchantId(t){this.#r=t}get name(){return this.#s}set name(t){this.#s=t}get remainingStock(){return this.#i}set remainingStock(t){this.#i=t}get stock(){return this.#n}set stock(t){this.#n=t}get isShared(){return this.#o}set isShared(t){this.#o=t}get productNames(){return this.#a}set productNames(t){this.#a=t}get createdOn(){return this.#u}set createdOn(t){this.#u=t}get updatedOn(){return this.#m}set updatedOn(t){this.#m=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;constructor(t,e,r,i,n,o,a,p,h,D){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D}}bt=s([tr],bt);import{dto as er}from"@basmilius/http-client";class Dt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get product(){return this.#r}set product(t){this.#r=t}get productId(){return this.#s}set productId(t){this.#s=t}get variant(){return this.#i}set variant(t){this.#i=t}get visual(){return this.#n}set visual(t){this.#n=t}#t;#e;#r;#s;#i;#n;constructor(t,e,r,i,n,o){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o}}Dt=s([er],Dt);import{dto as rr}from"@basmilius/http-client";class ft{get id(){return this.#t}set id(t){this.#t=t}get url(){return this.#e}set url(t){this.#e=t}get variants(){return this.#r}set variants(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ft=s([rr],ft);import{dto as sr}from"@basmilius/http-client";class Tt{get estimatedPaymentCost(){return this.#t}set estimatedPaymentCost(t){this.#t=t}get orders(){return this.#e}set orders(t){this.#e=t}get platformCost(){return this.#r}set platformCost(t){this.#r=t}get revenue(){return this.#s}set revenue(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Tt=s([sr],Tt);import{dto as ir}from"@basmilius/http-client";class St{get id(){return this.#t}set id(t){this.#t=t}get number(){return this.#e}set number(t){this.#e=t}get sequence(){return this.#r}set sequence(t){this.#r=t}get status(){return this.#s}set status(t){this.#s=t}get year(){return this.#i}set year(t){this.#i=t}get total(){return this.#n}set total(t){this.#n=t}get lines(){return this.#o}set lines(t){this.#o=t}get createdOn(){return this.#a}set createdOn(t){this.#a=t}get updatedOn(){return this.#u}set updatedOn(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,p,h){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h}}St=s([ir],St);import{dto as nr}from"@basmilius/http-client";class Ot{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get cost(){return this.#r}set cost(t){this.#r=t}get createdOn(){return this.#s}set createdOn(t){this.#s=t}get updatedOn(){return this.#i}set updatedOn(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}Ot=s([nr],Ot);import{dto as or}from"@basmilius/http-client";class Pt{get id(){return this.#t}set id(t){this.#t=t}get startsOn(){return this.#e}set startsOn(t){this.#e=t}get endsOn(){return this.#r}set endsOn(t){this.#r=t}get fee(){return this.#s}set fee(t){this.#s=t}get remark(){return this.#i}set remark(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}Pt=s([or],Pt);import{dto as ar}from"@basmilius/http-client";class xt{get id(){return this.#t}set id(t){this.#t=t}get merchantId(){return this.#e}set merchantId(t){this.#e=t}get userId(){return this.#r}set userId(t){this.#r=t}get claims(){return this.#s}set claims(t){this.#s=t}get isNewUser(){return this.#i}set isNewUser(t){this.#i=t}get createdOn(){return this.#n}set createdOn(t){this.#n=t}get updatedOn(){return this.#o}set updatedOn(t){this.#o=t}get merchant(){return this.#a}set merchant(t){this.#a=t}get user(){return this.#u}set user(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,p,h){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h}}xt=s([ar],xt);import{dto as ur}from"@basmilius/http-client";class Ft{get revenue(){return this.#t}set revenue(t){this.#t=t}get tickets(){return this.#e}set tickets(t){this.#e=t}get events(){return this.#r}set events(t){this.#r=t}get tasks(){return this.#s}set tasks(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Ft=s([ur],Ft);import{dto as mr}from"@basmilius/http-client";class Rt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get headerFile(){return this.#s}set headerFile(t){this.#s=t}get status(){return this.#i}set status(t){this.#i=t}get startsOn(){return this.#n}set startsOn(t){this.#n=t}get ticketsSold(){return this.#o}set ticketsSold(t){this.#o=t}get ticketsTotal(){return this.#a}set ticketsTotal(t){this.#a=t}get sellThroughRate(){return this.#u}set sellThroughRate(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,p,h){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h}}Rt=s([mr],Rt);import{dto as gr}from"@basmilius/http-client";class qt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get email(){return this.#r}set email(t){this.#r=t}get phoneNumber(){return this.#s}set phoneNumber(t){this.#s=t}get url(){return this.#i}set url(t){this.#i=t}get chamberOfCommerceNumber(){return this.#n}set chamberOfCommerceNumber(t){this.#n=t}get vatNumber(){return this.#o}set vatNumber(t){this.#o=t}get currency(){return this.#a}set currency(t){this.#a=t}get address(){return this.#u}set address(t){this.#u=t}get currentContract(){return this.#m}set currentContract(t){this.#m=t}get logo(){return this.#g}set logo(t){this.#g=t}get createdOn(){return this.#p}set createdOn(t){this.#p=t}get updatedOn(){return this.#d}set updatedOn(t){this.#d=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;#d;constructor(t,e,r,i,n,o,a,p,h,D,S,q,G){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S,this.#p=q,this.#d=G}}qt=s([gr],qt);import{dto as pr}from"@basmilius/http-client";class Bt{get isManager(){return this.#t}set isManager(t){this.#t=t}get createdOn(){return this.#e}set createdOn(t){this.#e=t}get updatedOn(){return this.#r}set updatedOn(t){this.#r=t}get user(){return this.#s}set user(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Bt=s([pr],Bt);import{dto as dr}from"@basmilius/http-client";class kt{get id(){return this.#t}set id(t){this.#t=t}get vatNumber(){return this.#e}set vatNumber(t){this.#e=t}get name(){return this.#r}set name(t){this.#r=t}get address(){return this.#s}set address(t){this.#s=t}get countryCode(){return this.#i}set countryCode(t){this.#i=t}get createdOn(){return this.#n}set createdOn(t){this.#n=t}get updatedOn(){return this.#o}set updatedOn(t){this.#o=t}#t;#e;#r;#s;#i;#n;#o;constructor(t,e,r,i,n,o,a){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a}}kt=s([dr],kt);import{dto as hr}from"@basmilius/http-client";class Ct{get id(){return this.#t}set id(t){this.#t=t}get firstName(){return this.#e}set firstName(t){this.#e=t}get lastName(){return this.#r}set lastName(t){this.#r=t}get email(){return this.#s}set email(t){this.#s=t}get phoneNumber(){return this.#i}set phoneNumber(t){this.#i=t}get dateOfBirth(){return this.#n}set dateOfBirth(t){this.#n=t}get gender(){return this.#o}set gender(t){this.#o=t}get orderCount(){return this.#a}set orderCount(t){this.#a=t}get fullName(){return this.#u}set fullName(t){this.#u=t}get address(){return this.#m}set address(t){this.#m=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;constructor(t,e,r,i,n,o,a,p,h,D){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D}}Ct=s([hr],Ct);import{dto as cr}from"@basmilius/http-client";class vt{get id(){return this.#t}set id(t){this.#t=t}get code(){return this.#e}set code(t){this.#e=t}get origin(){return this.#r}set origin(t){this.#r=t}get type(){return this.#s}set type(t){this.#s=t}get createdOn(){return this.#i}set createdOn(t){this.#i=t}get paymentProvider(){return this.#n}set paymentProvider(t){this.#n=t}get platformCost(){return this.#o}set platformCost(t){this.#o=t}get subTotal(){return this.#a}set subTotal(t){this.#a=t}get total(){return this.#u}set total(t){this.#u=t}get url(){return this.#m}set url(t){this.#m=t}get buyer(){return this.#g}set buyer(t){this.#g=t}get event(){return this.#p}set event(t){this.#p=t}get lines(){return this.#d}set lines(t){this.#d=t}get shop(){return this.#h}set shop(t){this.#h=t}get transaction(){return this.#c}set transaction(t){this.#c=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;#d;#h;#c;constructor(t,e,r,i,n,o,a,p,h,D,S,q,G,me,Re){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S,this.#p=q,this.#d=G,this.#h=me,this.#c=Re}}vt=s([cr],vt);import{dto as lr}from"@basmilius/http-client";class jt{get id(){return this.#t}set id(t){this.#t=t}get price(){return this.#e}set price(t){this.#e=t}get quantity(){return this.#r}set quantity(t){this.#r=t}get product(){return this.#s}set product(t){this.#s=t}get subTotal(){return this.#i}set subTotal(t){this.#i=t}get createdOn(){return this.#n}set createdOn(t){this.#n=t}get updatedOn(){return this.#o}set updatedOn(t){this.#o=t}#t;#e;#r;#s;#i;#n;#o;constructor(t,e,r,i,n,o,a){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a}}jt=s([lr],jt);import{dto as yr}from"@basmilius/http-client";class $t{get name(){return this.#t}set name(t){this.#t=t}get url(){return this.#e}set url(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}$t=s([yr],$t);import{dto as br}from"@basmilius/http-client";class At{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get image(){return this.#s}set image(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}At=s([br],At);import{dto as Dr}from"@basmilius/http-client";class _t{get currencyCode(){return this.#t}set currencyCode(t){this.#t=t}get currencyDecimals(){return this.#e}set currencyDecimals(t){this.#e=t}get currencySign(){return this.#r}set currencySign(t){this.#r=t}get decimal(){return this.#s}set decimal(t){this.#s=t}get formatted(){return this.#i}set formatted(t){this.#i=t}get cents(){return this.#n}set cents(t){this.#n=t}#t;#e;#r;#s;#i;#n;constructor(t,e,r,i,n,o){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o}}_t=s([Dr],_t);import{dto as fr}from"@basmilius/http-client";class wt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get image(){return this.#r}set image(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}wt=s([fr],wt);import{dto as Tr}from"@basmilius/http-client";class It{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get methods(){return this.#r}set methods(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}It=s([Tr],It);import{dto as Sr}from"@basmilius/http-client";class Nt{get id(){return this.#t}set id(t){this.#t=t}get description(){return this.#e}set description(t){this.#e=t}get status(){return this.#r}set status(t){this.#r=t}get cost(){return this.#s}set cost(t){this.#s=t}get metadata(){return this.#i}set metadata(t){this.#i=t}get externalCheckoutUrl(){return this.#n}set externalCheckoutUrl(t){this.#n=t}get externalDetails(){return this.#o}set externalDetails(t){this.#o=t}get order(){return this.#a}set order(t){this.#a=t}get paymentMethod(){return this.#u}set paymentMethod(t){this.#u=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;constructor(t,e,r,i,n,o,a,p,h){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h}}Nt=s([Sr],Nt);import{dto as Or}from"@basmilius/http-client";class Et{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get name(){return this.#r}set name(t){this.#r=t}get description(){return this.#s}set description(t){this.#s=t}get price(){return this.#i}set price(t){this.#i=t}get maxQuantity(){return this.#n}set maxQuantity(t){this.#n=t}get isActive(){return this.#o}set isActive(t){this.#o=t}get isSwappable(){return this.#a}set isSwappable(t){this.#a=t}get remainingStock(){return this.#u}set remainingStock(t){this.#u=t}get stock(){return this.#m}set stock(t){this.#m=t}get image(){return this.#g}set image(t){this.#g=t}get images(){return this.#p}set images(t){this.#p=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;constructor(t,e,r,i,n,o,a,p,h,D,S,q){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S,this.#p=q}}Et=s([Or],Et);import{dto as Pr}from"@basmilius/http-client";class Mt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get image(){return this.#r}set image(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Mt=s([Pr],Mt);import{dto as xr}from"@basmilius/http-client";class ge{get productId(){return this.#t}set productId(t){this.#t=t}get quantity(){return this.#e}set quantity(t){this.#e=t}get timeSlotId(){return this.#r}set timeSlotId(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}ge=s([xr],ge);import{dto as Fr}from"@basmilius/http-client";class Ut{get backgroundColor(){return this.#t}set backgroundColor(t){this.#t=t}get foregroundColor(){return this.#e}set foregroundColor(t){this.#e=t}get primaryColor(){return this.#r}set primaryColor(t){this.#r=t}#t;#e;#r;constructor(t,e,r){this.#t=t,this.#e=e,this.#r=r}}Ut=s([Fr],Ut);import{dto as Rr}from"@basmilius/http-client";class Qt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get startsOn(){return this.#r}set startsOn(t){this.#r=t}get endsOn(){return this.#s}set endsOn(t){this.#s=t}get fieldAddress(){return this.#i}set fieldAddress(t){this.#i=t}get fieldBirthdate(){return this.#n}set fieldBirthdate(t){this.#n=t}get fieldGender(){return this.#o}set fieldGender(t){this.#o=t}get fieldPhoneNumber(){return this.#a}set fieldPhoneNumber(t){this.#a=t}get design(){return this.#u}set design(t){this.#u=t}get elements(){return this.#m}set elements(t){this.#m=t}get event(){return this.#g}set event(t){this.#g=t}get merchant(){return this.#p}set merchant(t){this.#p=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;constructor(t,e,r,i,n,o,a,p,h,D,S,q){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S,this.#p=q}}Qt=s([Rr],Qt);class F{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}import{dto as qr}from"@basmilius/http-client";class Lt extends F{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}get url(){return this.#r}set url(t){this.#r=t}#t;#e;#r;constructor(t,e,r,i){super(t,"button");this.#t=e,this.#e=r,this.#r=i}}Lt=s([qr],Lt);import{dto as Br}from"@basmilius/http-client";class Gt extends F{get icon(){return this.#t}set icon(t){this.#t=t}get text(){return this.#e}set text(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"divider");this.#t=e,this.#e=r}}Gt=s([Br],Gt);import{dto as kr}from"@basmilius/http-client";class Vt extends F{get headingLevel(){return this.#t}set headingLevel(t){this.#t=t}get title(){return this.#e}set title(t){this.#e=t}#t;#e;constructor(t,e,r){super(t,"heading");this.#t=e,this.#e=r}}Vt=s([kr],Vt);import{dto as Cr}from"@basmilius/http-client";class Ht extends F{get icon(){return this.#t}set icon(t){this.#t=t}get noticeType(){return this.#e}set noticeType(t){this.#e=t}get title(){return this.#r}set title(t){this.#r=t}get text(){return this.#s}set text(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i,n){super(t,"notice");this.#t=e,this.#e=r,this.#r=i,this.#s=n}}Ht=s([Cr],Ht);import{dto as vr}from"@basmilius/http-client";class Wt extends F{get product(){return this.#t}set product(t){this.#t=t}#t;constructor(t,e){super(t,"product");this.#t=e}}Wt=s([vr],Wt);import{dto as jr}from"@basmilius/http-client";class zt extends F{get text(){return this.#t}set text(t){this.#t=t}#t;constructor(t,e){super(t,"text");this.#t=e}}zt=s([jr],zt);import{dto as $r}from"@basmilius/http-client";class Jt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get status(){return this.#r}set status(t){this.#r=t}get address(){return this.#s}set address(t){this.#s=t}get headerFile(){return this.#i}set headerFile(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}Jt=s([$r],Jt);import{dto as Ar}from"@basmilius/http-client";class Kt{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}Kt=s([Ar],Kt);import{dto as _r}from"@basmilius/http-client";class Zt{get id(){return this.#t}set id(t){this.#t=t}get type(){return this.#e}set type(t){this.#e=t}get name(){return this.#r}set name(t){this.#r=t}get description(){return this.#s}set description(t){this.#s=t}get price(){return this.#i}set price(t){this.#i=t}get maxQuantity(){return this.#n}set maxQuantity(t){this.#n=t}get isActive(){return this.#o}set isActive(t){this.#o=t}get isTimeslotted(){return this.#a}set isTimeslotted(t){this.#a=t}get timeSlots(){return this.#u}set timeSlots(t){this.#u=t}get image(){return this.#m}set image(t){this.#m=t}get images(){return this.#g}set images(t){this.#g=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;constructor(t,e,r,i,n,o,a,p,h,D,S){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S}}Zt=s([_r],Zt);import{dto as wr}from"@basmilius/http-client";class Xt{get id(){return this.#t}set id(t){this.#t=t}get createdOn(){return this.#e}set createdOn(t){this.#e=t}get expiresOn(){return this.#r}set expiresOn(t){this.#r=t}get products(){return this.#s}set products(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}Xt=s([wr],Xt);import{dto as Ir}from"@basmilius/http-client";class Yt{get product(){return this.#t}set product(t){this.#t=t}get quantity(){return this.#e}set quantity(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}Yt=s([Ir],Yt);import{dto as Nr}from"@basmilius/http-client";class te{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get image(){return this.#s}set image(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}te=s([Nr],te);import{dto as Er}from"@basmilius/http-client";class ee{get id(){return this.#t}set id(t){this.#t=t}get label(){return this.#e}set label(t){this.#e=t}get fromTime(){return this.#r}set fromTime(t){this.#r=t}get toTime(){return this.#s}set toTime(t){this.#s=t}get maxQuantity(){return this.#i}set maxQuantity(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}ee=s([Er],ee);import{dto as Mr}from"@basmilius/http-client";class re{get id(){return this.#t}set id(t){this.#t=t}get createdOn(){return this.#e}set createdOn(t){this.#e=t}get expiresOn(){return this.#r}set expiresOn(t){this.#r=t}get isExpired(){return this.#s}set isExpired(t){this.#s=t}get items(){return this.#i}set items(t){this.#i=t}#t;#e;#r;#s;#i;constructor(t,e,r,i,n){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n}}re=s([Mr],re);import{dto as Ur}from"@basmilius/http-client";class se{get quantity(){return this.#t}set quantity(t){this.#t=t}get product(){return this.#e}set product(t){this.#e=t}#t;#e;constructor(t,e){this.#t=t,this.#e=e}}se=s([Ur],se);import{dto as Qr}from"@basmilius/http-client";class ie{get id(){return this.#t}set id(t){this.#t=t}get name(){return this.#e}set name(t){this.#e=t}get description(){return this.#r}set description(t){this.#r=t}get image(){return this.#s}set image(t){this.#s=t}#t;#e;#r;#s;constructor(t,e,r,i){this.#t=t,this.#e=e,this.#r=r,this.#s=i}}ie=s([Qr],ie);import{dto as Lr}from"@basmilius/http-client";class I{get id(){return this.#t}set id(t){this.#t=t}get sequence(){return this.#e}set sequence(t){this.#e=t}get code(){return this.#r}set code(t){this.#r=t}get status(){return this.#s}set status(t){this.#s=t}get validity(){return this.#i}set validity(t){this.#i=t}get buyer(){return this.#n}set buyer(t){this.#n=t}get event(){return this.#o}set event(t){this.#o=t}get holder(){return this.#a}set holder(t){this.#a=t}get order(){return this.#u}set order(t){this.#u=t}get product(){return this.#m}set product(t){this.#m=t}get createdOn(){return this.#g}set createdOn(t){this.#g=t}get updatedOn(){return this.#p}set updatedOn(t){this.#p=t}#t;#e;#r;#s;#i;#n;#o;#a;#u;#m;#g;#p;constructor(t,e,r,i,n,o,a,p,h,D,S,q){this.#t=t,this.#e=e,this.#r=r,this.#s=i,this.#i=n,this.#n=o,this.#o=a,this.#a=p,this.#u=h,this.#m=D,this.#g=S,this.#p=q}}I=s([Lr],I);class B{static parseAddressFromObject(t){return new V(t.id,t.label,t.street,t.number,t.postal_code,t.city,t.country,t.formatted)}}B=s([Gr],B);import{adapter as Vr}from"@basmilius/http-client";function N(t){if(typeof t==="string"&&t.trim().length===0)return null;else if(Array.isArray(t)&&t.length===0)return null;return t}function ae(t){return new Blob([JSON.stringify(t)],{type:"application/json"})}function u(t,e){if(t===void 0||t===null)return null;return e(t)}function P(t,e){if(t===void 0||t===null)return null;return t.map(e)}class b{static parseTotpStateFromObject(t){return new H(t.enabled,t.secret,t.qr)}static parseUserFromObject(t){return new W(t.id,t.email,t.first_name,t.last_name,t.full_name,t.initials,t.phone_number,t.is_online,u(t.picture,l.parsePictureFromObject))}static parseUserTokenFromObject(t){return new z(t.token,t.type,t.browser,t.operating_system,m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.expires_on),t.realtime_channel,u(t.user,b.parseUserFromObject))}}b=s([Vr],b);import{adapter as Hr}from"@basmilius/http-client";class R{static parseBuyerFromObject(t){return new Ct(t.id,t.first_name,t.last_name,t.email,t.phone_number,u(t.date_of_birth,m.parseDateTimeFromString),t.gender,t.order_count??-1,t.full_name,u(t.address,B.parseAddressFromObject))}}R=s([Hr],R);import{adapter as Wr}from"@basmilius/http-client";class c{static parseStatusResponseFromObject(t){return new J(t.message,t.status)}}c=s([Wr],c);import{adapter as zr}from"@basmilius/http-client";import{DateTime as Jr}from"luxon";class m{static parseDateTimeFromString(t){return Jr.fromISO(t,{zone:"UTC"}).setZone("Europe/Amsterdam")}}m=s([zr],m);import{adapter as Kr}from"@basmilius/http-client";class g{static parseEventFromObject(t){return new X(t.id,t.name,t.description,m.parseDateTimeFromString(t.starts_on),m.parseDateTimeFromString(t.ends_on),t.minimum_age,t.status,u(t.address,B.parseAddressFromObject),u(t.header_file,l.parsePictureFromObject),m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on))}static parseEventAvailabilityFromObject(t){return new K(t.has_products,t.has_shops,t.has_shops_with_products,t.is_publishable,t.is_published)}static parseEventCountersFromObject(t){return new Z(t.guests,t.orders,t.tickets)}static parseShopFromObject(t){return new mt(t.id,t.name,t.is_published,t.password,u(t.starts_on,m.parseDateTimeFromString),u(t.ends_on,m.parseDateTimeFromString),t.field_address,t.field_birthdate,t.field_gender,t.field_phone_number,t.status,u(t.design,g.parseShopDesignFromObject),u(t.event,g.parseEventFromObject),u(t.merchant,f.parseMerchantFromObject))}static parseShopDesignFromObject(t){return new ut(t.background_color,t.foreground_color,t.primary_color)}static parseShopElementFromObject(t){switch(t.type){case"button":return new gt(t.id,t.icon,t.text,t.url);case"divider":return new pt(t.id,t.icon,t.text);case"heading":return new dt(t.id,t.heading_level,t.title);case"notice":return new ht(t.id,t.icon,t.notice_type,t.title,t.text);case"product":return new ct(t.id,O.parseProductFromObject(t.product));case"text":return new w(t.id,t.text)}return new w("unknown","Unknown element type.")}static parseStockOverviewFromObject(t){return new lt(t.total,t.sold,t.remaining,t.items.map(g.parseStockOverviewItemFromObject))}static parseStockOverviewItemFromObject(t){return new yt(g.parseStockPoolFromObject(t.pool),O.parseProductFromObject(t.product),t.remaining,t.sold)}static parseStockPoolFromObject(t){return new bt(t.id,t.event_id,t.merchant_id,t.name,t.remaining_stock,t.stock,t.is_shared,t.product_names??[],m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on))}static parseTicketTemplateFromObject(t){return new Dt(t.id,t.name,u(t.product,O.parseProductFromObject),t.product_id,t.variant,u(t.visual,l.parsePictureFromObject))}static parseEventStatisticsAttendanceFromObject(t){return new Y(t.attended,t.expected,t.rate)}static parseEventStatisticsBuyerTotalsFromObject(t){return new tt(t.acquired,t.average_tickets,t.doubting,t.returning,t.total)}static parseEventStatisticsFinancialFromObject(t){return new et(d.parseCostFromObject(t.platform_cost),d.parseCostFromObject(t.revenue))}static parseEventStatisticsOrdersFromObject(t){return new rt(t.chart,g.parseEventStatisticsOrderTotalsFromObject(t.totals))}static parseEventStatisticsOrderTotalsFromObject(t){return new st(t.fulfilled,t.interrupted,t.pending,t.total)}static parseEventStatisticsScansFromObject(t){return new it(t.app_teams.map(g.parseEventStatisticsScansPerAppTeamFromObject),t.chart,g.parseEventStatisticsScanTotalsFromObject(t.totals))}static parseEventStatisticsScansPerAppTeamFromObject(t){return new nt(t.id,t.name,t.scans)}static parseEventStatisticsScanTotalsFromObject(t){return new ot(t.total,t.checkins,t.checkouts)}static parseEventStatisticsSwapTotalsFromObject(t){return new at(t.swaps,t.tickets,t.rate)}}g=s([Kr],g);import{adapter as Zr}from"@basmilius/http-client";class l{static parsePictureFromObject(t){return new ft(t.id,t.url,t.variants)}}l=s([Zr],l);import{adapter as Xr}from"@basmilius/http-client";class C{static parseFinanceOverviewFromObject(t){return new Tt(d.parseCostFromObject(t.estimated_payment_cost),t.orders,d.parseCostFromObject(t.platform_cost),d.parseCostFromObject(t.revenue))}static parseInvoiceFromObject(t){return new St(t.id,t.number,t.sequence,t.status,t.year,d.parseCostFromObject(t.total),P(t.lines,C.parseInvoiceLineFromObject),m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on))}static parseInvoiceLineFromObject(t){return new Ot(t.id,t.type,d.parseCostFromObject(t.cost),m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on))}}C=s([Xr],C);import{adapter as Yr}from"@basmilius/http-client";class k{static parseFluxFormSelectEntryFromObject(t){if("value"in t)return k.parseFluxFormSelectOptionFromObject(t);return k.parseFluxFormSelectGroupFromObject(t)}static parseFluxFormSelectGroupFromObject(t){return t}static parseFluxFormSelectOptionFromObject(t){return t}}k=s([Yr],k);import{adapter as ts}from"@basmilius/http-client";class f{static parseContractFromObject(t){return new Pt(t.id,m.parseDateTimeFromString(t.starts_on),m.parseDateTimeFromString(t.ends_on),d.parseCostFromObject(t.fee),t.remark)}static parseInvitationFromObject(t){return new xt(t.id,t.merchant_id,t.user_id,t.claims,t.is_new_user,m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on),f.parseMerchantFromObject(t.merchant),b.parseUserFromObject(t.user))}static parseMerchantFromObject(t){return new qt(t.id,t.name,t.email,t.phone_number,t.url,t.chamber_of_commerce_number,t.vat_number,t.currency,u(t.address,B.parseAddressFromObject),u(t.current_contract,f.parseContractFromObject),u(t.logo,l.parsePictureFromObject),u(t.created_on,m.parseDateTimeFromString),u(t.updated_on,m.parseDateTimeFromString))}static parseMerchantUserFromObject(t){return new Bt(t.is_manager,m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on),b.parseUserFromObject(t.user))}static parseVatNumberFromObject(t){return new kt(t.id,t.vat_number,t.name,t.address,t.country_code,m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on))}}f=s([ts],f);import{adapter as es}from"@basmilius/http-client";class E{static parseKeyMetricsFromObject(t){return new Ft(t.revenue,t.tickets,t.events,t.tasks)}static parseUpcomingEventFromObject(t){return new Rt(t.id,t.name,t.description,l.parsePictureFromObject(t.header_file),t.status,m.parseDateTimeFromString(t.starts_on),t.tickets_sold,t.tickets_total,t.sell_through_rate)}}E=s([es],E);import{adapter as rs}from"@basmilius/http-client";class y{static parseOrderFromObject(t){return new vt(t.id,t.code,t.origin,t.type,m.parseDateTimeFromString(t.created_on),u(t.payment_provider,y.parseOrderPaymentProviderFromObject),u(t.platform_cost,d.parseCostFromObject),u(t.sub_total,d.parseCostFromObject),u(t.total,d.parseCostFromObject),t.url,u(t.buyer,R.parseBuyerFromObject),u(t.event,g.parseEventFromObject),P(t.lines,y.parseOrderLineFromObject),u(t.shop,T.parsePublicShopFromObject),u(t.transaction,d.parseTransactionFromObject))}static parseOrderLineFromObject(t){return new jt(t.id,d.parseCostFromObject(t.price),t.quantity,y.parseOrderProductFromObject(t.product),d.parseCostFromObject(t.sub_total),m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on))}static parseOrderPaymentProviderFromObject(t){return new $t(t.name,t.url)}static parseOrderProductFromObject(t){return new At(t.id,t.name,t.description,t.image)}}y=s([rs],y);import{adapter as ss}from"@basmilius/http-client";class d{static parseCostFromObject(t){return new _t(t.currency_code,t.currency_decimals,t.currency_sign,t.decimal,t.formatted,t.value)}static parsePaymentMethodFromObject(t){return new wt(t.id,t.name,t.image)}static parsePaymentProviderFromObject(t){return new It(t.id,t.type,t.methods.map(d.parsePaymentMethodFromObject))}static parseTransactionFromObject(t){return new Nt(t.id,t.description,t.status,d.parseCostFromObject(t.cost),t.metadata,t.external_checkout_url,t.external_details,u(t.order,y.parseOrderFromObject),u(t.payment_method,d.parsePaymentMethodFromObject))}}d=s([ss],d);import{adapter as is}from"@basmilius/http-client";class O{static parseProductFromObject(t){return new Et(t.id,t.type,t.name,t.description,u(t.price,d.parseCostFromObject),t.max_quantity,t.is_active,t.is_swappable,t.remaining_stock,u(t.stock_pool,g.parseStockPoolFromObject),u(t.image,l.parsePictureFromObject),P(t.images,l.parsePictureFromObject))}}O=s([is],O);import{adapter as ns}from"@basmilius/http-client";class ne{static parsePublicPaymentMethodFromObject(t){return new Mt(t.id,t.name,t.image)}}ne=s([ns],ne);import{adapter as os}from"@basmilius/http-client";class T{static parsePublicShopFromObject(t){return new Qt(t.id,t.name,m.parseDateTimeFromString(t.starts_on),m.parseDateTimeFromString(t.ends_on),t.field_address,t.field_birthdate,t.field_gender,t.field_phone_number,u(t.design,T.parsePublicShopDesignFromObject),P(t.elements,T.parsePublicShopElementFromObject),T.parsePublicShopEventFromObject(t.event),T.parsePublicShopMerchantFromObject(t.merchant))}static parsePublicShopDesignFromObject(t){return new Ut(t.background_color,t.foreground_color,t.primary_color)}static parsePublicShopElementFromObject(t){switch(t.type){case"button":return new Lt(t.id,t.icon,t.text,t.url);case"divider":return new Gt(t.id,t.icon,t.text);case"heading":return new Vt(t.id,t.heading_level,t.title);case"notice":return new Ht(t.id,t.icon,t.notice_type,t.title,t.text);case"product":return new Wt(t.id,T.parsePublicShopProductFromObject(t.product));case"text":return new zt(t.id,t.text)}throw Error("Unknown shop element.")}static parsePublicShopEventFromObject(t){return new Jt(t.id,t.name,t.status,B.parseAddressFromObject(t.address),u(t.header_file,l.parsePictureFromObject))}static parsePublicShopMerchantFromObject(t){return new Kt(t.id,t.name)}static parsePublicShopProductFromObject(t){return new Zt(t.id,t.type,t.name,t.description,d.parseCostFromObject(t.price),t.max_quantity,t.is_active,t.is_timeslotted,P(t.time_slots,T.parsePublicShopTimeSlotFromObject),u(t.image,l.parsePictureFromObject),P(t.images,l.parsePictureFromObject))}static parsePublicShopReservationFromObject(t){return new Xt(t.id,m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.expires_on),t.products.map(T.parsePublicShopReservationProductFromObject))}static parsePublicShopReservationProductFromObject(t){return new Yt(T.parsePublicShopReservationProductDetailsFromObject(t.product),t.quantity)}static parsePublicShopReservationProductDetailsFromObject(t){return new te(t.id,t.name,t.description,u(t.image,l.parsePictureFromObject))}static parsePublicShopTimeSlotFromObject(t){return new ee(t.id,t.label,m.parseDateTimeFromString(t.from_time),m.parseDateTimeFromString(t.to_time),t.max_quantity)}}T=s([os],T);import{adapter as as}from"@basmilius/http-client";class _{static parseReservationFromObject(t){return new re(t.id,m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.expires_on),t.is_expired,P(t.products,_.parseReservationItemFromObject))}static parseReservationItemFromObject(t){return new se(t.quantity,_.parseReservationProductFromObject(t.product))}static parseReservationProductFromObject(t){return new ie(t.id,t.name,t.description,u(t.image,l.parsePictureFromObject))}}_=s([as],_);import{adapter as us}from"@basmilius/http-client";class v{static parseTicketFromObject(t){return new I(t.id,t.sequence,t.code,t.status,t.validity,u(t.buyer,R.parseBuyerFromObject),u(t.event,g.parseEventFromObject),u(t.holder,R.parseBuyerFromObject),u(t.order,y.parseOrderFromObject),u(t.product,O.parseProductFromObject),m.parseDateTimeFromString(t.created_on),m.parseDateTimeFromString(t.updated_on))}}v=s([us],v);import{BaseService as ms,QueryString as M}from"@basmilius/http-client";class gs extends ms{async get(){return await this.request("/auth").method("get").bearerToken().queryString(M.builder().append("language","nl")).runAdapter(b.parseUserTokenFromObject)}async getClaims(){return await this.request("/auth/claims").method("get").bearerToken().queryString(M.builder().append("language","nl")).runAdapter((t)=>Object.values(t))}async getPasswordCompromised(){return await this.request("/auth/password-compromised").method("get").bearerToken().queryString(M.builder().append("language","nl")).runDataKey("compromised")}async getSessions(t,e){return await this.request("/auth/sessions").method("get").bearerToken().queryString(M.builder().append("language","nl").append("offset",t).append("limit",e)).runPaginatedAdapter(b.parseUserTokenFromObject)}async post(t,e,r){return await this.request("/auth").method("post").body({email:t,password:e,code:r}).queryString(M.builder().append("language","nl")).runAdapter(b.parseUserTokenFromObject)}async deleteSession(t){return await this.request("/auth/sessions").method("delete").bearerToken().queryString(M.builder().append("language","nl")).body({token:t}).runEmpty()}}import{BaseService as ps,QueryString as pe}from"@basmilius/http-client";class ds extends ps{async get(t){return await this.request(`/invitations/${t}`).method("get").queryString(pe.builder().append("language","nl")).runAdapter(f.parseInvitationFromObject)}async postAccept(t,e){return await this.request(`/invitations/${t}/accept`).method("post").queryString(pe.builder().append("language","nl")).body({password:e}).runAdapter(b.parseUserTokenFromObject)}async postDecline(t){return await this.request(`/invitations/${t}/decline`).method("post").queryString(pe.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}}import{BaseService as hs,QueryString as j}from"@basmilius/http-client";class cs extends hs{async get(t){return await this.request(`/merchants/${t}`).method("get").queryString(j.builder().append("language","nl")).bearerToken().runAdapter(f.parseMerchantFromObject)}async getAccountManager(t){return await this.request(`/merchants/${t}/account-manager`).method("get").queryString(j.builder().append("language","nl")).bearerToken().runAdapter(b.parseUserFromObject)}async getClaims(t){return await this.request(`/merchants/${t}/claims`).method("get").queryString(j.builder().append("language","nl")).bearerToken().runAdapter((e)=>Object.values(e))}async getContract(t){return await this.request(`/merchants/${t}/contract`).method("get").queryString(j.builder().append("language","nl")).bearerToken().runAdapter(f.parseContractFromObject)}async getPaymentProviders(t){return await this.request(`/merchants/${t}/payment-providers`).method("get").queryString(j.builder().append("language","nl")).bearerToken().runArrayAdapter(d.parsePaymentProviderFromObject)}async getVatNumber(t){return await this.request(`/merchants/${t}/vat-number`).method("get").queryString(j.builder().append("language","nl")).bearerToken().runAdapter(f.parseVatNumberFromObject)}async put(t,e){return await this.request(`/merchants/${t}`).method("put").queryString(j.builder().append("language","nl")).bearerToken().body({name:e.name,email:e.email,phone_number:e.phoneNumber,url:e.url,chamber_of_commerce_number:e.chamberOfCommerceNumber,vat_number:e.vatNumber,address:{label:N(e.address.label),street:e.address.street,number:e.address.number,postal_code:e.address.postalCode,city:e.address.city,country_code:e.address.country}}).runAdapter(f.parseMerchantFromObject)}async postLogo(t,e){let r=new FormData;return r.append("file",e),await this.request(`/merchants/${t}/logo`).method("post").bearerToken().queryString(j.builder().append("language","nl")).body(r).runAdapter(c.parseStatusResponseFromObject)}async deleteLogo(t){return await this.request(`/merchants/${t}/logo`).method("delete").bearerToken().queryString(j.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}}import{BaseService as ls,QueryString as ys}from"@basmilius/http-client";class bs extends ls{async get(){return await this.request("/merchants").method("get").bearerToken().queryString(ys.builder().append("language","nl")).runArrayAdapter(f.parseMerchantFromObject)}}import{BaseService as Ds,QueryString as de}from"@basmilius/http-client";class fs extends Ds{async get(t,e){return await this.request(`/merchants/${t}/buyers/${e}`).method("get").bearerToken().queryString(de.builder().append("language","nl")).runAdapter(R.parseBuyerFromObject)}async getOrder(t,e,r){return await this.request(`/merchants/${t}/buyers/${e}/orders/${r}`).method("get").bearerToken().queryString(de.builder().append("language","nl")).runAdapter(y.parseOrderFromObject)}async getOrders(t,e,r,i){return await this.request(`/merchants/${t}/buyers/${e}/orders`).method("get").bearerToken().queryString(de.builder().append("language","nl").append("offset",r).append("limit",i)).runPaginatedAdapter(y.parseOrderFromObject)}}import{BaseService as Ts,QueryString as Ss}from"@basmilius/http-client";class Os extends Ts{async get(t,e,r){return await this.request(`/merchants/${t}/buyers`).method("get").queryString(Ss.builder().append("language","nl").append("offset",e).append("limit",r)).bearerToken().runPaginatedAdapter(R.parseBuyerFromObject)}}import{BaseService as Ps,QueryString as xs}from"@basmilius/http-client";class Fs extends Ps{async getKeyMetrics(t){return await this.request(`/merchants/${t}/dashboard/key-metrics`).method("get").queryString(xs.builder().append("language","nl")).bearerToken().runAdapter(E.parseKeyMetricsFromObject)}async getUpcomingEvents(t){return await this.request(`/merchants/${t}/dashboard/upcoming-events`).method("get").bearerToken().runArrayAdapter(E.parseUpcomingEventFromObject)}}import{BaseService as Rs,QueryString as U}from"@basmilius/http-client";class qs extends Rs{async get(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}`).method("get").bearerToken().queryString(U.builder().append("language","nl")).runAdapter(O.parseProductFromObject)}async postImage(t,e,r,i){let n=new FormData;return n.append("file",i),await this.request(`/merchants/${t}/events/${e}/products/${r}/media`).method("post").bearerToken().queryString(U.builder().append("language","nl")).body(n).runAdapter((o)=>o)}async patch(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/products/${r}`).method("patch").bearerToken().queryString(U.builder().append("language","nl")).body({name:i.name,description:i.description,price:i.price.cents,max_quantity:i.maxQuantity,is_swappable:i.isSwappable}).runAdapter(O.parseProductFromObject)}async patchPause(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}/pause`).method("patch").bearerToken().queryString(U.builder().append("language","nl")).runEmpty()}async patchResume(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}/resume`).method("patch").bearerToken().queryString(U.builder().append("language","nl")).runEmpty()}async delete(t,e,r){return await this.request(`/merchants/${t}/events/${e}/products/${r}`).method("delete").bearerToken().queryString(U.builder().append("language","nl")).runEmpty()}}import{BaseService as Bs,QueryString as he}from"@basmilius/http-client";class ks extends Bs{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/products`).method("get").bearerToken().queryString(he.builder().append("language","nl").append("offset",r).append("limit",i)).runPaginatedAdapter(O.parseProductFromObject)}async getSelectOptions(t,e,r=null,i=null){return await this.request(`/merchants/${t}/events/${e}/products/select-options`).method("get").bearerToken().queryString(he.builder().append("language","nl").appendArray("ids[]",i).append("searchQuery",r)).runArrayAdapter(k.parseFluxFormSelectEntryFromObject)}async post(t,e,r,i,n,o,a,p){return await this.request(`/merchants/${t}/events/${e}/products`).method("post").bearerToken().queryString(he.builder().append("language","nl")).body({name:r,description:i,price:n,stock:a,max_quantity:o,stock_pool_id:p}).runAdapter(O.parseProductFromObject)}}import{BaseService as Cs,QueryString as $}from"@basmilius/http-client";class vs extends Cs{async get(t,e){return await this.request(`/merchants/${t}/events/${e}`).method("get").bearerToken().queryString($.builder().append("language","nl")).runAdapter(g.parseEventFromObject)}async getAvailability(t,e){return await this.request(`/merchants/${t}/events/${e}/availability`).method("get").bearerToken().queryString($.builder().append("language","nl")).runAdapter(g.parseEventAvailabilityFromObject)}async getCounters(t,e){return await this.request(`/merchants/${t}/events/${e}/counters`).method("get").bearerToken().queryString($.builder().append("language","nl")).runAdapter(g.parseEventCountersFromObject)}async post(t,e){return await this.request(`/merchants/${t}/events/${e.id}`).method("post").bearerToken().queryString($.builder().append("language","nl")).body({name:e.name,description:e.description,starts_on:e.startsOn.toISO(),ends_on:e.endsOn.toISO(),minimum_age:e.minimumAge,address:{label:N(e.address.label),street:e.address.street,number:e.address.number,postal_code:e.address.postalCode,city:e.address.city,country_code:e.address.country}}).runAdapter(g.parseEventFromObject)}async postHeader(t,e,r){let i=new FormData;return i.append("file",r),await this.request(`/merchants/${t}/events/${e}/header`).method("post").bearerToken().queryString($.builder().append("language","nl")).body(i).runAdapter(c.parseStatusResponseFromObject)}async postPublish(t,e){return await this.request(`/merchants/${t}/events/${e}/publish`).method("post").bearerToken().queryString($.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}async postUnpublish(t,e){return await this.request(`/merchants/${t}/events/${e}/unpublish`).method("post").bearerToken().queryString($.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}async delete(t,e){return await this.request(`/merchants/${t}/events/${e}`).method("delete").bearerToken().queryString($.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}async deleteHeader(t,e){return await this.request(`/merchants/${t}/events/${e}/header`).method("delete").bearerToken().queryString($.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}}import{BaseService as js,QueryString as Q}from"@basmilius/http-client";class $s extends js{async getAttendance(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/attendance`).method("get").bearerToken().queryString(Q.builder().append("language","nl")).runAdapter(g.parseEventStatisticsAttendanceFromObject)}async getBuyers(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/buyers`).method("get").bearerToken().queryString(Q.builder().append("language","nl")).runAdapter(g.parseEventStatisticsBuyerTotalsFromObject)}async getFinancial(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/financial`).method("get").bearerToken().queryString(Q.builder().append("language","nl")).runAdapter(g.parseEventStatisticsFinancialFromObject)}async getOrders(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/orders`).method("get").bearerToken().queryString(Q.builder().append("language","nl")).runAdapter(g.parseEventStatisticsOrdersFromObject)}async getScans(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/scans`).method("get").bearerToken().queryString(Q.builder().append("language","nl")).runAdapter(g.parseEventStatisticsScansFromObject)}async getSwaps(t,e){return await this.request(`/merchants/${t}/events/${e}/statistics/swaps`).method("get").bearerToken().queryString(Q.builder().append("language","nl")).runAdapter(g.parseEventStatisticsSwapTotalsFromObject)}}import{BaseService as As,QueryString as ce}from"@basmilius/http-client";class _s extends As{async get(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r}`).method("get").queryString(ce.builder().append("language","nl")).bearerToken().runAdapter(g.parseShopFromObject)}async getElements(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r}/elements`).method("get").queryString(ce.builder().append("language","nl")).bearerToken().runArrayAdapter(g.parseShopElementFromObject)}async patch(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r.id}`).method("patch").queryString(ce.builder().append("language","nl")).bearerToken().body({name:r.name,is_published:r.isPublished,starts_on:r.startsOn,ends_on:r.endsOn,password:r.password}).runAdapter(g.parseShopFromObject)}async patchDesign(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/shops/${r}/design`).method("patch").bearerToken().body({background_color:i.backgroundColor,foreground_color:i.foregroundColor,primary_color:i.primaryColor}).runAdapter(g.parseShopDesignFromObject)}async patchElements(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/shops/${r}/elements`).method("patch").bearerToken().body({elements:i}).runArrayAdapter(g.parseShopElementFromObject)}}import{BaseService as ws,QueryString as le}from"@basmilius/http-client";class Is extends ws{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/shops`).method("get").queryString(le.builder().append("language","nl").append("offset",r).append("limit",i)).bearerToken().runPaginatedAdapter(g.parseShopFromObject)}async post(t,e,r,i,n){return await this.request(`/merchants/${t}/events/${e}/shops`).method("post").bearerToken().queryString(le.builder().append("language","nl")).body({name:r,starts_on:i,ends_on:n}).runAdapter(g.parseShopFromObject)}async delete(t,e,r){return await this.request(`/merchants/${t}/events/${e}/shops/${r}`).method("delete").bearerToken().queryString(le.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}}import{BaseService as Ns,QueryString as ue}from"@basmilius/http-client";class Es extends Ns{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/stock-pools`).method("get").queryString(ue.builder().append("language","nl").append("offset",r).append("limit",i)).bearerToken().runPaginatedAdapter(g.parseStockPoolFromObject)}async getOverview(t,e){return await this.request(`/merchants/${t}/events/${e}/stock-pools/overview`).method("get").queryString(ue.builder().append("language","nl")).bearerToken().runAdapter(g.parseStockOverviewFromObject)}async getSelectOptions(t,e,r=null,i=null){return await this.request(`/merchants/${t}/events/${e}/stock-pools/select-options`).method("get").queryString(ue.builder().append("language","nl").appendArray("ids[]",i).append("searchQuery",r)).bearerToken().runArrayAdapter(k.parseFluxFormSelectEntryFromObject)}async post(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/stock-pools`).method("post").bearerToken().queryString(ue.builder().append("language","nl")).body({name:r,stock:i}).runAdapter(g.parseStockPoolFromObject)}}import{BaseService as Ms,QueryString as L}from"@basmilius/http-client";class Us extends Ms{async get(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}`).method("get").bearerToken().queryString(L.builder().append("language","nl")).runAdapter(g.parseTicketTemplateFromObject)}async getDemo(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}/demo`).method("get").bearerToken().queryString(L.builder().append("language","nl")).fetchBlob()}async postVisual(t,e,r,i){let n=new FormData;return n.append("file",i),await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}/visual`).method("post").bearerToken().queryString(L.builder().append("language","nl")).body(n).runAdapter(c.parseStatusResponseFromObject)}async patch(t,e,r,i,n,o){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}`).method("patch").bearerToken().queryString(L.builder().append("language","nl")).body({name:i,product_id:n,variant:o}).runAdapter(g.parseTicketTemplateFromObject)}async delete(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}`).method("delete").bearerToken().queryString(L.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}async deleteVisual(t,e,r){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/${r}/visual`).method("delete").bearerToken().queryString(L.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}}import{BaseService as Qs,QueryString as ye}from"@basmilius/http-client";class Ls extends Qs{async get(t,e,r,i){return await this.request(`/merchants/${t}/events/${e}/ticket-templates`).method("get").queryString(ye.builder().append("language","nl").append("offset",r).append("limit",i)).bearerToken().runPaginatedAdapter(g.parseTicketTemplateFromObject)}async getSelectOptions(t,e,r=null,i=null){return await this.request(`/merchants/${t}/events/${e}/ticket-templates/select-options`).method("get").queryString(ye.builder().append("language","nl").appendArray("ids[]",i).append("searchQuery",r)).bearerToken().runArrayAdapter(k.parseFluxFormSelectEntryFromObject)}async post(t,e,r,i,n,o){let a=new FormData;return a.append("data",ae({name:r,product_id:i,variant:n})),a.append("visual",o),await this.request(`/merchants/${t}/events/${e}/ticket-templates`).method("post").bearerToken().queryString(ye.builder().append("language","nl")).body(a).runAdapter(g.parseTicketTemplateFromObject)}}import{BaseService as Gs,QueryString as Se}from"@basmilius/http-client";class Vs extends Gs{async get(t,e,r){return await this.request(`/merchants/${t}/events`).method("get").bearerToken().queryString(Se.builder().append("language","nl").append("offset",e).append("limit",r)).runPaginatedAdapter(g.parseEventFromObject)}async post(t,e,r,i,n,o){return await this.request(`/merchants/${t}/events`).method("post").bearerToken().queryString(Se.builder().append("language","nl")).body({name:e,description:r,starts_on:i,ends_on:n,minimum_age:o}).runAdapter(g.parseEventFromObject)}}import{BaseService as Hs,QueryString as Oe}from"@basmilius/http-client";class Ws extends Hs{async get(t,e){return await this.request(`/merchants/${t}/finance/invoices/${e}`).method("get").bearerToken().queryString(Oe.builder().append("language","nl")).runAdapter(C.parseInvoiceFromObject)}async getPDF(t,e){return await this.request(`/merchants/${t}/finance/invoices/${e}/pdf`).method("get").bearerToken().queryString(Oe.builder().append("language","nl")).fetchBlob()}}import{BaseService as zs,QueryString as Js}from"@basmilius/http-client";class Ks extends zs{async get(t,e,r){return await this.request(`/merchants/${t}/finance/invoices`).method("get").bearerToken().queryString(Js.builder().append("language","nl").append("offset",e).append("limit",r)).runPaginatedAdapter(C.parseInvoiceFromObject)}}import{BaseService as Zs,QueryString as be}from"@basmilius/http-client";class Xs extends Zs{async getDailyRevenue(t){return await this.request(`/merchants/${t}/finance/daily-revenue`).method("get").bearerToken().queryString(be.builder().append("language","nl")).runAdapter((e)=>e)}async getMonthlyRevenue(t){return await this.request(`/merchants/${t}/finance/monthly-revenue`).method("get").bearerToken().queryString(be.builder().append("language","nl")).runAdapter((e)=>e)}async getOverview(t){return await this.request(`/merchants/${t}/finance/overview`).method("get").bearerToken().queryString(be.builder().append("language","nl")).runAdapter(C.parseFinanceOverviewFromObject)}}import{BaseService as Ys,QueryString as oe}from"@basmilius/http-client";class ti extends Ys{async get(t,e){return await this.request(`/merchants/${t}/orders/${e}`).method("get").bearerToken().queryString(oe.builder().append("language","nl")).runAdapter(y.parseOrderFromObject)}async getPasses(t,e){return await this.request(`/merchants/${t}/orders/${e}/passes`).method("get").bearerToken().queryString(oe.builder().append("language","nl")).fetchBlob()}async getPDF(t,e){return await this.request(`/merchants/${t}/orders/${e}/pdf`).method("get").bearerToken().queryString(oe.builder().append("language","nl")).fetchBlob()}async getTickets(t,e){return await this.request(`/merchants/${t}/orders/${e}/tickets`).method("get").bearerToken().queryString(oe.builder().append("language","nl")).runArrayAdapter(v.parseTicketFromObject)}async postResend(t,e){return await this.request(`/merchants/${t}/orders/${e}/resend`).method("post").bearerToken().queryString(oe.builder().append("language","nl")).runEmpty()}}import{BaseService as ei,QueryString as ri}from"@basmilius/http-client";class si extends ei{async get(t,e,r,i){let n=ri.builder().append("language","nl").append("offset",e).append("limit",r);if(i)Object.entries(i).forEach(([o,a])=>n.append(o,a));return await this.request(`/merchants/${t}/orders`).method("get").queryString(n).bearerToken().runPaginatedAdapter(y.parseOrderFromObject)}}import{BaseService as ii,QueryString as ni}from"@basmilius/http-client";class oi extends ii{async getRevenueTrend(t){return this.request(`/merchants/${t}/statistics/revenue-trend`).method("get").queryString(ni.builder().append("language","nl")).bearerToken().runAdapter((e)=>e)}}import{BaseService as ai,QueryString as De}from"@basmilius/http-client";class ui extends ai{async get(t,e){return await this.request(`/merchants/${t}/tickets/${e}`).method("get").bearerToken().queryString(De.builder().append("language","nl")).runAdapter(v.parseTicketFromObject)}async getPass(t,e){return await this.request(`/merchants/${t}/tickets/${e}/pass`).method("get").bearerToken().queryString(De.builder().append("language","nl")).fetchBlob()}async getPDF(t,e){return await this.request(`/merchants/${t}/tickets/${e}/pdf`).method("get").bearerToken().queryString(De.builder().append("language","nl")).fetchBlob()}}import{BaseService as mi,QueryString as gi}from"@basmilius/http-client";class pi extends mi{async get(t,e,r,i){let n=gi.builder().append("language","nl").append("offset",e).append("limit",r);if(i)Object.entries(i).forEach(([o,a])=>n.append(o,a));return await this.request(`/merchants/${t}/tickets`).method("get").queryString(n).bearerToken().runPaginatedAdapter(v.parseTicketFromObject)}}import{BaseService as di,QueryString as Pe}from"@basmilius/http-client";class hi extends di{async get(t,e,r){return await this.request(`/merchants/${t}/users`).method("get").queryString(Pe.builder().append("language","nl").append("offset",e).append("limit",r)).bearerToken().runPaginatedAdapter(f.parseMerchantUserFromObject)}async postInvite(t,e,r,i,n){return await this.request(`/merchants/${t}/users/invite`).method("post").queryString(Pe.builder().append("language","nl")).bearerToken().body({first_name:e,last_name:r,email:i,claims:n}).runAdapter(f.parseInvitationFromObject)}}import{BaseService as ci,QueryString as A}from"@basmilius/http-client";class li extends ci{async get(){return await this.request("/me").method("get").bearerToken().queryString(A.builder().append("language","nl")).runAdapter(b.parseUserFromObject)}async getTotp(){return await this.request("/me/totp").method("get").bearerToken().queryString(A.builder().append("language","nl")).runAdapter(b.parseTotpStateFromObject)}async post(t,e,r){return await this.request("/me").method("post").bearerToken().queryString(A.builder().append("language","nl")).body({first_name:t,last_name:e,phone_number:r}).runAdapter(c.parseStatusResponseFromObject)}async postChangePassword(t,e,r){return await this.request("/me/change-password").method("post").bearerToken().queryString(A.builder().append("language","nl")).body({password:t,new_password:e,new_password_confirm:r}).runAdapter(c.parseStatusResponseFromObject)}async postProfilePicture(t){let e=new FormData;return e.append("file",t),await this.request("/me/profile-picture").method("post").bearerToken().queryString(A.builder().append("language","nl")).body(e).runAdapter(c.parseStatusResponseFromObject)}async postTotp(t,e){return await this.request("/me/totp").method("post").bearerToken().queryString(A.builder().append("language","nl")).body({secret:t,code:e}).runAdapter(b.parseTotpStateFromObject)}async deleteProfilePicture(){return await this.request("/me/profile-picture").method("delete").bearerToken().queryString(A.builder().append("language","nl")).runAdapter(c.parseStatusResponseFromObject)}async deleteTotp(t){return await this.request("/me/totp").method("delete").bearerToken().queryString(A.builder().append("language","nl")).body({code:t}).runAdapter(b.parseTotpStateFromObject)}}import{BaseService as yi,QueryString as fe}from"@basmilius/http-client";class bi extends yi{async get(t){return await this.request(`/orders/${t}`).method("get").queryString(fe.builder().append("language","nl")).runAdapter(y.parseOrderFromObject)}async getPaymentMethods(t){return await this.request(`/orders/${t}/payment-methods`).method("get").queryString(fe.builder().append("language","nl")).runArrayAdapter(ne.parsePublicPaymentMethodFromObject)}async postPay(t,e){return await this.request(`/orders/${t}/pay`).method("post").queryString(fe.builder().append("language","nl")).body({payment_method_id:e}).runAdapter(d.parseTransactionFromObject)}}import{BaseService as Di,QueryString as Te}from"@basmilius/http-client";class fi extends Di{async get(t){return await this.request(`/shops/${t}`).method("get").queryString(Te.builder().append("language","nl")).runAdapter(T.parsePublicShopFromObject)}async buy(t,e,r,i,n,o,a,p){return await this.request(`/shops/${t}/buy/${e}`).method("post").queryString(Te.builder().append("language","nl")).body({first_name:r,last_name:i,email:n,phone_number:o.trim()===""?null:o.trim(),date_of_birth:a?.toISODate(),gender:p}).runAdapter(y.parseOrderFromObject)}async reserve(t,e){return await this.request(`/shops/${t}/reserve`).method("post").queryString(Te.builder().append("language","nl")).body({products:e.map((r)=>[r.productId,r.quantity,r.timeSlotId])}).runAdapter(T.parsePublicShopReservationFromObject)}}import{BaseService as Ti,QueryString as xe}from"@basmilius/http-client";class Si extends Ti{async get(t){return await this.request(`/reservations/${t}`).method("get").queryString(xe.builder().append("language","nl")).runAdapter(_.parseReservationFromObject)}async remove(t){return await this.request(`/reservations/${t}`).method("delete").queryString(xe.builder().append("language","nl")).run()}}import{BaseService as Oi,QueryString as Pi}from"@basmilius/http-client";class xi extends Oi{async checkEmail(t){return await this.request("/service/check-email").method("get").queryString(Pi.builder().append("email",t).append("language","nl")).runAdapter((e)=>e)}}import{BaseService as Fi,QueryString as Fe}from"@basmilius/http-client";class Ri extends Fi{async getClaims(){return await this.request("/ui/select-options/claims").method("get").bearerToken().queryString(Fe.builder().append("language","nl")).runAdapter((t)=>{let e=[];return t.forEach((r)=>{e.push({icon:r.icon,label:r.label}),r.claims.forEach((i)=>e.push({label:i.label,value:i.value}))}),e})}async getCountries(){return await this.request("/ui/select-options/countries").method("get").bearerToken().queryString(Fe.builder().append("language","nl")).runArrayAdapter((t)=>t)}}export{P as optionalArray,u as optional,ae as jsonBlob,N as emptyNull,kt as VatNumberDto,z as UserTokenDto,W as UserDto,Ri as UiSelectOptionsService,Nt as TransactionDto,H as TotpStateDto,Dt as TicketTemplateDto,I as TicketDto,v as TicketAdapter,bt as StockPoolDto,yt as StockOverviewItemDto,lt as StockOverviewDto,J as StatusResponseDto,w as ShopElementTextDto,ct as ShopElementProductDto,ht as ShopElementNoticeDto,dt as ShopElementHeadingDto,x as ShopElementDto,pt as ShopElementDividerDto,gt as ShopElementButtonDto,mt as ShopDto,ut as ShopDesignDto,xi as ServicesService,Si as ReservationService,ie as ReservationProductDto,se as ReservationItemDto,re as ReservationDto,_ as ReservationAdapter,ee as PublicShopTimeSlotDto,fi as PublicShopService,Yt as PublicShopReservationProductDto,te as PublicShopReservationProductDetailsDto,Xt as PublicShopReservationDto,Zt as PublicShopProductDto,Kt as PublicShopMerchantDto,Jt as PublicShopEventDto,zt as PublicShopElementTextDto,Wt as PublicShopElementProductDto,Ht as PublicShopElementNoticeDto,Vt as PublicShopElementHeadingDto,F as PublicShopElementDto,Gt as PublicShopElementDividerDto,Lt as PublicShopElementButtonDto,Qt as PublicShopDto,Ut as PublicShopDesignDto,ge as PublicShopCartProductDto,T as PublicShopAdapter,Mt as PublicPaymentMethodDto,ne as PublicPayAdapter,bi as PublicOrderService,Et as ProductDto,O as ProductAdapter,ft as PictureDto,It as PaymentProviderDto,wt as PaymentMethodDto,d as PaymentAdapter,At as OrderProductDto,$t as OrderPaymentProviderDto,jt as OrderLineDto,vt as OrderDto,y as OrderAdapter,bs as MerchantsService,hi as MerchantUsersService,Bt as MerchantUserDto,pi as MerchantTicketsService,ui as MerchantTicketService,oi as MerchantStatisticsService,cs as MerchantService,si as MerchantOrdersService,ti as MerchantOrderService,Xs as MerchantFinanceService,Ks as MerchantFinanceInvoicesService,Ws as MerchantFinanceInvoiceService,Vs as MerchantEventsService,Ls as MerchantEventTicketTemplatesService,Us as MerchantEventTicketTemplateService,Es as MerchantEventStockPoolsService,$s as MerchantEventStatisticsService,Is as MerchantEventShopsService,_s as MerchantEventShopService,vs as MerchantEventService,ks as MerchantEventProductsService,qs as MerchantEventProductService,qt as MerchantDto,Rt as MerchantDashboardUpcomingEventDto,Fs as MerchantDashboardService,Ft as MerchantDashboardKeyMetricsDto,E as MerchantDashboardAdapter,Os as MerchantBuyersService,fs as MerchantBuyerService,f as MerchantAdapter,li as MeService,Ot as InvoiceLineDto,St as InvoiceDto,ds as InvitationService,xt as InvitationDto,k as FluxAdapter,Tt as FinanceOverviewDto,C as FinanceAdapter,l as FileSystemAdapter,at as EventStatisticsSwapTotalsDto,nt as EventStatisticsScansPerAppTeamDto,it as EventStatisticsScansDto,ot as EventStatisticsScanTotalsDto,rt as EventStatisticsOrdersDto,st as EventStatisticsOrderTotalsDto,et as EventStatisticsFinancialDto,tt as EventStatisticsBuyerTotalsDto,Y as EventStatisticsAttendanceDto,X as EventDto,Z as EventCountersDto,K as EventAvailabilityDto,g as EventAdapter,m as DateTimeAdapter,_t as CostDto,Pt as ContractDto,c as CommonAdapter,Ct as BuyerDto,R as BuyerAdapter,gs as AuthService,b as AuthAdapter,V as AddressDto,B as AddressAdapter};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=B85D4868DEFED0C664756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.js.map
|