@sellout/models 0.0.387 → 0.0.389
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/interfaces/IEvent.d.ts +1 -0
- package/.dist/interfaces/IOrder.d.ts +5 -0
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/schemas/Event.d.ts +5 -0
- package/.dist/schemas/Event.js +5 -0
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Order.d.ts +34 -22
- package/.dist/schemas/Order.js +14 -1
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/sellout-proto.js +1123 -10
- package/package.json +3 -3
- package/src/interfaces/IEvent.ts +1 -0
- package/src/interfaces/IOrder.ts +6 -0
- package/src/proto/broadcast.proto +8 -1
- package/src/proto/email.proto +1 -0
- package/src/proto/event.proto +14 -0
- package/src/proto/order.proto +6 -0
- package/src/schemas/Event.ts +5 -0
- package/src/schemas/Order.ts +36 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.389",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@apollo/client": "^3.9.6",
|
|
20
20
|
"@hapi/joi": "^17.1.1",
|
|
21
|
-
"@sellout/utils": "^0.0.
|
|
21
|
+
"@sellout/utils": "^0.0.389",
|
|
22
22
|
"@types/hapi__joi": "^16.0.1",
|
|
23
23
|
"@types/shortid": "^0.0.29",
|
|
24
24
|
"@types/zen-observable": "^0.8.7",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"protobufjs": "^6.11.2",
|
|
33
33
|
"typescript": "^4.9.5"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "cb761b28efbdd920cda3fa5e6d8c993bf26896b0"
|
|
36
36
|
}
|
package/src/interfaces/IEvent.ts
CHANGED
package/src/interfaces/IOrder.ts
CHANGED
|
@@ -61,6 +61,7 @@ export default interface IOrder {
|
|
|
61
61
|
parentOrderId?: string;
|
|
62
62
|
parentOrderDetails?: ParentOrderDetails;
|
|
63
63
|
appleWallet?: IAppleWallet; // Apple Wallet pass data
|
|
64
|
+
googleWallet?: IGoogleWallet; // Google Wallet pass data
|
|
64
65
|
};
|
|
65
66
|
|
|
66
67
|
export interface IEventGraphQL extends IEvent {
|
|
@@ -96,4 +97,9 @@ export interface IAppleWallet {
|
|
|
96
97
|
serialNumber?: string; // Unique serial number for the pass
|
|
97
98
|
authToken?: string; // Authentication token for web service callbacks
|
|
98
99
|
lastModified?: number; // Timestamp for pass update tracking
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface IGoogleWallet {
|
|
103
|
+
url?: string; // "Add to Google Wallet" URL with JWT token
|
|
104
|
+
objectId?: string; // Object ID for REST API updates
|
|
99
105
|
}
|
|
@@ -86,6 +86,12 @@ message EventUpdatedNotification {
|
|
|
86
86
|
string eventId = 2;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
message EventGoogleWalletClassUpdateNotification {
|
|
90
|
+
string spanContext = 0;
|
|
91
|
+
string orgId = 1;
|
|
92
|
+
string eventId = 2;
|
|
93
|
+
}
|
|
94
|
+
|
|
89
95
|
|
|
90
96
|
/****************************************************************************************
|
|
91
97
|
* Season
|
|
@@ -174,11 +180,12 @@ service Publisher {
|
|
|
174
180
|
rpc orderCreated(OrderCreatedNotification) returns (google.protobuf.Empty) {}
|
|
175
181
|
rpc orderSeasonCreated(OrderCreatedNotification) returns (google.protobuf.Empty) {}
|
|
176
182
|
rpc orderRefunded(OrderRefundedNotification) returns (google.protobuf.Empty) {}
|
|
177
|
-
rpc
|
|
183
|
+
rpc orderWalletPassUpdate(OrderApplePassUpdateNotification) returns (google.protobuf.Empty) {}
|
|
178
184
|
// Event
|
|
179
185
|
rpc eventCreated(EventCreatedNotification) returns (google.protobuf.Empty) {}
|
|
180
186
|
rpc eventPublished(EventPublishedNotification) returns (google.protobuf.Empty) {}
|
|
181
187
|
rpc eventUpdated(EventUpdatedNotification) returns (google.protobuf.Empty) {}
|
|
188
|
+
rpc eventGoogleWalletClassUpdate(EventGoogleWalletClassUpdateNotification) returns (google.protobuf.Empty) {}
|
|
182
189
|
rpc duplicateEventCreated(EventCreatedNotification) returns (google.protobuf.Empty) {}
|
|
183
190
|
// Season
|
|
184
191
|
rpc seasonCreated(SeasonCreatedNotification) returns (google.protobuf.Empty) {}
|
package/src/proto/email.proto
CHANGED
package/src/proto/event.proto
CHANGED
|
@@ -51,6 +51,7 @@ message Event {
|
|
|
51
51
|
string duplicateFeeId = 43;
|
|
52
52
|
string qrCodeUrl = 44;
|
|
53
53
|
string web3Hash = 45;
|
|
54
|
+
string googleWalletClassId = 46;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
message PublicEvent {
|
|
@@ -766,6 +767,18 @@ message CheckStubUniquenessResponse {
|
|
|
766
767
|
bool isUnique = 3;
|
|
767
768
|
}
|
|
768
769
|
|
|
770
|
+
message CreateGoogleWalletEventClassRequest {
|
|
771
|
+
string spanContext = 0;
|
|
772
|
+
string eventId = 1;
|
|
773
|
+
string orgId = 2;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
message CreateGoogleWalletEventClassResponse {
|
|
777
|
+
StatusCode status = 0;
|
|
778
|
+
repeated Error errors = 1;
|
|
779
|
+
string googleWalletClassId = 2;
|
|
780
|
+
}
|
|
781
|
+
|
|
769
782
|
service EventService {
|
|
770
783
|
// Create
|
|
771
784
|
rpc createEvent(CreateEventRequest) returns (CreateEventResponse) {}
|
|
@@ -823,4 +836,5 @@ service EventService {
|
|
|
823
836
|
rpc generateEventQRCode(GenerateEventQRCodeRequest) returns (GenerateEventQRCodeResponse) {}
|
|
824
837
|
rpc queryEventsAdmin(QueryEventsRequest) returns (QueryEventsResponse) {}
|
|
825
838
|
rpc checkStubUniqueness(CheckStubUniquenessRequest) returns (CheckStubUniquenessResponse) {}
|
|
839
|
+
rpc createGoogleWalletEventClass(CreateGoogleWalletEventClassRequest) returns (CreateGoogleWalletEventClassResponse) {}
|
|
826
840
|
}
|
package/src/proto/order.proto
CHANGED
|
@@ -49,6 +49,7 @@ message Order {
|
|
|
49
49
|
repeated SharingOrderInfo sharing = 38;
|
|
50
50
|
ParentOrderDetails parentOrderDetails = 39;
|
|
51
51
|
AppleWallet appleWallet = 40;
|
|
52
|
+
GoogleWallet googleWallet = 41;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
message ParentOrderDetails {
|
|
@@ -64,6 +65,11 @@ message AppleWallet {
|
|
|
64
65
|
int32 lastModified = 3;
|
|
65
66
|
}
|
|
66
67
|
|
|
68
|
+
message GoogleWallet {
|
|
69
|
+
string url = 0;
|
|
70
|
+
string objectId = 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
67
73
|
message OrderIntegrationResponse {
|
|
68
74
|
bool success = 0;
|
|
69
75
|
string title = 1;
|
package/src/schemas/Event.ts
CHANGED
package/src/schemas/Order.ts
CHANGED
|
@@ -218,7 +218,7 @@ const OrderTicket = {
|
|
|
218
218
|
guestTicket: {
|
|
219
219
|
type: Boolean,
|
|
220
220
|
required: false
|
|
221
|
-
},
|
|
221
|
+
},
|
|
222
222
|
isTicketSharing: {
|
|
223
223
|
type: Boolean,
|
|
224
224
|
required: false,
|
|
@@ -454,27 +454,40 @@ const Payment = {
|
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
const AppleWallet = {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
457
|
+
url: {
|
|
458
|
+
type: String,
|
|
459
|
+
required: false,
|
|
460
|
+
default: null,
|
|
461
|
+
},
|
|
462
|
+
serialNumber: {
|
|
463
|
+
type: String,
|
|
464
|
+
required: false,
|
|
465
|
+
default: null,
|
|
466
|
+
},
|
|
467
|
+
authToken: {
|
|
468
|
+
type: String,
|
|
469
|
+
required: false,
|
|
470
|
+
default: null,
|
|
471
|
+
},
|
|
472
|
+
lastModified: {
|
|
473
|
+
type: Number,
|
|
474
|
+
required: false,
|
|
475
|
+
default: null,
|
|
476
|
+
},
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
const GoogleWallet = {
|
|
480
|
+
url: {
|
|
481
|
+
type: String,
|
|
482
|
+
required: false,
|
|
483
|
+
default: null,
|
|
484
|
+
},
|
|
485
|
+
objectId: {
|
|
486
|
+
type: String,
|
|
487
|
+
required: false,
|
|
488
|
+
default: null,
|
|
477
489
|
}
|
|
490
|
+
}
|
|
478
491
|
|
|
479
492
|
const orderIntegrationResponse = {
|
|
480
493
|
_id: {
|
|
@@ -617,7 +630,6 @@ export default {
|
|
|
617
630
|
required: false,
|
|
618
631
|
default: null,
|
|
619
632
|
},
|
|
620
|
-
appleWallet: AppleWallet,
|
|
621
633
|
state: {
|
|
622
634
|
type: String,
|
|
623
635
|
required: true,
|
|
@@ -689,4 +701,6 @@ export default {
|
|
|
689
701
|
required: false,
|
|
690
702
|
default: null,
|
|
691
703
|
},
|
|
704
|
+
appleWallet: AppleWallet,
|
|
705
|
+
googleWallet: GoogleWallet,
|
|
692
706
|
};
|