rerobe-js-orm 2.6.98 → 2.6.99
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/lib/models/Order.js
CHANGED
|
@@ -280,6 +280,11 @@ class Order extends Base_1.default {
|
|
|
280
280
|
name: 'productIds',
|
|
281
281
|
type: 'string[]',
|
|
282
282
|
},
|
|
283
|
+
{
|
|
284
|
+
facet: true,
|
|
285
|
+
name: 'tags',
|
|
286
|
+
type: 'string[]',
|
|
287
|
+
},
|
|
283
288
|
{
|
|
284
289
|
facet: true,
|
|
285
290
|
name: 'productTitles',
|
|
@@ -322,6 +327,7 @@ class Order extends Base_1.default {
|
|
|
322
327
|
productIds: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.productId)),
|
|
323
328
|
productTitles: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.title)),
|
|
324
329
|
productBrands: this.utilities.sanitzeStringArr(this.lineItems.map((l) => l.brand)),
|
|
330
|
+
tags: this.utilities.sanitzeStringArr(this.tags),
|
|
325
331
|
};
|
|
326
332
|
return stagedObj;
|
|
327
333
|
}
|
package/lib/models/User.js
CHANGED
|
@@ -164,7 +164,7 @@ class User extends Base_1.default {
|
|
|
164
164
|
};
|
|
165
165
|
return customerInput;
|
|
166
166
|
}
|
|
167
|
-
generateSchemaForTypesense(name = '
|
|
167
|
+
generateSchemaForTypesense(name = 'dev_customers_20220811') {
|
|
168
168
|
return {
|
|
169
169
|
default_sorting_field: 'createdAtTimestamp',
|
|
170
170
|
fields: [
|
|
@@ -229,7 +229,7 @@ class User extends Base_1.default {
|
|
|
229
229
|
type: 'string',
|
|
230
230
|
},
|
|
231
231
|
],
|
|
232
|
-
name: '
|
|
232
|
+
name: 'prod_customers_20220811',
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
toObjForTypesense(merchantId) {
|