rerobe-js-orm 2.4.87 → 2.4.88
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/Product.js +13 -1
- package/package.json +1 -1
package/lib/models/Product.js
CHANGED
|
@@ -277,6 +277,7 @@ class Product extends Base_1.default {
|
|
|
277
277
|
sellerSelfRejectTimestamp: this.utilities.sanitizeMillisTimeStamp(this.timestampAttributes.sellerSelfRejectTimestamp),
|
|
278
278
|
liquidationRequestedTimestamp: this.utilities.sanitizeMillisTimeStamp(this.timestampAttributes.liquidationRequestedTimestamp),
|
|
279
279
|
sellerLiquidatedTimestamp: this.utilities.sanitizeMillisTimeStamp(this.timestampAttributes.sellerLiquidatedTimestamp),
|
|
280
|
+
selectedForClearance: this.utilities.sanitizeString(this.consignmentAttributes.selectedForClearance),
|
|
280
281
|
availableForSale: !!this.attributes.availableForSale,
|
|
281
282
|
color: this.utilities.sanitizeString(this.filterAttributes.color),
|
|
282
283
|
description: this.utilities.sanitizeString(this.attributes.description),
|
|
@@ -284,6 +285,7 @@ class Product extends Base_1.default {
|
|
|
284
285
|
discountValue: this.utilities.sanitizeNumber(this.consignmentAttributes.discountValue, 0),
|
|
285
286
|
id: this.utilities.sanitizeString(this.filterAttributes.documentId),
|
|
286
287
|
documentId: this.utilities.sanitizeString(this.filterAttributes.documentId),
|
|
288
|
+
shopifyId: this.utilities.sanitizeString(this.attributes.shopifyId),
|
|
287
289
|
gender: this.utilities.sanitizeString(this.filterAttributes.gender),
|
|
288
290
|
handle: this.utilities.sanitizeString(this.attributes.handle),
|
|
289
291
|
imageUrls: this.utilities.sanitzeStringArr(this.attributes.imageUrls),
|
|
@@ -405,7 +407,7 @@ class Product extends Base_1.default {
|
|
|
405
407
|
return acc;
|
|
406
408
|
}, '');
|
|
407
409
|
}
|
|
408
|
-
generateSchemaForTypesense(name = '
|
|
410
|
+
generateSchemaForTypesense(name = 'prod_products_20210108') {
|
|
409
411
|
return {
|
|
410
412
|
default_sorting_field: 'createdAtTimestamp',
|
|
411
413
|
fields: [
|
|
@@ -565,6 +567,11 @@ class Product extends Base_1.default {
|
|
|
565
567
|
name: 'availableForSale',
|
|
566
568
|
type: 'bool',
|
|
567
569
|
},
|
|
570
|
+
{
|
|
571
|
+
facet: false,
|
|
572
|
+
name: 'selectedForClearance',
|
|
573
|
+
type: 'string',
|
|
574
|
+
},
|
|
568
575
|
{
|
|
569
576
|
facet: true,
|
|
570
577
|
name: 'color',
|
|
@@ -597,6 +604,11 @@ class Product extends Base_1.default {
|
|
|
597
604
|
name: 'documentId',
|
|
598
605
|
type: 'string',
|
|
599
606
|
},
|
|
607
|
+
{
|
|
608
|
+
facet: false,
|
|
609
|
+
name: 'shopifyId',
|
|
610
|
+
type: 'string',
|
|
611
|
+
},
|
|
600
612
|
{
|
|
601
613
|
facet: true,
|
|
602
614
|
name: 'gender',
|