rerobe-js-orm 2.4.6 → 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.
Files changed (40) hide show
  1. package/lib/factories/FormState/Product/ProductFormStateFactory.d.ts +1 -1
  2. package/lib/factories/FormState/Product/ProductFormStateFactory.js +2 -2
  3. package/lib/factories/FormState/ProductCollection/ProductCollectionFormStateFactory.d.ts +5 -0
  4. package/lib/factories/FormState/ProductCollection/ProductCollectionFormStateFactory.js +10 -0
  5. package/lib/factories/Order/OrderFromApp.js +3 -1
  6. package/lib/factories/Order/OrderFromFormState.js +13 -12
  7. package/lib/factories/Order/OrderFromShopifyWebhook.js +126 -10
  8. package/lib/factories/Order/RefundFromFormState.js +4 -1
  9. package/lib/factories/Product/ProductFromFormState.js +33 -8
  10. package/lib/factories/ProductCollection/ProductCollectionFactory.d.ts +5 -0
  11. package/lib/factories/ProductCollection/ProductCollectionFactory.js +6 -0
  12. package/lib/factories/ProductCollection/ProductCollectionFromFormState.d.ts +5 -0
  13. package/lib/factories/ProductCollection/ProductCollectionFromFormState.js +29 -0
  14. package/lib/form-states/Order/RefundFormState.d.ts +3 -1
  15. package/lib/form-states/Order/RefundFormState.js +24 -29
  16. package/lib/form-states/Product/ProductFormState.d.ts +7 -1
  17. package/lib/form-states/Product/ProductFormState.js +22 -2
  18. package/lib/form-states/ProductCollection/ProductCollectionFormState.d.ts +12 -0
  19. package/lib/form-states/ProductCollection/ProductCollectionFormState.js +80 -0
  20. package/lib/helpers/OrderHelpers.d.ts +4 -2
  21. package/lib/helpers/OrderHelpers.js +66 -12
  22. package/lib/helpers/ProductCollectionHelpers.d.ts +4 -0
  23. package/lib/helpers/ProductCollectionHelpers.js +27 -0
  24. package/lib/helpers/ReRobeProductHelpers.d.ts +6 -0
  25. package/lib/helpers/ReRobeProductHelpers.js +203 -1
  26. package/lib/index.d.ts +3 -1
  27. package/lib/index.js +5 -1
  28. package/lib/models/Order.d.ts +2 -0
  29. package/lib/models/Order.js +3 -0
  30. package/lib/models/Product.d.ts +1 -0
  31. package/lib/models/Product.js +34 -1
  32. package/lib/models/ProductCollection.d.ts +15 -0
  33. package/lib/models/ProductCollection.js +34 -0
  34. package/lib/models/User.js +5 -0
  35. package/lib/types/product-collection-types.d.ts +63 -0
  36. package/lib/types/product-collection-types.js +13 -0
  37. package/lib/types/rerobe-order-types.d.ts +46 -9
  38. package/lib/types/rerobe-product-types.d.ts +29 -0
  39. package/lib/types/rerobe-user-types.d.ts +27 -21
  40. package/package.json +3 -2
@@ -49,6 +49,8 @@ class Product extends Base_1.default {
49
49
  priceRange: (props === null || props === void 0 ? void 0 : props.priceRange) || '',
50
50
  condition: (props === null || props === void 0 ? void 0 : props.condition) || '',
51
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) || [],
52
54
  };
53
55
  this.consignmentAttributes = {
54
56
  sellRequestImageUrls: (props === null || props === void 0 ? void 0 : props.sellRequestImageUrls) || [],
@@ -77,13 +79,44 @@ class Product extends Base_1.default {
77
79
  discountType: (props === null || props === void 0 ? void 0 : props.discountType) || '',
78
80
  discountValue: (props === null || props === void 0 ? void 0 : props.discountValue) || '',
79
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,
80
113
  };
81
114
  }
82
115
  toPartialObj() {
83
116
  return Object.assign(Object.assign({}, this.attributes), this.filterAttributes);
84
117
  }
85
118
  toObj() {
86
- 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);
87
120
  }
