@sellout/models 0.0.151 → 0.0.152

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.
Files changed (133) hide show
  1. package/.dist/graphql/fragments/season.fragment.d.ts +23 -0
  2. package/.dist/graphql/fragments/season.fragment.js +315 -0
  3. package/.dist/graphql/fragments/season.fragment.js.map +1 -0
  4. package/.dist/graphql/mutations/createEvent.mutation.js +1 -0
  5. package/.dist/graphql/mutations/createEvent.mutation.js.map +1 -1
  6. package/.dist/graphql/mutations/createFee.mutation.js +1 -0
  7. package/.dist/graphql/mutations/createFee.mutation.js.map +1 -1
  8. package/.dist/graphql/mutations/createSeason.mutation.d.ts +2 -0
  9. package/.dist/graphql/mutations/createSeason.mutation.js +72 -0
  10. package/.dist/graphql/mutations/createSeason.mutation.js.map +1 -0
  11. package/.dist/graphql/mutations/createSeasonOrder.mutation.d.ts +2 -0
  12. package/.dist/graphql/mutations/createSeasonOrder.mutation.js +65 -0
  13. package/.dist/graphql/mutations/createSeasonOrder.mutation.js.map +1 -0
  14. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.d.ts +2 -0
  15. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js +18 -0
  16. package/.dist/graphql/mutations/createSeasonOrderPaymentIntent.mutation.js.map +1 -0
  17. package/.dist/graphql/mutations/publishEvent.mutation.js +6 -5
  18. package/.dist/graphql/mutations/publishEvent.mutation.js.map +1 -1
  19. package/.dist/graphql/mutations/publishSeason.mutation.d.ts +2 -0
  20. package/.dist/graphql/mutations/publishSeason.mutation.js +72 -0
  21. package/.dist/graphql/mutations/publishSeason.mutation.js.map +1 -0
  22. package/.dist/graphql/mutations/updateEvent.mutation.js +2 -1
  23. package/.dist/graphql/mutations/updateEvent.mutation.js.map +1 -1
  24. package/.dist/graphql/mutations/updateOrganization.mutation.js +1 -0
  25. package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
  26. package/.dist/graphql/mutations/updateSeason.mutation.d.ts +2 -0
  27. package/.dist/graphql/mutations/updateSeason.mutation.js +71 -0
  28. package/.dist/graphql/mutations/updateSeason.mutation.js.map +1 -0
  29. package/.dist/graphql/queries/event.query.js +2 -0
  30. package/.dist/graphql/queries/event.query.js.map +1 -1
  31. package/.dist/graphql/queries/events.query.js +1 -0
  32. package/.dist/graphql/queries/events.query.js.map +1 -1
  33. package/.dist/graphql/queries/profile.query.js +1 -0
  34. package/.dist/graphql/queries/profile.query.js.map +1 -1
  35. package/.dist/graphql/queries/publicEvent.query.js +1 -0
  36. package/.dist/graphql/queries/publicEvent.query.js.map +1 -1
  37. package/.dist/graphql/queries/season.query.d.ts +2 -0
  38. package/.dist/graphql/queries/season.query.js +76 -0
  39. package/.dist/graphql/queries/season.query.js.map +1 -0
  40. package/.dist/graphql/queries/seasons.query.d.ts +2 -0
  41. package/.dist/graphql/queries/seasons.query.js +72 -0
  42. package/.dist/graphql/queries/seasons.query.js.map +1 -0
  43. package/.dist/interfaces/IAnalytics.d.ts +1 -0
  44. package/.dist/interfaces/IAnalytics.js.map +1 -1
  45. package/.dist/interfaces/ICreateOrderParams.d.ts +4 -1
  46. package/.dist/interfaces/IEvent.d.ts +1 -0
  47. package/.dist/interfaces/IFee.d.ts +1 -0
  48. package/.dist/interfaces/IOrder.d.ts +3 -1
  49. package/.dist/interfaces/IOrder.js.map +1 -1
  50. package/.dist/interfaces/IOrderQuery.d.ts +2 -0
  51. package/.dist/interfaces/IOrganization.d.ts +1 -0
  52. package/.dist/interfaces/ISeason.d.ts +76 -0
  53. package/.dist/interfaces/ISeason.js +34 -0
  54. package/.dist/interfaces/ISeason.js.map +1 -0
  55. package/.dist/interfaces/ISeasonCustomField.d.ts +13 -0
  56. package/.dist/interfaces/ISeasonCustomField.js +3 -0
  57. package/.dist/interfaces/ISeasonCustomField.js.map +1 -0
  58. package/.dist/interfaces/ISeasonQuery.d.ts +23 -0
  59. package/.dist/interfaces/ISeasonQuery.js +15 -0
  60. package/.dist/interfaces/ISeasonQuery.js.map +1 -0
  61. package/.dist/interfaces/ISeasonUpgrade.d.ts +16 -0
  62. package/.dist/interfaces/ISeasonUpgrade.js +3 -0
  63. package/.dist/interfaces/ISeasonUpgrade.js.map +1 -0
  64. package/.dist/schemas/Event.d.ts +4 -0
  65. package/.dist/schemas/Event.js +4 -0
  66. package/.dist/schemas/Event.js.map +1 -1
  67. package/.dist/schemas/Fee.d.ts +5 -0
  68. package/.dist/schemas/Fee.js +4 -0
  69. package/.dist/schemas/Fee.js.map +1 -1
  70. package/.dist/schemas/Order.d.ts +8 -0
  71. package/.dist/schemas/Order.js +8 -1
  72. package/.dist/schemas/Order.js.map +1 -1
  73. package/.dist/schemas/Organization.d.ts +5 -0
  74. package/.dist/schemas/Organization.js +5 -0
  75. package/.dist/schemas/Organization.js.map +1 -1
  76. package/.dist/schemas/Season.d.ts +679 -0
  77. package/.dist/schemas/Season.js +502 -0
  78. package/.dist/schemas/Season.js.map +1 -0
  79. package/.dist/sellout-proto.js +36603 -26718
  80. package/.dist/utils/EventUtil.js +32 -15
  81. package/.dist/utils/EventUtil.js.map +1 -1
  82. package/.dist/utils/FeeUtil.d.ts +1 -1
  83. package/.dist/utils/FeeUtil.js +19 -11
  84. package/.dist/utils/FeeUtil.js.map +1 -1
  85. package/.dist/utils/SeasonUtil.d.ts +66 -0
  86. package/.dist/utils/SeasonUtil.js +340 -0
  87. package/.dist/utils/SeasonUtil.js.map +1 -0
  88. package/package.json +3 -3
  89. package/src/graphql/fragments/season.fragment.ts +336 -0
  90. package/src/graphql/mutations/createEvent.mutation.ts +1 -0
  91. package/src/graphql/mutations/createFee.mutation.ts +2 -1
  92. package/src/graphql/mutations/createSeason.mutation.ts +68 -0
  93. package/src/graphql/mutations/createSeasonOrder.mutation.ts +61 -0
  94. package/src/graphql/mutations/createSeasonOrderPaymentIntent.mutation.ts +14 -0
  95. package/src/graphql/mutations/publishEvent.mutation.ts +6 -5
  96. package/src/graphql/mutations/publishSeason.mutation.ts +68 -0
  97. package/src/graphql/mutations/updateEvent.mutation.ts +4 -3
  98. package/src/graphql/mutations/updateOrganization.mutation.ts +3 -2
  99. package/src/graphql/mutations/updateSeason.mutation.ts +67 -0
  100. package/src/graphql/queries/event.query.ts +2 -0
  101. package/src/graphql/queries/events.query.ts +1 -0
  102. package/src/graphql/queries/profile.query.ts +1 -0
  103. package/src/graphql/queries/publicEvent.query.ts +1 -0
  104. package/src/graphql/queries/season.query.ts +72 -0
  105. package/src/graphql/queries/seasons.query.ts +68 -0
  106. package/src/interfaces/IAnalytics.ts +1 -0
  107. package/src/interfaces/ICreateOrderParams.ts +10 -7
  108. package/src/interfaces/IEvent.ts +1 -0
  109. package/src/interfaces/IFee.ts +12 -11
  110. package/src/interfaces/IOrder.ts +4 -2
  111. package/src/interfaces/IOrderQuery.ts +2 -0
  112. package/src/interfaces/IOrganization.ts +1 -0
  113. package/src/interfaces/ISeason.ts +87 -0
  114. package/src/interfaces/ISeasonCustomField.ts +14 -0
  115. package/src/interfaces/ISeasonQuery.ts +25 -0
  116. package/src/interfaces/ISeasonUpgrade.ts +16 -0
  117. package/src/proto/broadcast.proto +29 -0
  118. package/src/proto/email.proto +39 -0
  119. package/src/proto/event.proto +4 -0
  120. package/src/proto/fee.proto +2 -0
  121. package/src/proto/order.proto +59 -0
  122. package/src/proto/organization.proto +1 -0
  123. package/src/proto/season.proto +172 -0
  124. package/src/proto/seating.proto +16 -0
  125. package/src/proto/user.proto +1 -0
  126. package/src/schemas/Event.ts +4 -0
  127. package/src/schemas/Fee.ts +4 -0
  128. package/src/schemas/Order.ts +8 -1
  129. package/src/schemas/Organization.ts +5 -0
  130. package/src/schemas/Season.ts +507 -0
  131. package/src/utils/EventUtil.ts +47 -27
  132. package/src/utils/FeeUtil.ts +25 -17
  133. package/src/utils/SeasonUtil.ts +353 -0
