@sellout/models 0.0.343 → 0.0.345

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.343",
3
+ "version": "0.0.345",
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.343",
21
+ "@sellout/utils": "^0.0.345",
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": "aa5f53edb42718a4bd60d6fc619dbb4f2dbf4308"
35
+ "gitHead": "aac9ee42b3865e131de8f816b46f7ceeceadfba5"
36
36
  }
@@ -8,7 +8,7 @@ const query = gql`
8
8
  userId
9
9
  printed
10
10
  email
11
- sharing{
11
+ sharing {
12
12
  email
13
13
  phoneNumber
14
14
  tickets
@@ -16,7 +16,12 @@ const query = gql`
16
16
  eventName
17
17
  orderId
18
18
  status
19
- }
19
+ }
20
+ parentOrderDetails {
21
+ email
22
+ phoneNumber
23
+ eventName
24
+ }
20
25
  user {
21
26
  email
22
27
  firstName
@@ -26,6 +31,7 @@ const query = gql`
26
31
  imageUrl
27
32
  }
28
33
  }
34
+ parentOrderId
29
35
  orgId
30
36
  eventId
31
37
  seasonId
@@ -59,6 +59,7 @@ export default interface IOrder {
59
59
  sharing?: [IOrderShareEnum],
60
60
  orderIntegrationResponse?: IOrderIntegrationResponse[];
61
61
  parentOrderId?: string;
62
+ parentOrderDetails?:ParentOrderDetails
62
63
  };
63
64
 
64
65
  export interface IEventGraphQL extends IEvent {
@@ -69,6 +70,12 @@ export interface ISeasonGraphQL extends ISeason {
69
70
  venue?: IVenue;
70
71
  }
71
72
 
73
+ export interface ParentOrderDetails {
74
+ email: string;
75
+ phoneNumber: string;
76
+ __typename: string;
77
+ };
78
+
72
79
  export interface IOrderGraphQL extends IOrder {
73
80
  user: IUser;
74
81
  fees: IFee[];
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  import "google/protobuf/empty.proto";
4
4
  import "order.proto";
5
+ import "user.proto";
5
6
 
6
7
  package Broadcast;
7
8
 
@@ -150,6 +151,18 @@ message ArtistUpdatedNotification {
150
151
  string artistId = 2;
151
152
  }
152
153
 
154
+
155
+ /****************************************************************************************
156
+ * Contact
157
+ *****************************************************************************************/
158
+
159
+ message AddContactNotification {
160
+ string spanContext = 0;
161
+ repeated Contact contact = 1;
162
+ string orgId = 2;
163
+ }
164
+
165
+
153
166
  service Publisher {
154
167
  // Order
155
168
  rpc orderCreated(OrderCreatedNotification) returns (google.protobuf.Empty) {}
@@ -175,4 +188,7 @@ service Publisher {
175
188
  rpc artistCreated(ArtistCreatedNotification) returns (google.protobuf.Empty) {}
176
189
  rpc artistUpdated(ArtistUpdatedNotification) returns (google.protobuf.Empty) {}
177
190
 
191
+ // Contact
192
+ rpc addContacts(AddContactNotification) returns (google.protobuf.Empty) {}
193
+
178
194
  }
@@ -47,6 +47,13 @@ message Order {
47
47
  repeated OrderIntegrationResponse orderIntegrationResponse = 36;
48
48
  string parentOrderId = 37;
49
49
  repeated SharingOrderInfo sharing = 38;
50
+ ParentOrderDetails parentOrderDetails = 39;
51
+ }
52
+
53
+ message ParentOrderDetails {
54
+ string email = 0;
55
+ string phoneNumber = 1;
56
+ string eventName = 2;
50
57
  }
51
58
 
52
59
  message OrderIntegrationResponse {
@@ -468,4 +468,5 @@ service UserService {
468
468
  rpc queryContacts(QueryContactsRequest) returns (QueryContactsResponse) {}
469
469
  rpc updateContact(UpdateContactRequest) returns (UpdateContactResponse) {}
470
470
  rpc superAdminDeleteUser(SuperAdminDeleteUserRequest) returns (SuperAdminDeleteUserResponse) {}
471
+ rpc queryContactAndUsers(QueryUserProfilesRequest) returns (QueryUserProfilesResponse) {}
471
472
  }