ti2 1.0.46 → 1.0.47

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.
@@ -15,8 +15,22 @@ const typeDefs = `
15
15
  title: String
16
16
  description: String
17
17
  }
18
+ type PickupPoint {
19
+ id: ID
20
+ name: String
21
+ pickupAvail: Boolean
22
+ directions: String
23
+ latitude: Float
24
+ longitude: Float
25
+ street: String
26
+ postal: String
27
+ city: String
28
+ state: String
29
+ country: String
30
+ localDateTime: String
31
+ }
18
32
  type Query {
19
- key(productId: String, optionId: String, currency: String, unitsWithQuantity: [UnitWithQuantity], jwtKey: String): String
33
+ key(productId: ID, optionId: ID, currency: String, unitsWithQuantity: [UnitWithQuantity], jwtKey: String): String
20
34
  dateTimeStart: String
21
35
  dateTimeEnd: String
22
36
  allDay: Boolean
@@ -25,16 +39,35 @@ const typeDefs = `
25
39
  pricing: Pricing
26
40
  unitPricing: [Pricing]
27
41
  offer: Offer
42
+ pickupAvailable: Boolean
43
+ pickupRequired: Boolean
44
+ pickupPoints: [PickupPoint]
28
45
  }
29
46
  `;
30
47
 
31
- const query = `query getAvailability ($pId: String, $oId: String, $currency: String, $unitsWithQuantity: [UnitWithQuantity], $jwtKey: String) {
32
- key (productId: $pId, optionId: $oId, currency: $currency, unitsWithQuantity: $unitsWithQuantity, jwtKey: $jwtKey)
48
+ const query = `query getAvailability ($productId: ID, $optionId: ID, $currency: String, $unitsWithQuantity: [UnitWithQuantity], $jwtKey: String) {
49
+ key (productId: $productId, optionId: $optionId, currency: $currency, unitsWithQuantity: $unitsWithQuantity, jwtKey: $jwtKey)
33
50
  dateTimeStart
34
51
  dateTimeEnd
35
52
  allDay
36
53
  vacancies
37
54
  available
55
+ pickupAvailable
56
+ pickupRequired
57
+ pickupPoints {
58
+ id
59
+ name
60
+ pickupAvail
61
+ directions
62
+ latitude
63
+ longitude
64
+ street
65
+ postal
66
+ city
67
+ state
68
+ country
69
+ localDateTime
70
+ }
38
71
  pricing {
39
72
  ...pricingFields
40
73
  }
@@ -26,6 +26,19 @@ const typeDefs = `
26
26
  id: Int
27
27
  name: String
28
28
  }
29
+ type PickupPoint {
30
+ id: ID
31
+ name: String
32
+ directions: String
33
+ latitude: Float
34
+ longitude: Float
35
+ street: String
36
+ postal: String
37
+ city: String
38
+ state: String
39
+ country: String
40
+ localDateTime: String
41
+ }
29
42
  type Query {
30
43
  id: ID
31
44
  orderId: ID
@@ -52,6 +65,11 @@ const typeDefs = `
52
65
  privateUrl: String
53
66
  agent: Agent
54
67
  desk: Desk
68
+ pickupRequested: Boolean
69
+ pickupPointId: ID
70
+ pickupHotel: String
71
+ pickupHotelRoom: String
72
+ pickupPoint: PickupPoint
55
73
  }
56
74
  `;
57
75
 
@@ -104,6 +122,23 @@ const query = `{
104
122
  id
105
123
  name
106
124
  }
125
+ pickupRequested
126
+ pickupPointId
127
+ pickupHotel
128
+ pickupHotelRoom
129
+ pickupPoint {
130
+ id
131
+ name
132
+ directions
133
+ latitude
134
+ longitude
135
+ street
136
+ postal
137
+ city
138
+ state
139
+ country
140
+ localDateTime
141
+ }
107
142
  }`;
108
143
 
109
144
  module.exports = {
@@ -13,7 +13,7 @@ const typeDefs = `
13
13
  type Unit {
14
14
  unitId: ID
15
15
  unitName: String
16
- subtitle: String!
16
+ subtitle: String
17
17
  restrictions: Restriction
18
18
  type: String
19
19
  pricing: [Pricing]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {