rerobe-js-orm 3.5.1 → 3.5.2

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 (34) hide show
  1. package/lib/constants/ledger-constants.d.ts +3 -0
  2. package/lib/constants/ledger-constants.js +32 -1
  3. package/lib/factories/ProductCollection/ProductCollectionFromFormState.js +1 -1
  4. package/lib/form-states/Product/options.js +1 -1
  5. package/lib/form-states/ProductCollection/ProductCollectionFormState.js +1 -1
  6. package/lib/helpers/ReRobeProductHelpers.js +2 -2
  7. package/lib/helpers/SellerProductLedgerHelpers.js +1 -1
  8. package/lib/helpers/Utilities.js +6 -6
  9. package/lib/models/SellerProductLedgerActivityLog.d.ts +15 -0
  10. package/lib/models/SellerProductLedgerActivityLog.js +34 -0
  11. package/lib/types/analytics-types.d.ts +3 -3
  12. package/lib/types/customer-notification-types.d.ts +11 -11
  13. package/lib/types/ledger-transaction-types.d.ts +12 -10
  14. package/lib/types/ledger-transaction-types.js +5 -5
  15. package/lib/types/merchant-types.d.ts +14 -14
  16. package/lib/types/merchant-webshop-types.d.ts +3 -3
  17. package/lib/types/payout-account-types.d.ts +4 -4
  18. package/lib/types/product-collection-types.d.ts +8 -8
  19. package/lib/types/rerobe-chatroom-types.d.ts +6 -6
  20. package/lib/types/rerobe-document-types.d.ts +1 -1
  21. package/lib/types/rerobe-form-types.d.ts +4 -4
  22. package/lib/types/rerobe-klarna-types.d.ts +2 -2
  23. package/lib/types/rerobe-order-types.d.ts +86 -86
  24. package/lib/types/rerobe-pickup-types.d.ts +2 -2
  25. package/lib/types/rerobe-product-state-types.d.ts +3 -3
  26. package/lib/types/rerobe-product-types.d.ts +22 -22
  27. package/lib/types/rerobe-sellRequest-types.d.ts +3 -3
  28. package/lib/types/rerobe-user-types.d.ts +12 -12
  29. package/lib/types/response-types.d.ts +9 -9
  30. package/lib/types/webshop-page/common/web-page-element-property-types.d.ts +11 -11
  31. package/lib/types/webshop-page/elements/button-element-interface.d.ts +1 -1
  32. package/lib/types/webshop-page/elements/layout-element-interface.d.ts +1 -1
  33. package/lib/types/webshop-page/elements/typography-element-interface.d.ts +1 -1
  34. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- declare type DraftOrderCustomer = {
1
+ type DraftOrderCustomer = {
2
2
  [key: string]: any;
3
3
  };
4
- declare type DraftOrderLineItemInput = {
4
+ type DraftOrderLineItemInput = {
5
5
  quantity: number;
6
6
  variantId: string;
7
7
  };
8
- declare type DraftOrderObj = {
8
+ type DraftOrderObj = {
9
9
  customerId: string;
10
10
  email: string;
11
11
  lineItems: DraftOrderLineItemInput[];
@@ -15,7 +15,7 @@ declare type DraftOrderObj = {
15
15
  billingAddress?: AddressInput;
16
16
  shippingAddress?: AddressInput;
17
17
  };
18
- declare type ReRobeOrderObj = {
18
+ type ReRobeOrderObj = {
19
19
  id: string;
20
20
  appliedDiscount: AppliedDiscount;
21
21
  creditDiscount?: Money;
@@ -82,7 +82,7 @@ declare type ReRobeOrderObj = {
82
82
  createdAtTimestamp: number;
83
83
  updatedAtTimestamp: number;
84
84
  };
85
- declare type OrderWithRefundsAndFulfillmentsInfoObj = {
85
+ type OrderWithRefundsAndFulfillmentsInfoObj = {
86
86
  documentId?: string;
87
87
  name?: string;
88
88
  currencyCode: string;
@@ -116,7 +116,7 @@ declare type OrderWithRefundsAndFulfillmentsInfoObj = {
116
116
  totalShippingPricePresentment: Money;
117
117
  totalTaxPresentment?: Money;
118
118
  };
119
- declare type OrderInput = {
119
+ type OrderInput = {
120
120
  id?: string | null;
121
121
  orderNumber?: number | null;
122
122
  name?: string | null;
@@ -141,26 +141,26 @@ declare type OrderInput = {
141
141
  fulfillmentStatus?: FulfillmentStatusTypes | string | null;
142
142
  financialStatus?: FinancialStatusTypes | string | null;
143
143
  };
144
- declare type ReRobeShippingDetails = {
144
+ type ReRobeShippingDetails = {
145
145
  deliveryAddress?: AddressInput;
146
146
  shippingLine?: ShippingLine;
147
147
  };
148
- declare type ReRobeShippingAndDeliveryTypes = 'LOCAL_PICK_UP' | 'LOCAL_DELIVERY' | 'SHIPPING';
149
- declare type ReRobePaymentTypes = 'CREDIT_CARD' | 'KLARNA' | 'SWISH';
150
- declare type ReRobeOrderStates = 'DRAFT' | 'COMPLETED';
151
- declare type SalesChannels = 'MOBILE_APP' | 'WEB_APP' | 'STORE' | 'ONLINE_STORE' | 'THIRD_PARTY';
152
- declare type PaymentDetails = {
148
+ type ReRobeShippingAndDeliveryTypes = 'LOCAL_PICK_UP' | 'LOCAL_DELIVERY' | 'SHIPPING';
149
+ type ReRobePaymentTypes = 'CREDIT_CARD' | 'KLARNA' | 'SWISH';
150
+ type ReRobeOrderStates = 'DRAFT' | 'COMPLETED';
151
+ type SalesChannels = 'MOBILE_APP' | 'WEB_APP' | 'STORE' | 'ONLINE_STORE' | 'THIRD_PARTY';
152
+ type PaymentDetails = {
153
153
  name?: string;
154
154
  last4?: string;
155
155
  brand?: string;
156
156
  };
157
- declare type AppliedDiscount = {
157
+ type AppliedDiscount = {
158
158
  amount: number | string;
159
159
  value?: number | string;
160
160
  title?: string | null;
161
161
  valueType?: string | null;
162
162
  };
163
- declare type ShopifyStorefrontOrderObj = {
163
+ type ShopifyStorefrontOrderObj = {
164
164
  id: string;
165
165
  name: string;
166
166
  orderNumber: number;
@@ -186,7 +186,7 @@ declare type ShopifyStorefrontOrderObj = {
186
186
  email?: string | null;
187
187
  phone?: string | null;
188
188
  };
189
- declare type ShopifyAdminOrderObj = {
189
+ type ShopifyAdminOrderObj = {
190
190
  id: number | string;
191
191
  cancelReason?: CancelReasonTypes | string | null;
192
192
  cancelledAt?: string | null;
@@ -220,11 +220,11 @@ declare type ShopifyAdminOrderObj = {
220
220
  totalTaxSet?: MoneyBag;
221
221
  updatedAt?: string;
222
222
  };
223
- declare type Money = {
223
+ type Money = {
224
224
  amount: number | string;
225
225
  currencyCode?: string;
226
226
  };
227
- declare type MoneyBag = {
227
+ type MoneyBag = {
228
228
  shopMoney: Money;
229
229
  presentmentMoney?: Money;
230
230
  };
@@ -252,19 +252,19 @@ interface ReRobeOrderLineItem extends OrderLineItem {
252
252
  presentmentUnitPrice?: Money;
253
253
  presentmentSalePrice?: Money;
254
254
  }
255
- declare type OrderLineItemConnection = {
255
+ type OrderLineItemConnection = {
256
256
  edges: OrderLineItemEdge[];
257
257
  };
258
- declare type OrderLineItemEdge = {
258
+ type OrderLineItemEdge = {
259
259
  node: OrderLineItem;
260
260
  };
261
- declare type OrderLineItemAdminConnection = {
261
+ type OrderLineItemAdminConnection = {
262
262
  edges: OrderLineItemAdminEdge[];
263
263
  };
264
- declare type OrderLineItemAdminEdge = {
264
+ type OrderLineItemAdminEdge = {
265
265
  node: OrderLineItemAdmin;
266
266
  };
267
- declare type OrderLineItemAdmin = {
267
+ type OrderLineItemAdmin = {
268
268
  id?: number | string;
269
269
  title: string;
270
270
  variant: ProductVariant | null;
@@ -283,7 +283,7 @@ declare type OrderLineItemAdmin = {
283
283
  variantTitle?: string;
284
284
  vendor?: string;
285
285
  };
286
- declare type ProductVariant = {
286
+ type ProductVariant = {
287
287
  id: string;
288
288
  title?: string;
289
289
  image?: Image;
@@ -295,34 +295,34 @@ declare type ProductVariant = {
295
295
  requiresShipping?: boolean;
296
296
  weight?: number | null;
297
297
  };
298
- declare type Image = {
298
+ type Image = {
299
299
  id?: string;
300
300
  originalSrc: string;
301
301
  altText?: string;
302
302
  };
303
- declare type CancelReasonTypes = 'CUSTOMER' | 'DECLINED' | 'FRAUD' | 'INVENTORY' | 'OTHER';
304
- declare type FinancialStatusTypes = 'AUTHORIZED' | 'PAID' | 'PARTIALLY_PAID' | 'PARTIALLY_REFUNDED' | 'PENDING' | 'REFUNDED' | 'VOIDED';
305
- declare type FulfillmentStatusTypes = 'FULFILLED' | 'IN_PROGRESS' | 'OPEN' | 'PARTIALLY_FULFILLED' | 'PENDING_FULFILLMENT' | 'RESTOCKED' | 'ERROR' | 'CANCELED' | 'FAILURE' | 'SUCCESS' | 'UNFULFILLED';
306
- declare type DiscountApplicationConnection = {
303
+ type CancelReasonTypes = 'CUSTOMER' | 'DECLINED' | 'FRAUD' | 'INVENTORY' | 'OTHER';
304
+ type FinancialStatusTypes = 'AUTHORIZED' | 'PAID' | 'PARTIALLY_PAID' | 'PARTIALLY_REFUNDED' | 'PENDING' | 'REFUNDED' | 'VOIDED';
305
+ type FulfillmentStatusTypes = 'FULFILLED' | 'IN_PROGRESS' | 'OPEN' | 'PARTIALLY_FULFILLED' | 'PENDING_FULFILLMENT' | 'RESTOCKED' | 'ERROR' | 'CANCELED' | 'FAILURE' | 'SUCCESS' | 'UNFULFILLED';
306
+ type DiscountApplicationConnection = {
307
307
  edges: DiscountApplicationEdge[];
308
308
  };
309
- declare type DiscountApplicationEdge = {
309
+ type DiscountApplicationEdge = {
310
310
  node: DiscountApplication;
311
311
  };
312
- declare type DiscountApplication = {
312
+ type DiscountApplication = {
313
313
  allocationMethod: AllocationMethodTypes | string;
314
314
  targetSelection: TargetSelectionTypes | string;
315
315
  targetType: DiscountTargetTypes | string;
316
316
  value: Money;
317
317
  };
318
- declare type DiscountAllocation = {
318
+ type DiscountAllocation = {
319
319
  discountApplications: DiscountApplication[];
320
320
  allocatedAmountSet?: MoneyBag;
321
321
  };
322
- declare type AllocationMethodTypes = 'ACROSS' | 'EACH';
323
- declare type TargetSelectionTypes = 'ALL' | 'ENTITLED' | 'EXPLICIT';
324
- declare type DiscountTargetTypes = 'LINE_ITEM' | 'SHIPPING_LINE';
325
- declare type CustomerFromAdminApi = {
322
+ type AllocationMethodTypes = 'ACROSS' | 'EACH';
323
+ type TargetSelectionTypes = 'ALL' | 'ENTITLED' | 'EXPLICIT';
324
+ type DiscountTargetTypes = 'LINE_ITEM' | 'SHIPPING_LINE';
325
+ type CustomerFromAdminApi = {
326
326
  id: number | string;
327
327
  email: string;
328
328
  createdAt?: string;
@@ -335,7 +335,7 @@ declare type CustomerFromAdminApi = {
335
335
  updatedAt?: number | string;
336
336
  phone?: string | null;
337
337
  };
338
- declare type OrderRefund = {
338
+ type OrderRefund = {
339
339
  documentId: string;
340
340
  createdAt?: string;
341
341
  updatedAt?: string;
@@ -359,7 +359,7 @@ declare type OrderRefund = {
359
359
  updatedAtTimestamp?: number;
360
360
  createdByUserId?: string;
361
361
  };
362
- declare type RefundLineItem = {
362
+ type RefundLineItem = {
363
363
  lineItem: ReRobeOrderLineItem;
364
364
  quantityRefund: number;
365
365
  quantityCancel: number;
@@ -372,13 +372,13 @@ declare type RefundLineItem = {
372
372
  subtotalRefundPresentment?: Money;
373
373
  subtotalCanceledPresentment?: Money;
374
374
  };
375
- declare type TaxLine = {
375
+ type TaxLine = {
376
376
  title: string;
377
377
  rate: number;
378
378
  ratePercentage?: number;
379
379
  priceSet?: MoneyBag;
380
380
  };
381
- declare type OrderLocation = {
381
+ type OrderLocation = {
382
382
  id: number | string;
383
383
  address: AddressInput;
384
384
  activatable?: boolean;
@@ -392,28 +392,28 @@ declare type OrderLocation = {
392
392
  name?: string;
393
393
  shipsInventory?: boolean;
394
394
  };
395
- declare type FulfillmentLocationItem = {
395
+ type FulfillmentLocationItem = {
396
396
  location: LocationInput;
397
397
  productsIds: string[];
398
398
  shippingRateName?: string;
399
399
  shippingPrice?: string | number;
400
400
  };
401
- declare type Fulfillment = {
401
+ type Fulfillment = {
402
402
  fulfillmentLineItems: FulfillmentLineItemConnection;
403
403
  trackingCompany: string;
404
404
  trackingInfo: FulfillmentTrackingInfo;
405
405
  };
406
- declare type FulfillmentLineItemConnection = {
406
+ type FulfillmentLineItemConnection = {
407
407
  edges: FulfillmentLineItemEdge[];
408
408
  };
409
- declare type FulfillmentLineItemEdge = {
409
+ type FulfillmentLineItemEdge = {
410
410
  node: FulfillmentLineItem;
411
411
  };
412
- declare type FulfillmentLineItem = {
412
+ type FulfillmentLineItem = {
413
413
  lineItem: ReRobeOrderLineItem;
414
414
  quantity: number;
415
415
  };
416
- declare type FulfillmentAdmin = {
416
+ type FulfillmentAdmin = {
417
417
  id: string | number;
418
418
  createdAt: string;
419
419
  name: string;
@@ -433,7 +433,7 @@ declare type FulfillmentAdmin = {
433
433
  createdAtTimestamp?: number;
434
434
  updatedAtTimestamp?: number;
435
435
  };
436
- declare type FulfillmentService = {
436
+ type FulfillmentService = {
437
437
  id: string | number;
438
438
  serviceName: string;
439
439
  callbackUrl?: string;
@@ -443,18 +443,18 @@ declare type FulfillmentService = {
443
443
  shippingMethods?: ShippingMethod[];
444
444
  serviceType?: FulfillmentServiceTypes | string | null;
445
445
  };
446
- declare type ShippingMethod = {
446
+ type ShippingMethod = {
447
447
  code: string;
448
448
  label: string;
449
449
  };
450
- declare type FulfillmentTrackingInfo = {
450
+ type FulfillmentTrackingInfo = {
451
451
  company: string;
452
452
  number: string;
453
453
  url?: string;
454
454
  };
455
- declare type FulfillmentDisplayStatusTypes = 'SUBMITTED' | 'CANCELED' | 'CONFIRMED' | 'DELIVERED' | 'FAILURE' | 'FULFILLED' | 'IN_TRANSIT' | 'LABEL_PRINTED' | 'LABEL_PURCHASED' | 'LABEL_VOIDED' | 'MARKED_AS_FULFILLED' | 'NOT_DELIVERED' | 'OUT_FOR_DELIVERY' | 'READY_FOR_PICKUP' | 'ATTEMPTED_DELIVERY';
456
- declare type FulfillmentServiceTypes = 'GIFT_CARD' | 'MANUAL' | 'THIRD_PARTY';
457
- declare type OrderShippingLine = {
455
+ type FulfillmentDisplayStatusTypes = 'SUBMITTED' | 'CANCELED' | 'CONFIRMED' | 'DELIVERED' | 'FAILURE' | 'FULFILLED' | 'IN_TRANSIT' | 'LABEL_PRINTED' | 'LABEL_PURCHASED' | 'LABEL_VOIDED' | 'MARKED_AS_FULFILLED' | 'NOT_DELIVERED' | 'OUT_FOR_DELIVERY' | 'READY_FOR_PICKUP' | 'ATTEMPTED_DELIVERY';
456
+ type FulfillmentServiceTypes = 'GIFT_CARD' | 'MANUAL' | 'THIRD_PARTY';
457
+ type OrderShippingLine = {
458
458
  carrierIdentifier?: string | null;
459
459
  code?: number | string | null;
460
460
  custom?: boolean;
@@ -472,7 +472,7 @@ declare type OrderShippingLine = {
472
472
  taxLines?: TaxLine[];
473
473
  title?: string;
474
474
  };
475
- declare type ShopifyRestApiOrderObj = {
475
+ type ShopifyRestApiOrderObj = {
476
476
  id: number | string;
477
477
  app_id?: number | string;
478
478
  billing_address?: AddressInput;
@@ -518,7 +518,7 @@ declare type ShopifyRestApiOrderObj = {
518
518
  order_status_url?: string;
519
519
  tags?: string | null;
520
520
  };
521
- declare type CustomerFromRestApi = {
521
+ type CustomerFromRestApi = {
522
522
  id: number | string;
523
523
  email: string | null;
524
524
  created_at?: string;
@@ -534,7 +534,7 @@ declare type CustomerFromRestApi = {
534
534
  last_order_name?: string | null;
535
535
  currency?: string;
536
536
  };
537
- declare type OrderLineItemRest = {
537
+ type OrderLineItemRest = {
538
538
  fulfillable_quantity?: number | null;
539
539
  fulfillment_service?: string | null;
540
540
  fulfillment_status?: FulfillmentStatusRestTypes | string | null;
@@ -562,7 +562,7 @@ declare type OrderLineItemRest = {
562
562
  subtotal?: number | string;
563
563
  location_id?: string | null;
564
564
  };
565
- declare type RefundLineItemRest = {
565
+ type RefundLineItemRest = {
566
566
  id: number | string;
567
567
  line_item?: {
568
568
  [key: string]: any;
@@ -576,10 +576,10 @@ declare type RefundLineItemRest = {
576
576
  subtotal?: number | string;
577
577
  subtotal_set?: MoneyBagRest;
578
578
  };
579
- declare type CancelReasonRestTypes = 'customer' | 'declined' | 'fraud' | 'inventory' | 'other';
580
- declare type FinancialStatusRestTypes = 'authorized' | 'paid' | 'partially_paid' | 'partially_refunded' | 'pending' | 'refunded' | 'voided';
581
- declare type FulfillmentStatusRestTypes = 'fulfilled' | 'null' | 'partial' | 'restocked' | 'pending' | 'open' | 'success' | 'cancelled' | 'error' | 'failure';
582
- declare type DiscountApplicationRest = {
579
+ type CancelReasonRestTypes = 'customer' | 'declined' | 'fraud' | 'inventory' | 'other';
580
+ type FinancialStatusRestTypes = 'authorized' | 'paid' | 'partially_paid' | 'partially_refunded' | 'pending' | 'refunded' | 'voided';
581
+ type FulfillmentStatusRestTypes = 'fulfilled' | 'null' | 'partial' | 'restocked' | 'pending' | 'open' | 'success' | 'cancelled' | 'error' | 'failure';
582
+ type DiscountApplicationRest = {
583
583
  type: DiscountRestTypes | string;
584
584
  title: string;
585
585
  value: string;
@@ -589,22 +589,22 @@ declare type DiscountApplicationRest = {
589
589
  target_selection?: DiscountTargetSelectionRestTypes | string;
590
590
  target_type?: DiscountTargetRestTypes | string;
591
591
  };
592
- declare type DiscountAllocationRest = {
592
+ type DiscountAllocationRest = {
593
593
  amount: string;
594
594
  discount_application_index?: number;
595
595
  amount_set?: MoneyBagRest;
596
596
  };
597
- declare type DiscountRestTypes = 'manual' | 'script' | 'discount_code' | 'automatic';
598
- declare type DiscountAllocationRestTypes = 'across' | 'each' | 'one';
599
- declare type DiscountTargetSelectionRestTypes = 'all' | 'entitled' | 'explicit';
600
- declare type DiscountTargetRestTypes = 'line_item' | 'shipping_line';
601
- declare type DiscountValueRestTypes = 'fixed_amount' | 'percentage' | 'shipping';
602
- declare type DiscountCodeRest = {
597
+ type DiscountRestTypes = 'manual' | 'script' | 'discount_code' | 'automatic';
598
+ type DiscountAllocationRestTypes = 'across' | 'each' | 'one';
599
+ type DiscountTargetSelectionRestTypes = 'all' | 'entitled' | 'explicit';
600
+ type DiscountTargetRestTypes = 'line_item' | 'shipping_line';
601
+ type DiscountValueRestTypes = 'fixed_amount' | 'percentage' | 'shipping';
602
+ type DiscountCodeRest = {
603
603
  amount: string;
604
604
  code?: string;
605
605
  type?: DiscountValueRestTypes | string;
606
606
  };
607
- declare type OrderRefundRest = {
607
+ type OrderRefundRest = {
608
608
  id: number | string;
609
609
  order_id: number | string;
610
610
  refund_line_items: RefundLineItemRest[];
@@ -619,7 +619,7 @@ declare type OrderRefundRest = {
619
619
  duties?: any[];
620
620
  total_duties_set?: MoneyBagRest;
621
621
  };
622
- declare type AddressInputRest = {
622
+ type AddressInputRest = {
623
623
  address1: string;
624
624
  address2?: string;
625
625
  city: string;
@@ -633,20 +633,20 @@ declare type AddressInputRest = {
633
633
  country_code: string;
634
634
  province_code?: string | null;
635
635
  };
636
- declare type MoneyBagRest = {
636
+ type MoneyBagRest = {
637
637
  shop_money: MoneyRest;
638
638
  presentment_money?: MoneyRest;
639
639
  };
640
- declare type MoneyRest = {
640
+ type MoneyRest = {
641
641
  amount: number | string;
642
642
  currency_code?: string;
643
643
  };
644
- declare type TaxLineRest = {
644
+ type TaxLineRest = {
645
645
  price: number;
646
646
  rate: number;
647
647
  title: string;
648
648
  };
649
- declare type FulfillmentRest = {
649
+ type FulfillmentRest = {
650
650
  id: string | number;
651
651
  created_at: string;
652
652
  name: string;
@@ -662,9 +662,9 @@ declare type FulfillmentRest = {
662
662
  tracking_urls?: string[];
663
663
  updated_at?: string;
664
664
  };
665
- declare type FulfillmentServiceRestTypes = 'gift_card' | 'manual' | 'third_party';
666
- declare type FulfillmentShipmentStatusRestTypes = 'label_printed' | 'label_purchased' | 'attempted_delivery' | 'ready_for_pickup' | 'confirmed' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failure';
667
- declare type ShippingLineRest = {
665
+ type FulfillmentServiceRestTypes = 'gift_card' | 'manual' | 'third_party';
666
+ type FulfillmentShipmentStatusRestTypes = 'label_printed' | 'label_purchased' | 'attempted_delivery' | 'ready_for_pickup' | 'confirmed' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failure';
667
+ type ShippingLineRest = {
668
668
  code: string | null;
669
669
  price: number | string;
670
670
  price_set: MoneyBagRest;
@@ -675,7 +675,7 @@ declare type ShippingLineRest = {
675
675
  tax_lines: TaxLineRest[];
676
676
  carrier_identifier: string | null;
677
677
  };
678
- declare type FulfillmentLocationInfo = {
678
+ type FulfillmentLocationInfo = {
679
679
  locationId: string;
680
680
  name: string;
681
681
  address1: string;
@@ -686,26 +686,26 @@ declare type FulfillmentLocationInfo = {
686
686
  province: string;
687
687
  zip: string;
688
688
  };
689
- declare type ShippingTypeOption = {
689
+ type ShippingTypeOption = {
690
690
  label: string;
691
691
  value: ReRobeShippingAndDeliveryTypes;
692
692
  description: string;
693
693
  price: string | number;
694
694
  disabled: boolean;
695
695
  };
696
- declare type ProductLocationMapping = {
696
+ type ProductLocationMapping = {
697
697
  location: FulfillmentLocationInfo;
698
698
  productsIds: string[];
699
699
  shippingPrice: number | string;
700
700
  shippingRateName: string;
701
701
  };
702
- declare type OrderShippingInfo = {
702
+ type OrderShippingInfo = {
703
703
  description: string;
704
704
  price: string | number | null;
705
705
  disabled: boolean;
706
706
  productsLocationsMapping: ProductLocationMapping[];
707
707
  };
708
- declare type OrderPresentmentData = {
708
+ type OrderPresentmentData = {
709
709
  presentmentCurrencyCode?: string;
710
710
  discountTitlePresentment?: string;
711
711
  subtotalPricePresentment: Money;
@@ -718,13 +718,13 @@ declare type OrderPresentmentData = {
718
718
  saleDiscountPresentment?: Money;
719
719
  additionalDiscountPresentment?: Money;
720
720
  };
721
- declare type CompleteOrder = ReRobeOrderObj & {
721
+ type CompleteOrder = ReRobeOrderObj & {
722
722
  [key: string]: any;
723
723
  };
724
- declare type CompleteRefund = OrderRefund & {
724
+ type CompleteRefund = OrderRefund & {
725
725
  [key: string]: any;
726
726
  };
727
- declare type OrderAttributesFormFields = {
727
+ type OrderAttributesFormFields = {
728
728
  currencyCode: TextInputFormField<string>;
729
729
  fulfillmentLocations: MultiSelectFormField<FulfillmentLocationItem>;
730
730
  financialStatus: SingleSelectFormField<FinancialStatusTypes>;
@@ -768,7 +768,7 @@ declare type OrderAttributesFormFields = {
768
768
  presentmentData: SingleSelectFormField<OrderPresentmentData>;
769
769
  state: SingleSelectFormField<string>;
770
770
  };
771
- declare type OrderRefundFormFields = {
771
+ type OrderRefundFormFields = {
772
772
  totalRefunded: TextInputFormField<string | number>;
773
773
  subtotalRefunded: TextInputFormField<string | number>;
774
774
  refundDiscount: TextInputFormField<string | number>;
@@ -786,7 +786,7 @@ declare type OrderRefundFormFields = {
786
786
  refundShippingPresentment: TextInputFormField<string | number>;
787
787
  totalTaxPresentment: TextInputFormField<string | number>;
788
788
  };
789
- declare type TypesenseOrderObj = {
789
+ type TypesenseOrderObj = {
790
790
  id: string;
791
791
  documentId: string;
792
792
  userId: string;
@@ -813,7 +813,7 @@ declare type TypesenseOrderObj = {
813
813
  createdAtHour: string;
814
814
  createdAtYear: string;
815
815
  };
816
- declare type OrderAdjustment = {
816
+ type OrderAdjustment = {
817
817
  createdAtTimestamp?: number;
818
818
  updatedAtTimestamp?: number;
819
819
  totalAdjustmentPrice: Money;
@@ -1,4 +1,4 @@
1
- declare type PickUp = {
1
+ type PickUp = {
2
2
  formattedAddress: string;
3
3
  pickUpDate: string;
4
4
  pickUpTime: string;
@@ -10,7 +10,7 @@ declare type PickUp = {
10
10
  packageType: string;
11
11
  messageToCourier: string;
12
12
  };
13
- declare type PickUpFormFields = {
13
+ type PickUpFormFields = {
14
14
  formattedAddress: SingleSelectFormField<string>;
15
15
  pickUpDate: SingleSelectFormField<string>;
16
16
  pickUpTime: SingleSelectFormField<string>;
@@ -1,4 +1,4 @@
1
- declare type ProductStateDictionary = {
1
+ type ProductStateDictionary = {
2
2
  loading: string;
3
3
  listed: string;
4
4
  clearance: string;
@@ -23,7 +23,7 @@ interface ProductState extends ProductStateChangeHandlers {
23
23
  target: ProductStateManagerClassProtocol;
24
24
  initialize: (target: any) => void;
25
25
  }
26
- declare type ProductStates = {
26
+ type ProductStates = {
27
27
  loading: ProductState;
28
28
  listed: ProductState;
29
29
  clearance: ProductState;
@@ -40,7 +40,7 @@ interface ProductStateManagerClassProtocol extends ProductStateChangeHandlers {
40
40
  updateSelf: (productPartial: ProductPartial, shoppingSessionId: string) => void;
41
41
  inReservedBy: () => boolean;
42
42
  }
43
- declare type ProductPartial = {
43
+ type ProductPartial = {
44
44
  reservedBy: string[];
45
45
  status: string;
46
46
  };
@@ -1,4 +1,4 @@
1
- declare type ProductAttributes = {
1
+ type ProductAttributes = {
2
2
  availableForSale: boolean;
3
3
  description: string;
4
4
  handle: string;
@@ -29,7 +29,7 @@ declare type ProductAttributes = {
29
29
  metaDataTitle?: string;
30
30
  metaDataDescription?: string;
31
31
  };
32
- declare type ProductFilterAttributes = {
32
+ type ProductFilterAttributes = {
33
33
  documentId: string;
34
34
  brand: string;
35
35
  size: string;
@@ -50,7 +50,7 @@ declare type ProductFilterAttributes = {
50
50
  primaryAgeCategory: string;
51
51
  tags?: string[];
52
52
  };
53
- declare type ProductConsignmentAttributes = {
53
+ type ProductConsignmentAttributes = {
54
54
  sellRequestImageUrls: string[];
55
55
  sellRequestId: string;
56
56
  publishType: ProductPublishKeys | string;
@@ -77,7 +77,7 @@ declare type ProductConsignmentAttributes = {
77
77
  majorDefects: string[];
78
78
  minorDefects: string[];
79
79
  };
80
- declare type ProductTimestampAttributes = {
80
+ type ProductTimestampAttributes = {
81
81
  createdAtTimestamp: number | null;
82
82
  updatedAtTimestamp: number | null;
83
83
  draftTimestamp: number | null;
@@ -106,7 +106,7 @@ declare type ProductTimestampAttributes = {
106
106
  sellerDonatedTimestamp: number | null;
107
107
  merchantDonatedTimestamp: number | null;
108
108
  };
109
- declare type TranslatableAttributes = {
109
+ type TranslatableAttributes = {
110
110
  description: string;
111
111
  color: string;
112
112
  gender: string;
@@ -116,7 +116,7 @@ declare type TranslatableAttributes = {
116
116
  materialComposition: string;
117
117
  condition: string;
118
118
  };
119
- declare type MaterialComposition = {
119
+ type MaterialComposition = {
120
120
  acrylic?: number;
121
121
  cotton?: number;
122
122
  elasthane?: number;
@@ -135,16 +135,16 @@ declare type MaterialComposition = {
135
135
  wool?: number;
136
136
  [key: string]: any;
137
137
  };
138
- declare type EditorAuthorization = {
138
+ type EditorAuthorization = {
139
139
  [key: string]: string[];
140
140
  };
141
- declare type ProductSellStatusKeys = 'SELL_REQUEST_REVIEW' | 'REJECTED' | 'HOLD' | 'ACCEPTED' | 'DROP_OFF_AT_REROBE' | 'SHIP_TO_REROBE' | 'AT_HOME_PICK_UP' | 'QUALITY_CONTROL' | 'LISTED' | 'SOLD' | 'RETURNED' | 'SOLD_SELLER_TO_BE_PAID' | 'SOLD_SELLER_PAID';
142
- declare type ProductPublishKeys = 'USER_PUBLISHED' | 'REROBE_PUBLISHED';
143
- declare type ShopifyProduct = ProductAttributes & ProductFilterAttributes;
144
- declare type CompleteProduct = ProductAttributes & ProductFilterAttributes & ProductConsignmentAttributes & {
141
+ type ProductSellStatusKeys = 'SELL_REQUEST_REVIEW' | 'REJECTED' | 'HOLD' | 'ACCEPTED' | 'DROP_OFF_AT_REROBE' | 'SHIP_TO_REROBE' | 'AT_HOME_PICK_UP' | 'QUALITY_CONTROL' | 'LISTED' | 'SOLD' | 'RETURNED' | 'SOLD_SELLER_TO_BE_PAID' | 'SOLD_SELLER_PAID';
142
+ type ProductPublishKeys = 'USER_PUBLISHED' | 'REROBE_PUBLISHED';
143
+ type ShopifyProduct = ProductAttributes & ProductFilterAttributes;
144
+ type CompleteProduct = ProductAttributes & ProductFilterAttributes & ProductConsignmentAttributes & {
145
145
  [key: string]: any;
146
146
  };
147
- declare type ProductAttributesFormFields = {
147
+ type ProductAttributesFormFields = {
148
148
  availableForSale: SingleSelectFormField<boolean>;
149
149
  description: TextInputFormField<string>;
150
150
  title: TextInputFormField<string>;
@@ -167,7 +167,7 @@ declare type ProductAttributesFormFields = {
167
167
  metaDataDescription: TextInputFormField<string>;
168
168
  handle: TextInputFormField<string>;
169
169
  };
170
- declare type ProductFilterAttributesFormFields = {
170
+ type ProductFilterAttributesFormFields = {
171
171
  brand: SingleSelectFormField<string>;
172
172
  size: SingleSelectFormField<string>;
173
173
  clothingSize: MultiSelectFormField<string>;
@@ -186,7 +186,7 @@ declare type ProductFilterAttributesFormFields = {
186
186
  primaryAgeCategory: SingleSelectFormField<string>;
187
187
  tags: MultiSelectFormField<string>;
188
188
  };
189
- declare type ProductConsignmentAttributesFormFields = {
189
+ type ProductConsignmentAttributesFormFields = {
190
190
  publishType: SingleSelectFormField<string>;
191
191
  conditionRemarks: TextInputFormField<string>;
192
192
  productRemarks: TextInputFormField<string>;
@@ -210,28 +210,28 @@ declare type ProductConsignmentAttributesFormFields = {
210
210
  majorDefects: MultiSelectFormField<string>;
211
211
  minorDefects: MultiSelectFormField<string>;
212
212
  };
213
- declare type ProductFormFields = ProductAttributesFormFields & ProductFilterAttributesFormFields & ProductConsignmentAttributesFormFields;
213
+ type ProductFormFields = ProductAttributesFormFields & ProductFilterAttributesFormFields & ProductConsignmentAttributesFormFields;
214
214
  interface ParamsForBuildProductInputObjForShopify {
215
215
  vendorId?: string;
216
216
  productShopifyId?: string;
217
217
  }
218
- declare type ConditionTypes = 'NEW' | 'USED';
219
- declare type ProductOptions = {
218
+ type ConditionTypes = 'NEW' | 'USED';
219
+ type ProductOptions = {
220
220
  size?: string[];
221
221
  color?: string[];
222
222
  material?: string[];
223
223
  style?: string[];
224
224
  title?: string[];
225
225
  };
226
- declare type Measurements = {
226
+ type Measurements = {
227
227
  depth?: string;
228
228
  width?: string;
229
229
  height?: string;
230
230
  unit?: string;
231
231
  [key: string]: any;
232
232
  };
233
- declare type WeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
234
- declare type ProductLineItem = {
233
+ type WeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
234
+ type ProductLineItem = {
235
235
  title: string;
236
236
  variant: {
237
237
  id: string;
@@ -243,13 +243,13 @@ declare type ProductLineItem = {
243
243
  image: string;
244
244
  quantity: number;
245
245
  };
246
- declare type InventoryLocation = {
246
+ type InventoryLocation = {
247
247
  id: string;
248
248
  name: string;
249
249
  incomingAmount: number;
250
250
  availableAmount: number;
251
251
  };
252
- declare type TypesenseProductObj = {
252
+ type TypesenseProductObj = {
253
253
  brand: string;
254
254
  size: string;
255
255
  clothingSize: string[];
@@ -1,12 +1,12 @@
1
- declare type SellRequest = {
1
+ type SellRequest = {
2
2
  products: CompleteProduct[];
3
3
  message: string;
4
4
  };
5
- declare type ProductWithIndex = {
5
+ type ProductWithIndex = {
6
6
  index: null | number;
7
7
  product: null | CompleteProduct;
8
8
  };
9
- declare type SellRequestFormFields = {
9
+ type SellRequestFormFields = {
10
10
  products: MultiSelectFormField<CompleteProduct>;
11
11
  message: TextInputFormField<string>;
12
12
  };