88
121
  toProductInputObjForShopify(location) {
89
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;
@@ -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,
@@ -150,6 +151,10 @@ class User extends Base_1.default {
150
151
  ordersCount: this.ordersCount,
151
152
  amountSpent: this.amountSpent,
152
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
  }
@@ -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';
@@ -39,6 +39,7 @@ declare type ReRobeOrderObj = {
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;
@@ -62,8 +63,9 @@ declare type ReRobeOrderObj = {
62
63
  createdAt?: string;
63
64
  updatedAt?: string;
64
65
  };
65
- declare type OrderWithRefundsInfoObj = {
66
+ declare type OrderWithRefundsAndFulfillmentsInfoObj = {
66
67
  documentId?: string;
68
+ name?: string;
67
69
  currencyCode: string;
68
70
  fulfillmentStatus?: FulfillmentStatusTypes | string;
69
71
  totalDiscount: Money;
@@ -72,11 +74,14 @@ declare type OrderWithRefundsInfoObj = {
72
74
  totalShippingPrice?: Money;
73
75
  totalTax?: Money;
74
76
  subtotalPrice: Money;
75
- lineItems: ReRobeOrderLineItem[];
76
77
  discountType: string;
77
78
  shippingRate: string;
78
- orderRefunds: OrderRefund[];
79
+ refunds: OrderRefund[];
80
+ activeLineItems: ReRobeOrderLineItem[];
81
+ unfulfilledItems: ReRobeOrderLineItem[];
82
+ fulfilledItems: ReRobeOrderLineItem[];
79
83
  refundedItems: ReRobeOrderLineItem[];
84
+ canceledItems: ReRobeOrderLineItem[];
80
85
  };
81
86
  declare type OrderInput = {
82
87
  id?: string | null;
@@ -91,10 +96,12 @@ declare type OrderInput = {
91
96
  products: CompleteProduct[];
92
97
  appliedDiscount?: AppliedDiscount;
93
98
  shopifyId?: string | null;
99
+ ribbnOrderNumber?: number | null;
94
100
  shopifyOrderNumber?: number | null;
95
101
  state?: ReRobeOrderStates | string | null;
96
102
  userId?: string | null;
97
103
  email?: string | null;
104
+ customerName?: string | null;
98
105
  tags?: string[];
99
106
  salesChannel?: SalesChannels | string | null;
100
107
  paymentDetails?: PaymentDetails | null;
@@ -201,7 +208,10 @@ interface ReRobeOrderLineItem extends OrderLineItem {
201
208
  brand?: string | null;
202
209
  productId?: string | null;
203
210
  shopifyProductId?: string | number | null;
204
- refundedQuantity?: number;
211
+ refundedQuantity?: number | string;
212
+ canceledQuantity?: number | string;
213
+ fulfilledQuantity?: number | string;
214
+ unfulfilledQuantity?: number | string;
205
215
  }
206
216
  declare type OrderLineItemConnection = {
207
217
  edges: OrderLineItemEdge[];
@@ -301,8 +311,10 @@ declare type OrderRefund = {
301
311
  declare type RefundLineItem = {
302
312
  lineItem: ReRobeOrderLineItem;
303
313
  quantityRefund: number;
314
+ quantityCancel: number;
304
315
  discountRefund?: Money;
305
316
  subtotalRefund?: Money;
317
+ subtotalCanceled?: Money;
306
318
  };
307
319
  declare type TaxLine = {
308
320
  title: string;
@@ -336,7 +348,7 @@ declare type FulfillmentLineItemEdge = {
336
348
  node: FulfillmentLineItem;
337
349
  };
338
350
  declare type FulfillmentLineItem = {
339
- lineItem: OrderLineItem;
351
+ lineItem: ReRobeOrderLineItem;
340
352
  quantity: number;
341
353
  };
342
354
  declare type FulfillmentAdmin = {
@@ -346,7 +358,7 @@ declare type FulfillmentAdmin = {
346
358
  displayStatus?: FulfillmentDisplayStatusTypes;
347
359
  deliveredAt?: string;
348
360
  estimatedDeliveryAt?: string;
349
- fulfillmentLineItems: FulfillmentLineItemConnection;
361
+ fulfillmentLineItems: FulfillmentLineItem[] | FulfillmentLineItemConnection;
350
362
  inTransitAt?: string;
351
363
  location?: OrderLocation;
352
364
  order?: ShopifyAdminOrderObj;
@@ -480,6 +492,25 @@ declare type OrderLineItemRest = {
480
492
  total_discount_set?: MoneyBagRest;
481
493
  discount_allocations?: DiscountAllocationRest[];
482
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;
483
514
  };
484
515
  declare type CancelReasonRestTypes = 'customer' | 'declined' | 'fraud' | 'inventory' | 'other';
485
516
  declare type FinancialStatusRestTypes = 'authorized' | 'paid' | 'partially_paid' | 'partially_refunded' | 'pending' | 'refunded' | 'voided';
@@ -512,17 +543,23 @@ declare type DiscountCodeRest = {
512
543
  declare type OrderRefundRest = {
513
544
  id: number | string;
514
545
  order_id: number | string;
515
- refund_line_items: OrderLineItemRest[];
546
+ refund_line_items: RefundLineItemRest[];
516
547
  created_at?: string;
517
548
  note?: string;
518
549
  user_id?: number | string;
519
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;
520
557
  };
521
558
  declare type AddressInputRest = {
522
559
  address1: string;
523
560
  address2?: string;
524
561
  city: string;
525
- country: string;
562
+ country?: string;
526
563
  company?: string | null;
527
564
  first_name?: string | null;
528
565
  last_name?: string | null;
@@ -556,7 +593,7 @@ declare type FulfillmentRest = {
556
593
  service?: FulfillmentServiceRestTypes | string | null;
557
594
  shipment_status?: FulfillmentShipmentStatusRestTypes | string | null;
558
595
  status?: FulfillmentStatusRestTypes | string | null;
559
- tracking_company?: string;
596
+ tracking_company?: string | null;
560
597
  tracking_numbers?: string[] | number[];
561
598
  tracking_urls?: string[];
562
599
  updated_at?: string;
@@ -38,6 +38,8 @@ declare type ProductFilterAttributes = {
38
38
  productStyle: string[];
39
39
  shoeSize: string;
40
40
  measurements: Measurements;
41
+ featuredCollections?: string[];
42
+ tags?: string[];
41
43
  };
42
44
  declare type ProductConsignmentAttributes = {
43
45
  sellRequestImageUrls: string[];
@@ -66,6 +68,29 @@ declare type ProductConsignmentAttributes = {
66
68
  discountType: string;
67
69
  discountValue: string;
68
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;
69
94
  };
70
95
  declare type TranslatableAttributes = {
71
96
  description: string;
@@ -120,6 +145,7 @@ declare type ProductAttributesFormFields = {
120
145
  editorAuthorizations: SingleSelectFormField<EditorAuthorization>;
121
146
  vendorId: SingleSelectFormField<string>;
122
147
  vendorName: SingleSelectFormField<string>;
148
+ rfidTag: TextInputFormField<string>;
123
149
  };
124
150
  declare type ProductFilterAttributesFormFields = {
125
151
  brand: SingleSelectFormField<string>;
@@ -134,6 +160,8 @@ declare type ProductFilterAttributesFormFields = {
134
160
  productType: SingleSelectFormField<string>;
135
161
  productStyle: MultiSelectFormField<string>;
136
162
  shoeSize: SingleSelectFormField<string>;
163
+ featuredCollections: MultiSelectFormField<string>;
164
+ tags: MultiSelectFormField<string>;
137
165
  };
138
166
  declare type ProductConsignmentAttributesFormFields = {
139
167
  previousSellers: MultiSelectFormField<string>;
@@ -159,6 +187,7 @@ declare type ProductConsignmentAttributesFormFields = {
159
187
  isOnSale: SingleSelectFormField<string>;
160
188
  discountType: SingleSelectFormField<string>;
161
189
  discountValue: TextInputFormField<string>;
190
+ locationIds: MultiSelectFormField<string>;
162
191
  };
163
192
  declare type ProductFormFields = ProductAttributesFormFields & ProductFilterAttributesFormFields & ProductConsignmentAttributesFormFields;
164
193
  interface ParamsForBuildProductInputObjForShopify {
@@ -31,6 +31,32 @@ interface UserAttributes extends ReRobeDocument {
31
31
  lastLogin?: string;
32
32
  emailVerified: boolean;
33
33
  }
34
+ declare type RibbnCustomerObj = {
35
+ uid?: string;
36
+ gid?: string;
37
+ firstName: string;
38
+ lastName: string;
39
+ displayName?: string;
40
+ email: string;
41
+ phone?: string;
42
+ addresses?: UserAddress;
43
+ availableCredit?: number;
44
+ createdAt?: string;
45
+ updatedAt?: string;
46
+ shoppingSessionId?: string;
47
+ savedItems?: string[];
48
+ shoppingBag?: string[];
49
+ avatarUrl?: string | null;
50
+ tags?: string[];
51
+ notes?: string;
52
+ ordersCount?: number;
53
+ amountSpent?: number;
54
+ emailVerified: boolean;
55
+ isSeller?: boolean;
56
+ devicePlatform?: string;
57
+ lastLogin?: string;
58
+ referralCode?: string;
59
+ };
34
60
  declare type UserObjForAuthTemplateMethod = {
35
61
  authUserProfile: UserFromShopifyGraphQLResp;
36
62
  prevUserProfile: UserAttributes | undefined;
@@ -82,7 +108,7 @@ declare type AddressInput = {
82
108
  city: string;
83
109
  country?: string;
84
110
  countryCode?: string;
85
- province?: string;
111
+ province?: string | null;
86
112
  zip?: string;
87
113
  };
88
114
  declare type AddressFormFields = {
@@ -101,23 +127,3 @@ declare type UserRespFromShopifyWebhook = {
101
127
  phone?: string;
102
128
  addresses: AddressInput[];
103
129
  };
104
- declare type RibbnCustomerObj = {
105
- uid?: string;
106
- firstName: string;
107
- lastName: string;
108
- displayName?: string;
109
- email: string;
110
- phone?: string;
111
- addresses?: UserAddress;
112
- availableCredit?: number;
113
- createdAt?: string;
114
- shoppingSessionId?: string;
115
- savedItems?: string[];
116
- shoppingBag?: string[];
117
- avatarUrl?: string | null;
118
- tags?: string[];
119
- notes?: string;
120
- ordersCount?: number;
121
- amountSpent?: number;
122
- emailVerified: boolean;
123
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "2.4.6",
3
+ "version": "2.4.8",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -14,7 +14,8 @@
14
14
  "prepublishOnly": "npm test && npm run lint",
15
15
  "preversion": "npm run lint",
16
16
  "version": "npm run format && git add -A src",
17
- "postversion": "git push && git push --tags"
17
+ "postversion": "git push && git push --tags",
18
+ "clean": "npm run format && npm run lint"
18
19
  },
19
20
  "repository": {
20
21
  "type": "git",