@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
package/src/proto/stripe.proto
CHANGED
|
@@ -62,6 +62,7 @@ message RetrieveStripeConnectAccountResponse {
|
|
|
62
62
|
StripeConnectAccount stripeConnectAccount = 2;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
|
|
65
66
|
/***************************************************************************************
|
|
66
67
|
Charge
|
|
67
68
|
****************************************************************************************/
|
|
@@ -164,18 +165,152 @@ message DeleteStripeSourceResponse {
|
|
|
164
165
|
repeated Error errors = 1;
|
|
165
166
|
}
|
|
166
167
|
|
|
168
|
+
/***************************************************************************************
|
|
169
|
+
Payment Method
|
|
170
|
+
****************************************************************************************/
|
|
171
|
+
|
|
172
|
+
message CreateStripeSetupIntentRequest {
|
|
173
|
+
string spanContext = 0;
|
|
174
|
+
string userId = 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
message CreateStripeSetupIntentResponse {
|
|
178
|
+
StatusCode status = 0;
|
|
179
|
+
repeated Error errors = 1;
|
|
180
|
+
string clientSecret = 2;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
message AttachStripePaymentMethodRequest {
|
|
184
|
+
string spanContext = 0;
|
|
185
|
+
string userId = 1;
|
|
186
|
+
string paymentMethodId = 2;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message AttachStripePaymentMethodResponse {
|
|
190
|
+
StatusCode status = 0;
|
|
191
|
+
repeated Error errors = 1;
|
|
192
|
+
bool success = 2;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/***************************************************************************************
|
|
196
|
+
Payment Intent
|
|
197
|
+
****************************************************************************************/
|
|
198
|
+
|
|
199
|
+
message CreateStripePaymentIntentRequest {
|
|
200
|
+
string spanContext = 0;
|
|
201
|
+
string orgId = 1;
|
|
202
|
+
string userId = 2;
|
|
203
|
+
// The total amount being processed
|
|
204
|
+
// i.e. the order total, etc
|
|
205
|
+
int32 amount = 3;
|
|
206
|
+
// The amount the promoter will recieive
|
|
207
|
+
// (subtracts sellout and stripe fees)
|
|
208
|
+
int32 transferAmount = 4;
|
|
209
|
+
// Amount sellout takes as a fee
|
|
210
|
+
int32 feeAmount = 5;
|
|
211
|
+
string description = 6;
|
|
212
|
+
string currency = 7;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
message CreateStripePaymentIntentResponse {
|
|
216
|
+
StatusCode status = 0;
|
|
217
|
+
repeated Error errors = 1;
|
|
218
|
+
string paymentIntentId = 2;
|
|
219
|
+
string clientSecret = 3;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/***************************************************************************************
|
|
223
|
+
Terminal
|
|
224
|
+
****************************************************************************************/
|
|
225
|
+
|
|
226
|
+
message StripeTerminalReader {
|
|
227
|
+
string id = 0;
|
|
228
|
+
string label = 1;
|
|
229
|
+
string type = 2;
|
|
230
|
+
string location = 3;
|
|
231
|
+
string serialNumber = 4;
|
|
232
|
+
string status = 5;
|
|
233
|
+
string ipAddress = 6;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
message RegisterStripeTerminalReaderRequest {
|
|
237
|
+
string spanContext = 0;
|
|
238
|
+
string userId = 1;
|
|
239
|
+
string orgId = 2;
|
|
240
|
+
string label = 3;
|
|
241
|
+
string registrationCode = 4;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
message RegisterStripeTerminalReaderResponse{
|
|
245
|
+
StatusCode status = 0;
|
|
246
|
+
repeated Error errors = 1;
|
|
247
|
+
StripeTerminalReader reader = 2;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
message ListStripeTerminalReadersRequest {
|
|
251
|
+
string spanContext = 0;
|
|
252
|
+
string userId = 1;
|
|
253
|
+
string orgId = 2;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message ListStripeTerminalReadersResponse{
|
|
257
|
+
StatusCode status = 0;
|
|
258
|
+
repeated Error errors = 1;
|
|
259
|
+
repeated StripeTerminalReader readers = 2;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message DeleteStripeTerminalReaderRequest {
|
|
263
|
+
string spanContext = 0;
|
|
264
|
+
string userId = 1;
|
|
265
|
+
string orgId = 2;
|
|
266
|
+
string readerId = 3;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
message DeleteStripeTerminalReaderResponse{
|
|
270
|
+
StatusCode status = 0;
|
|
271
|
+
repeated Error errors = 1;
|
|
272
|
+
bool success = 2;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
message CreateStripeTerminalConnectionTokenRequest {
|
|
276
|
+
string spanContext = 0;
|
|
277
|
+
string userId = 1;
|
|
278
|
+
string orgId = 2;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
message CreateStripeTerminalConnectionTokenResponse{
|
|
282
|
+
StatusCode status = 0;
|
|
283
|
+
repeated Error errors = 1;
|
|
284
|
+
string connectionToken = 2;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
167
288
|
/***************************************************************************************
|
|
168
289
|
RPC
|
|
169
290
|
****************************************************************************************/
|
|
170
291
|
|
|
171
292
|
service StripeService {
|
|
293
|
+
// Connect Account
|
|
172
294
|
rpc connectStripeUser(ConnectStripeUserRequest) returns (ConnectStripeUserResponse) {}
|
|
173
295
|
rpc retrieveStripeConnectAccount(RetrieveStripeConnectAccountRequest) returns (RetrieveStripeConnectAccountResponse) {}
|
|
296
|
+
// Charge
|
|
174
297
|
rpc createStripeCharge(CreateStripeChargeRequest) returns (CreateStripeChargeResponse) {}
|
|
175
298
|
rpc refundStripeCharge(RefundStripeChargeRequest) returns (RefundStripeChargeResponse) {}
|
|
176
299
|
rpc retrieveStripeCharge(RetrieveStripeChargeRequest) returns (RetrieveStripeChargeResponse) {}
|
|
300
|
+
// Customer
|
|
177
301
|
rpc createStripeCustomer(CreateStripeCustomerRequest) returns (CreateStripeCustomerResponse) {}
|
|
178
302
|
rpc retrieveStripeCustomer(RetrieveStripeCustomerRequest) returns (RetrieveStripeCustomerResponse) {}
|
|
179
303
|
rpc createStripeSource(CreateStripeSourceRequest) returns (CreateStripeSourceResponse) {}
|
|
180
304
|
rpc deleteStripeSource(DeleteStripeSourceRequest) returns (DeleteStripeSourceResponse) {}
|
|
305
|
+
// Payment Intent
|
|
306
|
+
rpc createStripePaymentIntent(CreateStripePaymentIntentRequest) returns (CreateStripePaymentIntentResponse) {}
|
|
307
|
+
// Payment Method
|
|
308
|
+
rpc createStripeSetupIntent(CreateStripeSetupIntentRequest) returns (CreateStripeSetupIntentResponse) {}
|
|
309
|
+
rpc attachStripePaymentMethod(AttachStripePaymentMethodRequest) returns (AttachStripePaymentMethodResponse) {}
|
|
310
|
+
// Terminal
|
|
311
|
+
rpc registerStripeTerminalReader(RegisterStripeTerminalReaderRequest) returns (RegisterStripeTerminalReaderResponse) {}
|
|
312
|
+
rpc listStripeTerminalReaders(ListStripeTerminalReadersRequest) returns (ListStripeTerminalReadersResponse) {}
|
|
313
|
+
rpc deleteStripeTerminalReader(DeleteStripeTerminalReaderRequest) returns (DeleteStripeTerminalReaderResponse) {}
|
|
314
|
+
rpc createStripeTerminalConnectionToken(CreateStripeTerminalConnectionTokenRequest) returns (CreateStripeTerminalConnectionTokenResponse) {}
|
|
315
|
+
|
|
181
316
|
}
|
package/src/proto/venue.proto
CHANGED
|
@@ -6,17 +6,14 @@ import "common.proto";
|
|
|
6
6
|
|
|
7
7
|
message Venue {
|
|
8
8
|
string _id = 0;
|
|
9
|
-
string
|
|
10
|
-
string
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
repeated string
|
|
9
|
+
string orgId = 1;
|
|
10
|
+
string name = 2;
|
|
11
|
+
string description = 3;
|
|
12
|
+
int32 capacity = 4;
|
|
13
|
+
string url = 5;
|
|
14
|
+
repeated string imageUrls = 6;
|
|
15
15
|
string venueGlobalId = 7;
|
|
16
|
-
|
|
17
|
-
int32 venueFee = 9;
|
|
18
|
-
Address address = 10;
|
|
19
|
-
Metrics metrics = 11;
|
|
16
|
+
Address address = 8;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
// Create Venue
|
package/src/schemas/Artist.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import shortid from 'shortid';
|
|
2
|
-
import Metrics from './Metrics';
|
|
3
2
|
|
|
4
3
|
const ArtistPressKit = {
|
|
5
4
|
_id: {
|
|
@@ -89,6 +88,10 @@ export default {
|
|
|
89
88
|
type: String,
|
|
90
89
|
required: false,
|
|
91
90
|
},
|
|
91
|
+
type: {
|
|
92
|
+
type: String,
|
|
93
|
+
required: false,
|
|
94
|
+
},
|
|
92
95
|
name: {
|
|
93
96
|
type: String,
|
|
94
97
|
required: false,
|
|
@@ -112,5 +115,4 @@ export default {
|
|
|
112
115
|
type: String,
|
|
113
116
|
default: null,
|
|
114
117
|
},
|
|
115
|
-
metrics: Metrics,
|
|
116
118
|
};
|
package/src/schemas/Event.ts
CHANGED
|
@@ -216,6 +216,11 @@ const EventUpgrade = {
|
|
|
216
216
|
required: true,
|
|
217
217
|
default: true,
|
|
218
218
|
},
|
|
219
|
+
rollFees: {
|
|
220
|
+
type: Boolean,
|
|
221
|
+
required: true,
|
|
222
|
+
default: false,
|
|
223
|
+
},
|
|
219
224
|
};
|
|
220
225
|
|
|
221
226
|
export const PerformanceSchedule = {
|
|
@@ -374,6 +379,11 @@ const TicketType = {
|
|
|
374
379
|
},
|
|
375
380
|
],
|
|
376
381
|
tiers: [TicketTier],
|
|
382
|
+
rollFees: {
|
|
383
|
+
type: Boolean,
|
|
384
|
+
required: true,
|
|
385
|
+
default: false,
|
|
386
|
+
},
|
|
377
387
|
};
|
|
378
388
|
|
|
379
389
|
|
package/src/schemas/Order.ts
CHANGED
|
@@ -40,6 +40,11 @@ const Scan = {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const OrderTicket = {
|
|
43
|
+
_id: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: false,
|
|
46
|
+
default: shortid.generate,
|
|
47
|
+
},
|
|
43
48
|
name: {
|
|
44
49
|
type: String,
|
|
45
50
|
required: true,
|
|
@@ -56,6 +61,16 @@ const OrderTicket = {
|
|
|
56
61
|
type: Number,
|
|
57
62
|
required: true,
|
|
58
63
|
},
|
|
64
|
+
rollFees: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
required: true,
|
|
67
|
+
default: false,
|
|
68
|
+
},
|
|
69
|
+
paymentId: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: false,
|
|
72
|
+
default: null,
|
|
73
|
+
},
|
|
59
74
|
seat: {
|
|
60
75
|
type: String,
|
|
61
76
|
required: false,
|
|
@@ -70,6 +85,11 @@ const OrderTicket = {
|
|
|
70
85
|
};
|
|
71
86
|
|
|
72
87
|
const OrderUpgrade = {
|
|
88
|
+
_id: {
|
|
89
|
+
type: String,
|
|
90
|
+
required: false,
|
|
91
|
+
default: shortid.generate,
|
|
92
|
+
},
|
|
73
93
|
name: {
|
|
74
94
|
type: String,
|
|
75
95
|
required: true,
|
|
@@ -82,6 +102,16 @@ const OrderUpgrade = {
|
|
|
82
102
|
type: Number,
|
|
83
103
|
required: true,
|
|
84
104
|
},
|
|
105
|
+
rollFees: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
required: true,
|
|
108
|
+
default: false,
|
|
109
|
+
},
|
|
110
|
+
paymentId: {
|
|
111
|
+
type: String,
|
|
112
|
+
required: false,
|
|
113
|
+
default: null,
|
|
114
|
+
},
|
|
85
115
|
scan: Scan,
|
|
86
116
|
refund: Refund,
|
|
87
117
|
state: {
|
|
@@ -91,6 +121,11 @@ const OrderUpgrade = {
|
|
|
91
121
|
};
|
|
92
122
|
|
|
93
123
|
const OrderCustomField = {
|
|
124
|
+
_id: {
|
|
125
|
+
type: String,
|
|
126
|
+
required: false,
|
|
127
|
+
default: shortid.generate,
|
|
128
|
+
},
|
|
94
129
|
label: {
|
|
95
130
|
type: String,
|
|
96
131
|
required: true,
|
|
@@ -109,6 +144,51 @@ const OrderCustomField = {
|
|
|
109
144
|
},
|
|
110
145
|
};
|
|
111
146
|
|
|
147
|
+
const Payment = {
|
|
148
|
+
_id: {
|
|
149
|
+
type: String,
|
|
150
|
+
required: false,
|
|
151
|
+
default: shortid.generate,
|
|
152
|
+
},
|
|
153
|
+
paymentIntentId: {
|
|
154
|
+
type: String,
|
|
155
|
+
required: false,
|
|
156
|
+
},
|
|
157
|
+
amount: {
|
|
158
|
+
type: Number,
|
|
159
|
+
required: false,
|
|
160
|
+
},
|
|
161
|
+
transferAmount: {
|
|
162
|
+
type: Number,
|
|
163
|
+
required: false,
|
|
164
|
+
},
|
|
165
|
+
feeAmount: {
|
|
166
|
+
type: Number,
|
|
167
|
+
required: false,
|
|
168
|
+
},
|
|
169
|
+
feeIds: [{
|
|
170
|
+
type: String,
|
|
171
|
+
required: false,
|
|
172
|
+
default: [],
|
|
173
|
+
}],
|
|
174
|
+
createdAt: {
|
|
175
|
+
type: Number,
|
|
176
|
+
required: false,
|
|
177
|
+
},
|
|
178
|
+
createdBy: {
|
|
179
|
+
type: String,
|
|
180
|
+
required: false,
|
|
181
|
+
},
|
|
182
|
+
promotionCode: {
|
|
183
|
+
type: String,
|
|
184
|
+
required: false,
|
|
185
|
+
},
|
|
186
|
+
paymentMethodType: {
|
|
187
|
+
type: String,
|
|
188
|
+
required: true,
|
|
189
|
+
},
|
|
190
|
+
}
|
|
191
|
+
|
|
112
192
|
export default {
|
|
113
193
|
_id: {
|
|
114
194
|
type: String,
|
|
@@ -200,6 +280,11 @@ export default {
|
|
|
200
280
|
type: String,
|
|
201
281
|
required: true,
|
|
202
282
|
},
|
|
283
|
+
deliveryMethod: {
|
|
284
|
+
type: String,
|
|
285
|
+
required: true,
|
|
286
|
+
},
|
|
203
287
|
address: Address,
|
|
204
288
|
customFields: [OrderCustomField],
|
|
289
|
+
payments: [Payment],
|
|
205
290
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import shortid from 'shortid';
|
|
2
2
|
import Address from './Address';
|
|
3
|
-
import Metrics from './Metrics';
|
|
4
3
|
|
|
5
4
|
export default {
|
|
6
5
|
_id: {
|
|
@@ -42,7 +41,6 @@ export default {
|
|
|
42
41
|
required: false,
|
|
43
42
|
default: null,
|
|
44
43
|
},
|
|
45
|
-
metrics: [Metrics],
|
|
46
44
|
orgIds: [{
|
|
47
45
|
type: String,
|
|
48
46
|
required: false,
|
package/src/schemas/Venue.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import shortid from 'shortid';
|
|
2
2
|
import Address from './Address';
|
|
3
|
-
import Metrics from './Metrics';
|
|
4
3
|
|
|
5
4
|
export default {
|
|
6
5
|
_id: {
|
|
7
6
|
type: String,
|
|
8
7
|
default: shortid.generate,
|
|
9
8
|
},
|
|
9
|
+
orgId: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: null,
|
|
12
|
+
},
|
|
10
13
|
name: {
|
|
11
14
|
type: String,
|
|
12
15
|
required: false,
|
|
@@ -28,23 +31,10 @@ export default {
|
|
|
28
31
|
type: String,
|
|
29
32
|
},
|
|
30
33
|
],
|
|
31
|
-
seatingMapIds: [
|
|
32
|
-
{
|
|
33
|
-
type: String,
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
34
|
venueGlobalId: {
|
|
37
35
|
type: String,
|
|
38
36
|
default: null,
|
|
39
37
|
},
|
|
40
|
-
orgId: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: null,
|
|
43
|
-
},
|
|
44
|
-
venueFee: {
|
|
45
|
-
type: Number,
|
|
46
|
-
default: null,
|
|
47
|
-
},
|
|
48
38
|
createdAt: {
|
|
49
39
|
type: Number,
|
|
50
40
|
default: null,
|
|
@@ -54,5 +44,4 @@ export default {
|
|
|
54
44
|
default: null,
|
|
55
45
|
},
|
|
56
46
|
address: Address,
|
|
57
|
-
metrics: Metrics,
|
|
58
47
|
};
|