ti2-tourplan 1.0.43 → 1.0.44
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 +3 -0
- 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
|
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,
|