@sellout/models 0.0.384 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{src/schemas → mongo}/Address.ts +57 -62
- package/{src/schemas → mongo}/Metrics.ts +0 -6
- package/package.json +4 -25
- package/{src/proto → proto}/artist.proto +7 -21
- package/{src/proto → proto}/broadcast.proto +13 -50
- package/{src/proto → proto}/common.proto +59 -76
- package/proto/email.proto +179 -0
- package/{src/proto → proto}/error.proto +0 -1
- package/proto/event.proto +270 -0
- package/{src/proto → proto}/fee.proto +0 -71
- package/{src/proto → proto}/file-upload.proto +0 -2
- package/proto/order.proto +272 -0
- package/{src/proto → proto}/organization.proto +1 -58
- package/{src/proto → proto}/role.proto +4 -48
- package/{src/proto → proto}/seating.proto +0 -42
- package/proto/stripe.proto +181 -0
- package/proto/task.proto +39 -0
- package/proto/twilio.proto +43 -0
- package/{src/proto → proto}/user-profile.proto +2 -48
- package/{src/proto → proto}/user.proto +1 -204
- package/{src/proto → proto}/venue.proto +10 -21
- package/utils/EventUtil.ts +186 -0
- package/utils/FeeUtil.ts +34 -0
- package/utils/OrderUtil.ts +226 -0
- package/.dist/enums/ContactsScreenEnum.d.ts +0 -5
- package/.dist/enums/ContactsScreenEnum.js +0 -10
- package/.dist/enums/ContactsScreenEnum.js.map +0 -1
- package/.dist/enums/CustomFieldTypeEnum.d.ts +0 -6
- package/.dist/enums/CustomFieldTypeEnum.js +0 -11
- package/.dist/enums/CustomFieldTypeEnum.js.map +0 -1
- package/.dist/enums/DefaultArtistImageUrls.d.ts +0 -5
- package/.dist/enums/DefaultArtistImageUrls.js +0 -11
- package/.dist/enums/DefaultArtistImageUrls.js.map +0 -1
- package/.dist/enums/DefaultEventImageUrls.d.ts +0 -4
- package/.dist/enums/DefaultEventImageUrls.js +0 -10
- package/.dist/enums/DefaultEventImageUrls.js.map +0 -1
- package/.dist/enums/DefaultVenueImageUrls.d.ts +0 -3
- package/.dist/enums/DefaultVenueImageUrls.js +0 -9
- package/.dist/enums/DefaultVenueImageUrls.js.map +0 -1
- package/.dist/enums/DropDownEnum.d.ts +0 -3
- package/.dist/enums/DropDownEnum.js +0 -8
- package/.dist/enums/DropDownEnum.js.map +0 -1
- package/.dist/enums/EPurchasePortalModes.d.ts +0 -8
- package/.dist/enums/EPurchasePortalModes.js +0 -15
- package/.dist/enums/EPurchasePortalModes.js.map +0 -1
- package/.dist/enums/EPurchasePortalStatus.d.ts +0 -4
- package/.dist/enums/EPurchasePortalStatus.js +0 -9
- package/.dist/enums/EPurchasePortalStatus.js.map +0 -1
- package/.dist/enums/OrderChannelEnum.d.ts +0 -4
- package/.dist/enums/OrderChannelEnum.js +0 -10
- package/.dist/enums/OrderChannelEnum.js.map +0 -1
- package/.dist/enums/OrderItemTypeEnum.d.ts +0 -4
- package/.dist/enums/OrderItemTypeEnum.js +0 -10
- package/.dist/enums/OrderItemTypeEnum.js.map +0 -1
- package/.dist/enums/OrderShareTimestamp.d.ts +0 -6
- package/.dist/enums/OrderShareTimestamp.js +0 -11
- package/.dist/enums/OrderShareTimestamp.js.map +0 -1
- package/.dist/enums/PaymentMethodTypeEnum.d.ts +0 -7
- package/.dist/enums/PaymentMethodTypeEnum.js +0 -12
- package/.dist/enums/PaymentMethodTypeEnum.js.map +0 -1
- package/.dist/enums/TierStatusEnum.d.ts +0 -5
- package/.dist/enums/TierStatusEnum.js +0 -10
- package/.dist/enums/TierStatusEnum.js.map +0 -1
- package/.dist/graphql/fragments/event.fragment.d.ts +0 -22
- package/.dist/graphql/fragments/event.fragment.js +0 -347
- package/.dist/graphql/fragments/event.fragment.js.map +0 -1
- package/.dist/graphql/fragments/order.fragment.d.ts +0 -10
- package/.dist/graphql/fragments/order.fragment.js +0 -99
- package/.dist/graphql/fragments/order.fragment.js.map +0 -1
- package/.dist/graphql/fragments/season.fragment.d.ts +0 -23
- package/.dist/graphql/fragments/season.fragment.js +0 -341
- package/.dist/graphql/fragments/season.fragment.js.map +0 -1
- package/.dist/graphql/links/debounceLink.d.ts +0 -3
- package/.dist/graphql/links/debounceLink.js +0 -9
- package/.dist/graphql/links/debounceLink.js.map +0 -1
- package/.dist/graphql/mutations/acceptRole.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/acceptRole.mutation.js +0 -18
- package/.dist/graphql/mutations/acceptRole.mutation.js.map +0 -1
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js +0 -10
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js.map +0 -1
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js +0 -19
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js.map +0 -1
- package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.js +0 -59
- package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/breakApartOrder.d.ts +0 -2
- package/.dist/graphql/mutations/breakApartOrder.js +0 -47
- package/.dist/graphql/mutations/breakApartOrder.js.map +0 -1
- package/.dist/graphql/mutations/breakApartSeasonOrder.d.ts +0 -2
- package/.dist/graphql/mutations/breakApartSeasonOrder.js +0 -55
- package/.dist/graphql/mutations/breakApartSeasonOrder.js.map +0 -1
- package/.dist/graphql/mutations/cancelOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/cancelOrder.mutation.js +0 -12
- package/.dist/graphql/mutations/cancelOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/cancelTickets.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/cancelTickets.mutation.js +0 -20
- package/.dist/graphql/mutations/cancelTickets.mutation.js.map +0 -1
- package/.dist/graphql/mutations/connectStripe.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/connectStripe.mutation.js +0 -10
- package/.dist/graphql/mutations/connectStripe.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createArtist.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createArtist.mutation.js +0 -41
- package/.dist/graphql/mutations/createArtist.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createContacts.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createContacts.mutation.js +0 -10
- package/.dist/graphql/mutations/createContacts.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createEvent.mutation.js +0 -93
- package/.dist/graphql/mutations/createEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js +0 -39
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createFee.mutation.js +0 -28
- package/.dist/graphql/mutations/createFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrder.mutation.js +0 -56
- package/.dist/graphql/mutations/createOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js +0 -13
- package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrganisation.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrganisation.mutation.js +0 -13
- package/.dist/graphql/mutations/createOrganisation.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createOrganizationFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js +0 -29
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createPlatformFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createPlatformFee.mutation.js +0 -29
- package/.dist/graphql/mutations/createPlatformFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createRole.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createRole.mutation.js +0 -16
- package/.dist/graphql/mutations/createRole.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createSeason.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createSeason.mutation.js +0 -82
- package/.dist/graphql/mutations/createSeason.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js +0 -62
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +0 -15
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js +0 -10
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js +0 -10
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createVenue.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createVenue.mutation.js +0 -33
- package/.dist/graphql/mutations/createVenue.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createWaitList.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createWaitList.mutation.js +0 -12
- package/.dist/graphql/mutations/createWaitList.mutation.js.map +0 -1
- package/.dist/graphql/mutations/createWebFlowSite.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js +0 -39
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteEvent.mutation.js +0 -22
- package/.dist/graphql/mutations/deleteEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deletePlatformFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js +0 -10
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteRole.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteRole.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteRole.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js +0 -18
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteSubscription.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteSubscription.mutation.js +0 -13
- package/.dist/graphql/mutations/deleteSubscription.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.js +0 -10
- package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteTicketHold.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteTicketHold.mutation.js +0 -13
- package/.dist/graphql/mutations/deleteTicketHold.mutation.js.map +0 -1
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js +0 -11
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js.map +0 -1
- package/.dist/graphql/mutations/duplicateEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/duplicateEvent.mutation.js +0 -90
- package/.dist/graphql/mutations/duplicateEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/eventEmailTemplate.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/eventEmailTemplate.mutation.js +0 -10
- package/.dist/graphql/mutations/eventEmailTemplate.mutation.js.map +0 -1
- package/.dist/graphql/mutations/forgotPassword.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/forgotPassword.mutation.js +0 -10
- package/.dist/graphql/mutations/forgotPassword.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateActivityReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateActivityReport.mutation.js +0 -15
- package/.dist/graphql/mutations/generateActivityReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateEventQRCode.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateEventQRCode.mutation.js +0 -10
- package/.dist/graphql/mutations/generateEventQRCode.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateOrderReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateOrderReport.mutation.js +0 -13
- package/.dist/graphql/mutations/generateOrderReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js +0 -13
- package/.dist/graphql/mutations/generateUserProfileReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/holdTicket.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/holdTicket.mutation.js +0 -12
- package/.dist/graphql/mutations/holdTicket.mutation.js.map +0 -1
- package/.dist/graphql/mutations/login.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/login.mutation.js +0 -20
- package/.dist/graphql/mutations/login.mutation.js.map +0 -1
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js +0 -18
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.js +0 -59
- package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.js +0 -64
- package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.js +0 -12
- package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.js.map +0 -1
- package/.dist/graphql/mutations/publishEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/publishEvent.mutation.js +0 -105
- package/.dist/graphql/mutations/publishEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/publishSeason.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/publishSeason.mutation.js +0 -82
- package/.dist/graphql/mutations/publishSeason.mutation.js.map +0 -1
- package/.dist/graphql/mutations/refundOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/refundOrder.mutation.js +0 -143
- package/.dist/graphql/mutations/refundOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/register.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/register.mutation.js +0 -40
- package/.dist/graphql/mutations/register.mutation.js.map +0 -1
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js +0 -18
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js.map +0 -1
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js +0 -37
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js.map +0 -1
- package/.dist/graphql/mutations/resetStripeConnection.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/resetStripeConnection.mutation.js +0 -10
- package/.dist/graphql/mutations/resetStripeConnection.mutation.js.map +0 -1
- package/.dist/graphql/mutations/resetUserPassword.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/resetUserPassword.mutation.js +0 -10
- package/.dist/graphql/mutations/resetUserPassword.mutation.js.map +0 -1
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js +0 -10
- package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js.map +0 -1
- package/.dist/graphql/mutations/salesReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/salesReport.mutation.js +0 -12
- package/.dist/graphql/mutations/salesReport.mutation.js.map +0 -1
- package/.dist/graphql/mutations/scanOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/scanOrder.mutation.js +0 -22
- package/.dist/graphql/mutations/scanOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.js +0 -10
- package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js +0 -10
- package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js +0 -12
- package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js +0 -10
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js +0 -12
- package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js.map +0 -1
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js +0 -12
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js.map +0 -1
- package/.dist/graphql/mutations/setUserPassword.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/setUserPassword.mutation.js +0 -12
- package/.dist/graphql/mutations/setUserPassword.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sharingTicket.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sharingTicket.mutation.js +0 -12
- package/.dist/graphql/mutations/sharingTicket.mutation.js.map +0 -1
- package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.js +0 -12
- package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateArtist.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateArtist.mutation.js +0 -41
- package/.dist/graphql/mutations/updateArtist.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js +0 -12
- package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateContact.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateContact.mutation.js +0 -17
- package/.dist/graphql/mutations/updateContact.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateEvent.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateEvent.mutation.js +0 -102
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js +0 -29
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateFee.mutation.js +0 -27
- package/.dist/graphql/mutations/updateFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateGuestOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateGuestOrder.mutation.js +0 -13
- package/.dist/graphql/mutations/updateGuestOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrder.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrder.mutation.js +0 -13
- package/.dist/graphql/mutations/updateOrder.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.js +0 -10
- package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrganistion.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrganistion.mutation.js +0 -12
- package/.dist/graphql/mutations/updateOrganistion.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrganization.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrganization.mutation.js +0 -20
- package/.dist/graphql/mutations/updateOrganization.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js +0 -28
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updatePlatformFee.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js +0 -28
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateSeason.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateSeason.mutation.js +0 -82
- package/.dist/graphql/mutations/updateSeason.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserEmail.mutation.js +0 -24
- package/.dist/graphql/mutations/updateUserEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserInfo.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserInfo.mutation.js +0 -16
- package/.dist/graphql/mutations/updateUserInfo.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js +0 -24
- package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.js +0 -14
- package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.js.map +0 -1
- package/.dist/graphql/mutations/updateVenue.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/updateVenue.mutation.js +0 -33
- package/.dist/graphql/mutations/updateVenue.mutation.js.map +0 -1
- package/.dist/graphql/mutations/uploadFiles.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/uploadFiles.mutation.js +0 -15
- package/.dist/graphql/mutations/uploadFiles.mutation.js.map +0 -1
- package/.dist/graphql/mutations/verifyUserEmail.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/verifyUserEmail.mutation.js +0 -12
- package/.dist/graphql/mutations/verifyUserEmail.mutation.js.map +0 -1
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js +0 -19
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js.map +0 -1
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js +0 -12
- package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js.map +0 -1
- package/.dist/graphql/mutations/waitListReport.mutation.d.ts +0 -2
- package/.dist/graphql/mutations/waitListReport.mutation.js +0 -12
- package/.dist/graphql/mutations/waitListReport.mutation.js.map +0 -1
- package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.d.ts +0 -2
- package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js +0 -11
- package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js.map +0 -1
- package/.dist/graphql/queries/analytics.query.d.ts +0 -2
- package/.dist/graphql/queries/analytics.query.js +0 -27
- package/.dist/graphql/queries/analytics.query.js.map +0 -1
- package/.dist/graphql/queries/artist.query.d.ts +0 -2
- package/.dist/graphql/queries/artist.query.js +0 -41
- package/.dist/graphql/queries/artist.query.js.map +0 -1
- package/.dist/graphql/queries/artists.query.d.ts +0 -2
- package/.dist/graphql/queries/artists.query.js +0 -41
- package/.dist/graphql/queries/artists.query.js.map +0 -1
- package/.dist/graphql/queries/context.query.d.ts +0 -2
- package/.dist/graphql/queries/context.query.js +0 -43
- package/.dist/graphql/queries/context.query.js.map +0 -1
- package/.dist/graphql/queries/customerOrders.query.d.ts +0 -2
- package/.dist/graphql/queries/customerOrders.query.js +0 -48
- package/.dist/graphql/queries/customerOrders.query.js.map +0 -1
- package/.dist/graphql/queries/customerProfile.query.d.ts +0 -2
- package/.dist/graphql/queries/customerProfile.query.js +0 -57
- package/.dist/graphql/queries/customerProfile.query.js.map +0 -1
- package/.dist/graphql/queries/discountCodeVerify.query.d.ts +0 -2
- package/.dist/graphql/queries/discountCodeVerify.query.js +0 -22
- package/.dist/graphql/queries/discountCodeVerify.query.js.map +0 -1
- package/.dist/graphql/queries/event.query.d.ts +0 -2
- package/.dist/graphql/queries/event.query.js +0 -102
- package/.dist/graphql/queries/event.query.js.map +0 -1
- package/.dist/graphql/queries/eventCalenderOrganizations.query.d.ts +0 -2
- package/.dist/graphql/queries/eventCalenderOrganizations.query.js +0 -17
- package/.dist/graphql/queries/eventCalenderOrganizations.query.js.map +0 -1
- package/.dist/graphql/queries/eventFees.query.d.ts +0 -2
- package/.dist/graphql/queries/eventFees.query.js +0 -28
- package/.dist/graphql/queries/eventFees.query.js.map +0 -1
- package/.dist/graphql/queries/events.query.d.ts +0 -2
- package/.dist/graphql/queries/events.query.js +0 -94
- package/.dist/graphql/queries/events.query.js.map +0 -1
- package/.dist/graphql/queries/eventsAdminCalender.query.d.ts +0 -2
- package/.dist/graphql/queries/eventsAdminCalender.query.js +0 -66
- package/.dist/graphql/queries/eventsAdminCalender.query.js.map +0 -1
- package/.dist/graphql/queries/eventsListOptimized.query.d.ts +0 -2
- package/.dist/graphql/queries/eventsListOptimized.query.js +0 -62
- package/.dist/graphql/queries/eventsListOptimized.query.js.map +0 -1
- package/.dist/graphql/queries/fee.query.d.ts +0 -2
- package/.dist/graphql/queries/fee.query.js +0 -28
- package/.dist/graphql/queries/fee.query.js.map +0 -1
- package/.dist/graphql/queries/fees.query.d.ts +0 -2
- package/.dist/graphql/queries/fees.query.js +0 -28
- package/.dist/graphql/queries/fees.query.js.map +0 -1
- package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.d.ts +0 -2
- package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js +0 -31
- package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js.map +0 -1
- package/.dist/graphql/queries/getTicketSharing.query.d.ts +0 -2
- package/.dist/graphql/queries/getTicketSharing.query.js +0 -13
- package/.dist/graphql/queries/getTicketSharing.query.js.map +0 -1
- package/.dist/graphql/queries/isDeletebleOrganization.d.ts +0 -2
- package/.dist/graphql/queries/isDeletebleOrganization.js +0 -10
- package/.dist/graphql/queries/isDeletebleOrganization.js.map +0 -1
- package/.dist/graphql/queries/isSuperUser.query.d.ts +0 -2
- package/.dist/graphql/queries/isSuperUser.query.js +0 -10
- package/.dist/graphql/queries/isSuperUser.query.js.map +0 -1
- package/.dist/graphql/queries/listStripeTerminalReaders.query.d.ts +0 -2
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js +0 -18
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js.map +0 -1
- package/.dist/graphql/queries/notifiyEvent.d.ts +0 -2
- package/.dist/graphql/queries/notifiyEvent.js +0 -13
- package/.dist/graphql/queries/notifiyEvent.js.map +0 -1
- package/.dist/graphql/queries/order.query.d.ts +0 -2
- package/.dist/graphql/queries/order.query.js +0 -222
- package/.dist/graphql/queries/order.query.js.map +0 -1
- package/.dist/graphql/queries/orders.query.d.ts +0 -2
- package/.dist/graphql/queries/orders.query.js +0 -153
- package/.dist/graphql/queries/orders.query.js.map +0 -1
- package/.dist/graphql/queries/ordersTableOptimized.query.d.ts +0 -2
- package/.dist/graphql/queries/ordersTableOptimized.query.js +0 -81
- package/.dist/graphql/queries/ordersTableOptimized.query.js.map +0 -1
- package/.dist/graphql/queries/organizationFees.query.d.ts +0 -2
- package/.dist/graphql/queries/organizationFees.query.js +0 -29
- package/.dist/graphql/queries/organizationFees.query.js.map +0 -1
- package/.dist/graphql/queries/organizations.query.d.ts +0 -2
- package/.dist/graphql/queries/organizations.query.js +0 -51
- package/.dist/graphql/queries/organizations.query.js.map +0 -1
- package/.dist/graphql/queries/platformFees.query.d.ts +0 -2
- package/.dist/graphql/queries/platformFees.query.js +0 -29
- package/.dist/graphql/queries/platformFees.query.js.map +0 -1
- package/.dist/graphql/queries/platformSettings.query.d.ts +0 -2
- package/.dist/graphql/queries/platformSettings.query.js +0 -14
- package/.dist/graphql/queries/platformSettings.query.js.map +0 -1
- package/.dist/graphql/queries/profile.query.d.ts +0 -2
- package/.dist/graphql/queries/profile.query.js +0 -100
- package/.dist/graphql/queries/profile.query.js.map +0 -1
- package/.dist/graphql/queries/profiles.query.d.ts +0 -2
- package/.dist/graphql/queries/profiles.query.js +0 -30
- package/.dist/graphql/queries/profiles.query.js.map +0 -1
- package/.dist/graphql/queries/promoCodeVerify.query.d.ts +0 -2
- package/.dist/graphql/queries/promoCodeVerify.query.js +0 -60
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +0 -1
- package/.dist/graphql/queries/publicEvent.query.d.ts +0 -2
- package/.dist/graphql/queries/publicEvent.query.js +0 -83
- package/.dist/graphql/queries/publicEvent.query.js.map +0 -1
- package/.dist/graphql/queries/publicSeason.query.d.ts +0 -2
- package/.dist/graphql/queries/publicSeason.query.js +0 -87
- package/.dist/graphql/queries/publicSeason.query.js.map +0 -1
- package/.dist/graphql/queries/role.query.d.ts +0 -2
- package/.dist/graphql/queries/role.query.js +0 -29
- package/.dist/graphql/queries/role.query.js.map +0 -1
- package/.dist/graphql/queries/roles.query.d.ts +0 -2
- package/.dist/graphql/queries/roles.query.js +0 -29
- package/.dist/graphql/queries/roles.query.js.map +0 -1
- package/.dist/graphql/queries/season.query.d.ts +0 -2
- package/.dist/graphql/queries/season.query.js +0 -82
- package/.dist/graphql/queries/season.query.js.map +0 -1
- package/.dist/graphql/queries/seasonFees.query.d.ts +0 -2
- package/.dist/graphql/queries/seasonFees.query.js +0 -29
- package/.dist/graphql/queries/seasonFees.query.js.map +0 -1
- package/.dist/graphql/queries/seasons.query.d.ts +0 -2
- package/.dist/graphql/queries/seasons.query.js +0 -81
- package/.dist/graphql/queries/seasons.query.js.map +0 -1
- package/.dist/graphql/queries/seasonsDropdown.query.d.ts +0 -2
- package/.dist/graphql/queries/seasonsDropdown.query.js +0 -20
- package/.dist/graphql/queries/seasonsDropdown.query.js.map +0 -1
- package/.dist/graphql/queries/seating.query.d.ts +0 -2
- package/.dist/graphql/queries/seating.query.js +0 -17
- package/.dist/graphql/queries/seating.query.js.map +0 -1
- package/.dist/graphql/queries/seatingKeys.query.d.ts +0 -2
- package/.dist/graphql/queries/seatingKeys.query.js +0 -12
- package/.dist/graphql/queries/seatingKeys.query.js.map +0 -1
- package/.dist/graphql/queries/stripeCardDetail.query.d.ts +0 -2
- package/.dist/graphql/queries/stripeCardDetail.query.js +0 -19
- package/.dist/graphql/queries/stripeCardDetail.query.js.map +0 -1
- package/.dist/graphql/queries/superAdminAllCustomer.query.d.ts +0 -2
- package/.dist/graphql/queries/superAdminAllCustomer.query.js +0 -24
- package/.dist/graphql/queries/superAdminAllCustomer.query.js.map +0 -1
- package/.dist/graphql/queries/ticketRestriction.query.d.ts +0 -2
- package/.dist/graphql/queries/ticketRestriction.query.js +0 -18
- package/.dist/graphql/queries/ticketRestriction.query.js.map +0 -1
- package/.dist/graphql/queries/userExists.query.d.ts +0 -2
- package/.dist/graphql/queries/userExists.query.js +0 -34
- package/.dist/graphql/queries/userExists.query.js.map +0 -1
- package/.dist/graphql/queries/userProfile.query.d.ts +0 -2
- package/.dist/graphql/queries/userProfile.query.js +0 -31
- package/.dist/graphql/queries/userProfile.query.js.map +0 -1
- package/.dist/graphql/queries/userProfilesAdmin.query.d.ts +0 -2
- package/.dist/graphql/queries/userProfilesAdmin.query.js +0 -56
- package/.dist/graphql/queries/userProfilesAdmin.query.js.map +0 -1
- package/.dist/graphql/queries/userRoles.query.d.ts +0 -2
- package/.dist/graphql/queries/userRoles.query.js +0 -31
- package/.dist/graphql/queries/userRoles.query.js.map +0 -1
- package/.dist/graphql/queries/venue.query.d.ts +0 -2
- package/.dist/graphql/queries/venue.query.js +0 -34
- package/.dist/graphql/queries/venue.query.js.map +0 -1
- package/.dist/graphql/queries/venues.query.d.ts +0 -2
- package/.dist/graphql/queries/venues.query.js +0 -34
- package/.dist/graphql/queries/venues.query.js.map +0 -1
- package/.dist/graphql/queries/waitList.query.d.ts +0 -2
- package/.dist/graphql/queries/waitList.query.js +0 -104
- package/.dist/graphql/queries/waitList.query.js.map +0 -1
- package/.dist/graphql/queries/webFlowSites.query.d.ts +0 -2
- package/.dist/graphql/queries/webFlowSites.query.js +0 -21
- package/.dist/graphql/queries/webFlowSites.query.js.map +0 -1
- package/.dist/graphql/queries/webflow.query.d.ts +0 -2
- package/.dist/graphql/queries/webflow.query.js +0 -39
- package/.dist/graphql/queries/webflow.query.js.map +0 -1
- package/.dist/interfaces/IAddress.d.ts +0 -14
- package/.dist/interfaces/IAddress.js +0 -3
- package/.dist/interfaces/IAddress.js.map +0 -1
- package/.dist/interfaces/IAnalytics.d.ts +0 -86
- package/.dist/interfaces/IAnalytics.js +0 -130
- package/.dist/interfaces/IAnalytics.js.map +0 -1
- package/.dist/interfaces/IApiKey.d.ts +0 -8
- package/.dist/interfaces/IApiKey.js +0 -3
- package/.dist/interfaces/IApiKey.js.map +0 -1
- package/.dist/interfaces/IArtist.d.ts +0 -19
- package/.dist/interfaces/IArtist.js +0 -10
- package/.dist/interfaces/IArtist.js.map +0 -1
- package/.dist/interfaces/IArtistContact.d.ts +0 -8
- package/.dist/interfaces/IArtistContact.js +0 -3
- package/.dist/interfaces/IArtistContact.js.map +0 -1
- package/.dist/interfaces/IArtistPressKit.d.ts +0 -8
- package/.dist/interfaces/IArtistPressKit.js +0 -3
- package/.dist/interfaces/IArtistPressKit.js.map +0 -1
- package/.dist/interfaces/IBillingAddress.d.ts +0 -8
- package/.dist/interfaces/IBillingAddress.js +0 -3
- package/.dist/interfaces/IBillingAddress.js.map +0 -1
- package/.dist/interfaces/IContact.d.ts +0 -9
- package/.dist/interfaces/IContact.js +0 -3
- package/.dist/interfaces/IContact.js.map +0 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +0 -64
- package/.dist/interfaces/ICreateOrderParams.js +0 -3
- package/.dist/interfaces/ICreateOrderParams.js.map +0 -1
- package/.dist/interfaces/IEmailHolders.d.ts +0 -4
- package/.dist/interfaces/IEmailHolders.js +0 -3
- package/.dist/interfaces/IEmailHolders.js.map +0 -1
- package/.dist/interfaces/IEmailTicketHolder.d.ts +0 -10
- package/.dist/interfaces/IEmailTicketHolder.js +0 -3
- package/.dist/interfaces/IEmailTicketHolder.js.map +0 -1
- package/.dist/interfaces/IEvent.d.ts +0 -116
- package/.dist/interfaces/IEvent.js +0 -63
- package/.dist/interfaces/IEvent.js.map +0 -1
- package/.dist/interfaces/IEventCustomField.d.ts +0 -13
- package/.dist/interfaces/IEventCustomField.js +0 -3
- package/.dist/interfaces/IEventCustomField.js.map +0 -1
- package/.dist/interfaces/IEventPosterUrl.d.ts +0 -5
- package/.dist/interfaces/IEventPosterUrl.js +0 -3
- package/.dist/interfaces/IEventPosterUrl.js.map +0 -1
- package/.dist/interfaces/IEventPromotion.d.ts +0 -33
- package/.dist/interfaces/IEventPromotion.js +0 -22
- package/.dist/interfaces/IEventPromotion.js.map +0 -1
- package/.dist/interfaces/IEventQuery.d.ts +0 -26
- package/.dist/interfaces/IEventQuery.js +0 -15
- package/.dist/interfaces/IEventQuery.js.map +0 -1
- package/.dist/interfaces/IEventSchedule.d.ts +0 -7
- package/.dist/interfaces/IEventSchedule.js +0 -3
- package/.dist/interfaces/IEventSchedule.js.map +0 -1
- package/.dist/interfaces/IEventUpgrade.d.ts +0 -22
- package/.dist/interfaces/IEventUpgrade.js +0 -10
- package/.dist/interfaces/IEventUpgrade.js.map +0 -1
- package/.dist/interfaces/IFee.d.ts +0 -52
- package/.dist/interfaces/IFee.js +0 -39
- package/.dist/interfaces/IFee.js.map +0 -1
- package/.dist/interfaces/IFile.d.ts +0 -7
- package/.dist/interfaces/IFile.js +0 -3
- package/.dist/interfaces/IFile.js.map +0 -1
- package/.dist/interfaces/IOrder.d.ts +0 -83
- package/.dist/interfaces/IOrder.js +0 -6
- package/.dist/interfaces/IOrder.js.map +0 -1
- package/.dist/interfaces/IOrderCustomField.d.ts +0 -8
- package/.dist/interfaces/IOrderCustomField.js +0 -4
- package/.dist/interfaces/IOrderCustomField.js.map +0 -1
- package/.dist/interfaces/IOrderIntegration.d.ts +0 -5
- package/.dist/interfaces/IOrderIntegration.js +0 -3
- package/.dist/interfaces/IOrderIntegration.js.map +0 -1
- package/.dist/interfaces/IOrderIntegrationResponse.d.ts +0 -9
- package/.dist/interfaces/IOrderIntegrationResponse.js +0 -3
- package/.dist/interfaces/IOrderIntegrationResponse.js.map +0 -1
- package/.dist/interfaces/IOrderQuery.d.ts +0 -18
- package/.dist/interfaces/IOrderQuery.js +0 -3
- package/.dist/interfaces/IOrderQuery.js.map +0 -1
- package/.dist/interfaces/IOrderShareEnum.d.ts +0 -13
- package/.dist/interfaces/IOrderShareEnum.js +0 -3
- package/.dist/interfaces/IOrderShareEnum.js.map +0 -1
- package/.dist/interfaces/IOrderShareTimestamp.d.ts +0 -6
- package/.dist/interfaces/IOrderShareTimestamp.js +0 -3
- package/.dist/interfaces/IOrderShareTimestamp.js.map +0 -1
- package/.dist/interfaces/IOrderState.d.ts +0 -22
- package/.dist/interfaces/IOrderState.js +0 -34
- package/.dist/interfaces/IOrderState.js.map +0 -1
- package/.dist/interfaces/IOrderSummary.d.ts +0 -43
- package/.dist/interfaces/IOrderSummary.js +0 -3
- package/.dist/interfaces/IOrderSummary.js.map +0 -1
- package/.dist/interfaces/IOrderTicket.d.ts +0 -27
- package/.dist/interfaces/IOrderTicket.js +0 -3
- package/.dist/interfaces/IOrderTicket.js.map +0 -1
- package/.dist/interfaces/IOrderType.d.ts +0 -7
- package/.dist/interfaces/IOrderType.js +0 -13
- package/.dist/interfaces/IOrderType.js.map +0 -1
- package/.dist/interfaces/IOrderUpgrade.d.ts +0 -17
- package/.dist/interfaces/IOrderUpgrade.js +0 -3
- package/.dist/interfaces/IOrderUpgrade.js.map +0 -1
- package/.dist/interfaces/IOrganization.d.ts +0 -34
- package/.dist/interfaces/IOrganization.js +0 -9
- package/.dist/interfaces/IOrganization.js.map +0 -1
- package/.dist/interfaces/IPagination.d.ts +0 -19
- package/.dist/interfaces/IPagination.js +0 -19
- package/.dist/interfaces/IPagination.js.map +0 -1
- package/.dist/interfaces/IPayment.d.ts +0 -19
- package/.dist/interfaces/IPayment.js +0 -3
- package/.dist/interfaces/IPayment.js.map +0 -1
- package/.dist/interfaces/IPerformance.d.ts +0 -19
- package/.dist/interfaces/IPerformance.js +0 -3
- package/.dist/interfaces/IPerformance.js.map +0 -1
- package/.dist/interfaces/IProcessingFees.d.ts +0 -5
- package/.dist/interfaces/IProcessingFees.js +0 -4
- package/.dist/interfaces/IProcessingFees.js.map +0 -1
- package/.dist/interfaces/IQuery.d.ts +0 -15
- package/.dist/interfaces/IQuery.js +0 -21
- package/.dist/interfaces/IQuery.js.map +0 -1
- package/.dist/interfaces/IRefund.d.ts +0 -7
- package/.dist/interfaces/IRefund.js +0 -3
- package/.dist/interfaces/IRefund.js.map +0 -1
- package/.dist/interfaces/IRefundModal.d.ts +0 -9
- package/.dist/interfaces/IRefundModal.js +0 -3
- package/.dist/interfaces/IRefundModal.js.map +0 -1
- package/.dist/interfaces/IRole.d.ts +0 -26
- package/.dist/interfaces/IRole.js +0 -29
- package/.dist/interfaces/IRole.js.map +0 -1
- package/.dist/interfaces/ISalesReport.d.ts +0 -15
- package/.dist/interfaces/ISalesReport.js +0 -9
- package/.dist/interfaces/ISalesReport.js.map +0 -1
- package/.dist/interfaces/IScan.d.ts +0 -7
- package/.dist/interfaces/IScan.js +0 -3
- package/.dist/interfaces/IScan.js.map +0 -1
- package/.dist/interfaces/ISearchDropdownItem.d.ts +0 -4
- package/.dist/interfaces/ISearchDropdownItem.js +0 -3
- package/.dist/interfaces/ISearchDropdownItem.js.map +0 -1
- package/.dist/interfaces/ISeason.d.ts +0 -81
- package/.dist/interfaces/ISeason.js +0 -34
- package/.dist/interfaces/ISeason.js.map +0 -1
- package/.dist/interfaces/ISeasonCustomField.d.ts +0 -13
- package/.dist/interfaces/ISeasonCustomField.js +0 -3
- package/.dist/interfaces/ISeasonCustomField.js.map +0 -1
- package/.dist/interfaces/ISeasonPosterUrl.d.ts +0 -5
- package/.dist/interfaces/ISeasonPosterUrl.js +0 -3
- package/.dist/interfaces/ISeasonPosterUrl.js.map +0 -1
- package/.dist/interfaces/ISeasonQuery.d.ts +0 -23
- package/.dist/interfaces/ISeasonQuery.js +0 -15
- package/.dist/interfaces/ISeasonQuery.js.map +0 -1
- package/.dist/interfaces/ISeasonUpgrade.d.ts +0 -16
- package/.dist/interfaces/ISeasonUpgrade.js +0 -3
- package/.dist/interfaces/ISeasonUpgrade.js.map +0 -1
- package/.dist/interfaces/ISeating.d.ts +0 -9
- package/.dist/interfaces/ISeating.js +0 -3
- package/.dist/interfaces/ISeating.js.map +0 -1
- package/.dist/interfaces/ISocialAccountLink.d.ts +0 -13
- package/.dist/interfaces/ISocialAccountLink.js +0 -14
- package/.dist/interfaces/ISocialAccountLink.js.map +0 -1
- package/.dist/interfaces/IStripeCustomer.d.ts +0 -6
- package/.dist/interfaces/IStripeCustomer.js +0 -3
- package/.dist/interfaces/IStripeCustomer.js.map +0 -1
- package/.dist/interfaces/IStripePaymentMethod.d.ts +0 -10
- package/.dist/interfaces/IStripePaymentMethod.js +0 -3
- package/.dist/interfaces/IStripePaymentMethod.js.map +0 -1
- package/.dist/interfaces/IStripeTerminalReader.d.ts +0 -9
- package/.dist/interfaces/IStripeTerminalReader.js +0 -3
- package/.dist/interfaces/IStripeTerminalReader.js.map +0 -1
- package/.dist/interfaces/ITask.d.ts +0 -30
- package/.dist/interfaces/ITask.js +0 -16
- package/.dist/interfaces/ITask.js.map +0 -1
- package/.dist/interfaces/ITeiMemberInfo.d.ts +0 -6
- package/.dist/interfaces/ITeiMemberInfo.js +0 -3
- package/.dist/interfaces/ITeiMemberInfo.js.map +0 -1
- package/.dist/interfaces/ITicketExchange.d.ts +0 -10
- package/.dist/interfaces/ITicketExchange.js +0 -11
- package/.dist/interfaces/ITicketExchange.js.map +0 -1
- package/.dist/interfaces/ITicketHold.d.ts +0 -12
- package/.dist/interfaces/ITicketHold.js +0 -3
- package/.dist/interfaces/ITicketHold.js.map +0 -1
- package/.dist/interfaces/ITicketTier.d.ts +0 -10
- package/.dist/interfaces/ITicketTier.js +0 -3
- package/.dist/interfaces/ITicketTier.js.map +0 -1
- package/.dist/interfaces/ITicketType.d.ts +0 -25
- package/.dist/interfaces/ITicketType.js +0 -3
- package/.dist/interfaces/ITicketType.js.map +0 -1
- package/.dist/interfaces/IUser.d.ts +0 -29
- package/.dist/interfaces/IUser.js +0 -10
- package/.dist/interfaces/IUser.js.map +0 -1
- package/.dist/interfaces/IUserProfile.d.ts +0 -52
- package/.dist/interfaces/IUserProfile.js +0 -3
- package/.dist/interfaces/IUserProfile.js.map +0 -1
- package/.dist/interfaces/IVenue.d.ts +0 -13
- package/.dist/interfaces/IVenue.js +0 -3
- package/.dist/interfaces/IVenue.js.map +0 -1
- package/.dist/interfaces/IWebFlow.d.ts +0 -50
- package/.dist/interfaces/IWebFlow.js +0 -11
- package/.dist/interfaces/IWebFlow.js.map +0 -1
- package/.dist/schemas/Address.d.ts +0 -63
- package/.dist/schemas/Address.js +0 -65
- package/.dist/schemas/Address.js.map +0 -1
- package/.dist/schemas/Artist.d.ts +0 -107
- package/.dist/schemas/Artist.js +0 -120
- package/.dist/schemas/Artist.js.map +0 -1
- package/.dist/schemas/Event.d.ts +0 -814
- package/.dist/schemas/Event.js +0 -647
- package/.dist/schemas/Event.js.map +0 -1
- package/.dist/schemas/Fee.d.ts +0 -88
- package/.dist/schemas/Fee.js +0 -93
- package/.dist/schemas/Fee.js.map +0 -1
- package/.dist/schemas/Metrics.d.ts +0 -136
- package/.dist/schemas/Metrics.js +0 -142
- package/.dist/schemas/Metrics.js.map +0 -1
- package/.dist/schemas/Order.d.ts +0 -787
- package/.dist/schemas/Order.js +0 -664
- package/.dist/schemas/Order.js.map +0 -1
- package/.dist/schemas/Organization.d.ts +0 -193
- package/.dist/schemas/Organization.js +0 -132
- package/.dist/schemas/Organization.js.map +0 -1
- package/.dist/schemas/Role.d.ts +0 -36
- package/.dist/schemas/Role.js +0 -42
- package/.dist/schemas/Role.js.map +0 -1
- package/.dist/schemas/Season.d.ts +0 -703
- package/.dist/schemas/Season.js +0 -521
- package/.dist/schemas/Season.js.map +0 -1
- package/.dist/schemas/Seating.d.ts +0 -33
- package/.dist/schemas/Seating.js +0 -39
- package/.dist/schemas/Seating.js.map +0 -1
- package/.dist/schemas/User.d.ts +0 -113
- package/.dist/schemas/User.js +0 -119
- package/.dist/schemas/User.js.map +0 -1
- package/.dist/schemas/UserProfile.d.ts +0 -179
- package/.dist/schemas/UserProfile.js +0 -126
- package/.dist/schemas/UserProfile.js.map +0 -1
- package/.dist/schemas/Venue.d.ts +0 -108
- package/.dist/schemas/Venue.js +0 -56
- package/.dist/schemas/Venue.js.map +0 -1
- package/.dist/schemas/WebFlow.d.ts +0 -121
- package/.dist/schemas/WebFlow.js +0 -133
- package/.dist/schemas/WebFlow.js.map +0 -1
- package/.dist/sellout-proto.js +0 -179792
- package/.dist/utils/AnalyticsUtil.d.ts +0 -41
- package/.dist/utils/AnalyticsUtil.js +0 -767
- package/.dist/utils/AnalyticsUtil.js.map +0 -1
- package/.dist/utils/EventUtil.d.ts +0 -116
- package/.dist/utils/EventUtil.js +0 -908
- package/.dist/utils/EventUtil.js.map +0 -1
- package/.dist/utils/FeeUtil.d.ts +0 -14
- package/.dist/utils/FeeUtil.js +0 -82
- package/.dist/utils/FeeUtil.js.map +0 -1
- package/.dist/utils/OrderUtil.d.ts +0 -53
- package/.dist/utils/OrderUtil.js +0 -408
- package/.dist/utils/OrderUtil.js.map +0 -1
- package/.dist/utils/PaymentUtil.d.ts +0 -35
- package/.dist/utils/PaymentUtil.js +0 -564
- package/.dist/utils/PaymentUtil.js.map +0 -1
- package/.dist/utils/SaveLogsToFile.d.ts +0 -2
- package/.dist/utils/SaveLogsToFile.js +0 -47
- package/.dist/utils/SaveLogsToFile.js.map +0 -1
- package/.dist/utils/SeasonUtil.d.ts +0 -73
- package/.dist/utils/SeasonUtil.js +0 -472
- package/.dist/utils/SeasonUtil.js.map +0 -1
- package/.dist/utils/TierUtil.d.ts +0 -11
- package/.dist/utils/TierUtil.js +0 -92
- package/.dist/utils/TierUtil.js.map +0 -1
- package/.dist/utils/WebFlowUtil.d.ts +0 -7
- package/.dist/utils/WebFlowUtil.js +0 -10
- package/.dist/utils/WebFlowUtil.js.map +0 -1
- package/src/enums/ContactsScreenEnum.ts +0 -5
- package/src/enums/CustomFieldTypeEnum.ts +0 -6
- package/src/enums/DefaultArtistImageUrls.ts +0 -5
- package/src/enums/DefaultEventImageUrls.ts +0 -4
- package/src/enums/DefaultVenueImageUrls.ts +0 -3
- package/src/enums/DropDownEnum.ts +0 -3
- package/src/enums/EPurchasePortalModes.ts +0 -8
- package/src/enums/EPurchasePortalStatus.ts +0 -4
- package/src/enums/OrderChannelEnum.ts +0 -4
- package/src/enums/OrderItemTypeEnum.ts +0 -4
- package/src/enums/OrderShareTimestamp.ts +0 -7
- package/src/enums/PaymentMethodTypeEnum.ts +0 -7
- package/src/enums/TierStatusEnum.ts +0 -5
- package/src/graphql/fragments/event.fragment.ts +0 -372
- package/src/graphql/fragments/order.fragment.ts +0 -109
- package/src/graphql/fragments/season.fragment.ts +0 -365
- package/src/graphql/links/debounceLink.ts +0 -3
- package/src/graphql/mutations/acceptRole.mutation.ts +0 -17
- package/src/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.ts +0 -9
- package/src/graphql/mutations/attachStripePaymentMethod.mutation.ts +0 -18
- package/src/graphql/mutations/batchPrintBreakApartOrder.mutation.ts +0 -56
- package/src/graphql/mutations/breakApartOrder.ts +0 -43
- package/src/graphql/mutations/breakApartSeasonOrder.ts +0 -51
- package/src/graphql/mutations/cancelOrder.mutation.ts +0 -11
- package/src/graphql/mutations/cancelTickets.mutation.ts +0 -19
- package/src/graphql/mutations/connectStripe.mutation.ts +0 -9
- package/src/graphql/mutations/createArtist.mutation.ts +0 -40
- package/src/graphql/mutations/createContacts.mutation.ts +0 -9
- package/src/graphql/mutations/createEvent.mutation.ts +0 -89
- package/src/graphql/mutations/createEventOrSeasonFee.mutation.ts +0 -38
- package/src/graphql/mutations/createFee.mutation.ts +0 -27
- package/src/graphql/mutations/createOrder.mutation.ts +0 -55
- package/src/graphql/mutations/createOrderPaymentIntent.mutation.ts +0 -12
- package/src/graphql/mutations/createOrganisation.mutation.ts +0 -11
- package/src/graphql/mutations/createOrganizationFee.mutation.ts +0 -28
- package/src/graphql/mutations/createPlatformFee.mutation.ts +0 -28
- package/src/graphql/mutations/createRole.mutation.ts +0 -15
- package/src/graphql/mutations/createSeason.mutation.ts +0 -78
- package/src/graphql/mutations/createSeasonOrder.mutation.ts +0 -61
- package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +0 -14
- package/src/graphql/mutations/createStripeSetupIntent.mutation.ts +0 -9
- package/src/graphql/mutations/createStripeTerminalConnectionToken.mutation.ts +0 -9
- package/src/graphql/mutations/createVenue.mutation.ts +0 -33
- package/src/graphql/mutations/createWaitList.mutation.ts +0 -11
- package/src/graphql/mutations/createWebFlowSite.mutation.ts +0 -39
- package/src/graphql/mutations/deleteEvent.mutation.ts +0 -21
- package/src/graphql/mutations/deleteEventOrSeasonFee.mutation.ts +0 -10
- package/src/graphql/mutations/deleteFee.mutation.ts +0 -10
- package/src/graphql/mutations/deleteOrganizationFee.mutation.ts +0 -10
- package/src/graphql/mutations/deletePlatformFee.mutation.ts +0 -10
- package/src/graphql/mutations/deleteRole.mutation.ts +0 -10
- package/src/graphql/mutations/deleteSecondaryEmail.mutation.ts +0 -17
- package/src/graphql/mutations/deleteStripeTerminalReader.mutation.ts +0 -9
- package/src/graphql/mutations/deleteSubscription.mutation.ts +0 -12
- package/src/graphql/mutations/deleteSuperAdminOrg.mutation.ts +0 -9
- package/src/graphql/mutations/deleteTicketHold.mutation.ts +0 -12
- package/src/graphql/mutations/deleteUnverifiedUser.mutation.ts +0 -10
- package/src/graphql/mutations/duplicateEvent.mutation.ts +0 -86
- package/src/graphql/mutations/eventEmailTemplate.mutation.ts +0 -9
- package/src/graphql/mutations/forgotPassword.mutation.ts +0 -9
- package/src/graphql/mutations/generateActivityReport.mutation.ts +0 -14
- package/src/graphql/mutations/generateEventQRCode.mutation.ts +0 -9
- package/src/graphql/mutations/generateOrderReport.mutation.ts +0 -12
- package/src/graphql/mutations/generateUserProfileReport.mutation.ts +0 -13
- package/src/graphql/mutations/holdTicket.mutation.ts +0 -11
- package/src/graphql/mutations/login.mutation.ts +0 -19
- package/src/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.ts +0 -17
- package/src/graphql/mutations/multipleBreakApartOrder.mutation.ts +0 -56
- package/src/graphql/mutations/multipleBreakApartSeasonOrder.mutation.ts +0 -61
- package/src/graphql/mutations/orderIntegrationUpdate.mutation.ts +0 -10
- package/src/graphql/mutations/publishEvent.mutation.ts +0 -101
- package/src/graphql/mutations/publishSeason.mutation.ts +0 -78
- package/src/graphql/mutations/refundOrder.mutation.ts +0 -139
- package/src/graphql/mutations/register.mutation.ts +0 -39
- package/src/graphql/mutations/registerStripeTerminalReader.mutation.ts +0 -17
- package/src/graphql/mutations/remapWebFlowSite.mutation.ts +0 -36
- package/src/graphql/mutations/resetStripeConnection.mutation.ts +0 -9
- package/src/graphql/mutations/resetUserPassword.mutation.ts +0 -9
- package/src/graphql/mutations/resetUserPasswordInApp.mutation.ts +0 -9
- package/src/graphql/mutations/salesReport.mutation.ts +0 -10
- package/src/graphql/mutations/scanOrder.mutation.ts +0 -21
- package/src/graphql/mutations/sendOrderReceiptEmail.mutation.ts +0 -9
- package/src/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.ts +0 -9
- package/src/graphql/mutations/sendUserEmailVerification.mutation.ts +0 -11
- package/src/graphql/mutations/sendUserPhoneAuthentication.mutation.ts +0 -10
- package/src/graphql/mutations/sendUserPhoneVerification.mutation.ts +0 -11
- package/src/graphql/mutations/setUserOrgContextId.mutation.ts +0 -11
- package/src/graphql/mutations/setUserPassword.mutation.ts +0 -11
- package/src/graphql/mutations/sharingTicket.mutation.ts +0 -11
- package/src/graphql/mutations/sharingTicketStatusChange.mutation.ts +0 -11
- package/src/graphql/mutations/updateArtist.mutation.ts +0 -40
- package/src/graphql/mutations/updateBasicUserInfo.mutation.ts +0 -11
- package/src/graphql/mutations/updateContact.mutation.ts +0 -16
- package/src/graphql/mutations/updateEvent.mutation.ts +0 -98
- package/src/graphql/mutations/updateEventOrSeasonFee.mutation.ts +0 -28
- package/src/graphql/mutations/updateFee.mutation.ts +0 -25
- package/src/graphql/mutations/updateGuestOrder.mutation.ts +0 -11
- package/src/graphql/mutations/updateOrder.mutation.ts +0 -11
- package/src/graphql/mutations/updateOrgEmailWebhook.mutation.ts +0 -9
- package/src/graphql/mutations/updateOrganistion.mutation.ts +0 -10
- package/src/graphql/mutations/updateOrganization.mutation.ts +0 -19
- package/src/graphql/mutations/updateOrganizationFee.mutation.ts +0 -27
- package/src/graphql/mutations/updatePlatformFee.mutation.ts +0 -27
- package/src/graphql/mutations/updateSeason.mutation.ts +0 -78
- package/src/graphql/mutations/updateUserEmail.mutation.ts +0 -23
- package/src/graphql/mutations/updateUserInfo.mutation.ts +0 -15
- package/src/graphql/mutations/updateUserPhoneNumber.mutation.ts +0 -23
- package/src/graphql/mutations/updateUserPreferredLogIn.mutation.ts +0 -13
- package/src/graphql/mutations/updateVenue.mutation.ts +0 -32
- package/src/graphql/mutations/uploadFiles.mutation.ts +0 -14
- package/src/graphql/mutations/verifyUserEmail.mutation.ts +0 -11
- package/src/graphql/mutations/verifyUserPhoneAuthentication.mutation.ts +0 -18
- package/src/graphql/mutations/verifyUserPhoneNumber.mutation.ts +0 -11
- package/src/graphql/mutations/waitListReport.mutation.ts +0 -11
- package/src/graphql/queries/DuplicateUrlStubUniqueness.query.ts +0 -10
- package/src/graphql/queries/analytics.query.ts +0 -26
- package/src/graphql/queries/artist.query.ts +0 -40
- package/src/graphql/queries/artists.query.ts +0 -41
- package/src/graphql/queries/context.query.ts +0 -42
- package/src/graphql/queries/customerOrders.query.ts +0 -44
- package/src/graphql/queries/customerProfile.query.ts +0 -56
- package/src/graphql/queries/discountCodeVerify.query.ts +0 -21
- package/src/graphql/queries/event.query.ts +0 -98
- package/src/graphql/queries/eventCalenderOrganizations.query.ts +0 -16
- package/src/graphql/queries/eventFees.query.ts +0 -27
- package/src/graphql/queries/events.query.ts +0 -90
- package/src/graphql/queries/eventsAdminCalender.query.ts +0 -62
- package/src/graphql/queries/eventsListOptimized.query.ts +0 -58
- package/src/graphql/queries/fee.query.ts +0 -27
- package/src/graphql/queries/fees.query.ts +0 -27
- package/src/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.ts +0 -30
- package/src/graphql/queries/getTicketSharing.query.ts +0 -12
- package/src/graphql/queries/isDeletebleOrganization.ts +0 -9
- package/src/graphql/queries/isSuperUser.query.ts +0 -9
- package/src/graphql/queries/listStripeTerminalReaders.query.ts +0 -17
- package/src/graphql/queries/notifiyEvent.ts +0 -10
- package/src/graphql/queries/order.query.ts +0 -218
- package/src/graphql/queries/orders.query.ts +0 -149
- package/src/graphql/queries/ordersTableOptimized.query.ts +0 -80
- package/src/graphql/queries/organizationFees.query.ts +0 -28
- package/src/graphql/queries/organizations.query.ts +0 -50
- package/src/graphql/queries/platformFees.query.ts +0 -28
- package/src/graphql/queries/platformSettings.query.ts +0 -13
- package/src/graphql/queries/profile.query.ts +0 -99
- package/src/graphql/queries/profiles.query.ts +0 -29
- package/src/graphql/queries/promoCodeVerify.query.ts +0 -59
- package/src/graphql/queries/publicEvent.query.ts +0 -79
- package/src/graphql/queries/publicSeason.query.ts +0 -83
- package/src/graphql/queries/role.query.ts +0 -28
- package/src/graphql/queries/roles.query.ts +0 -28
- package/src/graphql/queries/season.query.ts +0 -78
- package/src/graphql/queries/seasonFees.query.ts +0 -28
- package/src/graphql/queries/seasons.query.ts +0 -77
- package/src/graphql/queries/seasonsDropdown.query.ts +0 -19
- package/src/graphql/queries/seating.query.ts +0 -16
- package/src/graphql/queries/seatingKeys.query.ts +0 -11
- package/src/graphql/queries/stripeCardDetail.query.ts +0 -18
- package/src/graphql/queries/superAdminAllCustomer.query.ts +0 -23
- package/src/graphql/queries/ticketRestriction.query.ts +0 -17
- package/src/graphql/queries/userExists.query.ts +0 -33
- package/src/graphql/queries/userProfile.query.ts +0 -30
- package/src/graphql/queries/userProfilesAdmin.query.ts +0 -55
- package/src/graphql/queries/userRoles.query.ts +0 -30
- package/src/graphql/queries/venue.query.ts +0 -33
- package/src/graphql/queries/venues.query.ts +0 -34
- package/src/graphql/queries/waitList.query.ts +0 -98
- package/src/graphql/queries/webFlowSites.query.ts +0 -20
- package/src/graphql/queries/webflow.query.ts +0 -38
- package/src/interfaces/IAddress.ts +0 -14
- package/src/interfaces/IAnalytics.ts +0 -156
- package/src/interfaces/IApiKey.ts +0 -8
- package/src/interfaces/IArtist.ts +0 -21
- package/src/interfaces/IArtistContact.ts +0 -8
- package/src/interfaces/IArtistPressKit.ts +0 -9
- package/src/interfaces/IBillingAddress.ts +0 -8
- package/src/interfaces/IContact.ts +0 -9
- package/src/interfaces/ICreateOrderParams.ts +0 -72
- package/src/interfaces/IEmailHolders.ts +0 -5
- package/src/interfaces/IEmailTicketHolder.ts +0 -10
- package/src/interfaces/IEvent.ts +0 -139
- package/src/interfaces/IEventCustomField.ts +0 -14
- package/src/interfaces/IEventPosterUrl.ts +0 -5
- package/src/interfaces/IEventPromotion.ts +0 -37
- package/src/interfaces/IEventQuery.ts +0 -28
- package/src/interfaces/IEventSchedule.ts +0 -7
- package/src/interfaces/IEventUpgrade.ts +0 -23
- package/src/interfaces/IFee.ts +0 -61
- package/src/interfaces/IFile.ts +0 -7
- package/src/interfaces/IOrder.ts +0 -91
- package/src/interfaces/IOrderCustomField.ts +0 -8
- package/src/interfaces/IOrderIntegration.ts +0 -5
- package/src/interfaces/IOrderIntegrationResponse.ts +0 -9
- package/src/interfaces/IOrderQuery.ts +0 -18
- package/src/interfaces/IOrderShareEnum.ts +0 -13
- package/src/interfaces/IOrderShareTimestamp.ts +0 -6
- package/src/interfaces/IOrderState.ts +0 -25
- package/src/interfaces/IOrderSummary.ts +0 -45
- package/src/interfaces/IOrderTicket.ts +0 -27
- package/src/interfaces/IOrderType.ts +0 -7
- package/src/interfaces/IOrderUpgrade.ts +0 -18
- package/src/interfaces/IOrganization.ts +0 -35
- package/src/interfaces/IPagination.ts +0 -21
- package/src/interfaces/IPayment.ts +0 -19
- package/src/interfaces/IPerformance.ts +0 -20
- package/src/interfaces/IProcessingFees.ts +0 -6
- package/src/interfaces/IQuery.ts +0 -30
- package/src/interfaces/IRefund.ts +0 -7
- package/src/interfaces/IRefundModal.ts +0 -9
- package/src/interfaces/IRole.ts +0 -37
- package/src/interfaces/ISalesReport.ts +0 -18
- package/src/interfaces/IScan.ts +0 -7
- package/src/interfaces/ISearchDropdownItem.ts +0 -5
- package/src/interfaces/ISeason.ts +0 -92
- package/src/interfaces/ISeasonCustomField.ts +0 -14
- package/src/interfaces/ISeasonPosterUrl.ts +0 -5
- package/src/interfaces/ISeasonQuery.ts +0 -25
- package/src/interfaces/ISeasonUpgrade.ts +0 -16
- package/src/interfaces/ISeating.ts +0 -9
- package/src/interfaces/ISocialAccountLink.ts +0 -14
- package/src/interfaces/IStripeCustomer.ts +0 -7
- package/src/interfaces/IStripePaymentMethod.ts +0 -10
- package/src/interfaces/IStripeTerminalReader.ts +0 -9
- package/src/interfaces/ITask.ts +0 -33
- package/src/interfaces/ITeiMemberInfo.ts +0 -6
- package/src/interfaces/ITicketExchange.ts +0 -11
- package/src/interfaces/ITicketHold.ts +0 -12
- package/src/interfaces/ITicketTier.ts +0 -10
- package/src/interfaces/ITicketType.ts +0 -26
- package/src/interfaces/IUser.ts +0 -30
- package/src/interfaces/IUserProfile.ts +0 -62
- package/src/interfaces/IVenue.ts +0 -14
- package/src/interfaces/IWebFlow.ts +0 -55
- package/src/proto/email.proto +0 -450
- package/src/proto/event.proto +0 -826
- package/src/proto/order.proto +0 -901
- package/src/proto/plivo.proto +0 -31
- package/src/proto/season.proto +0 -212
- package/src/proto/stripe.proto +0 -436
- package/src/proto/task.proto +0 -82
- package/src/schemas/Artist.ts +0 -118
- package/src/schemas/Event.ts +0 -657
- package/src/schemas/Fee.ts +0 -88
- package/src/schemas/Order.ts +0 -668
- package/src/schemas/Organization.ts +0 -126
- package/src/schemas/Role.ts +0 -37
- package/src/schemas/Season.ts +0 -526
- package/src/schemas/Seating.ts +0 -34
- package/src/schemas/User.ts +0 -114
- package/src/schemas/UserProfile.ts +0 -122
- package/src/schemas/Venue.ts +0 -51
- package/src/schemas/WebFlow.ts +0 -132
- package/src/utils/AnalyticsUtil.ts +0 -1139
- package/src/utils/EventUtil.ts +0 -983
- package/src/utils/FeeUtil.ts +0 -79
- package/src/utils/OrderUtil.ts +0 -425
- package/src/utils/PaymentUtil.ts +0 -841
- package/src/utils/SaveLogsToFile.ts +0 -13
- package/src/utils/SeasonUtil.ts +0 -497
- package/src/utils/TierUtil.ts +0 -76
- package/src/utils/fee-util-broken-but-why +0 -36
- package/tsconfig.json +0 -29
- package/tslint.json +0 -21
- /package/{src/proto → proto}/web-flow.proto +0 -0
- /package/{src/utils → utils}/WebFlowUtil.ts +0 -0
package/src/utils/EventUtil.ts
DELETED
|
@@ -1,983 +0,0 @@
|
|
|
1
|
-
import Joi from "@hapi/joi";
|
|
2
|
-
import * as Time from "@sellout/utils/.dist/time";
|
|
3
|
-
import IEventCustomField from "../interfaces/IEventCustomField";
|
|
4
|
-
import IRefundModal from "../interfaces/IRefundModal";
|
|
5
|
-
import IEvent, {
|
|
6
|
-
EventProcessAsEnum,
|
|
7
|
-
EventTypeEnum,
|
|
8
|
-
} from "../interfaces/IEvent";
|
|
9
|
-
import { CustomFieldTypeEnum } from "../enums/CustomFieldTypeEnum";
|
|
10
|
-
import IOrderCustomField from "../interfaces/IOrderCustomField";
|
|
11
|
-
import IEventUpgrade from "../interfaces/IEventUpgrade";
|
|
12
|
-
import ITicketType from "../interfaces/ITicketType";
|
|
13
|
-
import IEventPromotion from "../interfaces/IEventPromotion";
|
|
14
|
-
import { EventPromotionTypeEnum } from "../interfaces/IEventPromotion";
|
|
15
|
-
import { DropDownEnum } from "../enums/DropDownEnum";
|
|
16
|
-
import { SendQRCodeEnum } from "../interfaces/IEvent";
|
|
17
|
-
import IEventSchedule from "../interfaces/IEventSchedule";
|
|
18
|
-
import ITicketHold from "../interfaces/ITicketHold";
|
|
19
|
-
import IEmailHolders from "../interfaces/IEmailHolders";
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
/****************************************************************************************
|
|
23
|
-
* Schedule
|
|
24
|
-
****************************************************************************************/
|
|
25
|
-
hasBeenAnnounced(event): boolean {
|
|
26
|
-
const {
|
|
27
|
-
schedule: { announceAt },
|
|
28
|
-
} = event;
|
|
29
|
-
const now = Time.now();
|
|
30
|
-
return announceAt < now;
|
|
31
|
-
},
|
|
32
|
-
isAnnounced(event): boolean {
|
|
33
|
-
const {
|
|
34
|
-
schedule: { announceAt, ticketsAt },
|
|
35
|
-
} = event;
|
|
36
|
-
const now = Time.now();
|
|
37
|
-
return announceAt < now && now < ticketsAt;
|
|
38
|
-
},
|
|
39
|
-
isOnSale(event): boolean {
|
|
40
|
-
const ticketsAt = event?.schedule?.ticketsAt;
|
|
41
|
-
const ticketsEndAt = event?.schedule?.ticketsEndAt;
|
|
42
|
-
|
|
43
|
-
const now = Time.now();
|
|
44
|
-
return ticketsAt < now && now < ticketsEndAt;
|
|
45
|
-
},
|
|
46
|
-
isInProgress(event): boolean {
|
|
47
|
-
const {
|
|
48
|
-
schedule: { startsAt, endsAt },
|
|
49
|
-
} = event;
|
|
50
|
-
const now = Time.now();
|
|
51
|
-
return startsAt < now && now < endsAt;
|
|
52
|
-
},
|
|
53
|
-
saleHasEnded(event): boolean {
|
|
54
|
-
const {
|
|
55
|
-
schedule: { ticketsEndAt },
|
|
56
|
-
} = event;
|
|
57
|
-
const now = Time.now();
|
|
58
|
-
return ticketsEndAt < now;
|
|
59
|
-
},
|
|
60
|
-
isSoldOut(event: IEvent): boolean {
|
|
61
|
-
return this.remainingTicketQty(event) > 0;
|
|
62
|
-
},
|
|
63
|
-
hasEnded(event): boolean {
|
|
64
|
-
const {
|
|
65
|
-
schedule: { endsAt },
|
|
66
|
-
} = event;
|
|
67
|
-
const now = Time.now();
|
|
68
|
-
return endsAt < now;
|
|
69
|
-
},
|
|
70
|
-
isUnavailable(event: IEvent): boolean {
|
|
71
|
-
if (!event.published) return true;
|
|
72
|
-
if (!this.hasBeenAnnounced(event)) return true;
|
|
73
|
-
if (!this.isOnSale(event)) return true;
|
|
74
|
-
if (this.allTicketsAreLocked(event)) return true;
|
|
75
|
-
if (this.saleHasEnded(event)) return true;
|
|
76
|
-
return false;
|
|
77
|
-
},
|
|
78
|
-
allTicketsAreLocked(event: IEvent): boolean {
|
|
79
|
-
const ticketTypeCount = event.ticketTypes?.length;
|
|
80
|
-
const promotionCodeTicketCount = [
|
|
81
|
-
...new Set(
|
|
82
|
-
event.promotions
|
|
83
|
-
?.filter((a) => a.type === "Unlock" && a.active)
|
|
84
|
-
.reduce((cur: string[], promotion) => {
|
|
85
|
-
// (this.isOnSale(event) ? promotion.type === "Unlock" : (promotion.type === "Presale" || promotion.type === "Unlock"))
|
|
86
|
-
// if(2!==2)
|
|
87
|
-
return [...cur, ...promotion.ticketTypeIds];
|
|
88
|
-
}, [])
|
|
89
|
-
),
|
|
90
|
-
].length;
|
|
91
|
-
|
|
92
|
-
return ticketTypeCount === promotionCodeTicketCount;
|
|
93
|
-
},
|
|
94
|
-
/****************************************************************************************
|
|
95
|
-
* QR Code
|
|
96
|
-
****************************************************************************************/
|
|
97
|
-
qrCodeEmailAt(event): number {
|
|
98
|
-
const {
|
|
99
|
-
performances: [performance],
|
|
100
|
-
} = event;
|
|
101
|
-
const { schedule } = performance;
|
|
102
|
-
// let doorsAt = schedule[0].doorsAt;
|
|
103
|
-
let startsAt = schedule[0].startsAt;
|
|
104
|
-
/*const {
|
|
105
|
-
schedule: { doorsAt, startsAt },
|
|
106
|
-
} = performance;
|
|
107
|
-
console.log
|
|
108
|
-
changing to lower case
|
|
109
|
-
becuse previosly it is stored with different values
|
|
110
|
-
like Upon Order, Upon order
|
|
111
|
-
*/
|
|
112
|
-
if (
|
|
113
|
-
event.sendQRCode.toLowerCase() === SendQRCodeEnum.UponOrder.toLowerCase()
|
|
114
|
-
) {
|
|
115
|
-
return Time.now();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (
|
|
119
|
-
event.sendQRCode.toLowerCase() ===
|
|
120
|
-
SendQRCodeEnum.TwoWeeksBefore.toLowerCase()
|
|
121
|
-
) {
|
|
122
|
-
const TWO_WEEKS = 14 * 24 * 60 * 60;
|
|
123
|
-
return startsAt - TWO_WEEKS;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// if (
|
|
127
|
-
// event.sendQRCode.toLowerCase() ===
|
|
128
|
-
// SendQRCodeEnum.DayOfShow.toLowerCase()
|
|
129
|
-
// ) {
|
|
130
|
-
// const TWO_WEEKS = 14 * 24 * 60 * 60;
|
|
131
|
-
// return startsAt - TWO_WEEKS;
|
|
132
|
-
// }
|
|
133
|
-
|
|
134
|
-
/* if (event.sendQRCode === "Upon Order") {
|
|
135
|
-
return Time.now();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (event.sendQRCode === "Two Weeks Before Show") {
|
|
139
|
-
const TWO_WEEKS = 14 * 24 * 60 * 60;
|
|
140
|
-
return startsAt - TWO_WEEKS;
|
|
141
|
-
} */
|
|
142
|
-
|
|
143
|
-
// return doorsAt - 600;
|
|
144
|
-
|
|
145
|
-
return startsAt - 28800;
|
|
146
|
-
},
|
|
147
|
-
shouldSendOrderReceipt(event): boolean {
|
|
148
|
-
const now = Time.now();
|
|
149
|
-
const qrCodeEmailAt = this.qrCodeEmailAt(event);
|
|
150
|
-
|
|
151
|
-
// Never send a receipt if we are
|
|
152
|
-
// send a qr code upon order
|
|
153
|
-
if (
|
|
154
|
-
event.sendQRCode.toLowerCase() === SendQRCodeEnum.UponOrder.toLowerCase()
|
|
155
|
-
) {
|
|
156
|
-
return false;
|
|
157
|
-
}
|
|
158
|
-
// if (event.sendQRCode === "Upon Order") {
|
|
159
|
-
// return false;
|
|
160
|
-
// }
|
|
161
|
-
|
|
162
|
-
// Only send a receipt if QR codes for
|
|
163
|
-
// the event haven't already gone out
|
|
164
|
-
if (qrCodeEmailAt > now) {
|
|
165
|
-
return true;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return false;
|
|
169
|
-
},
|
|
170
|
-
/****************************************************************************************
|
|
171
|
-
* Process As
|
|
172
|
-
****************************************************************************************/
|
|
173
|
-
isPaid(event: IEvent): boolean {
|
|
174
|
-
return event?.processAs === EventProcessAsEnum.Paid;
|
|
175
|
-
},
|
|
176
|
-
isRSVP(event: IEvent): boolean {
|
|
177
|
-
return event?.processAs === EventProcessAsEnum.RSVP;
|
|
178
|
-
},
|
|
179
|
-
// isFree(event: IEvent): boolean {
|
|
180
|
-
// return event.processAs === EventProcessAsEnum.Free;
|
|
181
|
-
// },
|
|
182
|
-
/****************************************************************************************
|
|
183
|
-
* Seating
|
|
184
|
-
****************************************************************************************/
|
|
185
|
-
isSeated(event?: IEvent): boolean {
|
|
186
|
-
if (!event) return false;
|
|
187
|
-
return Boolean(event.seatingChartKey);
|
|
188
|
-
},
|
|
189
|
-
/****************************************************************************************
|
|
190
|
-
* Venue
|
|
191
|
-
****************************************************************************************/
|
|
192
|
-
venueIds(event): string[] {
|
|
193
|
-
let venueIds = [event.venueId];
|
|
194
|
-
event.performances.forEach((performance) => {
|
|
195
|
-
venueIds = venueIds.concat(performance.venueStageId);
|
|
196
|
-
});
|
|
197
|
-
venueIds = [...new Set(venueIds)];
|
|
198
|
-
venueIds = venueIds.filter((v) => !!v);
|
|
199
|
-
return venueIds;
|
|
200
|
-
},
|
|
201
|
-
seatingId(event): string {
|
|
202
|
-
return event._id.replace("_", "SAMH");
|
|
203
|
-
},
|
|
204
|
-
/****************************************************************************************
|
|
205
|
-
* Artist
|
|
206
|
-
****************************************************************************************/
|
|
207
|
-
artistIds(event): string[] {
|
|
208
|
-
let artistIds = [];
|
|
209
|
-
event.performances.forEach((performance) => {
|
|
210
|
-
artistIds = artistIds
|
|
211
|
-
.concat(performance.headliningArtistIds)
|
|
212
|
-
.concat(performance.openingArtistIds);
|
|
213
|
-
});
|
|
214
|
-
artistIds = [...new Set(artistIds)];
|
|
215
|
-
artistIds = artistIds.filter((a) => !!a);
|
|
216
|
-
return artistIds;
|
|
217
|
-
},
|
|
218
|
-
headliningArtistIds(event): string[] {
|
|
219
|
-
let artistIds = [];
|
|
220
|
-
event.performances.forEach((performance) => {
|
|
221
|
-
artistIds = artistIds.concat(performance.headliningArtistIds);
|
|
222
|
-
});
|
|
223
|
-
artistIds = [...new Set(artistIds)];
|
|
224
|
-
artistIds = artistIds.filter((a) => !!a);
|
|
225
|
-
return artistIds;
|
|
226
|
-
},
|
|
227
|
-
openingArtistIds(event): string[] {
|
|
228
|
-
let artistIds = [];
|
|
229
|
-
event.performances.forEach((performance) => {
|
|
230
|
-
artistIds = artistIds.concat(performance.openingArtistIds);
|
|
231
|
-
});
|
|
232
|
-
artistIds = [...new Set(artistIds)];
|
|
233
|
-
artistIds = artistIds.filter((a) => !!a);
|
|
234
|
-
return artistIds;
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
/****************************************************************************************
|
|
238
|
-
* Tickets Hold
|
|
239
|
-
****************************************************************************************/
|
|
240
|
-
ticketHold(event, ticketHoldId): any {
|
|
241
|
-
return event?.holds.find((ticketHold) => ticketHold._id === ticketHoldId);
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
/****************************************************************************************
|
|
245
|
-
* Tickets
|
|
246
|
-
****************************************************************************************/
|
|
247
|
-
ticketType(event, ticketTypeId): any {
|
|
248
|
-
return event?.ticketTypes.find(
|
|
249
|
-
(ticketType) => ticketType._id === ticketTypeId
|
|
250
|
-
);
|
|
251
|
-
},
|
|
252
|
-
activeTicketTypes(event: IEvent): ITicketType[] {
|
|
253
|
-
return event?.ticketTypes?.filter((ticketType) => ticketType.visible) ?? [];
|
|
254
|
-
},
|
|
255
|
-
remainingTicketQty(event, ticketTypeId: string | null = null): number {
|
|
256
|
-
if (ticketTypeId) {
|
|
257
|
-
let ticketType = event?.ticketTypes.find(
|
|
258
|
-
(ticketType) => ticketType._id === ticketTypeId
|
|
259
|
-
);
|
|
260
|
-
if (!ticketType) return 0;
|
|
261
|
-
else return ticketType.remainingQty;
|
|
262
|
-
} else {
|
|
263
|
-
return event?.ticketTypes.reduce((cur, next) => {
|
|
264
|
-
return cur + next.remainingQty;
|
|
265
|
-
}, 0);
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
remainingQtyByTicketTypes(event): object {
|
|
269
|
-
return event.ticketTypes.reduce((cur, ticketType) => {
|
|
270
|
-
cur[ticketType._id] = this.remainingTicketQty(event, ticketType._id);
|
|
271
|
-
return cur;
|
|
272
|
-
}, {});
|
|
273
|
-
},
|
|
274
|
-
purchaseLimitByTicketTypes(event): object {
|
|
275
|
-
return event.ticketTypes.reduce((cur, ticketType) => {
|
|
276
|
-
cur[ticketType._id] = ticketType.purchaseLimit;
|
|
277
|
-
return cur;
|
|
278
|
-
}, {});
|
|
279
|
-
},
|
|
280
|
-
getCurrentTierId(event, ticketTypeId: string): string {
|
|
281
|
-
const ticketType = event.ticketTypes.find(
|
|
282
|
-
(t) => t._id.toString() === ticketTypeId
|
|
283
|
-
);
|
|
284
|
-
const now = Time.now();
|
|
285
|
-
const tier = ticketType.tiers.find(
|
|
286
|
-
(tier) => tier.startsAt < now && now < tier.endsAt
|
|
287
|
-
);
|
|
288
|
-
return tier._id;
|
|
289
|
-
},
|
|
290
|
-
/****************************************************************************************
|
|
291
|
-
* Upgrades
|
|
292
|
-
****************************************************************************************/
|
|
293
|
-
upgrade(event, upgradeId): any {
|
|
294
|
-
return event.upgrades.find((upgrades) => upgrades._id === upgradeId);
|
|
295
|
-
},
|
|
296
|
-
activeUpgrades(event: IEvent): IEventUpgrade[] {
|
|
297
|
-
return (
|
|
298
|
-
(event?.upgrades ?? [])
|
|
299
|
-
// must be active
|
|
300
|
-
.filter((upgrade) => upgrade.visible)
|
|
301
|
-
// must have remaining qty
|
|
302
|
-
//.filter((upgrade) => upgrade.remainingQty > 0)
|
|
303
|
-
);
|
|
304
|
-
},
|
|
305
|
-
activeNonComplimentaryUpgrades(event: IEvent): IEventUpgrade[] {
|
|
306
|
-
return (
|
|
307
|
-
this.activeUpgrades(event)
|
|
308
|
-
// must not be complimentary
|
|
309
|
-
.filter((upgrade) => !upgrade.complimentary)
|
|
310
|
-
);
|
|
311
|
-
},
|
|
312
|
-
remainingUpgradeQty(event, upgradeId: string | null = null): number {
|
|
313
|
-
if (upgradeId) {
|
|
314
|
-
let upgrade = event.upgrades.find((upgrade) => upgrade._id === upgradeId);
|
|
315
|
-
if (!upgrade) return 0;
|
|
316
|
-
else return upgrade.remainingQty;
|
|
317
|
-
} else {
|
|
318
|
-
return event.upgrades.reduce((cur, next) => {
|
|
319
|
-
return cur + next.remainingQty;
|
|
320
|
-
}, 0);
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
remainingQtyByUpgrades(event): object {
|
|
324
|
-
return event.upgrades.reduce((cur, upgrade) => {
|
|
325
|
-
cur[upgrade._id] = this.remainingUpgradeQty(event, upgrade._id);
|
|
326
|
-
return cur;
|
|
327
|
-
}, {});
|
|
328
|
-
},
|
|
329
|
-
purchaseLimitByUpgrades(event): object {
|
|
330
|
-
return event.upgrades.reduce((cur, upgrade) => {
|
|
331
|
-
cur[upgrade._id] = upgrade.purchaseLimit;
|
|
332
|
-
return cur;
|
|
333
|
-
}, {});
|
|
334
|
-
},
|
|
335
|
-
isUpgradeForSpecificTickets(event: IEvent, upgrade: IEventUpgrade): boolean {
|
|
336
|
-
return Boolean(
|
|
337
|
-
event?.ticketTypes?.map((t) => t._id).sort() ===
|
|
338
|
-
upgrade?.ticketTypeIds?.sort()
|
|
339
|
-
);
|
|
340
|
-
},
|
|
341
|
-
/****************************************************************************************
|
|
342
|
-
* Promotions
|
|
343
|
-
****************************************************************************************/
|
|
344
|
-
promotion(event, promotionId: string): any {
|
|
345
|
-
return event.promotions.find(
|
|
346
|
-
(promotions) => promotions._id === promotionId
|
|
347
|
-
);
|
|
348
|
-
},
|
|
349
|
-
activePromotions(
|
|
350
|
-
event: IEvent,
|
|
351
|
-
type: EventPromotionTypeEnum | null = null
|
|
352
|
-
): IEventPromotion[] {
|
|
353
|
-
const now = Time.now();
|
|
354
|
-
|
|
355
|
-
let promotions = (event?.promotions ?? [])
|
|
356
|
-
// must be active
|
|
357
|
-
.filter((promotion) => promotion.active)
|
|
358
|
-
// must have remaining qty
|
|
359
|
-
.filter((promotion) => promotion.remainingQty > 0)
|
|
360
|
-
// must be in the correct time
|
|
361
|
-
.filter(
|
|
362
|
-
(promotion) => promotion.startsAt < now && now < promotion.endsAt
|
|
363
|
-
);
|
|
364
|
-
|
|
365
|
-
// Optional type
|
|
366
|
-
if (type !== null) {
|
|
367
|
-
promotions = promotions.filter((promotion) => promotion.type === type);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
return promotions;
|
|
371
|
-
},
|
|
372
|
-
/****************************************************************************************
|
|
373
|
-
* Custom Fields
|
|
374
|
-
****************************************************************************************/
|
|
375
|
-
customField(event: IEvent, customFieldId: string): IEventCustomField | null {
|
|
376
|
-
return (
|
|
377
|
-
event?.customFields?.find(
|
|
378
|
-
(customField) => customField._id === customFieldId
|
|
379
|
-
) ?? null
|
|
380
|
-
);
|
|
381
|
-
},
|
|
382
|
-
activeCustomFields(event: IEvent): IEventCustomField[] {
|
|
383
|
-
return (
|
|
384
|
-
event?.customFields?.filter((customField) => customField.active) ?? []
|
|
385
|
-
);
|
|
386
|
-
},
|
|
387
|
-
hasCustomFields(event) {
|
|
388
|
-
return (
|
|
389
|
-
event?.customFields.filter((customField) => customField.active).length > 0
|
|
390
|
-
);
|
|
391
|
-
},
|
|
392
|
-
// Fixed issue SELLOUT-49
|
|
393
|
-
customFieldsAreValid(
|
|
394
|
-
eventCustomFields: IEventCustomField[],
|
|
395
|
-
orderCustomFields: IOrderCustomField[]
|
|
396
|
-
): boolean {
|
|
397
|
-
const activeFields =
|
|
398
|
-
eventCustomFields?.filter(
|
|
399
|
-
(eventCustomField) => eventCustomField.active
|
|
400
|
-
) ?? [];
|
|
401
|
-
|
|
402
|
-
const validFields =
|
|
403
|
-
activeFields?.filter((eventCustomField) => {
|
|
404
|
-
const { _id, minLength, maxLength, minValue, maxValue, required } =
|
|
405
|
-
eventCustomField;
|
|
406
|
-
|
|
407
|
-
const orderCustomField = orderCustomFields?.find(
|
|
408
|
-
(orderCustomField) => orderCustomField.customFieldId === _id
|
|
409
|
-
);
|
|
410
|
-
|
|
411
|
-
// Field is not required and orderCustomField not empty
|
|
412
|
-
if (!required && !orderCustomField) return true;
|
|
413
|
-
|
|
414
|
-
// Field has not been filled out
|
|
415
|
-
if (!orderCustomField) return false;
|
|
416
|
-
|
|
417
|
-
let { value } = orderCustomField;
|
|
418
|
-
|
|
419
|
-
if (
|
|
420
|
-
!required &&
|
|
421
|
-
(value === undefined ||
|
|
422
|
-
value === "NaN" ||
|
|
423
|
-
value === "" ||
|
|
424
|
-
value === DropDownEnum.Select)
|
|
425
|
-
) {
|
|
426
|
-
return true;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
if (eventCustomField?.type === CustomFieldTypeEnum.Text) {
|
|
430
|
-
value = <string>value;
|
|
431
|
-
if (value) {
|
|
432
|
-
if (minLength === 0 && maxLength === 0 && value.length > 0) {
|
|
433
|
-
return true;
|
|
434
|
-
} else if (minLength === 0 && value.length <= maxLength) {
|
|
435
|
-
return true;
|
|
436
|
-
} else if (maxLength === 0 && minLength <= value.length) {
|
|
437
|
-
return true;
|
|
438
|
-
} else if (minLength <= value.length && value.length <= maxLength) {
|
|
439
|
-
return true;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
return false;
|
|
443
|
-
} else if (eventCustomField.type === CustomFieldTypeEnum.Dropdown) {
|
|
444
|
-
value = <string>value;
|
|
445
|
-
if (value !== "" && value !== DropDownEnum.Select) {
|
|
446
|
-
return true;
|
|
447
|
-
}
|
|
448
|
-
return false;
|
|
449
|
-
} else if (eventCustomField.type === CustomFieldTypeEnum.Address) {
|
|
450
|
-
value = <string>value;
|
|
451
|
-
if (value !== "") {
|
|
452
|
-
return true;
|
|
453
|
-
}
|
|
454
|
-
return false;
|
|
455
|
-
} else {
|
|
456
|
-
value = <number>value;
|
|
457
|
-
if (value) {
|
|
458
|
-
if (minValue === 0 && maxValue === 0 && value > 0) {
|
|
459
|
-
return true;
|
|
460
|
-
} else if (minValue === 0 && value <= maxValue) {
|
|
461
|
-
return true;
|
|
462
|
-
} else if (maxValue === 0 && minValue <= value) {
|
|
463
|
-
return true;
|
|
464
|
-
} else if (minValue <= value && value <= maxValue) {
|
|
465
|
-
return true;
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
return false;
|
|
469
|
-
}
|
|
470
|
-
}) ?? [];
|
|
471
|
-
|
|
472
|
-
return validFields.length === activeFields.length;
|
|
473
|
-
},
|
|
474
|
-
/****************************************************************************************
|
|
475
|
-
* Publish validate
|
|
476
|
-
****************************************************************************************/
|
|
477
|
-
validatePublish(event: IEvent): any {
|
|
478
|
-
let eventSchema;
|
|
479
|
-
const posterImageUrlSchema = Joi.object({
|
|
480
|
-
original: Joi.string().required().messages({
|
|
481
|
-
"string.empty": '"Event image" is a required field',
|
|
482
|
-
"any.required": '"Event image" is a required field',
|
|
483
|
-
}),
|
|
484
|
-
medium: Joi.string().allow('', null).optional(),
|
|
485
|
-
small: Joi.string().allow('', null).optional(),
|
|
486
|
-
})
|
|
487
|
-
.unknown(true)
|
|
488
|
-
.required()
|
|
489
|
-
.messages({
|
|
490
|
-
"any.required": '"Event image" is a required field',
|
|
491
|
-
"object.base": '"Event image" is a required field', // handles case when it's not an object
|
|
492
|
-
});
|
|
493
|
-
|
|
494
|
-
switch (event.type) {
|
|
495
|
-
case EventTypeEnum.GeneralEvent:
|
|
496
|
-
eventSchema = Joi.object()
|
|
497
|
-
.options({ abortEarly: false })
|
|
498
|
-
.keys({
|
|
499
|
-
name: Joi.string()
|
|
500
|
-
.required()
|
|
501
|
-
.messages({ "string.empty": '"Event name" is a required field' }),
|
|
502
|
-
description: Joi.string().required().messages({
|
|
503
|
-
"string.empty": '"Event description" is a required field',
|
|
504
|
-
}),
|
|
505
|
-
posterImageUrl: posterImageUrlSchema,
|
|
506
|
-
venueId: Joi.string()
|
|
507
|
-
.required()
|
|
508
|
-
.messages({ "string.empty": '"Venue" is required' }),
|
|
509
|
-
ticketTypes: Joi.array()
|
|
510
|
-
.min(1)
|
|
511
|
-
.items(
|
|
512
|
-
Joi.object()
|
|
513
|
-
.options({ allowUnknown: true })
|
|
514
|
-
.keys({
|
|
515
|
-
name: Joi.string().required(),
|
|
516
|
-
remainingQty: Joi.number().required(),
|
|
517
|
-
totalQty: Joi.number().required(),
|
|
518
|
-
purchaseLimit: Joi.number().required(),
|
|
519
|
-
tiers: Joi.array().items(
|
|
520
|
-
Joi.object()
|
|
521
|
-
.keys({
|
|
522
|
-
name: Joi.string().required(),
|
|
523
|
-
price: Joi.number().required(),
|
|
524
|
-
remainingQty: Joi.number().required(),
|
|
525
|
-
totalQty: Joi.number().required(),
|
|
526
|
-
})
|
|
527
|
-
.unknown(true)
|
|
528
|
-
),
|
|
529
|
-
})
|
|
530
|
-
)
|
|
531
|
-
.messages({ "array.min": '"Event" must have atleast 1 ticket' }),
|
|
532
|
-
})
|
|
533
|
-
.unknown(true);
|
|
534
|
-
break;
|
|
535
|
-
case EventTypeEnum.Concert:
|
|
536
|
-
eventSchema = Joi.object()
|
|
537
|
-
.options({ abortEarly: false })
|
|
538
|
-
.keys({
|
|
539
|
-
name: Joi.string()
|
|
540
|
-
.required()
|
|
541
|
-
.messages({ "string.empty": '"Event name" is a required field' }),
|
|
542
|
-
description: Joi.string().required().messages({
|
|
543
|
-
"string.empty": '"Event description" is a required field',
|
|
544
|
-
}),
|
|
545
|
-
posterImageUrl: posterImageUrlSchema,
|
|
546
|
-
venueId: Joi.string()
|
|
547
|
-
.required()
|
|
548
|
-
.messages({ "string.empty": '"Venue" is required' }),
|
|
549
|
-
performances: Joi.array()
|
|
550
|
-
.items(
|
|
551
|
-
Joi.object()
|
|
552
|
-
.keys({
|
|
553
|
-
headliningArtistIds: Joi.array()
|
|
554
|
-
.items(Joi.string().required())
|
|
555
|
-
.messages({
|
|
556
|
-
"array.includesRequiredUnknowns":
|
|
557
|
-
"An event performer is required for a concert",
|
|
558
|
-
}),
|
|
559
|
-
})
|
|
560
|
-
.unknown(true)
|
|
561
|
-
)
|
|
562
|
-
.default([]),
|
|
563
|
-
})
|
|
564
|
-
.unknown(true);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
return eventSchema.validate(event);
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
/****************************************************************************************
|
|
572
|
-
* Ticket Hold validate
|
|
573
|
-
****************************************************************************************/
|
|
574
|
-
validateTicketHold(ticketHold: ITicketHold): any {
|
|
575
|
-
let ticketHoldSchema: any;
|
|
576
|
-
let used = ticketHold?.ticketRemaining as number;
|
|
577
|
-
|
|
578
|
-
ticketHoldSchema = Joi.object()
|
|
579
|
-
.options({ abortEarly: false })
|
|
580
|
-
.keys({
|
|
581
|
-
name: Joi.string()
|
|
582
|
-
.required()
|
|
583
|
-
.messages({ "string.empty": '"Block name" is a required field' }),
|
|
584
|
-
ticketType: Joi.string()
|
|
585
|
-
.required()
|
|
586
|
-
.messages({ "string.empty": '"Ticket Type" is a required field' }),
|
|
587
|
-
qty: Joi.number()
|
|
588
|
-
.required()
|
|
589
|
-
.min(1)
|
|
590
|
-
.custom((value, helpers) => {
|
|
591
|
-
if (value > 0 && value > used) {
|
|
592
|
-
return helpers.error("totalqty.invalid");
|
|
593
|
-
}
|
|
594
|
-
return value;
|
|
595
|
-
})
|
|
596
|
-
.messages({
|
|
597
|
-
"totalqty.invalid":
|
|
598
|
-
'"Total qty." must be less than or equal to the number of ticket remaining qty.',
|
|
599
|
-
"number.min": '"Total qty." must be greater than 0',
|
|
600
|
-
}),
|
|
601
|
-
})
|
|
602
|
-
.unknown(true);
|
|
603
|
-
return ticketHoldSchema.validate(ticketHold);
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
validateTicketHoldName(ticketHold: ITicketHold): any {
|
|
607
|
-
let ticketHoldSchema: any;
|
|
608
|
-
|
|
609
|
-
ticketHoldSchema = Joi.object()
|
|
610
|
-
.options({ abortEarly: false })
|
|
611
|
-
.keys({
|
|
612
|
-
name: Joi.string()
|
|
613
|
-
.required()
|
|
614
|
-
.messages({ "string.empty": '"Block name" is a required field' }),
|
|
615
|
-
})
|
|
616
|
-
.unknown(true);
|
|
617
|
-
return ticketHoldSchema.validate(ticketHold);
|
|
618
|
-
},
|
|
619
|
-
/****************************************************************************************
|
|
620
|
-
* Ticket validate
|
|
621
|
-
****************************************************************************************/
|
|
622
|
-
validateTicket(
|
|
623
|
-
ticket: ITicketType,
|
|
624
|
-
isPaid: Boolean,
|
|
625
|
-
isMultipleDays: boolean
|
|
626
|
-
): any {
|
|
627
|
-
let ticketSchema;
|
|
628
|
-
let limit = isPaid ? "Purchase limit" : "RSVP limit";
|
|
629
|
-
|
|
630
|
-
let used = ticket.totalQty - ticket.remainingQty;
|
|
631
|
-
ticketSchema = Joi.object()
|
|
632
|
-
.options({ abortEarly: false })
|
|
633
|
-
.keys({
|
|
634
|
-
name: Joi.string()
|
|
635
|
-
.required()
|
|
636
|
-
.messages({ "string.empty": '"Ticket name" is a required field' }),
|
|
637
|
-
remainingQty: Joi.number().required(),
|
|
638
|
-
totalQty: Joi.number().required().min(1).messages({
|
|
639
|
-
"number.required": '"Total qty." is a required field',
|
|
640
|
-
"number.min": '"Total qty." must be greater than 0',
|
|
641
|
-
}),
|
|
642
|
-
purchaseLimit: Joi.number()
|
|
643
|
-
.required()
|
|
644
|
-
.min(1)
|
|
645
|
-
.messages({
|
|
646
|
-
"number.required": `"${limit}" is a required field`,
|
|
647
|
-
"number.min": `"${limit}" must be greater than 0`,
|
|
648
|
-
"number.base": `"${limit}" must be a number`,
|
|
649
|
-
}),
|
|
650
|
-
dayIds: Joi.array()
|
|
651
|
-
.min(isMultipleDays ? 1 : 0)
|
|
652
|
-
.items(Joi.string())
|
|
653
|
-
.default([])
|
|
654
|
-
.messages({
|
|
655
|
-
"array.min": "Ticket must have selected atleast one day.",
|
|
656
|
-
}),
|
|
657
|
-
tiers: Joi.array()
|
|
658
|
-
.items(
|
|
659
|
-
Joi.object()
|
|
660
|
-
.keys({
|
|
661
|
-
name: Joi.string().required().messages({
|
|
662
|
-
"string.empty": '"Tier name" is a required field',
|
|
663
|
-
"any.required": '"Tier name" must be provided',
|
|
664
|
-
}),
|
|
665
|
-
price: Joi.number().required(),
|
|
666
|
-
remainingQty: Joi.number().required(),
|
|
667
|
-
totalQty: Joi.number()
|
|
668
|
-
.custom((value, helpers) => {
|
|
669
|
-
if (value > 0 && value < used) {
|
|
670
|
-
return helpers.error("totalqty.invalid");
|
|
671
|
-
}
|
|
672
|
-
return value;
|
|
673
|
-
})
|
|
674
|
-
.messages({
|
|
675
|
-
"totalqty.invalid":
|
|
676
|
-
'"Total qty." must be greater than or equal to number of ticket sold',
|
|
677
|
-
})
|
|
678
|
-
.required(),
|
|
679
|
-
startsAt: Joi.date().allow(null),
|
|
680
|
-
endsAt: Joi.date().allow(null),
|
|
681
|
-
})
|
|
682
|
-
.unknown(true)
|
|
683
|
-
)
|
|
684
|
-
.custom((tiers, helpers) => {
|
|
685
|
-
// Only validate active tiers
|
|
686
|
-
const activeTiers = tiers.filter(t => t.isActive !== false);
|
|
687
|
-
for (let i = 0; i < activeTiers.length; i++) {
|
|
688
|
-
const tier = activeTiers[i];
|
|
689
|
-
if (tier.startsAt && tier.endsAt) {
|
|
690
|
-
const start = new Date(tier.startsAt);
|
|
691
|
-
const end = new Date(tier.endsAt);
|
|
692
|
-
if (isNaN(start.getTime()) || isNaN(end.getTime())) {
|
|
693
|
-
return helpers.error("tiers.invalidDate", { index: i + 1 });
|
|
694
|
-
}
|
|
695
|
-
if (end.getTime() <= start.getTime()) {
|
|
696
|
-
const tierLabel =
|
|
697
|
-
tier.name && tier.name.trim() !== ""
|
|
698
|
-
? ` "${tier.name}"`
|
|
699
|
-
: ` #${i + 1}`;
|
|
700
|
-
|
|
701
|
-
return helpers.error("tiers.endsAtBeforeStartsAt", {
|
|
702
|
-
tierLabel,
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
for (let i = 1; i < activeTiers.length; i++) {
|
|
708
|
-
const prevTier = activeTiers[i - 1];
|
|
709
|
-
const currentTier = activeTiers[i];
|
|
710
|
-
const prevEndsAt = new Date(prevTier.endsAt).getTime();
|
|
711
|
-
const currStartsAt = new Date(currentTier.startsAt).getTime();
|
|
712
|
-
if (currStartsAt !== prevEndsAt) {
|
|
713
|
-
// TODO Return custom error
|
|
714
|
-
return helpers.error("tiers.startsAtMismatch", {
|
|
715
|
-
index: i + 1,
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
return tiers;
|
|
721
|
-
})
|
|
722
|
-
.messages({
|
|
723
|
-
"tiers.startsAtMismatch":
|
|
724
|
-
"Start date/time of Tier {#index} must match end date/time of previous tier.",
|
|
725
|
-
"tiers.endsAtBeforeStartsAt":
|
|
726
|
-
"End date/time of Tier{#tierLabel} must be after start date/time.",
|
|
727
|
-
}),
|
|
728
|
-
})
|
|
729
|
-
.unknown(true);
|
|
730
|
-
return ticketSchema.validate(ticket);
|
|
731
|
-
},
|
|
732
|
-
/****************************************************************************************
|
|
733
|
-
* Upgrade validate
|
|
734
|
-
****************************************************************************************/
|
|
735
|
-
validateUpgrade(upgrade: IEventUpgrade, isPaid: Boolean): any {
|
|
736
|
-
let upgradeSchema;
|
|
737
|
-
let limit = isPaid ? "Purchase limit" : "RSVP limit";
|
|
738
|
-
let used = upgrade.totalQty - upgrade.remainingQty;
|
|
739
|
-
upgradeSchema = Joi.object()
|
|
740
|
-
.options({ abortEarly: false })
|
|
741
|
-
.keys({
|
|
742
|
-
name: Joi.string()
|
|
743
|
-
.required()
|
|
744
|
-
.messages({ "string.empty": '"Upgrade name" is a required field' }),
|
|
745
|
-
price: Joi.number().required(),
|
|
746
|
-
totalQty: Joi.number()
|
|
747
|
-
.custom((value, helpers) => {
|
|
748
|
-
if (value > 0 && value < used) {
|
|
749
|
-
return helpers.error("totalqty.invalid");
|
|
750
|
-
}
|
|
751
|
-
return value;
|
|
752
|
-
})
|
|
753
|
-
.messages({
|
|
754
|
-
"totalqty.invalid":
|
|
755
|
-
'"Total qty." must be greater than or equal to number of upgrade sold',
|
|
756
|
-
})
|
|
757
|
-
.required()
|
|
758
|
-
.min(1)
|
|
759
|
-
.messages({
|
|
760
|
-
"number.required": '"Total qty." is a required field',
|
|
761
|
-
"number.min": '"Total qty." must be greater than 0',
|
|
762
|
-
}),
|
|
763
|
-
remainingQty: Joi.number(),
|
|
764
|
-
purchaseLimit: Joi.number()
|
|
765
|
-
.required()
|
|
766
|
-
.min(1)
|
|
767
|
-
.messages({
|
|
768
|
-
"number.required": `"${limit}" is a required field`,
|
|
769
|
-
"number.min": `"${limit}" must be greater than 0`,
|
|
770
|
-
"number.base": `"${limit}" must be a number`,
|
|
771
|
-
}),
|
|
772
|
-
complimentary: Joi.boolean().required(),
|
|
773
|
-
complimentaryWith: Joi.string().required(),
|
|
774
|
-
complimentaryQty: Joi.number().required(),
|
|
775
|
-
ticketTypeIds: Joi.array().items(Joi.string()).default([]),
|
|
776
|
-
imageUrl: Joi.string().optional().allow(""),
|
|
777
|
-
description: Joi.string().optional().allow(""),
|
|
778
|
-
visible: Joi.boolean().required(),
|
|
779
|
-
rollFees: Joi.boolean().required(),
|
|
780
|
-
})
|
|
781
|
-
.unknown(true);
|
|
782
|
-
return upgradeSchema.validate(upgrade);
|
|
783
|
-
},
|
|
784
|
-
/****************************************************************************************
|
|
785
|
-
* Promotion validate
|
|
786
|
-
****************************************************************************************/
|
|
787
|
-
validatePromotion(promotion: IEventPromotion): any {
|
|
788
|
-
let promotionSchema;
|
|
789
|
-
let used = promotion.totalQty - promotion.remainingQty;
|
|
790
|
-
promotionSchema = Joi.object()
|
|
791
|
-
.options({ abortEarly: false })
|
|
792
|
-
.keys({
|
|
793
|
-
code: Joi.string()
|
|
794
|
-
.required()
|
|
795
|
-
.messages({ "string.empty": '"Secret code" is a required field' }),
|
|
796
|
-
type: Joi.string().required(),
|
|
797
|
-
remainingQty: Joi.number(),
|
|
798
|
-
totalQty: Joi.number()
|
|
799
|
-
.custom((value, helpers) => {
|
|
800
|
-
if (value > 0 && value < used) {
|
|
801
|
-
return helpers.error("totalqty.invalid");
|
|
802
|
-
}
|
|
803
|
-
return value;
|
|
804
|
-
})
|
|
805
|
-
.messages({
|
|
806
|
-
"totalqty.invalid":
|
|
807
|
-
'"Total qty." must be greater than or equal to number of secret code sold',
|
|
808
|
-
})
|
|
809
|
-
.required()
|
|
810
|
-
.min(1)
|
|
811
|
-
.messages({
|
|
812
|
-
"number.required": '"Total qty." is a required field',
|
|
813
|
-
"number.min": '"Total qty." must be greater than 0',
|
|
814
|
-
}),
|
|
815
|
-
ticketTypeIds: Joi.array().items(Joi.string()).default([]),
|
|
816
|
-
upgradeIds: Joi.array().items(Joi.string()).default([]),
|
|
817
|
-
active: Joi.boolean().required(),
|
|
818
|
-
startsAt: Joi.number().required(),
|
|
819
|
-
endsAt: Joi.number().required(),
|
|
820
|
-
useLimit: Joi.number().min(1).messages({
|
|
821
|
-
"number.required": '"Use limit" is a required field',
|
|
822
|
-
"number.min": 'Use limit" must be greater than 0',
|
|
823
|
-
"number.base": '"Use limit" must be a number',
|
|
824
|
-
}),
|
|
825
|
-
discountType: Joi.string(),
|
|
826
|
-
discountValue: Joi.number(),
|
|
827
|
-
})
|
|
828
|
-
.unknown(true);
|
|
829
|
-
return promotionSchema.validate(promotion);
|
|
830
|
-
},
|
|
831
|
-
|
|
832
|
-
/****************************************************************************************
|
|
833
|
-
*Validate Event EmailSubject & EmailBody
|
|
834
|
-
****************************************************************************************/
|
|
835
|
-
ValidateEventEmailSubjectFields(emailPreviewFields: IEmailHolders): any {
|
|
836
|
-
const isEmptyHTML = (value: string) => {
|
|
837
|
-
return (
|
|
838
|
-
!value ||
|
|
839
|
-
value.trim() === "" ||
|
|
840
|
-
value.trim() === "<p></p>" ||
|
|
841
|
-
value.trim() === "<p><br></p>"
|
|
842
|
-
);
|
|
843
|
-
};
|
|
844
|
-
|
|
845
|
-
let validateEmailPreviewFields = Joi.object()
|
|
846
|
-
.options({ abortEarly: false })
|
|
847
|
-
.keys({
|
|
848
|
-
eventEmailSubject: Joi.string().required().messages({
|
|
849
|
-
"string.empty": "Email Subject cannot be empty",
|
|
850
|
-
"any.required": "Email Subject is required",
|
|
851
|
-
}),
|
|
852
|
-
|
|
853
|
-
eventEmailBody: Joi.string()
|
|
854
|
-
.custom((value, helpers) => {
|
|
855
|
-
if (isEmptyHTML(value)) {
|
|
856
|
-
return helpers.error("string.empty");
|
|
857
|
-
}
|
|
858
|
-
return value;
|
|
859
|
-
})
|
|
860
|
-
.required()
|
|
861
|
-
.messages({
|
|
862
|
-
"string.empty": "Email Body cannot be empty",
|
|
863
|
-
"any.required": "Email Body is required",
|
|
864
|
-
}),
|
|
865
|
-
})
|
|
866
|
-
.unknown(true);
|
|
867
|
-
|
|
868
|
-
return validateEmailPreviewFields.validate(emailPreviewFields);
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
/****************************************************************************************
|
|
872
|
-
* CustomField validate
|
|
873
|
-
****************************************************************************************/
|
|
874
|
-
validateCustomField(customField: IEventCustomField): any {
|
|
875
|
-
let customFieldSchema;
|
|
876
|
-
customFieldSchema = Joi.object()
|
|
877
|
-
.options({ abortEarly: false })
|
|
878
|
-
.keys({
|
|
879
|
-
label: Joi.string()
|
|
880
|
-
.required()
|
|
881
|
-
.messages({ "string.empty": '"Question" is a required field' }),
|
|
882
|
-
type: Joi.string().required(),
|
|
883
|
-
// minLength: Joi.number(),
|
|
884
|
-
// maxLength: Joi.number(),
|
|
885
|
-
// minValue: Joi.number(),
|
|
886
|
-
// maxValue: Joi.number(),
|
|
887
|
-
options: Joi.array().items(Joi.string()).default([]),
|
|
888
|
-
required: Joi.boolean().required(),
|
|
889
|
-
active: Joi.boolean().required(),
|
|
890
|
-
})
|
|
891
|
-
.unknown(true);
|
|
892
|
-
return customFieldSchema.validate(customField);
|
|
893
|
-
},
|
|
894
|
-
validateRefundModal(refundField: IRefundModal): any {
|
|
895
|
-
let refundFieldSchema;
|
|
896
|
-
refundFieldSchema = Joi.object()
|
|
897
|
-
.options({ abortEarly: false })
|
|
898
|
-
.keys({
|
|
899
|
-
// ticketIds: Joi.array()
|
|
900
|
-
// .min(1)
|
|
901
|
-
// .items(Joi.string())
|
|
902
|
-
// .messages({ "array.min": "Select any one checkbox for refunding." }),
|
|
903
|
-
refundReason: Joi.string()
|
|
904
|
-
.required()
|
|
905
|
-
.messages({ "string.empty": '"Reason" is a required field' }),
|
|
906
|
-
})
|
|
907
|
-
.unknown(true);
|
|
908
|
-
return refundFieldSchema.validate(refundField);
|
|
909
|
-
},
|
|
910
|
-
validateEventDates(event: IEvent): any {
|
|
911
|
-
const schedule: IEventSchedule = event?.schedule as IEventSchedule;
|
|
912
|
-
const announceAt = schedule?.announceAt as number;
|
|
913
|
-
const ticketsAt = schedule?.ticketsAt as number;
|
|
914
|
-
const ticketsEndAt = schedule?.ticketsEndAt as number;
|
|
915
|
-
const performance = event?.performances?.[0];
|
|
916
|
-
const startsAt =
|
|
917
|
-
(performance?.schedule &&
|
|
918
|
-
(performance?.schedule[0]?.startsAt as number)) ||
|
|
919
|
-
0;
|
|
920
|
-
const endsAt =
|
|
921
|
-
event?.totalDays?.length === 0
|
|
922
|
-
? (event?.schedule?.endsAt as number)
|
|
923
|
-
: (performance?.schedule &&
|
|
924
|
-
(performance?.schedule[performance?.schedule?.length - 1]
|
|
925
|
-
?.endsAt as number)) ||
|
|
926
|
-
0;
|
|
927
|
-
/* Actions */
|
|
928
|
-
let message = "" as string;
|
|
929
|
-
|
|
930
|
-
performance?.schedule?.some((a, i) => {
|
|
931
|
-
if (a.startsAt < a.doorsAt) {
|
|
932
|
-
message =
|
|
933
|
-
performance?.schedule && performance?.schedule?.length > 1
|
|
934
|
-
? "Doors Open should be less than or equal to Event Begins on day " +
|
|
935
|
-
(i + 1) +
|
|
936
|
-
"."
|
|
937
|
-
: "Doors Open should be less than or equal to Event Begins.";
|
|
938
|
-
return message;
|
|
939
|
-
} else if (
|
|
940
|
-
a.startsAt >
|
|
941
|
-
(event?.totalDays?.length === 0
|
|
942
|
-
? (event?.schedule?.endsAt as number)
|
|
943
|
-
: a.endsAt)
|
|
944
|
-
) {
|
|
945
|
-
message =
|
|
946
|
-
performance?.schedule && performance?.schedule?.length > 1
|
|
947
|
-
? "Event Ends should be greater than Event Begins on day " +
|
|
948
|
-
(i + 1) +
|
|
949
|
-
"."
|
|
950
|
-
: "Event Ends should be greater than Event Begins.";
|
|
951
|
-
return message;
|
|
952
|
-
} else if (performance?.schedule && performance?.schedule?.length > 1) {
|
|
953
|
-
const aa =
|
|
954
|
-
performance?.schedule?.[i + 1]?.startsAt &&
|
|
955
|
-
performance?.schedule?.[i + 1]?.startsAt >
|
|
956
|
-
(event?.totalDays?.length === 0
|
|
957
|
-
? (event?.schedule?.endsAt as number)
|
|
958
|
-
: a.endsAt);
|
|
959
|
-
if (!aa && aa !== undefined) {
|
|
960
|
-
message =
|
|
961
|
-
"Day " +
|
|
962
|
-
(i + 2) +
|
|
963
|
-
" Event Begins should be greater than day " +
|
|
964
|
-
(i + 1) +
|
|
965
|
-
" Event Ends.";
|
|
966
|
-
return message;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
});
|
|
970
|
-
if (announceAt > startsAt) {
|
|
971
|
-
message = "Announcement Date should be less than Event Begins.";
|
|
972
|
-
return message;
|
|
973
|
-
} else if (ticketsAt < announceAt || ticketsAt > ticketsEndAt) {
|
|
974
|
-
message =
|
|
975
|
-
"Sales Begin should be greater than or equal to Announcement Date and less than Sales End.";
|
|
976
|
-
return message;
|
|
977
|
-
} else if (ticketsEndAt > endsAt) {
|
|
978
|
-
message = "Sales End should be less than or equal to Event Ends.";
|
|
979
|
-
return message;
|
|
980
|
-
}
|
|
981
|
-
return message;
|
|
982
|
-
},
|
|
983
|
-
};
|