@sellout/models 0.0.133 → 0.0.135
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/deleteSecondaryEmail.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js +21 -0
- package/.dist/graphql/mutations/deleteSecondaryEmail.mutation.js.map +1 -0
- package/.dist/graphql/mutations/generateOrderReport.mutation.js +4 -1
- package/.dist/graphql/mutations/generateOrderReport.mutation.js.map +1 -1
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js +21 -0
- package/.dist/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.js.map +1 -0
- package/.dist/graphql/mutations/register.mutation.js +5 -0
- package/.dist/graphql/mutations/register.mutation.js.map +1 -1
- package/.dist/sellout-proto.js +36230 -32353
- package/package.json +3 -3
- package/src/graphql/mutations/deleteSecondaryEmail.mutation.ts +17 -0
- package/src/graphql/mutations/generateOrderReport.mutation.ts +6 -3
- package/src/graphql/mutations/makeSecondaryToPrimaryEmail.mutation.ts +17 -0
- package/src/graphql/mutations/register.mutation.ts +5 -0
- package/src/proto/email.proto +11 -0
- package/src/proto/event.proto +80 -1
- package/src/proto/order.proto +1 -0
- package/src/proto/role.proto +14 -0
- package/src/proto/stripe.proto +12 -0
- package/src/proto/user.proto +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.135",
|
|
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.135",
|
|
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": "155b7dffd91a8b971bd3e2090db1953eba001b88"
|
|
35
35
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation deleteSecondaryEmail($email: String!) {
|
|
5
|
+
deleteSecondaryEmail(email: $email) {
|
|
6
|
+
_id
|
|
7
|
+
firstName
|
|
8
|
+
lastName
|
|
9
|
+
phoneNumber
|
|
10
|
+
secondaryEmails
|
|
11
|
+
email
|
|
12
|
+
__typename
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
export default mutation;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import gql from
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
3
|
const mutation = gql`
|
|
4
4
|
mutation generateOrderReport($query: OrderQueryInput) {
|
|
5
|
-
generateOrderReport(query: $query)
|
|
5
|
+
generateOrderReport(query: $query) {
|
|
6
|
+
url
|
|
7
|
+
message
|
|
8
|
+
}
|
|
6
9
|
}
|
|
7
10
|
`;
|
|
8
11
|
|
|
9
|
-
export default mutation;
|
|
12
|
+
export default mutation;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation makeSecondaryEmailPrimary($email: String!) {
|
|
5
|
+
makeSecondaryEmailPrimary(email: $email) {
|
|
6
|
+
_id
|
|
7
|
+
firstName
|
|
8
|
+
lastName
|
|
9
|
+
phoneNumber
|
|
10
|
+
secondaryEmails
|
|
11
|
+
email
|
|
12
|
+
__typename
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
export default mutation;
|
package/src/proto/email.proto
CHANGED
|
@@ -14,6 +14,12 @@ message QueueUserWelcomeEmailRequest {
|
|
|
14
14
|
string redirectUrl = 4;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
message QueueUpdatedEmailRequest {
|
|
18
|
+
string spanContext = 0;
|
|
19
|
+
string toAddress = 1;
|
|
20
|
+
string firstName = 2;
|
|
21
|
+
string lastName = 3;
|
|
22
|
+
}
|
|
17
23
|
message QueueUserResetPasswordEmailRequest {
|
|
18
24
|
string spanContext = 0;
|
|
19
25
|
string toAddress = 1;
|
|
@@ -80,6 +86,9 @@ message QueueOrderReceiptEmailRequest {
|
|
|
80
86
|
string venuePosterImageUrl = 25;
|
|
81
87
|
bool isRSVP = 26;
|
|
82
88
|
string orderTax = 28;
|
|
89
|
+
int32 eventStart = 29;
|
|
90
|
+
int32 eventEnd = 30;
|
|
91
|
+
string timezone = 31;
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
message QueueOrderQRCodeEmailRequest {
|
|
@@ -182,6 +191,7 @@ message QueueOrderCanceledEmailRequest {
|
|
|
182
191
|
service EmailService {
|
|
183
192
|
// User
|
|
184
193
|
rpc queueUserWelcomeEmail (QueueUserWelcomeEmailRequest) returns (google.protobuf.Empty) {}
|
|
194
|
+
rpc queueUpdatedEmail (QueueUpdatedEmailRequest) returns (google.protobuf.Empty) {}
|
|
185
195
|
rpc queueUserResetPasswordEmail (QueueUserResetPasswordEmailRequest) returns (google.protobuf.Empty) {}
|
|
186
196
|
rpc queueInviteToOrganizationEmailRequest (QueueInviteToOrganizationEmailRequest) returns (google.protobuf.Empty) {}
|
|
187
197
|
// Order
|
|
@@ -191,5 +201,6 @@ service EmailService {
|
|
|
191
201
|
rpc queueOrderCanceledEmail (QueueOrderCanceledEmailRequest) returns (google.protobuf.Empty) {}
|
|
192
202
|
rpc orderSheetEmail (orderSheetEmailRequest) returns (google.protobuf.Empty) {}
|
|
193
203
|
rpc orderQRCodeEmailOnDay (QueueOrderQRCodeEmailRequest) returns (google.protobuf.Empty) {}
|
|
204
|
+
|
|
194
205
|
|
|
195
206
|
}
|
package/src/proto/event.proto
CHANGED
|
@@ -2,6 +2,8 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
import "error.proto";
|
|
4
4
|
import "common.proto";
|
|
5
|
+
import "organization.proto";
|
|
6
|
+
import "venue.proto";
|
|
5
7
|
|
|
6
8
|
message Event {
|
|
7
9
|
string _id = 1;
|
|
@@ -36,6 +38,64 @@ message Event {
|
|
|
36
38
|
bool taxDeduction = 30;
|
|
37
39
|
}
|
|
38
40
|
|
|
41
|
+
message PublicEvent {
|
|
42
|
+
string _id = 1;
|
|
43
|
+
string orgId = 2;
|
|
44
|
+
string type = 3;
|
|
45
|
+
string name = 4;
|
|
46
|
+
string subtitle = 5;
|
|
47
|
+
string description = 6;
|
|
48
|
+
string posterImageUrl = 7;
|
|
49
|
+
string venueId = 8;
|
|
50
|
+
int32 createdAt = 9;
|
|
51
|
+
bool publishable = 10;
|
|
52
|
+
string seatingChartKey = 11;
|
|
53
|
+
string age = 12;
|
|
54
|
+
bool active = 13;
|
|
55
|
+
string userAgreement = 14;
|
|
56
|
+
string processAs = 15;
|
|
57
|
+
string sendQRCode = 16;
|
|
58
|
+
Address location = 17;
|
|
59
|
+
bool published = 18;
|
|
60
|
+
bool salesBeginImmediately = 19;
|
|
61
|
+
bool cancel = 20;
|
|
62
|
+
bool taxDeduction = 21;
|
|
63
|
+
int32 startsAt = 22;
|
|
64
|
+
int32 endsAt = 23;
|
|
65
|
+
string venue = 24;
|
|
66
|
+
string status = 25;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message PublicEventDetails {
|
|
70
|
+
|
|
71
|
+
string _id = 1;
|
|
72
|
+
string orgId = 2;
|
|
73
|
+
string type = 3;
|
|
74
|
+
string name = 4;
|
|
75
|
+
string subtitle = 5;
|
|
76
|
+
string description = 6;
|
|
77
|
+
string posterImageUrl = 7;
|
|
78
|
+
string venueId = 8;
|
|
79
|
+
int32 createdAt = 9;
|
|
80
|
+
bool publishable = 10;
|
|
81
|
+
string seatingChartKey = 11;
|
|
82
|
+
string age = 12;
|
|
83
|
+
bool active = 13;
|
|
84
|
+
string userAgreement = 14;
|
|
85
|
+
string processAs = 15;
|
|
86
|
+
string sendQRCode = 16;
|
|
87
|
+
Address location = 17;
|
|
88
|
+
EventSchedule schedule = 18;
|
|
89
|
+
repeated Performance performances = 19;
|
|
90
|
+
int32 lowestPrice = 20;
|
|
91
|
+
bool published = 21;
|
|
92
|
+
bool salesBeginImmediately = 22;
|
|
93
|
+
bool cancel = 23;
|
|
94
|
+
bool taxDeduction = 24;
|
|
95
|
+
Organization organization = 25;
|
|
96
|
+
Venue venue = 26;
|
|
97
|
+
}
|
|
98
|
+
|
|
39
99
|
message EventSchedule {
|
|
40
100
|
int32 announceAt = 0;
|
|
41
101
|
int32 ticketsAt = 1;
|
|
@@ -221,6 +281,16 @@ message QueryEventsResponse {
|
|
|
221
281
|
repeated Event events = 2;
|
|
222
282
|
}
|
|
223
283
|
|
|
284
|
+
message QueryEventsListRequest {
|
|
285
|
+
string spanContext = 0;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
message QueryEventsListResponse {
|
|
290
|
+
StatusCode status = 0;
|
|
291
|
+
repeated Error errors = 1;
|
|
292
|
+
repeated PublicEvent events = 2;
|
|
293
|
+
}
|
|
224
294
|
message EventTicketsRequest {
|
|
225
295
|
string spanContext = 0;
|
|
226
296
|
string eventId = 1;
|
|
@@ -253,6 +323,11 @@ message FindEventByIdResponse {
|
|
|
253
323
|
repeated Error errors = 1;
|
|
254
324
|
Event event = 2;
|
|
255
325
|
}
|
|
326
|
+
message FindEventDetailsResponse {
|
|
327
|
+
StatusCode status = 0;
|
|
328
|
+
repeated Error errors = 1;
|
|
329
|
+
PublicEventDetails event = 2;
|
|
330
|
+
}
|
|
256
331
|
|
|
257
332
|
// List Events
|
|
258
333
|
message ListEventsRequest {
|
|
@@ -331,10 +406,14 @@ service EventService {
|
|
|
331
406
|
rpc updateEvent(UpdateEventRequest) returns (UpdateEventResponse) {}
|
|
332
407
|
// Query
|
|
333
408
|
rpc queryEvents(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
409
|
+
// list of all event
|
|
410
|
+
rpc queryEventsList(QueryEventsListRequest) returns (QueryEventsListResponse) {}
|
|
334
411
|
// events ticket by promo
|
|
335
412
|
rpc eventTickets(EventTicketsRequest) returns (EventTicketsResponse) {}
|
|
336
413
|
// Find
|
|
337
|
-
rpc findEventById(FindEventByIdRequest) returns (FindEventByIdResponse) {}
|
|
414
|
+
rpc findEventById(FindEventByIdRequest) returns (FindEventByIdResponse) {}
|
|
415
|
+
// Find
|
|
416
|
+
rpc findEventDetails(FindEventByIdRequest) returns (FindEventDetailsResponse) {}
|
|
338
417
|
// List
|
|
339
418
|
rpc listEvents(ListEventsRequest) returns (ListEventsResponse) {}
|
|
340
419
|
// Delete
|
package/src/proto/order.proto
CHANGED
package/src/proto/role.proto
CHANGED
|
@@ -74,6 +74,19 @@ message AssignUserIdToRolesResponse {
|
|
|
74
74
|
repeated Error errors = 1;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
message UpdateRoleEmailRequest {
|
|
80
|
+
string spanContext = 0;
|
|
81
|
+
string userId = 1;
|
|
82
|
+
string userEmail = 2;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message UpdateRoleEmailResponse {
|
|
86
|
+
StatusCode status = 0;
|
|
87
|
+
repeated Error errors = 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
77
90
|
/****************************************************************************************
|
|
78
91
|
Find Role
|
|
79
92
|
****************************************************************************************/
|
|
@@ -144,6 +157,7 @@ service RoleService {
|
|
|
144
157
|
rpc acceptRole(AcceptRoleRequest) returns (AcceptRoleResponse) {}
|
|
145
158
|
// Assign UserId
|
|
146
159
|
rpc assignUserIdToRoles(AssignUserIdToRolesRequest) returns (AssignUserIdToRolesResponse) {}
|
|
160
|
+
rpc updateRoleEmail(UpdateRoleEmailRequest) returns (UpdateRoleEmailResponse) {}
|
|
147
161
|
// Find
|
|
148
162
|
rpc findRoleById(FindRoleByIdRequest) returns (FindRoleByIdResponse) {}
|
|
149
163
|
rpc findUserRole(FindUserRoleRequest) returns (FindUserRoleResponse) {}
|
package/src/proto/stripe.proto
CHANGED
|
@@ -174,6 +174,17 @@ message RetrieveStripeCustomerResponse {
|
|
|
174
174
|
StripeCustomer stripeCustomer = 2;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
message UpdateStripeCustomerRequest {
|
|
178
|
+
string spanContext = 0;
|
|
179
|
+
string stripeCustomerId = 1;
|
|
180
|
+
string userId = 2;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
message UpdateStripeCustomerResponse {
|
|
184
|
+
StatusCode status = 0;
|
|
185
|
+
repeated Error errors = 1;
|
|
186
|
+
StripeCustomer stripeCustomer = 2;
|
|
187
|
+
}
|
|
177
188
|
message CreateStripeSourceRequest {
|
|
178
189
|
string spanContext = 0;
|
|
179
190
|
string userId = 1;
|
|
@@ -367,6 +378,7 @@ service StripeService {
|
|
|
367
378
|
// Customer
|
|
368
379
|
rpc createStripeCustomer(CreateStripeCustomerRequest) returns (CreateStripeCustomerResponse) {}
|
|
369
380
|
rpc retrieveStripeCustomer(RetrieveStripeCustomerRequest) returns (RetrieveStripeCustomerResponse) {}
|
|
381
|
+
rpc updateStripeCustomer(UpdateStripeCustomerRequest) returns (UpdateStripeCustomerResponse) {}
|
|
370
382
|
rpc createStripeSource(CreateStripeSourceRequest) returns (CreateStripeSourceResponse) {}
|
|
371
383
|
rpc deleteStripeSource(DeleteStripeSourceRequest) returns (DeleteStripeSourceResponse) {}
|
|
372
384
|
// Payment Intent
|