@sellout/models 0.0.422 → 0.0.424

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.
Files changed (29) hide show
  1. package/.dist/graphql/mutations/updateOrganization.mutation.js +0 -3
  2. package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
  3. package/.dist/graphql/queries/profile.query.js +0 -4
  4. package/.dist/graphql/queries/profile.query.js.map +1 -1
  5. package/.dist/graphql/queries/validateEmail.query.d.ts +2 -0
  6. package/.dist/graphql/queries/validateEmail.query.js +13 -0
  7. package/.dist/graphql/queries/validateEmail.query.js.map +1 -0
  8. package/.dist/interfaces/IOrganization.d.ts +0 -2
  9. package/.dist/interfaces/IOrganization.js.map +1 -1
  10. package/.dist/schemas/Organization.d.ts +0 -32
  11. package/.dist/schemas/Organization.js +1 -34
  12. package/.dist/schemas/Organization.js.map +1 -1
  13. package/.dist/sellout-proto.js +3569 -3965
  14. package/package.json +3 -3
  15. package/src/graphql/mutations/updateOrganization.mutation.ts +1 -4
  16. package/src/graphql/queries/profile.query.ts +1 -5
  17. package/src/graphql/queries/validateEmail.query.ts +12 -0
  18. package/src/interfaces/IOrganization.ts +1 -3
  19. package/src/proto/organization.proto +0 -28
  20. package/src/proto/user.proto +14 -0
  21. package/src/schemas/Organization.ts +1 -35
  22. package/.dist/graphql/mutations/connectHive.mutation.d.ts +0 -2
  23. package/.dist/graphql/mutations/connectHive.mutation.js +0 -16
  24. package/.dist/graphql/mutations/connectHive.mutation.js.map +0 -1
  25. package/.dist/interfaces/IHiveIntegration.d.ts +0 -8
  26. package/.dist/interfaces/IHiveIntegration.js +0 -3
  27. package/.dist/interfaces/IHiveIntegration.js.map +0 -1
  28. package/src/graphql/mutations/connectHive.mutation.ts +0 -15
  29. package/src/interfaces/IHiveIntegration.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.422",
3
+ "version": "0.0.424",
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.422",
21
+ "@sellout/utils": "^0.0.424",
22
22
  "@types/hapi__joi": "^16.0.1",
23
23
  "@types/shortid": "^0.0.29",
24
24
  "@types/zen-observable": "^0.8.7",
@@ -33,5 +33,5 @@
33
33
  "protobufjs": "^6.11.2",
34
34
  "typescript": "^4.9.5"
35
35
  },
36
- "gitHead": "026cde1e6076e3669b7fec24570b9bf4ecb29213"
36
+ "gitHead": "ab705bb5a92ec53ad74fdf6c2945880990129aa7"
37
37
  }
@@ -1,4 +1,4 @@
1
- import { gql } from "@apollo/client";
1
+ import {gql} from "@apollo/client";
2
2
 
3
3
  const mutation = gql`
4
4
  mutation updateOrganization($organization: OrganizationInput!) {
@@ -13,9 +13,6 @@ const mutation = gql`
13
13
  ticketFormat
14
14
  ticketShareExpiration
15
15
  isWeb3Integration
16
- hiveIntegration {
17
- isHiveIntegration
18
- }
19
16
  }
20
17
  }
21
18
  `;
@@ -1,4 +1,4 @@
1
- import { gql } from "@apollo/client";
1
+ import {gql} from "@apollo/client";
2
2
 
3
3
  const query = gql`
