@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/.dist/graphql/queries/artist.query.d.ts +2 -0
- package/.dist/graphql/queries/artist.query.js +43 -0
- package/.dist/graphql/queries/artist.query.js.map +1 -0
- package/.dist/graphql/queries/artists.query.d.ts +2 -0
- package/.dist/graphql/queries/artists.query.js +51 -0
- package/.dist/graphql/queries/artists.query.js.map +1 -0
- package/.dist/interfaces/IUser.d.ts +3 -0
- package/.dist/schemas/User.d.ts +15 -0
- package/.dist/schemas/User.js +15 -0
- package/.dist/schemas/User.js.map +1 -1
- package/.dist/sellout-proto.js +66 -1676
- package/package.json +4 -4
- package/src/graphql/queries/artist.query.ts +39 -0
- package/src/graphql/queries/artists.query.ts +47 -0
- package/src/interfaces/IUser.ts +3 -0
- package/src/proto/user.proto +3 -0
- package/src/schemas/User.ts +15 -0
- package/src/proto/twilio.proto +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
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": "
|
|
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;
|
package/src/interfaces/IUser.ts
CHANGED
|
@@ -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
|
}
|
package/src/proto/user.proto
CHANGED
package/src/schemas/User.ts
CHANGED
|
@@ -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,
|
package/src/proto/twilio.proto
DELETED
|
@@ -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
|
-
}
|