rerobe-js-orm 2.4.2 → 2.4.8
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/factories/FormState/Address/AddressFormStateFactory.d.ts +1 -1
- package/lib/factories/FormState/Address/AddressFormStateFactory.js +1 -1
- package/lib/factories/FormState/Merchant/MerchantFormStateFactory.d.ts +1 -1
- package/lib/factories/FormState/Merchant/MerchantFormStateFactory.js +1 -1
- package/lib/factories/FormState/Order/OrderFormStateFactory.d.ts +1 -1
- package/lib/factories/FormState/Order/OrderFormStateFactory.js +1 -1
- package/lib/factories/FormState/Order/RefundFormStateFactory.d.ts +5 -0
- package/lib/factories/FormState/Order/RefundFormStateFactory.js +10 -0
- package/lib/factories/FormState/PickUp/PickUpFormStateFactory.d.ts +1 -1
- package/lib/factories/FormState/PickUp/PickUpFormStateFactory.js +1 -1
- package/lib/factories/FormState/Product/ProductFormStateFactory.d.ts +2 -2
- package/lib/factories/FormState/Product/ProductFormStateFactory.js +3 -3
- package/lib/factories/FormState/ProductCollection/ProductCollectionFormStateFactory.d.ts +5 -0
- package/lib/factories/FormState/ProductCollection/ProductCollectionFormStateFactory.js +10 -0
- package/lib/factories/FormState/SellRequest/SellRequestFormStateFactory.d.ts +1 -1
- package/lib/factories/FormState/SellRequest/SellRequestFormStateFactory.js +1 -1
- package/lib/factories/FormState/User/UserFormStateFactory.d.ts +1 -1
- package/lib/factories/FormState/User/UserFormStateFactory.js +1 -1
- package/lib/factories/Merchant/MerchantFactory.d.ts +1 -1
- package/lib/factories/Merchant/MerchantFromFormState.d.ts +1 -1
- package/lib/factories/Merchant/MerchantFromFormState.js +13 -1
- package/lib/factories/Order/OrderFactory.d.ts +1 -1
- package/lib/factories/Order/OrderFromApp.js +4 -2
- package/lib/factories/Order/OrderFromFormState.d.ts +1 -1
- package/lib/factories/Order/OrderFromFormState.js +17 -15
- package/lib/factories/Order/OrderFromShopifyWebhook.js +126 -10
- package/lib/factories/Order/RefundFactory.d.ts +5 -0
- package/lib/factories/Order/RefundFactory.js +6 -0
- package/lib/factories/Order/RefundFromFormState.d.ts +5 -0
- package/lib/factories/Order/RefundFromFormState.js +29 -0
- package/lib/factories/PayoutAccount/PayoutAccountFromFormState.d.ts +1 -1
- package/lib/factories/Product/ProductFactory.d.ts +1 -1
- package/lib/factories/Product/ProductFromFormState.d.ts +1 -1
- package/lib/factories/Product/ProductFromFormState.js +29 -3
- package/lib/factories/ProductCollection/ProductCollectionFactory.d.ts +5 -0
- package/lib/factories/ProductCollection/ProductCollectionFactory.js +6 -0
- package/lib/factories/ProductCollection/ProductCollectionFromFormState.d.ts +5 -0
- package/lib/factories/ProductCollection/ProductCollectionFromFormState.js +29 -0
- package/lib/factories/User/UserFactory.d.ts +1 -1
- package/lib/factories/User/UserFromFormState.d.ts +1 -1
- package/lib/{models/FormStates → form-states}/Address/AddressFormState.d.ts +0 -0
- package/lib/{models/FormStates → form-states}/Address/AddressFormState.js +1 -3
- package/lib/{models/FormStates → form-states}/FormState.d.ts +1 -1
- package/lib/{models/FormStates → form-states}/FormState.js +1 -1
- package/lib/{models/FormStates → form-states}/Merchant/MerchantFormState.d.ts +1 -1
- package/lib/{models/FormStates → form-states}/Merchant/MerchantFormState.js +19 -4
- package/lib/form-states/Merchant/WebhookFormState.d.ts +8 -0
- package/lib/form-states/Merchant/WebhookFormState.js +49 -0
- package/lib/{models/FormStates → form-states}/Merchant/options.d.ts +8 -0
- package/lib/{models/FormStates → form-states}/Merchant/options.js +15 -2
- package/lib/{models/FormStates → form-states}/Order/OrderFormState.d.ts +2 -2
- package/lib/{models/FormStates → form-states}/Order/OrderFormState.js +12 -13
- package/lib/form-states/Order/RefundFormState.d.ts +17 -0
- package/lib/form-states/Order/RefundFormState.js +122 -0
- package/lib/{models/FormStates → form-states}/Order/options.d.ts +0 -0
- package/lib/{models/FormStates → form-states}/Order/options.js +1 -1
- package/lib/{models/FormStates → form-states}/PayoutAccount/PayoutAccountFormState.d.ts +1 -1
- package/lib/{models/FormStates → form-states}/PayoutAccount/PayoutAccountFormState.js +2 -2
- package/lib/{models/FormStates → form-states}/PayoutAccount/options.d.ts +0 -0
- package/lib/{models/FormStates → form-states}/PayoutAccount/options.js +0 -0
- package/lib/{models/FormStates → form-states}/PickUp/PickUpFormState.d.ts +0 -0
- package/lib/{models/FormStates → form-states}/PickUp/PickUpFormState.js +0 -0
- package/lib/{models/FormStates → form-states}/Product/ProductFormState.d.ts +8 -2
- package/lib/{models/FormStates → form-states}/Product/ProductFormState.js +24 -4
- package/lib/{models/FormStates → form-states}/Product/options.d.ts +0 -0
- package/lib/form-states/Product/options.js +3455 -0
- package/lib/form-states/ProductCollection/ProductCollectionFormState.d.ts +12 -0
- package/lib/form-states/ProductCollection/ProductCollectionFormState.js +80 -0
- package/lib/{models/FormStates → form-states}/SellRequest/SellRequestFormState.d.ts +0 -0
- package/lib/{models/FormStates → form-states}/SellRequest/SellRequestFormState.js +1 -1
- package/lib/{models/FormStates → form-states}/User/UserFormState.d.ts +1 -1
- package/lib/{models/FormStates → form-states}/User/UserFormState.js +2 -2
- package/lib/helpers/AnalyticsHelpers.js +3 -3
- package/lib/helpers/OrderHelpers.d.ts +5 -0
- package/lib/helpers/OrderHelpers.js +107 -0
- package/lib/helpers/ProductCollectionHelpers.d.ts +4 -0
- package/lib/helpers/ProductCollectionHelpers.js +27 -0
- package/lib/helpers/ReRobeProductHelpers.d.ts +6 -0
- package/lib/helpers/ReRobeProductHelpers.js +221 -41
- package/lib/helpers/Utilities.d.ts +1 -0
- package/lib/helpers/Utilities.js +10 -0
- package/lib/index.d.ts +7 -3
- package/lib/index.js +11 -3
- package/lib/models/Merchant.d.ts +16 -0
- package/lib/models/Merchant.js +40 -0
- package/lib/models/Order.d.ts +4 -0
- package/lib/models/Order.js +7 -1
- package/lib/models/Product.d.ts +1 -0
- package/lib/models/Product.js +37 -3
- package/lib/models/ProductCollection.d.ts +15 -0
- package/lib/models/ProductCollection.js +34 -0
- package/lib/models/Refund.d.ts +13 -0
- package/lib/models/Refund.js +40 -0
- package/lib/models/User.js +7 -2
- package/lib/types/merchant-types.d.ts +46 -13
- package/lib/types/product-collection-types.d.ts +63 -0
- package/lib/types/product-collection-types.js +13 -0
- package/lib/types/rerobe-order-types.d.ts +88 -26
- package/lib/types/rerobe-product-types.d.ts +30 -0
- package/lib/types/rerobe-user-types.d.ts +27 -21
- package/lib/types/rerobe-user-types.js +0 -1
- package/package.json +3 -2
- package/lib/models/FormStates/Product/options.js +0 -3453
package/lib/models/Product.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const Base_1 = require("../Base");
|
|
4
|
-
const options_1 = require("../
|
|
4
|
+
const options_1 = require("../form-states/Product/options");
|
|
5
5
|
class Product extends Base_1.default {
|
|
6
6
|
constructor(props) {
|
|
7
7
|
super();
|
|
@@ -29,12 +29,13 @@ class Product extends Base_1.default {
|
|
|
29
29
|
quantity: (props === null || props === void 0 ? void 0 : props.quantity) || 0,
|
|
30
30
|
merchants: (props === null || props === void 0 ? void 0 : props.merchants) || [],
|
|
31
31
|
editorAuthorizations: (props === null || props === void 0 ? void 0 : props.editorAuthorizations) || {},
|
|
32
|
+
rfidTag: (props === null || props === void 0 ? void 0 : props.rfidTag) || '',
|
|
32
33
|
// dateInQualityControlTimeStamp: props?.dateInQualityControlTimeStamp || 0,
|
|
33
34
|
// dateInPendingPublicationTimeStamp: props?.dateInPendingPublicationTimeStamp || 0,
|
|
34
35
|
// dateListedOnlineTimeStamp: props?.dateListedOnlineTimeStamp || 0,
|
|
35
36
|
};
|
|
36
37
|
this.filterAttributes = {
|
|
37
|
-
documentId: (props === null || props === void 0 ? void 0 : props.documentId) ||
|
|
38
|
+
documentId: (props === null || props === void 0 ? void 0 : props.documentId) || this.utilities.makeRandId(28),
|
|
38
39
|
brand: (props === null || props === void 0 ? void 0 : props.brand) || '',
|
|
39
40
|
color: (props === null || props === void 0 ? void 0 : props.color) || '',
|
|
40
41
|
gender: (props === null || props === void 0 ? void 0 : props.gender) || '',
|
|
@@ -48,6 +49,8 @@ class Product extends Base_1.default {
|
|
|
48
49
|
priceRange: (props === null || props === void 0 ? void 0 : props.priceRange) || '',
|
|
49
50
|
condition: (props === null || props === void 0 ? void 0 : props.condition) || '',
|
|
50
51
|
measurements: (props === null || props === void 0 ? void 0 : props.measurements) || {},
|
|
52
|
+
featuredCollections: (props === null || props === void 0 ? void 0 : props.featuredCollections) || [],
|
|
53
|
+
tags: (props === null || props === void 0 ? void 0 : props.tags) || [],
|
|
51
54
|
};
|
|
52
55
|
this.consignmentAttributes = {
|
|
53
56
|
sellRequestImageUrls: (props === null || props === void 0 ? void 0 : props.sellRequestImageUrls) || [],
|
|
@@ -76,13 +79,44 @@ class Product extends Base_1.default {
|
|
|
76
79
|
discountType: (props === null || props === void 0 ? void 0 : props.discountType) || '',
|
|
77
80
|
discountValue: (props === null || props === void 0 ? void 0 : props.discountValue) || '',
|
|
78
81
|
selectedForClearance: (props === null || props === void 0 ? void 0 : props.selectedForClearance) || '',
|
|
82
|
+
locationIds: (props === null || props === void 0 ? void 0 : props.locationIds) || [],
|
|
83
|
+
};
|
|
84
|
+
this.timestampAttributes = {
|
|
85
|
+
sellRequestReviewDraftTimestamp: (props === null || props === void 0 ? void 0 : props.sellRequestReviewDraftTimestamp)
|
|
86
|
+
? Number(props === null || props === void 0 ? void 0 : props.sellRequestReviewDraftTimestamp)
|
|
87
|
+
: null,
|
|
88
|
+
sellRequestReviewTimestamp: (props === null || props === void 0 ? void 0 : props.sellRequestReviewTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.sellRequestReviewTimestamp) : null,
|
|
89
|
+
rejectedTimestamp: (props === null || props === void 0 ? void 0 : props.rejectedTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.rejectedTimestamp) : null,
|
|
90
|
+
holdTimestamp: (props === null || props === void 0 ? void 0 : props.holdTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.holdTimestamp) : null,
|
|
91
|
+
acceptedTimestamp: (props === null || props === void 0 ? void 0 : props.acceptedTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.acceptedTimestamp) : null,
|
|
92
|
+
sellerToDropOffTimestamp: (props === null || props === void 0 ? void 0 : props.sellerToDropOffTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.sellerToDropOffTimestamp) : null,
|
|
93
|
+
sellerToShipTimestamp: (props === null || props === void 0 ? void 0 : props.sellerToShipTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.sellerToShipTimestamp) : null,
|
|
94
|
+
sellerToGetPickUpTimestamp: (props === null || props === void 0 ? void 0 : props.sellerToGetPickUpTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.sellerToGetPickUpTimestamp) : null,
|
|
95
|
+
qualityControlTimestamp: (props === null || props === void 0 ? void 0 : props.qualityControlTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.qualityControlTimestamp) : null,
|
|
96
|
+
pendingPublicationTimestamp: (props === null || props === void 0 ? void 0 : props.pendingPublicationTimestamp)
|
|
97
|
+
? Number(props === null || props === void 0 ? void 0 : props.pendingPublicationTimestamp)
|
|
98
|
+
: null,
|
|
99
|
+
listedTimestamp: (props === null || props === void 0 ? void 0 : props.listedTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.listedTimestamp) : null,
|
|
100
|
+
clearanceTimestamp: (props === null || props === void 0 ? void 0 : props.clearanceTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.clearanceTimestamp) : null,
|
|
101
|
+
reservedTimestamp: (props === null || props === void 0 ? void 0 : props.reservedTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.reservedTimestamp) : null,
|
|
102
|
+
soldTimestamp: (props === null || props === void 0 ? void 0 : props.soldTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.soldTimestamp) : null,
|
|
103
|
+
returnedTimestamp: (props === null || props === void 0 ? void 0 : props.returnedTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.returnedTimestamp) : null,
|
|
104
|
+
soldSellerToBePaidTimestamp: (props === null || props === void 0 ? void 0 : props.soldSellerToBePaidTimestamp)
|
|
105
|
+
? Number(props === null || props === void 0 ? void 0 : props.soldSellerToBePaidTimestamp)
|
|
106
|
+
: null,
|
|
107
|
+
soldSellerPaidTimestamp: (props === null || props === void 0 ? void 0 : props.soldSellerPaidTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.soldSellerPaidTimestamp) : null,
|
|
108
|
+
sellerSelfRejectTimestamp: (props === null || props === void 0 ? void 0 : props.sellerSelfRejectTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.sellerSelfRejectTimestamp) : null,
|
|
109
|
+
liquidationRequestedTimestamp: (props === null || props === void 0 ? void 0 : props.liquidationRequestedTimestamp)
|
|
110
|
+
? Number(props === null || props === void 0 ? void 0 : props.liquidationRequestedTimestamp)
|
|
111
|
+
: null,
|
|
112
|
+
sellerLiquidatedTimestamp: (props === null || props === void 0 ? void 0 : props.sellerLiquidatedTimestamp) ? Number(props === null || props === void 0 ? void 0 : props.sellerLiquidatedTimestamp) : null,
|
|
79
113
|
};
|
|
80
114
|
}
|
|
81
115
|
toPartialObj() {
|
|
82
116
|
return Object.assign(Object.assign({}, this.attributes), this.filterAttributes);
|
|
83
117
|
}
|
|
84
118
|
toObj() {
|
|
85
|
-
return Object.assign(Object.assign(Object.assign({}, this.attributes), this.filterAttributes), this.consignmentAttributes);
|
|
119
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({}, this.attributes), this.filterAttributes), this.consignmentAttributes), this.timestampAttributes);
|
|
86
120
|
}
|
|
87
121
|
toProductInputObjForShopify(location) {
|
|
88
122
|
const productInputObj = {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
export default class ProductCollection extends Base {
|
|
3
|
+
documentId: string;
|
|
4
|
+
preTitle: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subTitle: string;
|
|
7
|
+
description: string;
|
|
8
|
+
type: CollectionType;
|
|
9
|
+
imgUrl: string;
|
|
10
|
+
refinements: ProductRefinements;
|
|
11
|
+
tags: string[];
|
|
12
|
+
collectionId: string;
|
|
13
|
+
constructor(props?: any);
|
|
14
|
+
toObj(): ProductCollectionType;
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Base_1 = require("../Base");
|
|
4
|
+
class ProductCollection extends Base_1.default {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super();
|
|
7
|
+
this.documentId = (props === null || props === void 0 ? void 0 : props.documentId) || this.utilities.makeRandId(28);
|
|
8
|
+
this.preTitle = (props === null || props === void 0 ? void 0 : props.preTitle) || '';
|
|
9
|
+
this.title = (props === null || props === void 0 ? void 0 : props.title) || '';
|
|
10
|
+
this.subTitle = (props === null || props === void 0 ? void 0 : props.subTitle) || '';
|
|
11
|
+
this.description = (props === null || props === void 0 ? void 0 : props.description) || '';
|
|
12
|
+
this.type = (props === null || props === void 0 ? void 0 : props.type) || 'AUTOMATED';
|
|
13
|
+
this.imgUrl = (props === null || props === void 0 ? void 0 : props.imgUrl) || '';
|
|
14
|
+
this.refinements = (props === null || props === void 0 ? void 0 : props.refinements) || {};
|
|
15
|
+
this.tags = (props === null || props === void 0 ? void 0 : props.tags) || [];
|
|
16
|
+
this.collectionId = (props === null || props === void 0 ? void 0 : props.collectionId) || '';
|
|
17
|
+
}
|
|
18
|
+
toObj() {
|
|
19
|
+
const productCollectionObj = {
|
|
20
|
+
documentId: this.documentId,
|
|
21
|
+
preTitle: this.preTitle,
|
|
22
|
+
title: this.title,
|
|
23
|
+
subTitle: this.subTitle,
|
|
24
|
+
description: this.description,
|
|
25
|
+
type: this.type,
|
|
26
|
+
imgUrl: this.imgUrl,
|
|
27
|
+
refinements: this.refinements,
|
|
28
|
+
tags: this.tags,
|
|
29
|
+
collectionId: this.collectionId,
|
|
30
|
+
};
|
|
31
|
+
return productCollectionObj;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.default = ProductCollection;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Base from '../Base';
|
|
2
|
+
export default class Refund extends Base {
|
|
3
|
+
documentId: string;
|
|
4
|
+
totalRefunded: Money;
|
|
5
|
+
subtotalRefunded: Money;
|
|
6
|
+
refundDiscount?: Money;
|
|
7
|
+
refundShipping?: Money;
|
|
8
|
+
totalTax?: Money;
|
|
9
|
+
refundLineItems: RefundLineItem[];
|
|
10
|
+
note?: string;
|
|
11
|
+
constructor(props?: any);
|
|
12
|
+
toObj(): OrderRefund;
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const Base_1 = require("../Base");
|
|
4
|
+
class Refund extends Base_1.default {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super();
|
|
7
|
+
this.documentId = (props === null || props === void 0 ? void 0 : props.documentId) || '';
|
|
8
|
+
this.totalRefunded = (props === null || props === void 0 ? void 0 : props.totalRefunded) || {
|
|
9
|
+
amount: 0,
|
|
10
|
+
};
|
|
11
|
+
this.subtotalRefunded = (props === null || props === void 0 ? void 0 : props.subtotalRefunded) || {
|
|
12
|
+
amount: 0,
|
|
13
|
+
};
|
|
14
|
+
this.refundDiscount = (props === null || props === void 0 ? void 0 : props.refundDiscount) || {
|
|
15
|
+
amount: 0,
|
|
16
|
+
};
|
|
17
|
+
this.refundShipping = (props === null || props === void 0 ? void 0 : props.refundShipping) || {
|
|
18
|
+
amount: 0,
|
|
19
|
+
};
|
|
20
|
+
this.totalTax = (props === null || props === void 0 ? void 0 : props.totalTax) || {
|
|
21
|
+
amount: 0,
|
|
22
|
+
};
|
|
23
|
+
this.refundLineItems = (props === null || props === void 0 ? void 0 : props.refundLineItems) || [];
|
|
24
|
+
this.note = (props === null || props === void 0 ? void 0 : props.note) || '';
|
|
25
|
+
}
|
|
26
|
+
toObj() {
|
|
27
|
+
const refundObj = {
|
|
28
|
+
documentId: this.documentId,
|
|
29
|
+
totalRefunded: this.totalRefunded,
|
|
30
|
+
refundDiscount: this.refundDiscount,
|
|
31
|
+
subtotalRefunded: this.subtotalRefunded,
|
|
32
|
+
refundShipping: this.refundShipping,
|
|
33
|
+
totalTax: this.totalTax,
|
|
34
|
+
refundLineItems: this.refundLineItems,
|
|
35
|
+
note: this.note,
|
|
36
|
+
};
|
|
37
|
+
return refundObj;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = Refund;
|
package/lib/models/User.js
CHANGED
|
@@ -85,7 +85,7 @@ class User extends Base_1.default {
|
|
|
85
85
|
tags: this.tags,
|
|
86
86
|
notes: this.notes,
|
|
87
87
|
lastLogin: this.lastLogin,
|
|
88
|
-
emailVerified: this.emailVerified
|
|
88
|
+
emailVerified: this.emailVerified,
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
toCustomerUpdateInputObjForShopify() {
|
|
@@ -133,6 +133,7 @@ class User extends Base_1.default {
|
|
|
133
133
|
toCustomerInputObjForRibbn() {
|
|
134
134
|
const customerInput = {
|
|
135
135
|
uid: this.uid,
|
|
136
|
+
gid: this.gid,
|
|
136
137
|
firstName: this.firstName,
|
|
137
138
|
lastName: this.lastName,
|
|
138
139
|
displayName: this.displayName,
|
|
@@ -149,7 +150,11 @@ class User extends Base_1.default {
|
|
|
149
150
|
notes: this.notes,
|
|
150
151
|
ordersCount: this.ordersCount,
|
|
151
152
|
amountSpent: this.amountSpent,
|
|
152
|
-
emailVerified: this.emailVerified
|
|
153
|
+
emailVerified: this.emailVerified,
|
|
154
|
+
isSeller: this.isSeller,
|
|
155
|
+
devicePlatform: this.devicePlatform,
|
|
156
|
+
lastLogin: this.lastLogin,
|
|
157
|
+
referralCode: this.referralCode,
|
|
153
158
|
};
|
|
154
159
|
return customerInput;
|
|
155
160
|
}
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
declare type MerchantObj = {
|
|
2
2
|
name: string;
|
|
3
|
-
id
|
|
4
|
-
type
|
|
5
|
-
paymentTier
|
|
6
|
-
contactEmail
|
|
7
|
-
senderEmail
|
|
8
|
-
industry
|
|
9
|
-
legalName
|
|
10
|
-
phone
|
|
11
|
-
address
|
|
12
|
-
currency
|
|
13
|
-
timeZone
|
|
14
|
-
unitSystem
|
|
15
|
-
defaultWeightUnit
|
|
3
|
+
id: string;
|
|
4
|
+
type: MerchantTypes | string;
|
|
5
|
+
paymentTier: RibbnPaymentTiers | string;
|
|
6
|
+
contactEmail: string;
|
|
7
|
+
senderEmail: string;
|
|
8
|
+
industry: MerchantIndustryTypes | string | null;
|
|
9
|
+
legalName: string;
|
|
10
|
+
phone: string;
|
|
11
|
+
address: AddressInput | null;
|
|
12
|
+
currency: string;
|
|
13
|
+
timeZone: string;
|
|
14
|
+
unitSystem: UnitSystemTypes | string | null;
|
|
15
|
+
defaultWeightUnit: MetricWeightTypes | ImperialWeightTypes | string | null;
|
|
16
|
+
defaultLocation: string;
|
|
17
|
+
documentId: string;
|
|
18
|
+
numCustomers: number;
|
|
19
|
+
numFiles: number;
|
|
20
|
+
numOrders: number;
|
|
21
|
+
numProducts: number;
|
|
22
|
+
orderTags: string[];
|
|
23
|
+
theme: MerchantTheme;
|
|
24
|
+
webhooks: MerchantWebHook[];
|
|
25
|
+
webshopTenantId: string;
|
|
26
|
+
sharedSecret: string;
|
|
16
27
|
};
|
|
17
28
|
declare type MerchantTypes = 'INDIVIDUAL' | 'BUSINESS';
|
|
18
29
|
declare type RibbnPaymentTiers = 'FREE' | 'TIER_ONE';
|
|
@@ -20,6 +31,23 @@ declare type MerchantIndustryTypes = 'BEAUTY' | 'CLOTHING' | 'ELECTRONICS' | 'FU
|
|
|
20
31
|
declare type UnitSystemTypes = 'METRIC' | 'IMPERIAL';
|
|
21
32
|
declare type MetricWeightTypes = 'KILOGRAM' | 'GRAM';
|
|
22
33
|
declare type ImperialWeightTypes = 'POUND' | 'OUNCE';
|
|
34
|
+
declare type MerchantTheme = {
|
|
35
|
+
bgColor: string;
|
|
36
|
+
bgFooterColor: string;
|
|
37
|
+
errorColor: string;
|
|
38
|
+
footerTextColor: string;
|
|
39
|
+
layoutType: string;
|
|
40
|
+
logoImageSrc: string;
|
|
41
|
+
logoImageWidth: string;
|
|
42
|
+
primaryColor: string;
|
|
43
|
+
successColor: string;
|
|
44
|
+
textColor: string;
|
|
45
|
+
warningColor: string;
|
|
46
|
+
};
|
|
47
|
+
declare type MerchantWebHook = {
|
|
48
|
+
event: string;
|
|
49
|
+
callBackUrl: string;
|
|
50
|
+
};
|
|
23
51
|
declare type MerchantFormFields = {
|
|
24
52
|
name: TextInputFormField<string>;
|
|
25
53
|
type: SingleSelectFormField<string>;
|
|
@@ -34,4 +62,9 @@ declare type MerchantFormFields = {
|
|
|
34
62
|
timeZone: SingleSelectFormField<string>;
|
|
35
63
|
unitSystem: SingleSelectFormField<string>;
|
|
36
64
|
defaultWeightUnit: SingleSelectFormField<string>;
|
|
65
|
+
webhooks: MultiSelectFormField<MerchantWebHook>;
|
|
66
|
+
};
|
|
67
|
+
declare type WebhookFormFields = {
|
|
68
|
+
event: SingleSelectFormField<string>;
|
|
69
|
+
callBackUrl: TextInputFormField<string>;
|
|
37
70
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare type ProductAttrRefinementsOptions = 'brand' | 'clothingSize' | 'color' | 'condition' | 'gender' | 'jeanSize' | 'materialComposition' | 'priceRange' | 'productCategory' | 'productType' | 'productStyle' | 'shoeSize' | 'status' | 'salesChannel';
|
|
2
|
+
declare type FiltersOptions = 'brandRefinement' | 'clothingSizeRefinement' | 'colorRefinement' | 'conditionRefinement' | 'genderRefinement' | 'jeanSizeRefinement' | 'materialCompositionRefinement' | 'priceRangeRefinement' | 'productCategoryRefinement' | 'productTypeRefinement' | 'productStyleRefinement' | 'shoeSizeRefinement' | 'statusRefinement' | 'salesChannelRefinement';
|
|
3
|
+
declare type FiltersObj = {
|
|
4
|
+
brand?: string[];
|
|
5
|
+
clothingSize?: string[];
|
|
6
|
+
color?: string[];
|
|
7
|
+
condition?: string[];
|
|
8
|
+
gender?: string[];
|
|
9
|
+
jeanSize?: string[];
|
|
10
|
+
materialComposition?: string[];
|
|
11
|
+
priceRange?: string[];
|
|
12
|
+
productCategory?: string[];
|
|
13
|
+
productType?: string[];
|
|
14
|
+
productStyle?: string[];
|
|
15
|
+
shoeSize?: string[];
|
|
16
|
+
status?: string[];
|
|
17
|
+
salesChannel?: string[];
|
|
18
|
+
};
|
|
19
|
+
interface ProductRefinements {
|
|
20
|
+
brandRefinement?: string[];
|
|
21
|
+
clothingSizeRefinement?: string[];
|
|
22
|
+
colorRefinement?: string[];
|
|
23
|
+
conditionRefinement?: string[];
|
|
24
|
+
genderRefinement?: string[];
|
|
25
|
+
jeanSizeRefinement?: string[];
|
|
26
|
+
materialCompositionRefinement?: string[];
|
|
27
|
+
priceRangeRefinement?: string[];
|
|
28
|
+
productCategoryRefinement?: string[];
|
|
29
|
+
productTypeRefinement?: string[];
|
|
30
|
+
productStyleRefinement?: string[];
|
|
31
|
+
shoeSizeRefinement?: string[];
|
|
32
|
+
statusRefinement?: string[];
|
|
33
|
+
salesChannelRefinement?: string[];
|
|
34
|
+
}
|
|
35
|
+
declare type CollectionType = 'AUTOMATED' | 'MANUAL';
|
|
36
|
+
declare type ProductCollectionType = {
|
|
37
|
+
createdAt?: string;
|
|
38
|
+
updatedAt?: string;
|
|
39
|
+
documentId?: string;
|
|
40
|
+
preTitle: string;
|
|
41
|
+
title: string;
|
|
42
|
+
subTitle: string;
|
|
43
|
+
description: string;
|
|
44
|
+
type: CollectionType;
|
|
45
|
+
imgUrl: string;
|
|
46
|
+
refinements: ProductRefinements;
|
|
47
|
+
tags: string[];
|
|
48
|
+
collectionId: string;
|
|
49
|
+
};
|
|
50
|
+
declare type CompleteProductCollection = ProductCollectionType & {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
declare type ProductCollectionFormFields = {
|
|
54
|
+
preTitle: TextInputFormField<string>;
|
|
55
|
+
title: TextInputFormField<string>;
|
|
56
|
+
subTitle: TextInputFormField<string>;
|
|
57
|
+
description: TextInputFormField<string>;
|
|
58
|
+
type: SingleSelectFormField<CollectionType>;
|
|
59
|
+
imgUrl: TextInputFormField<string>;
|
|
60
|
+
refinements: SingleSelectFormField<ProductRefinements>;
|
|
61
|
+
tags: MultiSelectFormField<string>;
|
|
62
|
+
collectionId: TextInputFormField<string>;
|
|
63
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// //from shopify product collection
|
|
3
|
+
// type ComparisonOptions =
|
|
4
|
+
// | 'IS_EQUAL_TO'
|
|
5
|
+
// | 'IS_NOT_EQUAL_TO'
|
|
6
|
+
// | 'IS_GREATER_THAN'
|
|
7
|
+
// | 'IS_LESS_THAN'
|
|
8
|
+
// | 'STARTS_WITH'
|
|
9
|
+
// | 'ENDS_WITH'
|
|
10
|
+
// | 'CONTAINS'
|
|
11
|
+
// | 'DOES_NOT_CONTAINS'
|
|
12
|
+
// | 'IS_EMPTY'
|
|
13
|
+
// | 'IS_NOT_EMPTY';
|
|
@@ -32,13 +32,14 @@ declare type ReRobeOrderObj = {
|
|
|
32
32
|
paymentType?: ReRobePaymentTypes | string;
|
|
33
33
|
paymentMethod?: string | null;
|
|
34
34
|
paymentDetails?: PaymentDetails | null;
|
|
35
|
-
salesChannel?: SalesChannels | string;
|
|
35
|
+
salesChannel?: SalesChannels | string | null;
|
|
36
36
|
shippingAddress?: AddressInput;
|
|
37
37
|
shippingDiscountAllocations: DiscountAllocation[];
|
|
38
38
|
shippingLine?: OrderShippingLine;
|
|
39
39
|
shippingType: ReRobeShippingAndDeliveryTypes | string;
|
|
40
40
|
shopifyId?: string | null;
|
|
41
41
|
shopifyOrderNumber?: number | null;
|
|
42
|
+
ribbnOrderNumber?: number | null;
|
|
42
43
|
subtotalPrice: Money;
|
|
43
44
|
tags?: string[] | string | null;
|
|
44
45
|
totalDiscount: Money;
|
|
@@ -58,6 +59,29 @@ declare type ReRobeOrderObj = {
|
|
|
58
59
|
notes?: string;
|
|
59
60
|
customerName?: string;
|
|
60
61
|
merchantId?: string;
|
|
62
|
+
refunds?: OrderRefund[];
|
|
63
|
+
createdAt?: string;
|
|
64
|
+
updatedAt?: string;
|
|
65
|
+
};
|
|
66
|
+
declare type OrderWithRefundsAndFulfillmentsInfoObj = {
|
|
67
|
+
documentId?: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
currencyCode: string;
|
|
70
|
+
fulfillmentStatus?: FulfillmentStatusTypes | string;
|
|
71
|
+
totalDiscount: Money;
|
|
72
|
+
totalPrice: Money;
|
|
73
|
+
totalRefunded?: Money;
|
|
74
|
+
totalShippingPrice?: Money;
|
|
75
|
+
totalTax?: Money;
|
|
76
|
+
subtotalPrice: Money;
|
|
77
|
+
discountType: string;
|
|
78
|
+
shippingRate: string;
|
|
79
|
+
refunds: OrderRefund[];
|
|
80
|
+
activeLineItems: ReRobeOrderLineItem[];
|
|
81
|
+
unfulfilledItems: ReRobeOrderLineItem[];
|
|
82
|
+
fulfilledItems: ReRobeOrderLineItem[];
|
|
83
|
+
refundedItems: ReRobeOrderLineItem[];
|
|
84
|
+
canceledItems: ReRobeOrderLineItem[];
|
|
61
85
|
};
|
|
62
86
|
declare type OrderInput = {
|
|
63
87
|
id?: string | null;
|
|
@@ -72,10 +96,12 @@ declare type OrderInput = {
|
|
|
72
96
|
products: CompleteProduct[];
|
|
73
97
|
appliedDiscount?: AppliedDiscount;
|
|
74
98
|
shopifyId?: string | null;
|
|
99
|
+
ribbnOrderNumber?: number | null;
|
|
75
100
|
shopifyOrderNumber?: number | null;
|
|
76
101
|
state?: ReRobeOrderStates | string | null;
|
|
77
102
|
userId?: string | null;
|
|
78
103
|
email?: string | null;
|
|
104
|
+
customerName?: string | null;
|
|
79
105
|
tags?: string[];
|
|
80
106
|
salesChannel?: SalesChannels | string | null;
|
|
81
107
|
paymentDetails?: PaymentDetails | null;
|
|
@@ -171,7 +197,7 @@ declare type MoneyBag = {
|
|
|
171
197
|
};
|
|
172
198
|
interface OrderLineItem {
|
|
173
199
|
title: string;
|
|
174
|
-
quantity: number;
|
|
200
|
+
quantity: number | string;
|
|
175
201
|
variant: ProductVariant | null;
|
|
176
202
|
originalTotalPrice?: Money;
|
|
177
203
|
originalUnitPrice?: Money;
|
|
@@ -182,6 +208,10 @@ interface ReRobeOrderLineItem extends OrderLineItem {
|
|
|
182
208
|
brand?: string | null;
|
|
183
209
|
productId?: string | null;
|
|
184
210
|
shopifyProductId?: string | number | null;
|
|
211
|
+
refundedQuantity?: number | string;
|
|
212
|
+
canceledQuantity?: number | string;
|
|
213
|
+
fulfilledQuantity?: number | string;
|
|
214
|
+
unfulfilledQuantity?: number | string;
|
|
185
215
|
}
|
|
186
216
|
declare type OrderLineItemConnection = {
|
|
187
217
|
edges: OrderLineItemEdge[];
|
|
@@ -267,26 +297,24 @@ declare type CustomerFromAdminApi = {
|
|
|
267
297
|
phone?: string | null;
|
|
268
298
|
};
|
|
269
299
|
declare type OrderRefund = {
|
|
270
|
-
|
|
271
|
-
order?: ShopifyAdminOrderObj;
|
|
300
|
+
documentId: string;
|
|
272
301
|
createdAt?: string;
|
|
273
|
-
note?: string;
|
|
274
|
-
totalRefundedSet?: Money;
|
|
275
302
|
updatedAt?: string;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
303
|
+
totalRefunded: Money;
|
|
304
|
+
subtotalRefunded?: Money;
|
|
305
|
+
refundDiscount?: Money;
|
|
306
|
+
refundShipping?: Money;
|
|
307
|
+
totalTax?: Money;
|
|
308
|
+
refundLineItems: RefundLineItem[];
|
|
309
|
+
note?: string;
|
|
283
310
|
};
|
|
284
311
|
declare type RefundLineItem = {
|
|
285
|
-
lineItem:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
312
|
+
lineItem: ReRobeOrderLineItem;
|
|
313
|
+
quantityRefund: number;
|
|
314
|
+
quantityCancel: number;
|
|
315
|
+
discountRefund?: Money;
|
|
316
|
+
subtotalRefund?: Money;
|
|
317
|
+
subtotalCanceled?: Money;
|
|
290
318
|
};
|
|
291
319
|
declare type TaxLine = {
|
|
292
320
|
title: string;
|
|
@@ -320,7 +348,7 @@ declare type FulfillmentLineItemEdge = {
|
|
|
320
348
|
node: FulfillmentLineItem;
|
|
321
349
|
};
|
|
322
350
|
declare type FulfillmentLineItem = {
|
|
323
|
-
lineItem:
|
|
351
|
+
lineItem: ReRobeOrderLineItem;
|
|
324
352
|
quantity: number;
|
|
325
353
|
};
|
|
326
354
|
declare type FulfillmentAdmin = {
|
|
@@ -330,7 +358,7 @@ declare type FulfillmentAdmin = {
|
|
|
330
358
|
displayStatus?: FulfillmentDisplayStatusTypes;
|
|
331
359
|
deliveredAt?: string;
|
|
332
360
|
estimatedDeliveryAt?: string;
|
|
333
|
-
fulfillmentLineItems: FulfillmentLineItemConnection;
|
|
361
|
+
fulfillmentLineItems: FulfillmentLineItem[] | FulfillmentLineItemConnection;
|
|
334
362
|
inTransitAt?: string;
|
|
335
363
|
location?: OrderLocation;
|
|
336
364
|
order?: ShopifyAdminOrderObj;
|
|
@@ -464,6 +492,25 @@ declare type OrderLineItemRest = {
|
|
|
464
492
|
total_discount_set?: MoneyBagRest;
|
|
465
493
|
discount_allocations?: DiscountAllocationRest[];
|
|
466
494
|
origin_location?: AddressInputRest;
|
|
495
|
+
line_item?: {
|
|
496
|
+
[key: string]: any;
|
|
497
|
+
};
|
|
498
|
+
subtotal?: number | string;
|
|
499
|
+
location_id?: string | null;
|
|
500
|
+
};
|
|
501
|
+
declare type RefundLineItemRest = {
|
|
502
|
+
id: number | string;
|
|
503
|
+
line_item?: {
|
|
504
|
+
[key: string]: any;
|
|
505
|
+
};
|
|
506
|
+
line_item_id: number;
|
|
507
|
+
location_id?: number | string | null;
|
|
508
|
+
quantity: number;
|
|
509
|
+
restock_type: string;
|
|
510
|
+
total_tax?: number;
|
|
511
|
+
total_tax_set?: MoneyBagRest;
|
|
512
|
+
subtotal?: number | string;
|
|
513
|
+
subtotal_set?: MoneyBagRest;
|
|
467
514
|
};
|
|
468
515
|
declare type CancelReasonRestTypes = 'customer' | 'declined' | 'fraud' | 'inventory' | 'other';
|
|
469
516
|
declare type FinancialStatusRestTypes = 'authorized' | 'paid' | 'partially_paid' | 'partially_refunded' | 'pending' | 'refunded' | 'voided';
|
|
@@ -496,17 +543,23 @@ declare type DiscountCodeRest = {
|
|
|
496
543
|
declare type OrderRefundRest = {
|
|
497
544
|
id: number | string;
|
|
498
545
|
order_id: number | string;
|
|
499
|
-
refund_line_items:
|
|
546
|
+
refund_line_items: RefundLineItemRest[];
|
|
500
547
|
created_at?: string;
|
|
501
548
|
note?: string;
|
|
502
549
|
user_id?: number | string;
|
|
503
550
|
processed_at?: string;
|
|
551
|
+
order_adjustments: any[];
|
|
552
|
+
transactions: any[];
|
|
553
|
+
admin_graphql_api_id?: string | null;
|
|
554
|
+
restock?: boolean;
|
|
555
|
+
duties?: any[];
|
|
556
|
+
total_duties_set?: MoneyBagRest;
|
|
504
557
|
};
|
|
505
558
|
declare type AddressInputRest = {
|
|
506
559
|
address1: string;
|
|
507
560
|
address2?: string;
|
|
508
561
|
city: string;
|
|
509
|
-
country
|
|
562
|
+
country?: string;
|
|
510
563
|
company?: string | null;
|
|
511
564
|
first_name?: string | null;
|
|
512
565
|
last_name?: string | null;
|
|
@@ -540,7 +593,7 @@ declare type FulfillmentRest = {
|
|
|
540
593
|
service?: FulfillmentServiceRestTypes | string | null;
|
|
541
594
|
shipment_status?: FulfillmentShipmentStatusRestTypes | string | null;
|
|
542
595
|
status?: FulfillmentStatusRestTypes | string | null;
|
|
543
|
-
tracking_company?: string;
|
|
596
|
+
tracking_company?: string | null;
|
|
544
597
|
tracking_numbers?: string[] | number[];
|
|
545
598
|
tracking_urls?: string[];
|
|
546
599
|
updated_at?: string;
|
|
@@ -561,6 +614,9 @@ declare type ShippingLineRest = {
|
|
|
561
614
|
declare type CompleteOrder = ReRobeOrderObj & {
|
|
562
615
|
[key: string]: any;
|
|
563
616
|
};
|
|
617
|
+
declare type CompleteRefund = OrderRefund & {
|
|
618
|
+
[key: string]: any;
|
|
619
|
+
};
|
|
564
620
|
declare type OrderAttributesFormFields = {
|
|
565
621
|
currencyCode: TextInputFormField<string>;
|
|
566
622
|
financialStatus: SingleSelectFormField<FinancialStatusTypes>;
|
|
@@ -591,8 +647,14 @@ declare type OrderAttributesFormFields = {
|
|
|
591
647
|
paymentMethod: SingleSelectFormField<string>;
|
|
592
648
|
paymentDetails: SingleSelectFormField<PaymentDetails>;
|
|
593
649
|
tags: MultiSelectFormField<string>;
|
|
650
|
+
refunds: MultiSelectFormField<OrderRefund>;
|
|
594
651
|
};
|
|
595
|
-
declare type
|
|
596
|
-
|
|
597
|
-
|
|
652
|
+
declare type OrderRefundFormFields = {
|
|
653
|
+
totalRefunded: TextInputFormField<string | number>;
|
|
654
|
+
subtotalRefunded: TextInputFormField<string | number>;
|
|
655
|
+
refundDiscount: TextInputFormField<string | number>;
|
|
656
|
+
refundShipping: TextInputFormField<string | number>;
|
|
657
|
+
totalTax: TextInputFormField<string | number>;
|
|
658
|
+
refundLineItems: MultiSelectFormField<RefundLineItem>;
|
|
659
|
+
note: TextInputFormField<string>;
|
|
598
660
|
};
|
|
@@ -21,6 +21,7 @@ declare type ProductAttributes = {
|
|
|
21
21
|
quantity?: number | string;
|
|
22
22
|
merchants?: string[];
|
|
23
23
|
editorAuthorizations?: EditorAuthorization;
|
|
24
|
+
rfidTag?: string;
|
|
24
25
|
};
|
|
25
26
|
declare type ProductFilterAttributes = {
|
|
26
27
|
documentId: string;
|
|
@@ -37,6 +38,8 @@ declare type ProductFilterAttributes = {
|
|
|
37
38
|
productStyle: string[];
|
|
38
39
|
shoeSize: string;
|
|
39
40
|
measurements: Measurements;
|
|
41
|
+
featuredCollections?: string[];
|
|
42
|
+
tags?: string[];
|
|
40
43
|
};
|
|
41
44
|
declare type ProductConsignmentAttributes = {
|
|
42
45
|
sellRequestImageUrls: string[];
|
|
@@ -65,6 +68,29 @@ declare type ProductConsignmentAttributes = {
|
|
|
65
68
|
discountType: string;
|
|
66
69
|
discountValue: string;
|
|
67
70
|
selectedForClearance: string;
|
|
71
|
+
locationIds?: string[];
|
|
72
|
+
};
|
|
73
|
+
declare type ProductTimestampAttributes = {
|
|
74
|
+
sellRequestReviewTimestamp: number | null;
|
|
75
|
+
sellRequestReviewDraftTimestamp: number | null;
|
|
76
|
+
rejectedTimestamp: number | null;
|
|
77
|
+
holdTimestamp: number | null;
|
|
78
|
+
acceptedTimestamp: number | null;
|
|
79
|
+
sellerToDropOffTimestamp: number | null;
|
|
80
|
+
sellerToShipTimestamp: number | null;
|
|
81
|
+
sellerToGetPickUpTimestamp: number | null;
|
|
82
|
+
qualityControlTimestamp: number | null;
|
|
83
|
+
pendingPublicationTimestamp: number | null;
|
|
84
|
+
listedTimestamp: number | null;
|
|
85
|
+
clearanceTimestamp: number | null;
|
|
86
|
+
reservedTimestamp: number | null;
|
|
87
|
+
soldTimestamp: number | null;
|
|
88
|
+
returnedTimestamp: number | null;
|
|
89
|
+
soldSellerToBePaidTimestamp: number | null;
|
|
90
|
+
soldSellerPaidTimestamp: number | null;
|
|
91
|
+
sellerSelfRejectTimestamp: number | null;
|
|
92
|
+
liquidationRequestedTimestamp: number | null;
|
|
93
|
+
sellerLiquidatedTimestamp: number | null;
|
|
68
94
|
};
|
|
69
95
|
declare type TranslatableAttributes = {
|
|
70
96
|
description: string;
|
|
@@ -119,6 +145,7 @@ declare type ProductAttributesFormFields = {
|
|
|
119
145
|
editorAuthorizations: SingleSelectFormField<EditorAuthorization>;
|
|
120
146
|
vendorId: SingleSelectFormField<string>;
|
|
121
147
|
vendorName: SingleSelectFormField<string>;
|
|
148
|
+
rfidTag: TextInputFormField<string>;
|
|
122
149
|
};
|
|
123
150
|
declare type ProductFilterAttributesFormFields = {
|
|
124
151
|
brand: SingleSelectFormField<string>;
|
|
@@ -133,6 +160,8 @@ declare type ProductFilterAttributesFormFields = {
|
|
|
133
160
|
productType: SingleSelectFormField<string>;
|
|
134
161
|
productStyle: MultiSelectFormField<string>;
|
|
135
162
|
shoeSize: SingleSelectFormField<string>;
|
|
163
|
+
featuredCollections: MultiSelectFormField<string>;
|
|
164
|
+
tags: MultiSelectFormField<string>;
|
|
136
165
|
};
|
|
137
166
|
declare type ProductConsignmentAttributesFormFields = {
|
|
138
167
|
previousSellers: MultiSelectFormField<string>;
|
|
@@ -158,6 +187,7 @@ declare type ProductConsignmentAttributesFormFields = {
|
|
|
158
187
|
isOnSale: SingleSelectFormField<string>;
|
|
159
188
|
discountType: SingleSelectFormField<string>;
|
|
160
189
|
discountValue: TextInputFormField<string>;
|
|
190
|
+
locationIds: MultiSelectFormField<string>;
|
|
161
191
|
};
|
|
162
192
|
declare type ProductFormFields = ProductAttributesFormFields & ProductFilterAttributesFormFields & ProductConsignmentAttributesFormFields;
|
|
163
193
|
interface ParamsForBuildProductInputObjForShopify {
|