@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,908 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- const joi_1 = __importDefault(require("@hapi/joi"));
30
- const Time = __importStar(require("@sellout/utils/.dist/time"));
31
- const IEvent_1 = require("../interfaces/IEvent");
32
- const CustomFieldTypeEnum_1 = require("../enums/CustomFieldTypeEnum");
33
- const DropDownEnum_1 = require("../enums/DropDownEnum");
34
- const IEvent_2 = require("../interfaces/IEvent");
35
- exports.default = {
36
- /****************************************************************************************
37
- * Schedule
38
- ****************************************************************************************/
39
- hasBeenAnnounced(event) {
40
- const { schedule: { announceAt }, } = event;
41
- const now = Time.now();
42
- return announceAt < now;
43
- },
44
- isAnnounced(event) {
45
- const { schedule: { announceAt, ticketsAt }, } = event;
46
- const now = Time.now();
47
- return announceAt < now && now < ticketsAt;
48
- },
49
- isOnSale(event) {
50
- var _a, _b;
51
- const ticketsAt = (_a = event === null || event === void 0 ? void 0 : event.schedule) === null || _a === void 0 ? void 0 : _a.ticketsAt;
52
- const ticketsEndAt = (_b = event === null || event === void 0 ? void 0 : event.schedule) === null || _b === void 0 ? void 0 : _b.ticketsEndAt;
53
- const now = Time.now();
54
- return ticketsAt < now && now < ticketsEndAt;
55
- },
56
- isInProgress(event) {
57
- const { schedule: { startsAt, endsAt }, } = event;
58
- const now = Time.now();
59
- return startsAt < now && now < endsAt;
60
- },
61
- saleHasEnded(event) {
62
- const { schedule: { ticketsEndAt }, } = event;
63
- const now = Time.now();
64
- return ticketsEndAt < now;
65
- },
66
- isSoldOut(event) {
67
- return this.remainingTicketQty(event) > 0;
68
- },
69
- hasEnded(event) {
70
- const { schedule: { endsAt }, } = event;
71
- const now = Time.now();
72
- return endsAt < now;
73
- },
74
- isUnavailable(event) {
75
- if (!event.published)
76
- return true;
77
- if (!this.hasBeenAnnounced(event))
78
- return true;
79
- if (!this.isOnSale(event))
80
- return true;
81
- if (this.allTicketsAreLocked(event))
82
- return true;
83
- if (this.saleHasEnded(event))
84
- return true;
85
- return false;
86
- },
87
- allTicketsAreLocked(event) {
88
- var _a, _b;
89
- const ticketTypeCount = (_a = event.ticketTypes) === null || _a === void 0 ? void 0 : _a.length;
90
- const promotionCodeTicketCount = [
91
- ...new Set((_b = event.promotions) === null || _b === void 0 ? void 0 : _b.filter((a) => a.type === "Unlock" && a.active).reduce((cur, promotion) => {
92
- // (this.isOnSale(event) ? promotion.type === "Unlock" : (promotion.type === "Presale" || promotion.type === "Unlock"))
93
- // if(2!==2)
94
- return [...cur, ...promotion.ticketTypeIds];
95
- }, [])),
96
- ].length;
97
- return ticketTypeCount === promotionCodeTicketCount;
98
- },
99
- /****************************************************************************************
100
- * QR Code
101
- ****************************************************************************************/
102
- qrCodeEmailAt(event) {
103
- const { performances: [performance], } = event;
104
- const { schedule } = performance;
105
- // let doorsAt = schedule[0].doorsAt;
106
- let startsAt = schedule[0].startsAt;
107
- /*const {
108
- schedule: { doorsAt, startsAt },
109
- } = performance;
110
- console.log
111
- changing to lower case
112
- becuse previosly it is stored with different values
113
- like Upon Order, Upon order
114
- */
115
- if (event.sendQRCode.toLowerCase() === IEvent_2.SendQRCodeEnum.UponOrder.toLowerCase()) {
116
- return Time.now();
117
- }
118
- if (event.sendQRCode.toLowerCase() ===
119
- IEvent_2.SendQRCodeEnum.TwoWeeksBefore.toLowerCase()) {
120
- const TWO_WEEKS = 14 * 24 * 60 * 60;
121
- return startsAt - TWO_WEEKS;
122
- }
123
- // if (
124
- // event.sendQRCode.toLowerCase() ===
125
- // SendQRCodeEnum.DayOfShow.toLowerCase()
126
- // ) {
127
- // const TWO_WEEKS = 14 * 24 * 60 * 60;
128
- // return startsAt - TWO_WEEKS;
129
- // }
130
- /* if (event.sendQRCode === "Upon Order") {
131
- return Time.now();
132
- }
133
-
134
- if (event.sendQRCode === "Two Weeks Before Show") {
135
- const TWO_WEEKS = 14 * 24 * 60 * 60;
136
- return startsAt - TWO_WEEKS;
137
- } */
138
- // return doorsAt - 600;
139
- return startsAt - 28800;
140
- },
141
- shouldSendOrderReceipt(event) {
142
- const now = Time.now();
143
- const qrCodeEmailAt = this.qrCodeEmailAt(event);
144
- // Never send a receipt if we are
145
- // send a qr code upon order
146
- if (event.sendQRCode.toLowerCase() === IEvent_2.SendQRCodeEnum.UponOrder.toLowerCase()) {
147
- return false;
148
- }
149
- // if (event.sendQRCode === "Upon Order") {
150
- // return false;
151
- // }
152
- // Only send a receipt if QR codes for
153
- // the event haven't already gone out
154
- if (qrCodeEmailAt > now) {
155
- return true;
156
- }
157
- return false;
158
- },
159
- /****************************************************************************************
160
- * Process As
161
- ****************************************************************************************/
162
- isPaid(event) {
163
- return (event === null || event === void 0 ? void 0 : event.processAs) === IEvent_1.EventProcessAsEnum.Paid;
164
- },
165
- isRSVP(event) {
166
- return (event === null || event === void 0 ? void 0 : event.processAs) === IEvent_1.EventProcessAsEnum.RSVP;
167
- },
168
- // isFree(event: IEvent): boolean {
169
- // return event.processAs === EventProcessAsEnum.Free;
170
- // },
171
- /****************************************************************************************
172
- * Seating
173
- ****************************************************************************************/
174
- isSeated(event) {
175
- if (!event)
176
- return false;
177
- return Boolean(event.seatingChartKey);
178
- },
179
- /****************************************************************************************
180
- * Venue
181
- ****************************************************************************************/
182
- venueIds(event) {
183
- let venueIds = [event.venueId];
184
- event.performances.forEach((performance) => {
185
- venueIds = venueIds.concat(performance.venueStageId);
186
- });
187
- venueIds = [...new Set(venueIds)];
188
- venueIds = venueIds.filter((v) => !!v);
189
- return venueIds;
190
- },
191
- seatingId(event) {
192
- return event._id.replace("_", "SAMH");
193
- },
194
- /****************************************************************************************
195
- * Artist
196
- ****************************************************************************************/
197
- artistIds(event) {
198
- let artistIds = [];
199
- event.performances.forEach((performance) => {
200
- artistIds = artistIds
201
- .concat(performance.headliningArtistIds)
202
- .concat(performance.openingArtistIds);
203
- });
204
- artistIds = [...new Set(artistIds)];
205
- artistIds = artistIds.filter((a) => !!a);
206
- return artistIds;
207
- },
208
- headliningArtistIds(event) {
209
- let artistIds = [];
210
- event.performances.forEach((performance) => {
211
- artistIds = artistIds.concat(performance.headliningArtistIds);
212
- });
213
- artistIds = [...new Set(artistIds)];
214
- artistIds = artistIds.filter((a) => !!a);
215
- return artistIds;
216
- },
217
- openingArtistIds(event) {
218
- let artistIds = [];
219
- event.performances.forEach((performance) => {
220
- artistIds = artistIds.concat(performance.openingArtistIds);
221
- });
222
- artistIds = [...new Set(artistIds)];
223
- artistIds = artistIds.filter((a) => !!a);
224
- return artistIds;
225
- },
226
- /****************************************************************************************
227
- * Tickets Hold
228
- ****************************************************************************************/
229
- ticketHold(event, ticketHoldId) {
230
- return event === null || event === void 0 ? void 0 : event.holds.find((ticketHold) => ticketHold._id === ticketHoldId);
231
- },
232
- /****************************************************************************************
233
- * Tickets
234
- ****************************************************************************************/
235
- ticketType(event, ticketTypeId) {
236
- return event === null || event === void 0 ? void 0 : event.ticketTypes.find((ticketType) => ticketType._id === ticketTypeId);
237
- },
238
- activeTicketTypes(event) {
239
- var _a, _b;
240
- return (_b = (_a = event === null || event === void 0 ? void 0 : event.ticketTypes) === null || _a === void 0 ? void 0 : _a.filter((ticketType) => ticketType.visible)) !== null && _b !== void 0 ? _b : [];
241
- },
242
- remainingTicketQty(event, ticketTypeId = null) {
243
- if (ticketTypeId) {
244
- let ticketType = event === null || event === void 0 ? void 0 : event.ticketTypes.find((ticketType) => ticketType._id === ticketTypeId);
245
- if (!ticketType)
246
- return 0;
247
- else
248
- return ticketType.remainingQty;
249
- }
250
- else {
251
- return event === null || event === void 0 ? void 0 : event.ticketTypes.reduce((cur, next) => {
252
- return cur + next.remainingQty;
253
- }, 0);
254
- }
255
- },
256
- remainingQtyByTicketTypes(event) {
257
- return event.ticketTypes.reduce((cur, ticketType) => {
258
- cur[ticketType._id] = this.remainingTicketQty(event, ticketType._id);
259
- return cur;
260
- }, {});
261
- },
262
- purchaseLimitByTicketTypes(event) {
263
- return event.ticketTypes.reduce((cur, ticketType) => {
264
- cur[ticketType._id] = ticketType.purchaseLimit;
265
- return cur;
266
- }, {});
267
- },
268
- getCurrentTierId(event, ticketTypeId) {
269
- const ticketType = event.ticketTypes.find((t) => t._id.toString() === ticketTypeId);
270
- const now = Time.now();
271
- const tier = ticketType.tiers.find((tier) => tier.startsAt < now && now < tier.endsAt);
272
- return tier._id;
273
- },
274
- /****************************************************************************************
275
- * Upgrades
276
- ****************************************************************************************/
277
- upgrade(event, upgradeId) {
278
- return event.upgrades.find((upgrades) => upgrades._id === upgradeId);
279
- },
280
- activeUpgrades(event) {
281
- var _a;
282
- return (((_a = event === null || event === void 0 ? void 0 : event.upgrades) !== null && _a !== void 0 ? _a : [])
283
- // must be active
284
- .filter((upgrade) => upgrade.visible)
285
- // must have remaining qty
286
- //.filter((upgrade) => upgrade.remainingQty > 0)
287
- );
288
- },
289
- activeNonComplimentaryUpgrades(event) {
290
- return (this.activeUpgrades(event)
291
- // must not be complimentary
292
- .filter((upgrade) => !upgrade.complimentary));
293
- },
294
- remainingUpgradeQty(event, upgradeId = null) {
295
- if (upgradeId) {
296
- let upgrade = event.upgrades.find((upgrade) => upgrade._id === upgradeId);
297
- if (!upgrade)
298
- return 0;
299
- else
300
- return upgrade.remainingQty;
301
- }
302
- else {
303
- return event.upgrades.reduce((cur, next) => {
304
- return cur + next.remainingQty;
305
- }, 0);
306
- }
307
- },
308
- remainingQtyByUpgrades(event) {
309
- return event.upgrades.reduce((cur, upgrade) => {
310
- cur[upgrade._id] = this.remainingUpgradeQty(event, upgrade._id);
311
- return cur;
312
- }, {});
313
- },
314
- purchaseLimitByUpgrades(event) {
315
- return event.upgrades.reduce((cur, upgrade) => {
316
- cur[upgrade._id] = upgrade.purchaseLimit;
317
- return cur;
318
- }, {});
319
- },
320
- isUpgradeForSpecificTickets(event, upgrade) {
321
- var _a, _b;
322
- return Boolean(((_a = event === null || event === void 0 ? void 0 : event.ticketTypes) === null || _a === void 0 ? void 0 : _a.map((t) => t._id).sort()) ===
323
- ((_b = upgrade === null || upgrade === void 0 ? void 0 : upgrade.ticketTypeIds) === null || _b === void 0 ? void 0 : _b.sort()));
324
- },
325
- /****************************************************************************************
326
- * Promotions
327
- ****************************************************************************************/
328
- promotion(event, promotionId) {
329
- return event.promotions.find((promotions) => promotions._id === promotionId);
330
- },
331
- activePromotions(event, type = null) {
332
- var _a;
333
- const now = Time.now();
334
- let promotions = ((_a = event === null || event === void 0 ? void 0 : event.promotions) !== null && _a !== void 0 ? _a : [])
335
- // must be active
336
- .filter((promotion) => promotion.active)
337
- // must have remaining qty
338
- .filter((promotion) => promotion.remainingQty > 0)
339
- // must be in the correct time
340
- .filter((promotion) => promotion.startsAt < now && now < promotion.endsAt);
341
- // Optional type
342
- if (type !== null) {
343
- promotions = promotions.filter((promotion) => promotion.type === type);
344
- }
345
- return promotions;
346
- },
347
- /****************************************************************************************
348
- * Custom Fields
349
- ****************************************************************************************/
350
- customField(event, customFieldId) {
351
- var _a, _b;
352
- return ((_b = (_a = event === null || event === void 0 ? void 0 : event.customFields) === null || _a === void 0 ? void 0 : _a.find((customField) => customField._id === customFieldId)) !== null && _b !== void 0 ? _b : null);
353
- },
354
- activeCustomFields(event) {
355
- var _a, _b;
356
- return ((_b = (_a = event === null || event === void 0 ? void 0 : event.customFields) === null || _a === void 0 ? void 0 : _a.filter((customField) => customField.active)) !== null && _b !== void 0 ? _b : []);
357
- },
358
- hasCustomFields(event) {
359
- return ((event === null || event === void 0 ? void 0 : event.customFields.filter((customField) => customField.active).length) > 0);
360
- },
361
- // Fixed issue SELLOUT-49
362
- customFieldsAreValid(eventCustomFields, orderCustomFields) {
363
- var _a, _b;
364
- const activeFields = (_a = eventCustomFields === null || eventCustomFields === void 0 ? void 0 : eventCustomFields.filter((eventCustomField) => eventCustomField.active)) !== null && _a !== void 0 ? _a : [];
365
- const validFields = (_b = activeFields === null || activeFields === void 0 ? void 0 : activeFields.filter((eventCustomField) => {
366
- const { _id, minLength, maxLength, minValue, maxValue, required } = eventCustomField;
367
- const orderCustomField = orderCustomFields === null || orderCustomFields === void 0 ? void 0 : orderCustomFields.find((orderCustomField) => orderCustomField.customFieldId === _id);
368
- // Field is not required and orderCustomField not empty
369
- if (!required && !orderCustomField)
370
- return true;
371
- // Field has not been filled out
372
- if (!orderCustomField)
373
- return false;
374
- let { value } = orderCustomField;
375
- if (!required &&
376
- (value === undefined ||
377
- value === "NaN" ||
378
- value === "" ||
379
- value === DropDownEnum_1.DropDownEnum.Select)) {
380
- return true;
381
- }
382
- if ((eventCustomField === null || eventCustomField === void 0 ? void 0 : eventCustomField.type) === CustomFieldTypeEnum_1.CustomFieldTypeEnum.Text) {
383
- value = value;
384
- if (value) {
385
- if (minLength === 0 && maxLength === 0 && value.length > 0) {
386
- return true;
387
- }
388
- else if (minLength === 0 && value.length <= maxLength) {
389
- return true;
390
- }
391
- else if (maxLength === 0 && minLength <= value.length) {
392
- return true;
393
- }
394
- else if (minLength <= value.length && value.length <= maxLength) {
395
- return true;
396
- }
397
- }
398
- return false;
399
- }
400
- else if (eventCustomField.type === CustomFieldTypeEnum_1.CustomFieldTypeEnum.Dropdown) {
401
- value = value;
402
- if (value !== "" && value !== DropDownEnum_1.DropDownEnum.Select) {
403
- return true;
404
- }
405
- return false;
406
- }
407
- else if (eventCustomField.type === CustomFieldTypeEnum_1.CustomFieldTypeEnum.Address) {
408
- value = value;
409
- if (value !== "") {
410
- return true;
411
- }
412
- return false;
413
- }
414
- else {
415
- value = value;
416
- if (value) {
417
- if (minValue === 0 && maxValue === 0 && value > 0) {
418
- return true;
419
- }
420
- else if (minValue === 0 && value <= maxValue) {
421
- return true;
422
- }
423
- else if (maxValue === 0 && minValue <= value) {
424
- return true;
425
- }
426
- else if (minValue <= value && value <= maxValue) {
427
- return true;
428
- }
429
- }
430
- return false;
431
- }
432
- })) !== null && _b !== void 0 ? _b : [];
433
- return validFields.length === activeFields.length;
434
- },
435
- /****************************************************************************************
436
- * Publish validate
437
- ****************************************************************************************/
438
- validatePublish(event) {
439
- let eventSchema;
440
- const posterImageUrlSchema = joi_1.default.object({
441
- original: joi_1.default.string().required().messages({
442
- "string.empty": '"Event image" is a required field',
443
- "any.required": '"Event image" is a required field',
444
- }),
445
- medium: joi_1.default.string().allow('', null).optional(),
446
- small: joi_1.default.string().allow('', null).optional(),
447
- })
448
- .unknown(true)
449
- .required()
450
- .messages({
451
- "any.required": '"Event image" is a required field',
452
- "object.base": '"Event image" is a required field', // handles case when it's not an object
453
- });
454
- switch (event.type) {
455
- case IEvent_1.EventTypeEnum.GeneralEvent:
456
- eventSchema = joi_1.default.object()
457
- .options({ abortEarly: false })
458
- .keys({
459
- name: joi_1.default.string()
460
- .required()
461
- .messages({ "string.empty": '"Event name" is a required field' }),
462
- description: joi_1.default.string().required().messages({
463
- "string.empty": '"Event description" is a required field',
464
- }),
465
- posterImageUrl: posterImageUrlSchema,
466
- venueId: joi_1.default.string()
467
- .required()
468
- .messages({ "string.empty": '"Venue" is required' }),
469
- ticketTypes: joi_1.default.array()
470
- .min(1)
471
- .items(joi_1.default.object()
472
- .options({ allowUnknown: true })
473
- .keys({
474
- name: joi_1.default.string().required(),
475
- remainingQty: joi_1.default.number().required(),
476
- totalQty: joi_1.default.number().required(),
477
- purchaseLimit: joi_1.default.number().required(),
478
- tiers: joi_1.default.array().items(joi_1.default.object()
479
- .keys({
480
- name: joi_1.default.string().required(),
481
- price: joi_1.default.number().required(),
482
- remainingQty: joi_1.default.number().required(),
483
- totalQty: joi_1.default.number().required(),
484
- })
485
- .unknown(true)),
486
- }))
487
- .messages({ "array.min": '"Event" must have atleast 1 ticket' }),
488
- })
489
- .unknown(true);
490
- break;
491
- case IEvent_1.EventTypeEnum.Concert:
492
- eventSchema = joi_1.default.object()
493
- .options({ abortEarly: false })
494
- .keys({
495
- name: joi_1.default.string()
496
- .required()
497
- .messages({ "string.empty": '"Event name" is a required field' }),
498
- description: joi_1.default.string().required().messages({
499
- "string.empty": '"Event description" is a required field',
500
- }),
501
- posterImageUrl: posterImageUrlSchema,
502
- venueId: joi_1.default.string()
503
- .required()
504
- .messages({ "string.empty": '"Venue" is required' }),
505
- performances: joi_1.default.array()
506
- .items(joi_1.default.object()
507
- .keys({
508
- headliningArtistIds: joi_1.default.array()
509
- .items(joi_1.default.string().required())
510
- .messages({
511
- "array.includesRequiredUnknowns": "An event performer is required for a concert",
512
- }),
513
- })
514
- .unknown(true))
515
- .default([]),
516
- })
517
- .unknown(true);
518
- break;
519
- }
520
- return eventSchema.validate(event);
521
- },
522
- /****************************************************************************************
523
- * Ticket Hold validate
524
- ****************************************************************************************/
525
- validateTicketHold(ticketHold) {
526
- let ticketHoldSchema;
527
- let used = ticketHold === null || ticketHold === void 0 ? void 0 : ticketHold.ticketRemaining;
528
- ticketHoldSchema = joi_1.default.object()
529
- .options({ abortEarly: false })
530
- .keys({
531
- name: joi_1.default.string()
532
- .required()
533
- .messages({ "string.empty": '"Block name" is a required field' }),
534
- ticketType: joi_1.default.string()
535
- .required()
536
- .messages({ "string.empty": '"Ticket Type" is a required field' }),
537
- qty: joi_1.default.number()
538
- .required()
539
- .min(1)
540
- .custom((value, helpers) => {
541
- if (value > 0 && value > used) {
542
- return helpers.error("totalqty.invalid");
543
- }
544
- return value;
545
- })
546
- .messages({
547
- "totalqty.invalid": '"Total qty." must be less than or equal to the number of ticket remaining qty.',
548
- "number.min": '"Total qty." must be greater than 0',
549
- }),
550
- })
551
- .unknown(true);
552
- return ticketHoldSchema.validate(ticketHold);
553
- },
554
- validateTicketHoldName(ticketHold) {
555
- let ticketHoldSchema;
556
- ticketHoldSchema = joi_1.default.object()
557
- .options({ abortEarly: false })
558
- .keys({
559
- name: joi_1.default.string()
560
- .required()
561
- .messages({ "string.empty": '"Block name" is a required field' }),
562
- })
563
- .unknown(true);
564
- return ticketHoldSchema.validate(ticketHold);
565
- },
566
- /****************************************************************************************
567
- * Ticket validate
568
- ****************************************************************************************/
569
- validateTicket(ticket, isPaid, isMultipleDays) {
570
- let ticketSchema;
571
- let limit = isPaid ? "Purchase limit" : "RSVP limit";
572
- let used = ticket.totalQty - ticket.remainingQty;
573
- ticketSchema = joi_1.default.object()
574
- .options({ abortEarly: false })
575
- .keys({
576
- name: joi_1.default.string()
577
- .required()
578
- .messages({ "string.empty": '"Ticket name" is a required field' }),
579
- remainingQty: joi_1.default.number().required(),
580
- totalQty: joi_1.default.number().required().min(1).messages({
581
- "number.required": '"Total qty." is a required field',
582
- "number.min": '"Total qty." must be greater than 0',
583
- }),
584
- purchaseLimit: joi_1.default.number()
585
- .required()
586
- .min(1)
587
- .messages({
588
- "number.required": `"${limit}" is a required field`,
589
- "number.min": `"${limit}" must be greater than 0`,
590
- "number.base": `"${limit}" must be a number`,
591
- }),
592
- dayIds: joi_1.default.array()
593
- .min(isMultipleDays ? 1 : 0)
594
- .items(joi_1.default.string())
595
- .default([])
596
- .messages({
597
- "array.min": "Ticket must have selected atleast one day.",
598
- }),
599
- tiers: joi_1.default.array()
600
- .items(joi_1.default.object()
601
- .keys({
602
- name: joi_1.default.string().required().messages({
603
- "string.empty": '"Tier name" is a required field',
604
- "any.required": '"Tier name" must be provided',
605
- }),
606
- price: joi_1.default.number().required(),
607
- remainingQty: joi_1.default.number().required(),
608
- totalQty: joi_1.default.number()
609
- .custom((value, helpers) => {
610
- if (value > 0 && value < used) {
611
- return helpers.error("totalqty.invalid");
612
- }
613
- return value;
614
- })
615
- .messages({
616
- "totalqty.invalid": '"Total qty." must be greater than or equal to number of ticket sold',
617
- })
618
- .required(),
619
- startsAt: joi_1.default.date().allow(null),
620
- endsAt: joi_1.default.date().allow(null),
621
- })
622
- .unknown(true))
623
- .custom((tiers, helpers) => {
624
- // Only validate active tiers
625
- const activeTiers = tiers.filter(t => t.isActive !== false);
626
- for (let i = 0; i < activeTiers.length; i++) {
627
- const tier = activeTiers[i];
628
- if (tier.startsAt && tier.endsAt) {
629
- const start = new Date(tier.startsAt);
630
- const end = new Date(tier.endsAt);
631
- if (isNaN(start.getTime()) || isNaN(end.getTime())) {
632
- return helpers.error("tiers.invalidDate", { index: i + 1 });
633
- }
634
- if (end.getTime() <= start.getTime()) {
635
- const tierLabel = tier.name && tier.name.trim() !== ""
636
- ? ` "${tier.name}"`
637
- : ` #${i + 1}`;
638
- return helpers.error("tiers.endsAtBeforeStartsAt", {
639
- tierLabel,
640
- });
641
- }
642
- }
643
- }
644
- for (let i = 1; i < activeTiers.length; i++) {
645
- const prevTier = activeTiers[i - 1];
646
- const currentTier = activeTiers[i];
647
- const prevEndsAt = new Date(prevTier.endsAt).getTime();
648
- const currStartsAt = new Date(currentTier.startsAt).getTime();
649
- if (currStartsAt !== prevEndsAt) {
650
- // TODO Return custom error
651
- return helpers.error("tiers.startsAtMismatch", {
652
- index: i + 1,
653
- });
654
- }
655
- }
656
- return tiers;
657
- })
658
- .messages({
659
- "tiers.startsAtMismatch": "Start date/time of Tier {#index} must match end date/time of previous tier.",
660
- "tiers.endsAtBeforeStartsAt": "End date/time of Tier{#tierLabel} must be after start date/time.",
661
- }),
662
- })
663
- .unknown(true);
664
- return ticketSchema.validate(ticket);
665
- },
666
- /****************************************************************************************
667
- * Upgrade validate
668
- ****************************************************************************************/
669
- validateUpgrade(upgrade, isPaid) {
670
- let upgradeSchema;
671
- let limit = isPaid ? "Purchase limit" : "RSVP limit";
672
- let used = upgrade.totalQty - upgrade.remainingQty;
673
- upgradeSchema = joi_1.default.object()
674
- .options({ abortEarly: false })
675
- .keys({
676
- name: joi_1.default.string()
677
- .required()
678
- .messages({ "string.empty": '"Upgrade name" is a required field' }),
679
- price: joi_1.default.number().required(),
680
- totalQty: joi_1.default.number()
681
- .custom((value, helpers) => {
682
- if (value > 0 && value < used) {
683
- return helpers.error("totalqty.invalid");
684
- }
685
- return value;
686
- })
687
- .messages({
688
- "totalqty.invalid": '"Total qty." must be greater than or equal to number of upgrade sold',
689
- })
690
- .required()
691
- .min(1)
692
- .messages({
693
- "number.required": '"Total qty." is a required field',
694
- "number.min": '"Total qty." must be greater than 0',
695
- }),
696
- remainingQty: joi_1.default.number(),
697
- purchaseLimit: joi_1.default.number()
698
- .required()
699
- .min(1)
700
- .messages({
701
- "number.required": `"${limit}" is a required field`,
702
- "number.min": `"${limit}" must be greater than 0`,
703
- "number.base": `"${limit}" must be a number`,
704
- }),
705
- complimentary: joi_1.default.boolean().required(),
706
- complimentaryWith: joi_1.default.string().required(),
707
- complimentaryQty: joi_1.default.number().required(),
708
- ticketTypeIds: joi_1.default.array().items(joi_1.default.string()).default([]),
709
- imageUrl: joi_1.default.string().optional().allow(""),
710
- description: joi_1.default.string().optional().allow(""),
711
- visible: joi_1.default.boolean().required(),
712
- rollFees: joi_1.default.boolean().required(),
713
- })
714
- .unknown(true);
715
- return upgradeSchema.validate(upgrade);
716
- },
717
- /****************************************************************************************
718
- * Promotion validate
719
- ****************************************************************************************/
720
- validatePromotion(promotion) {
721
- let promotionSchema;
722
- let used = promotion.totalQty - promotion.remainingQty;
723
- promotionSchema = joi_1.default.object()
724
- .options({ abortEarly: false })
725
- .keys({
726
- code: joi_1.default.string()
727
- .required()
728
- .messages({ "string.empty": '"Secret code" is a required field' }),
729
- type: joi_1.default.string().required(),
730
- remainingQty: joi_1.default.number(),
731
- totalQty: joi_1.default.number()
732
- .custom((value, helpers) => {
733
- if (value > 0 && value < used) {
734
- return helpers.error("totalqty.invalid");
735
- }
736
- return value;
737
- })
738
- .messages({
739
- "totalqty.invalid": '"Total qty." must be greater than or equal to number of secret code sold',
740
- })
741
- .required()
742
- .min(1)
743
- .messages({
744
- "number.required": '"Total qty." is a required field',
745
- "number.min": '"Total qty." must be greater than 0',
746
- }),
747
- ticketTypeIds: joi_1.default.array().items(joi_1.default.string()).default([]),
748
- upgradeIds: joi_1.default.array().items(joi_1.default.string()).default([]),
749
- active: joi_1.default.boolean().required(),
750
- startsAt: joi_1.default.number().required(),
751
- endsAt: joi_1.default.number().required(),
752
- useLimit: joi_1.default.number().min(1).messages({
753
- "number.required": '"Use limit" is a required field',
754
- "number.min": 'Use limit" must be greater than 0',
755
- "number.base": '"Use limit" must be a number',
756
- }),
757
- discountType: joi_1.default.string(),
758
- discountValue: joi_1.default.number(),
759
- })
760
- .unknown(true);
761
- return promotionSchema.validate(promotion);
762
- },
763
- /****************************************************************************************
764
- *Validate Event EmailSubject & EmailBody
765
- ****************************************************************************************/
766
- ValidateEventEmailSubjectFields(emailPreviewFields) {
767
- const isEmptyHTML = (value) => {
768
- return (!value ||
769
- value.trim() === "" ||
770
- value.trim() === "<p></p>" ||
771
- value.trim() === "<p><br></p>");
772
- };
773
- let validateEmailPreviewFields = joi_1.default.object()
774
- .options({ abortEarly: false })
775
- .keys({
776
- eventEmailSubject: joi_1.default.string().required().messages({
777
- "string.empty": "Email Subject cannot be empty",
778
- "any.required": "Email Subject is required",
779
- }),
780
- eventEmailBody: joi_1.default.string()
781
- .custom((value, helpers) => {
782
- if (isEmptyHTML(value)) {
783
- return helpers.error("string.empty");
784
- }
785
- return value;
786
- })
787
- .required()
788
- .messages({
789
- "string.empty": "Email Body cannot be empty",
790
- "any.required": "Email Body is required",
791
- }),
792
- })
793
- .unknown(true);
794
- return validateEmailPreviewFields.validate(emailPreviewFields);
795
- },
796
- /****************************************************************************************
797
- * CustomField validate
798
- ****************************************************************************************/
799
- validateCustomField(customField) {
800
- let customFieldSchema;
801
- customFieldSchema = joi_1.default.object()
802
- .options({ abortEarly: false })
803
- .keys({
804
- label: joi_1.default.string()
805
- .required()
806
- .messages({ "string.empty": '"Question" is a required field' }),
807
- type: joi_1.default.string().required(),
808
- // minLength: Joi.number(),
809
- // maxLength: Joi.number(),
810
- // minValue: Joi.number(),
811
- // maxValue: Joi.number(),
812
- options: joi_1.default.array().items(joi_1.default.string()).default([]),
813
- required: joi_1.default.boolean().required(),
814
- active: joi_1.default.boolean().required(),
815
- })
816
- .unknown(true);
817
- return customFieldSchema.validate(customField);
818
- },
819
- validateRefundModal(refundField) {
820
- let refundFieldSchema;
821
- refundFieldSchema = joi_1.default.object()
822
- .options({ abortEarly: false })
823
- .keys({
824
- // ticketIds: Joi.array()
825
- // .min(1)
826
- // .items(Joi.string())
827
- // .messages({ "array.min": "Select any one checkbox for refunding." }),
828
- refundReason: joi_1.default.string()
829
- .required()
830
- .messages({ "string.empty": '"Reason" is a required field' }),
831
- })
832
- .unknown(true);
833
- return refundFieldSchema.validate(refundField);
834
- },
835
- validateEventDates(event) {
836
- var _a, _b, _c, _d, _e, _f, _g;
837
- const schedule = event === null || event === void 0 ? void 0 : event.schedule;
838
- const announceAt = schedule === null || schedule === void 0 ? void 0 : schedule.announceAt;
839
- const ticketsAt = schedule === null || schedule === void 0 ? void 0 : schedule.ticketsAt;
840
- const ticketsEndAt = schedule === null || schedule === void 0 ? void 0 : schedule.ticketsEndAt;
841
- const performance = (_a = event === null || event === void 0 ? void 0 : event.performances) === null || _a === void 0 ? void 0 : _a[0];
842
- const startsAt = ((performance === null || performance === void 0 ? void 0 : performance.schedule) &&
843
- ((_b = performance === null || performance === void 0 ? void 0 : performance.schedule[0]) === null || _b === void 0 ? void 0 : _b.startsAt)) ||
844
- 0;
845
- const endsAt = ((_c = event === null || event === void 0 ? void 0 : event.totalDays) === null || _c === void 0 ? void 0 : _c.length) === 0
846
- ? (_d = event === null || event === void 0 ? void 0 : event.schedule) === null || _d === void 0 ? void 0 : _d.endsAt
847
- : ((performance === null || performance === void 0 ? void 0 : performance.schedule) &&
848
- ((_f = performance === null || performance === void 0 ? void 0 : performance.schedule[((_e = performance === null || performance === void 0 ? void 0 : performance.schedule) === null || _e === void 0 ? void 0 : _e.length) - 1]) === null || _f === void 0 ? void 0 : _f.endsAt)) ||
849
- 0;
850
- /* Actions */
851
- let message = "";
852
- (_g = performance === null || performance === void 0 ? void 0 : performance.schedule) === null || _g === void 0 ? void 0 : _g.some((a, i) => {
853
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
854
- if (a.startsAt < a.doorsAt) {
855
- message =
856
- (performance === null || performance === void 0 ? void 0 : performance.schedule) && ((_a = performance === null || performance === void 0 ? void 0 : performance.schedule) === null || _a === void 0 ? void 0 : _a.length) > 1
857
- ? "Doors Open should be less than or equal to Event Begins on day " +
858
- (i + 1) +
859
- "."
860
- : "Doors Open should be less than or equal to Event Begins.";
861
- return message;
862
- }
863
- else if (a.startsAt >
864
- (((_b = event === null || event === void 0 ? void 0 : event.totalDays) === null || _b === void 0 ? void 0 : _b.length) === 0
865
- ? (_c = event === null || event === void 0 ? void 0 : event.schedule) === null || _c === void 0 ? void 0 : _c.endsAt
866
- : a.endsAt)) {
867
- message =
868
- (performance === null || performance === void 0 ? void 0 : performance.schedule) && ((_d = performance === null || performance === void 0 ? void 0 : performance.schedule) === null || _d === void 0 ? void 0 : _d.length) > 1
869
- ? "Event Ends should be greater than Event Begins on day " +
870
- (i + 1) +
871
- "."
872
- : "Event Ends should be greater than Event Begins.";
873
- return message;
874
- }
875
- else if ((performance === null || performance === void 0 ? void 0 : performance.schedule) && ((_e = performance === null || performance === void 0 ? void 0 : performance.schedule) === null || _e === void 0 ? void 0 : _e.length) > 1) {
876
- const aa = ((_g = (_f = performance === null || performance === void 0 ? void 0 : performance.schedule) === null || _f === void 0 ? void 0 : _f[i + 1]) === null || _g === void 0 ? void 0 : _g.startsAt) &&
877
- ((_j = (_h = performance === null || performance === void 0 ? void 0 : performance.schedule) === null || _h === void 0 ? void 0 : _h[i + 1]) === null || _j === void 0 ? void 0 : _j.startsAt) >
878
- (((_k = event === null || event === void 0 ? void 0 : event.totalDays) === null || _k === void 0 ? void 0 : _k.length) === 0
879
- ? (_l = event === null || event === void 0 ? void 0 : event.schedule) === null || _l === void 0 ? void 0 : _l.endsAt
880
- : a.endsAt);
881
- if (!aa && aa !== undefined) {
882
- message =
883
- "Day " +
884
- (i + 2) +
885
- " Event Begins should be greater than day " +
886
- (i + 1) +
887
- " Event Ends.";
888
- return message;
889
- }
890
- }
891
- });
892
- if (announceAt > startsAt) {
893
- message = "Announcement Date should be less than Event Begins.";
894
- return message;
895
- }
896
- else if (ticketsAt < announceAt || ticketsAt > ticketsEndAt) {
897
- message =
898
- "Sales Begin should be greater than or equal to Announcement Date and less than Sales End.";
899
- return message;
900
- }
901
- else if (ticketsEndAt > endsAt) {
902
- message = "Sales End should be less than or equal to Event Ends.";
903
- return message;
904
- }
905
- return message;
906
- },
907
- };
908
- //# sourceMappingURL=EventUtil.js.map