@sellout/models 0.0.427 → 0.0.428
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/mutations/createTag.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createTag.mutation.js +15 -0
- package/.dist/graphql/mutations/createTag.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteTag.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteTag.mutation.js +10 -0
- package/.dist/graphql/mutations/deleteTag.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateTag.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateTag.mutation.js +15 -0
- package/.dist/graphql/mutations/updateTag.mutation.js.map +1 -0
- package/.dist/graphql/queries/event.query.js +1 -0
- package/.dist/graphql/queries/event.query.js.map +1 -1
- package/.dist/graphql/queries/events.query.js +1 -0
- package/.dist/graphql/queries/events.query.js.map +1 -1
- package/.dist/graphql/queries/eventsListOptimized.query.js +1 -0
- package/.dist/graphql/queries/eventsListOptimized.query.js.map +1 -1
- package/.dist/graphql/queries/tags.query.d.ts +2 -0
- package/.dist/graphql/queries/tags.query.js +15 -0
- package/.dist/graphql/queries/tags.query.js.map +1 -0
- package/.dist/interfaces/IEvent.d.ts +1 -0
- package/.dist/interfaces/ITag.d.ts +6 -0
- package/.dist/interfaces/ITag.js +3 -0
- package/.dist/interfaces/ITag.js.map +1 -0
- package/.dist/schemas/Event.d.ts +5 -0
- package/.dist/schemas/Event.js +5 -0
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Tag.d.ts +20 -0
- package/.dist/schemas/Tag.js +26 -0
- package/.dist/schemas/Tag.js.map +1 -0
- package/.dist/sellout-proto.js +2787 -254
- package/package.json +3 -3
- package/src/graphql/mutations/createTag.mutation.ts +14 -0
- package/src/graphql/mutations/deleteTag.mutation.ts +9 -0
- package/src/graphql/mutations/updateEvent.mutation.ts +1 -0
- package/src/graphql/mutations/updateTag.mutation.ts +14 -0
- package/src/graphql/queries/event.query.ts +1 -0
- package/src/graphql/queries/events.query.ts +1 -0
- package/src/graphql/queries/eventsListOptimized.query.ts +1 -0
- package/src/graphql/queries/tags.query.ts +14 -0
- package/src/interfaces/IEvent.ts +1 -0
- package/src/interfaces/ITag.ts +6 -0
- package/src/proto/event.proto +58 -0
- package/src/schemas/Event.ts +5 -0
- package/src/schemas/Tag.ts +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.428",
|
|
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.
|
|
21
|
+
"@sellout/utils": "^0.0.428",
|
|
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": "
|
|
36
|
+
"gitHead": "87d220762b3a60a47737eb967c321a2cb5e50913"
|
|
37
37
|
}
|
package/src/interfaces/IEvent.ts
CHANGED
package/src/proto/event.proto
CHANGED
|
@@ -54,6 +54,7 @@ message Event {
|
|
|
54
54
|
string googleWalletClassId = 46;
|
|
55
55
|
bool isEventTegIntegration = 47;
|
|
56
56
|
repeated string additionalPhotos = 48;
|
|
57
|
+
repeated string tagIds = 49;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
message PublicEvent {
|
|
@@ -89,6 +90,7 @@ message PublicEvent {
|
|
|
89
90
|
repeated EventTaskTypes ticketTypes = 30;
|
|
90
91
|
bool isMultipleDays = 31;
|
|
91
92
|
repeated Performance performances = 32;
|
|
93
|
+
repeated Tag tags = 33;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
message EventTaskTypes{
|
|
@@ -762,6 +764,56 @@ message PosterImageUrl {
|
|
|
762
764
|
string small = 2;
|
|
763
765
|
}
|
|
764
766
|
|
|
767
|
+
message Tag {
|
|
768
|
+
string _id = 1;
|
|
769
|
+
string name = 2;
|
|
770
|
+
int32 createdAt = 3;
|
|
771
|
+
int32 updatedAt = 4;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
message CreateTagRequest {
|
|
775
|
+
string spanContext = 0;
|
|
776
|
+
Tag tag = 1;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
message CreateTagResponse {
|
|
780
|
+
StatusCode status = 0;
|
|
781
|
+
repeated Error errors = 1;
|
|
782
|
+
Tag tag = 2;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
message UpdateTagRequest {
|
|
786
|
+
string spanContext = 0;
|
|
787
|
+
Tag tag = 1;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
message UpdateTagResponse {
|
|
791
|
+
StatusCode status = 0;
|
|
792
|
+
repeated Error errors = 1;
|
|
793
|
+
Tag tag = 2;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
message DeleteTagRequest {
|
|
797
|
+
string spanContext = 0;
|
|
798
|
+
string tagId = 1;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
message DeleteTagResponse {
|
|
802
|
+
StatusCode status = 0;
|
|
803
|
+
repeated Error errors = 1;
|
|
804
|
+
bool success = 2;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
message ListTagsRequest {
|
|
808
|
+
string spanContext = 0;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
message ListTagsResponse {
|
|
812
|
+
StatusCode status = 0;
|
|
813
|
+
repeated Error errors = 1;
|
|
814
|
+
repeated Tag tags = 2;
|
|
815
|
+
}
|
|
816
|
+
|
|
765
817
|
message CheckStubUniquenessRequest {
|
|
766
818
|
string spanContext = 1;
|
|
767
819
|
string stub = 2;
|
|
@@ -940,4 +992,10 @@ service EventService {
|
|
|
940
992
|
rpc incrementEventTicketScanned(IncrementEventTicketScannedRequest) returns (IncrementEventTicketScannedResponse) {}
|
|
941
993
|
// Change Event Date
|
|
942
994
|
rpc changeEventDate(ChangeEventDateRequest) returns (ChangeEventDateResponse) {}
|
|
995
|
+
|
|
996
|
+
// Tags
|
|
997
|
+
rpc createTag(CreateTagRequest) returns (CreateTagResponse) {}
|
|
998
|
+
rpc updateTag(UpdateTagRequest) returns (UpdateTagResponse) {}
|
|
999
|
+
rpc deleteTag(DeleteTagRequest) returns (DeleteTagResponse) {}
|
|
1000
|
+
rpc listTags(ListTagsRequest) returns (ListTagsResponse) {}
|
|
943
1001
|
}
|
package/src/schemas/Event.ts
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import shortid from 'shortid';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
_id: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: shortid.generate,
|
|
7
|
+
},
|
|
8
|
+
name: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
trim: true,
|
|
12
|
+
},
|
|
13
|
+
createdAt: {
|
|
14
|
+
type: Number,
|
|
15
|
+
required: false,
|
|
16
|
+
},
|
|
17
|
+
updatedAt: {
|
|
18
|
+
type: Number,
|
|
19
|
+
required: false,
|
|
20
|
+
},
|
|
21
|
+
};
|