rerobe-js-orm 2.6.4 → 2.6.7
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.
|
@@ -1576,6 +1576,7 @@ const colors = [
|
|
|
1576
1576
|
{ label: 'Yellow', value: 'Yellow' },
|
|
1577
1577
|
];
|
|
1578
1578
|
exports.colors = colors;
|
|
1579
|
+
// Review
|
|
1579
1580
|
const conditions = [
|
|
1580
1581
|
{
|
|
1581
1582
|
label: 'New with tags',
|
|
@@ -1600,11 +1601,25 @@ const conditions = [
|
|
|
1600
1601
|
key: 'goodCondition',
|
|
1601
1602
|
},
|
|
1602
1603
|
{
|
|
1603
|
-
label: '
|
|
1604
|
-
value: '
|
|
1604
|
+
label: 'Worn',
|
|
1605
|
+
value: 'worn',
|
|
1605
1606
|
description: 'Worn frequently, may have defects like smaller stains or discoloration. Many old vintage items are worn frequently, have their flaws but are still cool! Only criteria: Make sure it has no sweat marks, no big stains or odors.',
|
|
1606
1607
|
key: 'fairCondition',
|
|
1607
1608
|
},
|
|
1609
|
+
// {
|
|
1610
|
+
// label: 'Good condition',
|
|
1611
|
+
// value: 'Good condition',
|
|
1612
|
+
// description:
|
|
1613
|
+
// 'This item has been worn over time, but is still well-preserved. Signs of wear is ok, but no defects like smaller stains or holes.',
|
|
1614
|
+
// key: 'goodCondition',
|
|
1615
|
+
// },
|
|
1616
|
+
// {
|
|
1617
|
+
// label: 'Fair condition',
|
|
1618
|
+
// value: 'Fair condition',
|
|
1619
|
+
// description:
|
|
1620
|
+
// 'Worn frequently, may have defects like smaller stains or discoloration. Many old vintage items are worn frequently, have their flaws but are still cool! Only criteria: Make sure it has no sweat marks, no big stains or odors.',
|
|
1621
|
+
// key: 'fairCondition',
|
|
1622
|
+
// },
|
|
1608
1623
|
];
|
|
1609
1624
|
exports.conditions = conditions;
|
|
1610
1625
|
const gender = [
|
|
@@ -5,6 +5,7 @@ class ProductCollection extends Base_1.default {
|
|
|
5
5
|
constructor(props) {
|
|
6
6
|
super();
|
|
7
7
|
this.documentId = (props === null || props === void 0 ? void 0 : props.documentId) || this.utilities.makeRandId(28);
|
|
8
|
+
this.merchantId = (props === null || props === void 0 ? void 0 : props.merchantId) || '';
|
|
8
9
|
this.createdAtTimestamp = (props === null || props === void 0 ? void 0 : props.createdAtTimestamp) || 0;
|
|
9
10
|
this.preTitle = (props === null || props === void 0 ? void 0 : props.preTitle) || '';
|
|
10
11
|
this.title = (props === null || props === void 0 ? void 0 : props.title) || '';
|
|
@@ -19,6 +20,7 @@ class ProductCollection extends Base_1.default {
|
|
|
19
20
|
toObj() {
|
|
20
21
|
const productCollectionObj = {
|
|
21
22
|
documentId: this.documentId,
|
|
23
|
+
merchantId: this.merchantId,
|
|
22
24
|
createdAtTimestamp: this.createdAtTimestamp,
|
|
23
25
|
preTitle: this.preTitle,
|
|
24
26
|
title: this.title,
|
|
@@ -41,6 +43,11 @@ class ProductCollection extends Base_1.default {
|
|
|
41
43
|
name: 'documentId',
|
|
42
44
|
type: 'string',
|
|
43
45
|
},
|
|
46
|
+
{
|
|
47
|
+
facet: true,
|
|
48
|
+
name: 'merchantId',
|
|
49
|
+
type: 'string',
|
|
50
|
+
},
|
|
44
51
|
{
|
|
45
52
|
facet: true,
|
|
46
53
|
name: 'createdAtTimestamp',
|
|
@@ -165,13 +172,19 @@ class ProductCollection extends Base_1.default {
|
|
|
165
172
|
name: 'tags',
|
|
166
173
|
type: 'string[]',
|
|
167
174
|
},
|
|
175
|
+
{
|
|
176
|
+
facet: true,
|
|
177
|
+
name: 'collectionId',
|
|
178
|
+
type: 'string',
|
|
179
|
+
},
|
|
168
180
|
],
|
|
169
|
-
name: '
|
|
181
|
+
name: 'dev_productCollections_20220726',
|
|
170
182
|
};
|
|
171
183
|
}
|
|
172
184
|
toObjForTypesense() {
|
|
173
185
|
const stagedObj = {
|
|
174
186
|
documentId: this.utilities.sanitizeString(this.documentId),
|
|
187
|
+
merchantId: this.utilities.sanitizeString(this.merchantId),
|
|
175
188
|
createdAtTimestamp: this.utilities.sanitizeMillisTimeStamp(this.createdAtTimestamp),
|
|
176
189
|
preTitle: this.utilities.sanitizeString(this.preTitle),
|
|
177
190
|
title: this.utilities.sanitizeString(this.title),
|
|
@@ -194,6 +207,7 @@ class ProductCollection extends Base_1.default {
|
|
|
194
207
|
'refinements.statusRefinement': this.utilities.sanitzeStringArr(this.refinements.statusRefinement),
|
|
195
208
|
'refinements.salesChannelRefinement': this.utilities.sanitzeStringArr(this.refinements.salesChannelRefinement),
|
|
196
209
|
tags: this.utilities.sanitzeStringArr(this.tags),
|
|
210
|
+
collectionId: this.utilities.sanitizeString(this.collectionId),
|
|
197
211
|
};
|
|
198
212
|
return stagedObj;
|
|
199
213
|
}
|
|
@@ -38,6 +38,7 @@ declare type ProductCollectionType = {
|
|
|
38
38
|
createdAtTimestamp?: number;
|
|
39
39
|
updatedAt?: string;
|
|
40
40
|
documentId?: string;
|
|
41
|
+
merchantId?: string;
|
|
41
42
|
preTitle: string;
|
|
42
43
|
title: string;
|
|
43
44
|
subTitle: string;
|
|
@@ -64,6 +65,7 @@ declare type ProductCollectionFormFields = {
|
|
|
64
65
|
};
|
|
65
66
|
declare type TypesenseProductCollectionObj = {
|
|
66
67
|
documentId: string;
|
|
68
|
+
merchantId: string;
|
|
67
69
|
createdAtTimestamp: number;
|
|
68
70
|
preTitle: string;
|
|
69
71
|
title: string;
|
|
@@ -86,4 +88,5 @@ declare type TypesenseProductCollectionObj = {
|
|
|
86
88
|
'refinements.statusRefinement': string[];
|
|
87
89
|
'refinements.salesChannelRefinement': string[];
|
|
88
90
|
tags: string[];
|
|
91
|
+
collectionId: string;
|
|
89
92
|
};
|