@sellout/models 0.0.151 → 0.0.152

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 (133) hide show
  1. package/.dist/graphql/fragments/season.fragment.d.ts +23 -0
  2. package/.dist/graphql/fragments/season.fragment.js +315 -0
  3. package/.dist/graphql/fragments/season.fragment.js.map +1 -0
  4. package/.dist/graphql/mutations/createEvent.mutation.js +1 -0
  5. package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
  6. package/.dist/graphql/mutations/createFee.mutation.js +1 -0
  7. package/.dist/graphql/mutations/createFee.mutation.js.map +1 -1
  8. package/.dist/graphql/mutations/createSeason.mutation.d.ts +2 -0
  9. package/.dist/graphql/mutations/createSeason.mutation.js +72 -0
  10. package/.dist/graphql/mutations/createSeason.mutation.js.map +1 -0
  11. package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +2 -0
  12. package/.dist/graphql/mutations/createSeasonOrder.mutation.js +65 -0
  13. package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +1 -0
  14. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +2 -0
  15. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +18 -0
  16. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +1 -0
  17. package/.dist/graphql/mutations/publishEvent.mutation.js +6 -5
  18. package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
  19. package/.dist/graphql/mutations/publishSeason.mutation.d.ts +2 -0
  20. package/.dist/graphql/mutations/publishSeason.mutation.js +72 -0
  21. package/.dist/graphql/mutations/publishSeason.mutation.js.map +1 -0
  22. package/.dist/graphql/mutations/updateEvent.mutation.js +2 -1
  23. package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
  24. package/.dist/graphql/mutations/updateOrganization.mutation.js +1 -0
  25. package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
  26. package/.dist/graphql/mutations/updateSeason.mutation.d.ts +2 -0
  27. package/.dist/graphql/mutations/updateSeason.mutation.js +71 -0
  28. package/.dist/graphql/mutations/updateSeason.mutation.js.map +1 -0
  29. package/.dist/graphql/queries/event.query.js +2 -0
  30. package/.dist/graphql/queries/event.query.js.map +1 -1
  31. package/.dist/graphql/queries/events.query.js +1 -0
  32. package/.dist/graphql/queries/events.query.js.map +1 -1
  33. package/.dist/graphql/queries/profile.query.js +1 -0
  34. package/.dist/graphql/queries/profile.query.js.map +1 -1
  35. package/.dist/graphql/queries/publicEvent.query.js +1 -0
  36. package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
  37. package/.dist/graphql/queries/season.query.d.ts +2 -0
  38. package/.dist/graphql/queries/season.query.js +76 -0
  39. package/.dist/graphql/queries/season.query.js.map +1 -0
  40. package/.dist/graphql/queries/seasons.query.d.ts +2 -0
  41. package/.dist/graphql/queries/seasons.query.js +72 -0
  42. package/.dist/graphql/queries/seasons.query.js.map +1 -0
  43. package/.dist/interfaces/IAnalytics.d.ts +1 -0
  44. package/.dist/interfaces/IAnalytics.js.map +1 -1
  45. package/.dist/interfaces/ICreateOrderParams.d.ts +4 -1
  46. package/.dist/interfaces/IEvent.d.ts +1 -0
  47. package/.dist/interfaces/IFee.d.ts +1 -0
  48. package/.dist/interfaces/IOrder.d.ts +3 -1
  49. package/.dist/interfaces/IOrder.js.map +1 -1
  50. package/.dist/interfaces/IOrderQuery.d.ts +2 -0
  51. package/.dist/interfaces/IOrganization.d.ts +1 -0
  52. package/.dist/interfaces/ISeason.d.ts +76 -0
  53. package/.dist/interfaces/ISeason.js +34 -0
  54. package/.dist/interfaces/ISeason.js.map +1 -0
  55. package/.dist/interfaces/ISeasonCustomField.d.ts +13 -0
  56. package/.dist/interfaces/ISeasonCustomField.js +3 -0
  57. package/.dist/interfaces/ISeasonCustomField.js.map +1 -0
  58. package/.dist/interfaces/ISeasonQuery.d.ts +23 -0
  59. package/.dist/interfaces/ISeasonQuery.js +15 -0
  60. package/.dist/interfaces/ISeasonQuery.js.map +1 -0
  61. package/.dist/interfaces/ISeasonUpgrade.d.ts +16 -0
  62. package/.dist/interfaces/ISeasonUpgrade.js +3 -0
  63. package/.dist/interfaces/ISeasonUpgrade.js.map +1 -0
  64. package/.dist/schemas/Event.d.ts +4 -0
  65. package/.dist/schemas/Event.js +4 -0
  66. package/.dist/schemas/Event.js.map +1 -1
  67. package/.dist/schemas/Fee.d.ts +5 -0
  68. package/.dist/schemas/Fee.js +4 -0
  69. package/.dist/schemas/Fee.js.map +1 -1
  70. package/.dist/schemas/Order.d.ts +8 -0
  71. package/.dist/schemas/Order.js +8 -1
  72. package/.dist/schemas/Order.js.map +1 -1
  73. package/.dist/schemas/Organization.d.ts +5 -0
  74. package/.dist/schemas/Organization.js +5 -0
  75. package/.dist/schemas/Organization.js.map +1 -1
  76. package/.dist/schemas/Season.d.ts +679 -0
  77. package/.dist/schemas/Season.js +502 -0
  78. package/.dist/schemas/Season.js.map +1 -0
  79. package/.dist/sellout-proto.js +36603 -26718
  80. package/.dist/utils/EventUtil.js +32 -15
  81. package/.dist/utils/EventUtil.js.map +1 -1
  82. package/.dist/utils/FeeUtil.d.ts +1 -1
  83. package/.dist/utils/FeeUtil.js +19 -11
  84. package/.dist/utils/FeeUtil.js.map +1 -1
  85. package/.dist/utils/SeasonUtil.d.ts +66 -0
  86. package/.dist/utils/SeasonUtil.js +340 -0
  87. package/.dist/utils/SeasonUtil.js.map +1 -0
  88. package/package.json +3 -3
  89. package/src/graphql/fragments/season.fragment.ts +336 -0
  90. package/src/graphql/mutations/createEvent.mutation.ts +1 -0
  91. package/src/graphql/mutations/createFee.mutation.ts +2 -1
  92. package/src/graphql/mutations/createSeason.mutation.ts +68 -0
  93. package/src/graphql/mutations/createSeasonOrder.mutation.ts +61 -0
  94. package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +14 -0
  95. package/src/graphql/mutations/publishEvent.mutation.ts +6 -5
  96. package/src/graphql/mutations/publishSeason.mutation.ts +68 -0
  97. package/src/graphql/mutations/updateEvent.mutation.ts +4 -3
  98. package/src/graphql/mutations/updateOrganization.mutation.ts +3 -2
  99. package/src/graphql/mutations/updateSeason.mutation.ts +67 -0
  100. package/src/graphql/queries/event.query.ts +2 -0
  101. package/src/graphql/queries/events.query.ts +1 -0
  102. package/src/graphql/queries/profile.query.ts +1 -0
  103. package/src/graphql/queries/publicEvent.query.ts +1 -0
  104. package/src/graphql/queries/season.query.ts +72 -0
  105. package/src/graphql/queries/seasons.query.ts +68 -0
  106. package/src/interfaces/IAnalytics.ts +1 -0
  107. package/src/interfaces/ICreateOrderParams.ts +10 -7
  108. package/src/interfaces/IEvent.ts +1 -0
  109. package/src/interfaces/IFee.ts +12 -11
  110. package/src/interfaces/IOrder.ts +4 -2
  111. package/src/interfaces/IOrderQuery.ts +2 -0
  112. package/src/interfaces/IOrganization.ts +1 -0
  113. package/src/interfaces/ISeason.ts +87 -0
  114. package/src/interfaces/ISeasonCustomField.ts +14 -0
  115. package/src/interfaces/ISeasonQuery.ts +25 -0
  116. package/src/interfaces/ISeasonUpgrade.ts +16 -0
  117. package/src/proto/broadcast.proto +29 -0
  118. package/src/proto/email.proto +39 -0
  119. package/src/proto/event.proto +4 -0
  120. package/src/proto/fee.proto +2 -0
  121. package/src/proto/order.proto +59 -0
  122. package/src/proto/organization.proto +1 -0
  123. package/src/proto/season.proto +172 -0
  124. package/src/proto/seating.proto +16 -0
  125. package/src/proto/user.proto +1 -0
  126. package/src/schemas/Event.ts +4 -0
  127. package/src/schemas/Fee.ts +4 -0
  128. package/src/schemas/Order.ts +8 -1
  129. package/src/schemas/Organization.ts +5 -0
  130. package/src/schemas/Season.ts +507 -0
  131. package/src/utils/EventUtil.ts +47 -27
  132. package/src/utils/FeeUtil.ts +25 -17
  133. package/src/utils/SeasonUtil.ts +353 -0
