@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.
Files changed (1054) hide show
  1. package/{src/schemas → mongo}/Address.ts +57 -62
  2. package/{src/schemas → mongo}/Metrics.ts +0 -6
  3. package/package.json +4 -25
  4. package/{src/proto → proto}/artist.proto +7 -21
  5. package/{src/proto → proto}/broadcast.proto +13 -50
  6. package/{src/proto → proto}/common.proto +59 -76
  7. package/proto/email.proto +179 -0
  8. package/{src/proto → proto}/error.proto +0 -1
  9. package/proto/event.proto +270 -0
  10. package/{src/proto → proto}/fee.proto +0 -71
  11. package/{src/proto → proto}/file-upload.proto +0 -2
  12. package/proto/order.proto +272 -0
  13. package/{src/proto → proto}/organization.proto +1 -58
  14. package/{src/proto → proto}/role.proto +4 -48
  15. package/{src/proto → proto}/seating.proto +0 -42
  16. package/proto/stripe.proto +181 -0
  17. package/proto/task.proto +39 -0
  18. package/proto/twilio.proto +43 -0
  19. package/{src/proto → proto}/user-profile.proto +2 -48
  20. package/{src/proto → proto}/user.proto +1 -204
  21. package/{src/proto → proto}/venue.proto +10 -21
  22. package/utils/EventUtil.ts +186 -0
  23. package/utils/FeeUtil.ts +34 -0
  24. package/utils/OrderUtil.ts +226 -0
  25. package/.dist/enums/ContactsScreenEnum.d.ts +0 -5
  26. package/.dist/enums/ContactsScreenEnum.js +0 -10
  27. package/.dist/enums/ContactsScreenEnum.js.map +0 -1
  28. package/.dist/enums/CustomFieldTypeEnum.d.ts +0 -6
  29. package/.dist/enums/CustomFieldTypeEnum.js +0 -11
  30. package/.dist/enums/CustomFieldTypeEnum.js.map +0 -1
  31. package/.dist/enums/DefaultArtistImageUrls.d.ts +0 -5
  32. package/.dist/enums/DefaultArtistImageUrls.js +0 -11
  33. package/.dist/enums/DefaultArtistImageUrls.js.map +0 -1
  34. package/.dist/enums/DefaultEventImageUrls.d.ts +0 -4
  35. package/.dist/enums/DefaultEventImageUrls.js +0 -10
  36. package/.dist/enums/DefaultEventImageUrls.js.map +0 -1
  37. package/.dist/enums/DefaultVenueImageUrls.d.ts +0 -3
  38. package/.dist/enums/DefaultVenueImageUrls.js +0 -9
  39. package/.dist/enums/DefaultVenueImageUrls.js.map +0 -1
  40. package/.dist/enums/DropDownEnum.d.ts +0 -3
  41. package/.dist/enums/DropDownEnum.js +0 -8
  42. package/.dist/enums/DropDownEnum.js.map +0 -1
  43. package/.dist/enums/EPurchasePortalModes.d.ts +0 -8
  44. package/.dist/enums/EPurchasePortalModes.js +0 -15
  45. package/.dist/enums/EPurchasePortalModes.js.map +0 -1
  46. package/.dist/enums/EPurchasePortalStatus.d.ts +0 -4
  47. package/.dist/enums/EPurchasePortalStatus.js +0 -9
  48. package/.dist/enums/EPurchasePortalStatus.js.map +0 -1
  49. package/.dist/enums/OrderChannelEnum.d.ts +0 -4
  50. package/.dist/enums/OrderChannelEnum.js +0 -10
  51. package/.dist/enums/OrderChannelEnum.js.map +0 -1
  52. package/.dist/enums/OrderItemTypeEnum.d.ts +0 -4
  53. package/.dist/enums/OrderItemTypeEnum.js +0 -10
  54. package/.dist/enums/OrderItemTypeEnum.js.map +0 -1
  55. package/.dist/enums/OrderShareTimestamp.d.ts +0 -6
  56. package/.dist/enums/OrderShareTimestamp.js +0 -11
  57. package/.dist/enums/OrderShareTimestamp.js.map +0 -1
  58. package/.dist/enums/PaymentMethodTypeEnum.d.ts +0 -7
  59. package/.dist/enums/PaymentMethodTypeEnum.js +0 -12
  60. package/.dist/enums/PaymentMethodTypeEnum.js.map +0 -1
  61. package/.dist/enums/TierStatusEnum.d.ts +0 -5
  62. package/.dist/enums/TierStatusEnum.js +0 -10
  63. package/.dist/enums/TierStatusEnum.js.map +0 -1
  64. package/.dist/graphql/fragments/event.fragment.d.ts +0 -22
  65. package/.dist/graphql/fragments/event.fragment.js +0 -347
  66. package/.dist/graphql/fragments/event.fragment.js.map +0 -1
  67. package/.dist/graphql/fragments/order.fragment.d.ts +0 -10
  68. package/.dist/graphql/fragments/order.fragment.js +0 -99
  69. package/.dist/graphql/fragments/order.fragment.js.map +0 -1
  70. package/.dist/graphql/fragments/season.fragment.d.ts +0 -23
  71. package/.dist/graphql/fragments/season.fragment.js +0 -341
  72. package/.dist/graphql/fragments/season.fragment.js.map +0 -1
  73. package/.dist/graphql/links/debounceLink.d.ts +0 -3
  74. package/.dist/graphql/links/debounceLink.js +0 -9
  75. package/.dist/graphql/links/debounceLink.js.map +0 -1
  76. package/.dist/graphql/mutations/acceptRole.mutation.d.ts +0 -2
  77. package/.dist/graphql/mutations/acceptRole.mutation.js +0 -18
  78. package/.dist/graphql/mutations/acceptRole.mutation.js.map +0 -1
  79. package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.d.ts +0 -2
  80. package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js +0 -10
  81. package/.dist/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.js.map +0 -1
  82. package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.d.ts +0 -2
  83. package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js +0 -19
  84. package/.dist/graphql/mutations/attachStripePaymentMethod.mutation.js.map +0 -1
  85. package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.d.ts +0 -2
  86. package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.js +0 -59
  87. package/.dist/graphql/mutations/batchPrintBreakApartOrder.mutation.js.map +0 -1
  88. package/.dist/graphql/mutations/breakApartOrder.d.ts +0 -2
  89. package/.dist/graphql/mutations/breakApartOrder.js +0 -47
  90. package/.dist/graphql/mutations/breakApartOrder.js.map +0 -1
  91. package/.dist/graphql/mutations/breakApartSeasonOrder.d.ts +0 -2
  92. package/.dist/graphql/mutations/breakApartSeasonOrder.js +0 -55
  93. package/.dist/graphql/mutations/breakApartSeasonOrder.js.map +0 -1
  94. package/.dist/graphql/mutations/cancelOrder.mutation.d.ts +0 -2
  95. package/.dist/graphql/mutations/cancelOrder.mutation.js +0 -12
  96. package/.dist/graphql/mutations/cancelOrder.mutation.js.map +0 -1
  97. package/.dist/graphql/mutations/cancelTickets.mutation.d.ts +0 -2
  98. package/.dist/graphql/mutations/cancelTickets.mutation.js +0 -20
  99. package/.dist/graphql/mutations/cancelTickets.mutation.js.map +0 -1
  100. package/.dist/graphql/mutations/connectStripe.mutation.d.ts +0 -2
  101. package/.dist/graphql/mutations/connectStripe.mutation.js +0 -10
  102. package/.dist/graphql/mutations/connectStripe.mutation.js.map +0 -1
  103. package/.dist/graphql/mutations/createArtist.mutation.d.ts +0 -2
  104. package/.dist/graphql/mutations/createArtist.mutation.js +0 -41
  105. package/.dist/graphql/mutations/createArtist.mutation.js.map +0 -1
  106. package/.dist/graphql/mutations/createContacts.mutation.d.ts +0 -2
  107. package/.dist/graphql/mutations/createContacts.mutation.js +0 -10
  108. package/.dist/graphql/mutations/createContacts.mutation.js.map +0 -1
  109. package/.dist/graphql/mutations/createEvent.mutation.d.ts +0 -2
  110. package/.dist/graphql/mutations/createEvent.mutation.js +0 -93
  111. package/.dist/graphql/mutations/createEvent.mutation.js.map +0 -1
  112. package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.d.ts +0 -2
  113. package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js +0 -39
  114. package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js.map +0 -1
  115. package/.dist/graphql/mutations/createFee.mutation.d.ts +0 -2
  116. package/.dist/graphql/mutations/createFee.mutation.js +0 -28
  117. package/.dist/graphql/mutations/createFee.mutation.js.map +0 -1
  118. package/.dist/graphql/mutations/createOrder.mutation.d.ts +0 -2
  119. package/.dist/graphql/mutations/createOrder.mutation.js +0 -56
  120. package/.dist/graphql/mutations/createOrder.mutation.js.map +0 -1
  121. package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.d.ts +0 -2
  122. package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js +0 -13
  123. package/.dist/graphql/mutations/createOrderPaymentIntent.mutation.js.map +0 -1
  124. package/.dist/graphql/mutations/createOrganisation.mutation.d.ts +0 -2
  125. package/.dist/graphql/mutations/createOrganisation.mutation.js +0 -13
  126. package/.dist/graphql/mutations/createOrganisation.mutation.js.map +0 -1
  127. package/.dist/graphql/mutations/createOrganizationFee.mutation.d.ts +0 -2
  128. package/.dist/graphql/mutations/createOrganizationFee.mutation.js +0 -29
  129. package/.dist/graphql/mutations/createOrganizationFee.mutation.js.map +0 -1
  130. package/.dist/graphql/mutations/createPlatformFee.mutation.d.ts +0 -2
  131. package/.dist/graphql/mutations/createPlatformFee.mutation.js +0 -29
  132. package/.dist/graphql/mutations/createPlatformFee.mutation.js.map +0 -1
  133. package/.dist/graphql/mutations/createRole.mutation.d.ts +0 -2
  134. package/.dist/graphql/mutations/createRole.mutation.js +0 -16
  135. package/.dist/graphql/mutations/createRole.mutation.js.map +0 -1
  136. package/.dist/graphql/mutations/createSeason.mutation.d.ts +0 -2
  137. package/.dist/graphql/mutations/createSeason.mutation.js +0 -82
  138. package/.dist/graphql/mutations/createSeason.mutation.js.map +0 -1
  139. package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +0 -2
  140. package/.dist/graphql/mutations/createSeasonOrder.mutation.js +0 -62
  141. package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +0 -1
  142. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +0 -2
  143. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +0 -15
  144. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +0 -1
  145. package/.dist/graphql/mutations/createStripeSetupIntent.mutation.d.ts +0 -2
  146. package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js +0 -10
  147. package/.dist/graphql/mutations/createStripeSetupIntent.mutation.js.map +0 -1
  148. package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.d.ts +0 -2
  149. package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js +0 -10
  150. package/.dist/graphql/mutations/createStripeTerminalConnectionToken.mutation.js.map +0 -1
  151. package/.dist/graphql/mutations/createVenue.mutation.d.ts +0 -2
  152. package/.dist/graphql/mutations/createVenue.mutation.js +0 -33
  153. package/.dist/graphql/mutations/createVenue.mutation.js.map +0 -1
  154. package/.dist/graphql/mutations/createWaitList.mutation.d.ts +0 -2
  155. package/.dist/graphql/mutations/createWaitList.mutation.js +0 -12
  156. package/.dist/graphql/mutations/createWaitList.mutation.js.map +0 -1
  157. package/.dist/graphql/mutations/createWebFlowSite.mutation.d.ts +0 -2
  158. package/.dist/graphql/mutations/createWebFlowSite.mutation.js +0 -39
  159. package/.dist/graphql/mutations/createWebFlowSite.mutation.js.map +0 -1
  160. package/.dist/graphql/mutations/deleteEvent.mutation.d.ts +0 -2
  161. package/.dist/graphql/mutations/deleteEvent.mutation.js +0 -22
  162. package/.dist/graphql/mutations/deleteEvent.mutation.js.map +0 -1
  163. package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.d.ts +0 -2
  164. package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js +0 -10
  165. package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js.map +0 -1
  166. package/.dist/graphql/mutations/deleteFee.mutation.d.ts +0 -2
  167. package/.dist/graphql/mutations/deleteFee.mutation.js +0 -10
  168. package/.dist/graphql/mutations/deleteFee.mutation.js.map +0 -1
  169. package/.dist/graphql/mutations/deleteOrganizationFee.mutation.d.ts +0 -2
  170. package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js +0 -10
  171. package/.dist/graphql/mutations/deleteOrganizationFee.mutation.js.map +0 -1
  172. package/.dist/graphql/mutations/deletePlatformFee.mutation.d.ts +0 -2
  173. package/.dist/graphql/mutations/deletePlatformFee.mutation.js +0 -10
  174. package/.dist/graphql/mutations/deletePlatformFee.mutation.js.map +0 -1
  175. package/.dist/graphql/mutations/deleteRole.mutation.d.ts +0 -2
  176. package/.dist/graphql/mutations/deleteRole.mutation.js +0 -10
  177. package/.dist/graphql/mutations/deleteRole.mutation.js.map +0 -1
  178. package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.d.ts +0 -2
  179. package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js +0 -18
  180. package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js.map +0 -1
  181. package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.d.ts +0 -2
  182. package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js +0 -10
  183. package/.dist/graphql/mutations/deleteStripeTerminalReader.mutation.js.map +0 -1
  184. package/.dist/graphql/mutations/deleteSubscription.mutation.d.ts +0 -2
  185. package/.dist/graphql/mutations/deleteSubscription.mutation.js +0 -13
  186. package/.dist/graphql/mutations/deleteSubscription.mutation.js.map +0 -1
  187. package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.d.ts +0 -2
  188. package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.js +0 -10
  189. package/.dist/graphql/mutations/deleteSuperAdminOrg.mutation.js.map +0 -1
  190. package/.dist/graphql/mutations/deleteTicketHold.mutation.d.ts +0 -2
  191. package/.dist/graphql/mutations/deleteTicketHold.mutation.js +0 -13
  192. package/.dist/graphql/mutations/deleteTicketHold.mutation.js.map +0 -1
  193. package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.d.ts +0 -2
  194. package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js +0 -11
  195. package/.dist/graphql/mutations/deleteUnverifiedUser.mutation.js.map +0 -1
  196. package/.dist/graphql/mutations/duplicateEvent.mutation.d.ts +0 -2
  197. package/.dist/graphql/mutations/duplicateEvent.mutation.js +0 -90
  198. package/.dist/graphql/mutations/duplicateEvent.mutation.js.map +0 -1
  199. package/.dist/graphql/mutations/eventEmailTemplate.mutation.d.ts +0 -2
  200. package/.dist/graphql/mutations/eventEmailTemplate.mutation.js +0 -10
  201. package/.dist/graphql/mutations/eventEmailTemplate.mutation.js.map +0 -1
  202. package/.dist/graphql/mutations/forgotPassword.mutation.d.ts +0 -2
  203. package/.dist/graphql/mutations/forgotPassword.mutation.js +0 -10
  204. package/.dist/graphql/mutations/forgotPassword.mutation.js.map +0 -1
  205. package/.dist/graphql/mutations/generateActivityReport.mutation.d.ts +0 -2
  206. package/.dist/graphql/mutations/generateActivityReport.mutation.js +0 -15
  207. package/.dist/graphql/mutations/generateActivityReport.mutation.js.map +0 -1
  208. package/.dist/graphql/mutations/generateEventQRCode.mutation.d.ts +0 -2
  209. package/.dist/graphql/mutations/generateEventQRCode.mutation.js +0 -10
  210. package/.dist/graphql/mutations/generateEventQRCode.mutation.js.map +0 -1
  211. package/.dist/graphql/mutations/generateOrderReport.mutation.d.ts +0 -2
  212. package/.dist/graphql/mutations/generateOrderReport.mutation.js +0 -13
  213. package/.dist/graphql/mutations/generateOrderReport.mutation.js.map +0 -1
  214. package/.dist/graphql/mutations/generateUserProfileReport.mutation.d.ts +0 -2
  215. package/.dist/graphql/mutations/generateUserProfileReport.mutation.js +0 -13
  216. package/.dist/graphql/mutations/generateUserProfileReport.mutation.js.map +0 -1
  217. package/.dist/graphql/mutations/holdTicket.mutation.d.ts +0 -2
  218. package/.dist/graphql/mutations/holdTicket.mutation.js +0 -12
  219. package/.dist/graphql/mutations/holdTicket.mutation.js.map +0 -1
  220. package/.dist/graphql/mutations/login.mutation.d.ts +0 -2
  221. package/.dist/graphql/mutations/login.mutation.js +0 -20
  222. package/.dist/graphql/mutations/login.mutation.js.map +0 -1
  223. package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.d.ts +0 -2
  224. package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js +0 -18
  225. package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js.map +0 -1
  226. package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.d.ts +0 -2
  227. package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.js +0 -59
  228. package/.dist/graphql/mutations/multipleBreakApartOrder.mutation.js.map +0 -1
  229. package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.d.ts +0 -2
  230. package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.js +0 -64
  231. package/.dist/graphql/mutations/multipleBreakApartSeasonOrder.mutation.js.map +0 -1
  232. package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.d.ts +0 -2
  233. package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.js +0 -12
  234. package/.dist/graphql/mutations/orderIntegrationUpdate.mutation.js.map +0 -1
  235. package/.dist/graphql/mutations/publishEvent.mutation.d.ts +0 -2
  236. package/.dist/graphql/mutations/publishEvent.mutation.js +0 -105
  237. package/.dist/graphql/mutations/publishEvent.mutation.js.map +0 -1
  238. package/.dist/graphql/mutations/publishSeason.mutation.d.ts +0 -2
  239. package/.dist/graphql/mutations/publishSeason.mutation.js +0 -82
  240. package/.dist/graphql/mutations/publishSeason.mutation.js.map +0 -1
  241. package/.dist/graphql/mutations/refundOrder.mutation.d.ts +0 -2
  242. package/.dist/graphql/mutations/refundOrder.mutation.js +0 -143
  243. package/.dist/graphql/mutations/refundOrder.mutation.js.map +0 -1
  244. package/.dist/graphql/mutations/register.mutation.d.ts +0 -2
  245. package/.dist/graphql/mutations/register.mutation.js +0 -40
  246. package/.dist/graphql/mutations/register.mutation.js.map +0 -1
  247. package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.d.ts +0 -2
  248. package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js +0 -18
  249. package/.dist/graphql/mutations/registerStripeTerminalReader.mutation.js.map +0 -1
  250. package/.dist/graphql/mutations/remapWebFlowSite.mutation.d.ts +0 -2
  251. package/.dist/graphql/mutations/remapWebFlowSite.mutation.js +0 -37
  252. package/.dist/graphql/mutations/remapWebFlowSite.mutation.js.map +0 -1
  253. package/.dist/graphql/mutations/resetStripeConnection.mutation.d.ts +0 -2
  254. package/.dist/graphql/mutations/resetStripeConnection.mutation.js +0 -10
  255. package/.dist/graphql/mutations/resetStripeConnection.mutation.js.map +0 -1
  256. package/.dist/graphql/mutations/resetUserPassword.mutation.d.ts +0 -2
  257. package/.dist/graphql/mutations/resetUserPassword.mutation.js +0 -10
  258. package/.dist/graphql/mutations/resetUserPassword.mutation.js.map +0 -1
  259. package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.d.ts +0 -2
  260. package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js +0 -10
  261. package/.dist/graphql/mutations/resetUserPasswordInApp.mutation.js.map +0 -1
  262. package/.dist/graphql/mutations/salesReport.mutation.d.ts +0 -2
  263. package/.dist/graphql/mutations/salesReport.mutation.js +0 -12
  264. package/.dist/graphql/mutations/salesReport.mutation.js.map +0 -1
  265. package/.dist/graphql/mutations/scanOrder.mutation.d.ts +0 -2
  266. package/.dist/graphql/mutations/scanOrder.mutation.js +0 -22
  267. package/.dist/graphql/mutations/scanOrder.mutation.js.map +0 -1
  268. package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.d.ts +0 -2
  269. package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.js +0 -10
  270. package/.dist/graphql/mutations/sendOrderReceiptEmail.mutation.js.map +0 -1
  271. package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.d.ts +0 -2
  272. package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js +0 -10
  273. package/.dist/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.js.map +0 -1
  274. package/.dist/graphql/mutations/sendUserEmailVerification.mutation.d.ts +0 -2
  275. package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js +0 -12
  276. package/.dist/graphql/mutations/sendUserEmailVerification.mutation.js.map +0 -1
  277. package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.d.ts +0 -2
  278. package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js +0 -10
  279. package/.dist/graphql/mutations/sendUserPhoneAuthentication.mutation.js.map +0 -1
  280. package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.d.ts +0 -2
  281. package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js +0 -12
  282. package/.dist/graphql/mutations/sendUserPhoneVerification.mutation.js.map +0 -1
  283. package/.dist/graphql/mutations/setUserOrgContextId.mutation.d.ts +0 -2
  284. package/.dist/graphql/mutations/setUserOrgContextId.mutation.js +0 -12
  285. package/.dist/graphql/mutations/setUserOrgContextId.mutation.js.map +0 -1
  286. package/.dist/graphql/mutations/setUserPassword.mutation.d.ts +0 -2
  287. package/.dist/graphql/mutations/setUserPassword.mutation.js +0 -12
  288. package/.dist/graphql/mutations/setUserPassword.mutation.js.map +0 -1
  289. package/.dist/graphql/mutations/sharingTicket.mutation.d.ts +0 -2
  290. package/.dist/graphql/mutations/sharingTicket.mutation.js +0 -12
  291. package/.dist/graphql/mutations/sharingTicket.mutation.js.map +0 -1
  292. package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.d.ts +0 -2
  293. package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.js +0 -12
  294. package/.dist/graphql/mutations/sharingTicketStatusChange.mutation.js.map +0 -1
  295. package/.dist/graphql/mutations/updateArtist.mutation.d.ts +0 -2
  296. package/.dist/graphql/mutations/updateArtist.mutation.js +0 -41
  297. package/.dist/graphql/mutations/updateArtist.mutation.js.map +0 -1
  298. package/.dist/graphql/mutations/updateBasicUserInfo.mutation.d.ts +0 -2
  299. package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js +0 -12
  300. package/.dist/graphql/mutations/updateBasicUserInfo.mutation.js.map +0 -1
  301. package/.dist/graphql/mutations/updateContact.mutation.d.ts +0 -2
  302. package/.dist/graphql/mutations/updateContact.mutation.js +0 -17
  303. package/.dist/graphql/mutations/updateContact.mutation.js.map +0 -1
  304. package/.dist/graphql/mutations/updateEvent.mutation.d.ts +0 -2
  305. package/.dist/graphql/mutations/updateEvent.mutation.js +0 -102
  306. package/.dist/graphql/mutations/updateEvent.mutation.js.map +0 -1
  307. package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.d.ts +0 -2
  308. package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js +0 -29
  309. package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js.map +0 -1
  310. package/.dist/graphql/mutations/updateFee.mutation.d.ts +0 -2
  311. package/.dist/graphql/mutations/updateFee.mutation.js +0 -27
  312. package/.dist/graphql/mutations/updateFee.mutation.js.map +0 -1
  313. package/.dist/graphql/mutations/updateGuestOrder.mutation.d.ts +0 -2
  314. package/.dist/graphql/mutations/updateGuestOrder.mutation.js +0 -13
  315. package/.dist/graphql/mutations/updateGuestOrder.mutation.js.map +0 -1
  316. package/.dist/graphql/mutations/updateOrder.mutation.d.ts +0 -2
  317. package/.dist/graphql/mutations/updateOrder.mutation.js +0 -13
  318. package/.dist/graphql/mutations/updateOrder.mutation.js.map +0 -1
  319. package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.d.ts +0 -2
  320. package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.js +0 -10
  321. package/.dist/graphql/mutations/updateOrgEmailWebhook.mutation.js.map +0 -1
  322. package/.dist/graphql/mutations/updateOrganistion.mutation.d.ts +0 -2
  323. package/.dist/graphql/mutations/updateOrganistion.mutation.js +0 -12
  324. package/.dist/graphql/mutations/updateOrganistion.mutation.js.map +0 -1
  325. package/.dist/graphql/mutations/updateOrganization.mutation.d.ts +0 -2
  326. package/.dist/graphql/mutations/updateOrganization.mutation.js +0 -20
  327. package/.dist/graphql/mutations/updateOrganization.mutation.js.map +0 -1
  328. package/.dist/graphql/mutations/updateOrganizationFee.mutation.d.ts +0 -2
  329. package/.dist/graphql/mutations/updateOrganizationFee.mutation.js +0 -28
  330. package/.dist/graphql/mutations/updateOrganizationFee.mutation.js.map +0 -1
  331. package/.dist/graphql/mutations/updatePlatformFee.mutation.d.ts +0 -2
  332. package/.dist/graphql/mutations/updatePlatformFee.mutation.js +0 -28
  333. package/.dist/graphql/mutations/updatePlatformFee.mutation.js.map +0 -1
  334. package/.dist/graphql/mutations/updateSeason.mutation.d.ts +0 -2
  335. package/.dist/graphql/mutations/updateSeason.mutation.js +0 -82
  336. package/.dist/graphql/mutations/updateSeason.mutation.js.map +0 -1
  337. package/.dist/graphql/mutations/updateUserEmail.mutation.d.ts +0 -2
  338. package/.dist/graphql/mutations/updateUserEmail.mutation.js +0 -24
  339. package/.dist/graphql/mutations/updateUserEmail.mutation.js.map +0 -1
  340. package/.dist/graphql/mutations/updateUserInfo.mutation.d.ts +0 -2
  341. package/.dist/graphql/mutations/updateUserInfo.mutation.js +0 -16
  342. package/.dist/graphql/mutations/updateUserInfo.mutation.js.map +0 -1
  343. package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.d.ts +0 -2
  344. package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js +0 -24
  345. package/.dist/graphql/mutations/updateUserPhoneNumber.mutation.js.map +0 -1
  346. package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.d.ts +0 -2
  347. package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.js +0 -14
  348. package/.dist/graphql/mutations/updateUserPreferredLogIn.mutation.js.map +0 -1
  349. package/.dist/graphql/mutations/updateVenue.mutation.d.ts +0 -2
  350. package/.dist/graphql/mutations/updateVenue.mutation.js +0 -33
  351. package/.dist/graphql/mutations/updateVenue.mutation.js.map +0 -1
  352. package/.dist/graphql/mutations/uploadFiles.mutation.d.ts +0 -2
  353. package/.dist/graphql/mutations/uploadFiles.mutation.js +0 -15
  354. package/.dist/graphql/mutations/uploadFiles.mutation.js.map +0 -1
  355. package/.dist/graphql/mutations/verifyUserEmail.mutation.d.ts +0 -2
  356. package/.dist/graphql/mutations/verifyUserEmail.mutation.js +0 -12
  357. package/.dist/graphql/mutations/verifyUserEmail.mutation.js.map +0 -1
  358. package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.d.ts +0 -2
  359. package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js +0 -19
  360. package/.dist/graphql/mutations/verifyUserPhoneAuthentication.mutation.js.map +0 -1
  361. package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.d.ts +0 -2
  362. package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js +0 -12
  363. package/.dist/graphql/mutations/verifyUserPhoneNumber.mutation.js.map +0 -1
  364. package/.dist/graphql/mutations/waitListReport.mutation.d.ts +0 -2
  365. package/.dist/graphql/mutations/waitListReport.mutation.js +0 -12
  366. package/.dist/graphql/mutations/waitListReport.mutation.js.map +0 -1
  367. package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.d.ts +0 -2
  368. package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js +0 -11
  369. package/.dist/graphql/queries/DuplicateUrlStubUniqueness.query.js.map +0 -1
  370. package/.dist/graphql/queries/analytics.query.d.ts +0 -2
  371. package/.dist/graphql/queries/analytics.query.js +0 -27
  372. package/.dist/graphql/queries/analytics.query.js.map +0 -1
  373. package/.dist/graphql/queries/artist.query.d.ts +0 -2
  374. package/.dist/graphql/queries/artist.query.js +0 -41
  375. package/.dist/graphql/queries/artist.query.js.map +0 -1
  376. package/.dist/graphql/queries/artists.query.d.ts +0 -2
  377. package/.dist/graphql/queries/artists.query.js +0 -41
  378. package/.dist/graphql/queries/artists.query.js.map +0 -1
  379. package/.dist/graphql/queries/context.query.d.ts +0 -2
  380. package/.dist/graphql/queries/context.query.js +0 -43
  381. package/.dist/graphql/queries/context.query.js.map +0 -1
  382. package/.dist/graphql/queries/customerOrders.query.d.ts +0 -2
  383. package/.dist/graphql/queries/customerOrders.query.js +0 -48
  384. package/.dist/graphql/queries/customerOrders.query.js.map +0 -1
  385. package/.dist/graphql/queries/customerProfile.query.d.ts +0 -2
  386. package/.dist/graphql/queries/customerProfile.query.js +0 -57
  387. package/.dist/graphql/queries/customerProfile.query.js.map +0 -1
  388. package/.dist/graphql/queries/discountCodeVerify.query.d.ts +0 -2
  389. package/.dist/graphql/queries/discountCodeVerify.query.js +0 -22
  390. package/.dist/graphql/queries/discountCodeVerify.query.js.map +0 -1
  391. package/.dist/graphql/queries/event.query.d.ts +0 -2
  392. package/.dist/graphql/queries/event.query.js +0 -102
  393. package/.dist/graphql/queries/event.query.js.map +0 -1
  394. package/.dist/graphql/queries/eventCalenderOrganizations.query.d.ts +0 -2
  395. package/.dist/graphql/queries/eventCalenderOrganizations.query.js +0 -17
  396. package/.dist/graphql/queries/eventCalenderOrganizations.query.js.map +0 -1
  397. package/.dist/graphql/queries/eventFees.query.d.ts +0 -2
  398. package/.dist/graphql/queries/eventFees.query.js +0 -28
  399. package/.dist/graphql/queries/eventFees.query.js.map +0 -1
  400. package/.dist/graphql/queries/events.query.d.ts +0 -2
  401. package/.dist/graphql/queries/events.query.js +0 -94
  402. package/.dist/graphql/queries/events.query.js.map +0 -1
  403. package/.dist/graphql/queries/eventsAdminCalender.query.d.ts +0 -2
  404. package/.dist/graphql/queries/eventsAdminCalender.query.js +0 -66
  405. package/.dist/graphql/queries/eventsAdminCalender.query.js.map +0 -1
  406. package/.dist/graphql/queries/eventsListOptimized.query.d.ts +0 -2
  407. package/.dist/graphql/queries/eventsListOptimized.query.js +0 -62
  408. package/.dist/graphql/queries/eventsListOptimized.query.js.map +0 -1
  409. package/.dist/graphql/queries/fee.query.d.ts +0 -2
  410. package/.dist/graphql/queries/fee.query.js +0 -28
  411. package/.dist/graphql/queries/fee.query.js.map +0 -1
  412. package/.dist/graphql/queries/fees.query.d.ts +0 -2
  413. package/.dist/graphql/queries/fees.query.js +0 -28
  414. package/.dist/graphql/queries/fees.query.js.map +0 -1
  415. package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.d.ts +0 -2
  416. package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js +0 -31
  417. package/.dist/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.js.map +0 -1
  418. package/.dist/graphql/queries/getTicketSharing.query.d.ts +0 -2
  419. package/.dist/graphql/queries/getTicketSharing.query.js +0 -13
  420. package/.dist/graphql/queries/getTicketSharing.query.js.map +0 -1
  421. package/.dist/graphql/queries/isDeletebleOrganization.d.ts +0 -2
  422. package/.dist/graphql/queries/isDeletebleOrganization.js +0 -10
  423. package/.dist/graphql/queries/isDeletebleOrganization.js.map +0 -1
  424. package/.dist/graphql/queries/isSuperUser.query.d.ts +0 -2
  425. package/.dist/graphql/queries/isSuperUser.query.js +0 -10
  426. package/.dist/graphql/queries/isSuperUser.query.js.map +0 -1
  427. package/.dist/graphql/queries/listStripeTerminalReaders.query.d.ts +0 -2
  428. package/.dist/graphql/queries/listStripeTerminalReaders.query.js +0 -18
  429. package/.dist/graphql/queries/listStripeTerminalReaders.query.js.map +0 -1
  430. package/.dist/graphql/queries/notifiyEvent.d.ts +0 -2
  431. package/.dist/graphql/queries/notifiyEvent.js +0 -13
  432. package/.dist/graphql/queries/notifiyEvent.js.map +0 -1
  433. package/.dist/graphql/queries/order.query.d.ts +0 -2
  434. package/.dist/graphql/queries/order.query.js +0 -222
  435. package/.dist/graphql/queries/order.query.js.map +0 -1
  436. package/.dist/graphql/queries/orders.query.d.ts +0 -2
  437. package/.dist/graphql/queries/orders.query.js +0 -153
  438. package/.dist/graphql/queries/orders.query.js.map +0 -1
  439. package/.dist/graphql/queries/ordersTableOptimized.query.d.ts +0 -2
  440. package/.dist/graphql/queries/ordersTableOptimized.query.js +0 -81
  441. package/.dist/graphql/queries/ordersTableOptimized.query.js.map +0 -1
  442. package/.dist/graphql/queries/organizationFees.query.d.ts +0 -2
  443. package/.dist/graphql/queries/organizationFees.query.js +0 -29
  444. package/.dist/graphql/queries/organizationFees.query.js.map +0 -1
  445. package/.dist/graphql/queries/organizations.query.d.ts +0 -2
  446. package/.dist/graphql/queries/organizations.query.js +0 -51
  447. package/.dist/graphql/queries/organizations.query.js.map +0 -1
  448. package/.dist/graphql/queries/platformFees.query.d.ts +0 -2
  449. package/.dist/graphql/queries/platformFees.query.js +0 -29
  450. package/.dist/graphql/queries/platformFees.query.js.map +0 -1
  451. package/.dist/graphql/queries/platformSettings.query.d.ts +0 -2
  452. package/.dist/graphql/queries/platformSettings.query.js +0 -14
  453. package/.dist/graphql/queries/platformSettings.query.js.map +0 -1
  454. package/.dist/graphql/queries/profile.query.d.ts +0 -2
  455. package/.dist/graphql/queries/profile.query.js +0 -100
  456. package/.dist/graphql/queries/profile.query.js.map +0 -1
  457. package/.dist/graphql/queries/profiles.query.d.ts +0 -2
  458. package/.dist/graphql/queries/profiles.query.js +0 -30
  459. package/.dist/graphql/queries/profiles.query.js.map +0 -1
  460. package/.dist/graphql/queries/promoCodeVerify.query.d.ts +0 -2
  461. package/.dist/graphql/queries/promoCodeVerify.query.js +0 -60
  462. package/.dist/graphql/queries/promoCodeVerify.query.js.map +0 -1
  463. package/.dist/graphql/queries/publicEvent.query.d.ts +0 -2
  464. package/.dist/graphql/queries/publicEvent.query.js +0 -83
  465. package/.dist/graphql/queries/publicEvent.query.js.map +0 -1
  466. package/.dist/graphql/queries/publicSeason.query.d.ts +0 -2
  467. package/.dist/graphql/queries/publicSeason.query.js +0 -87
  468. package/.dist/graphql/queries/publicSeason.query.js.map +0 -1
  469. package/.dist/graphql/queries/role.query.d.ts +0 -2
  470. package/.dist/graphql/queries/role.query.js +0 -29
  471. package/.dist/graphql/queries/role.query.js.map +0 -1
  472. package/.dist/graphql/queries/roles.query.d.ts +0 -2
  473. package/.dist/graphql/queries/roles.query.js +0 -29
  474. package/.dist/graphql/queries/roles.query.js.map +0 -1
  475. package/.dist/graphql/queries/season.query.d.ts +0 -2
  476. package/.dist/graphql/queries/season.query.js +0 -82
  477. package/.dist/graphql/queries/season.query.js.map +0 -1
  478. package/.dist/graphql/queries/seasonFees.query.d.ts +0 -2
  479. package/.dist/graphql/queries/seasonFees.query.js +0 -29
  480. package/.dist/graphql/queries/seasonFees.query.js.map +0 -1
  481. package/.dist/graphql/queries/seasons.query.d.ts +0 -2
  482. package/.dist/graphql/queries/seasons.query.js +0 -81
  483. package/.dist/graphql/queries/seasons.query.js.map +0 -1
  484. package/.dist/graphql/queries/seasonsDropdown.query.d.ts +0 -2
  485. package/.dist/graphql/queries/seasonsDropdown.query.js +0 -20
  486. package/.dist/graphql/queries/seasonsDropdown.query.js.map +0 -1
  487. package/.dist/graphql/queries/seating.query.d.ts +0 -2
  488. package/.dist/graphql/queries/seating.query.js +0 -17
  489. package/.dist/graphql/queries/seating.query.js.map +0 -1
  490. package/.dist/graphql/queries/seatingKeys.query.d.ts +0 -2
  491. package/.dist/graphql/queries/seatingKeys.query.js +0 -12
  492. package/.dist/graphql/queries/seatingKeys.query.js.map +0 -1
  493. package/.dist/graphql/queries/stripeCardDetail.query.d.ts +0 -2
  494. package/.dist/graphql/queries/stripeCardDetail.query.js +0 -19
  495. package/.dist/graphql/queries/stripeCardDetail.query.js.map +0 -1
  496. package/.dist/graphql/queries/superAdminAllCustomer.query.d.ts +0 -2
  497. package/.dist/graphql/queries/superAdminAllCustomer.query.js +0 -24
  498. package/.dist/graphql/queries/superAdminAllCustomer.query.js.map +0 -1
  499. package/.dist/graphql/queries/ticketRestriction.query.d.ts +0 -2
  500. package/.dist/graphql/queries/ticketRestriction.query.js +0 -18
  501. package/.dist/graphql/queries/ticketRestriction.query.js.map +0 -1
  502. package/.dist/graphql/queries/userExists.query.d.ts +0 -2
  503. package/.dist/graphql/queries/userExists.query.js +0 -34
  504. package/.dist/graphql/queries/userExists.query.js.map +0 -1
  505. package/.dist/graphql/queries/userProfile.query.d.ts +0 -2
  506. package/.dist/graphql/queries/userProfile.query.js +0 -31
  507. package/.dist/graphql/queries/userProfile.query.js.map +0 -1
  508. package/.dist/graphql/queries/userProfilesAdmin.query.d.ts +0 -2
  509. package/.dist/graphql/queries/userProfilesAdmin.query.js +0 -56
  510. package/.dist/graphql/queries/userProfilesAdmin.query.js.map +0 -1
  511. package/.dist/graphql/queries/userRoles.query.d.ts +0 -2
  512. package/.dist/graphql/queries/userRoles.query.js +0 -31
  513. package/.dist/graphql/queries/userRoles.query.js.map +0 -1
  514. package/.dist/graphql/queries/venue.query.d.ts +0 -2
  515. package/.dist/graphql/queries/venue.query.js +0 -34
  516. package/.dist/graphql/queries/venue.query.js.map +0 -1
  517. package/.dist/graphql/queries/venues.query.d.ts +0 -2
  518. package/.dist/graphql/queries/venues.query.js +0 -34
  519. package/.dist/graphql/queries/venues.query.js.map +0 -1
  520. package/.dist/graphql/queries/waitList.query.d.ts +0 -2
  521. package/.dist/graphql/queries/waitList.query.js +0 -104
  522. package/.dist/graphql/queries/waitList.query.js.map +0 -1
  523. package/.dist/graphql/queries/webFlowSites.query.d.ts +0 -2
  524. package/.dist/graphql/queries/webFlowSites.query.js +0 -21
  525. package/.dist/graphql/queries/webFlowSites.query.js.map +0 -1
  526. package/.dist/graphql/queries/webflow.query.d.ts +0 -2
  527. package/.dist/graphql/queries/webflow.query.js +0 -39
  528. package/.dist/graphql/queries/webflow.query.js.map +0 -1
  529. package/.dist/interfaces/IAddress.d.ts +0 -14
  530. package/.dist/interfaces/IAddress.js +0 -3
  531. package/.dist/interfaces/IAddress.js.map +0 -1
  532. package/.dist/interfaces/IAnalytics.d.ts +0 -86
  533. package/.dist/interfaces/IAnalytics.js +0 -130
  534. package/.dist/interfaces/IAnalytics.js.map +0 -1
  535. package/.dist/interfaces/IApiKey.d.ts +0 -8
  536. package/.dist/interfaces/IApiKey.js +0 -3
  537. package/.dist/interfaces/IApiKey.js.map +0 -1
  538. package/.dist/interfaces/IArtist.d.ts +0 -19
  539. package/.dist/interfaces/IArtist.js +0 -10
  540. package/.dist/interfaces/IArtist.js.map +0 -1
  541. package/.dist/interfaces/IArtistContact.d.ts +0 -8
  542. package/.dist/interfaces/IArtistContact.js +0 -3
  543. package/.dist/interfaces/IArtistContact.js.map +0 -1
  544. package/.dist/interfaces/IArtistPressKit.d.ts +0 -8
  545. package/.dist/interfaces/IArtistPressKit.js +0 -3
  546. package/.dist/interfaces/IArtistPressKit.js.map +0 -1
  547. package/.dist/interfaces/IBillingAddress.d.ts +0 -8
  548. package/.dist/interfaces/IBillingAddress.js +0 -3
  549. package/.dist/interfaces/IBillingAddress.js.map +0 -1
  550. package/.dist/interfaces/IContact.d.ts +0 -9
  551. package/.dist/interfaces/IContact.js +0 -3
  552. package/.dist/interfaces/IContact.js.map +0 -1
  553. package/.dist/interfaces/ICreateOrderParams.d.ts +0 -64
  554. package/.dist/interfaces/ICreateOrderParams.js +0 -3
  555. package/.dist/interfaces/ICreateOrderParams.js.map +0 -1
  556. package/.dist/interfaces/IEmailHolders.d.ts +0 -4
  557. package/.dist/interfaces/IEmailHolders.js +0 -3
  558. package/.dist/interfaces/IEmailHolders.js.map +0 -1
  559. package/.dist/interfaces/IEmailTicketHolder.d.ts +0 -10
  560. package/.dist/interfaces/IEmailTicketHolder.js +0 -3
  561. package/.dist/interfaces/IEmailTicketHolder.js.map +0 -1
  562. package/.dist/interfaces/IEvent.d.ts +0 -116
  563. package/.dist/interfaces/IEvent.js +0 -63
  564. package/.dist/interfaces/IEvent.js.map +0 -1
  565. package/.dist/interfaces/IEventCustomField.d.ts +0 -13
  566. package/.dist/interfaces/IEventCustomField.js +0 -3
  567. package/.dist/interfaces/IEventCustomField.js.map +0 -1
  568. package/.dist/interfaces/IEventPosterUrl.d.ts +0 -5
  569. package/.dist/interfaces/IEventPosterUrl.js +0 -3
  570. package/.dist/interfaces/IEventPosterUrl.js.map +0 -1
  571. package/.dist/interfaces/IEventPromotion.d.ts +0 -33
  572. package/.dist/interfaces/IEventPromotion.js +0 -22
  573. package/.dist/interfaces/IEventPromotion.js.map +0 -1
  574. package/.dist/interfaces/IEventQuery.d.ts +0 -26
  575. package/.dist/interfaces/IEventQuery.js +0 -15
  576. package/.dist/interfaces/IEventQuery.js.map +0 -1
  577. package/.dist/interfaces/IEventSchedule.d.ts +0 -7
  578. package/.dist/interfaces/IEventSchedule.js +0 -3
  579. package/.dist/interfaces/IEventSchedule.js.map +0 -1
  580. package/.dist/interfaces/IEventUpgrade.d.ts +0 -22
  581. package/.dist/interfaces/IEventUpgrade.js +0 -10
  582. package/.dist/interfaces/IEventUpgrade.js.map +0 -1
  583. package/.dist/interfaces/IFee.d.ts +0 -52
  584. package/.dist/interfaces/IFee.js +0 -39
  585. package/.dist/interfaces/IFee.js.map +0 -1
  586. package/.dist/interfaces/IFile.d.ts +0 -7
  587. package/.dist/interfaces/IFile.js +0 -3
  588. package/.dist/interfaces/IFile.js.map +0 -1
  589. package/.dist/interfaces/IOrder.d.ts +0 -83
  590. package/.dist/interfaces/IOrder.js +0 -6
  591. package/.dist/interfaces/IOrder.js.map +0 -1
  592. package/.dist/interfaces/IOrderCustomField.d.ts +0 -8
  593. package/.dist/interfaces/IOrderCustomField.js +0 -4
  594. package/.dist/interfaces/IOrderCustomField.js.map +0 -1
  595. package/.dist/interfaces/IOrderIntegration.d.ts +0 -5
  596. package/.dist/interfaces/IOrderIntegration.js +0 -3
  597. package/.dist/interfaces/IOrderIntegration.js.map +0 -1
  598. package/.dist/interfaces/IOrderIntegrationResponse.d.ts +0 -9
  599. package/.dist/interfaces/IOrderIntegrationResponse.js +0 -3
  600. package/.dist/interfaces/IOrderIntegrationResponse.js.map +0 -1
  601. package/.dist/interfaces/IOrderQuery.d.ts +0 -18
  602. package/.dist/interfaces/IOrderQuery.js +0 -3
  603. package/.dist/interfaces/IOrderQuery.js.map +0 -1
  604. package/.dist/interfaces/IOrderShareEnum.d.ts +0 -13
  605. package/.dist/interfaces/IOrderShareEnum.js +0 -3
  606. package/.dist/interfaces/IOrderShareEnum.js.map +0 -1
  607. package/.dist/interfaces/IOrderShareTimestamp.d.ts +0 -6
  608. package/.dist/interfaces/IOrderShareTimestamp.js +0 -3
  609. package/.dist/interfaces/IOrderShareTimestamp.js.map +0 -1
  610. package/.dist/interfaces/IOrderState.d.ts +0 -22
  611. package/.dist/interfaces/IOrderState.js +0 -34
  612. package/.dist/interfaces/IOrderState.js.map +0 -1
  613. package/.dist/interfaces/IOrderSummary.d.ts +0 -43
  614. package/.dist/interfaces/IOrderSummary.js +0 -3
  615. package/.dist/interfaces/IOrderSummary.js.map +0 -1
  616. package/.dist/interfaces/IOrderTicket.d.ts +0 -27
  617. package/.dist/interfaces/IOrderTicket.js +0 -3
  618. package/.dist/interfaces/IOrderTicket.js.map +0 -1
  619. package/.dist/interfaces/IOrderType.d.ts +0 -7
  620. package/.dist/interfaces/IOrderType.js +0 -13
  621. package/.dist/interfaces/IOrderType.js.map +0 -1
  622. package/.dist/interfaces/IOrderUpgrade.d.ts +0 -17
  623. package/.dist/interfaces/IOrderUpgrade.js +0 -3
  624. package/.dist/interfaces/IOrderUpgrade.js.map +0 -1
  625. package/.dist/interfaces/IOrganization.d.ts +0 -34
  626. package/.dist/interfaces/IOrganization.js +0 -9
  627. package/.dist/interfaces/IOrganization.js.map +0 -1
  628. package/.dist/interfaces/IPagination.d.ts +0 -19
  629. package/.dist/interfaces/IPagination.js +0 -19
  630. package/.dist/interfaces/IPagination.js.map +0 -1
  631. package/.dist/interfaces/IPayment.d.ts +0 -19
  632. package/.dist/interfaces/IPayment.js +0 -3
  633. package/.dist/interfaces/IPayment.js.map +0 -1
  634. package/.dist/interfaces/IPerformance.d.ts +0 -19
  635. package/.dist/interfaces/IPerformance.js +0 -3
  636. package/.dist/interfaces/IPerformance.js.map +0 -1
  637. package/.dist/interfaces/IProcessingFees.d.ts +0 -5
  638. package/.dist/interfaces/IProcessingFees.js +0 -4
  639. package/.dist/interfaces/IProcessingFees.js.map +0 -1
  640. package/.dist/interfaces/IQuery.d.ts +0 -15
  641. package/.dist/interfaces/IQuery.js +0 -21
  642. package/.dist/interfaces/IQuery.js.map +0 -1
  643. package/.dist/interfaces/IRefund.d.ts +0 -7
  644. package/.dist/interfaces/IRefund.js +0 -3
  645. package/.dist/interfaces/IRefund.js.map +0 -1
  646. package/.dist/interfaces/IRefundModal.d.ts +0 -9
  647. package/.dist/interfaces/IRefundModal.js +0 -3
  648. package/.dist/interfaces/IRefundModal.js.map +0 -1
  649. package/.dist/interfaces/IRole.d.ts +0 -26
  650. package/.dist/interfaces/IRole.js +0 -29
  651. package/.dist/interfaces/IRole.js.map +0 -1
  652. package/.dist/interfaces/ISalesReport.d.ts +0 -15
  653. package/.dist/interfaces/ISalesReport.js +0 -9
  654. package/.dist/interfaces/ISalesReport.js.map +0 -1
  655. package/.dist/interfaces/IScan.d.ts +0 -7
  656. package/.dist/interfaces/IScan.js +0 -3
  657. package/.dist/interfaces/IScan.js.map +0 -1
  658. package/.dist/interfaces/ISearchDropdownItem.d.ts +0 -4
  659. package/.dist/interfaces/ISearchDropdownItem.js +0 -3
  660. package/.dist/interfaces/ISearchDropdownItem.js.map +0 -1
  661. package/.dist/interfaces/ISeason.d.ts +0 -81
  662. package/.dist/interfaces/ISeason.js +0 -34
  663. package/.dist/interfaces/ISeason.js.map +0 -1
  664. package/.dist/interfaces/ISeasonCustomField.d.ts +0 -13
  665. package/.dist/interfaces/ISeasonCustomField.js +0 -3
  666. package/.dist/interfaces/ISeasonCustomField.js.map +0 -1
  667. package/.dist/interfaces/ISeasonPosterUrl.d.ts +0 -5
  668. package/.dist/interfaces/ISeasonPosterUrl.js +0 -3
  669. package/.dist/interfaces/ISeasonPosterUrl.js.map +0 -1
  670. package/.dist/interfaces/ISeasonQuery.d.ts +0 -23
  671. package/.dist/interfaces/ISeasonQuery.js +0 -15
  672. package/.dist/interfaces/ISeasonQuery.js.map +0 -1
  673. package/.dist/interfaces/ISeasonUpgrade.d.ts +0 -16
  674. package/.dist/interfaces/ISeasonUpgrade.js +0 -3
  675. package/.dist/interfaces/ISeasonUpgrade.js.map +0 -1
  676. package/.dist/interfaces/ISeating.d.ts +0 -9
  677. package/.dist/interfaces/ISeating.js +0 -3
  678. package/.dist/interfaces/ISeating.js.map +0 -1
  679. package/.dist/interfaces/ISocialAccountLink.d.ts +0 -13
  680. package/.dist/interfaces/ISocialAccountLink.js +0 -14
  681. package/.dist/interfaces/ISocialAccountLink.js.map +0 -1
  682. package/.dist/interfaces/IStripeCustomer.d.ts +0 -6
  683. package/.dist/interfaces/IStripeCustomer.js +0 -3
  684. package/.dist/interfaces/IStripeCustomer.js.map +0 -1
  685. package/.dist/interfaces/IStripePaymentMethod.d.ts +0 -10
  686. package/.dist/interfaces/IStripePaymentMethod.js +0 -3
  687. package/.dist/interfaces/IStripePaymentMethod.js.map +0 -1
  688. package/.dist/interfaces/IStripeTerminalReader.d.ts +0 -9
  689. package/.dist/interfaces/IStripeTerminalReader.js +0 -3
  690. package/.dist/interfaces/IStripeTerminalReader.js.map +0 -1
  691. package/.dist/interfaces/ITask.d.ts +0 -30
  692. package/.dist/interfaces/ITask.js +0 -16
  693. package/.dist/interfaces/ITask.js.map +0 -1
  694. package/.dist/interfaces/ITeiMemberInfo.d.ts +0 -6
  695. package/.dist/interfaces/ITeiMemberInfo.js +0 -3
  696. package/.dist/interfaces/ITeiMemberInfo.js.map +0 -1
  697. package/.dist/interfaces/ITicketExchange.d.ts +0 -10
  698. package/.dist/interfaces/ITicketExchange.js +0 -11
  699. package/.dist/interfaces/ITicketExchange.js.map +0 -1
  700. package/.dist/interfaces/ITicketHold.d.ts +0 -12
  701. package/.dist/interfaces/ITicketHold.js +0 -3
  702. package/.dist/interfaces/ITicketHold.js.map +0 -1
  703. package/.dist/interfaces/ITicketTier.d.ts +0 -10
  704. package/.dist/interfaces/ITicketTier.js +0 -3
  705. package/.dist/interfaces/ITicketTier.js.map +0 -1
  706. package/.dist/interfaces/ITicketType.d.ts +0 -25
  707. package/.dist/interfaces/ITicketType.js +0 -3
  708. package/.dist/interfaces/ITicketType.js.map +0 -1
  709. package/.dist/interfaces/IUser.d.ts +0 -29
  710. package/.dist/interfaces/IUser.js +0 -10
  711. package/.dist/interfaces/IUser.js.map +0 -1
  712. package/.dist/interfaces/IUserProfile.d.ts +0 -52
  713. package/.dist/interfaces/IUserProfile.js +0 -3
  714. package/.dist/interfaces/IUserProfile.js.map +0 -1
  715. package/.dist/interfaces/IVenue.d.ts +0 -13
  716. package/.dist/interfaces/IVenue.js +0 -3
  717. package/.dist/interfaces/IVenue.js.map +0 -1
  718. package/.dist/interfaces/IWebFlow.d.ts +0 -50
  719. package/.dist/interfaces/IWebFlow.js +0 -11
  720. package/.dist/interfaces/IWebFlow.js.map +0 -1
  721. package/.dist/schemas/Address.d.ts +0 -63
  722. package/.dist/schemas/Address.js +0 -65
  723. package/.dist/schemas/Address.js.map +0 -1
  724. package/.dist/schemas/Artist.d.ts +0 -107
  725. package/.dist/schemas/Artist.js +0 -120
  726. package/.dist/schemas/Artist.js.map +0 -1
  727. package/.dist/schemas/Event.d.ts +0 -814
  728. package/.dist/schemas/Event.js +0 -647
  729. package/.dist/schemas/Event.js.map +0 -1
  730. package/.dist/schemas/Fee.d.ts +0 -88
  731. package/.dist/schemas/Fee.js +0 -93
  732. package/.dist/schemas/Fee.js.map +0 -1
  733. package/.dist/schemas/Metrics.d.ts +0 -136
  734. package/.dist/schemas/Metrics.js +0 -142
  735. package/.dist/schemas/Metrics.js.map +0 -1
  736. package/.dist/schemas/Order.d.ts +0 -787
  737. package/.dist/schemas/Order.js +0 -664
  738. package/.dist/schemas/Order.js.map +0 -1
  739. package/.dist/schemas/Organization.d.ts +0 -193
  740. package/.dist/schemas/Organization.js +0 -132
  741. package/.dist/schemas/Organization.js.map +0 -1
  742. package/.dist/schemas/Role.d.ts +0 -36
  743. package/.dist/schemas/Role.js +0 -42
  744. package/.dist/schemas/Role.js.map +0 -1
  745. package/.dist/schemas/Season.d.ts +0 -703
  746. package/.dist/schemas/Season.js +0 -521
  747. package/.dist/schemas/Season.js.map +0 -1
  748. package/.dist/schemas/Seating.d.ts +0 -33
  749. package/.dist/schemas/Seating.js +0 -39
  750. package/.dist/schemas/Seating.js.map +0 -1
  751. package/.dist/schemas/User.d.ts +0 -113
  752. package/.dist/schemas/User.js +0 -119
  753. package/.dist/schemas/User.js.map +0 -1
  754. package/.dist/schemas/UserProfile.d.ts +0 -179
  755. package/.dist/schemas/UserProfile.js +0 -126
  756. package/.dist/schemas/UserProfile.js.map +0 -1
  757. package/.dist/schemas/Venue.d.ts +0 -108
  758. package/.dist/schemas/Venue.js +0 -56
  759. package/.dist/schemas/Venue.js.map +0 -1
  760. package/.dist/schemas/WebFlow.d.ts +0 -121
  761. package/.dist/schemas/WebFlow.js +0 -133
  762. package/.dist/schemas/WebFlow.js.map +0 -1
  763. package/.dist/sellout-proto.js +0 -179792
  764. package/.dist/utils/AnalyticsUtil.d.ts +0 -41
  765. package/.dist/utils/AnalyticsUtil.js +0 -767
  766. package/.dist/utils/AnalyticsUtil.js.map +0 -1
  767. package/.dist/utils/EventUtil.d.ts +0 -116
  768. package/.dist/utils/EventUtil.js +0 -908
  769. package/.dist/utils/EventUtil.js.map +0 -1
  770. package/.dist/utils/FeeUtil.d.ts +0 -14
  771. package/.dist/utils/FeeUtil.js +0 -82
  772. package/.dist/utils/FeeUtil.js.map +0 -1
  773. package/.dist/utils/OrderUtil.d.ts +0 -53
  774. package/.dist/utils/OrderUtil.js +0 -408
  775. package/.dist/utils/OrderUtil.js.map +0 -1
  776. package/.dist/utils/PaymentUtil.d.ts +0 -35
  777. package/.dist/utils/PaymentUtil.js +0 -564
  778. package/.dist/utils/PaymentUtil.js.map +0 -1
  779. package/.dist/utils/SaveLogsToFile.d.ts +0 -2
  780. package/.dist/utils/SaveLogsToFile.js +0 -47
  781. package/.dist/utils/SaveLogsToFile.js.map +0 -1
  782. package/.dist/utils/SeasonUtil.d.ts +0 -73
  783. package/.dist/utils/SeasonUtil.js +0 -472
  784. package/.dist/utils/SeasonUtil.js.map +0 -1
  785. package/.dist/utils/TierUtil.d.ts +0 -11
  786. package/.dist/utils/TierUtil.js +0 -92
  787. package/.dist/utils/TierUtil.js.map +0 -1
  788. package/.dist/utils/WebFlowUtil.d.ts +0 -7
  789. package/.dist/utils/WebFlowUtil.js +0 -10
  790. package/.dist/utils/WebFlowUtil.js.map +0 -1
  791. package/src/enums/ContactsScreenEnum.ts +0 -5
  792. package/src/enums/CustomFieldTypeEnum.ts +0 -6
  793. package/src/enums/DefaultArtistImageUrls.ts +0 -5
  794. package/src/enums/DefaultEventImageUrls.ts +0 -4
  795. package/src/enums/DefaultVenueImageUrls.ts +0 -3
  796. package/src/enums/DropDownEnum.ts +0 -3
  797. package/src/enums/EPurchasePortalModes.ts +0 -8
  798. package/src/enums/EPurchasePortalStatus.ts +0 -4
  799. package/src/enums/OrderChannelEnum.ts +0 -4
  800. package/src/enums/OrderItemTypeEnum.ts +0 -4
  801. package/src/enums/OrderShareTimestamp.ts +0 -7
  802. package/src/enums/PaymentMethodTypeEnum.ts +0 -7
  803. package/src/enums/TierStatusEnum.ts +0 -5
  804. package/src/graphql/fragments/event.fragment.ts +0 -372
  805. package/src/graphql/fragments/order.fragment.ts +0 -109
  806. package/src/graphql/fragments/season.fragment.ts +0 -365
  807. package/src/graphql/links/debounceLink.ts +0 -3
  808. package/src/graphql/mutations/acceptRole.mutation.ts +0 -17
  809. package/src/graphql/mutations/applyPlatformFeesToAllOrganizations.mutation.ts +0 -9
  810. package/src/graphql/mutations/attachStripePaymentMethod.mutation.ts +0 -18
  811. package/src/graphql/mutations/batchPrintBreakApartOrder.mutation.ts +0 -56
  812. package/src/graphql/mutations/breakApartOrder.ts +0 -43
  813. package/src/graphql/mutations/breakApartSeasonOrder.ts +0 -51
  814. package/src/graphql/mutations/cancelOrder.mutation.ts +0 -11
  815. package/src/graphql/mutations/cancelTickets.mutation.ts +0 -19
  816. package/src/graphql/mutations/connectStripe.mutation.ts +0 -9
  817. package/src/graphql/mutations/createArtist.mutation.ts +0 -40
  818. package/src/graphql/mutations/createContacts.mutation.ts +0 -9
  819. package/src/graphql/mutations/createEvent.mutation.ts +0 -89
  820. package/src/graphql/mutations/createEventOrSeasonFee.mutation.ts +0 -38
  821. package/src/graphql/mutations/createFee.mutation.ts +0 -27
  822. package/src/graphql/mutations/createOrder.mutation.ts +0 -55
  823. package/src/graphql/mutations/createOrderPaymentIntent.mutation.ts +0 -12
  824. package/src/graphql/mutations/createOrganisation.mutation.ts +0 -11
  825. package/src/graphql/mutations/createOrganizationFee.mutation.ts +0 -28
  826. package/src/graphql/mutations/createPlatformFee.mutation.ts +0 -28
  827. package/src/graphql/mutations/createRole.mutation.ts +0 -15
  828. package/src/graphql/mutations/createSeason.mutation.ts +0 -78
  829. package/src/graphql/mutations/createSeasonOrder.mutation.ts +0 -61
  830. package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +0 -14
  831. package/src/graphql/mutations/createStripeSetupIntent.mutation.ts +0 -9
  832. package/src/graphql/mutations/createStripeTerminalConnectionToken.mutation.ts +0 -9
  833. package/src/graphql/mutations/createVenue.mutation.ts +0 -33
  834. package/src/graphql/mutations/createWaitList.mutation.ts +0 -11
  835. package/src/graphql/mutations/createWebFlowSite.mutation.ts +0 -39
  836. package/src/graphql/mutations/deleteEvent.mutation.ts +0 -21
  837. package/src/graphql/mutations/deleteEventOrSeasonFee.mutation.ts +0 -10
  838. package/src/graphql/mutations/deleteFee.mutation.ts +0 -10
  839. package/src/graphql/mutations/deleteOrganizationFee.mutation.ts +0 -10
  840. package/src/graphql/mutations/deletePlatformFee.mutation.ts +0 -10
  841. package/src/graphql/mutations/deleteRole.mutation.ts +0 -10
  842. package/src/graphql/mutations/deleteSecondaryEmail.mutation.ts +0 -17
  843. package/src/graphql/mutations/deleteStripeTerminalReader.mutation.ts +0 -9
  844. package/src/graphql/mutations/deleteSubscription.mutation.ts +0 -12
  845. package/src/graphql/mutations/deleteSuperAdminOrg.mutation.ts +0 -9
  846. package/src/graphql/mutations/deleteTicketHold.mutation.ts +0 -12
  847. package/src/graphql/mutations/deleteUnverifiedUser.mutation.ts +0 -10
  848. package/src/graphql/mutations/duplicateEvent.mutation.ts +0 -86
  849. package/src/graphql/mutations/eventEmailTemplate.mutation.ts +0 -9
  850. package/src/graphql/mutations/forgotPassword.mutation.ts +0 -9
  851. package/src/graphql/mutations/generateActivityReport.mutation.ts +0 -14
  852. package/src/graphql/mutations/generateEventQRCode.mutation.ts +0 -9
  853. package/src/graphql/mutations/generateOrderReport.mutation.ts +0 -12
  854. package/src/graphql/mutations/generateUserProfileReport.mutation.ts +0 -13
  855. package/src/graphql/mutations/holdTicket.mutation.ts +0 -11
  856. package/src/graphql/mutations/login.mutation.ts +0 -19
  857. package/src/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.ts +0 -17
  858. package/src/graphql/mutations/multipleBreakApartOrder.mutation.ts +0 -56
  859. package/src/graphql/mutations/multipleBreakApartSeasonOrder.mutation.ts +0 -61
  860. package/src/graphql/mutations/orderIntegrationUpdate.mutation.ts +0 -10
  861. package/src/graphql/mutations/publishEvent.mutation.ts +0 -101
  862. package/src/graphql/mutations/publishSeason.mutation.ts +0 -78
  863. package/src/graphql/mutations/refundOrder.mutation.ts +0 -139
  864. package/src/graphql/mutations/register.mutation.ts +0 -39
  865. package/src/graphql/mutations/registerStripeTerminalReader.mutation.ts +0 -17
  866. package/src/graphql/mutations/remapWebFlowSite.mutation.ts +0 -36
  867. package/src/graphql/mutations/resetStripeConnection.mutation.ts +0 -9
  868. package/src/graphql/mutations/resetUserPassword.mutation.ts +0 -9
  869. package/src/graphql/mutations/resetUserPasswordInApp.mutation.ts +0 -9
  870. package/src/graphql/mutations/salesReport.mutation.ts +0 -10
  871. package/src/graphql/mutations/scanOrder.mutation.ts +0 -21
  872. package/src/graphql/mutations/sendOrderReceiptEmail.mutation.ts +0 -9
  873. package/src/graphql/mutations/sendSeasonOrderReceiptEmail.mutation.ts +0 -9
  874. package/src/graphql/mutations/sendUserEmailVerification.mutation.ts +0 -11
  875. package/src/graphql/mutations/sendUserPhoneAuthentication.mutation.ts +0 -10
  876. package/src/graphql/mutations/sendUserPhoneVerification.mutation.ts +0 -11
  877. package/src/graphql/mutations/setUserOrgContextId.mutation.ts +0 -11
  878. package/src/graphql/mutations/setUserPassword.mutation.ts +0 -11
  879. package/src/graphql/mutations/sharingTicket.mutation.ts +0 -11
  880. package/src/graphql/mutations/sharingTicketStatusChange.mutation.ts +0 -11
  881. package/src/graphql/mutations/updateArtist.mutation.ts +0 -40
  882. package/src/graphql/mutations/updateBasicUserInfo.mutation.ts +0 -11
  883. package/src/graphql/mutations/updateContact.mutation.ts +0 -16
  884. package/src/graphql/mutations/updateEvent.mutation.ts +0 -98
  885. package/src/graphql/mutations/updateEventOrSeasonFee.mutation.ts +0 -28
  886. package/src/graphql/mutations/updateFee.mutation.ts +0 -25
  887. package/src/graphql/mutations/updateGuestOrder.mutation.ts +0 -11
  888. package/src/graphql/mutations/updateOrder.mutation.ts +0 -11
  889. package/src/graphql/mutations/updateOrgEmailWebhook.mutation.ts +0 -9
  890. package/src/graphql/mutations/updateOrganistion.mutation.ts +0 -10
  891. package/src/graphql/mutations/updateOrganization.mutation.ts +0 -19
  892. package/src/graphql/mutations/updateOrganizationFee.mutation.ts +0 -27
  893. package/src/graphql/mutations/updatePlatformFee.mutation.ts +0 -27
  894. package/src/graphql/mutations/updateSeason.mutation.ts +0 -78
  895. package/src/graphql/mutations/updateUserEmail.mutation.ts +0 -23
  896. package/src/graphql/mutations/updateUserInfo.mutation.ts +0 -15
  897. package/src/graphql/mutations/updateUserPhoneNumber.mutation.ts +0 -23
  898. package/src/graphql/mutations/updateUserPreferredLogIn.mutation.ts +0 -13
  899. package/src/graphql/mutations/updateVenue.mutation.ts +0 -32
  900. package/src/graphql/mutations/uploadFiles.mutation.ts +0 -14
  901. package/src/graphql/mutations/verifyUserEmail.mutation.ts +0 -11
  902. package/src/graphql/mutations/verifyUserPhoneAuthentication.mutation.ts +0 -18
  903. package/src/graphql/mutations/verifyUserPhoneNumber.mutation.ts +0 -11
  904. package/src/graphql/mutations/waitListReport.mutation.ts +0 -11
  905. package/src/graphql/queries/DuplicateUrlStubUniqueness.query.ts +0 -10
  906. package/src/graphql/queries/analytics.query.ts +0 -26
  907. package/src/graphql/queries/artist.query.ts +0 -40
  908. package/src/graphql/queries/artists.query.ts +0 -41
  909. package/src/graphql/queries/context.query.ts +0 -42
  910. package/src/graphql/queries/customerOrders.query.ts +0 -44
  911. package/src/graphql/queries/customerProfile.query.ts +0 -56
  912. package/src/graphql/queries/discountCodeVerify.query.ts +0 -21
  913. package/src/graphql/queries/event.query.ts +0 -98
  914. package/src/graphql/queries/eventCalenderOrganizations.query.ts +0 -16
  915. package/src/graphql/queries/eventFees.query.ts +0 -27
  916. package/src/graphql/queries/events.query.ts +0 -90
  917. package/src/graphql/queries/eventsAdminCalender.query.ts +0 -62
  918. package/src/graphql/queries/eventsListOptimized.query.ts +0 -58
  919. package/src/graphql/queries/fee.query.ts +0 -27
  920. package/src/graphql/queries/fees.query.ts +0 -27
  921. package/src/graphql/queries/getSharedTicketsByEmailPhoneNumber.query.ts +0 -30
  922. package/src/graphql/queries/getTicketSharing.query.ts +0 -12
  923. package/src/graphql/queries/isDeletebleOrganization.ts +0 -9
  924. package/src/graphql/queries/isSuperUser.query.ts +0 -9
  925. package/src/graphql/queries/listStripeTerminalReaders.query.ts +0 -17
  926. package/src/graphql/queries/notifiyEvent.ts +0 -10
  927. package/src/graphql/queries/order.query.ts +0 -218
  928. package/src/graphql/queries/orders.query.ts +0 -149
  929. package/src/graphql/queries/ordersTableOptimized.query.ts +0 -80
  930. package/src/graphql/queries/organizationFees.query.ts +0 -28
  931. package/src/graphql/queries/organizations.query.ts +0 -50
  932. package/src/graphql/queries/platformFees.query.ts +0 -28
  933. package/src/graphql/queries/platformSettings.query.ts +0 -13
  934. package/src/graphql/queries/profile.query.ts +0 -99
  935. package/src/graphql/queries/profiles.query.ts +0 -29
  936. package/src/graphql/queries/promoCodeVerify.query.ts +0 -59
  937. package/src/graphql/queries/publicEvent.query.ts +0 -79
  938. package/src/graphql/queries/publicSeason.query.ts +0 -83
  939. package/src/graphql/queries/role.query.ts +0 -28
  940. package/src/graphql/queries/roles.query.ts +0 -28
  941. package/src/graphql/queries/season.query.ts +0 -78
  942. package/src/graphql/queries/seasonFees.query.ts +0 -28
  943. package/src/graphql/queries/seasons.query.ts +0 -77
  944. package/src/graphql/queries/seasonsDropdown.query.ts +0 -19
  945. package/src/graphql/queries/seating.query.ts +0 -16
  946. package/src/graphql/queries/seatingKeys.query.ts +0 -11
  947. package/src/graphql/queries/stripeCardDetail.query.ts +0 -18
  948. package/src/graphql/queries/superAdminAllCustomer.query.ts +0 -23
  949. package/src/graphql/queries/ticketRestriction.query.ts +0 -17
  950. package/src/graphql/queries/userExists.query.ts +0 -33
  951. package/src/graphql/queries/userProfile.query.ts +0 -30
  952. package/src/graphql/queries/userProfilesAdmin.query.ts +0 -55
  953. package/src/graphql/queries/userRoles.query.ts +0 -30
  954. package/src/graphql/queries/venue.query.ts +0 -33
  955. package/src/graphql/queries/venues.query.ts +0 -34
  956. package/src/graphql/queries/waitList.query.ts +0 -98
  957. package/src/graphql/queries/webFlowSites.query.ts +0 -20
  958. package/src/graphql/queries/webflow.query.ts +0 -38
  959. package/src/interfaces/IAddress.ts +0 -14
  960. package/src/interfaces/IAnalytics.ts +0 -156
  961. package/src/interfaces/IApiKey.ts +0 -8
  962. package/src/interfaces/IArtist.ts +0 -21
  963. package/src/interfaces/IArtistContact.ts +0 -8
  964. package/src/interfaces/IArtistPressKit.ts +0 -9
  965. package/src/interfaces/IBillingAddress.ts +0 -8
  966. package/src/interfaces/IContact.ts +0 -9
  967. package/src/interfaces/ICreateOrderParams.ts +0 -72
  968. package/src/interfaces/IEmailHolders.ts +0 -5
  969. package/src/interfaces/IEmailTicketHolder.ts +0 -10
  970. package/src/interfaces/IEvent.ts +0 -139
  971. package/src/interfaces/IEventCustomField.ts +0 -14
  972. package/src/interfaces/IEventPosterUrl.ts +0 -5
  973. package/src/interfaces/IEventPromotion.ts +0 -37
  974. package/src/interfaces/IEventQuery.ts +0 -28
  975. package/src/interfaces/IEventSchedule.ts +0 -7
  976. package/src/interfaces/IEventUpgrade.ts +0 -23
  977. package/src/interfaces/IFee.ts +0 -61
  978. package/src/interfaces/IFile.ts +0 -7
  979. package/src/interfaces/IOrder.ts +0 -91
  980. package/src/interfaces/IOrderCustomField.ts +0 -8
  981. package/src/interfaces/IOrderIntegration.ts +0 -5
  982. package/src/interfaces/IOrderIntegrationResponse.ts +0 -9
  983. package/src/interfaces/IOrderQuery.ts +0 -18
  984. package/src/interfaces/IOrderShareEnum.ts +0 -13
  985. package/src/interfaces/IOrderShareTimestamp.ts +0 -6
  986. package/src/interfaces/IOrderState.ts +0 -25
  987. package/src/interfaces/IOrderSummary.ts +0 -45
  988. package/src/interfaces/IOrderTicket.ts +0 -27
  989. package/src/interfaces/IOrderType.ts +0 -7
  990. package/src/interfaces/IOrderUpgrade.ts +0 -18
  991. package/src/interfaces/IOrganization.ts +0 -35
  992. package/src/interfaces/IPagination.ts +0 -21
  993. package/src/interfaces/IPayment.ts +0 -19
  994. package/src/interfaces/IPerformance.ts +0 -20
  995. package/src/interfaces/IProcessingFees.ts +0 -6
  996. package/src/interfaces/IQuery.ts +0 -30
  997. package/src/interfaces/IRefund.ts +0 -7
  998. package/src/interfaces/IRefundModal.ts +0 -9
  999. package/src/interfaces/IRole.ts +0 -37
  1000. package/src/interfaces/ISalesReport.ts +0 -18
  1001. package/src/interfaces/IScan.ts +0 -7
  1002. package/src/interfaces/ISearchDropdownItem.ts +0 -5
  1003. package/src/interfaces/ISeason.ts +0 -92
  1004. package/src/interfaces/ISeasonCustomField.ts +0 -14
  1005. package/src/interfaces/ISeasonPosterUrl.ts +0 -5
  1006. package/src/interfaces/ISeasonQuery.ts +0 -25
  1007. package/src/interfaces/ISeasonUpgrade.ts +0 -16
  1008. package/src/interfaces/ISeating.ts +0 -9
  1009. package/src/interfaces/ISocialAccountLink.ts +0 -14
  1010. package/src/interfaces/IStripeCustomer.ts +0 -7
  1011. package/src/interfaces/IStripePaymentMethod.ts +0 -10
  1012. package/src/interfaces/IStripeTerminalReader.ts +0 -9
  1013. package/src/interfaces/ITask.ts +0 -33
  1014. package/src/interfaces/ITeiMemberInfo.ts +0 -6
  1015. package/src/interfaces/ITicketExchange.ts +0 -11
  1016. package/src/interfaces/ITicketHold.ts +0 -12
  1017. package/src/interfaces/ITicketTier.ts +0 -10
  1018. package/src/interfaces/ITicketType.ts +0 -26
  1019. package/src/interfaces/IUser.ts +0 -30
  1020. package/src/interfaces/IUserProfile.ts +0 -62
  1021. package/src/interfaces/IVenue.ts +0 -14
  1022. package/src/interfaces/IWebFlow.ts +0 -55
  1023. package/src/proto/email.proto +0 -450
  1024. package/src/proto/event.proto +0 -826
  1025. package/src/proto/order.proto +0 -901
  1026. package/src/proto/plivo.proto +0 -31
  1027. package/src/proto/season.proto +0 -212
  1028. package/src/proto/stripe.proto +0 -436
  1029. package/src/proto/task.proto +0 -82
  1030. package/src/schemas/Artist.ts +0 -118
  1031. package/src/schemas/Event.ts +0 -657
  1032. package/src/schemas/Fee.ts +0 -88
  1033. package/src/schemas/Order.ts +0 -668
  1034. package/src/schemas/Organization.ts +0 -126
  1035. package/src/schemas/Role.ts +0 -37
  1036. package/src/schemas/Season.ts +0 -526
  1037. package/src/schemas/Seating.ts +0 -34
  1038. package/src/schemas/User.ts +0 -114
  1039. package/src/schemas/UserProfile.ts +0 -122
  1040. package/src/schemas/Venue.ts +0 -51
  1041. package/src/schemas/WebFlow.ts +0 -132
  1042. package/src/utils/AnalyticsUtil.ts +0 -1139
  1043. package/src/utils/EventUtil.ts +0 -983
  1044. package/src/utils/FeeUtil.ts +0 -79
  1045. package/src/utils/OrderUtil.ts +0 -425
  1046. package/src/utils/PaymentUtil.ts +0 -841
  1047. package/src/utils/SaveLogsToFile.ts +0 -13
  1048. package/src/utils/SeasonUtil.ts +0 -497
  1049. package/src/utils/TierUtil.ts +0 -76
  1050. package/src/utils/fee-util-broken-but-why +0 -36
  1051. package/tsconfig.json +0 -29
  1052. package/tslint.json +0 -21
  1053. /package/{src/proto → proto}/web-flow.proto +0 -0
  1054. /package/{src/utils → utils}/WebFlowUtil.ts +0 -0
