ti2 1.0.81 → 1.0.83
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const typeDefs = `
|
|
2
2
|
type Passenger {
|
|
3
|
-
firstName: String
|
|
4
|
-
lastName: String
|
|
3
|
+
firstName: String
|
|
4
|
+
lastName: String
|
|
5
5
|
passengerType: String!
|
|
6
6
|
age: Int
|
|
7
7
|
dob: String
|
|
@@ -18,8 +18,10 @@ const typeDefs = `
|
|
|
18
18
|
|
|
19
19
|
type ServiceLine {
|
|
20
20
|
serviceLineId: ID!
|
|
21
|
-
optionId:
|
|
22
|
-
optionName: String
|
|
21
|
+
optionId: String!
|
|
22
|
+
optionName: String
|
|
23
|
+
linePrice: String
|
|
24
|
+
quantity: Int
|
|
23
25
|
startDate: String!
|
|
24
26
|
supplierName: String
|
|
25
27
|
supplierId: String
|
|
@@ -36,6 +38,7 @@ const typeDefs = `
|
|
|
36
38
|
totalPrice: String!
|
|
37
39
|
travelDate: String!
|
|
38
40
|
enteredDate: String!
|
|
41
|
+
canEdit: Boolean!
|
|
39
42
|
serviceLines: [ServiceLine]!
|
|
40
43
|
}
|
|
41
44
|
`;
|
|
@@ -49,10 +52,14 @@ const query = `{
|
|
|
49
52
|
totalPrice
|
|
50
53
|
travelDate
|
|
51
54
|
enteredDate
|
|
55
|
+
canEdit
|
|
52
56
|
serviceLines {
|
|
53
57
|
serviceLineId
|
|
58
|
+
linePrice
|
|
59
|
+
quantity
|
|
54
60
|
optionId
|
|
55
61
|
optionName
|
|
62
|
+
supplierId
|
|
56
63
|
supplierName
|
|
57
64
|
supplierId
|
|
58
65
|
startDate
|
package/package.json
CHANGED
package/test/plugin.js
CHANGED
|
@@ -606,6 +606,8 @@ class Plugin {
|
|
|
606
606
|
* @property {string} optionName - Option name
|
|
607
607
|
* @property {string} [supplierName] - Supplier name
|
|
608
608
|
* @property {string} [supplierId] - Supplier id
|
|
609
|
+
* @property {string} [linePrice] - Line price
|
|
610
|
+
* @property {string} [quantity] - Quantity
|
|
609
611
|
* @property {string} startDate - Start date (YYYY-MM-DD)
|
|
610
612
|
* @property {Array<PaxConfig>} paxConfigs - List of pax configs for this service line
|
|
611
613
|
* @property {Array<Passenger>} paxList - List of passengers for this service line
|
|
@@ -621,6 +623,7 @@ class Plugin {
|
|
|
621
623
|
* @property {string} totalPrice - Total price of the booking
|
|
622
624
|
* @property {string} travelDate - Start Date of travel (YYYY-MM-DD)
|
|
623
625
|
* @property {string} enteredDate - Date of booking (YYYY-MM-DD)
|
|
626
|
+
* @property {boolean} canEdit - Whether the booking can be edited
|
|
624
627
|
* @property {ItineraryServiceLine[]} serviceLines - Booked service lines
|
|
625
628
|
*/
|
|
626
629
|
|