@@ -0,0 +1,336 @@
1
+ import gql from "graphql-tag";
2
+
3
+ interface SeasonFragments {
4
+ schedule: object;
5
+ location: object;
6
+ performances: object;
7
+ ticketTypes: object;
8
+ holds: object;
9
+ upgrades: object;
10
+ promotions: object;
11
+ customFields: object;
12
+ fees: object;
13
+ exchange: object;
14
+ metrics: object;
15
+ webFlowEntity: object;
16
+ artists: object;
17
+ analytics: object;
18
+ purchasePortalPromotions: object;
19
+ Events: object;
20
+ }
21
+
22
+ interface SeasonFragment {
23
+ fragments: SeasonFragments;
24
+ }
25
+
26
+ const Season: SeasonFragment = {
27
+ fragments: {
28
+ schedule: {},
29
+ location: {},
30
+ performances: {},
31
+ ticketTypes: {},
32
+ holds: {},
33
+ upgrades: {},
34
+ promotions: {},
35
+ customFields: {},
36
+ fees: {},
37
+ exchange: {},
38
+ metrics: {},
39
+ webFlowEntity: {},
40
+ artists: {},
41
+ analytics: {},
42
+ purchasePortalPromotions: {},
43
+ Events: {},
44
+ },
45
+ };
46
+
47
+ Season.fragments = {
48
+ schedule: gql`
49
+ fragment SeasonSchedule on Season {
50
+ schedule {
51
+ announceAt
52
+ ticketsAt
53
+ ticketsEndAt
54
+ startsAt
55
+ endsAt
56
+ }
57
+ }
58
+ `,
59
+ location: gql`
60
+ fragment Location on Season {
61
+ location {
62
+ address1
63
+ address2
64
+ city
65
+ state
66
+ zip
67
+ country
68
+ phone
69
+ }
70
+ }
71
+ `,
72
+ performances: gql`
73
+ fragment Performances on Season {
74
+ performances {
75
+ _id
76
+ name
77
+ headliningArtistIds
78
+ openingArtistIds
79
+ venueId
80
+ venueStageId
81
+ price
82
+ posterImageUrl
83
+ videoLink
84
+ songLink
85
+ schedule {
86
+ doorsAt
87
+ startsAt
88
+ endsAt
89
+ }
90
+ }
91
+ }
92
+ `,
93
+ ticketTypes: gql`
94
+ fragment TicketTypes on Season {
95
+ ticketTypes {
96
+ _id
97
+ name
98
+ totalQty
99
+ remainingQty
100
+ purchaseLimit
101
+ performanceIds
102
+ visible
103
+ description
104
+ rollFees
105
+ values
106
+ dayIds
107
+ tiers {
108
+ _id
109
+ name
110
+ price
111
+ startsAt
112
+ endsAt
113
+ totalQty
114
+ remainingQty
115
+ }
116
+ }
117
+ }
118
+ `,
119
+ holds: gql`
120
+ fragment TicketHolds on Season {
121
+ holds {
122
+ _id
123
+ name
124
+ qty
125
+ ticketTypeId
126
+ }
127
+ }
128
+ `,
129
+ upgrades: gql`
130
+ fragment SeasonUpgrades on Season {
131
+ upgrades {
132
+ _id
133
+ name
134
+ price
135
+ totalQty
136
+ remainingQty
137
+ purchaseLimit
138
+ complimentary
139
+ complimentaryWith
140
+ complimentaryQty
141
+ ticketTypeIds
142
+ imageUrl
143
+ description
144
+ rollFees
145
+ visible
146
+ }
147
+ }
148
+ `,
149
+ promotions: gql`
150
+ fragment SeasonPromotions on Season {
151
+ promotions {
152
+ _id
153
+ code
154
+ type
155
+ totalQty
156
+ remainingQty
157
+ ticketTypeIds
158
+ upgradeIds
159
+ active
160
+ startsAt
161
+ endsAt
162
+ useLimit
163
+ discountType
164
+ discountValue
165
+ }
166
+ }
167
+ `,
168
+ customFields: gql`
169
+ fragment SeasonCustomFields on Season {
170
+ customFields {
171
+ _id
172
+ label
173
+ type
174
+ minLength
175
+ maxLength
176
+ minValue
177
+ maxValue
178
+ options
179
+ required
180
+ active
181
+ }
182
+ }
183
+ `,
184
+ fees: gql`
185
+ fragment Fees on Season {
186
+ fees {
187
+ _id
188
+ name
189
+ orgId
190
+ seasonId
191
+ type
192
+ value
193
+ appliedTo
194
+ appliedBy
195
+ minAppliedToPrice
196
+ maxAppliedToPrice
197
+ filters
198
+ createdBy
199
+ createdAt
200
+ updatedBy
201
+ updatedAt
202
+ disabled
203
+ }
204
+ }
205
+ `,
206
+ artists: gql`
207
+ fragment Artists on Season {
208
+ artists {
209
+ _id
210
+ name
211
+ genres
212
+ socialAccounts {
213
+ _id
214
+ platform
215
+ link
216
+ }
217
+ pressKits {
218
+ _id
219
+ title
220
+ description
221
+ posterImageUrls
222
+ links {
223
+ platform
224
+ link
225
+ }
226
+ }
227
+ }
228
+ }
229
+ `,
230
+ exchange: gql`
231
+ fragment TicketExchange on Season {
232
+ exchange {
233
+ allowed
234
+ percent
235
+ }
236
+ }
237
+ `,
238
+ metrics: gql`
239
+ fragment Metrics on Season {
240
+ metrics {
241
+ lifeTimeTicketsPurchased
242
+ lifeTimeTicketsRefunded
243
+ lifeTimeUpgradesPurchased
244
+ lifeTimeUpgradesRefunded
245
+ lifeTimeValue
246
+ lifeTimeValueRefunded
247
+ }
248
+ }
249
+ `,
250
+ webFlowEntity: gql`
251
+ fragment WebFlowEntity on Season {
252
+ webFlowEntity {
253
+ _id
254
+ name
255
+ selloutId
256
+ entityType
257
+ alwaysPublishTo
258
+ webFlowIds {
259
+ webFlowSiteId
260
+ webFlowEntityId
261
+ slug
262
+ webFlowSite {
263
+ name
264
+ webFlowId
265
+ enabled
266
+ previewUrl
267
+ domains {
268
+ name
269
+ lastPublishedAt
270
+ }
271
+ createdAt
272
+ updatedAt
273
+ }
274
+ }
275
+ }
276
+ }
277
+ `,
278
+ analytics: gql`
279
+ fragment Analytics on Season {
280
+ analytics {
281
+ label
282
+ type
283
+ interval
284
+ intervalOptions
285
+ coordinates {
286
+ x
287
+ y
288
+ }
289
+ segments {
290
+ label
291
+ type
292
+ coordinates {
293
+ x
294
+ y
295
+ }
296
+ }
297
+ }
298
+ }
299
+ `,
300
+ purchasePortalPromotions: gql`
301
+ fragment SeasonPromotions on Season {
302
+ promotions {
303
+ _id
304
+ type
305
+ totalQty
306
+ remainingQty
307
+ ticketTypeIds
308
+ upgradeIds
309
+ active
310
+ startsAt
311
+ endsAt
312
+ useLimit
313
+ discountType
314
+ discountValue
315
+ }
316
+ }
317
+ `,
318
+
319
+ Events: gql`
320
+ fragment SeasonEvents on Season {
321
+ events {
322
+ _id
323
+ name
324
+ schedule {
325
+ announceAt
326
+ ticketsAt
327
+ ticketsEndAt
328
+ startsAt
329
+ endsAt
330
+ }
331
+ }
332
+ }
333
+ `,
334
+ };
335
+
336
+ export default Season;
@@ -8,6 +8,7 @@ const mutation = gql`
8
8
  orgId
9
9
  type
10
10
  name
11
+ seasonId
11
12
  subtitle
12
13
  description
13
14
  userAgreement
@@ -1,4 +1,4 @@
1
- import gql from 'graphql-tag';
1
+ import gql from "graphql-tag";
2
2
 
3
3
  const mutation = gql`
