rerobe-js-orm 4.6.5 → 4.6.6

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.
@@ -560,7 +560,7 @@ class Product extends Base_1.default {
560
560
  description: this.utilities.sanitizeString(this.attributes.description),
561
561
  discountType: this.utilities.sanitizeString(this.consignmentAttributes.discountType),
562
562
  discountValue: this.utilities.sanitizeNumber(this.consignmentAttributes.discountValue, 0),
563
- stockStatus: 'Unknown',
563
+ stockStatus: '',
564
564
  stockStatusTimestamp: null,
565
565
  id: this.utilities.sanitizeString(this.filterAttributes.documentId),
566
566
  documentId: this.utilities.sanitizeString(this.filterAttributes.documentId),
@@ -633,10 +633,10 @@ class Product extends Base_1.default {
633
633
  const stockTakeLatestSan = stockTakeLatest ? this.utilities.sanitizeMillisTimeStamp(stockTakeLatest) : null;
634
634
  const stockTakeFirstRaw = stockTakeTags.length ? parseLatestAndFirstTs(stockTakeTags).first : 0;
635
635
  const stockTakeFirstSan = stockTakeFirstRaw ? this.utilities.sanitizeMillisTimeStamp(stockTakeFirstRaw) : null;
636
- let stockStatus = 'Unknown';
636
+ let stockStatus = '';
637
637
  let stockStatusTimestamp = null;
638
638
  if (stockTakeLatest === 0 && inTransitLatest === 0) {
639
- stockStatus = 'Unknown';
639
+ stockStatus = '';
640
640
  stockStatusTimestamp = null;
641
641
  }
642
642
  else if (stockTakeLatest >= inTransitLatest) {
@@ -371,7 +371,7 @@ type TypesenseProductObj = {
371
371
  description: string;
372
372
  discountType: string;
373
373
  discountValue: number;
374
- stockStatus: 'In stock' | 'In transit' | 'Unknown';
374
+ stockStatus: 'In stock' | 'In transit' | '';
375
375
  stockStatusTimestamp: number | null;
376
376
  id: string;
377
377
  documentId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "4.6.5",
3
+ "version": "4.6.6",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",