ti2-tourplan 1.0.43 → 1.0.45
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/index.js +4 -1
- package/package.json +1 -1
- package/resolvers/product.js +2 -1
package/index.js
CHANGED
|
@@ -12,6 +12,7 @@ const Normalizer = require('./normalizer');
|
|
|
12
12
|
|
|
13
13
|
const xmlParser = new xml2js.Parser();
|
|
14
14
|
const fastParser = new XMLParser();
|
|
15
|
+
const BAD_XML_CHARS = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007f-\u0084\u0086-\u009f\uD800-\uDFFF\uFDD0-\uFDFF\uFFFF\uC008\uFEFF]/g;
|
|
15
16
|
|
|
16
17
|
const defaultXmlOptions = {
|
|
17
18
|
prettyPrinting: { enabled: false },
|
|
@@ -210,6 +211,7 @@ class Plugin {
|
|
|
210
211
|
Twin: 'TW',
|
|
211
212
|
Triple: 'TR',
|
|
212
213
|
Quad: 'QD',
|
|
214
|
+
Other: 'OT',
|
|
213
215
|
})[roomType];
|
|
214
216
|
if (RoomType) RoomConfig.RoomType = RoomType;
|
|
215
217
|
if (passengers && passengers.length && !noPaxList) {
|
|
@@ -253,6 +255,7 @@ class Plugin {
|
|
|
253
255
|
.replace(/>/g, '>')
|
|
254
256
|
.replace(/"/g, '"')
|
|
255
257
|
.replace(/'/g, ''')
|
|
258
|
+
.replace(BAD_XML_CHARS, '')
|
|
256
259
|
};
|
|
257
260
|
|
|
258
261
|
// this.errorPathsAxiosErrors = () => ([ // axios triggered errors
|
|
@@ -720,7 +723,7 @@ class Plugin {
|
|
|
720
723
|
});
|
|
721
724
|
return {
|
|
722
725
|
message: R.path(['AddServiceReply', 'Status'], replyObj)
|
|
723
|
-
=== 'NO' ? 'Service cannot be added to quote
|
|
726
|
+
=== 'NO' ? 'Service cannot be added to quote for the requested date/stay. (e.g. no rates, block out period, on request, minimum stay etc.)' : '',
|
|
724
727
|
quote: {
|
|
725
728
|
id: R.path(['AddServiceReply', 'BookingId'], replyObj),
|
|
726
729
|
reference: R.path(['AddServiceReply', 'Ref'], replyObj),
|
package/package.json
CHANGED
package/resolvers/product.js
CHANGED
|
@@ -36,7 +36,8 @@ const translateTCMLCollection = async ({ rootValue, typeDefs, query }) => {
|
|
|
36
36
|
|
|
37
37
|
const translateTPOption = ({ optionsGroupedBySupplierId, supplierData }) => {
|
|
38
38
|
return {
|
|
39
|
-
|
|
39
|
+
// LLM sends the product id as string
|
|
40
|
+
productId: supplierData.supplierId + "",
|
|
40
41
|
productName: supplierData.supplierName,
|
|
41
42
|
address: supplierData.supplierAddress,
|
|
42
43
|
serviceTypes: supplierData.serviceTypes,
|