@sellout/models 0.0.176 → 0.0.177
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/createEventOrSeasonFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js +31 -0
- package/.dist/graphql/mutations/createEventOrSeasonFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js +13 -0
- package/.dist/graphql/mutations/deleteEventOrSeasonFee.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js +31 -0
- package/.dist/graphql/mutations/updateEventOrSeasonFee.mutation.js.map +1 -0
- package/.dist/graphql/queries/eventFees.query.d.ts +2 -0
- package/.dist/graphql/queries/eventFees.query.js +30 -0
- package/.dist/graphql/queries/eventFees.query.js.map +1 -0
- package/.dist/graphql/queries/season.query.js +1 -0
- package/.dist/graphql/queries/season.query.js.map +1 -1
- package/.dist/graphql/queries/seasonFees.query.d.ts +2 -0
- package/.dist/graphql/queries/seasonFees.query.js +31 -0
- package/.dist/graphql/queries/seasonFees.query.js.map +1 -0
- package/.dist/graphql/queries/seasons.query.js +1 -0
- package/.dist/graphql/queries/seasons.query.js.map +1 -1
- package/.dist/sellout-proto.js +1157 -155
- package/package.json +3 -3
- package/src/graphql/mutations/createEventOrSeasonFee.mutation.ts +27 -0
- package/src/graphql/mutations/deleteEventOrSeasonFee.mutation.ts +9 -0
- package/src/graphql/mutations/updateEventOrSeasonFee.mutation.ts +27 -0
- package/src/graphql/queries/eventFees.query.ts +26 -0
- package/src/graphql/queries/season.query.ts +1 -0
- package/src/graphql/queries/seasonFees.query.ts +27 -0
- package/src/graphql/queries/seasons.query.ts +1 -0
- package/src/proto/fee.proto +21 -0
- package/src/proto/order.proto +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.177",
|
|
4
4
|
"description": "Sellout.io models",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@hapi/joi": "^16.1.7",
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
20
|
+
"@sellout/utils": "^0.0.177",
|
|
21
21
|
"@types/hapi__joi": "^16.0.1",
|
|
22
22
|
"@types/shortid": "^0.0.29",
|
|
23
23
|
"apollo-link-debounce": "^2.1.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"protobufjs": "^6.11.2",
|
|
32
32
|
"typescript": "^4.4.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b8de2e61aacd2988447bf3f7ae85c3ece2ea2d5a"
|
|
35
35
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation createEventOrSeasonFee($eventId: String,$seasonId: String, $fee: FeeInput!) {
|
|
5
|
+
createEventOrSeasonFee(eventId: $eventId,seasonId: $seasonId, fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
eventId
|
|
9
|
+
seasonId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
__typename
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export default mutation;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation deleteEventOrSeasonFee($eventId: String, $seasonId: String, $feeId: String!, $orgId: String) {
|
|
5
|
+
deleteEventOrSeasonFee(eventId: $eventId, seasonId: $seasonId, feeId: $feeId, orgId:$orgId)
|
|
6
|
+
}
|
|
7
|
+
`;
|
|
8
|
+
|
|
9
|
+
export default mutation;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import gql from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
const mutation = gql`
|
|
4
|
+
mutation updateEventOrSeasonFee($eventId: String,$seasonId: String, $fee: FeeInput!) {
|
|
5
|
+
updateEventOrSeasonFee(eventId: $eventId,seasonId: $seasonId, fee: $fee) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
seasonId
|
|
11
|
+
type
|
|
12
|
+
value
|
|
13
|
+
appliedTo
|
|
14
|
+
appliedBy
|
|
15
|
+
minAppliedToPrice
|
|
16
|
+
maxAppliedToPrice
|
|
17
|
+
filters
|
|
18
|
+
createdBy
|
|
19
|
+
createdAt
|
|
20
|
+
updatedBy
|
|
21
|
+
updatedAt
|
|
22
|
+
disabled
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export default mutation;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query eventFees($eventId: String!) {
|
|
5
|
+
eventFees(eventId: $eventId) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
eventId
|
|
10
|
+
type
|
|
11
|
+
value
|
|
12
|
+
appliedTo
|
|
13
|
+
appliedBy
|
|
14
|
+
minAppliedToPrice
|
|
15
|
+
maxAppliedToPrice
|
|
16
|
+
filters
|
|
17
|
+
createdBy
|
|
18
|
+
createdAt
|
|
19
|
+
updatedBy
|
|
20
|
+
updatedAt
|
|
21
|
+
disabled
|
|
22
|
+
__typename
|
|
23
|
+
}
|
|
24
|
+
}`;
|
|
25
|
+
|
|
26
|
+
export default query;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
|
|
3
|
+
const query = gql`
|
|
4
|
+
query seasonFees($seasonId: String!) {
|
|
5
|
+
seasonFees(seasonId: $seasonId) {
|
|
6
|
+
_id
|
|
7
|
+
name
|
|
8
|
+
orgId
|
|
9
|
+
seasonId
|
|
10
|
+
eventId
|
|
11
|
+
type
|
|
12
|
+
value
|
|
13
|
+
appliedTo
|
|
14
|
+
appliedBy
|
|
15
|
+
minAppliedToPrice
|
|
16
|
+
maxAppliedToPrice
|
|
17
|
+
filters
|
|
18
|
+
createdBy
|
|
19
|
+
createdAt
|
|
20
|
+
updatedBy
|
|
21
|
+
updatedAt
|
|
22
|
+
disabled
|
|
23
|
+
__typename
|
|
24
|
+
}
|
|
25
|
+
}`;
|
|
26
|
+
|
|
27
|
+
export default query;
|
package/src/proto/fee.proto
CHANGED
|
@@ -31,6 +31,8 @@ message CreateFeeRequest {
|
|
|
31
31
|
string orgId = 1;
|
|
32
32
|
string requestorId = 2;
|
|
33
33
|
Fee fee = 3;
|
|
34
|
+
string eventId = 4;
|
|
35
|
+
string seasonId = 5;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
message CreateFeeResponse {
|
|
@@ -48,6 +50,8 @@ message UpdateFeeRequest {
|
|
|
48
50
|
string orgId = 1;
|
|
49
51
|
string requestorId = 2;
|
|
50
52
|
Fee fee = 3;
|
|
53
|
+
string eventId = 4;
|
|
54
|
+
string seasonId = 5;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
message UpdateFeeResponse {
|
|
@@ -179,6 +183,20 @@ message DeleteOrganizationFeeResponse {
|
|
|
179
183
|
repeated Error errors = 1;
|
|
180
184
|
}
|
|
181
185
|
|
|
186
|
+
message DeleteEventOrSeasonFeeRequest {
|
|
187
|
+
string spanContext = 0;
|
|
188
|
+
string eventId = 1;
|
|
189
|
+
string seasonId = 2;
|
|
190
|
+
string feeId = 3;
|
|
191
|
+
string orgId = 4;
|
|
192
|
+
string requestorId = 5;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message DeleteEventOrSeasonFeeResponse {
|
|
196
|
+
StatusCode status = 0;
|
|
197
|
+
repeated Error errors = 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
182
200
|
message DeletePlatformFeeRequest {
|
|
183
201
|
string spanContext = 0;
|
|
184
202
|
string feeId = 1;
|
|
@@ -208,11 +226,13 @@ service FeeService {
|
|
|
208
226
|
// Create
|
|
209
227
|
rpc createFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
210
228
|
rpc createOrganizationFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
229
|
+
rpc createEventOrSeasonFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
211
230
|
rpc createPlatformFee(CreateFeeRequest) returns (CreateFeeResponse) {}
|
|
212
231
|
// Update
|
|
213
232
|
rpc updateFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
214
233
|
rpc updateFeeByEvent(updateFeeByEventRequest) returns (updateFeeByEventResponse) {}
|
|
215
234
|
rpc updateOrganizationFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
235
|
+
rpc updateEventOrSeasonFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
216
236
|
rpc updatePlatformFee(UpdateFeeRequest) returns (UpdateFeeResponse) {}
|
|
217
237
|
// List
|
|
218
238
|
rpc listFeesById(ListFeesByIdRequest) returns (ListFeesByIdResponse) {}
|
|
@@ -225,6 +245,7 @@ service FeeService {
|
|
|
225
245
|
// Delete
|
|
226
246
|
rpc disableFee(DisableFeeRequest) returns (DisableFeeResponse) {}
|
|
227
247
|
rpc deleteOrganizationFee(DeleteOrganizationFeeRequest) returns (DeleteOrganizationFeeResponse) {}
|
|
248
|
+
rpc deleteEventOrSeasonFee(DeleteEventOrSeasonFeeRequest) returns (DeleteEventOrSeasonFeeResponse) {}
|
|
228
249
|
rpc deletePlatformFee(DeletePlatformFeeRequest) returns (DeletePlatformFeeResponse) {}
|
|
229
250
|
// Apply Platform Fees
|
|
230
251
|
rpc applyPlatformFeesToAllOrganizations(ApplyPlatformFeesToAllOrganizationsRequest) returns (ApplyPlatformFeesToAllOrganizationsResponse) {}
|
package/src/proto/order.proto
CHANGED
|
@@ -418,6 +418,11 @@ message FindOrderByIdRequest {
|
|
|
418
418
|
string orderId = 1;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
+
message FindOrderByFeeIdRequest {
|
|
422
|
+
string spanContext = 0;
|
|
423
|
+
string feeId = 1;
|
|
424
|
+
}
|
|
425
|
+
|
|
421
426
|
message FindOrderByIdResponse {
|
|
422
427
|
StatusCode status = 0;
|
|
423
428
|
repeated Error errors = 1;
|
|
@@ -574,6 +579,7 @@ service OrderService {
|
|
|
574
579
|
// Find
|
|
575
580
|
rpc queryOrders(QueryOrdersRequest) returns (QueryOrdersResponse) {}
|
|
576
581
|
rpc findOrderById(FindOrderByIdRequest) returns (FindOrderByIdResponse) {}
|
|
582
|
+
rpc findOrderByFeeId(FindOrderByFeeIdRequest) returns (FindOrderByIdResponse) {}
|
|
577
583
|
rpc findOrderByEmail(FindOrderByEmailRequest) returns (FindOrderByEmailResponse) {}
|
|
578
584
|
rpc queryOrderAnalytics(QueryOrderAnalyticsRequest) returns (QueryOrderAnalyticsResponse) {}
|
|
579
585
|
rpc ordersChargeUpdate(OrdersChargeUpdateRequest) returns (OrdersChargeUpdateResponse) {}
|