@sellout/models 0.0.176 → 0.0.178
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/event.fragment.js +1 -0
- package/.dist/graphql/fragments/event.fragment.js.map +1 -1
- package/.dist/graphql/fragments/season.fragment.js +1 -0
- package/.dist/graphql/fragments/season.fragment.js.map +1 -1
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js +31 -0
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js +13 -0
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js +31 -0
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js.map +1 -0
- package/.dist/graphql/queries/eventFees.query.d.ts +2 -0
- package/.dist/graphql/queries/eventFees.query.js +30 -0
- package/.dist/graphql/queries/eventFees.query.js.map +1 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js +1 -0
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -1
- package/.dist/graphql/queries/season.query.js +1 -0
- package/.dist/graphql/queries/season.query.js.map +1 -1
- package/.dist/graphql/queries/seasonFees.query.d.ts +2 -0
- package/.dist/graphql/queries/seasonFees.query.js +31 -0
- package/.dist/graphql/queries/seasonFees.query.js.map +1 -0
- package/.dist/graphql/queries/seasons.query.js +1 -0
- package/.dist/graphql/queries/seasons.query.js.map +1 -1
- package/.dist/graphql/queries/userExists.query.js +2 -0
- package/.dist/graphql/queries/userExists.query.js.map +1 -1
- package/.dist/interfaces/IEventPromotion.d.ts +3 -1
- package/.dist/interfaces/IEventPromotion.js +1 -0
- package/.dist/interfaces/IEventPromotion.js.map +1 -1
- package/.dist/interfaces/ITicketType.d.ts +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/Season.d.ts +4 -0
- package/.dist/schemas/Season.js +4 -0
- package/.dist/schemas/Season.js.map +1 -1
- package/.dist/sellout-proto.js +1068 -0
- package/package.json +3 -3
- package/src/graphql/fragments/event.fragment.ts +1 -0
- package/src/graphql/fragments/season.fragment.ts +1 -0
- package/src/graphql/mutations/createEventOrSeasonFee.mutation.ts +27 -0
- package/src/graphql/mutations/deleteEventOrSeasonFee.mutation.ts +9 -0
- package/src/graphql/mutations/updateEventOrSeasonFee.mutation.ts +27 -0
- package/src/graphql/queries/eventFees.query.ts +26 -0
- package/src/graphql/queries/promoCodeVerify.query.ts +1 -0
- package/src/graphql/queries/season.query.ts +1 -0
- package/src/graphql/queries/seasonFees.query.ts +27 -0
- package/src/graphql/queries/seasons.query.ts +1 -0
- package/src/graphql/queries/userExists.query.ts +2 -0
- package/src/interfaces/IEventPromotion.ts +2 -0
- package/src/interfaces/ITicketType.ts +1 -0
- package/src/proto/event.proto +2 -0
- package/src/proto/fee.proto +21 -0
- package/src/proto/order.proto +7 -0
- package/src/schemas/Event.ts +4 -0
- package/src/schemas/Season.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.178",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hapi/joi": "^16.1.7",
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
20
|
+
"@sellout/utils": "^0.0.178",
|
|
21
21
|
"@types/hapi__joi": "^16.0.1",
|
|
22
22
|
"@types/shortid": "^0.0.29",
|
|
23
23
|
"apollo-link-debounce": "^2.1.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"protobufjs": "^6.11.2",
|
|
32
32
|
"typescript": "^4.4.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "87acaaf4c7550cdfa834812e8f9a09295862ab7d"
|
|
35
35
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation createEventOrSeasonFee($eventId: String,$seasonId: String, $fee: FeeInput!) {
|
|
5
|
+
createEventOrSeasonFee(eventId: $eventId,seasonId: $seasonId, fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
eventId
|
|
9
|
+
seasonId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
__typename
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export default mutation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation deleteEventOrSeasonFee($eventId: String, $seasonId: String, $feeId: String!, $orgId: String) {
|
|
5
|
+
deleteEventOrSeasonFee(eventId: $eventId, seasonId: $seasonId, feeId: $feeId, orgId:$orgId)
|
|
6
|
+
}
|
|
7
|
+
`;
|
|
8
|
+
|
|
9
|
+
export default mutation;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation updateEventOrSeasonFee($eventId: String,$seasonId: String, $fee: FeeInput!) {
|
|
5
|
+
updateEventOrSeasonFee(eventId: $eventId,seasonId: $seasonId, fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
seasonId
|
|
11
|
+
type
|
|
12
|
+
value
|
|
13
|
+
appliedTo
|
|
14
|
+
appliedBy
|
|
15
|
+
minAppliedToPrice
|
|
16
|
+
maxAppliedToPrice
|
|
17
|
+
filters
|
|
18
|
+
createdBy
|
|
19
|
+
createdAt
|
|
20
|
+
updatedBy
|
|
21
|
+
updatedAt
|
|
22
|
+
disabled
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export default mutation;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query eventFees($eventId: String!) {
|
|
5
|
+
eventFees(eventId: $eventId) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
__typename
|
|
23
|
+
}
|
|
24
|
+
}`;
|
|
25
|
+
|
|
26
|
+
export default query;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query seasonFees($seasonId: String!) {
|
|
5
|
+
seasonFees(seasonId: $seasonId) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
seasonId
|
|
10
|
+
eventId
|
|
11
|
+
type
|
|
12
|
+
value
|
|
13
|
+
appliedTo
|
|
14
|
+
appliedBy
|
|
15
|
+
minAppliedToPrice
|
|
16
|
+
maxAppliedToPrice
|
|
17
|
+
filters
|
|
18
|
+
createdBy
|
|
19
|
+
createdAt
|
|
20
|
+
updatedBy
|
|
21
|
+
updatedAt
|
|
22
|
+
disabled
|
|
23
|
+
__typename
|
|
24
|
+
}
|
|
25
|
+
}`;
|
|
26
|
+
|
|
27
|
+
export default query;
|
|
@@ -6,12 +6,14 @@ const query = gql`
|
|
|
6
6
|
$phoneNumber: String
|
|
7
7
|
$promoCode: String
|
|
8
8
|
$eventId: String
|
|
9
|
+
$seasonId: String
|
|
9
10
|
) {
|
|
10
11
|
userExists(
|
|
11
12
|
email: $email
|
|
12
13
|
phoneNumber: $phoneNumber
|
|
13
14
|
promoCode: $promoCode
|
|
14
15
|
eventId: $eventId
|
|
16
|
+
seasonId: $seasonId
|
|
15
17
|
) {
|
|
16
18
|
userId
|
|
17
19
|
firstName
|
|
@@ -2,6 +2,7 @@ export enum EventPromotionTypeEnum {
|
|
|
2
2
|
PreSale = "Presale",
|
|
3
3
|
Unlock = "Unlock",
|
|
4
4
|
Discount = 'Discount',
|
|
5
|
+
LimitOverride = "Limit Override"
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
export enum EventPromotionDiscountTypeEnum {
|
|
@@ -14,6 +15,7 @@ export default interface IEventPromotion {
|
|
|
14
15
|
code: string;
|
|
15
16
|
type: EventPromotionTypeEnum;
|
|
16
17
|
totalQty: number;
|
|
18
|
+
overRideMax : number,
|
|
17
19
|
remainingQty: number;
|
|
18
20
|
ticketTypeIds: string[];
|
|
19
21
|
upgradeIds: string[];
|
package/src/proto/event.proto
CHANGED
|
@@ -197,6 +197,7 @@ message EventPromotion {
|
|
|
197
197
|
int32 useLimit = 10;
|
|
198
198
|
string discountType = 11;
|
|
199
199
|
int32 discountValue = 12;
|
|
200
|
+
int32 overRideMax = 13;
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
message EventCustomFields {
|
|
@@ -318,6 +319,7 @@ message EventTickets {
|
|
|
318
319
|
int32 startsAt = 4;
|
|
319
320
|
int32 endsAt = 5;
|
|
320
321
|
repeated TicketType eventTickets = 1;
|
|
322
|
+
int32 overRideMax = 6;
|
|
321
323
|
}
|
|
322
324
|
|
|
323
325
|
message EventTicketsResponse {
|
package/src/proto/fee.proto
CHANGED
|
@@ -31,6 +31,8 @@ message CreateFeeRequest {
|
|
|
31
31
|
string orgId = 1;
|
|
32
32
|
string requestorId = 2;
|
|
33
33
|
Fee fee = 3;
|
|
34
|
+
string eventId = 4;
|
|
35
|
+
string seasonId = 5;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
message CreateFeeResponse {
|
|
@@ -48,6 +50,8 @@ message UpdateFeeRequest {
|
|
|
48
50
|
string orgId = 1;
|
|
49
51
|
string requestorId = 2;
|
|
50
52
|
Fee fee = 3;
|
|
53
|
+
string eventId = 4;
|
|
54
|
+
string seasonId = 5;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
message UpdateFeeResponse {
|
|
@@ -179,6 +183,20 @@ message DeleteOrganizationFeeResponse {
|
|
|
179
183
|
repeated Error errors = 1;
|
|
180
184
|
}
|
|
181
185
|
|
|
186
|
+
message DeleteEventOrSeasonFeeRequest {
|
|
187
|
+
string spanContext = 0;
|
|
188
|
+
string eventId = 1;
|
|
189
|
+
string seasonId = 2;
|
|
190
|
+
string feeId = 3;
|
|
191
|
+
string orgId = 4;
|
|
192
|
+
string requestorId = 5;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message DeleteEventOrSeasonFeeResponse {
|
|
196
|
+
StatusCode status = 0;
|
|
197
|
+
repeated Error errors = 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
182
200
|
message DeletePlatformFeeRequest {
|
|
183
201
|
string spanContext = 0;
|
|
184
202
|
string feeId = 1;
|
|
@@ -208,11 +226,13 @@ service FeeService {
|
|
|
208
226
|
// Create
|
|
209
227
|
rpc createFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
210
228
|
rpc createOrganizationFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
229
|
+
rpc createEventOrSeasonFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
211
230
|
rpc createPlatformFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
212
231
|
// Update
|
|
213
232
|
rpc updateFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
214
233
|
rpc updateFeeByEvent(updateFeeByEventRequest) returns (updateFeeByEventResponse) {}
|
|
215
234
|
rpc updateOrganizationFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
235
|
+
rpc updateEventOrSeasonFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
216
236
|
rpc updatePlatformFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
217
237
|
// List
|
|
218
238
|
rpc listFeesById(ListFeesByIdRequest) returns (ListFeesByIdResponse) {}
|
|
@@ -225,6 +245,7 @@ service FeeService {
|
|
|
225
245
|
// Delete
|
|
226
246
|
rpc disableFee(DisableFeeRequest) returns (DisableFeeResponse) {}
|
|
227
247
|
rpc deleteOrganizationFee(DeleteOrganizationFeeRequest) returns (DeleteOrganizationFeeResponse) {}
|
|
248
|
+
rpc deleteEventOrSeasonFee(DeleteEventOrSeasonFeeRequest) returns (DeleteEventOrSeasonFeeResponse) {}
|
|
228
249
|
rpc deletePlatformFee(DeletePlatformFeeRequest) returns (DeletePlatformFeeResponse) {}
|
|
229
250
|
// Apply Platform Fees
|
|
230
251
|
rpc applyPlatformFeesToAllOrganizations(ApplyPlatformFeesToAllOrganizationsRequest) returns (ApplyPlatformFeesToAllOrganizationsResponse) {}
|
package/src/proto/order.proto
CHANGED
|
@@ -418,6 +418,11 @@ message FindOrderByIdRequest {
|
|
|
418
418
|
string orderId = 1;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
message FindOrderByFeeIdRequest {
|
|
422
|
+
string spanContext = 0;
|
|
423
|
+
string feeId = 1;
|
|
424
|
+
}
|
|
425
|
+
|
|
421
426
|
message FindOrderByIdResponse {
|
|
422
427
|
StatusCode status = 0;
|
|
423
428
|
repeated Error errors = 1;
|
|
@@ -536,6 +541,7 @@ message GetPromoUsedRequest {
|
|
|
536
541
|
string promoCode = 1;
|
|
537
542
|
string userId = 2;
|
|
538
543
|
string eventId = 3;
|
|
544
|
+
string seasonId = 4;
|
|
539
545
|
}
|
|
540
546
|
message GetPromoUsedResponse {
|
|
541
547
|
StatusCode status = 0;
|
|
@@ -574,6 +580,7 @@ service OrderService {
|
|
|
574
580
|
// Find
|
|
575
581
|
rpc queryOrders(QueryOrdersRequest) returns (QueryOrdersResponse) {}
|
|
576
582
|
rpc findOrderById(FindOrderByIdRequest) returns (FindOrderByIdResponse) {}
|
|
583
|
+
rpc findOrderByFeeId(FindOrderByFeeIdRequest) returns (FindOrderByIdResponse) {}
|
|
577
584
|
rpc findOrderByEmail(FindOrderByEmailRequest) returns (FindOrderByEmailResponse) {}
|
|
578
585
|
rpc queryOrderAnalytics(QueryOrderAnalyticsRequest) returns (QueryOrderAnalyticsResponse) {}
|
|
579
586
|
rpc ordersChargeUpdate(OrdersChargeUpdateRequest) returns (OrdersChargeUpdateResponse) {}
|
package/src/schemas/Event.ts
CHANGED