ti2 1.0.87 → 1.0.89
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/controllers/app.js
CHANGED
|
@@ -44,7 +44,23 @@ const tokenTemplate = async (req, res, next) => {
|
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
46
|
template = R.map(safeRegExp, template);
|
|
47
|
-
return res.json({
|
|
47
|
+
return res.json({
|
|
48
|
+
template: {
|
|
49
|
+
...template,
|
|
50
|
+
// ttlProducts and doNotCallPluginForProducts are being used at ti2 level
|
|
51
|
+
// hence we should just by default allow them for all ti2 plugins
|
|
52
|
+
ttlForProducts: {
|
|
53
|
+
type: 'number',
|
|
54
|
+
regExp: /.+/,
|
|
55
|
+
default: 60 * 60 * 24, // 1 day
|
|
56
|
+
},
|
|
57
|
+
doNotCallPluginForProducts: {
|
|
58
|
+
type: 'boolean',
|
|
59
|
+
regExp: /.+/,
|
|
60
|
+
default: false,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
});
|
|
48
64
|
} catch (err) {
|
|
49
65
|
return next(err);
|
|
50
66
|
}
|
|
@@ -35,7 +35,6 @@ const typeDefs = `
|
|
|
35
35
|
bookingStatus: String!
|
|
36
36
|
ref: String!
|
|
37
37
|
agentRef: String
|
|
38
|
-
currency: String!
|
|
39
38
|
totalPrice: String!
|
|
40
39
|
currency: String!
|
|
41
40
|
travelDate: String!
|
|
@@ -51,7 +50,6 @@ const query = `{
|
|
|
51
50
|
bookingStatus
|
|
52
51
|
ref
|
|
53
52
|
agentRef
|
|
54
|
-
currency
|
|
55
53
|
totalPrice
|
|
56
54
|
currency
|
|
57
55
|
travelDate
|