@sellout/models 0.0.25 → 0.0.26

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.25",
3
+ "version": "0.0.26",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,8 +16,8 @@
16
16
  "author": "samheutmaker@gmail.com",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@sellout/service": "^0.0.25",
20
- "@sellout/utils": "^0.0.25",
19
+ "@sellout/service": "^0.0.26",
20
+ "@sellout/utils": "^0.0.26",
21
21
  "@types/shortid": "0.0.29",
22
22
  "graphql": "^14.6.0",
23
23
  "graphql-tag": "^2.10.3",
@@ -29,5 +29,5 @@
29
29
  "protobufjs": "~6.8.8",
30
30
  "typescript": "^3.8.3"
31
31
  },
32
- "gitHead": "4df96dd094d14219fa50fb42fc9b90e246e8c920"
32
+ "gitHead": "e7924e8e47076704d36e4ca314c9c21938a905e0"
33
33
  }
@@ -0,0 +1,39 @@
1
+ import gql from "graphql-tag";
2
+
3
+ const query = gql`
4
+ query artist($artistId: String) {
5
+ artist(artistId: $artistId) {
6
+ _id
7
+ name
8
+ genres
9
+ socialAccounts {
10
+ _id
11
+ platform
12
+ link
13
+ }
14
+ pressKits {
15
+ _id
16
+ title
17
+ description
18
+ posterImageUrls
19
+ links {
20
+ platform
21
+ link
22
+ }
23
+ }
24
+ contacts {
25
+ _id
26
+ firstName
27
+ lastName
28
+ title
29
+ company
30
+ email
31
+ phoneNumber
32
+ }
33
+ artistGlobalId
34
+ orgId
35
+ }
36
+ }
37
+ `;
38
+
39
+ export default query;
@@ -0,0 +1,47 @@
1
+ import gql from "graphql-tag";
2
+
3
+ const query = gql`
4
+ query artists($query: ArtistQueryInput, $pagination: PaginationInput) {
5
+ artists(query: $query, pagination: $pagination) {
6
+ _id
7
+ name
8
+ genres
9
+ socialAccounts {
10
+ _id
11
+ platform
12
+ link
13
+ }
14
+ pressKits {
15
+ _id
16
+ title
17
+ description
18
+ posterImageUrls
19
+ links {
20
+ platform
21
+ link
22
+ }
23
+ }
24
+ metrics {
25
+ lifeTimeTicketsPurchased
26
+ lifeTimeTicketsRefunded
27
+ lifeTimeUpgradesPurchased
28
+ lifeTimeUpgradesRefunded
29
+ lifeTimeValue
30
+ lifeTimeValueRefunded
31
+ }
32
+ contacts {
33
+ _id
34
+ firstName
35
+ lastName
36
+ title
37
+ company
38
+ email
39
+ phoneNumber
40
+ }
41
+ artistGlobalId
42
+ orgId
43
+ }
44
+ }
45
+ `;
46
+
47
+ export default query;
@@ -12,6 +12,7 @@ export default interface IUser {
12
12
  firstName: string;
13
13
  lastName: string;
14
14
  createdAt?: number;
15
+ phoneVerifyCode?: string;
15
16
  phoneNumber?: string;
16
17
  phoneNumberVerifiedAt?: number;
17
18
  emailVerifyCode?: string;
@@ -23,4 +24,6 @@ export default interface IUser {
23
24
  phoneNumberWaitingForVerify?: string;
24
25
  emailWaitingForVerify?: string;
25
26
  preferredLogin?: LoginTypes;
27
+ authAttempts?: number;
28
+ authTimeOut?: number;
26
29
  }
@@ -21,6 +21,9 @@ message User {
21
21
  string phoneNumberWaitingForVerify = 16;
22
22
  string emailWaitingForVerify = 17;
23
23
  string preferredLogin = 18;
24
+ string phoneVerifyCode = 19;
25
+ int32 authTimeOut = 20;
26
+ int32 authAttempts = 21;
24
27
  }
25
28
 
26
29
  // Create User
@@ -27,6 +27,21 @@ export default {
27
27
  type: Number,
28
28
  required: true,
29
29
  },
30
+ phoneVerifyCode: {
31
+ type: String,
32
+ required: false,
33
+ default: null,
34
+ },
35
+ authAttempts: {
36
+ type: Number,
37
+ required: false,
38
+ default: null,
39
+ },
40
+ authTimeOut: {
41
+ type: Number,
42
+ required: false,
43
+ default: null,
44
+ },
30
45
  phoneNumber: {
31
46
  type: String,
32
47
  required: false,
@@ -1,43 +0,0 @@
1
- syntax = "proto3";
2
-
3
- import "error.proto";
4
-
5
- message RegisterTwilioUserRequest {
6
- string spanContext = 0;
7
- string email = 1;
8
- string phoneNumber = 2;
9
- }
10
-
11
- message RegisterTwilioUserResponse {
12
- StatusCode status = 0;
13
- repeated Error errors = 1;
14
- string authyId = 2;
15
- }
16
-
17
- message SendTwilioVerificationRequest {
18
- string spanContext = 0;
19
- string phoneNumber = 1;
20
- }
21
-
22
- message SendTwilioVerificationResponse {
23
- StatusCode status = 0;
24
- repeated Error errors = 1;
25
- }
26
-
27
- message VerifyTwilioTokenRequest {
28
- string spanContext = 0;
29
- string phoneNumber = 1;
30
- string token = 2;
31
- }
32
-
33
- message VerifyTwilioTokenResponse {
34
- StatusCode status = 0;
35
- repeated Error errors = 1;
36
- bool phoneVerified = 2;
37
- }
38
-
39
- service TwilioService {
40
- rpc registerTwilioUser(RegisterTwilioUserRequest) returns (RegisterTwilioUserResponse) {}
41
- rpc sendTwilioVerification(SendTwilioVerificationRequest) returns (SendTwilioVerificationResponse) {}
42
- rpc verifyTwilioToken(VerifyTwilioTokenRequest) returns (VerifyTwilioTokenResponse) {}
43
- }