@sellout/models 0.0.151 → 0.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/graphql/fragments/season.fragment.d.ts +23 -0
- package/.dist/graphql/fragments/season.fragment.js +315 -0
- package/.dist/graphql/fragments/season.fragment.js.map +1 -0
- package/.dist/graphql/mutations/createEvent.mutation.js +1 -0
- package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createFee.mutation.js +1 -0
- package/.dist/graphql/mutations/createFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeason.mutation.js +72 -0
- package/.dist/graphql/mutations/createSeason.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js +65 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +18 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +1 -0
- package/.dist/graphql/mutations/publishEvent.mutation.js +6 -5
- package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/publishSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/publishSeason.mutation.js +72 -0
- package/.dist/graphql/mutations/publishSeason.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js +2 -1
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateOrganization.mutation.js +1 -0
- package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateSeason.mutation.js +71 -0
- package/.dist/graphql/mutations/updateSeason.mutation.js.map +1 -0
- package/.dist/graphql/queries/event.query.js +2 -0
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/events.query.js +1 -0
- package/.dist/graphql/queries/events.query.js.map +1 -1
- package/.dist/graphql/queries/order.query.js +14 -11
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/orders.query.js +4 -2
- package/.dist/graphql/queries/orders.query.js.map +1 -1
- package/.dist/graphql/queries/profile.query.js +1 -0
- package/.dist/graphql/queries/profile.query.js.map +1 -1
- package/.dist/graphql/queries/promoCodeVerify.query.js +27 -23
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -1
- package/.dist/graphql/queries/publicEvent.query.js +1 -0
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/publicSeason.query.d.ts +2 -0
- package/.dist/graphql/queries/publicSeason.query.js +76 -0
- package/.dist/graphql/queries/publicSeason.query.js.map +1 -0
- package/.dist/graphql/queries/season.query.d.ts +2 -0
- package/.dist/graphql/queries/season.query.js +73 -0
- package/.dist/graphql/queries/season.query.js.map +1 -0
- package/.dist/graphql/queries/seasons.query.d.ts +2 -0
- package/.dist/graphql/queries/seasons.query.js +72 -0
- package/.dist/graphql/queries/seasons.query.js.map +1 -0
- package/.dist/interfaces/IAnalytics.d.ts +1 -0
- package/.dist/interfaces/IAnalytics.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +4 -1
- package/.dist/interfaces/IEvent.d.ts +1 -0
- package/.dist/interfaces/IFee.d.ts +1 -0
- package/.dist/interfaces/IOrder.d.ts +8 -1
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderQuery.d.ts +2 -0
- package/.dist/interfaces/IOrderType.d.ts +2 -1
- package/.dist/interfaces/IOrderType.js +1 -0
- package/.dist/interfaces/IOrderType.js.map +1 -1
- package/.dist/interfaces/IOrganization.d.ts +1 -0
- package/.dist/interfaces/ISeason.d.ts +76 -0
- package/.dist/interfaces/ISeason.js +34 -0
- package/.dist/interfaces/ISeason.js.map +1 -0
- package/.dist/interfaces/ISeasonCustomField.d.ts +13 -0
- package/.dist/interfaces/ISeasonCustomField.js +3 -0
- package/.dist/interfaces/ISeasonCustomField.js.map +1 -0
- package/.dist/interfaces/ISeasonQuery.d.ts +23 -0
- package/.dist/interfaces/ISeasonQuery.js +15 -0
- package/.dist/interfaces/ISeasonQuery.js.map +1 -0
- package/.dist/interfaces/ISeasonUpgrade.d.ts +16 -0
- package/.dist/interfaces/ISeasonUpgrade.js +3 -0
- package/.dist/interfaces/ISeasonUpgrade.js.map +1 -0
- package/.dist/schemas/Event.d.ts +4 -0
- package/.dist/schemas/Event.js +4 -0
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Fee.d.ts +5 -0
- package/.dist/schemas/Fee.js +4 -0
- package/.dist/schemas/Fee.js.map +1 -1
- package/.dist/schemas/Order.d.ts +8 -0
- package/.dist/schemas/Order.js +8 -1
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +5 -0
- package/.dist/schemas/Organization.js +5 -0
- package/.dist/schemas/Organization.js.map +1 -1
- package/.dist/schemas/Season.d.ts +679 -0
- package/.dist/schemas/Season.js +502 -0
- package/.dist/schemas/Season.js.map +1 -0
- package/.dist/sellout-proto.js +36625 -26718
- package/.dist/utils/EventUtil.js +36 -19
- package/.dist/utils/EventUtil.js.map +1 -1
- package/.dist/utils/FeeUtil.d.ts +1 -1
- package/.dist/utils/FeeUtil.js +19 -11
- package/.dist/utils/FeeUtil.js.map +1 -1
- package/.dist/utils/SeasonUtil.d.ts +66 -0
- package/.dist/utils/SeasonUtil.js +340 -0
- package/.dist/utils/SeasonUtil.js.map +1 -0
- package/package.json +3 -3
- package/src/graphql/fragments/season.fragment.ts +336 -0
- package/src/graphql/mutations/createEvent.mutation.ts +1 -0
- package/src/graphql/mutations/createFee.mutation.ts +2 -1
- package/src/graphql/mutations/createSeason.mutation.ts +68 -0
- package/src/graphql/mutations/createSeasonOrder.mutation.ts +61 -0
- package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +14 -0
- package/src/graphql/mutations/publishEvent.mutation.ts +6 -5
- package/src/graphql/mutations/publishSeason.mutation.ts +68 -0
- package/src/graphql/mutations/updateEvent.mutation.ts +4 -3
- package/src/graphql/mutations/updateOrganization.mutation.ts +3 -2
- package/src/graphql/mutations/updateSeason.mutation.ts +67 -0
- package/src/graphql/queries/event.query.ts +2 -0
- package/src/graphql/queries/events.query.ts +1 -0
- package/src/graphql/queries/order.query.ts +15 -12
- package/src/graphql/queries/orders.query.ts +5 -3
- package/src/graphql/queries/profile.query.ts +1 -0
- package/src/graphql/queries/promoCodeVerify.query.ts +27 -23
- package/src/graphql/queries/publicEvent.query.ts +1 -0
- package/src/graphql/queries/publicSeason.query.ts +72 -0
- package/src/graphql/queries/season.query.ts +69 -0
- package/src/graphql/queries/seasons.query.ts +68 -0
- package/src/interfaces/IAnalytics.ts +1 -0
- package/src/interfaces/ICreateOrderParams.ts +10 -7
- package/src/interfaces/IEvent.ts +1 -0
- package/src/interfaces/IFee.ts +12 -11
- package/src/interfaces/IOrder.ts +11 -2
- package/src/interfaces/IOrderQuery.ts +2 -0
- package/src/interfaces/IOrderType.ts +1 -0
- package/src/interfaces/IOrganization.ts +1 -0
- package/src/interfaces/ISeason.ts +87 -0
- package/src/interfaces/ISeasonCustomField.ts +14 -0
- package/src/interfaces/ISeasonQuery.ts +25 -0
- package/src/interfaces/ISeasonUpgrade.ts +16 -0
- package/src/proto/broadcast.proto +29 -0
- package/src/proto/email.proto +39 -0
- package/src/proto/event.proto +4 -0
- package/src/proto/fee.proto +2 -0
- package/src/proto/order.proto +60 -0
- package/src/proto/organization.proto +1 -0
- package/src/proto/season.proto +172 -0
- package/src/proto/seating.proto +16 -0
- package/src/proto/user.proto +1 -0
- package/src/schemas/Event.ts +4 -0
- package/src/schemas/Fee.ts +4 -0
- package/src/schemas/Order.ts +8 -1
- package/src/schemas/Organization.ts +5 -0
- package/src/schemas/Season.ts +507 -0
- package/src/utils/EventUtil.ts +51 -31
- package/src/utils/FeeUtil.ts +25 -17
- package/src/utils/SeasonUtil.ts +353 -0
|
@@ -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) {}
|
package/src/proto/email.proto
CHANGED
|
@@ -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) {}
|
package/src/proto/event.proto
CHANGED
|
@@ -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
|
}
|
package/src/proto/fee.proto
CHANGED
|
@@ -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 {
|
package/src/proto/order.proto
CHANGED
|
@@ -35,6 +35,8 @@ message Order {
|
|
|
35
35
|
repeated Payment payments = 24;
|
|
36
36
|
ProcessingFees processingFee = 25;
|
|
37
37
|
float tax = 26;
|
|
38
|
+
string seasonId = 27;
|
|
39
|
+
bool hidden = 28;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
message ProcessingFees {
|
|
@@ -130,6 +132,25 @@ message CreateOrderParams {
|
|
|
130
132
|
string paymentIntentId = 10;
|
|
131
133
|
string holdToken = 11;
|
|
132
134
|
string ipAddress = 12;
|
|
135
|
+
bool hidden = 13;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
message CreateSeasonOrderParams {
|
|
140
|
+
string userId = 0;
|
|
141
|
+
string orgId = 1;
|
|
142
|
+
string seasonId = 2;
|
|
143
|
+
repeated CreateOrderTicketParams tickets = 3;
|
|
144
|
+
repeated CreateOrderUpgradeParams upgrades = 4;
|
|
145
|
+
string type = 5;
|
|
146
|
+
string channel = 6;
|
|
147
|
+
string promotionCode = 7;
|
|
148
|
+
repeated OrderCustomField customFields = 8;
|
|
149
|
+
string paymentMethodType = 9;
|
|
150
|
+
string paymentIntentId = 10;
|
|
151
|
+
string holdToken = 11;
|
|
152
|
+
string ipAddress = 12;
|
|
153
|
+
// repeated string eventIds = 13;
|
|
133
154
|
}
|
|
134
155
|
|
|
135
156
|
message CreateOrderTicketParams {
|
|
@@ -165,6 +186,20 @@ message CreateOrderResponse {
|
|
|
165
186
|
Order order = 3;
|
|
166
187
|
}
|
|
167
188
|
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
message CreateSeasonOrderRequest {
|
|
192
|
+
string spanContext = 0;
|
|
193
|
+
string requestorId = 1;
|
|
194
|
+
CreateSeasonOrderParams params = 2;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
message CreateSeasonOrderResponse {
|
|
198
|
+
StatusCode status = 1;
|
|
199
|
+
repeated Error errors = 2;
|
|
200
|
+
Order order = 3;
|
|
201
|
+
}
|
|
202
|
+
|
|
168
203
|
/****************************************************************************************
|
|
169
204
|
Create Order Payment Intent
|
|
170
205
|
****************************************************************************************/
|
|
@@ -188,6 +223,26 @@ message CreateOrderPaymentIntentRequest {
|
|
|
188
223
|
CreateOrderPaymentIntentParams params = 2;
|
|
189
224
|
}
|
|
190
225
|
|
|
226
|
+
|
|
227
|
+
message CreateSeasonOrderPaymentIntentRequest {
|
|
228
|
+
string spanContext = 0;
|
|
229
|
+
string requestorId = 1;
|
|
230
|
+
CreateSeasonOrderPaymentIntentParams params = 2;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
message CreateSeasonOrderPaymentIntentParams {
|
|
234
|
+
string userId = 0;
|
|
235
|
+
string orgId = 1;
|
|
236
|
+
string seasonId = 2;
|
|
237
|
+
repeated CreateOrderTicketParams tickets = 3;
|
|
238
|
+
repeated CreateOrderUpgradeParams upgrades = 4;
|
|
239
|
+
string promotionCode = 5;
|
|
240
|
+
string paymentMethodType = 6;
|
|
241
|
+
string paymentMethodId = 7;
|
|
242
|
+
string stalePaymentIntentId = 8;
|
|
243
|
+
string channel = 9;
|
|
244
|
+
}
|
|
245
|
+
|
|
191
246
|
message CreateOrderPaymentIntentResponse {
|
|
192
247
|
StatusCode status = 1;
|
|
193
248
|
repeated Error errors = 2;
|
|
@@ -325,6 +380,7 @@ message OrderQuery {
|
|
|
325
380
|
int32 startDate = 8;
|
|
326
381
|
int32 endDate = 9;
|
|
327
382
|
bool any = 10;
|
|
383
|
+
repeated string seasonIds = 11;
|
|
328
384
|
}
|
|
329
385
|
|
|
330
386
|
message QueryOrdersRequest {
|
|
@@ -375,6 +431,7 @@ message OrderAnalyticsQuery {
|
|
|
375
431
|
int32 endDate = 5;
|
|
376
432
|
string interval = 6;
|
|
377
433
|
repeated string types = 7;
|
|
434
|
+
string seasonId = 8;
|
|
378
435
|
}
|
|
379
436
|
|
|
380
437
|
message QueryOrderAnalyticsRequest {
|
|
@@ -429,9 +486,12 @@ message GetPromoUsedResponse {
|
|
|
429
486
|
service OrderService {
|
|
430
487
|
// Create
|
|
431
488
|
rpc createOrder(CreateOrderRequest) returns (CreateOrderResponse) {}
|
|
489
|
+
rpc createSeasonOrder(CreateSeasonOrderRequest) returns (CreateOrderResponse) {}
|
|
432
490
|
rpc createOrderPaymentIntent(CreateOrderPaymentIntentRequest) returns (CreateOrderPaymentIntentResponse) {}
|
|
491
|
+
rpc createSeasonOrderPaymentIntent(CreateSeasonOrderPaymentIntentRequest) returns (CreateOrderPaymentIntentResponse) {}
|
|
433
492
|
// QR Code
|
|
434
493
|
rpc sendOrderQRCodeEmail(SendOrderQRCodeEmailRequest) returns (SendOrderQRCodeEmailResponse) {}
|
|
494
|
+
rpc sendSeasonOrderReceiptEmail(SendOrderQRCodeEmailRequest) returns (SendOrderQRCodeEmailResponse) {}
|
|
435
495
|
rpc sendOrderReceiptEmail(SendOrderReceiptEmailRequest) returns (SendOrderReceiptEmailResponse) {}
|
|
436
496
|
rpc sendOrderRefundEmail(SendOrderRefundEmailRequest) returns (SendOrderRefundEmailResponse) {}
|
|
437
497
|
rpc resendOrderRefundEmail(SendOrderRefundEmailRequest) returns (SendOrderRefundEmailResponse) {}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
import "error.proto";
|
|
3
|
+
import "common.proto";
|
|
4
|
+
import "organization.proto";
|
|
5
|
+
import "venue.proto";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
message CreateSeasonRequest {
|
|
9
|
+
string spanContext = 0;
|
|
10
|
+
string orgId = 1;
|
|
11
|
+
Season season = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message CreateSeasonResponse {
|
|
15
|
+
StatusCode status = 0;
|
|
16
|
+
repeated Error errors = 1;
|
|
17
|
+
Season season = 2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message UpdateSeasonRequest {
|
|
21
|
+
string spanContext = 0;
|
|
22
|
+
string orgId = 1;
|
|
23
|
+
Season season = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message UpdateSeasonResponse {
|
|
27
|
+
StatusCode status = 0;
|
|
28
|
+
repeated Error errors = 1;
|
|
29
|
+
Season season = 2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
// Find Event By Id
|
|
34
|
+
message FindSeasonByIdRequest {
|
|
35
|
+
string spanContext = 0;
|
|
36
|
+
string seasonId = 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message FindSeasonByIdResponse {
|
|
40
|
+
StatusCode status = 0;
|
|
41
|
+
repeated Error errors = 1;
|
|
42
|
+
Season season = 2;
|
|
43
|
+
}
|
|
44
|
+
message Season {
|
|
45
|
+
string _id = 1;
|
|
46
|
+
string orgId = 2;
|
|
47
|
+
string type = 3;
|
|
48
|
+
string name = 4;
|
|
49
|
+
string subtitle = 5;
|
|
50
|
+
string description = 6;
|
|
51
|
+
string posterImageUrl = 7;
|
|
52
|
+
string venueId = 8;
|
|
53
|
+
int32 createdAt = 9;
|
|
54
|
+
bool publishable = 10;
|
|
55
|
+
string seatingChartKey = 11;
|
|
56
|
+
string age = 12;
|
|
57
|
+
bool active = 13;
|
|
58
|
+
string userAgreement = 14;
|
|
59
|
+
string processAs = 15;
|
|
60
|
+
string sendQRCode = 16;
|
|
61
|
+
Address location = 17;
|
|
62
|
+
SeasonSchedule schedule = 18;
|
|
63
|
+
repeated Performance performances = 19;
|
|
64
|
+
repeated TicketType ticketTypes = 20;
|
|
65
|
+
repeated TicketHold holds = 21;
|
|
66
|
+
repeated EventUpgrade upgrades = 22;
|
|
67
|
+
repeated EventPromotion promotions = 23;
|
|
68
|
+
repeated EventCustomFields customFields = 24;
|
|
69
|
+
TicketExchange exchange = 25;
|
|
70
|
+
Metrics metrics = 26;
|
|
71
|
+
bool published = 27;
|
|
72
|
+
bool salesBeginImmediately = 28;
|
|
73
|
+
bool cancel = 29;
|
|
74
|
+
bool taxDeduction = 30;
|
|
75
|
+
int32 numberOfEvent = 31;
|
|
76
|
+
repeated string eventIds= 32;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message SeasonSchedule {
|
|
80
|
+
int32 announceAt = 0;
|
|
81
|
+
int32 ticketsAt = 1;
|
|
82
|
+
int32 ticketsEndAt = 2;
|
|
83
|
+
int32 startsAt = 3;
|
|
84
|
+
int32 endsAt = 4;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
message PublishSeasonRequest {
|
|
91
|
+
string spanContext = 0;
|
|
92
|
+
string orgId = 1;
|
|
93
|
+
string seasonId = 2;
|
|
94
|
+
bool published = 3;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message PublishSeasonResponse {
|
|
98
|
+
StatusCode status = 0;
|
|
99
|
+
repeated Error errors = 1;
|
|
100
|
+
Season season = 2;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message QuerySeasonsRequest {
|
|
104
|
+
string spanContext = 0;
|
|
105
|
+
string orgId = 1;
|
|
106
|
+
SeasonQuery query = 2;
|
|
107
|
+
Pagination pagination = 3;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message QuerySeasonsResponse {
|
|
111
|
+
StatusCode status = 0;
|
|
112
|
+
repeated Error errors = 1;
|
|
113
|
+
repeated Season seasons = 2;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/****************************************************************************************
|
|
117
|
+
Find Event
|
|
118
|
+
****************************************************************************************/
|
|
119
|
+
|
|
120
|
+
message SeasonQuery {
|
|
121
|
+
string name = 0;
|
|
122
|
+
repeated string seasonIds = 1;
|
|
123
|
+
repeated string venueIds = 2;
|
|
124
|
+
repeated string artistIds = 3;
|
|
125
|
+
repeated string userIds = 4;
|
|
126
|
+
int32 startDate = 5;
|
|
127
|
+
int32 endDate = 6;
|
|
128
|
+
string sortBy = 7;
|
|
129
|
+
int32 orderBy = 8;
|
|
130
|
+
bool published = 9;
|
|
131
|
+
bool any = 10;
|
|
132
|
+
bool cancel = 11;
|
|
133
|
+
repeated string eventIds = 12;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message SeasonTicketsRequest {
|
|
137
|
+
string spanContext = 0;
|
|
138
|
+
string seasonId = 1;
|
|
139
|
+
string promoCode = 2;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
message SeasonTickets {
|
|
143
|
+
string promoType = 0;
|
|
144
|
+
int32 remainingQty = 2;
|
|
145
|
+
bool active = 3;
|
|
146
|
+
int32 startsAt = 4;
|
|
147
|
+
int32 endsAt = 5;
|
|
148
|
+
repeated TicketType seasonTickets = 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message SeasonTicketsResponse {
|
|
152
|
+
StatusCode status = 0;
|
|
153
|
+
repeated Error errors = 1;
|
|
154
|
+
repeated SeasonTickets tickets = 2;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
service SeasonService {
|
|
159
|
+
// Create
|
|
160
|
+
rpc createSeason(CreateSeasonRequest) returns (CreateSeasonResponse) {}
|
|
161
|
+
// Update
|
|
162
|
+
rpc updateSeason(UpdateSeasonRequest) returns (UpdateSeasonResponse) {}
|
|
163
|
+
// Publish
|
|
164
|
+
rpc publishSeason(PublishSeasonRequest) returns (PublishSeasonResponse) {}
|
|
165
|
+
// Get Season
|
|
166
|
+
rpc findSeasonById(FindSeasonByIdRequest) returns (FindSeasonByIdResponse) {}
|
|
167
|
+
// Query
|
|
168
|
+
rpc querySeasons(QuerySeasonsRequest) returns (QuerySeasonsResponse) {}
|
|
169
|
+
// Tickets
|
|
170
|
+
rpc seasonTickets(SeasonTicketsRequest) returns (SeasonTicketsResponse) {}
|
|
171
|
+
|
|
172
|
+
}
|
package/src/proto/seating.proto
CHANGED
|
@@ -45,6 +45,21 @@ message BookSeatsResponse {
|
|
|
45
45
|
repeated Error errors = 1;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
|
|
49
|
+
message BookSeasonSeatsRequest {
|
|
50
|
+
string spanContext = 0;
|
|
51
|
+
string orgId = 1;
|
|
52
|
+
string seasonId = 2;
|
|
53
|
+
string holdToken = 3;
|
|
54
|
+
repeated string seats = 4;
|
|
55
|
+
// repeated string eventIds = 5;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message BookSeasonSeatsResponse {
|
|
59
|
+
StatusCode status = 0;
|
|
60
|
+
repeated Error errors = 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
48
63
|
message ReleaseSeatsRequest {
|
|
49
64
|
string spanContext = 0;
|
|
50
65
|
string orgId = 1;
|
|
@@ -72,6 +87,7 @@ service SeatingService {
|
|
|
72
87
|
// Seating
|
|
73
88
|
rpc createSeating(CreateSeatingRequest) returns (CreateSeatingResponse) {}
|
|
74
89
|
rpc bookSeats(BookSeatsRequest) returns (BookSeatsResponse) {}
|
|
90
|
+
rpc bookSeasonSeats(BookSeasonSeatsRequest) returns (BookSeasonSeatsResponse) {}
|
|
75
91
|
rpc releaseSeats(ReleaseSeatsRequest) returns (ReleaseSeatsResponse) {}
|
|
76
92
|
rpc findOrganizationSeating(FindOrganizationSeatingRequest) returns (FindOrganizationSeatingResponse) {}
|
|
77
93
|
}
|
package/src/proto/user.proto
CHANGED
package/src/schemas/Event.ts
CHANGED
package/src/schemas/Fee.ts
CHANGED
package/src/schemas/Order.ts
CHANGED
|
@@ -243,7 +243,7 @@ export default {
|
|
|
243
243
|
},
|
|
244
244
|
eventId: {
|
|
245
245
|
type: String,
|
|
246
|
-
required:
|
|
246
|
+
required: false,
|
|
247
247
|
},
|
|
248
248
|
eventName: {
|
|
249
249
|
type: String,
|
|
@@ -328,4 +328,11 @@ export default {
|
|
|
328
328
|
address: Address,
|
|
329
329
|
customFields: [OrderCustomField],
|
|
330
330
|
payments: [Payment],
|
|
331
|
+
seasonId:{
|
|
332
|
+
type: String,
|
|
333
|
+
required: false,
|
|
334
|
+
},hidden:{
|
|
335
|
+
type: Boolean,
|
|
336
|
+
required: false,
|
|
337
|
+
}
|
|
331
338
|
};
|