@sellout/models 0.0.58 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/enums/OrderDeliveryMethodEnum.d.ts +5 -0
- package/.dist/enums/OrderDeliveryMethodEnum.js +11 -0
- package/.dist/enums/OrderDeliveryMethodEnum.js.map +1 -0
- package/.dist/enums/PaymentMethodTypeEnum.d.ts +5 -0
- package/.dist/enums/PaymentMethodTypeEnum.js +10 -0
- package/.dist/enums/PaymentMethodTypeEnum.js.map +1 -0
- package/.dist/enums/TierStatusEnum.d.ts +5 -0
- package/.dist/enums/TierStatusEnum.js +10 -0
- package/.dist/enums/TierStatusEnum.js.map +1 -0
- package/.dist/graphql/fragments/event.fragment.js +2 -0
- package/.dist/graphql/fragments/event.fragment.js.map +1 -1
- package/.dist/graphql/links/debounceLink.d.ts +3 -0
- package/.dist/graphql/links/debounceLink.js +9 -0
- package/.dist/graphql/links/debounceLink.js.map +1 -0
- package/.dist/graphql/mutations/acceptRole.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/acceptRole.mutation.js +21 -0
- package/.dist/graphql/mutations/acceptRole.mutation.js.map +1 -0
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js +13 -0
- package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js.map +1 -0
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js +13 -0
- package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createArtist.mutation.js +0 -8
- package/.dist/graphql/mutations/createArtist.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createEvent.mutation.js +0 -2
- package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createOrder.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createOrder.mutation.js +60 -0
- package/.dist/graphql/mutations/createOrder.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createOrganizationFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js +30 -0
- package/.dist/graphql/mutations/createOrganizationFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createPlatformFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createPlatformFee.mutation.js +30 -0
- package/.dist/graphql/mutations/createPlatformFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createRole.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createRole.mutation.js +19 -0
- package/.dist/graphql/mutations/createRole.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js +13 -0
- package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js +13 -0
- package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createVenue.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createVenue.mutation.js +35 -0
- package/.dist/graphql/mutations/createVenue.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createWebFlowSite.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js +42 -0
- package/.dist/graphql/mutations/createWebFlowSite.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js +13 -0
- package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deletePlatformFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js +13 -0
- package/.dist/graphql/mutations/deletePlatformFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteRole.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteRole.mutation.js +13 -0
- package/.dist/graphql/mutations/deleteRole.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js +13 -0
- package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js +14 -0
- package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js.map +1 -0
- package/.dist/graphql/mutations/forgotPassword.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/forgotPassword.mutation.js +13 -0
- package/.dist/graphql/mutations/forgotPassword.mutation.js.map +1 -0
- package/.dist/graphql/mutations/login.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/login.mutation.js +23 -0
- package/.dist/graphql/mutations/login.mutation.js.map +1 -0
- package/.dist/graphql/mutations/register.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/register.mutation.js +23 -0
- package/.dist/graphql/mutations/register.mutation.js.map +1 -0
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js +21 -0
- package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js.map +1 -0
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js +40 -0
- package/.dist/graphql/mutations/remapWebFlowSite.mutation.js.map +1 -0
- package/.dist/graphql/mutations/sendUserEmailVerification.d.ts +2 -0
- package/.dist/graphql/mutations/sendUserEmailVerification.js +15 -0
- package/.dist/graphql/mutations/sendUserEmailVerification.js.map +1 -0
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js +13 -0
- package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js.map +1 -0
- package/.dist/graphql/mutations/setUserOrgContextId.d.ts +2 -0
- package/.dist/graphql/mutations/setUserOrgContextId.js +15 -0
- package/.dist/graphql/mutations/setUserOrgContextId.js.map +1 -0
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js +15 -0
- package/.dist/graphql/mutations/setUserOrgContextId.mutation.js.map +1 -0
- package/.dist/graphql/mutations/setUserPassword.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/setUserPassword.mutation.js +15 -0
- package/.dist/graphql/mutations/setUserPassword.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateArtist.mutation.js +0 -8
- package/.dist/graphql/mutations/updateArtist.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateEvent.mutation.js +0 -2
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js +30 -0
- package/.dist/graphql/mutations/updateOrganizationFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updatePlatformFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js +30 -0
- package/.dist/graphql/mutations/updatePlatformFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateVenue.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateVenue.mutation.js +35 -0
- package/.dist/graphql/mutations/updateVenue.mutation.js.map +1 -0
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js +15 -0
- package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js.map +1 -0
- package/.dist/graphql/queries/analytics.query.d.ts +2 -0
- package/.dist/graphql/queries/analytics.query.js +30 -0
- package/.dist/graphql/queries/analytics.query.js.map +1 -0
- package/.dist/graphql/queries/artist.query.js +0 -8
- package/.dist/graphql/queries/artist.query.js.map +1 -1
- package/.dist/graphql/queries/artists.query.js +0 -8
- package/.dist/graphql/queries/artists.query.js.map +1 -1
- package/.dist/graphql/queries/customerProfile.d.ts +2 -0
- package/.dist/graphql/queries/customerProfile.js +42 -0
- package/.dist/graphql/queries/customerProfile.js.map +1 -0
- package/.dist/graphql/queries/customerProfile.query.d.ts +2 -0
- package/.dist/graphql/queries/customerProfile.query.js +25 -0
- package/.dist/graphql/queries/customerProfile.query.js.map +1 -0
- package/.dist/graphql/queries/event.query.js +3 -2
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/events.query.js +2 -7
- package/.dist/graphql/queries/events.query.js.map +1 -1
- package/.dist/graphql/queries/listStripeTerminalReaders.query.d.ts +2 -0
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js +21 -0
- package/.dist/graphql/queries/listStripeTerminalReaders.query.js.map +1 -0
- package/.dist/graphql/queries/orders.query.js +14 -0
- package/.dist/graphql/queries/orders.query.js.map +1 -1
- package/.dist/graphql/queries/organization.query.d.ts +2 -0
- package/.dist/graphql/queries/organization.query.js +49 -0
- package/.dist/graphql/queries/organization.query.js.map +1 -0
- package/.dist/graphql/queries/organizationFees.query.d.ts +2 -0
- package/.dist/graphql/queries/organizationFees.query.js +30 -0
- package/.dist/graphql/queries/organizationFees.query.js.map +1 -0
- package/.dist/graphql/queries/organizations.d.ts +2 -0
- package/.dist/graphql/queries/organizations.js +49 -0
- package/.dist/graphql/queries/organizations.js.map +1 -0
- package/.dist/graphql/queries/organizations.query.d.ts +2 -0
- package/.dist/graphql/queries/organizations.query.js +49 -0
- package/.dist/graphql/queries/organizations.query.js.map +1 -0
- package/.dist/graphql/queries/platformFees.query.d.ts +2 -0
- package/.dist/graphql/queries/platformFees.query.js +30 -0
- package/.dist/graphql/queries/platformFees.query.js.map +1 -0
- package/.dist/graphql/queries/profile.query.js +4 -1
- package/.dist/graphql/queries/profile.query.js.map +1 -1
- package/.dist/graphql/queries/profiles.query.js +1 -8
- package/.dist/graphql/queries/profiles.query.js.map +1 -1
- package/.dist/graphql/queries/publicEvent.query.d.ts +2 -0
- package/.dist/graphql/queries/publicEvent.query.js +57 -0
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -0
- package/.dist/graphql/queries/role.query.d.ts +2 -0
- package/.dist/graphql/queries/role.query.js +32 -0
- package/.dist/graphql/queries/role.query.js.map +1 -0
- package/.dist/graphql/queries/seating.query.d.ts +2 -0
- package/.dist/graphql/queries/seating.query.js +20 -0
- package/.dist/graphql/queries/seating.query.js.map +1 -0
- package/.dist/graphql/queries/userExists.query.d.ts +2 -0
- package/.dist/graphql/queries/userExists.query.js +18 -0
- package/.dist/graphql/queries/userExists.query.js.map +1 -0
- package/.dist/graphql/queries/userProfile.query.d.ts +2 -0
- package/.dist/graphql/queries/userProfile.query.js +33 -0
- package/.dist/graphql/queries/userProfile.query.js.map +1 -0
- package/.dist/graphql/queries/userRoles.query.d.ts +2 -0
- package/.dist/graphql/queries/userRoles.query.js +34 -0
- package/.dist/graphql/queries/userRoles.query.js.map +1 -0
- package/.dist/graphql/queries/venue.query.js +1 -2
- package/.dist/graphql/queries/venue.query.js.map +1 -1
- package/.dist/graphql/queries/venues.query.js +23 -36
- package/.dist/graphql/queries/venues.query.js.map +1 -1
- package/.dist/graphql/queries/webFlowSites.query.d.ts +2 -0
- package/.dist/graphql/queries/webFlowSites.query.js +24 -0
- package/.dist/graphql/queries/webFlowSites.query.js.map +1 -0
- package/.dist/interfaces/IAnalytics.d.ts +60 -0
- package/.dist/interfaces/IAnalytics.js +76 -0
- package/.dist/interfaces/IAnalytics.js.map +1 -0
- package/.dist/interfaces/IArtist.d.ts +0 -2
- package/.dist/interfaces/IArtist.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +31 -0
- package/.dist/interfaces/ICreateOrderParams.js +3 -0
- package/.dist/interfaces/ICreateOrderParams.js.map +1 -0
- package/.dist/interfaces/IEvent.d.ts +14 -2
- package/.dist/interfaces/IEvent.js.map +1 -1
- package/.dist/interfaces/IEventCustomField.d.ts +1 -1
- package/.dist/interfaces/IEventUpgrade.d.ts +1 -0
- package/.dist/interfaces/IFee.d.ts +5 -3
- package/.dist/interfaces/IFee.js +7 -9
- package/.dist/interfaces/IFee.js.map +1 -1
- package/.dist/interfaces/IOrder.d.ts +4 -0
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderState.d.ts +5 -5
- package/.dist/interfaces/IOrderState.js +5 -14
- package/.dist/interfaces/IOrderState.js.map +1 -1
- package/.dist/interfaces/IOrderTicket.d.ts +2 -0
- package/.dist/interfaces/IOrderTicket.js.map +1 -1
- package/.dist/interfaces/IOrderType.d.ts +1 -1
- package/.dist/interfaces/IOrderType.js +1 -1
- package/.dist/interfaces/IOrderType.js.map +1 -1
- package/.dist/interfaces/IOrderUpgrade.d.ts +2 -1
- package/.dist/interfaces/IPagination.d.ts +9 -0
- package/.dist/interfaces/IPagination.js +10 -0
- package/.dist/interfaces/IPagination.js.map +1 -1
- package/.dist/interfaces/IPayment.d.ts +13 -0
- package/.dist/interfaces/IPayment.js +3 -0
- package/.dist/interfaces/IPayment.js.map +1 -0
- package/.dist/interfaces/IRole.d.ts +15 -7
- package/.dist/interfaces/IRole.js +24 -0
- package/.dist/interfaces/IRole.js.map +1 -1
- package/.dist/interfaces/ISecondaryEmail.d.ts +4 -0
- package/.dist/interfaces/ISecondaryEmail.js +3 -0
- package/.dist/interfaces/ISecondaryEmail.js.map +1 -0
- package/.dist/interfaces/IStripeCustomer.d.ts +6 -0
- package/.dist/interfaces/IStripeCustomer.js +3 -0
- package/.dist/interfaces/IStripeCustomer.js.map +1 -0
- package/.dist/interfaces/IStripeSource.d.ts +10 -0
- package/.dist/interfaces/IStripeSource.js +3 -0
- package/.dist/interfaces/IStripeSource.js.map +1 -0
- package/.dist/interfaces/IStripeTerminalReader.d.ts +9 -0
- package/.dist/interfaces/IStripeTerminalReader.js +3 -0
- package/.dist/interfaces/IStripeTerminalReader.js.map +1 -0
- package/.dist/interfaces/ITicketTier.d.ts +2 -2
- package/.dist/interfaces/ITicketType.d.ts +1 -0
- package/.dist/interfaces/IUserProfile.d.ts +6 -2
- package/.dist/interfaces/IVenue.d.ts +2 -6
- package/.dist/schemas/Artist.d.ts +4 -130
- package/.dist/schemas/Artist.js +4 -2
- package/.dist/schemas/Artist.js.map +1 -1
- package/.dist/schemas/Event.d.ts +10 -0
- package/.dist/schemas/Event.js +10 -0
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Order.d.ts +83 -0
- package/.dist/schemas/Order.js +84 -0
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/schemas/SecondaryEmail.d.ts +12 -0
- package/.dist/schemas/SecondaryEmail.js +14 -0
- package/.dist/schemas/SecondaryEmail.js.map +1 -0
- package/.dist/schemas/UserProfile.d.ts +0 -130
- package/.dist/schemas/UserProfile.js +0 -2
- package/.dist/schemas/UserProfile.js.map +1 -1
- package/.dist/schemas/Venue.d.ts +4 -141
- package/.dist/schemas/Venue.js +4 -15
- package/.dist/schemas/Venue.js.map +1 -1
- package/.dist/sellout-proto.js +30411 -22856
- package/.dist/utils/AnalyticsUtil.d.ts +37 -0
- package/.dist/utils/AnalyticsUtil.js +557 -0
- package/.dist/utils/AnalyticsUtil.js.map +1 -0
- package/.dist/utils/EventUtil.d.ts +32 -13
- package/.dist/utils/EventUtil.js +76 -40
- package/.dist/utils/EventUtil.js.map +1 -1
- package/.dist/utils/FeeUtil.d.ts +4 -4
- package/.dist/utils/FeeUtil.js +4 -4
- package/.dist/utils/FeeUtil.js.map +1 -1
- package/.dist/utils/PaymentUtil.d.ts +13 -0
- package/.dist/utils/PaymentUtil.js +95 -0
- package/.dist/utils/PaymentUtil.js.map +1 -0
- package/.dist/utils/TierUtil.d.ts +11 -0
- package/.dist/utils/TierUtil.js +88 -0
- package/.dist/utils/TierUtil.js.map +1 -0
- package/package.json +6 -5
- package/src/enums/OrderDeliveryMethodEnum.ts +5 -0
- package/src/enums/PaymentMethodTypeEnum.ts +5 -0
- package/src/enums/TierStatusEnum.ts +5 -0
- package/src/graphql/fragments/event.fragment.ts +2 -0
- package/src/graphql/links/debounceLink.ts +4 -0
- package/src/graphql/mutations/acceptRole.mutation.ts +17 -0
- package/src/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.ts +9 -0
- package/src/graphql/mutations/attachStripePaymentMethod.mutation.ts +9 -0
- package/src/graphql/mutations/createArtist.mutation.ts +0 -8
- package/src/graphql/mutations/createEvent.mutation.ts +0 -2
- package/src/graphql/mutations/createOrder.mutation.ts +56 -0
- package/src/graphql/mutations/createOrganizationFee.mutation.ts +26 -0
- package/src/graphql/mutations/createPlatformFee.mutation.ts +26 -0
- package/src/graphql/mutations/createRole.mutation.ts +15 -0
- package/src/graphql/mutations/createStripeSetupIntent.mutation.ts +9 -0
- package/src/graphql/mutations/createStripeTerminalConnectionToken.mutation.ts +9 -0
- package/src/graphql/mutations/createVenue.mutation.ts +31 -0
- package/src/graphql/mutations/createWebFlowSite.mutation.ts +38 -0
- package/src/graphql/mutations/deleteOrganizationFee.mutation.ts +9 -0
- package/src/graphql/mutations/deletePlatformFee.mutation.ts +9 -0
- package/src/graphql/mutations/deleteRole.mutation.ts +9 -0
- package/src/graphql/mutations/deleteStripeTerminalReader.mutation.ts +9 -0
- package/src/graphql/mutations/deleteUnverifiedUser.mutation.ts +10 -0
- package/src/graphql/mutations/registerStripeTerminalReader.mutation.ts +17 -0
- package/src/graphql/mutations/remapWebFlowSite.mutation.ts +36 -0
- package/src/graphql/mutations/sendUserEmailVerification.ts +12 -0
- package/src/graphql/mutations/sendUserPhoneAuthentication.mutation.ts +9 -0
- package/src/graphql/mutations/setUserOrgContextId.mutation.ts +11 -0
- package/src/graphql/mutations/setUserPassword.mutation.ts +11 -0
- package/src/graphql/mutations/updateArtist.mutation.ts +0 -8
- package/src/graphql/mutations/updateEvent.mutation.ts +0 -2
- package/src/graphql/mutations/updateOrganizationFee.mutation.ts +26 -0
- package/src/graphql/mutations/updatePlatformFee.mutation.ts +26 -0
- package/src/graphql/mutations/updateVenue.mutation.ts +31 -0
- package/src/graphql/mutations/verifyUserPhoneAuthentication.mutation.ts +11 -0
- package/src/graphql/queries/analytics.query.ts +26 -0
- package/src/graphql/queries/artist.query.ts +0 -8
- package/src/graphql/queries/artists.query.ts +0 -8
- package/src/graphql/queries/customerProfile.query.ts +21 -0
- package/src/graphql/queries/event.query.ts +3 -2
- package/src/graphql/queries/events.query.ts +2 -7
- package/src/graphql/queries/listStripeTerminalReaders.query.ts +17 -0
- package/src/graphql/queries/orders.query.ts +14 -0
- package/src/graphql/queries/organizationFees.query.ts +26 -0
- package/src/graphql/queries/organizations.query.ts +45 -0
- package/src/graphql/queries/platformFees.query.ts +26 -0
- package/src/graphql/queries/profile.query.ts +4 -1
- package/src/graphql/queries/profiles.query.ts +1 -8
- package/src/graphql/queries/publicEvent.query.ts +53 -0
- package/src/graphql/queries/role.query.ts +28 -0
- package/src/graphql/queries/seating.query.ts +16 -0
- package/src/graphql/queries/userExists.query.ts +14 -0
- package/src/graphql/queries/userProfile.query.ts +29 -0
- package/src/graphql/queries/userRoles.query.ts +30 -0
- package/src/graphql/queries/venue.query.ts +1 -2
- package/src/graphql/queries/venues.query.ts +23 -36
- package/src/graphql/queries/webFlowSites.query.ts +20 -0
- package/src/interfaces/IAnalytics.ts +96 -0
- package/src/interfaces/IArtist.ts +0 -2
- package/src/interfaces/ICreateOrderParams.ts +34 -0
- package/src/interfaces/IEvent.ts +17 -2
- package/src/interfaces/IEventCustomField.ts +1 -1
- package/src/interfaces/IEventUpgrade.ts +1 -0
- package/src/interfaces/IFee.ts +4 -6
- package/src/interfaces/IOrder.ts +8 -4
- package/src/interfaces/IOrderState.ts +5 -14
- package/src/interfaces/IOrderTicket.ts +2 -0
- package/src/interfaces/IOrderType.ts +1 -1
- package/src/interfaces/IOrderUpgrade.ts +2 -1
- package/src/interfaces/IPagination.ts +11 -0
- package/src/interfaces/IPayment.ts +13 -0
- package/src/interfaces/IRole.ts +26 -8
- package/src/interfaces/IStripeCustomer.ts +7 -0
- package/src/interfaces/IStripeSource.ts +10 -0
- package/src/interfaces/IStripeTerminalReader.ts +9 -0
- package/src/interfaces/ITicketTier.ts +2 -2
- package/src/interfaces/ITicketType.ts +1 -0
- package/src/interfaces/IUserProfile.ts +8 -2
- package/src/interfaces/IVenue.ts +2 -6
- package/src/proto/artist.proto +1 -2
- package/src/proto/broadcast.proto +0 -13
- package/src/proto/common.proto +15 -0
- package/src/proto/event.proto +2 -0
- package/src/proto/fee.proto +16 -0
- package/src/proto/order.proto +78 -4
- package/src/proto/stripe.proto +135 -0
- package/src/proto/venue.proto +7 -10
- package/src/schemas/Artist.ts +4 -2
- package/src/schemas/Event.ts +10 -0
- package/src/schemas/Order.ts +85 -0
- package/src/schemas/UserProfile.ts +0 -2
- package/src/schemas/Venue.ts +4 -15
- package/src/utils/AnalyticsUtil.ts +838 -0
- package/src/utils/EventUtil.ts +99 -66
- package/src/utils/FeeUtil.ts +4 -4
- package/src/utils/PaymentUtil.ts +122 -0
- package/src/utils/TierUtil.ts +77 -0
- package/.dist/utils/fee-util-broken-but-why.d.ts +0 -8
- package/.dist/utils/fee-util-broken-but-why.js +0 -38
- package/.dist/utils/fee-util-broken-but-why.js.map +0 -1
- package/src/interfaces/IMetrics.ts +0 -33
- /package/src/graphql/mutations/{forgotPassword.ts → forgotPassword.mutation.ts} +0 -0
- /package/src/graphql/mutations/{login.ts → login.mutation.ts} +0 -0
- /package/src/graphql/mutations/{register.ts → register.mutation.ts} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation acceptRole($roleId: String!, $accept: Boolean!) {
|
|
5
|
+
acceptRole(roleId: $roleId, accept: $accept) {
|
|
6
|
+
_id
|
|
7
|
+
userId
|
|
8
|
+
userEmail
|
|
9
|
+
token
|
|
10
|
+
orgId
|
|
11
|
+
role
|
|
12
|
+
acceptedAt
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
export default mutation;
|
|
@@ -39,7 +39,6 @@ const mutation = gql`
|
|
|
39
39
|
...TicketExchange
|
|
40
40
|
...Fees
|
|
41
41
|
...Artists
|
|
42
|
-
...Metrics
|
|
43
42
|
...WebFlowEntity
|
|
44
43
|
}
|
|
45
44
|
}
|
|
@@ -55,7 +54,6 @@ const mutation = gql`
|
|
|
55
54
|
${Event.fragments.exchange}
|
|
56
55
|
${Event.fragments.fees}
|
|
57
56
|
${Event.fragments.artists}
|
|
58
|
-
${Event.fragments.metrics}
|
|
59
57
|
${Event.fragments.webFlowEntity}
|
|
60
58
|
`;
|
|
61
59
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation createOrder($params: OrderInput!) {
|
|
5
|
+
createOrder(params: $params) {
|
|
6
|
+
clientSecret
|
|
7
|
+
order {
|
|
8
|
+
_id
|
|
9
|
+
userId
|
|
10
|
+
orgId
|
|
11
|
+
eventId
|
|
12
|
+
createdAt
|
|
13
|
+
stripeChargeId
|
|
14
|
+
feeIds
|
|
15
|
+
tickets {
|
|
16
|
+
_id
|
|
17
|
+
name
|
|
18
|
+
ticketTypeId
|
|
19
|
+
ticketTierId
|
|
20
|
+
price
|
|
21
|
+
seat
|
|
22
|
+
refund {
|
|
23
|
+
refunded
|
|
24
|
+
refundedAt
|
|
25
|
+
refundedBy
|
|
26
|
+
refundedAmount
|
|
27
|
+
}
|
|
28
|
+
scan {
|
|
29
|
+
scanned
|
|
30
|
+
scannedAt
|
|
31
|
+
scannedBy
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
upgrades {
|
|
35
|
+
_id
|
|
36
|
+
name
|
|
37
|
+
upgradeId
|
|
38
|
+
price
|
|
39
|
+
refund {
|
|
40
|
+
refunded
|
|
41
|
+
refundedAt
|
|
42
|
+
refundedBy
|
|
43
|
+
refundedAmount
|
|
44
|
+
}
|
|
45
|
+
scan {
|
|
46
|
+
scanned
|
|
47
|
+
scannedAt
|
|
48
|
+
scannedBy
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
export default mutation;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation createOrganizationFee($orgId: String!, $fee: FeeInput!) {
|
|
5
|
+
createOrganizationFee(orgId: $orgId, fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export default mutation;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
mutation createPlatformFee($fee: FeeInput!) {
|
|
5
|
+
createPlatformFee(fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export default query;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation createVenue($venue: VenueInput!) {
|
|
5
|
+
createVenue(venue: $venue) {
|
|
6
|
+
_id
|
|
7
|
+
orgId
|
|
8
|
+
name
|
|
9
|
+
description
|
|
10
|
+
capacity
|
|
11
|
+
address {
|
|
12
|
+
address1
|
|
13
|
+
address2
|
|
14
|
+
city
|
|
15
|
+
state
|
|
16
|
+
zip
|
|
17
|
+
country
|
|
18
|
+
phone
|
|
19
|
+
lat
|
|
20
|
+
lng
|
|
21
|
+
placeId
|
|
22
|
+
timezone
|
|
23
|
+
}
|
|
24
|
+
url
|
|
25
|
+
imageUrls
|
|
26
|
+
venueGlobalId
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
export default mutation;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
mutation createWebFlowSite($webFlowId: String!, $orgId: String!) {
|
|
5
|
+
createWebFlowSite(webFlowId: $webFlowId, orgId: $orgId) {
|
|
6
|
+
_id
|
|
7
|
+
orgId
|
|
8
|
+
sites {
|
|
9
|
+
name
|
|
10
|
+
webFlowId
|
|
11
|
+
enabled
|
|
12
|
+
createdAt
|
|
13
|
+
updatedAt
|
|
14
|
+
previewUrl
|
|
15
|
+
domains {
|
|
16
|
+
lastPublishedAt
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
entities {
|
|
21
|
+
_id
|
|
22
|
+
name
|
|
23
|
+
selloutId
|
|
24
|
+
entityType
|
|
25
|
+
alwaysPublishTo
|
|
26
|
+
webFlowIds {
|
|
27
|
+
webFlowSiteId
|
|
28
|
+
webFlowEntityId
|
|
29
|
+
slug
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
createdAt
|
|
33
|
+
updatedAt
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
export default query;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
// need to update this mutation to delete userProfiles
|
|
4
|
+
const query = gql`
|
|
5
|
+
mutation deleteUnverifiedUser($userId: String, $email: String, $phoneNumber: String) {
|
|
6
|
+
deleteUnverifiedUser(userId: $userId, email: $email, phoneNumber: $phoneNumber)
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
|
|
10
|
+
export default query;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation registerStripeTerminalReader($label: String, $registrationCode: String) {
|
|
5
|
+
registerStripeTerminalReader(label: $label, registrationCode: $registrationCode) {
|
|
6
|
+
id
|
|
7
|
+
label
|
|
8
|
+
type
|
|
9
|
+
location
|
|
10
|
+
serialNumber
|
|
11
|
+
status
|
|
12
|
+
ipAddress
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
export default mutation;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
mutation remapWebFlowSite($webFlowId: String!) {
|
|
5
|
+
remapWebFlowSite(webFlowId: $webFlowId) {
|
|
6
|
+
_id
|
|
7
|
+
orgId
|
|
8
|
+
sites {
|
|
9
|
+
name
|
|
10
|
+
webFlowId
|
|
11
|
+
enabled
|
|
12
|
+
createdAt
|
|
13
|
+
updatedAt
|
|
14
|
+
previewUrl
|
|
15
|
+
domains {
|
|
16
|
+
lastPublishedAt
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
entities {
|
|
21
|
+
_id
|
|
22
|
+
name
|
|
23
|
+
selloutId
|
|
24
|
+
entityType
|
|
25
|
+
alwaysPublishTo
|
|
26
|
+
webFlowIds {
|
|
27
|
+
webFlowSiteId
|
|
28
|
+
webFlowEntityId
|
|
29
|
+
slug
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
export default query;
|
|
@@ -38,7 +38,6 @@ const mutation = gql`
|
|
|
38
38
|
...TicketExchange
|
|
39
39
|
...Fees
|
|
40
40
|
...Artists
|
|
41
|
-
...Metrics
|
|
42
41
|
...WebFlowEntity
|
|
43
42
|
}
|
|
44
43
|
}
|
|
@@ -54,7 +53,6 @@ const mutation = gql`
|
|
|
54
53
|
${Event.fragments.exchange}
|
|
55
54
|
${Event.fragments.fees}
|
|
56
55
|
${Event.fragments.artists}
|
|
57
|
-
${Event.fragments.metrics}
|
|
58
56
|
${Event.fragments.webFlowEntity}
|
|
59
57
|
`;
|
|
60
58
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation updateOrganizationFee($orgId: String!, $fee: FeeInput!) {
|
|
5
|
+
updateOrganizationFee(orgId: $orgId, fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export default mutation;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation updatePlatformFee($fee: FeeInput!) {
|
|
5
|
+
updatePlatformFee(fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export default mutation;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation updateVenue($venue: VenueInput!) {
|
|
5
|
+
updateVenue(venue: $venue) {
|
|
6
|
+
_id
|
|
7
|
+
orgId
|
|
8
|
+
name
|
|
9
|
+
description
|
|
10
|
+
capacity
|
|
11
|
+
address {
|
|
12
|
+
address1
|
|
13
|
+
address2
|
|
14
|
+
city
|
|
15
|
+
state
|
|
16
|
+
zip
|
|
17
|
+
country
|
|
18
|
+
phone
|
|
19
|
+
lat
|
|
20
|
+
lng
|
|
21
|
+
placeId
|
|
22
|
+
timezone
|
|
23
|
+
}
|
|
24
|
+
url
|
|
25
|
+
imageUrls
|
|
26
|
+
venueGlobalId
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
export default mutation;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
mutation verifyUserPhoneAuthentication($email: String, $phoneNumber: String, $phoneVerificationToken: String!){
|
|
5
|
+
verifyUserPhoneAuthentication(email: $email, phoneNumber: $phoneNumber, phoneVerificationToken: $phoneVerificationToken) {
|
|
6
|
+
token
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
export default query;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query Analytics($query: AnalyticsQueryInput!) {
|
|
5
|
+
orderAnalytics(query: $query) {
|
|
6
|
+
label
|
|
7
|
+
type
|
|
8
|
+
interval
|
|
9
|
+
intervalOptions
|
|
10
|
+
coordinates {
|
|
11
|
+
x
|
|
12
|
+
y
|
|
13
|
+
}
|
|
14
|
+
segments {
|
|
15
|
+
label
|
|
16
|
+
type
|
|
17
|
+
coordinates {
|
|
18
|
+
x
|
|
19
|
+
y
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export default query;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query userProfiles($query: UserProfileQueryInput) {
|
|
5
|
+
userProfiles(query: $query) {
|
|
6
|
+
_id
|
|
7
|
+
userId
|
|
8
|
+
imageUrl
|
|
9
|
+
user {
|
|
10
|
+
_id
|
|
11
|
+
email
|
|
12
|
+
firstName
|
|
13
|
+
lastName
|
|
14
|
+
phoneNumber
|
|
15
|
+
}
|
|
16
|
+
stripeCustomerId
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
export default query;
|