@@ -1,841 +0,0 @@
1
- import FeeUtil from "./FeeUtil";
2
- import {
3
- ICreateOrderTicketParams,
4
- ICreateOrderUpgradeParams,
5
- } from "../interfaces/ICreateOrderParams";
6
- import IFee, {
7
- FeeAppliedToEnum,
8
- FeeFiltersEnum,
9
- FeeTypeEnum,
10
- FeeAppliedByEnum,
11
- } from "../interfaces/IFee";
12
- import { PaymentMethodTypeEnum } from "../enums/PaymentMethodTypeEnum";
13
- import IEventPromotion, {
14
- EventPromotionAppliesToEnum,
15
- EventPromotionDiscountTypeEnum,
16
- } from "../interfaces/IEventPromotion";
17
-
18
- interface IPaymentCalculatorParams {
19
- tickets: ICreateOrderTicketParams[];
20
- upgrades: ICreateOrderUpgradeParams[];
21
- fees: IFee[];
22
- paymentMethodType: PaymentMethodTypeEnum;
23
- promotions?: IEventPromotion[];
24
- }
25
-
26
- class PaymentUtil {
27
- calculatePaymentTotal(params: IPaymentCalculatorParams): any {
28
- let {
29
- tickets = [],
30
- upgrades = [],
31
- fees = [],
32
- paymentMethodType,
33
- promotions = [],
34
- } = params;
35
-
36
- // No items, total is always 0
37
- if (!tickets.length && !upgrades.length) return 0;
38
-
39
- const ticketFeesPromoCodePercent = promotions?.filter(
40
- (f) =>
41
- f.appliesTo === EventPromotionAppliesToEnum.PerTicket &&
42
- f.discountType === EventPromotionDiscountTypeEnum.Percent
43
- );
44
-
45
- const discountFeePercentPerTicketTotal = tickets?.reduce((cur, ticket) => {
46
- return (
47
- cur +
48
- ticketFeesPromoCodePercent?.reduce((cur, promotion) => {
49
- const value = cur + applyTicketDiscount(ticket, promotion);
50
- return value;
51
- }, 0)
52
- );
53
- }, 0);
54
-
55
- if (promotions?.length) {
56
- tickets = tickets.map(ticket => {
57
- if (promotions && promotions[0].discountType === EventPromotionDiscountTypeEnum.Flat && promotions[0].appliesTo === EventPromotionAppliesToEnum.PerTicket) {
58
- if (promotions[0]?.ticketTypeIds.length == 0) {
59
- const discountValue = Number(promotions[0].discountValue);
60
- const originalPrice = ticket.price;
61
- const discountedPrice = originalPrice - discountValue;
62
- return {
63
- ...ticket,
64
- price: discountedPrice
65
- };
66
- } else {
67
- if (promotions[0]?.ticketTypeIds.includes(ticket?.ticketTypeId)) {
68
- const discountValue = Number(promotions[0].discountValue);
69
- const originalPrice = ticket.price;
70
- const discountedPrice = originalPrice - discountValue;
71
- return {
72
- ...ticket,
73
- price: discountedPrice
74
- };
75
- } else {
76
- const originalPrice = ticket.price;
77
- return {
78
- ...ticket,
79
- price: originalPrice
80
- };
81
- }
82
- }
83
- }
84
- if (promotions && promotions[0].discountType === EventPromotionDiscountTypeEnum.Percent && promotions[0].appliesTo === EventPromotionAppliesToEnum.PerTicket) {
85
-
86
- if (promotions[0]?.ticketTypeIds.length == 0) {
87
- const discountValue = Number(promotions[0].discountValue);
88
- const percentTicketValue = (ticket.origionalPrice * discountValue) / 100
89
- const originalPrice = ticket.price;
90
- const discountPercentPrice = originalPrice - percentTicketValue;
91
- return {
92
- ...ticket,
93
- price: discountPercentPrice
94
- };
95
- } else {
96
-
97
- if (promotions[0]?.ticketTypeIds.includes(ticket?.ticketTypeId)) {
98
- const discountValue = Number(promotions[0].discountValue);
99
- const percentTicketValue = (ticket.origionalPrice * discountValue) / 100
100
- const originalPrice = ticket.price;
101
- const discountPercentPrice = originalPrice - percentTicketValue
102
-
103
- return {
104
- ...ticket,
105
- price: discountPercentPrice
106
- };
107
- }
108
- else {
109
- const originalPrice = ticket.price;
110
- return {
111
- ...ticket,
112
- price: originalPrice
113
- };
114
- }
115
- }
116
- }
117
-
118
- return ticket;
119
- })
120
- }
121
-
122
- // Filter fees
123
- fees = fees.filter((fee: IFee) => {
124
- if (!fee?.paymentMethods || fee?.paymentMethods?.length == 0) {
125
- return true;
126
- } else if (fee?.paymentMethods?.includes(paymentMethodType as any)) {
127
- return true;
128
- } else {
129
- return false;
130
- }
131
- });
132
-
133
- let guestFees = fees.filter(
134
- (fee: IFee) => fee.filters && fee.filters[0] == FeeFiltersEnum.GuestTicket
135
- );
136
-
137
- fees = fees.filter(
138
- (fee: IFee) =>
139
- fee.filters && fee.filters[0] !== FeeFiltersEnum.GuestTicket
140
- );
141
-
142
- function applyGuestTicketFee(
143
- ticket: ICreateOrderTicketParams,
144
- fee: IFee
145
- ): number {
146
- // Ignore seated fees if not seated
147
- if (
148
- fee.filters &&
149
- fee.filters.includes(FeeFiltersEnum.Seated) &&
150
- !ticket.seat
151
- ) {
152
- return 0;
153
- }
154
-
155
- if (!ticket.guestTicket) {
156
- return 0;
157
- }
158
-
159
- const minFee = fee.minAppliedToPrice || 0;
160
- const maxFee = fee.maxAppliedToPrice || Infinity;
161
-
162
- if (minFee <= ticket.price && ticket.price <= maxFee) {
163
- if (fee.type === FeeTypeEnum.Flat) {
164
- return fee.value;
165
- }
166
- if (fee.type === FeeTypeEnum.Percent) {
167
- return (ticket.price * fee.value) / 100;
168
- }
169
- } else {
170
- return 0;
171
- }
172
-
173
- return 0;
174
- }
175
-
176
- const ticketFeesPromoCodeFlat = promotions?.filter(
177
- (f) =>
178
- f.appliesTo === EventPromotionAppliesToEnum.PerTicket &&
179
- f.discountType === EventPromotionDiscountTypeEnum.Flat
180
- );
181
-
182
- // Fees applied
183
- const ticketFeesPromotersFlat = fees.filter(
184
- (f) =>
185
- f.appliedTo === FeeAppliedToEnum.Ticket &&
186
- f.appliedBy == FeeAppliedByEnum.Organization &&
187
- f.type === FeeTypeEnum.Flat
188
- );
189
- const ticketFeesPromotersPercent = fees.filter(
190
- (f) =>
191
- f.appliedTo === FeeAppliedToEnum.Ticket &&
192
- f.appliedBy == FeeAppliedByEnum.Organization &&
193
- f.type === FeeTypeEnum.Percent
194
- );
195
-
196
- const ticketFeesSelloutPercent = fees.filter(
197
- (f) =>
198
- f.appliedTo === FeeAppliedToEnum.Ticket &&
199
- f.appliedBy == FeeAppliedByEnum.Sellout &&
200
- f.type === FeeTypeEnum.Percent
201
- );
202
- // added upgrade fee percentage for sellout fees total
203
- const upgradeFeesSelloutPercent = fees.filter(
204
- (f) =>
205
- f.appliedTo === FeeAppliedToEnum.Upgrade &&
206
- f.appliedBy == FeeAppliedByEnum.Sellout &&
207
- f.type === FeeTypeEnum.Percent
208
- );
209
-
210
- const upgradeFeesPromotersFees = fees.filter(
211
- (f) =>
212
- f.appliedTo === FeeAppliedToEnum.Upgrade &&
213
- f.appliedBy == FeeAppliedByEnum.Organization
214
- );
215
-
216
- const upgradeFeesSelloutFees = fees.filter(
217
- (f) =>
218
- f.appliedTo === FeeAppliedToEnum.Upgrade &&
219
- f.appliedBy == FeeAppliedByEnum.Sellout
220
- );
221
-
222
- const selloutFees: any = fees.filter(
223
- (f) => f.appliedBy == FeeAppliedByEnum.Sellout
224
- );
225
- // sales tax fee
226
- const salesTaxFees = fees.find((f) => f.name == "Sales tax");
227
- const stripeFees = fees.filter(
228
- (f) => f.appliedBy == FeeAppliedByEnum.Stripe
229
- );
230
- // Orders mattes here. Flat type fees must be applied before Percent type fees
231
- const promoterOrderFees = fees
232
- .filter(
233
- (f) =>
234
- f.appliedTo === FeeAppliedToEnum.Order &&
235
- f.name != "Sales tax" &&
236
- f.appliedBy == FeeAppliedByEnum.Organization
237
- )
238
- .sort(({ type }) => {
239
- if (type === "Flat") return -1;
240
- else return 1;
241
- });
242
- // Caclualtions
243
- const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0);
244
- const upgradeTotal = upgrades.reduce(
245
- (cur, upgrade) => cur + upgrade.price,
246
- 0
247
- );
248
-
249
- const totalTicketUpgrade = ticketTotal + upgradeTotal;
250
-
251
- const discountFeeFlatPerTicketTotal = tickets?.reduce((cur, ticket) => {
252
- return (
253
- cur +
254
- ticketFeesPromoCodeFlat?.reduce((cur, promotion) => {
255
- const value = cur + applyTicketDiscount(ticket, promotion);
256
- return value;
257
- }, 0)
258
- );
259
- }, 0);
260
-
261
- const discountFeeFlatPerOrderAmt = promotions?.reduce(
262
- (cur: number, promotion: IEventPromotion) => {
263
- if (
264
- promotion.discountType == EventPromotionDiscountTypeEnum.Flat &&
265
- promotion.appliesTo === EventPromotionAppliesToEnum.PerOrder
266
- ) {
267
- const value = cur + promotion.discountValue;
268
- return value;
269
- }
270
- return cur;
271
- },
272
- 0
273
- );
274
-
275
- const discountFeePercentPerOrderAmt = promotions?.reduce(
276
- (cur: number, promotion: IEventPromotion) => {
277
- if (
278
- promotion.discountType == EventPromotionDiscountTypeEnum.Percent &&
279
- promotion.appliesTo === EventPromotionAppliesToEnum.PerOrder
280
- ) {
281
- const value = cur + (totalTicketUpgrade * promotion.discountValue) / 100;
282
- return value;
283
- }
284
- return cur;
285
- },
286
- 0
287
- );
288
-
289
- const discount =
290
- Math.round(
291
- discountFeeFlatPerTicketTotal || 0 + discountFeePercentPerTicketTotal || 0) || 0;
292
- const discountOrder =
293
- Math.round(
294
- discountFeeFlatPerOrderAmt || 0 + discountFeePercentPerOrderAmt || 0) || 0;
295
-
296
- const totalTicketAndUpgrades = Math.round(ticketTotal - discountOrder || 0) + Math.round(upgradeTotal);
297
-
298
- const promoterFeeFlatPerOrderTotal = promoterOrderFees.reduce(
299
- (acc, fee: any) => {
300
- return fee.type == FeeTypeEnum.Flat ? acc + getFeeAmtRangeBased(fee) : acc;
301
- },
302
- 0
303
- );
304
-
305
- const promoterFeeFlatPerTicketTotal = tickets.reduce((cur, ticket) => {
306
- return (
307
- cur +
308
- ticketFeesPromotersFlat.reduce((cur, fee) => {
309
- const value = cur + applyTicketFee(ticket, fee);
310
- return value;
311
- }, 0)
312
- );
313
- }, 0);
314
-
315
- const promoterFeeFlatPerUpgradeTotal = upgrades.reduce((cur, upgrade) => {
316
- return (
317
- cur +
318
- upgradeFeesPromotersFees.reduce((cur, fee) => {
319
- const value = cur + applyUpgradeFee(upgrade, fee);
320
- return value;
321
- }, 0)
322
- );
323
- }, 0);
324
-
325
- const SelloutFeeFlatPerUpgradeTotal = upgrades.reduce((cur, upgrade) => {
326
- return (
327
- cur +
328
- upgradeFeesSelloutFees.reduce((cur, fee) => {
329
- const value = cur + applyUpgradeFee(upgrade, fee);
330
- return value;
331
- }, 0)
332
- );
333
- }, 0);
334
-
335
- const promoterFeePercentPerTicketTotal = tickets.reduce((cur, ticket) => {
336
- return (
337
- cur +
338
- ticketFeesPromotersPercent.reduce((cur, fee) => {
339
- const value = cur + applyTicketFee(ticket, fee);
340
- return value;
341
- }, 0)
342
- );
343
- }, 0);
344
-
345
-
346
-
347
- let promoterFeePercentPerTicketTotal1 = Math.round(promoterFeePercentPerTicketTotal)
348
-
349
-
350
- let selloutFeePercentPerTicketTotal = tickets.reduce((cur, ticket) => {
351
- return (
352
- cur +
353
- ticketFeesSelloutPercent.reduce((cur, fee) => {
354
- const value = cur + applyTicketFee(ticket, fee);
355
- return value;
356
- }, 0)
357
- );
358
- }, 0);
359
-
360
- // added upgrade fee percentage for sellout fees total
361
- let selloutFeePercentPerUpgradeTotal = upgrades.reduce((cur, upgrade) => {
362
- return (
363
- cur +
364
- upgradeFeesSelloutPercent.reduce((cur, fee) => {
365
- const value = cur + applyUpgradeFee(upgrade, fee);
366
- return value;
367
- }, 0)
368
- );
369
- }, 0);
370
-
371
- selloutFeePercentPerTicketTotal = Math.round(selloutFeePercentPerTicketTotal);
372
-
373
- const promoterFeePercentPerOrder = promoterOrderFees.reduce((acc, fee) => {
374
- if (fee.type == FeeTypeEnum.Percent) {
375
- return acc + getFeeAmtRangeBased(fee, totalTicketAndUpgrades);
376
- }
377
- return acc;
378
- }, 0);
379
-
380
- let promoterFeePercentPerOrder1 = Math.round(promoterFeePercentPerOrder)
381
-
382
- const ticketGuestFeeTotalForPromoter = tickets.reduce((cur, ticket) => {
383
- return (
384
- cur +
385
- guestFees.reduce((cur, fee) => {
386
- const value =
387
- fee.appliedBy == FeeAppliedByEnum.Organization
388
- ? cur + applyGuestTicketFee(ticket, fee)
389
- : 0;
390
- return value;
391
- }, 0)
392
- );
393
- }, 0);
394
-
395
- const ticketGuestFeeTotalForSellout = tickets.reduce((cur, ticket) => {
396
- return (
397
- cur +
398
- guestFees.reduce((cur, fee) => {
399
- const value =
400
- fee.appliedBy == FeeAppliedByEnum.Sellout
401
- ? cur + applyGuestTicketFee(ticket, fee)
402
- : 0;
403
- return value;
404
- }, 0)
405
- );
406
- }, 0);
407
-
408
- const orderSubtotal = Math.round(
409
- totalTicketAndUpgrades +
410
- promoterFeeFlatPerTicketTotal +
411
- promoterFeeFlatPerOrderTotal +
412
- promoterFeePercentPerTicketTotal1 +
413
- promoterFeePercentPerOrder1 +
414
- ticketGuestFeeTotalForPromoter +
415
- promoterFeeFlatPerUpgradeTotal
416
- );
417
-
418
- const salesTaxAmount = salesTaxFees
419
- ? (orderSubtotal * salesTaxFees.value) / 100
420
- : 0;
421
-
422
- const promoterTotal = Math.round(orderSubtotal) + Math.round(salesTaxAmount);
423
-
424
- // apply sellout percent fees on ticket and add-on total rather than promoter total
425
- const selloutPercentFeesAmt = selloutFees.reduce((acc, fee) => {
426
- if (fee.type == FeeTypeEnum.Percent && fee.appliedTo == FeeAppliedToEnum.Order) {
427
- // return acc + getFeeAmount(fee, promoterTotal);
428
- return acc + getFeeAmtRangeBased(fee, totalTicketAndUpgrades);
429
- }
430
- return acc;
431
- }, 0);
432
-
433
- const selloutFeeFlatPerTicketAmt = tickets.reduce(
434
- (cur: number, ticket: any) => {
435
- return (
436
- cur +
437
- selloutFees.reduce((cur: number, fee: IFee) => {
438
- if (
439
- fee.type == FeeTypeEnum.Flat &&
440
- fee.appliedTo === FeeAppliedToEnum.Ticket &&
441
- !fee?.filters?.includes(FeeFiltersEnum.Seated)
442
- ) {
443
- const value = cur + applyTicketFee(ticket, fee);
444
- return value;
445
- }
446
- return cur;
447
- }, 0)
448
- );
449
- },
450
- 0
451
- );
452
-
453
- const selloutFeeFlatPerOrderAmt = selloutFees.reduce(
454
- (cur: number, fee: IFee) => {
455
- if (
456
- fee.type === FeeTypeEnum.Flat &&
457
- fee.appliedTo === FeeAppliedToEnum.Order
458
- ) {
459
- const value = cur + getFeeAmtRangeBased(fee, totalTicketAndUpgrades);
460
- return value;
461
- }
462
- return cur;
463
- },
464
- 0
465
- );
466
-
467
- const selloutSeatedFeeAmt = tickets.reduce((cur: number, ticket: any) => {
468
- return (
469
- cur +
470
- selloutFees.reduce((cur: number, fee: IFee) => {
471
- if (
472
- fee.type == FeeTypeEnum.Flat &&
473
- fee.appliedTo === FeeAppliedToEnum.Ticket &&
474
- fee?.filters?.includes(FeeFiltersEnum.Seated)
475
- ) {
476
- const value = cur + applyTicketFee(ticket, fee);
477
- return value;
478
- }
479
-
480
- return cur;
481
- }, 0)
482
- );
483
- }, 0);
484
-
485
-
486
- const selloutFeesTotal = Math.round(
487
- selloutFeePercentPerTicketTotal +
488
- selloutFeePercentPerUpgradeTotal + // calculated total upgrade fees for sellout fees
489
- selloutPercentFeesAmt +
490
- selloutFeeFlatPerTicketAmt +
491
- selloutFeeFlatPerOrderAmt +
492
- selloutSeatedFeeAmt +
493
- ticketGuestFeeTotalForSellout +
494
- SelloutFeeFlatPerUpgradeTotal
495
- );
496
-
497
- const preStripeTotal = promoterTotal + selloutFeesTotal;
498
-
499
- let stripeFeeAmt = 0;
500
-
501
- const stripeFeePercentage =
502
- stripeFees.find((fee) => fee.type == FeeTypeEnum.Percent)?.value || 0;
503
- const stripeFeeFlat =
504
- stripeFees.find((fee) => fee.type == FeeTypeEnum.Flat)?.value || 0;
505
- stripeFeeAmt =
506
- (preStripeTotal + stripeFeeFlat) / (1 - stripeFeePercentage / 100) -
507
- preStripeTotal;
508
-
509
- function applyTicketFee(
510
- ticket: ICreateOrderTicketParams,
511
- fee: IFee
512
- ): number {
513
- // Ignore seated fees if not seated
514
- if (
515
- fee.filters &&
516
- fee.filters.includes(FeeFiltersEnum.Seated) &&
517
- !ticket.seat
518
- ) {
519
- return 0;
520
- }
521
-
522
- const minFee = fee.minAppliedToPrice || 0;
523
- const maxFee = fee.maxAppliedToPrice || Infinity;
524
-
525
- if (minFee <= ticket.price && ticket.price <= maxFee) {
526
- if (fee.type === FeeTypeEnum.Flat) {
527
- return fee.value;
528
- }
529
- if (fee.type === FeeTypeEnum.Percent) {
530
- return (ticket.price * fee.value) / 100;
531
- }
532
- } else {
533
- return 0;
534
- }
535
-
536
- return 0;
537
- }
538
-
539
- function applyTicketDiscount(
540
- ticket: ICreateOrderTicketParams,
541
- promotion: IEventPromotion
542
- ): any {
543
- if (
544
- promotion.ticketTypeIds.includes(ticket?.ticketTypeId) ||
545
- promotion.ticketTypeIds.length == 0
546
- ) {
547
- if (promotion?.discountType === EventPromotionDiscountTypeEnum.Flat) {
548
- return promotion.discountValue;
549
- }
550
- if (promotion.discountType === EventPromotionDiscountTypeEnum.Percent) {
551
- return (ticket.origionalPrice * promotion.discountValue) / 100;
552
- }
553
- } else {
554
- return 0;
555
- }
556
- }
557
-
558
- function applyUpgradeFee(
559
- upgrade: ICreateOrderUpgradeParams,
560
- fee: IFee
561
- ): number {
562
- const minFee = fee.minAppliedToPrice || 0;
563
- const maxFee = fee.maxAppliedToPrice || Infinity;
564
-
565
- if (minFee <= upgrade.price && upgrade.price <= maxFee) {
566
- if (fee.type === FeeTypeEnum.Flat) {
567
- return fee.value;
568
- }
569
- if (fee.type === FeeTypeEnum.Percent) {
570
- return (upgrade.price * fee.value) / 100;
571
- }
572
- } else {
573
- return 0;
574
- }
575
-
576
- return 0;
577
- }
578
-
579
- let promoterFeeAmount =
580
- promoterFeeFlatPerTicketTotal +
581
- promoterFeeFlatPerOrderTotal +
582
- promoterFeePercentPerTicketTotal1 +
583
- promoterFeePercentPerOrder1 +
584
- ticketGuestFeeTotalForPromoter +
585
- promoterFeeFlatPerUpgradeTotal;
586
-
587
- // calculate fee based on min and max
588
- function getFeeAmtRangeBased(fee, amt = 0) {
589
- const minFee = fee.minAppliedToPrice || 0;
590
- const maxFee = fee.maxAppliedToPrice || Infinity;
591
-
592
- if (amt < minFee || amt > maxFee) {
593
- return 0;
594
- }
595
-
596
- if (fee.type === FeeTypeEnum.Flat) {
597
- return fee.value;
598
- }
599
-
600
- if (fee.type === FeeTypeEnum.Percent) {
601
- return amt * (fee.value / 100);
602
- }
603
-
604
- return 0;
605
- }
606
-
607
- let total = {
608
- salesTax: Math.round(salesTaxAmount || 0),
609
- total: Math.round(preStripeTotal) + Math.round(stripeFeeAmt) || 0,
610
- promoterFees: Math.round((promoterFeeAmount) || 0),
611
- stripeFees: Math.round(stripeFeeAmt || 0),
612
- selloutFees: Math.round(selloutFeesTotal || 0),
613
- orderSubtotal: Math.round(orderSubtotal || 0),
614
- subTotal: Math.round(totalTicketAndUpgrades || 0),
615
- totalFees: Math.round((promoterFeeAmount + stripeFeeAmt + selloutFeesTotal + salesTaxAmount) || 0),
616
- totalWithoutTaxFees: Math.round((promoterFeeAmount + stripeFeeAmt + selloutFeesTotal) || 0),
617
- guestFeeForPromoter: Math.round(ticketGuestFeeTotalForPromoter || 0),
618
- guestFeeForSellout: Math.round(ticketGuestFeeTotalForSellout || 0),
619
- discountAmount: Math.round(discount || discountOrder) || 0,
620
-
621
- }
622
- return total;
623
- }
624
-
625
- calculatePaymentSubtotal(params: IPaymentCalculatorParams): number {
626
- let {
627
- tickets = [],
628
- upgrades = [],
629
- paymentMethodType,
630
- } = params;
631
-
632
- if (paymentMethodType === PaymentMethodTypeEnum.None) return 0;
633
- const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0); // + (ticket.price * tax/100)
634
- const upgradeTotal = upgrades.reduce(
635
- (cur, upgrade) => cur + upgrade.price,
636
- 0
637
- );
638
- return ticketTotal + upgradeTotal
639
- }
640
-
641
- calculatePaymentSubtotalValue(params: any): number {
642
- let {
643
- tickets = [],
644
- upgrades = [],
645
- } = params;
646
-
647
- const ticketTotal = tickets.reduce((cur, ticket) => cur + ticket.price, 0); // + (ticket.price * tax/100)
648
- const upgradeTotal = upgrades.reduce(
649
- (cur, upgrade) => cur + upgrade.price,
650
- 0
651
- ); // + (upgrade.price * tax/100)
652
-
653
- return ticketTotal + upgradeTotal;
654
- }
655
-
656
- calculateFee(params: IPaymentCalculatorParams): number {
657
- let { fees } = params;
658
- const salesTax = fees.filter((f) => f.name == "Sales tax");
659
- const tax = salesTax.length > 0 ? salesTax[0].value : 0;
660
- const total = this.calculatePaymentTotal(params).total;
661
- let subtotal = this.calculatePaymentSubtotal(params);
662
- subtotal = subtotal + (subtotal * tax) / 100;
663
- return Math.round(total - subtotal);
664
- }
665
-
666
- calculateFeeWithoutTax(params: IPaymentCalculatorParams): any {
667
- const total = this.calculatePaymentTotal(params);
668
- return total;
669
- }
670
- calculateOrganizationFee(params: IPaymentCalculatorParams): number {
671
- let { tickets = [], upgrades = [], fees = [], paymentMethodType } = params;
672
-
673
- fees = FeeUtil.promoterFees(fees);
674
- return this.calculateFee({
675
- tickets,
676
- upgrades,
677
- fees,
678
- paymentMethodType,
679
- });
680
- }
681
-
682
- calculateTaxFee(params: IPaymentCalculatorParams): number {
683
- let { tickets = [], upgrades = [], fees = [], paymentMethodType } = params;
684
-
685
- fees = FeeUtil.taxFees(fees);
686
- return this.calculateFeeWithoutTax({
687
- tickets,
688
- upgrades,
689
- fees,
690
- paymentMethodType,
691
- });
692
- }
693
- calculatePlatformFee(params: IPaymentCalculatorParams): number {
694
- let { tickets = [], upgrades = [], fees = [], paymentMethodType } = params;
695
-
696
- fees = FeeUtil.selloutFees(fees);
697
-
698
- return this.calculateFee({
699
- tickets,
700
- upgrades,
701
- fees,
702
- paymentMethodType,
703
- });
704
- }
705
- calculateStripeFee(params: IPaymentCalculatorParams): number {
706
- const total = this.calculatePaymentTotal(params).total;
707
- const subtotal = this.calculatePaymentSubtotal(params);
708
- const platformFees = this.calculatePlatformFee(params);
709
- const organizationFee = this.calculateOrganizationFee(params);
710
- return total - subtotal - platformFees - organizationFee;
711
- }
712
- calculateProcessingFee(params: IPaymentCalculatorParams): number {
713
- const total = this.calculatePaymentTotal(params).total;
714
- const subtotal = this.calculatePaymentSubtotal(params);
715
- const organizationFee = this.calculateOrganizationFee(params);
716
- return total - subtotal - organizationFee;
717
- }
718
- calculateGuestFee(tickets: any, event: any): number {
719
- let guestTicketFees = event?.fees.filter(
720
- (fee: IFee) =>
721
- fee.filters && fee.filters[0] === FeeFiltersEnum.GuestTicket
722
- );
723
-
724
- let stripeFees = event?.fees.filter(
725
- (fee: IFee) =>
726
- fee.appliedBy === FeeAppliedByEnum.Stripe &&
727
- fee.type === FeeTypeEnum.Percent
728
- );
729
-
730
- let guestFeesValue = guestTicketFees && guestTicketFees[0]?.value;
731
- let stripeFeesValue = stripeFees && stripeFees[0]?.value;
732
- let guestMembers = tickets.filter((a) => a.guestTicket).length;
733
- let guestFees = (guestFeesValue as number) * guestMembers;
734
- return guestTicketFees.length > 0 && event.organization.isTegIntegration
735
- ? guestFees + (guestFees * stripeFeesValue) / 100
736
- : 0;
737
- }
738
- getApplicableFees({
739
- price,
740
- fees,
741
- isTicketType = false,
742
- isUpgradeType = false,
743
- }: {
744
- price: number;
745
- fees: any[];
746
- isTicketType?: boolean;
747
- isUpgradeType?: boolean;
748
- }): { label: string; amount: number }[] {
749
- if (!fees || fees.length === 0) return [];
750
-
751
- const filteredFees = fees.filter((fee) => {
752
- const min = fee.minAppliedToPrice;
753
- const max = fee.maxAppliedToPrice;
754
- const baseCondition =
755
- !fee.disabled &&
756
- ((min === 0 && max === 0) || (price >= min && price <= max));
757
-
758
- if (!baseCondition) return false;
759
-
760
- const feeSeatedFilter = FeeFiltersEnum.Seated;
761
- const guestFilter = FeeFiltersEnum.GuestTicket;
762
- const feeCardEntryFilter = FeeFiltersEnum.CardEntry;
763
- const feeCardReaderWifiFilter = FeeFiltersEnum.CardReader;
764
- const feeCardReaderBluetoothFilter = FeeFiltersEnum.CardReaderBluetooth;
765
-
766
- const excludedFilters = [
767
- feeSeatedFilter,
768
- guestFilter,
769
- feeCardEntryFilter,
770
- feeCardReaderWifiFilter,
771
- feeCardReaderBluetoothFilter,
772
- ];
773
-
774
- const hasExcludedFilter =
775
- fee.filters &&
776
- fee.filters.some((filter: string) =>
777
- excludedFilters.includes(filter as FeeFiltersEnum)
778
- );
779
- if (hasExcludedFilter) return false;
780
-
781
- if (isTicketType) {
782
- return fee.appliedTo === FeeAppliedToEnum.Ticket &&
783
- (fee.appliedBy === FeeAppliedByEnum.Sellout);
784
- }
785
-
786
- if (isUpgradeType) {
787
- return fee.appliedTo === FeeAppliedToEnum.Upgrade &&
788
- (fee.appliedBy === FeeAppliedByEnum.Sellout);
789
- }
790
-
791
- return false;
792
- });
793
-
794
- //TODO Group by label and sum the amount
795
- const feeMap = new Map<string, number>();
796
-
797
- // filteredFees?.forEach((fee) => {
798
- // const amount =
799
- // fee?.type === FeeTypeEnum.Flat
800
- // ? fee.value
801
- // : (fee.value / 100) * price;
802
-
803
- // const label =
804
- // fee?.appliedBy === FeeAppliedByEnum.Sellout
805
- // ? "Sellout service fees"
806
- // : fee.name;
807
-
808
- // const current = feeMap.get(label) || 0;
809
- // feeMap.set(label, current + amount);
810
- // });
811
- filteredFees.forEach((fee) => {
812
- const amount =
813
- fee.type === FeeTypeEnum.Flat
814
- ? fee.value
815
- : (fee.value / 100) * price;
816
-
817
- const label =
818
- fee.appliedBy === FeeAppliedByEnum.Sellout ||
819
- fee.appliedBy === FeeAppliedByEnum.Organization
820
- ? "Sellout service fees"
821
- : fee.name;
822
-
823
- const current = feeMap.get(label) || 0;
824
- feeMap.set(label, current + amount);
825
- });
826
- const result: { label: string; amount: number }[] = [];
827
- feeMap.forEach((amount, label) => {
828
- result.push({
829
- label,
830
- amount: parseFloat((amount / 100).toFixed(2)),
831
- });
832
- });
833
-
834
- return result;
835
- }
836
-
837
-
838
-
839
- }
840
-
841
- export default new PaymentUtil();