seatsio 67.6.0 → 67.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seatsio",
3
- "version": "67.6.0",
3
+ "version": "67.7.0",
4
4
  "main": "index.js",
5
5
  "description": "Official JavaScript and Node.JS client library for the Seats.io REST API",
6
6
  "license": "MIT",
@@ -21,6 +21,7 @@ class Event {
21
21
  this.isPartialSeason = event.isPartialSeason
22
22
  this.isEventInSeason = event.isEventInSeason
23
23
  this.objectCategories = event.objectCategories
24
+ this.categories = event.categories
24
25
  }
25
26
 
26
27
  isSeason () {
@@ -94,6 +94,11 @@ test('summaryByCategoryKey', async () => {
94
94
  seat: 16
95
95
  }
96
96
  },
97
+ 'string11': {
98
+ count: 0,
99
+ bySection: {},
100
+ byObjectType: {}
101
+ },
97
102
  NO_CATEGORY: {
98
103
  count: 0,
99
104
  bySection: {},
@@ -126,6 +131,11 @@ test('summaryByCategoryLabel', async () => {
126
131
  seat: 16
127
132
  }
128
133
  },
134
+ Cat3: {
135
+ count: 0,
136
+ bySection: {},
137
+ byObjectType: {}
138
+ },
129
139
  NO_CATEGORY: {
130
140
  count: 0,
131
141
  bySection: {},
@@ -128,6 +128,16 @@ test('summaryByCategoryKey', async () => {
128
128
  seat: 16
129
129
  }
130
130
  },
131
+ 'string11': {
132
+ count: 0,
133
+ bySection: {},
134
+ bySelectability: {},
135
+ byAvailability: {},
136
+ byAvailabilityReason: { },
137
+ byStatus: {},
138
+ byChannel: {},
139
+ byObjectType: {}
140
+ },
131
141
  NO_CATEGORY: {
132
142
  count: 0,
133
143
  bySection: {},
@@ -177,6 +187,16 @@ test('summaryByCategoryLabel', async () => {
177
187
  seat: 16
178
188
  }
179
189
  },
190
+ Cat3: {
191
+ count: 0,
192
+ bySection: {},
193
+ bySelectability: {},
194
+ byAvailability: {},
195
+ byAvailabilityReason: { },
196
+ byStatus: {},
197
+ byChannel: {},
198
+ byObjectType: {}
199
+ },
180
200
  NO_CATEGORY: {
181
201
  count: 0,
182
202
  bySection: {},
@@ -21,6 +21,7 @@ test('should retrieve event', async () => {
21
21
  expect(retrievedEvent.forSaleConfig).toBeFalsy()
22
22
  expect(retrievedEvent.updatedOn).toBeNull()
23
23
  expect(retrievedEvent.topLevelSeasonKey).toBe(undefined)
24
+ expect(retrievedEvent.categories.length).toBe(3)
24
25
  })
25
26
 
26
27
  test('retrieve season', async () => {
@@ -15,6 +15,12 @@
15
15
  "color": "#5E42ED",
16
16
  "accessible": false,
17
17
  "key": 10
18
+ },
19
+ {
20
+ "label": "Cat3",
21
+ "color": "#5E42BB",
22
+ "accessible": false,
23
+ "key": "string11"
18
24
  }
19
25
  ],
20
26
  "maxCategoryKey": 10