@wix/ecom 1.0.625 → 1.0.626

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ecom",
3
- "version": "1.0.625",
3
+ "version": "1.0.626",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -24,9 +24,9 @@
24
24
  "@wix/ecom_back-in-stock-notifications": "1.0.35",
25
25
  "@wix/ecom_back-in-stock-settings": "1.0.22",
26
26
  "@wix/ecom_cart": "1.0.44",
27
- "@wix/ecom_checkout": "1.0.46",
27
+ "@wix/ecom_checkout": "1.0.47",
28
28
  "@wix/ecom_checkout-settings": "1.0.33",
29
- "@wix/ecom_checkout-templates": "1.0.47",
29
+ "@wix/ecom_checkout-templates": "1.0.48",
30
30
  "@wix/ecom_currencies": "1.0.23",
31
31
  "@wix/ecom_current-cart": "1.0.44",
32
32
  "@wix/ecom_custom-triggers": "1.0.7",
@@ -64,5 +64,5 @@
64
64
  "fqdn": ""
65
65
  }
66
66
  },
67
- "falconPackageHash": "dfd5f364f4b7bbd883e6dbe77c4908bfa4b219b5e38c6b984c2bcb9e"
67
+ "falconPackageHash": "1d241580b1bfefd538a4b8c8f200e979780b3a1c1931b839e4e830c0"
68
68
  }
@@ -7383,6 +7383,8 @@ interface LineItem$1 {
7383
7383
  * @readonly
7384
7384
  */
7385
7385
  depositAmount?: MultiCurrencyPrice$1;
7386
+ /** Allows partial overrides for catalog line item properties like name, price, etc */
7387
+ catalogOverrideFields?: CatalogOverrideFields$1;
7386
7388
  }
