@sellout/models 0.0.268-alpha.0 → 0.0.269
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/mutations/createWaitList.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createWaitList.mutation.js +15 -0
- package/.dist/graphql/mutations/createWaitList.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js +6 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/waitListReport.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/waitListReport.mutation.js +15 -0
- package/.dist/graphql/mutations/waitListReport.mutation.js.map +1 -0
- package/.dist/graphql/queries/event.query.js +6 -0
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/notifiyEvent.d.ts +2 -0
- package/.dist/graphql/queries/notifiyEvent.js +16 -0
- package/.dist/graphql/queries/notifiyEvent.js.map +1 -0
- package/.dist/graphql/queries/waitList.query.d.ts +2 -0
- package/.dist/graphql/queries/waitList.query.js +100 -0
- package/.dist/graphql/queries/waitList.query.js.map +1 -0
- package/.dist/interfaces/IEvent.d.ts +2 -0
- package/.dist/interfaces/IEvent.js.map +1 -1
- package/.dist/interfaces/IOrganization.d.ts +0 -1
- package/.dist/interfaces/IPagination.d.ts +1 -0
- package/.dist/interfaces/IPagination.js +1 -0
- package/.dist/interfaces/IPagination.js.map +1 -1
- package/.dist/interfaces/ISalesReport.d.ts +6 -0
- package/.dist/schemas/Event.d.ts +23 -0
- package/.dist/schemas/Event.js +25 -1
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +0 -5
- package/.dist/schemas/Organization.js +0 -4
- package/.dist/schemas/Organization.js.map +1 -1
- package/.dist/sellout-proto.js +7462 -3346
- package/package.json +3 -3
- package/src/graphql/mutations/createWaitList.mutation.ts +11 -0
- package/src/graphql/mutations/updateEvent.mutation.ts +6 -0
- package/src/graphql/mutations/waitListReport.mutation.ts +11 -0
- package/src/graphql/queries/event.query.ts +6 -0
- package/src/graphql/queries/notifiyEvent.ts +10 -0
- package/src/graphql/queries/waitList.query.ts +94 -0
- package/src/interfaces/IEvent.ts +2 -0
- package/src/interfaces/IOrganization.ts +0 -1
- package/src/interfaces/IPagination.ts +1 -0
- package/src/interfaces/ISalesReport.ts +7 -0
- package/src/proto/email.proto +15 -1
- package/src/proto/event.proto +107 -0
- package/src/proto/organization.proto +0 -1
- package/src/schemas/Event.ts +45 -21
- package/src/schemas/Organization.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.269",
|
|
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.269",
|
|
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": "26a08d9f6e9bc5f44fef49235d6d8df3154e8a21"
|
|
35
35
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation createWaitList($params: WaitListInput!, $eventId: String, $orgId: String, $type: String ) {
|
|
5
|
+
createWaitList(params: $params, eventId:$eventId, orgId:$orgId, type:$type) {
|
|
6
|
+
_id
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
export default mutation;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
import Event from "../fragments/event.fragment";
|
|
3
|
+
|
|
4
|
+
export const query = gql`
|
|
5
|
+
query eventQuery($query: WaitListQueryInput,$eventId: String) {
|
|
6
|
+
eventQuery(query: $query,eventId: $eventId){
|
|
7
|
+
_id
|
|
8
|
+
orgId
|
|
9
|
+
type
|
|
10
|
+
name
|
|
11
|
+
seasonId
|
|
12
|
+
subtitle
|
|
13
|
+
description
|
|
14
|
+
userAgreement
|
|
15
|
+
processAs
|
|
16
|
+
posterImageUrl
|
|
17
|
+
venueId
|
|
18
|
+
createdAt
|
|
19
|
+
publishable
|
|
20
|
+
seatingChartKey
|
|
21
|
+
age
|
|
22
|
+
isMultipleDays
|
|
23
|
+
totalDays
|
|
24
|
+
cancel
|
|
25
|
+
sendQRCode
|
|
26
|
+
hasOrders
|
|
27
|
+
taxDeduction
|
|
28
|
+
subscription {
|
|
29
|
+
_id
|
|
30
|
+
email
|
|
31
|
+
frequency
|
|
32
|
+
__typename
|
|
33
|
+
}
|
|
34
|
+
organization {
|
|
35
|
+
orgName
|
|
36
|
+
stripeId
|
|
37
|
+
__typename
|
|
38
|
+
}
|
|
39
|
+
waitList{
|
|
40
|
+
name
|
|
41
|
+
email
|
|
42
|
+
phoneNumber
|
|
43
|
+
createdAt
|
|
44
|
+
}
|
|
45
|
+
venue {
|
|
46
|
+
_id
|
|
47
|
+
name
|
|
48
|
+
tax
|
|
49
|
+
address {
|
|
50
|
+
state
|
|
51
|
+
city
|
|
52
|
+
timezone
|
|
53
|
+
__typename
|
|
54
|
+
}
|
|
55
|
+
imageUrls
|
|
56
|
+
__typename
|
|
57
|
+
}
|
|
58
|
+
published
|
|
59
|
+
taxDeduction
|
|
60
|
+
ticketDeliveryType
|
|
61
|
+
physicalDeliveryInstructions
|
|
62
|
+
salesBeginImmediately
|
|
63
|
+
isGuestTicketSale
|
|
64
|
+
guestTicketPerMember
|
|
65
|
+
...EventSchedule
|
|
66
|
+
...Location
|
|
67
|
+
...Performances
|
|
68
|
+
...TicketTypes
|
|
69
|
+
...TicketHolds
|
|
70
|
+
...EventUpgrades
|
|
71
|
+
...EventPromotions
|
|
72
|
+
...EventCustomFields
|
|
73
|
+
...TicketExchange
|
|
74
|
+
...Fees
|
|
75
|
+
...Artists
|
|
76
|
+
...WebFlowEntity
|
|
77
|
+
...Analytics
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
${Event.fragments.schedule}
|
|
81
|
+
${Event.fragments.location}
|
|
82
|
+
${Event.fragments.performances}
|
|
83
|
+
${Event.fragments.ticketTypes}
|
|
84
|
+
${Event.fragments.holds}
|
|
85
|
+
${Event.fragments.upgrades}
|
|
86
|
+
${Event.fragments.promotions}
|
|
87
|
+
${Event.fragments.customFields}
|
|
88
|
+
${Event.fragments.exchange}
|
|
89
|
+
${Event.fragments.fees}
|
|
90
|
+
${Event.fragments.artists}
|
|
91
|
+
${Event.fragments.webFlowEntity}
|
|
92
|
+
${Event.fragments.analytics}
|
|
93
|
+
`
|
|
94
|
+
export default query;
|
package/src/interfaces/IEvent.ts
CHANGED
|
@@ -15,6 +15,7 @@ import IEventCustomField from "./IEventCustomField";
|
|
|
15
15
|
import IAddress from "./IAddress";
|
|
16
16
|
import IAnalytics from "./IAnalytics";
|
|
17
17
|
import ISalesReport from "./ISalesReport";
|
|
18
|
+
import IWaitList from "./ISalesReport";
|
|
18
19
|
|
|
19
20
|
export enum EventTypeEnum {
|
|
20
21
|
GeneralEvent = "General Event", // TODO // BACKFILL
|
|
@@ -107,6 +108,7 @@ export default interface IEvent {
|
|
|
107
108
|
subscription: ISalesReport[];
|
|
108
109
|
isHold?: boolean;
|
|
109
110
|
stub?: string;
|
|
111
|
+
waitList: IWaitList[];
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
export interface IEventGraphQL extends IEvent {
|
package/src/proto/email.proto
CHANGED
|
@@ -71,6 +71,19 @@ message customerSheetEmailRequest {
|
|
|
71
71
|
string orgName = 1;
|
|
72
72
|
string url = 2;
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
message waitListEmailRequest {
|
|
76
|
+
string toAddress = 0;
|
|
77
|
+
string orgName = 1;
|
|
78
|
+
string eventName = 2;
|
|
79
|
+
string description = 3;
|
|
80
|
+
string venueName = 4;
|
|
81
|
+
string eventDate = 5;
|
|
82
|
+
string name = 6;
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
|
|
74
87
|
message dayIdsTimeObj {
|
|
75
88
|
int32 startsAt = 0;
|
|
76
89
|
int32 endsAt = 1;
|
|
@@ -297,5 +310,6 @@ service EmailService {
|
|
|
297
310
|
rpc orderQRCodeEmailOnDay (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
|
|
298
311
|
rpc salesReportEmail (salesReportEmailRequest) returns (google.protobuf.Empty) {}
|
|
299
312
|
rpc customerSheetEmail (customerSheetEmailRequest) returns (google.protobuf.Empty) {}
|
|
300
|
-
|
|
313
|
+
rpc waitListEmail (waitListEmailRequest) returns (google.protobuf.Empty) {}
|
|
314
|
+
|
|
301
315
|
}
|
package/src/proto/event.proto
CHANGED
|
@@ -46,6 +46,7 @@ message Event {
|
|
|
46
46
|
repeated SubscriptionSalesReport subscription = 38;
|
|
47
47
|
bool isHold = 39;
|
|
48
48
|
string stub = 40;
|
|
49
|
+
repeated WaitList waitList = 41;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
message PublicEvent {
|
|
@@ -156,6 +157,13 @@ message SubscriptionSalesReport {
|
|
|
156
157
|
string frequency = 3;
|
|
157
158
|
}
|
|
158
159
|
|
|
160
|
+
message WaitList {
|
|
161
|
+
string name = 1;
|
|
162
|
+
string email = 2;
|
|
163
|
+
string phoneNumber = 3;
|
|
164
|
+
int32 createdAt = 4;
|
|
165
|
+
}
|
|
166
|
+
|
|
159
167
|
message TicketType {
|
|
160
168
|
string _id = 1;
|
|
161
169
|
string name = 2;
|
|
@@ -315,11 +323,19 @@ message EventQuery {
|
|
|
315
323
|
bool cancel = 11;
|
|
316
324
|
}
|
|
317
325
|
|
|
326
|
+
message SearchQuery {
|
|
327
|
+
string name = 0;
|
|
328
|
+
string email = 1;
|
|
329
|
+
string phoneNumber = 2;
|
|
330
|
+
}
|
|
331
|
+
|
|
318
332
|
message QueryEventsRequest {
|
|
319
333
|
string spanContext = 0;
|
|
320
334
|
string orgId = 1;
|
|
321
335
|
EventQuery query = 2;
|
|
322
336
|
Pagination pagination = 3;
|
|
337
|
+
string eventId = 4;
|
|
338
|
+
|
|
323
339
|
}
|
|
324
340
|
|
|
325
341
|
message QueryEventsResponse {
|
|
@@ -328,6 +344,20 @@ message QueryEventsResponse {
|
|
|
328
344
|
repeated Event events = 2;
|
|
329
345
|
}
|
|
330
346
|
|
|
347
|
+
message QuerySearchEventsRequest {
|
|
348
|
+
string spanContext = 0;
|
|
349
|
+
string orgId = 1;
|
|
350
|
+
SearchQuery query = 2;
|
|
351
|
+
Pagination pagination = 3;
|
|
352
|
+
string eventId = 4;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
message QuerySearchEventsResponse {
|
|
356
|
+
StatusCode status = 0;
|
|
357
|
+
repeated Error errors = 1;
|
|
358
|
+
Event events = 2;
|
|
359
|
+
}
|
|
360
|
+
|
|
331
361
|
message QueryEventsListRequest {
|
|
332
362
|
string spanContext = 0;
|
|
333
363
|
string orgId = 1;
|
|
@@ -479,12 +509,51 @@ message SalesReportRequest {
|
|
|
479
509
|
SalesReportParams params = 2;
|
|
480
510
|
}
|
|
481
511
|
|
|
512
|
+
|
|
513
|
+
message NotifyMeReportResponse {
|
|
514
|
+
StatusCode status = 0;
|
|
515
|
+
repeated Error errors = 1;
|
|
516
|
+
Event event = 2;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
message NotifyMeReportRequest {
|
|
520
|
+
string spanContext = 0;
|
|
521
|
+
string orgId = 1;
|
|
522
|
+
string email = 2;
|
|
523
|
+
string eventId = 3;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
message WaitListResponse {
|
|
529
|
+
StatusCode status = 0;
|
|
530
|
+
repeated Error errors = 1;
|
|
531
|
+
Event event = 2;
|
|
532
|
+
string message = 3;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
message WaitListRequest {
|
|
536
|
+
string spanContext = 0;
|
|
537
|
+
string orgId = 1;
|
|
538
|
+
WaitListParams params = 2;
|
|
539
|
+
string eventId = 3;
|
|
540
|
+
string type = 4;
|
|
541
|
+
WaitListQuery query = 5;
|
|
542
|
+
}
|
|
543
|
+
|
|
482
544
|
message SalesReportParams {
|
|
483
545
|
string email = 0;
|
|
484
546
|
string frequency = 1;
|
|
485
547
|
string eventId = 2;
|
|
486
548
|
}
|
|
487
549
|
|
|
550
|
+
message WaitListParams {
|
|
551
|
+
string name = 0;
|
|
552
|
+
string email = 1;
|
|
553
|
+
string phoneNumber = 2;
|
|
554
|
+
int32 createdAt = 3;
|
|
555
|
+
}
|
|
556
|
+
|
|
488
557
|
message DeleteSubscriptionRequest {
|
|
489
558
|
string spanContext = 0;
|
|
490
559
|
string orgId = 1;
|
|
@@ -512,6 +581,35 @@ message HoldTicketResponse {
|
|
|
512
581
|
Event event = 2;
|
|
513
582
|
}
|
|
514
583
|
|
|
584
|
+
message GenerateWaitListReportRequest {
|
|
585
|
+
string spanContext = 0;
|
|
586
|
+
string orgId = 1;
|
|
587
|
+
WaitListQuery query = 2;
|
|
588
|
+
string userId = 3;
|
|
589
|
+
string eventId = 4;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
message GenerateWaitListReportResponse {
|
|
593
|
+
StatusCode status = 0;
|
|
594
|
+
repeated Error errors = 1;
|
|
595
|
+
string url = 2;
|
|
596
|
+
string message = 3;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
message WaitListQuery {
|
|
600
|
+
repeated string eventIds = 0;
|
|
601
|
+
repeated string venueIds = 1;
|
|
602
|
+
repeated string artistIds = 2;
|
|
603
|
+
repeated string userIds = 3;
|
|
604
|
+
string name = 4;
|
|
605
|
+
string email = 5;
|
|
606
|
+
string phoneNumber = 6;
|
|
607
|
+
bool any = 7;
|
|
608
|
+
string orgId = 8;
|
|
609
|
+
string eventQuery = 9;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
|
|
515
613
|
|
|
516
614
|
service EventService {
|
|
517
615
|
// Create
|
|
@@ -521,6 +619,8 @@ service EventService {
|
|
|
521
619
|
rpc updateEvent(UpdateEventRequest) returns (UpdateEventResponse) {}
|
|
522
620
|
// Query
|
|
523
621
|
rpc queryEvents(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
622
|
+
rpc searchEvents(QuerySearchEventsRequest) returns (FindEventByIdResponse) {}
|
|
623
|
+
|
|
524
624
|
// list of all event
|
|
525
625
|
rpc queryEventsList(QueryEventsListRequest) returns (QueryEventsListResponse) {}
|
|
526
626
|
// events ticket by promo
|
|
@@ -547,9 +647,16 @@ service EventService {
|
|
|
547
647
|
|
|
548
648
|
// Sales report
|
|
549
649
|
rpc salesReport(SalesReportRequest) returns (SalesReportResponse) {}
|
|
650
|
+
rpc notifyEvent(NotifyMeReportRequest) returns (NotifyMeReportResponse) {}
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
// Wait List
|
|
654
|
+
rpc createWaitList(WaitListRequest) returns (WaitListResponse) {}
|
|
655
|
+
|
|
550
656
|
|
|
551
657
|
rpc deleteSubscription(DeleteSubscriptionRequest) returns (DeleteSubscriptionResponse) {}
|
|
552
658
|
|
|
553
659
|
rpc updateHolds(HoldTicketRequest) returns (HoldTicketResponse) {}
|
|
660
|
+
rpc generateWaitListReport(GenerateWaitListReportRequest) returns (GenerateWaitListReportResponse) {}
|
|
554
661
|
|
|
555
662
|
}
|
package/src/schemas/Event.ts
CHANGED
|
@@ -75,7 +75,7 @@ const EventPromotion = {
|
|
|
75
75
|
type: Number,
|
|
76
76
|
required: false,
|
|
77
77
|
},
|
|
78
|
-
overRideMaxUpg:{
|
|
78
|
+
overRideMaxUpg: {
|
|
79
79
|
type: Number,
|
|
80
80
|
required: false,
|
|
81
81
|
},
|
|
@@ -337,28 +337,28 @@ const TicketHold = {
|
|
|
337
337
|
type: String,
|
|
338
338
|
required: true,
|
|
339
339
|
},
|
|
340
|
-
ticketType:{
|
|
341
|
-
type:String,
|
|
342
|
-
required:true
|
|
340
|
+
ticketType: {
|
|
341
|
+
type: String,
|
|
342
|
+
required: true
|
|
343
343
|
},
|
|
344
|
-
totalHeld:{
|
|
345
|
-
type:Number,
|
|
346
|
-
required:true
|
|
344
|
+
totalHeld: {
|
|
345
|
+
type: Number,
|
|
346
|
+
required: true
|
|
347
347
|
},
|
|
348
|
-
totalCheckedIn:{
|
|
349
|
-
type:Number,
|
|
350
|
-
required:true
|
|
348
|
+
totalCheckedIn: {
|
|
349
|
+
type: Number,
|
|
350
|
+
required: true
|
|
351
351
|
},
|
|
352
|
-
totalReleased:{
|
|
353
|
-
type:Number,
|
|
354
|
-
required:true
|
|
352
|
+
totalReleased: {
|
|
353
|
+
type: Number,
|
|
354
|
+
required: true
|
|
355
355
|
},
|
|
356
|
-
totalOutstanding:{
|
|
357
|
-
type:Number,
|
|
358
|
-
required:false
|
|
356
|
+
totalOutstanding: {
|
|
357
|
+
type: Number,
|
|
358
|
+
required: false
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
|
|
361
|
+
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
const TicketTier = {
|
|
@@ -463,6 +463,29 @@ const TicketType = {
|
|
|
463
463
|
]
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
+
const WaitList = {
|
|
467
|
+
_id: {
|
|
468
|
+
type: String,
|
|
469
|
+
default: shortid.generate,
|
|
470
|
+
required: false,
|
|
471
|
+
},
|
|
472
|
+
name: {
|
|
473
|
+
type: String,
|
|
474
|
+
required: false,
|
|
475
|
+
},
|
|
476
|
+
phoneNumber: {
|
|
477
|
+
type: String,
|
|
478
|
+
required: false,
|
|
479
|
+
},
|
|
480
|
+
email: {
|
|
481
|
+
type: String,
|
|
482
|
+
required: false,
|
|
483
|
+
},
|
|
484
|
+
createdAt: {
|
|
485
|
+
type: Number,
|
|
486
|
+
required: false
|
|
487
|
+
},
|
|
488
|
+
};
|
|
466
489
|
|
|
467
490
|
export default {
|
|
468
491
|
_id: {
|
|
@@ -573,9 +596,9 @@ export default {
|
|
|
573
596
|
type: String,
|
|
574
597
|
required: false
|
|
575
598
|
},
|
|
576
|
-
stub:{
|
|
577
|
-
type:String,
|
|
578
|
-
required:false
|
|
599
|
+
stub: {
|
|
600
|
+
type: String,
|
|
601
|
+
required: false
|
|
579
602
|
},
|
|
580
603
|
physicalDeliveryInstructions: {
|
|
581
604
|
type: String,
|
|
@@ -592,5 +615,6 @@ export default {
|
|
|
592
615
|
type: String,
|
|
593
616
|
required: false
|
|
594
617
|
},
|
|
595
|
-
subscription: [Subscription]
|
|
618
|
+
subscription: [Subscription],
|
|
619
|
+
waitList: [WaitList]
|
|
596
620
|
};
|