4
4
  query Profile {
@@ -51,10 +51,6 @@ const query = gql`
51
51
  isSeasonTickets
52
52
  isTegIntegration
53
53
  isWeb3Integration
54
- hiveIntegration {
55
- isHiveIntegration
56
- isConnected
57
- }
58
54
  validateMemberId
59
55
  stripeConnectAccount {
60
56
  name
@@ -0,0 +1,12 @@
1
+ import { gql } from "@apollo/client";
2
+
3
+ const query = gql`
4
+ query validateEmail($email: String!) {
5
+ validateEmail(email: $email) {
6
+ valid
7
+ error
8
+ }
9
+ }
10
+ `;
11
+
12
+ export default query;
@@ -1,6 +1,5 @@
1
1
  import IAddress from "./IAddress";
2
- import IOrderIntegration from "./IOrderIntegration";
3
- import IHiveIntegration from "./IHiveIntegration";
2
+ import IOrderIntegration from "./IOrderIntegration"
4
3
 
5
4
  export enum TicketFormatAsEnum {
6
5
  Standard = "Standard",
@@ -41,5 +40,4 @@ export default interface IOrganization {
41
40
  isOrgDeletable?: boolean;
42
41
  isWeb3Integration?: boolean;
43
42
  ticketShareExpiration?: string;
44
- hiveIntegration?: IHiveIntegration;
45
43
  }
@@ -31,7 +31,6 @@ message Organization {
31
31
  bool isOrgDeletable = 24;
32
32
  bool isWeb3Integration = 25;
33
33
  string ticketShareExpiration = 26;
34
- HiveIntegration hiveIntegration = 27;
35
34
  }
36
35
 
37
36
  message OrderIntegration {
@@ -40,15 +39,6 @@ message OrderIntegration {
40
39
  string orderIntegrationAuthToken = 2;
41
40
  }
42
41
 
43
- message HiveIntegration {
44
- bool isHiveIntegration = 1;
45
- string accessToken = 2;
46
- string refreshToken = 3;
47
- int32 tokenExpiresAt = 4;
48
- string clientId = 5;
49
- string clientSecret = 6;
50
- }
51
-
52
42
  // Create Organization
53
43
  message CreateOrganizationRequest {
54
44
  string spanContext = 0;
@@ -156,22 +146,6 @@ message RemoveOrganizationStripeIdResponse {
156
146
  Organization organization = 2;
157
147
  }
158
148
 
159
- // Connect Hive
160
- message ConnectHiveRequest {
161
- string spanContext = 1;
162
- string orgId = 2;
163
- string code = 3;
164
- string codeVerifier = 4;
165
- string clientId = 5;
166
- string clientSecret = 6;
167
- }
168
-
169
- message ConnectHiveResponse {
170
- StatusCode status = 1;
171
- repeated Error errors = 2;
172
- Organization organization = 3;
173
- }
174
-
175
149
  service OrganizationService {
176
150
  // Create
177
151
  rpc createOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse) {}
@@ -188,6 +162,4 @@ service OrganizationService {
188
162
  rpc deleteOrganization(DeleteOrganizationRequest) returns (DeleteOrganizationResponse) {}
189
163
  // Remove Stripe ID
190
164
  rpc removeOrganizationStripeId(RemoveOrganizationStripeIdRequest) returns (RemoveOrganizationStripeIdResponse) {}
191
- // Connect Hive
192
- rpc connectHive(ConnectHiveRequest) returns (ConnectHiveResponse) {}
193
165
  }
@@ -442,6 +442,18 @@ message GetUserBySecondaryEmailResponse {
442
442
  repeated string email = 2;
443
443
  }
444
444
 
445
+ message ValidateEmailRequest {
446
+ string spanContext = 1;
447
+ string email = 2;
448
+ }
449
+
450
+ message ValidateEmailResponse {
451
+ StatusCode status = 1;
452
+ repeated Error errors = 2;
453
+ bool valid = 3;
454
+ string error = 4;
455
+ }
456
+
445
457
  service UserService {
446
458
  // Create
447
459
  rpc createUser(CreateUserRequest) returns (CreateUserResponse) {}
@@ -484,4 +496,6 @@ service UserService {
484
496
  rpc updateContact(UpdateContactRequest) returns (UpdateContactResponse) {}
485
497
  rpc superAdminDeleteUser(SuperAdminDeleteUserRequest) returns (SuperAdminDeleteUserResponse) {}
486
498
  rpc queryContactAndUsers(QueryUserProfilesRequest) returns (QueryUserProfilesResponse) {}
499
+ // Email Validation
500
+ rpc validateEmail(ValidateEmailRequest) returns (ValidateEmailResponse) {}
487
501
  }
@@ -16,39 +16,6 @@ const OrderIntegration = {
16
16
  required: false
17
17
  }
18
18
  };
19
-
20
- const HiveIntegration = {
21
- isHiveIntegration: {
22
- type: Boolean,
23
- required: false,
24
- default: false,
25
- },
26
- clientId: {
27
- type: String,
28
- required: false,
29
- default: null,
30
- },
31
- clientSecret: {
32
- type: String,
33
- required: false,
34
- default: null,
35
- },
36
- accessToken: {
37
- type: String,
38
- required: false,
39
- default: null,
40
- },
41
- refreshToken: {
42
- type: String,
43
- required: false,
44
- default: null,
45
- },
46
- tokenExpiresAt: {
47
- type: Number,
48
- required: false,
49
- default: null,
50
- },
51
- };
52
19
  export default {
53
20
  _id: {
54
21
  type: String,
@@ -159,6 +126,5 @@ export default {
159
126
  type:String,
160
127
  required:false,
161
128
  default:TicketShareExpirationEnum.Never
162
- },
163
- hiveIntegration: HiveIntegration,
129
+ }
164
130
  };
@@ -1,2 +0,0 @@
1
- declare const mutation: import("@apollo/client").DocumentNode;
2
- export default mutation;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const client_1 = require("@apollo/client");
4
- const mutation = (0, client_1.gql) `
5
- mutation ConnectHive($code: String!, $codeVerifier: String!, $clientId: String!, $clientSecret: String!) {
6
- connectHive(code: $code, codeVerifier: $codeVerifier, clientId: $clientId, clientSecret: $clientSecret) {
7
- _id
8
- hiveIntegration {
9
- isHiveIntegration
10
- isConnected
11
- }
12
- }
13
- }
14
- `;
15
- exports.default = mutation;
16
- //# sourceMappingURL=connectHive.mutation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectHive.mutation.js","sourceRoot":"","sources":["../../../src/graphql/mutations/connectHive.mutation.ts"],"names":[],"mappings":";;AAAA,2CAAqC;AAErC,MAAM,QAAQ,GAAG,IAAA,YAAG,EAAA;;;;;;;;;;CAUnB,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -1,8 +0,0 @@
1
- export default interface IHiveIntegration {
2
- isHiveIntegration?: boolean;
3
- clientId?: string;
4
- clientSecret?: string;
5
- accessToken?: string;
6
- refreshToken?: string;
7
- tokenExpiresAt?: number;
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IHiveIntegration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IHiveIntegration.js","sourceRoot":"","sources":["../../src/interfaces/IHiveIntegration.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- import { gql } from "@apollo/client";
2
-
3
- const mutation = gql`
4
- mutation ConnectHive($code: String!, $codeVerifier: String!, $clientId: String!, $clientSecret: String!) {
5
- connectHive(code: $code, codeVerifier: $codeVerifier, clientId: $clientId, clientSecret: $clientSecret) {
6
- _id
7
- hiveIntegration {
8
- isHiveIntegration
9
- isConnected
10
- }
11
- }
12
- }
13
- `;
14
-
15
- export default mutation;
@@ -1,8 +0,0 @@
1
- export default interface IHiveIntegration {
2
- isHiveIntegration?: boolean;
3
- clientId?: string;
4
- clientSecret?: string;
5
- accessToken?: string;
6
- refreshToken?: string;
7
- tokenExpiresAt?: number;
8
- }