@sellout/models 0.0.344 → 0.0.346

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.344",
3
+ "version": "0.0.346",
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.344",
21
+ "@sellout/utils": "^0.0.346",
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": "cbec380e9555c737c635db3839719b66616c2fdc"
35
+ "gitHead": "12462354bd3f12da1dccc22de1d91f91e9cbf3c2"
36
36
  }
@@ -0,0 +1,9 @@
1
+ import {gql} from "@apollo/client";
2
+
3
+ const mutation = gql`
4
+ mutation updateOrgEmailWebhook($email: String!) {
5
+ updateOrgEmailWebhook(email: $email)
6
+ }
7
+ `;
8
+
9
+ export default mutation;
@@ -0,0 +1,9 @@
1
+ import {gql} from "@apollo/client";
2
+
3
+ const query = gql`
4
+ query queryOrgDeletable($orgId: String!) {
5
+ queryOrgDeletable(orgId: $orgId)
6
+ }
7
+ `;
8
+
9
+ export default query;
@@ -20,6 +20,7 @@ const query = gql`
20
20
  parentOrderDetails {
21
21
  email
22
22
  phoneNumber
23
+ eventName
23
24
  }
24
25
  user {
25
26
  email
@@ -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
  }
@@ -647,6 +647,17 @@ message FindApiKeyResponse {
647
647
  repeated Error errors = 1;
648
648
  }
649
649
 
650
+ message SuperAdminDeleteEventsRequest {
651
+ string spanContext = 0;
652
+ string orgId = 1;
653
+ }
654
+
655
+ message SuperAdminDeleteEventsResponse {
656
+ StatusCode status = 1;
657
+ repeated Error errors = 2;
658
+ bool deleted = 3;
659
+ }
660
+
650
661
 
651
662
  service EventService {
652
663
  // Create
@@ -673,6 +684,7 @@ service EventService {
673
684
  rpc listEvents(ListEventsRequest) returns (ListEventsResponse) {}
674
685
  // Delete
675
686
  rpc deleteEvent(DeleteEventRequest) returns (DeleteEventResponse) {}
687
+ rpc superAdminDeleteEvents(SuperAdminDeleteEventsRequest) returns (SuperAdminDeleteEventsResponse) {}
676
688
  // Cancel
677
689
  rpc cancelEvent(CancelEventRequest) returns (CancelEventResponse) {}
678
690
  // Cancel
@@ -53,6 +53,7 @@ message Order {
53
53
  message ParentOrderDetails {
54
54
  string email = 0;
55
55
  string phoneNumber = 1;
56
+ string eventName = 2;
56
57
  }
57
58
 
58
59
  message OrderIntegrationResponse {
@@ -832,6 +833,16 @@ message ShareOrderTimestamp {
832
833
  int32 rejectedTime = 3;
833
834
  }
834
835
 
836
+ message QueryOrgDeletableRequest {
837
+ string spanContext = 0;
838
+ string orgId = 1;
839
+ }
840
+
841
+ message QueryOrgDeletableResponse {
842
+ StatusCode status = 0;
843
+ repeated Error errors = 1;
844
+ bool isOrgDeletable = 2;
845
+ }
835
846
 
836
847
 
837
848
  service OrderService {
@@ -883,5 +894,5 @@ service OrderService {
883
894
  rpc sharingTicketStatusChange(SharingTicketStatusChangeRequest) returns(SharingTicketStatusChangeResponse){}
884
895
  rpc orderIntegrationUpdate(OrderIntegrationUpdateRequest) returns(OrderIntegrationUpdateResponse){}
885
896
  rpc emailTicketHolders(EmailTicketHolderRequest) returns(EmailTicketHolderResponse){}
886
-
897
+ rpc queryOrgDeletable(QueryOrgDeletableRequest) returns(QueryOrgDeletableResponse){}
887
898
  }
@@ -123,6 +123,16 @@ message DeleteOrganizationResponse {
123
123
  bool isDeleted = 2;
124
124
  }
125
125
 
126
+ message UpdateOrgEmailWebhookRequest {
127
+ string spanContext = 0;
128
+ string email = 1;
129
+ }
130
+
131
+ message UpdateOrgEmailWebhookResponse {
132
+ StatusCode status = 0;
133
+ repeated Error errors = 1;
134
+ }
135
+
126
136
  service OrganizationService {
127
137
  // Create
128
138
  rpc createOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse) {}
@@ -132,6 +142,7 @@ service OrganizationService {
132
142
  rpc queryOrganizations(QueryOrganizationsRequest) returns (QueryOrganizationsResponse) {}
133
143
  // Update
134
144
  rpc updateOrganization(UpdateOrganizationRequest) returns (UpdateOrganizationResponse) {}
145
+ rpc updateOrgEmailWebhook(UpdateOrgEmailWebhookRequest) returns (UpdateOrgEmailWebhookResponse) {}
135
146
  // Find
136
147
  rpc findOrganization(FindOrganizationRequest) returns (FindOrganizationResponse) {}
137
148
  // Delete
@@ -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
  }