@sellout/models 0.0.345 → 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.345",
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.345",
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": "aac9ee42b3865e131de8f816b46f7ceeceadfba5"
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;
@@ -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
@@ -833,6 +833,16 @@ message ShareOrderTimestamp {
833
833
  int32 rejectedTime = 3;
834
834
  }
835
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
+ }
836
846
 
837
847
 
838
848
  service OrderService {
@@ -884,5 +894,5 @@ service OrderService {
884
894
  rpc sharingTicketStatusChange(SharingTicketStatusChangeRequest) returns(SharingTicketStatusChangeResponse){}
885
895
  rpc orderIntegrationUpdate(OrderIntegrationUpdateRequest) returns(OrderIntegrationUpdateResponse){}
886
896
  rpc emailTicketHolders(EmailTicketHolderRequest) returns(EmailTicketHolderResponse){}
887
-
897
+ rpc queryOrgDeletable(QueryOrgDeletableRequest) returns(QueryOrgDeletableResponse){}
888
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