@@ -8,6 +8,7 @@ const query = gql`
8
8
  orgId
9
9
  type
10
10
  name
11
+ seasonId
11
12
  subtitle
12
13
  description
13
14
  userAgreement
@@ -48,6 +48,7 @@ const query = gql`
48
48
  createdAt
49
49
  authyId
50
50
  stripeId
51
+ isSeasonTickets
51
52
  stripeConnectAccount {
52
53
  name
53
54
  country
@@ -8,6 +8,7 @@ const query = gql`
8
8
  orgId
9
9
  type
10
10
  name
11
+ seasonId
11
12
  subtitle
12
13
  description
13
14
  userAgreement
@@ -0,0 +1,72 @@
1
+ import gql from "graphql-tag";
2
+ import Season from "../fragments/season.fragment";
3
+
4
+ const query = gql`
5
+ query season($seasonId: String!) {
6
+ season(seasonId: $seasonId) {
7
+ _id
8
+ orgId
9
+ name
10
+ subtitle
11
+ description
12
+ userAgreement
13
+ processAs
14
+ posterImageUrl
15
+ venueId
16
+ createdAt
17
+ publishable
18
+ seatingChartKey
19
+ seatingPublicKey
20
+ age
21
+ sendQRCode
22
+ hasOrders
23
+ taxDeduction
24
+ organization {
25
+ orgName
26
+ stripeId
27
+ }
28
+ venue {
29
+ _id
30
+ name
31
+ address {
32
+ state
33
+ city
34
+ }
35
+ imageUrls
36
+ }
37
+ published
38
+ salesBeginImmediately
39
+ ...SeasonSchedule
40
+ ...Location
41
+ ...Performances
42
+ ...TicketTypes
43
+ ...TicketHolds
44
+ ...SeasonUpgrades
45
+ ...SeasonPromotions
46
+ ...SeasonCustomFields
47
+ ...TicketExchange
48
+ ...Fees
49
+ ...Artists
50
+ ...WebFlowEntity
51
+ ...Analytics
52
+ ...SeasonEvents
53
+ }
54
+ }
55
+
56
+ ${Season.fragments.schedule}
57
+ ${Season.fragments.location}
58
+ ${Season.fragments.performances}
59
+ ${Season.fragments.ticketTypes}
60
+ ${Season.fragments.holds}
61
+ ${Season.fragments.upgrades}
62
+ ${Season.fragments.promotions}
63
+ ${Season.fragments.customFields}
64
+ ${Season.fragments.exchange}
65
+ ${Season.fragments.fees}
66
+ ${Season.fragments.artists}
67
+ ${Season.fragments.webFlowEntity}
68
+ ${Season.fragments.analytics}
69
+ ${Season.fragments.Events}
70
+ `;
71
+
72
+ export default query;
@@ -0,0 +1,68 @@
1
+ import gql from "graphql-tag";
2
+ import Season from "../fragments/season.fragment";
3
+
4
+ const query = gql`
5
+ query seasons($query: SeasonQueryInput, $pagination: PaginationInput) {
6
+ seasons(query: $query, pagination: $pagination) {
7
+ _id
8
+ orgId
9
+ name
10
+ subtitle
11
+ description
12
+ userAgreement
13
+ processAs
14
+ posterImageUrl
15
+ venueId
16
+ createdAt
17
+ publishable
18
+ seatingChartKey
19
+ age
20
+ sendQRCode
21
+ hasOrders
22
+ taxDeduction
23
+ organization {
24
+ orgName
25
+ }
26
+ venue {
27
+ _id
28
+ name
29
+ address {
30
+ state
31
+ city
32
+ }
33
+ imageUrls
34
+ }
35
+ published
36
+ salesBeginImmediately
37
+ ...SeasonSchedule
38
+ ...Location
39
+ ...Performances
40
+ ...TicketTypes
41
+ ...TicketHolds
42
+ ...SeasonUpgrades
43
+ ...SeasonPromotions
44
+ ...SeasonCustomFields
45
+ ...TicketExchange
46
+ ...Fees
47
+ ...Artists
48
+ ...WebFlowEntity
49
+ ...Analytics
50
+ }
51
+ }
52
+
53
+ ${Season.fragments.schedule}
54
+ ${Season.fragments.location}
55
+ ${Season.fragments.performances}
56
+ ${Season.fragments.ticketTypes}
57
+ ${Season.fragments.holds}
58
+ ${Season.fragments.upgrades}
59
+ ${Season.fragments.promotions}
60
+ ${Season.fragments.customFields}
61
+ ${Season.fragments.exchange}
62
+ ${Season.fragments.fees}
63
+ ${Season.fragments.artists}
64
+ ${Season.fragments.webFlowEntity}
65
+ ${Season.fragments.analytics}
66
+ `;
67
+
68
+ export default query;
@@ -44,6 +44,7 @@ export enum AnalyticsValueTypeEnum {
44
44
 
45
45
  export interface IAnalyticsQueryParams {
46
46
  eventId?: string;
47
+ seasonId?: string;
47
48
  venueId?: string;
48
49
  artistId?: string;
49
50
  userId?: string;
@@ -2,13 +2,14 @@ import IOrderCustomField from "../interfaces/IOrderCustomField";
2
2
  import { OrderTypeEnum } from "../interfaces/IOrderType";
3
3
  import { OrderChannelEnum } from '../enums/OrderChannelEnum';
4
4
  import { PaymentMethodTypeEnum } from '../enums/PaymentMethodTypeEnum';
5
- import IScan from "../interfaces/IScan";
5
+ import IScan from "../interfaces/IScan";
6
6
 
7
7
 
8
8
  export default interface ICreateOrderParams {
9
9
  userId: string;
10
10
  orgId: string;
11
- eventId: string;
11
+ eventId?: string;
12
+ seasonId?: string;
12
13
  tickets: ICreateOrderTicketParams[];
13
14
  upgrades: ICreateOrderUpgradeParams[];
14
15
  type: OrderTypeEnum;
@@ -18,6 +19,8 @@ export default interface ICreateOrderParams {
18
19
  paymentMethodType: PaymentMethodTypeEnum;
19
20
  paymentIntentId: string;
20
21
  holdToken?: string;
22
+ eventIds?: string[];
23
+ hidden?: boolean;
21
24
  }
22
25
 
23
26
  export interface ICreateOrderTicketParams {
@@ -27,10 +30,10 @@ export interface ICreateOrderTicketParams {
27
30
  price: number;
28
31
  rollFees: boolean;
29
32
  seat?: string;
30
- description?:string;
31
- values?:string;
32
- dayIds?:string[];
33
- scan?:IScan[];
33
+ description?: string;
34
+ values?: string;
35
+ dayIds?: string[];
36
+ scan?: IScan[];
34
37
  }
35
38
 
36
39
  export interface ICreateOrderUpgradeParams {
@@ -38,5 +41,5 @@ export interface ICreateOrderUpgradeParams {
38
41
  upgradeId: string;
39
42
  price: number;
40
43
  rollFees: boolean;
41
- description?:string;
44
+ description?: string;
42
45
  }
@@ -91,6 +91,7 @@ export default interface IEvent {
91
91
  totalDays?:string;
92
92
  cancel?: boolean;
93
93
  fees: IFee[];
94
+ seasonId?: string;
94
95
  }
95
96
 
96
97
 
@@ -1,24 +1,24 @@
1
1
  export enum FeeTypeEnum {
2
- Flat = 'Flat',
3
- Percent = 'Percent',
2
+ Flat = "Flat",
3
+ Percent = "Percent",
4
4
  }
5
5
 
6
6
  export enum FeeAppliedToEnum {
7
- Order = 'Order',
8
- Ticket = 'Ticket',
9
- Upgrade = 'Upgrade',
7
+ Order = "Order",
8
+ Ticket = "Ticket",
9
+ Upgrade = "Upgrade",
10
10
  }
11
11
 
12
12
  export enum FeeAppliedByEnum {
13
- Sellout = 'Sellout',
14
- Stripe = 'Stripe',
15
- Organization = 'Organization',
13
+ Sellout = "Sellout",
14
+ Stripe = "Stripe",
15
+ Organization = "Organization",
16
16
  }
17
17
 
18
18
  export enum FeeFiltersEnum {
19
- Seated = 'Seated',
20
- CardEntry = 'Card Entry',
21
- CardReader = 'Card Reader',
19
+ Seated = "Seated",
20
+ CardEntry = "Card Entry",
21
+ CardReader = "Card Reader",
22
22
  }
23
23
 
24
24
  export default interface IFee {
@@ -26,6 +26,7 @@ export default interface IFee {
26
26
  name: string;
27
27
  orgId?: string;
28
28
  eventId?: string;
29
+ seasonId?: string;
29
30
  type: FeeTypeEnum;
30
31
  value: number;
31
32
  appliedTo: FeeAppliedToEnum;
@@ -17,7 +17,8 @@ export default interface IOrder {
17
17
  secretId?: string;
18
18
  orgId: string;
19
19
  userId: string;
20
- eventId: string;
20
+ eventId?: string;
21
+ seasonId?: string;
21
22
  eventName: string;
22
23
  venueIds: string[];
23
24
  artistIds: string[];
@@ -40,7 +41,8 @@ export default interface IOrder {
40
41
  customFields?: IOrderCustomField[];
41
42
  refundReason?: string; // BACKFILL
42
43
  payments: IPayment[];
43
- processingFee?: IProcessingFee
44
+ processingFee?: IProcessingFee;
45
+ hidden?: boolean;
44
46
  };
45
47
 
46
48
  export interface IEventGraphQL extends IEvent {
@@ -1,6 +1,7 @@
1
1
  export default interface IOrderQuery {
2
2
  orgId?: string;
3
3
  orderIds?: string[];
4
+ seasonIds?: string[];
4
5
  eventIds?: string[];
5
6
  venueIds?: string[];
6
7
  artistIds?: string[];
@@ -11,5 +12,6 @@ export default interface IOrderQuery {
11
12
  startDate?: number;
12
13
  endDate?: number;
13
14
  event?: boolean;
15
+ season?: boolean;
14
16
  any?: boolean;
15
17
  }
@@ -16,4 +16,5 @@ export default interface IOrganization {
16
16
  phoneNumber?: string;
17
17
  facebookPixelId?: string;
18
18
  googleAnalyticsId?: string;
19
+ isSeasonTickets?: boolean;
19
20
  }
@@ -0,0 +1,87 @@
1
+ import IAddress from "./IAddress";
2
+ import IOrganization from "./IOrganization";
3
+ import { IWebFlowEntity } from "./IWebFlow";
4
+ import ITicketType from "./ITicketType";
5
+ import IEventSchedule from "./IEventSchedule";
6
+ import ITicketExchange from "./ITicketExchange";
7
+ import IEventUpgrade from "./IEventUpgrade";
8
+ import ITicketHold from "./ITicketHold";
9
+ import IPerformance from "./IPerformance";
10
+ import IEventPromotion from "./IEventPromotion";
11
+ import IEventCustomField from "./IEventCustomField";
12
+ import IAnalytics from "./IAnalytics";
13
+ import IFee from "./IFee";
14
+ import IVenue from "./IVenue";
15
+ // export enum SeasonTypeEnum {
16
+ // GeneralEvent = "General Event", // TODO // BACKFILL
17
+ // Concert = "Concert",
18
+ // }
19
+
20
+ export enum SeasonAgeEnum {
21
+ AllAges = "All ages welcome",
22
+ EighteenPlus = "18+",
23
+ TwentyOnePlus = "21+",
24
+ }
25
+
26
+ export enum SeasonTaxDeductionEnum {
27
+ false = "No",
28
+ true = "Yes",
29
+ }
30
+ export enum SendQRCodeEnum {
31
+ UponOrder = "Upon order",
32
+ TwoWeeksBefore = "Two weeks before show",
33
+ DayOfShow = "Day of Show",
34
+ }
35
+
36
+ export enum SeasonSaleTaxEnum {
37
+ SalesTax = "Sales tax",
38
+ }
39
+
40
+ export enum SeasonTypeEnum {
41
+ GeneralEvent = "General Event", // TODO // BACKFILL
42
+ Concert = "Concert",
43
+ }
44
+
45
+ export default interface ISeason {
46
+ _id?: string;
47
+ orgId: string;
48
+ //type: SeasonTypeEnum;
49
+ name?: string;
50
+ subtitle?: string;
51
+ description?: string;
52
+ posterImageUrl?: string;
53
+ venueId?: string;
54
+ createdAt: number;
55
+ publishable: boolean;
56
+ seatingChartKey?: string;
57
+ age?: SeasonAgeEnum;
58
+ taxDeduction?: boolean;
59
+ active?: boolean;
60
+ userAgreement?: string;
61
+ sendQRCode?: SendQRCodeEnum;
62
+ location?: IAddress;
63
+ schedule?: IEventSchedule;
64
+ performances?: IPerformance[];
65
+ ticketTypes?: ITicketType[];
66
+ holds?: ITicketHold[];
67
+ upgrades?: IEventUpgrade[];
68
+ promotions?: IEventPromotion[];
69
+ customFields?: IEventCustomField[];
70
+ exchange?: ITicketExchange;
71
+ published?: boolean;
72
+ salesBeginImmediately?: boolean;
73
+ cancel?: boolean;
74
+ fees: IFee[];
75
+ numberOfEvent?: number;
76
+ eventIds?: string[];
77
+ }
78
+
79
+ export interface ISeasonGraphQL extends ISeason {
80
+ organization?: IOrganization;
81
+ venue?: IVenue;
82
+ fees: IFee[];
83
+ webFlowEntity?: IWebFlowEntity;
84
+ seatingPublicKey?: string;
85
+ hasOrders: boolean;
86
+ analytics: IAnalytics;
87
+ }
@@ -0,0 +1,14 @@
1
+ import { CustomFieldTypeEnum } from "../enums/CustomFieldTypeEnum";
2
+
3
+ export default interface ISeasonCustomField {
4
+ _id?: string;
5
+ label?: string;
6
+ type: CustomFieldTypeEnum;
7
+ minLength: number;
8
+ maxLength: number;
9
+ maxValue: number;
10
+ minValue: number;
11
+ required: boolean;
12
+ options: string[];
13
+ active: boolean;
14
+ }
@@ -0,0 +1,25 @@
1
+ export enum SeasonQuerySortByEnum {
2
+ CreatedAt = 'createdAt',
3
+ StartsAt = 'schedule.startsAt',
4
+ };
5
+
6
+ export enum SeasonQueryOrderByEnum {
7
+ Ascending = -1,
8
+ Descending = 1,
9
+ }
10
+
11
+ export default interface ISeasonQuery {
12
+ orgId?: string;
13
+ name?: string;
14
+ seasonIds?: string[];
15
+ venueIds?: string[];
16
+ artistIds?: string[];
17
+ userIds?: string[];
18
+ startDate?: number;
19
+ endDate?: number;
20
+ sortBy?: SeasonQuerySortByEnum;
21
+ orderBy?: SeasonQueryOrderByEnum;
22
+ published?: boolean;
23
+ cancel?: boolean;
24
+ any?: boolean;
25
+ }
@@ -0,0 +1,16 @@
1
+ export default interface ISeasonUpgrade {
2
+ _id?: string;
3
+ name: string;
4
+ price: number;
5
+ totalQty: number;
6
+ remainingQty: number;
7
+ purchaseLimit: number;
8
+ complimentary: boolean;
9
+ complimentaryQty: number;
10
+ ticketTypeIds: string[];
11
+ imageUrl: string;
12
+ description: string;
13
+ visible: boolean;
14
+ rollFees: boolean;
15
+ values?: string;
16
+ }
@@ -75,6 +75,29 @@ message EventUpdatedNotification {
75
75
  string eventId = 2;
76
76
  }
77
77
 
78
+
79
+ /****************************************************************************************
80
+ * Season
81
+ *****************************************************************************************/
82
+
83
+ message SeasonCreatedNotification {
84
+ string spanContext = 0;
85
+ string orgId = 1;
86
+ string seasonId = 2;
87
+ }
88
+
89
+ // message EventPublishedNotification {
90
+ // string spanContext = 0;
91
+ // string orgId = 1;
92
+ // string eventId = 2;
93
+ // }
94
+
95
+ message SeasonUpdatedNotification {
96
+ string spanContext = 0;
97
+ string orgId = 1;
98
+ string seasonId = 2;
99
+ }
100
+
78
101
  /****************************************************************************************
79
102
  * Organization
80
103
  *****************************************************************************************/
@@ -131,6 +154,12 @@ service Publisher {
131
154
  rpc eventCreated(EventCreatedNotification) returns (google.protobuf.Empty) {}
132
155
  rpc eventPublished(EventPublishedNotification) returns (google.protobuf.Empty) {}
133
156
  rpc eventUpdated(EventUpdatedNotification) returns (google.protobuf.Empty) {}
157
+
158
+ // // Season
159
+ // rpc seasonCreated(SeasonCreatedNotification) returns (google.protobuf.Empty) {}
160
+ // rpc seasonUpdated(SeasonUpdatedNotification) returns (google.protobuf.Empty) {}
161
+
162
+
134
163
  // Organization
135
164
  rpc organizationCreated(OrganizationCreatedNotification) returns (google.protobuf.Empty) {}
136
165
  rpc organizationUpdated(OrganizationUpdatedNotification) returns (google.protobuf.Empty) {}
@@ -146,6 +146,44 @@ message QueueOrderQRCodeEmailRequest {
146
146
 
147
147
  }
148
148
 
149
+ message QueueSeasonOrderReceiptEmailRequest {
150
+ string spanContext = 0;
151
+ string toAddress = 1;
152
+ string firstName = 2;
153
+ string eventName = 3;
154
+ string orgName = 4;
155
+ string eventSubtitle = 5;
156
+ string eventDate = 6;
157
+ string venueName = 7;
158
+ string doorsAt = 8;
159
+ string showAt = 9;
160
+ string qrCodeAt = 10;
161
+ string confirmationCode = 11;
162
+ string orgEmail = 12;
163
+ string orgPhoneNumber = 13;
164
+ string orgAddress1 = 14;
165
+ string orgAddress2 = 15;
166
+ string eventPosterImageUrl = 16;
167
+ string cityState = 17;
168
+ string orgLogoUrl = 18;
169
+ repeated OrderSummaryItem orderItems = 19;
170
+ string orderTotal = 20;
171
+ string qrCodeUrl = 21;
172
+ string venueAddress1 = 22;
173
+ string venueAddress2 = 23;
174
+ string orderFees = 24;
175
+ string orderSubtotal = 25;
176
+ string venuePosterImageUrl = 26;
177
+ bool isRSVP = 27;
178
+ string orderTax = 28;
179
+ int32 eventStart = 29;
180
+ int32 eventEnd = 30;
181
+ string timezone = 31;
182
+ repeated dayIdsTimeObj dayIdsTime = 32;
183
+ repeated dayIdsTimeObj dayIdsTimeCalendar = 33;
184
+ repeated Event events = 34;
185
+ }
186
+
149
187
  message QueueOrderRefundEmailRequest {
150
188
  string spanContext = 0;
151
189
  string toAddress = 1;
@@ -226,6 +264,7 @@ service EmailService {
226
264
  // Order
227
265
  rpc queueOrderReceiptEmail (QueueOrderReceiptEmailRequest) returns (google.protobuf.Empty) {}
228
266
  rpc queueOrderQRCodeEmail (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
267
+ rpc queueSeasonOrderReceiptEmail (QueueSeasonOrderReceiptEmailRequest) returns (google.protobuf.Empty) {}
229
268
  rpc queueOrderRefundEmail (QueueOrderRefundEmailRequest) returns (google.protobuf.Empty) {}
230
269
  rpc queueOrderCanceledEmail (QueueOrderCanceledEmailRequest) returns (google.protobuf.Empty) {}
231
270
  rpc orderSheetEmail (orderSheetEmailRequest) returns (google.protobuf.Empty) {}
@@ -38,6 +38,7 @@ message Event {
38
38
  bool taxDeduction = 30;
39
39
  bool isMultipleDays = 31;
40
40
  string totalDays = 32;
41
+ string seasonId = 33;
41
42
  }
42
43
 
43
44
  message PublicEvent {
@@ -303,6 +304,7 @@ message EventTicketsRequest {
303
304
  string spanContext = 0;
304
305
  string eventId = 1;
305
306
  string promoCode = 2;
307
+ string seasonId = 3;
306
308
  }
307
309
 
308
310
  message EventTickets {
@@ -432,4 +434,6 @@ service EventService {
432
434
  rpc cancelTicket(CancelTicketRequest) returns (CancelTicketResponse) {}
433
435
  // Duplicate
434
436
  rpc duplicateEvent(DuplicateEventRequest) returns (DuplicateEventResponse) {}
437
+
438
+ rpc listEventBySeasonId(FindSeasonByIdRequest) returns (ListEventsResponse) {}
435
439
  }
@@ -20,6 +20,7 @@ message Fee {
20
20
  string updatedBy = 13;
21
21
  int32 updatedAt = 14;
22
22
  bool disabled = 15;
23
+ string seasonId = 16;
23
24
  }
24
25
 
25
26
  /****************************************************************************************
@@ -92,6 +93,7 @@ message ListEventFeesRequest {
92
93
  string spanContext = 0;
93
94
  string orgId = 1;
94
95
  string eventId = 2;
96
+ string seasonId = 3;
95
97
  }
96
98
 
97
99
  message ListEventFeesResponse {