@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
@@ -35,6 +35,7 @@ message Order {
35
35
  repeated Payment payments = 24;
36
36
  ProcessingFees processingFee = 25;
37
37
  float tax = 26;
38
+ string seasonId = 27;
38
39
  }
39
40
 
40
41
  message ProcessingFees {
@@ -130,6 +131,25 @@ message CreateOrderParams {
130
131
  string paymentIntentId = 10;
131
132
  string holdToken = 11;
132
133
  string ipAddress = 12;
134
+ bool hidden = 13;
135
+ }
136
+
137
+
138
+ message CreateSeasonOrderParams {
139
+ string userId = 0;
140
+ string orgId = 1;
141
+ string seasonId = 2;
142
+ repeated CreateOrderTicketParams tickets = 3;
143
+ repeated CreateOrderUpgradeParams upgrades = 4;
144
+ string type = 5;
145
+ string channel = 6;
146
+ string promotionCode = 7;
147
+ repeated OrderCustomField customFields = 8;
148
+ string paymentMethodType = 9;
149
+ string paymentIntentId = 10;
150
+ string holdToken = 11;
151
+ string ipAddress = 12;
152
+ // repeated string eventIds = 13;
133
153
  }
134
154
 
135
155
  message CreateOrderTicketParams {
@@ -165,6 +185,20 @@ message CreateOrderResponse {
165
185
  Order order = 3;
166
186
  }
167
187
 
188
+
189
+
190
+ message CreateSeasonOrderRequest {
191
+ string spanContext = 0;
192
+ string requestorId = 1;
193
+ CreateSeasonOrderParams params = 2;
194
+ }
195
+
196
+ message CreateSeasonOrderResponse {
197
+ StatusCode status = 1;
198
+ repeated Error errors = 2;
199
+ Order order = 3;
200
+ }
201
+
168
202
  /****************************************************************************************
169
203
  Create Order Payment Intent
170
204
  ****************************************************************************************/
@@ -188,6 +222,26 @@ message CreateOrderPaymentIntentRequest {
188
222
  CreateOrderPaymentIntentParams params = 2;
189
223
  }
190
224
 
225
+
226
+ message CreateSeasonOrderPaymentIntentRequest {
227
+ string spanContext = 0;
228
+ string requestorId = 1;
229
+ CreateSeasonOrderPaymentIntentParams params = 2;
230
+ }
231
+
232
+ message CreateSeasonOrderPaymentIntentParams {
233
+ string userId = 0;
234
+ string orgId = 1;
235
+ string seasonId = 2;
236
+ repeated CreateOrderTicketParams tickets = 3;
237
+ repeated CreateOrderUpgradeParams upgrades = 4;
238
+ string promotionCode = 5;
239
+ string paymentMethodType = 6;
240
+ string paymentMethodId = 7;
241
+ string stalePaymentIntentId = 8;
242
+ string channel = 9;
243
+ }
244
+
191
245
  message CreateOrderPaymentIntentResponse {
192
246
  StatusCode status = 1;
193
247
  repeated Error errors = 2;
@@ -325,6 +379,7 @@ message OrderQuery {
325
379
  int32 startDate = 8;
326
380
  int32 endDate = 9;
327
381
  bool any = 10;
382
+ repeated string seasonIds = 11;
328
383
  }
329
384
 
330
385
  message QueryOrdersRequest {
@@ -375,6 +430,7 @@ message OrderAnalyticsQuery {
375
430
  int32 endDate = 5;
376
431
  string interval = 6;
377
432
  repeated string types = 7;
433
+ string seasonId = 8;
378
434
  }
379
435
 
380
436
  message QueryOrderAnalyticsRequest {
@@ -429,9 +485,12 @@ message GetPromoUsedResponse {
429
485
  service OrderService {
430
486
  // Create
431
487
  rpc createOrder(CreateOrderRequest) returns (CreateOrderResponse) {}
488
+ rpc createSeasonOrder(CreateSeasonOrderRequest) returns (CreateOrderResponse) {}
432
489
  rpc createOrderPaymentIntent(CreateOrderPaymentIntentRequest) returns (CreateOrderPaymentIntentResponse) {}
490
+ rpc createSeasonOrderPaymentIntent(CreateSeasonOrderPaymentIntentRequest) returns (CreateOrderPaymentIntentResponse) {}
433
491
  // QR Code
434
492
  rpc sendOrderQRCodeEmail(SendOrderQRCodeEmailRequest) returns (SendOrderQRCodeEmailResponse) {}
493
+ rpc sendSeasonOrderReceiptEmail(SendOrderQRCodeEmailRequest) returns (SendOrderQRCodeEmailResponse) {}
435
494
  rpc sendOrderReceiptEmail(SendOrderReceiptEmailRequest) returns (SendOrderReceiptEmailResponse) {}
436
495
  rpc sendOrderRefundEmail(SendOrderRefundEmailRequest) returns (SendOrderRefundEmailResponse) {}
437
496
  rpc resendOrderRefundEmail(SendOrderRefundEmailRequest) returns (SendOrderRefundEmailResponse) {}
@@ -19,6 +19,7 @@ message Organization {
19
19
  string phoneNumber = 12;
20
20
  string facebookPixelId = 13;
21
21
  string googleAnalyticsId = 14;
22
+ bool isSeasonTickets = 15;
22
23
  }
23
24
 
24
25
  // Create Organization
@@ -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
+ }
@@ -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
  }
@@ -215,6 +215,7 @@ message FindUserByEmailRequest {
215
215
  string phoneNumber = 3;
216
216
  string promoCode = 4;
217
217
  string eventId = 5;
218
+ string seasonId = 6;
218
219
  }
219
220
 
220
221
  message FindUserByEmailResponse {
@@ -520,4 +520,8 @@ export default {
520
520
  required: true,
521
521
  default: true
522
522
  },
523
+ seasonId:{
524
+ type: String,
525
+ required: false
526
+ }
523
527
  };
@@ -18,6 +18,10 @@ export default {
18
18
  type: String,
19
19
  required: false,
20
20
  default: null,
21
+ },seasonId: {
22
+ type: String,
23
+ required: false,
24
+ default: null,
21
25
  },
22
26
  type: {
23
27
  type: String,
@@ -243,7 +243,7 @@ export default {
243
243
  },
244
244
  eventId: {
245
245
  type: String,
246
- required: true,
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
  };
@@ -70,4 +70,9 @@ export default {
70
70
  default: null,
71
71
  },
72
72
  address: Address,
73
+ isSeasonTickets:{
74
+ type: Boolean,
75
+ required: false,
76
+ default: false
77
+ }
73
78
  };