@sellout/models 0.0.151 → 0.0.153
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/fragments/season.fragment.d.ts +23 -0
- package/.dist/graphql/fragments/season.fragment.js +315 -0
- package/.dist/graphql/fragments/season.fragment.js.map +1 -0
- package/.dist/graphql/mutations/createEvent.mutation.js +1 -0
- package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createFee.mutation.js +1 -0
- package/.dist/graphql/mutations/createFee.mutation.js.map +1 -1
- package/.dist/graphql/mutations/createSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeason.mutation.js +72 -0
- package/.dist/graphql/mutations/createSeason.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js +65 -0
- package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +1 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +18 -0
- package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +1 -0
- package/.dist/graphql/mutations/publishEvent.mutation.js +6 -5
- package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/publishSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/publishSeason.mutation.js +72 -0
- package/.dist/graphql/mutations/publishSeason.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateEvent.mutation.js +2 -1
- package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateOrganization.mutation.js +1 -0
- package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
- package/.dist/graphql/mutations/updateSeason.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/updateSeason.mutation.js +71 -0
- package/.dist/graphql/mutations/updateSeason.mutation.js.map +1 -0
- package/.dist/graphql/queries/event.query.js +2 -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/order.query.js +14 -11
- package/.dist/graphql/queries/order.query.js.map +1 -1
- package/.dist/graphql/queries/orders.query.js +4 -2
- package/.dist/graphql/queries/orders.query.js.map +1 -1
- package/.dist/graphql/queries/profile.query.js +1 -0
- package/.dist/graphql/queries/profile.query.js.map +1 -1
- package/.dist/graphql/queries/promoCodeVerify.query.js +27 -23
- package/.dist/graphql/queries/promoCodeVerify.query.js.map +1 -1
- package/.dist/graphql/queries/publicEvent.query.js +1 -0
- package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
- package/.dist/graphql/queries/publicSeason.query.d.ts +2 -0
- package/.dist/graphql/queries/publicSeason.query.js +76 -0
- package/.dist/graphql/queries/publicSeason.query.js.map +1 -0
- package/.dist/graphql/queries/season.query.d.ts +2 -0
- package/.dist/graphql/queries/season.query.js +73 -0
- package/.dist/graphql/queries/season.query.js.map +1 -0
- package/.dist/graphql/queries/seasons.query.d.ts +2 -0
- package/.dist/graphql/queries/seasons.query.js +72 -0
- package/.dist/graphql/queries/seasons.query.js.map +1 -0
- package/.dist/interfaces/IAnalytics.d.ts +1 -0
- package/.dist/interfaces/IAnalytics.js.map +1 -1
- package/.dist/interfaces/ICreateOrderParams.d.ts +4 -1
- package/.dist/interfaces/IEvent.d.ts +1 -0
- package/.dist/interfaces/IFee.d.ts +1 -0
- package/.dist/interfaces/IOrder.d.ts +8 -1
- package/.dist/interfaces/IOrder.js.map +1 -1
- package/.dist/interfaces/IOrderQuery.d.ts +2 -0
- package/.dist/interfaces/IOrderType.d.ts +2 -1
- package/.dist/interfaces/IOrderType.js +1 -0
- package/.dist/interfaces/IOrderType.js.map +1 -1
- package/.dist/interfaces/IOrganization.d.ts +1 -0
- package/.dist/interfaces/ISeason.d.ts +76 -0
- package/.dist/interfaces/ISeason.js +34 -0
- package/.dist/interfaces/ISeason.js.map +1 -0
- package/.dist/interfaces/ISeasonCustomField.d.ts +13 -0
- package/.dist/interfaces/ISeasonCustomField.js +3 -0
- package/.dist/interfaces/ISeasonCustomField.js.map +1 -0
- package/.dist/interfaces/ISeasonQuery.d.ts +23 -0
- package/.dist/interfaces/ISeasonQuery.js +15 -0
- package/.dist/interfaces/ISeasonQuery.js.map +1 -0
- package/.dist/interfaces/ISeasonUpgrade.d.ts +16 -0
- package/.dist/interfaces/ISeasonUpgrade.js +3 -0
- package/.dist/interfaces/ISeasonUpgrade.js.map +1 -0
- package/.dist/schemas/Event.d.ts +4 -0
- package/.dist/schemas/Event.js +4 -0
- package/.dist/schemas/Event.js.map +1 -1
- package/.dist/schemas/Fee.d.ts +5 -0
- package/.dist/schemas/Fee.js +4 -0
- package/.dist/schemas/Fee.js.map +1 -1
- package/.dist/schemas/Order.d.ts +8 -0
- package/.dist/schemas/Order.js +8 -1
- package/.dist/schemas/Order.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +5 -0
- package/.dist/schemas/Organization.js +5 -0
- package/.dist/schemas/Organization.js.map +1 -1
- package/.dist/schemas/Season.d.ts +679 -0
- package/.dist/schemas/Season.js +502 -0
- package/.dist/schemas/Season.js.map +1 -0
- package/.dist/sellout-proto.js +36625 -26718
- package/.dist/utils/EventUtil.js +36 -19
- package/.dist/utils/EventUtil.js.map +1 -1
- package/.dist/utils/FeeUtil.d.ts +1 -1
- package/.dist/utils/FeeUtil.js +19 -11
- package/.dist/utils/FeeUtil.js.map +1 -1
- package/.dist/utils/SeasonUtil.d.ts +66 -0
- package/.dist/utils/SeasonUtil.js +340 -0
- package/.dist/utils/SeasonUtil.js.map +1 -0
- package/package.json +3 -3
- package/src/graphql/fragments/season.fragment.ts +336 -0
- package/src/graphql/mutations/createEvent.mutation.ts +1 -0
- package/src/graphql/mutations/createFee.mutation.ts +2 -1
- package/src/graphql/mutations/createSeason.mutation.ts +68 -0
- package/src/graphql/mutations/createSeasonOrder.mutation.ts +61 -0
- package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +14 -0
- package/src/graphql/mutations/publishEvent.mutation.ts +6 -5
- package/src/graphql/mutations/publishSeason.mutation.ts +68 -0
- package/src/graphql/mutations/updateEvent.mutation.ts +4 -3
- package/src/graphql/mutations/updateOrganization.mutation.ts +3 -2
- package/src/graphql/mutations/updateSeason.mutation.ts +67 -0
- package/src/graphql/queries/event.query.ts +2 -0
- package/src/graphql/queries/events.query.ts +1 -0
- package/src/graphql/queries/order.query.ts +15 -12
- package/src/graphql/queries/orders.query.ts +5 -3
- package/src/graphql/queries/profile.query.ts +1 -0
- package/src/graphql/queries/promoCodeVerify.query.ts +27 -23
- package/src/graphql/queries/publicEvent.query.ts +1 -0
- package/src/graphql/queries/publicSeason.query.ts +72 -0
- package/src/graphql/queries/season.query.ts +69 -0
- package/src/graphql/queries/seasons.query.ts +68 -0
- package/src/interfaces/IAnalytics.ts +1 -0
- package/src/interfaces/ICreateOrderParams.ts +10 -7
- package/src/interfaces/IEvent.ts +1 -0
- package/src/interfaces/IFee.ts +12 -11
- package/src/interfaces/IOrder.ts +11 -2
- package/src/interfaces/IOrderQuery.ts +2 -0
- package/src/interfaces/IOrderType.ts +1 -0
- package/src/interfaces/IOrganization.ts +1 -0
- package/src/interfaces/ISeason.ts +87 -0
- package/src/interfaces/ISeasonCustomField.ts +14 -0
- package/src/interfaces/ISeasonQuery.ts +25 -0
- package/src/interfaces/ISeasonUpgrade.ts +16 -0
- package/src/proto/broadcast.proto +29 -0
- package/src/proto/email.proto +39 -0
- package/src/proto/event.proto +4 -0
- package/src/proto/fee.proto +2 -0
- package/src/proto/order.proto +60 -0
- package/src/proto/organization.proto +1 -0
- package/src/proto/season.proto +172 -0
- package/src/proto/seating.proto +16 -0
- package/src/proto/user.proto +1 -0
- package/src/schemas/Event.ts +4 -0
- package/src/schemas/Fee.ts +4 -0
- package/src/schemas/Order.ts +8 -1
- package/src/schemas/Organization.ts +5 -0
- package/src/schemas/Season.ts +507 -0
- package/src/utils/EventUtil.ts +51 -31
- package/src/utils/FeeUtil.ts +25 -17
- package/src/utils/SeasonUtil.ts +353 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
|
-
import Order from
|
|
2
|
+
import Order from "../fragments/order.fragment";
|
|
3
3
|
|
|
4
4
|
const query = gql`
|
|
5
5
|
query order($orderId: String) {
|
|
@@ -17,10 +17,13 @@ const query = gql`
|
|
|
17
17
|
}
|
|
18
18
|
orgId
|
|
19
19
|
eventId
|
|
20
|
+
seasonId
|
|
21
|
+
hidden
|
|
20
22
|
event {
|
|
21
23
|
_id
|
|
22
24
|
name
|
|
23
25
|
subtitle
|
|
26
|
+
seasonId
|
|
24
27
|
isMultipleDays
|
|
25
28
|
posterImageUrl
|
|
26
29
|
sendQRCode
|
|
@@ -31,8 +34,8 @@ const query = gql`
|
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
schedule {
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
startsAt
|
|
38
|
+
endsAt
|
|
36
39
|
}
|
|
37
40
|
venueId
|
|
38
41
|
venue {
|
|
@@ -42,20 +45,20 @@ const query = gql`
|
|
|
42
45
|
state
|
|
43
46
|
city
|
|
44
47
|
timezone
|
|
45
|
-
|
|
48
|
+
}
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
processingFee {
|
|
49
52
|
refund {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
refunded
|
|
54
|
+
refundedAt
|
|
55
|
+
refundedBy
|
|
56
|
+
refundReason
|
|
57
|
+
refundedAmount
|
|
58
|
+
__typename
|
|
59
|
+
}
|
|
57
60
|
amount
|
|
58
|
-
|
|
61
|
+
}
|
|
59
62
|
feeIds
|
|
60
63
|
fees {
|
|
61
64
|
_id
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
|
-
import Order from
|
|
2
|
+
import Order from "../fragments/order.fragment";
|
|
3
3
|
|
|
4
4
|
const query = gql`
|
|
5
5
|
query orders($query: OrderQueryInput, $pagination: PaginationInput) {
|
|
@@ -14,11 +14,14 @@ const query = gql`
|
|
|
14
14
|
}
|
|
15
15
|
orgId
|
|
16
16
|
eventId
|
|
17
|
+
seasonId
|
|
17
18
|
venueIds
|
|
18
|
-
eventName
|
|
19
|
+
eventName
|
|
20
|
+
hidden
|
|
19
21
|
event {
|
|
20
22
|
_id
|
|
21
23
|
name
|
|
24
|
+
seasonId
|
|
22
25
|
subtitle
|
|
23
26
|
posterImageUrl
|
|
24
27
|
isMultipleDays
|
|
@@ -91,7 +94,6 @@ const query = gql`
|
|
|
91
94
|
}
|
|
92
95
|
...OrderTickets
|
|
93
96
|
...OrderUpgrades
|
|
94
|
-
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
${Order.fragments.tickets}
|
|
@@ -1,36 +1,40 @@
|
|
|
1
1
|
import gql from "graphql-tag";
|
|
2
2
|
|
|
3
3
|
const query = gql`
|
|
4
|
-
query eventTickets($eventId: String
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
remainingQty
|
|
13
|
-
performanceIds
|
|
14
|
-
tiers {
|
|
4
|
+
query eventTickets($eventId: String, $seasonId: String, $promoCode: String!) {
|
|
5
|
+
eventTickets(
|
|
6
|
+
eventId: $eventId
|
|
7
|
+
seasonId: $seasonId
|
|
8
|
+
promoCode: $promoCode
|
|
9
|
+
) {
|
|
10
|
+
promoType
|
|
11
|
+
eventTickets {
|
|
15
12
|
_id
|
|
16
13
|
name
|
|
17
|
-
|
|
18
|
-
startsAt
|
|
19
|
-
endsAt
|
|
14
|
+
description
|
|
20
15
|
totalQty
|
|
21
16
|
remainingQty
|
|
17
|
+
performanceIds
|
|
18
|
+
tiers {
|
|
19
|
+
_id
|
|
20
|
+
name
|
|
21
|
+
price
|
|
22
|
+
startsAt
|
|
23
|
+
endsAt
|
|
24
|
+
totalQty
|
|
25
|
+
remainingQty
|
|
26
|
+
}
|
|
27
|
+
purchaseLimit
|
|
28
|
+
visible
|
|
29
|
+
values
|
|
30
|
+
dayIds
|
|
22
31
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
active
|
|
33
|
+
startsAt
|
|
34
|
+
endsAt
|
|
35
|
+
remainingQty
|
|
27
36
|
}
|
|
28
|
-
active
|
|
29
|
-
startsAt
|
|
30
|
-
endsAt
|
|
31
|
-
remainingQty
|
|
32
37
|
}
|
|
33
|
-
}
|
|
34
38
|
`;
|
|
35
39
|
|
|
36
40
|
export default query;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
import Season from "../fragments/season.fragment";
|
|
3
|
+
|
|
4
|
+
const query = gql`
|
|
5
|
+
query season($seasonId: String!) {
|
|
6
|
+
season(seasonId: $seasonId) {
|
|
7
|
+
_id
|
|
8
|
+
orgId
|
|
9
|
+
name
|
|
10
|
+
subtitle
|
|
11
|
+
description
|
|
12
|
+
userAgreement
|
|
13
|
+
processAs
|
|
14
|
+
posterImageUrl
|
|
15
|
+
venueId
|
|
16
|
+
createdAt
|
|
17
|
+
publishable
|
|
18
|
+
seatingChartKey
|
|
19
|
+
seatingPublicKey
|
|
20
|
+
age
|
|
21
|
+
sendQRCode
|
|
22
|
+
hasOrders
|
|
23
|
+
taxDeduction
|
|
24
|
+
organization {
|
|
25
|
+
orgName
|
|
26
|
+
stripeId
|
|
27
|
+
}
|
|
28
|
+
venue {
|
|
29
|
+
_id
|
|
30
|
+
name
|
|
31
|
+
address {
|
|
32
|
+
state
|
|
33
|
+
city
|
|
34
|
+
}
|
|
35
|
+
imageUrls
|
|
36
|
+
}
|
|
37
|
+
published
|
|
38
|
+
salesBeginImmediately
|
|
39
|
+
...SeasonSchedule
|
|
40
|
+
...Location
|
|
41
|
+
...Performances
|
|
42
|
+
...TicketTypes
|
|
43
|
+
...TicketHolds
|
|
44
|
+
...SeasonUpgrades
|
|
45
|
+
...SeasonPromotions
|
|
46
|
+
...SeasonCustomFields
|
|
47
|
+
...TicketExchange
|
|
48
|
+
...Fees
|
|
49
|
+
...Artists
|
|
50
|
+
...WebFlowEntity
|
|
51
|
+
...Analytics
|
|
52
|
+
...SeasonEvents
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${Season.fragments.schedule}
|
|
57
|
+
${Season.fragments.location}
|
|
58
|
+
${Season.fragments.performances}
|
|
59
|
+
${Season.fragments.ticketTypes}
|
|
60
|
+
${Season.fragments.holds}
|
|
61
|
+
${Season.fragments.upgrades}
|
|
62
|
+
${Season.fragments.promotions}
|
|
63
|
+
${Season.fragments.customFields}
|
|
64
|
+
${Season.fragments.exchange}
|
|
65
|
+
${Season.fragments.fees}
|
|
66
|
+
${Season.fragments.artists}
|
|
67
|
+
${Season.fragments.webFlowEntity}
|
|
68
|
+
${Season.fragments.analytics}
|
|
69
|
+
${Season.fragments.Events}
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
export default query;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
import Season from "../fragments/season.fragment";
|
|
3
|
+
|
|
4
|
+
const query = gql`
|
|
5
|
+
query season($seasonId: String!) {
|
|
6
|
+
season(seasonId: $seasonId) {
|
|
7
|
+
_id
|
|
8
|
+
orgId
|
|
9
|
+
name
|
|
10
|
+
subtitle
|
|
11
|
+
description
|
|
12
|
+
userAgreement
|
|
13
|
+
processAs
|
|
14
|
+
posterImageUrl
|
|
15
|
+
venueId
|
|
16
|
+
createdAt
|
|
17
|
+
publishable
|
|
18
|
+
seatingChartKey
|
|
19
|
+
age
|
|
20
|
+
sendQRCode
|
|
21
|
+
hasOrders
|
|
22
|
+
taxDeduction
|
|
23
|
+
organization {
|
|
24
|
+
orgName
|
|
25
|
+
stripeId
|
|
26
|
+
}
|
|
27
|
+
venue {
|
|
28
|
+
_id
|
|
29
|
+
name
|
|
30
|
+
address {
|
|
31
|
+
state
|
|
32
|
+
city
|
|
33
|
+
}
|
|
34
|
+
imageUrls
|
|
35
|
+
}
|
|
36
|
+
published
|
|
37
|
+
salesBeginImmediately
|
|
38
|
+
...SeasonSchedule
|
|
39
|
+
...Location
|
|
40
|
+
...Performances
|
|
41
|
+
...TicketTypes
|
|
42
|
+
...TicketHolds
|
|
43
|
+
...SeasonUpgrades
|
|
44
|
+
...SeasonPromotions
|
|
45
|
+
...SeasonCustomFields
|
|
46
|
+
...TicketExchange
|
|
47
|
+
...Fees
|
|
48
|
+
...Artists
|
|
49
|
+
...WebFlowEntity
|
|
50
|
+
...Analytics
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
${Season.fragments.schedule}
|
|
55
|
+
${Season.fragments.location}
|
|
56
|
+
${Season.fragments.performances}
|
|
57
|
+
${Season.fragments.ticketTypes}
|
|
58
|
+
${Season.fragments.holds}
|
|
59
|
+
${Season.fragments.upgrades}
|
|
60
|
+
${Season.fragments.promotions}
|
|
61
|
+
${Season.fragments.customFields}
|
|
62
|
+
${Season.fragments.exchange}
|
|
63
|
+
${Season.fragments.fees}
|
|
64
|
+
${Season.fragments.artists}
|
|
65
|
+
${Season.fragments.webFlowEntity}
|
|
66
|
+
${Season.fragments.analytics}
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
export default query;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import gql from "graphql-tag";
|
|
2
|
+
import Season from "../fragments/season.fragment";
|
|
3
|
+
|
|
4
|
+
const query = gql`
|
|
5
|
+
query seasons($query: SeasonQueryInput, $pagination: PaginationInput) {
|
|
6
|
+
seasons(query: $query, pagination: $pagination) {
|
|
7
|
+
_id
|
|
8
|
+
orgId
|
|
9
|
+
name
|
|
10
|
+
subtitle
|
|
11
|
+
description
|
|
12
|
+
userAgreement
|
|
13
|
+
processAs
|
|
14
|
+
posterImageUrl
|
|
15
|
+
venueId
|
|
16
|
+
createdAt
|
|
17
|
+
publishable
|
|
18
|
+
seatingChartKey
|
|
19
|
+
age
|
|
20
|
+
sendQRCode
|
|
21
|
+
hasOrders
|
|
22
|
+
taxDeduction
|
|
23
|
+
organization {
|
|
24
|
+
orgName
|
|
25
|
+
}
|
|
26
|
+
venue {
|
|
27
|
+
_id
|
|
28
|
+
name
|
|
29
|
+
address {
|
|
30
|
+
state
|
|
31
|
+
city
|
|
32
|
+
}
|
|
33
|
+
imageUrls
|
|
34
|
+
}
|
|
35
|
+
published
|
|
36
|
+
salesBeginImmediately
|
|
37
|
+
...SeasonSchedule
|
|
38
|
+
...Location
|
|
39
|
+
...Performances
|
|
40
|
+
...TicketTypes
|
|
41
|
+
...TicketHolds
|
|
42
|
+
...SeasonUpgrades
|
|
43
|
+
...SeasonPromotions
|
|
44
|
+
...SeasonCustomFields
|
|
45
|
+
...TicketExchange
|
|
46
|
+
...Fees
|
|
47
|
+
...Artists
|
|
48
|
+
...WebFlowEntity
|
|
49
|
+
...Analytics
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
${Season.fragments.schedule}
|
|
54
|
+
${Season.fragments.location}
|
|
55
|
+
${Season.fragments.performances}
|
|
56
|
+
${Season.fragments.ticketTypes}
|
|
57
|
+
${Season.fragments.holds}
|
|
58
|
+
${Season.fragments.upgrades}
|
|
59
|
+
${Season.fragments.promotions}
|
|
60
|
+
${Season.fragments.customFields}
|
|
61
|
+
${Season.fragments.exchange}
|
|
62
|
+
${Season.fragments.fees}
|
|
63
|
+
${Season.fragments.artists}
|
|
64
|
+
${Season.fragments.webFlowEntity}
|
|
65
|
+
${Season.fragments.analytics}
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
export default query;
|
|
@@ -2,13 +2,14 @@ import IOrderCustomField from "../interfaces/IOrderCustomField";
|
|
|
2
2
|
import { OrderTypeEnum } from "../interfaces/IOrderType";
|
|
3
3
|
import { OrderChannelEnum } from '../enums/OrderChannelEnum';
|
|
4
4
|
import { PaymentMethodTypeEnum } from '../enums/PaymentMethodTypeEnum';
|
|
5
|
-
import
|
|
5
|
+
import IScan from "../interfaces/IScan";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
export default interface ICreateOrderParams {
|
|
9
9
|
userId: string;
|
|
10
10
|
orgId: string;
|
|
11
|
-
eventId
|
|
11
|
+
eventId?: string;
|
|
12
|
+
seasonId?: string;
|
|
12
13
|
tickets: ICreateOrderTicketParams[];
|
|
13
14
|
upgrades: ICreateOrderUpgradeParams[];
|
|
14
15
|
type: OrderTypeEnum;
|
|
@@ -18,6 +19,8 @@ export default interface ICreateOrderParams {
|
|
|
18
19
|
paymentMethodType: PaymentMethodTypeEnum;
|
|
19
20
|
paymentIntentId: string;
|
|
20
21
|
holdToken?: string;
|
|
22
|
+
eventIds?: string[];
|
|
23
|
+
hidden?: boolean;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
export interface ICreateOrderTicketParams {
|
|
@@ -27,10 +30,10 @@ export interface ICreateOrderTicketParams {
|
|
|
27
30
|
price: number;
|
|
28
31
|
rollFees: boolean;
|
|
29
32
|
seat?: string;
|
|
30
|
-
description?:string;
|
|
31
|
-
values?:string;
|
|
32
|
-
dayIds?:string[];
|
|
33
|
-
scan?:IScan[];
|
|
33
|
+
description?: string;
|
|
34
|
+
values?: string;
|
|
35
|
+
dayIds?: string[];
|
|
36
|
+
scan?: IScan[];
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
export interface ICreateOrderUpgradeParams {
|
|
@@ -38,5 +41,5 @@ export interface ICreateOrderUpgradeParams {
|
|
|
38
41
|
upgradeId: string;
|
|
39
42
|
price: number;
|
|
40
43
|
rollFees: boolean;
|
|
41
|
-
description?:string;
|
|
44
|
+
description?: string;
|
|
42
45
|
}
|
package/src/interfaces/IEvent.ts
CHANGED
package/src/interfaces/IFee.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export enum FeeTypeEnum {
|
|
2
|
-
Flat =
|
|
3
|
-
Percent =
|
|
2
|
+
Flat = "Flat",
|
|
3
|
+
Percent = "Percent",
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
export enum FeeAppliedToEnum {
|
|
7
|
-
Order =
|
|
8
|
-
Ticket =
|
|
9
|
-
Upgrade =
|
|
7
|
+
Order = "Order",
|
|
8
|
+
Ticket = "Ticket",
|
|
9
|
+
Upgrade = "Upgrade",
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export enum FeeAppliedByEnum {
|
|
13
|
-
Sellout =
|
|
14
|
-
Stripe =
|
|
15
|
-
Organization =
|
|
13
|
+
Sellout = "Sellout",
|
|
14
|
+
Stripe = "Stripe",
|
|
15
|
+
Organization = "Organization",
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export enum FeeFiltersEnum {
|
|
19
|
-
Seated =
|
|
20
|
-
CardEntry =
|
|
21
|
-
CardReader =
|
|
19
|
+
Seated = "Seated",
|
|
20
|
+
CardEntry = "Card Entry",
|
|
21
|
+
CardReader = "Card Reader",
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export default interface IFee {
|
|
@@ -26,6 +26,7 @@ export default interface IFee {
|
|
|
26
26
|
name: string;
|
|
27
27
|
orgId?: string;
|
|
28
28
|
eventId?: string;
|
|
29
|
+
seasonId?: string;
|
|
29
30
|
type: FeeTypeEnum;
|
|
30
31
|
value: number;
|
|
31
32
|
appliedTo: FeeAppliedToEnum;
|
package/src/interfaces/IOrder.ts
CHANGED
|
@@ -11,13 +11,16 @@ import IUser from "./IUser";
|
|
|
11
11
|
import IFee from "./IFee";
|
|
12
12
|
import IEvent from "./IEvent";
|
|
13
13
|
import IVenue from "./IVenue";
|
|
14
|
+
import ISeason from "./ISeason";
|
|
15
|
+
|
|
14
16
|
|
|
15
17
|
export default interface IOrder {
|
|
16
18
|
_id?: string;
|
|
17
19
|
secretId?: string;
|
|
18
20
|
orgId: string;
|
|
19
21
|
userId: string;
|
|
20
|
-
eventId
|
|
22
|
+
eventId?: string;
|
|
23
|
+
seasonId?: string;
|
|
21
24
|
eventName: string;
|
|
22
25
|
venueIds: string[];
|
|
23
26
|
artistIds: string[];
|
|
@@ -40,15 +43,21 @@ export default interface IOrder {
|
|
|
40
43
|
customFields?: IOrderCustomField[];
|
|
41
44
|
refundReason?: string; // BACKFILL
|
|
42
45
|
payments: IPayment[];
|
|
43
|
-
processingFee?: IProcessingFee
|
|
46
|
+
processingFee?: IProcessingFee;
|
|
47
|
+
hidden?: boolean;
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
export interface IEventGraphQL extends IEvent {
|
|
47
51
|
venue?: IVenue;
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
export interface ISeasonGraphQL extends ISeason {
|
|
55
|
+
venue?: IVenue;
|
|
56
|
+
}
|
|
57
|
+
|
|
50
58
|
export interface IOrderGraphQL extends IOrder {
|
|
51
59
|
user: IUser;
|
|
52
60
|
fees: IFee;
|
|
53
61
|
event: IEventGraphQL;
|
|
62
|
+
season: ISeasonGraphQL;
|
|
54
63
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default interface IOrderQuery {
|
|
2
2
|
orgId?: string;
|
|
3
3
|
orderIds?: string[];
|
|
4
|
+
seasonIds?: string[];
|
|
4
5
|
eventIds?: string[];
|
|
5
6
|
venueIds?: string[];
|
|
6
7
|
artistIds?: string[];
|
|
@@ -11,5 +12,6 @@ export default interface IOrderQuery {
|
|
|
11
12
|
startDate?: number;
|
|
12
13
|
endDate?: number;
|
|
13
14
|
event?: boolean;
|
|
15
|
+
season?: boolean;
|
|
14
16
|
any?: boolean;
|
|
15
17
|
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import IAddress from "./IAddress";
|
|
2
|
+
import IOrganization from "./IOrganization";
|
|
3
|
+
import { IWebFlowEntity } from "./IWebFlow";
|
|
4
|
+
import ITicketType from "./ITicketType";
|
|
5
|
+
import IEventSchedule from "./IEventSchedule";
|
|
6
|
+
import ITicketExchange from "./ITicketExchange";
|
|
7
|
+
import IEventUpgrade from "./IEventUpgrade";
|
|
8
|
+
import ITicketHold from "./ITicketHold";
|
|
9
|
+
import IPerformance from "./IPerformance";
|
|
10
|
+
import IEventPromotion from "./IEventPromotion";
|
|
11
|
+
import IEventCustomField from "./IEventCustomField";
|
|
12
|
+
import IAnalytics from "./IAnalytics";
|
|
13
|
+
import IFee from "./IFee";
|
|
14
|
+
import IVenue from "./IVenue";
|
|
15
|
+
// export enum SeasonTypeEnum {
|
|
16
|
+
// GeneralEvent = "General Event", // TODO // BACKFILL
|
|
17
|
+
// Concert = "Concert",
|
|
18
|
+
// }
|
|
19
|
+
|
|
20
|
+
export enum SeasonAgeEnum {
|
|
21
|
+
AllAges = "All ages welcome",
|
|
22
|
+
EighteenPlus = "18+",
|
|
23
|
+
TwentyOnePlus = "21+",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum SeasonTaxDeductionEnum {
|
|
27
|
+
false = "No",
|
|
28
|
+
true = "Yes",
|
|
29
|
+
}
|
|
30
|
+
export enum SendQRCodeEnum {
|
|
31
|
+
UponOrder = "Upon order",
|
|
32
|
+
TwoWeeksBefore = "Two weeks before show",
|
|
33
|
+
DayOfShow = "Day of Show",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export enum SeasonSaleTaxEnum {
|
|
37
|
+
SalesTax = "Sales tax",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export enum SeasonTypeEnum {
|
|
41
|
+
GeneralEvent = "General Event", // TODO // BACKFILL
|
|
42
|
+
Concert = "Concert",
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default interface ISeason {
|
|
46
|
+
_id?: string;
|
|
47
|
+
orgId: string;
|
|
48
|
+
//type: SeasonTypeEnum;
|
|
49
|
+
name?: string;
|
|
50
|
+
subtitle?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
posterImageUrl?: string;
|
|
53
|
+
venueId?: string;
|
|
54
|
+
createdAt: number;
|
|
55
|
+
publishable: boolean;
|
|
56
|
+
seatingChartKey?: string;
|
|
57
|
+
age?: SeasonAgeEnum;
|
|
58
|
+
taxDeduction?: boolean;
|
|
59
|
+
active?: boolean;
|
|
60
|
+
userAgreement?: string;
|
|
61
|
+
sendQRCode?: SendQRCodeEnum;
|
|
62
|
+
location?: IAddress;
|
|
63
|
+
schedule?: IEventSchedule;
|
|
64
|
+
performances?: IPerformance[];
|
|
65
|
+
ticketTypes?: ITicketType[];
|
|
66
|
+
holds?: ITicketHold[];
|
|
67
|
+
upgrades?: IEventUpgrade[];
|
|
68
|
+
promotions?: IEventPromotion[];
|
|
69
|
+
customFields?: IEventCustomField[];
|
|
70
|
+
exchange?: ITicketExchange;
|
|
71
|
+
published?: boolean;
|
|
72
|
+
salesBeginImmediately?: boolean;
|
|
73
|
+
cancel?: boolean;
|
|
74
|
+
fees: IFee[];
|
|
75
|
+
numberOfEvent?: number;
|
|
76
|
+
eventIds?: string[];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ISeasonGraphQL extends ISeason {
|
|
80
|
+
organization?: IOrganization;
|
|
81
|
+
venue?: IVenue;
|
|
82
|
+
fees: IFee[];
|
|
83
|
+
webFlowEntity?: IWebFlowEntity;
|
|
84
|
+
seatingPublicKey?: string;
|
|
85
|
+
hasOrders: boolean;
|
|
86
|
+
analytics: IAnalytics;
|
|
87
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CustomFieldTypeEnum } from "../enums/CustomFieldTypeEnum";
|
|
2
|
+
|
|
3
|
+
export default interface ISeasonCustomField {
|
|
4
|
+
_id?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
type: CustomFieldTypeEnum;
|
|
7
|
+
minLength: number;
|
|
8
|
+
maxLength: number;
|
|
9
|
+
maxValue: number;
|
|
10
|
+
minValue: number;
|
|
11
|
+
required: boolean;
|
|
12
|
+
options: string[];
|
|
13
|
+
active: boolean;
|
|
14
|
+
}
|