4
4
  mutation createFee($fee: FeeInput!) {
@@ -7,6 +7,7 @@ const mutation = gql`
7
7
  name
8
8
  orgId
9
9
  eventId
10
+ seasonId
10
11
  type
11
12
  value
12
13
  appliedTo
@@ -0,0 +1,68 @@
1
+ import gql from "graphql-tag";
2
+ import Season from "../fragments/season.fragment";
3
+
4
+ const mutation = gql`
5
+ mutation createSeason($season: SeasonInput!) {
6
+ createSeason(season: $season) {
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 mutation;
@@ -0,0 +1,61 @@
1
+ import gql from "graphql-tag";
2
+
3
+ const mutation = gql`
4
+ mutation createSeasonOrder($params: OrderSeasonInput!) {
5
+ createSeasonOrder(params: $params) {
6
+ _id
7
+ userId
8
+ orgId
9
+ seasonId
10
+ createdAt
11
+ stripeChargeId
12
+ feeIds
13
+ tickets {
14
+ _id
15
+ name
16
+ ticketTypeId
17
+ ticketTierId
18
+ price
19
+ seat
20
+ refund {
21
+ refunded
22
+ refundedAt
23
+ refundedBy
24
+ refundedAmount
25
+ __typename
26
+ }
27
+ scan {
28
+ scanned
29
+ scannedAt
30
+ scannedBy
31
+ __typename
32
+ }
33
+ values
34
+ __typename
35
+ }
36
+ upgrades {
37
+ _id
38
+ name
39
+ upgradeId
40
+ price
41
+ refund {
42
+ refunded
43
+ refundedAt
44
+ refundedBy
45
+ refundedAmount
46
+ __typename
47
+ }
48
+ scan {
49
+ scanned
50
+ scannedAt
51
+ scannedBy
52
+ __typename
53
+ }
54
+ __typename
55
+ }
56
+ __typename
57
+ }
58
+ }
59
+ `;
60
+
61
+ export default mutation;
@@ -0,0 +1,14 @@
1
+ import gql from "graphql-tag";
2
+
3
+ const mutation = gql`
4
+ mutation createSeasonOrderPaymentIntent(
5
+ $params: OrderSeasonPaymentIntentInput!
6
+ ) {
7
+ createSeasonOrderPaymentIntent(params: $params) {
8
+ paymentIntentId
9
+ clientSecret
10
+ }
11
+ }
12
+ `;
13
+
14
+ export default mutation;
@@ -3,21 +3,22 @@ import Event from "../fragments/event.fragment";
3
3
 
4
4
  const mutation = gql`
5
5
  mutation publishEvent(
6
- $eventId: String!,
7
- $publishSiteIds: [String],
6
+ $eventId: String!
7
+ $publishSiteIds: [String]
8
8
  $unpublishSiteIds: [String]
9
9
  $published: Boolean
10
10
  ) {
11
11
  publishEvent(
12
- eventId: $eventId,
13
- publishSiteIds: $publishSiteIds,
12
+ eventId: $eventId
13
+ publishSiteIds: $publishSiteIds
14
14
  unpublishSiteIds: $unpublishSiteIds
15
15
  published: $published
16
16
  ) {
17
- _id
17
+ _id
18
18
  orgId
19
19
  type
20
20
  name
21
+ seasonId
21
22
  subtitle
22
23
  description
23
24
  userAgreement
@@ -0,0 +1,68 @@
1
+ import gql from "graphql-tag";
2
+ import Season from "../fragments/season.fragment";
3
+
4
+ const mutation = gql`
5
+ mutation publishSeason($seasonId: String!, $published: Boolean) {
6
+ publishSeason(seasonId: $seasonId, published: $published) {
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 mutation;
@@ -1,13 +1,14 @@
1
- import gql from 'graphql-tag';
2
- import Event from '../fragments/event.fragment';
1
+ import gql from "graphql-tag";
2
+ import Event from "../fragments/event.fragment";
3
3
 
4
4
  const mutation = gql`
5
5
  mutation updateEvent($event: EventInput!) {
6
6
  updateEvent(event: $event) {
7
- _id
7
+ _id
8
8
  orgId
9
9
  type
10
10
  name
11
+ seasonId
11
12
  subtitle
12
13
  description
13
14
  userAgreement
@@ -1,11 +1,12 @@
1
- import gql from 'graphql-tag';
1
+ import gql from "graphql-tag";
2
2
 
3
3
  const mutation = gql`
4
4
  mutation updateOrganization($organization: OrganizationInput!) {
5
5
  updateOrganization(organization: $organization) {
6
6
  _id
7
+ isSeasonTickets
7
8
  }
8
9
  }
9
10
  `;
10
11
 
11
- export default mutation;
12
+ export default mutation;
@@ -0,0 +1,67 @@
1
+ import gql from "graphql-tag";
2
+ import Season from "../fragments/season.fragment";
3
+
4
+ const mutation = gql`
5
+ mutation updateSeason($season: SeasonInput!) {
6
+ updateSeason(season: $season) {
7
+ _id
8
+ orgId
9
+ name
10
+ subtitle
11
+ description
12
+ userAgreement
13
+ posterImageUrl
14
+ venueId
15
+ createdAt
16
+ publishable
17
+ seatingChartKey
18
+ age
19
+ sendQRCode
20
+ hasOrders
21
+ taxDeduction
22
+ organization {
23
+ orgName
24
+ }
25
+ venue {
26
+ _id
27
+ name
28
+ address {
29
+ state
30
+ city
31
+ }
32
+ imageUrls
33
+ }
34
+ published
35
+ salesBeginImmediately
36
+ ...SeasonSchedule
37
+ ...Location
38
+ ...Performances
39
+ ...TicketTypes
40
+ ...TicketHolds
41
+ ...SeasonUpgrades
42
+ ...SeasonPromotions
43
+ ...SeasonCustomFields
44
+ ...TicketExchange
45
+ ...Fees
46
+ ...Artists
47
+ ...WebFlowEntity
48
+ ...Analytics
49
+ }
50
+ }
51
+
52
+ ${Season.fragments.schedule}
53
+ ${Season.fragments.location}
54
+ ${Season.fragments.performances}
55
+ ${Season.fragments.ticketTypes}
56
+ ${Season.fragments.holds}
57
+ ${Season.fragments.upgrades}
58
+ ${Season.fragments.promotions}
59
+ ${Season.fragments.customFields}
60
+ ${Season.fragments.exchange}
61
+ ${Season.fragments.fees}
62
+ ${Season.fragments.artists}
63
+ ${Season.fragments.webFlowEntity}
64
+ ${Season.fragments.analytics}
65
+ `;
66
+
67
+ export default mutation;
@@ -8,6 +8,7 @@ const query = gql`
8
8
  orgId
9
9
  type
10
10
  name
11
+ seasonId
11
12
  subtitle
12
13
  description
13
14
  userAgreement
@@ -25,6 +26,7 @@ const query = gql`
25
26
  hasOrders
26
27
  organization {
27
28
  orgName
29
+ stripeId
28
30
  }
29
31
  venue {
30
32
  _id