@sellout/models 0.0.183 → 0.0.184

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 (56) hide show
  1. package/.dist/graphql/mutations/cancelOrder.mutation.d.ts +2 -0
  2. package/.dist/graphql/mutations/cancelOrder.mutation.js +15 -0
  3. package/.dist/graphql/mutations/cancelOrder.mutation.js.map +1 -0
  4. package/.dist/graphql/mutations/deleteSubscription.mutation.d.ts +2 -0
  5. package/.dist/graphql/mutations/deleteSubscription.mutation.js +16 -0
  6. package/.dist/graphql/mutations/deleteSubscription.mutation.js.map +1 -0
  7. package/.dist/graphql/mutations/salesReport.mutation.d.ts +2 -0
  8. package/.dist/graphql/mutations/salesReport.mutation.js +15 -0
  9. package/.dist/graphql/mutations/salesReport.mutation.js.map +1 -0
  10. package/.dist/graphql/mutations/updateOrder.mutation.d.ts +2 -0
  11. package/.dist/graphql/mutations/updateOrder.mutation.js +16 -0
  12. package/.dist/graphql/mutations/updateOrder.mutation.js.map +1 -0
  13. package/.dist/graphql/queries/event.query.js +5 -0
  14. package/.dist/graphql/queries/event.query.js.map +1 -1
  15. package/.dist/interfaces/IEvent.d.ts +2 -0
  16. package/.dist/interfaces/IEvent.js.map +1 -1
  17. package/.dist/interfaces/IOrder.d.ts +1 -0
  18. package/.dist/interfaces/IOrder.js.map +1 -1
  19. package/.dist/interfaces/ISalesReport.d.ts +9 -0
  20. package/.dist/interfaces/ISalesReport.js +9 -0
  21. package/.dist/interfaces/ISalesReport.js.map +1 -0
  22. package/.dist/interfaces/ITask.d.ts +4 -1
  23. package/.dist/interfaces/ITask.js +1 -0
  24. package/.dist/interfaces/ITask.js.map +1 -1
  25. package/.dist/schemas/Event.d.ts +14 -0
  26. package/.dist/schemas/Event.js +16 -1
  27. package/.dist/schemas/Event.js.map +1 -1
  28. package/.dist/schemas/Order.d.ts +4 -0
  29. package/.dist/schemas/Order.js +3 -0
  30. package/.dist/schemas/Order.js.map +1 -1
  31. package/.dist/sellout-proto.js +22030 -17062
  32. package/.dist/utils/EventUtil.js +2 -2
  33. package/.dist/utils/EventUtil.js.map +1 -1
  34. package/.dist/utils/FeeUtil.d.ts +1 -0
  35. package/.dist/utils/FeeUtil.js +8 -0
  36. package/.dist/utils/FeeUtil.js.map +1 -1
  37. package/.dist/utils/PaymentUtil.js.map +1 -1
  38. package/package.json +3 -3
  39. package/src/graphql/mutations/cancelOrder.mutation.ts +11 -0
  40. package/src/graphql/mutations/deleteSubscription.mutation.ts +12 -0
  41. package/src/graphql/mutations/salesReport.mutation.ts +10 -0
  42. package/src/graphql/mutations/updateOrder.mutation.ts +11 -0
  43. package/src/graphql/queries/event.query.ts +5 -0
  44. package/src/interfaces/IEvent.ts +2 -0
  45. package/src/interfaces/IOrder.ts +2 -1
  46. package/src/interfaces/ISalesReport.ts +11 -0
  47. package/src/interfaces/ITask.ts +4 -0
  48. package/src/proto/email.proto +6 -2
  49. package/src/proto/event.proto +45 -0
  50. package/src/proto/order.proto +63 -0
  51. package/src/proto/task.proto +22 -0
  52. package/src/schemas/Event.ts +17 -1
  53. package/src/schemas/Order.ts +6 -3
  54. package/src/utils/EventUtil.ts +3 -2
  55. package/src/utils/FeeUtil.ts +8 -0
  56. package/src/utils/PaymentUtil.ts +1 -1
@@ -131,10 +131,10 @@ const OrderTicket = {
131
131
  required: false
132
132
  },
133
133
  teiMemberInfo: TeiMemberInfoInput,
134
- guestTicket:{
134
+ guestTicket: {
135
135
  type: Boolean,
136
136
  required: false
137
- }
137
+ }
138
138
  };
139
139
 
140
140
  const OrderUpgrade = {
@@ -368,8 +368,11 @@ export default {
368
368
  type: Boolean,
369
369
  required: false,
370
370
  default: false
371
- },parentSeasonOrderId:{
371
+ }, parentSeasonOrderId: {
372
372
  type: String,
373
373
  required: false,
374
+ }, cancelReason: {
375
+ type: String,
376
+ required: false
374
377
  }
375
378
  };
@@ -138,8 +138,9 @@ export default {
138
138
  return startsAt - TWO_WEEKS;
139
139
  } */
140
140
 
141
- const TEN_HOURS = 10 * 60 * 60;
142
- return doorsAt - TEN_HOURS;
141
+ // return doorsAt - 600;
142
+
143
+ return doorsAt - 28800
143
144
  },
144
145
  shouldSendOrderReceipt(event): boolean {
145
146
  const now = Time.now();
@@ -26,6 +26,14 @@ export default {
26
26
  return true;
27
27
  });
28
28
  },
29
+ organizationFees(fees: any[] = []) {
30
+ return fees.filter((fee) => {
31
+ if (fee.appliedBy === "Organization") {
32
+ return false;
33
+ }
34
+ return true;
35
+ });
36
+ },
29
37
  promoterFees(fees: any[] = []) {
30
38
  return fees?.filter((fee) => {
31
39
  if (fee.appliedBy === "Sellout" || fee.appliedBy === "Stripe") {
@@ -456,7 +456,7 @@ class PaymentUtil {
456
456
  const orderFees = fees
457
457
  .filter(
458
458
  (f) => f.appliedTo === FeeAppliedToEnum.Order && f.name != "Sales tax"
459
- )
459
+ )
460
460
  .sort(({ type }) => {
461
461
  if (type === "Flat") return -1;
462
462
  else return 1;