seatsio 67.0.0 → 67.1.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.0.0",
3
+ "version": "67.1.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",
@@ -1,9 +1,11 @@
1
1
  class StatusChangesParams {
2
2
  /**
3
3
  * @param {?string} filter
4
+ * @param {?string} filterType
4
5
  */
5
- constructor (filter = null) {
6
+ constructor (filter = null, filterType = 'CONTAINS') {
6
7
  this.filter = filter
8
+ this.filterType = filterType
7
9
  this.sortField = null
8
10
  this.sortDirection = null
9
11
  }
@@ -50,10 +52,12 @@ class StatusChangesParams {
50
52
 
51
53
  /**
52
54
  * @param {string} filter
55
+ * @param {?string} filterType: CONTAINS, MATCHES, BEGINS_WITH or ENDS_WITH
53
56
  * @returns {StatusChangesParams}
54
57
  */
55
- withFilter (filter) {
58
+ withFilter (filter, filterType = 'CONTAINS') {
56
59
  this.filter = filter
60
+ this.filterType = filterType
57
61
  return this
58
62
  }
59
63
 
@@ -69,6 +73,7 @@ class StatusChangesParams {
69
73
 
70
74
  return {
71
75
  filter: this.filter,
76
+ filterType: this.filterType,
72
77
  sort: sort
73
78
  }
74
79
  }