7387
7389
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
7388
7390
  interface CatalogReference$2 {
@@ -7595,6 +7597,20 @@ interface PriceDescription$2 {
7595
7597
  */
7596
7598
  translated?: string | null;
7597
7599
  }
7600
+ interface CatalogOverrideFields$1 {
7601
+ /** Item product name */
7602
+ productName?: ProductName$2;
7603
+ /** Item price **after** discounts. */
7604
+ price?: string | null;
7605
+ /** Item price **before** discount. */
7606
+ fullPrice?: string | null;
7607
+ /** Line item description lines. Used for displaying the cart, checkout and order. */
7608
+ descriptionLines?: DescriptionLine$2[];
7609
+ /** Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability. */
7610
+ physicalProperties?: PhysicalProperties$2;
7611
+ /** Line item image details. */
7612
+ image?: string;
7613
+ }
7598
7614
  /** Billing Info and shipping details */
7599
7615
  interface AddressWithContact$2 {
7600
7616
  /** Address. */
@@ -8535,6 +8551,26 @@ interface GetCheckoutResponseNonNullableFields {
8535
8551
  formattedAmount: string;
8536
8552
  formattedConvertedAmount: string;
8537
8553
  };
8554
+ catalogOverrideFields?: {
8555
+ productName?: {
8556
+ original: string;
8557
+ };
8558
+ descriptionLines: {
8559
+ plainText?: {
8560
+ original: string;
8561
+ };
8562
+ colorInfo?: {
8563
+ original: string;
8564
+ };
8565
+ name?: {
8566
+ original: string;
8567
+ };
8568
+ }[];
8569
+ physicalProperties?: {
8570
+ shippable: boolean;
8571
+ };
8572
+ image: string;
8573
+ };
8538
8574
  }[];
8539
8575
  billingInfo?: {
8540
8576
  contactDetails?: {
@@ -9220,6 +9256,26 @@ interface RemoveCouponResponseNonNullableFields {
9220
9256
  formattedAmount: string;
9221
9257
  formattedConvertedAmount: string;
9222
9258
  };
9259
+ catalogOverrideFields?: {
9260
+ productName?: {
9261
+ original: string;
9262
+ };
9263
+ descriptionLines: {
9264
+ plainText?: {
9265
+ original: string;
9266
+ };
9267
+ colorInfo?: {
9268
+ original: string;
9269
+ };
9270
+ name?: {
9271
+ original: string;
9272
+ };
9273
+ }[];
9274
+ physicalProperties?: {
9275
+ shippable: boolean;
9276
+ };
9277
+ image: string;
9278
+ };
9223
9279
  }[];
9224
9280
  billingInfo?: {
9225
9281
  contactDetails?: {
@@ -9902,6 +9958,26 @@ interface RemoveGiftCardResponseNonNullableFields {
9902
9958
  formattedAmount: string;
9903
9959
  formattedConvertedAmount: string;
9904
9960
  };
9961
+ catalogOverrideFields?: {
9962
+ productName?: {
9963
+ original: string;
9964
+ };
9965
+ descriptionLines: {
9966
+ plainText?: {
9967
+ original: string;
9968
+ };
9969
+ colorInfo?: {
9970
+ original: string;
9971
+ };
9972
+ name?: {
9973
+ original: string;
9974
+ };
9975
+ }[];
9976
+ physicalProperties?: {
9977
+ shippable: boolean;
9978
+ };
9979
+ image: string;
9980
+ };
9905
9981
  }[];
9906
9982
  billingInfo?: {
9907
9983
  contactDetails?: {
@@ -10584,6 +10660,26 @@ interface RemoveOverrideCheckoutUrlResponseNonNullableFields {
10584
10660
  formattedAmount: string;
10585
10661
  formattedConvertedAmount: string;
10586
10662
  };
10663
+ catalogOverrideFields?: {
10664
+ productName?: {
10665
+ original: string;
10666
+ };
10667
+ descriptionLines: {
10668
+ plainText?: {
10669
+ original: string;
10670
+ };
10671
+ colorInfo?: {
10672
+ original: string;
10673
+ };
10674
+ name?: {
10675
+ original: string;
10676
+ };
10677
+ }[];
10678
+ physicalProperties?: {
10679
+ shippable: boolean;
10680
+ };
10681
+ image: string;
10682
+ };
10587
10683
  }[];
10588
10684
  billingInfo?: {
10589
10685
  contactDetails?: {
@@ -11266,6 +11362,26 @@ interface AddToCheckoutResponseNonNullableFields {
11266
11362
  formattedAmount: string;
11267
11363
  formattedConvertedAmount: string;
11268
11364
  };
11365
+ catalogOverrideFields?: {
11366
+ productName?: {
11367
+ original: string;
11368
+ };
11369
+ descriptionLines: {
11370
+ plainText?: {
11371
+ original: string;
11372
+ };
11373
+ colorInfo?: {
11374
+ original: string;
11375
+ };
11376
+ name?: {
11377
+ original: string;
11378
+ };
11379
+ }[];
11380
+ physicalProperties?: {
11381
+ shippable: boolean;
11382
+ };
11383
+ image: string;
11384
+ };
11269
11385
  }[];
11270
11386
  billingInfo?: {
11271
11387
  contactDetails?: {
@@ -11948,6 +12064,26 @@ interface RemoveLineItemsResponseNonNullableFields {
11948
12064
  formattedAmount: string;
11949
12065
  formattedConvertedAmount: string;
11950
12066
  };
12067
+ catalogOverrideFields?: {
12068
+ productName?: {
12069
+ original: string;
12070
+ };
12071
+ descriptionLines: {
12072
+ plainText?: {
12073
+ original: string;
12074
+ };
12075
+ colorInfo?: {
12076
+ original: string;
12077
+ };
12078
+ name?: {
12079
+ original: string;
12080
+ };
12081
+ }[];
12082
+ physicalProperties?: {
12083
+ shippable: boolean;
12084
+ };
12085
+ image: string;
12086
+ };
11951
12087
  }[];
11952
12088
  billingInfo?: {
11953
12089
  contactDetails?: {
@@ -12634,6 +12770,26 @@ interface UpdateLineItemsQuantityResponseNonNullableFields {
12634
12770
  formattedAmount: string;
12635
12771
  formattedConvertedAmount: string;
12636
12772
  };
12773
+ catalogOverrideFields?: {
12774
+ productName?: {
12775
+ original: string;
12776
+ };
12777
+ descriptionLines: {
12778
+ plainText?: {
12779
+ original: string;
12780
+ };
12781
+ colorInfo?: {
12782
+ original: string;
12783
+ };
12784
+ name?: {
12785
+ original: string;
12786
+ };
12787
+ }[];
12788
+ physicalProperties?: {
12789
+ shippable: boolean;
12790
+ };
12791
+ image: string;
12792
+ };
12637
12793
  }[];
12638
12794
  billingInfo?: {
12639
12795
  contactDetails?: {
@@ -13573,6 +13729,26 @@ declare function createCheckout$1(httpClient: HttpClient): (options?: CreateChec
13573
13729
  formattedAmount: string;
13574
13730
  formattedConvertedAmount: string;
13575
13731
  } | undefined;
13732
+ catalogOverrideFields?: {
13733
+ productName?: {
13734
+ original: string;
13735
+ } | undefined;
13736
+ descriptionLines: {
13737
+ plainText?: {
13738
+ original: string;
13739
+ } | undefined;
13740
+ colorInfo?: {
13741
+ original: string;
13742
+ } | undefined;
13743
+ name?: {
13744
+ original: string;
13745
+ } | undefined;
13746
+ }[];
13747
+ physicalProperties?: {
13748
+ shippable: boolean;
13749
+ } | undefined;
13750
+ image: string;
13751
+ } | undefined;
13576
13752
  }[];
13577
13753
  billingInfo?: {
13578
13754
  contactDetails?: {
@@ -14255,6 +14431,26 @@ declare function updateCheckout$1(httpClient: HttpClient): (_id: string | null,
14255
14431
  formattedAmount: string;
14256
14432
  formattedConvertedAmount: string;
14257
14433
  } | undefined;
14434
+ catalogOverrideFields?: {
14435
+ productName?: {
14436
+ original: string;
14437
+ } | undefined;
14438
+ descriptionLines: {
14439
+ plainText?: {
14440
+ original: string;
14441
+ } | undefined;
14442
+ colorInfo?: {
14443
+ original: string;
14444
+ } | undefined;
14445
+ name?: {
14446
+ original: string;
14447
+ } | undefined;
14448
+ }[];
14449
+ physicalProperties?: {
14450
+ shippable: boolean;
14451
+ } | undefined;
14452
+ image: string;
14453
+ } | undefined;
14258
14454
  }[];
14259
14455
  billingInfo?: {
14260
14456
  contactDetails?: {
@@ -15171,6 +15367,8 @@ interface V1LineItem {
15171
15367
  * > **Note:** For more information on what to pass to `lineItems.catalogReference`, see [eCommerce Integration in the Wix Stores Catalog API](https://dev.wix.com/api/rest/wix-stores/catalog/ecommerce-integration).
15172
15368
  */
15173
15369
  catalogReference?: CatalogReference$1;
15370
+ /** Allows partial overrides for catalog line item properties like name, price, etc */
15371
+ catalogOverrideFields?: CatalogOverrideFields;
15174
15372
  }
15175
15373
  /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
15176
15374
  interface CatalogReference$1 {
@@ -15194,6 +15392,20 @@ interface CatalogReference$1 {
15194
15392
  */
15195
15393
  options?: Record<string, any> | null;
15196
15394
  }
15395
+ interface CatalogOverrideFields {
15396
+ /** Item product name */
15397
+ productName?: ProductName$1;
15398
+ /** Item price **after** discounts. */
15399
+ price?: string | null;
15400
+ /** Item price **before** discount. */
15401
+ fullPrice?: string | null;
15402
+ /** Line item description lines. Used for displaying the cart, checkout and order. */
15403
+ descriptionLines?: DescriptionLine$1[];
15404
+ /** Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability. */
15405
+ physicalProperties?: PhysicalProperties$1;
15406
+ /** Line item image details. */
15407
+ image?: string;
15408
+ }
15197
15409
  interface ProductName$1 {
15198
15410
  /**
15199
15411
  * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
@@ -15635,6 +15847,8 @@ interface LineItem {
15635
15847
  * @readonly
15636
15848
  */
15637
15849
  depositAmount?: MultiCurrencyPrice;
15850
+ /** Allows partial overrides for catalog line item properties like name, price, etc */
15851
+ catalogOverrideFields?: CatalogOverrideFields;
15638
15852
  }
15639
15853
  interface MultiCurrencyPrice {
15640
15854
  /** Amount. */
@@ -16610,6 +16824,26 @@ declare function createCheckoutTemplate$1(httpClient: HttpClient): (checkoutTemp
16610
16824
  catalogItemId: string;
16611
16825
  appId: string;
16612
16826
  } | undefined;
16827
+ catalogOverrideFields?: {
16828
+ productName?: {
16829
+ original: string;
16830
+ } | undefined;
16831
+ descriptionLines: {
16832
+ plainText?: {
16833
+ original: string;
16834
+ } | undefined;
16835
+ colorInfo?: {
16836
+ original: string;
16837
+ } | undefined;
16838
+ name?: {
16839
+ original: string;
16840
+ } | undefined;
16841
+ }[];
16842
+ physicalProperties?: {
16843
+ shippable: boolean;
16844
+ } | undefined;
16845
+ image: string;
16846
+ } | undefined;
16613
16847
  }[];
16614
16848
  }>;
16615
16849
  declare function getCheckoutTemplate$1(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<CheckoutTemplate & {
@@ -16627,6 +16861,26 @@ declare function getCheckoutTemplate$1(httpClient: HttpClient): (checkoutTemplat
16627
16861
  catalogItemId: string;
16628
16862
  appId: string;
16629
16863
  } | undefined;
16864
+ catalogOverrideFields?: {
16865
+ productName?: {
16866
+ original: string;
16867
+ } | undefined;
16868
+ descriptionLines: {
16869
+ plainText?: {
16870
+ original: string;
16871
+ } | undefined;
16872
+ colorInfo?: {
16873
+ original: string;
16874
+ } | undefined;
16875
+ name?: {
16876
+ original: string;
16877
+ } | undefined;
16878
+ }[];
16879
+ physicalProperties?: {
16880
+ shippable: boolean;
16881
+ } | undefined;
16882
+ image: string;
16883
+ } | undefined;
16630
16884
  }[];
16631
16885
  }>;
16632
16886
  declare function updateCheckoutTemplate$1(httpClient: HttpClient): (_id: string | null, checkoutTemplate: UpdateCheckoutTemplate) => Promise<CheckoutTemplate & {
@@ -16644,6 +16898,26 @@ declare function updateCheckoutTemplate$1(httpClient: HttpClient): (_id: string
16644
16898
  catalogItemId: string;
16645
16899
  appId: string;
16646
16900
  } | undefined;
16901
+ catalogOverrideFields?: {
16902
+ productName?: {
16903
+ original: string;
16904
+ } | undefined;
16905
+ descriptionLines: {
16906
+ plainText?: {
16907
+ original: string;
16908
+ } | undefined;
16909
+ colorInfo?: {
16910
+ original: string;
16911
+ } | undefined;
16912
+ name?: {
16913
+ original: string;
16914
+ } | undefined;
16915
+ }[];
16916
+ physicalProperties?: {
16917
+ shippable: boolean;
16918
+ } | undefined;
16919
+ image: string;
16920
+ } | undefined;
16647
16921
  }[];
16648
16922
  }>;
16649
16923
  declare function deleteCheckoutTemplate$1(httpClient: HttpClient): (checkoutTemplateId: string) => Promise<void>;