@wix/auto_sdk_ecom_catalog 1.0.76 → 1.0.78
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/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/{interfaces-ecommerce-v1-catalog-provider.public-BN21Gi1y.d.ts → interfaces-ecommerce-v1-catalog-provider.public-C-m67vj5.d.ts} +29 -6
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/{interfaces-ecommerce-v1-catalog-provider.public-BN21Gi1y.d.mts → interfaces-ecommerce-v1-catalog-provider.public-C-m67vj5.d.mts} +29 -6
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/{interfaces-ecommerce-v1-catalog-provider.public-bIAQ2q-E.d.ts → interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.d.ts} +39 -6
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/{interfaces-ecommerce-v1-catalog-provider.public-bIAQ2q-E.d.mts → interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.d.mts} +39 -6
- package/package.json +2 -2
|
@@ -799,7 +799,7 @@ declare enum ChargeType {
|
|
|
799
799
|
/** Resolved bundle details. */
|
|
800
800
|
interface BundleInfo {
|
|
801
801
|
/**
|
|
802
|
-
* The items included in the bundle.
|
|
802
|
+
* The items included in the bundle. Their `quantity` values must add up to at least 2, and each must have a different `catalogReference`.
|
|
803
803
|
* @minSize 1
|
|
804
804
|
* @maxSize 10
|
|
805
805
|
*/
|
|
@@ -807,7 +807,7 @@ interface BundleInfo {
|
|
|
807
807
|
}
|
|
808
808
|
/** One item included in a bundle. */
|
|
809
809
|
interface BundledItem {
|
|
810
|
-
/** Catalog and item reference of the bundled item. */
|
|
810
|
+
/** __Required.__ Catalog and item reference of the bundled item. */
|
|
811
811
|
catalogReference?: CatalogReference;
|
|
812
812
|
/**
|
|
813
813
|
* Number of units of this item in a single bundle.
|
|
@@ -816,13 +816,13 @@ interface BundledItem {
|
|
|
816
816
|
*/
|
|
817
817
|
quantity?: number;
|
|
818
818
|
/**
|
|
819
|
-
* The item's own price for 1 unit outside the bundle, with catalog discounts applied.
|
|
819
|
+
* __Required.__ The item's own price for 1 unit outside the bundle, with catalog discounts applied.
|
|
820
820
|
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
821
821
|
*/
|
|
822
822
|
price?: string;
|
|
823
|
-
/** Item name. */
|
|
823
|
+
/** __Required.__ Item name. */
|
|
824
824
|
productName?: ProductName;
|
|
825
|
-
/** Item type. */
|
|
825
|
+
/** __Required.__ Item type. Gift cards and bundles aren't allowed. */
|
|
826
826
|
itemType?: ItemType;
|
|
827
827
|
/**
|
|
828
828
|
* The tax group ID associated with this item.
|
|
@@ -866,6 +866,29 @@ interface BundledItem {
|
|
|
866
866
|
/** Service properties, such as time and number of participants. */
|
|
867
867
|
serviceProperties?: ServiceProperties;
|
|
868
868
|
}
|
|
869
|
+
/**
|
|
870
|
+
* A sale attribution records the party credited with the sale of a line item.
|
|
871
|
+
* You can use sale attributions to calculate commission per line item.
|
|
872
|
+
*
|
|
873
|
+
* Currently supports crediting a staff member.
|
|
874
|
+
*/
|
|
875
|
+
interface SaleAttribution extends SaleAttributionCreditedPartyOneOf {
|
|
876
|
+
/** Staff member credited with the sale. */
|
|
877
|
+
staffMember?: StaffMemberAttribution;
|
|
878
|
+
}
|
|
879
|
+
/** @oneof */
|
|
880
|
+
interface SaleAttributionCreditedPartyOneOf {
|
|
881
|
+
/** Staff member credited with the sale. */
|
|
882
|
+
staffMember?: StaffMemberAttribution;
|
|
883
|
+
}
|
|
884
|
+
/** A staff member credited with the sale of a line item. */
|
|
885
|
+
interface StaffMemberAttribution {
|
|
886
|
+
/**
|
|
887
|
+
* ID of the credited staff member. Get the ID from the [Bookings Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/introduction).
|
|
888
|
+
* @format GUID
|
|
889
|
+
*/
|
|
890
|
+
staffMemberId?: string;
|
|
891
|
+
}
|
|
869
892
|
interface QueryCatalogItemsRequest {
|
|
870
893
|
/**
|
|
871
894
|
* A list of itemIDs to filter by. If exists, the result will only include the items with the IDs passed.
|
|
@@ -1108,4 +1131,4 @@ declare const provideHandlers: ServicePluginDefinition<{
|
|
|
1108
1131
|
getCatalogItems(payload: GetCatalogItemsEnvelope): GetCatalogItemsResponse | Promise<GetCatalogItemsResponse>;
|
|
1109
1132
|
}>;
|
|
1110
1133
|
|
|
1111
|
-
export { type
|
|
1134
|
+
export { type SaleAttribution as $, FileType as A, type BuyerInfo as B, type CatalogReferenceAndQuantity as C, type DescriptionLine as D, PaymentOptionType as E, type FreeTrialPeriod as F, type GetCatalogItemsRequest as G, type ServiceProperties as H, type Item as I, type PriceDescription as J, type TaxableAddress as K, type TaxableAddressTaxableAddressDataOneOf as L, TaxableAddressType as M, type Policy as N, type AdditionalFee as O, type ProductName as P, type TaxDetails as Q, type ModifierGroup as R, type Scope as S, type Title as T, type TranslatableString as U, type ItemModifier as V, WeightUnit as W, type PlatformFee as X, ChargeType as Y, type BundleInfo as Z, type BundledItem as _, type CatalogReference as a, type SaleAttributionCreditedPartyOneOf as a0, type StaffMemberAttribution as a1, type QueryCatalogItemsRequest as a2, type Paging as a3, type QueryCatalogItemsResponse as a4, type BasicItem as a5, type NumericPropertyRange as a6, PurchaseType as a7, type PagingMetadata as a8, type CatalogSPIConfig as a9, type AllItemsDiscountConfig as aa, type SpecificItemsDiscountConfig as ab, type Context as ac, IdentityType as ad, type IdentificationData as ae, type IdentificationDataIdOneOf as af, type GetCatalogItemsEnvelope as ag, type BuyerInfoIdOneOf as b, type GetCatalogItemsResponse as c, type ItemData as d, type ItemType as e, type ItemTypeItemTypeDataOneOf as f, ItemTypePreset as g, type DescriptionLineValueOneOf as h, type DescriptionLineDescriptionLineValueOneOf as i, type DescriptionLineName as j, type PlainTextValue as k, type Color as l, DescriptionLineType as m, type PhysicalProperties as n, type Dimensions as o, provideHandlers as p, DimensionsUnit as q, type Group as r, type SubscriptionOptionInfo as s, type SubscriptionSettings as t, SubscriptionFrequency as u, type BillingSettings as v, ProductPeriodAlignment as w, type CyclePriceOverride as x, type Description as y, type SecuredMedia as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-
|
|
2
|
-
export { O as AdditionalFee,
|
|
1
|
+
import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.js';
|
|
2
|
+
export { O as AdditionalFee, aa as AllItemsDiscountConfig, a5 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a9 as CatalogSPIConfig, Y as ChargeType, l as Color, ac as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, ae as IdentificationData, af as IdentificationDataIdOneOf, ad as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a6 as NumericPropertyRange, a3 as Paging, a8 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a7 as PurchaseType, a2 as QueryCatalogItemsRequest, a4 as QueryCatalogItemsResponse, $ as SaleAttribution, a0 as SaleAttributionCreditedPartyOneOf, S as Scope, z as SecuredMedia, H as ServiceProperties, ab as SpecificItemsDiscountConfig, a1 as StaffMemberAttribution, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.js';
|
|
3
3
|
import { BuildServicePluginDefinition } from '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
declare const provideHandlers: BuildServicePluginDefinition<typeof provideHandlers$1> & typeof provideHandlers$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { O as AdditionalFee,
|
|
1
|
+
import { ag as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.js';
|
|
2
|
+
export { O as AdditionalFee, aa as AllItemsDiscountConfig, a5 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a9 as CatalogSPIConfig, Y as ChargeType, l as Color, ac as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, ae as IdentificationData, af as IdentificationDataIdOneOf, ad as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a6 as NumericPropertyRange, a3 as Paging, a8 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a7 as PurchaseType, a2 as QueryCatalogItemsRequest, a4 as QueryCatalogItemsResponse, $ as SaleAttribution, a0 as SaleAttributionCreditedPartyOneOf, S as Scope, z as SecuredMedia, H as ServiceProperties, ab as SpecificItemsDiscountConfig, a1 as StaffMemberAttribution, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -323,9 +323,19 @@ interface ItemData {
|
|
|
323
323
|
upsellOptionsAppId?: string | null;
|
|
324
324
|
/**
|
|
325
325
|
* Resolved bundle details.
|
|
326
|
+
*
|
|
327
|
+
* Required when `itemType.preset` is `BUNDLE`, and not supported otherwise.
|
|
326
328
|
* @internal
|
|
327
329
|
*/
|
|
328
330
|
bundleInfo?: BundleInfo;
|
|
331
|
+
/**
|
|
332
|
+
* Parties credited with the sale of this item. Sale attributions are used to calculate commission per line item.
|
|
333
|
+
*
|
|
334
|
+
* Attributions that don't credit a party are ignored.
|
|
335
|
+
* @internal
|
|
336
|
+
* @maxSize 5
|
|
337
|
+
*/
|
|
338
|
+
saleAttributions?: SaleAttribution[];
|
|
329
339
|
}
|
|
330
340
|
interface ProductName {
|
|
331
341
|
/**
|
|
@@ -911,7 +921,7 @@ declare enum ChargeType {
|
|
|
911
921
|
/** Resolved bundle details. */
|
|
912
922
|
interface BundleInfo {
|
|
913
923
|
/**
|
|
914
|
-
* The items included in the bundle.
|
|
924
|
+
* The items included in the bundle. Their `quantity` values must add up to at least 2, and each must have a different `catalogReference`.
|
|
915
925
|
* @minSize 1
|
|
916
926
|
* @maxSize 10
|
|
917
927
|
*/
|
|
@@ -919,7 +929,7 @@ interface BundleInfo {
|
|
|
919
929
|
}
|
|
920
930
|
/** One item included in a bundle. */
|
|
921
931
|
interface BundledItem {
|
|
922
|
-
/** Catalog and item reference of the bundled item. */
|
|
932
|
+
/** __Required.__ Catalog and item reference of the bundled item. */
|
|
923
933
|
catalogReference?: CatalogReference;
|
|
924
934
|
/**
|
|
925
935
|
* Number of units of this item in a single bundle.
|
|
@@ -928,13 +938,13 @@ interface BundledItem {
|
|
|
928
938
|
*/
|
|
929
939
|
quantity?: number;
|
|
930
940
|
/**
|
|
931
|
-
* The item's own price for 1 unit outside the bundle, with catalog discounts applied.
|
|
941
|
+
* __Required.__ The item's own price for 1 unit outside the bundle, with catalog discounts applied.
|
|
932
942
|
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
933
943
|
*/
|
|
934
944
|
price?: string;
|
|
935
|
-
/** Item name. */
|
|
945
|
+
/** __Required.__ Item name. */
|
|
936
946
|
productName?: ProductName;
|
|
937
|
-
/** Item type. */
|
|
947
|
+
/** __Required.__ Item type. Gift cards and bundles aren't allowed. */
|
|
938
948
|
itemType?: ItemType;
|
|
939
949
|
/**
|
|
940
950
|
* The tax group ID associated with this item.
|
|
@@ -1000,6 +1010,29 @@ interface BundledItem {
|
|
|
1000
1010
|
/** Service properties, such as time and number of participants. */
|
|
1001
1011
|
serviceProperties?: ServiceProperties;
|
|
1002
1012
|
}
|
|
1013
|
+
/**
|
|
1014
|
+
* A sale attribution records the party credited with the sale of a line item.
|
|
1015
|
+
* You can use sale attributions to calculate commission per line item.
|
|
1016
|
+
*
|
|
1017
|
+
* Currently supports crediting a staff member.
|
|
1018
|
+
*/
|
|
1019
|
+
interface SaleAttribution extends SaleAttributionCreditedPartyOneOf {
|
|
1020
|
+
/** Staff member credited with the sale. */
|
|
1021
|
+
staffMember?: StaffMemberAttribution;
|
|
1022
|
+
}
|
|
1023
|
+
/** @oneof */
|
|
1024
|
+
interface SaleAttributionCreditedPartyOneOf {
|
|
1025
|
+
/** Staff member credited with the sale. */
|
|
1026
|
+
staffMember?: StaffMemberAttribution;
|
|
1027
|
+
}
|
|
1028
|
+
/** A staff member credited with the sale of a line item. */
|
|
1029
|
+
interface StaffMemberAttribution {
|
|
1030
|
+
/**
|
|
1031
|
+
* ID of the credited staff member. Get the ID from the [Bookings Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/introduction).
|
|
1032
|
+
* @format GUID
|
|
1033
|
+
*/
|
|
1034
|
+
staffMemberId?: string;
|
|
1035
|
+
}
|
|
1003
1036
|
interface QueryCatalogItemsRequest {
|
|
1004
1037
|
/**
|
|
1005
1038
|
* A list of itemIDs to filter by. If exists, the result will only include the items with the IDs passed.
|
|
@@ -1310,4 +1343,4 @@ declare const provideHandlers: ServicePluginDefinition<{
|
|
|
1310
1343
|
getCatalogItems(payload: GetCatalogItemsEnvelope): GetCatalogItemsResponse | Promise<GetCatalogItemsResponse>;
|
|
1311
1344
|
}>;
|
|
1312
1345
|
|
|
1313
|
-
export { type
|
|
1346
|
+
export { type SaleAttribution as $, FileType as A, type BuyerInfo as B, type CatalogReferenceAndQuantity as C, type DescriptionLine as D, PaymentOptionType as E, type FreeTrialPeriod as F, type GetCatalogItemsRequest as G, type ServiceProperties as H, type Item as I, type PriceDescription as J, type TaxableAddress as K, type TaxableAddressTaxableAddressDataOneOf as L, TaxableAddressType as M, type Policy as N, type AdditionalFee as O, type ProductName as P, type TaxDetails as Q, type ModifierGroup as R, type Scope as S, type Title as T, type TranslatableString as U, type ItemModifier as V, WeightUnit as W, type PlatformFee as X, ChargeType as Y, type BundleInfo as Z, type BundledItem as _, type CatalogReference as a, type SaleAttributionCreditedPartyOneOf as a0, type StaffMemberAttribution as a1, type QueryCatalogItemsRequest as a2, type Paging as a3, type QueryCatalogItemsResponse as a4, type BasicItem as a5, type NumericPropertyRange as a6, PurchaseType as a7, type PagingMetadata as a8, type CatalogSPIConfig as a9, type AllItemsDiscountConfig as aa, type SpecificItemsDiscountConfig as ab, type Context as ac, IdentityType as ad, type IdentificationData as ae, type IdentificationDataIdOneOf as af, type GetCatalogItemsEnvelope as ag, type BuyerInfoIdOneOf as b, type GetCatalogItemsResponse as c, type ItemData as d, type ItemType as e, type ItemTypeItemTypeDataOneOf as f, ItemTypePreset as g, type DescriptionLineValueOneOf as h, type DescriptionLineDescriptionLineValueOneOf as i, type DescriptionLineName as j, type PlainTextValue as k, type Color as l, DescriptionLineType as m, type PhysicalProperties as n, type Dimensions as o, provideHandlers as p, DimensionsUnit as q, type Group as r, type SubscriptionOptionInfo as s, type SubscriptionSettings as t, SubscriptionFrequency as u, type BillingSettings as v, ProductPeriodAlignment as w, type CyclePriceOverride as x, type Description as y, type SecuredMedia as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-
|
|
2
|
-
export { O as AdditionalFee,
|
|
1
|
+
import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.mjs';
|
|
2
|
+
export { O as AdditionalFee, aa as AllItemsDiscountConfig, a5 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a9 as CatalogSPIConfig, Y as ChargeType, l as Color, ac as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, ae as IdentificationData, af as IdentificationDataIdOneOf, ad as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a6 as NumericPropertyRange, a3 as Paging, a8 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a7 as PurchaseType, a2 as QueryCatalogItemsRequest, a4 as QueryCatalogItemsResponse, $ as SaleAttribution, a0 as SaleAttributionCreditedPartyOneOf, S as Scope, z as SecuredMedia, H as ServiceProperties, ab as SpecificItemsDiscountConfig, a1 as StaffMemberAttribution, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.mjs';
|
|
3
3
|
import { BuildServicePluginDefinition } from '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
declare const provideHandlers: BuildServicePluginDefinition<typeof provideHandlers$1> & typeof provideHandlers$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { O as AdditionalFee,
|
|
1
|
+
import { ag as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.mjs';
|
|
2
|
+
export { O as AdditionalFee, aa as AllItemsDiscountConfig, a5 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a9 as CatalogSPIConfig, Y as ChargeType, l as Color, ac as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, ae as IdentificationData, af as IdentificationDataIdOneOf, ad as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a6 as NumericPropertyRange, a3 as Paging, a8 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a7 as PurchaseType, a2 as QueryCatalogItemsRequest, a4 as QueryCatalogItemsResponse, $ as SaleAttribution, a0 as SaleAttributionCreditedPartyOneOf, S as Scope, z as SecuredMedia, H as ServiceProperties, ab as SpecificItemsDiscountConfig, a1 as StaffMemberAttribution, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-D4e_doWZ.mjs';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -323,9 +323,19 @@ interface ItemData {
|
|
|
323
323
|
upsellOptionsAppId?: string | null;
|
|
324
324
|
/**
|
|
325
325
|
* Resolved bundle details.
|
|
326
|
+
*
|
|
327
|
+
* Required when `itemType.preset` is `BUNDLE`, and not supported otherwise.
|
|
326
328
|
* @internal
|
|
327
329
|
*/
|
|
328
330
|
bundleInfo?: BundleInfo;
|
|
331
|
+
/**
|
|
332
|
+
* Parties credited with the sale of this item. Sale attributions are used to calculate commission per line item.
|
|
333
|
+
*
|
|
334
|
+
* Attributions that don't credit a party are ignored.
|
|
335
|
+
* @internal
|
|
336
|
+
* @maxSize 5
|
|
337
|
+
*/
|
|
338
|
+
saleAttributions?: SaleAttribution[];
|
|
329
339
|
}
|
|
330
340
|
interface ProductName {
|
|
331
341
|
/**
|
|
@@ -911,7 +921,7 @@ declare enum ChargeType {
|
|
|
911
921
|
/** Resolved bundle details. */
|
|
912
922
|
interface BundleInfo {
|
|
913
923
|
/**
|
|
914
|
-
* The items included in the bundle.
|
|
924
|
+
* The items included in the bundle. Their `quantity` values must add up to at least 2, and each must have a different `catalogReference`.
|
|
915
925
|
* @minSize 1
|
|
916
926
|
* @maxSize 10
|
|
917
927
|
*/
|
|
@@ -919,7 +929,7 @@ interface BundleInfo {
|
|
|
919
929
|
}
|
|
920
930
|
/** One item included in a bundle. */
|
|
921
931
|
interface BundledItem {
|
|
922
|
-
/** Catalog and item reference of the bundled item. */
|
|
932
|
+
/** __Required.__ Catalog and item reference of the bundled item. */
|
|
923
933
|
catalogReference?: CatalogReference;
|
|
924
934
|
/**
|
|
925
935
|
* Number of units of this item in a single bundle.
|
|
@@ -928,13 +938,13 @@ interface BundledItem {
|
|
|
928
938
|
*/
|
|
929
939
|
quantity?: number;
|
|
930
940
|
/**
|
|
931
|
-
* The item's own price for 1 unit outside the bundle, with catalog discounts applied.
|
|
941
|
+
* __Required.__ The item's own price for 1 unit outside the bundle, with catalog discounts applied.
|
|
932
942
|
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
933
943
|
*/
|
|
934
944
|
price?: string;
|
|
935
|
-
/** Item name. */
|
|
945
|
+
/** __Required.__ Item name. */
|
|
936
946
|
productName?: ProductName;
|
|
937
|
-
/** Item type. */
|
|
947
|
+
/** __Required.__ Item type. Gift cards and bundles aren't allowed. */
|
|
938
948
|
itemType?: ItemType;
|
|
939
949
|
/**
|
|
940
950
|
* The tax group ID associated with this item.
|
|
@@ -1000,6 +1010,29 @@ interface BundledItem {
|
|
|
1000
1010
|
/** Service properties, such as time and number of participants. */
|
|
1001
1011
|
serviceProperties?: ServiceProperties;
|
|
1002
1012
|
}
|
|
1013
|
+
/**
|
|
1014
|
+
* A sale attribution records the party credited with the sale of a line item.
|
|
1015
|
+
* You can use sale attributions to calculate commission per line item.
|
|
1016
|
+
*
|
|
1017
|
+
* Currently supports crediting a staff member.
|
|
1018
|
+
*/
|
|
1019
|
+
interface SaleAttribution extends SaleAttributionCreditedPartyOneOf {
|
|
1020
|
+
/** Staff member credited with the sale. */
|
|
1021
|
+
staffMember?: StaffMemberAttribution;
|
|
1022
|
+
}
|
|
1023
|
+
/** @oneof */
|
|
1024
|
+
interface SaleAttributionCreditedPartyOneOf {
|
|
1025
|
+
/** Staff member credited with the sale. */
|
|
1026
|
+
staffMember?: StaffMemberAttribution;
|
|
1027
|
+
}
|
|
1028
|
+
/** A staff member credited with the sale of a line item. */
|
|
1029
|
+
interface StaffMemberAttribution {
|
|
1030
|
+
/**
|
|
1031
|
+
* ID of the credited staff member. Get the ID from the [Bookings Staff Members API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/introduction).
|
|
1032
|
+
* @format GUID
|
|
1033
|
+
*/
|
|
1034
|
+
staffMemberId?: string;
|
|
1035
|
+
}
|
|
1003
1036
|
interface QueryCatalogItemsRequest {
|
|
1004
1037
|
/**
|
|
1005
1038
|
* A list of itemIDs to filter by. If exists, the result will only include the items with the IDs passed.
|
|
@@ -1310,4 +1343,4 @@ declare const provideHandlers: ServicePluginDefinition<{
|
|
|
1310
1343
|
getCatalogItems(payload: GetCatalogItemsEnvelope): GetCatalogItemsResponse | Promise<GetCatalogItemsResponse>;
|
|
1311
1344
|
}>;
|
|
1312
1345
|
|
|
1313
|
-
export { type
|
|
1346
|
+
export { type SaleAttribution as $, FileType as A, type BuyerInfo as B, type CatalogReferenceAndQuantity as C, type DescriptionLine as D, PaymentOptionType as E, type FreeTrialPeriod as F, type GetCatalogItemsRequest as G, type ServiceProperties as H, type Item as I, type PriceDescription as J, type TaxableAddress as K, type TaxableAddressTaxableAddressDataOneOf as L, TaxableAddressType as M, type Policy as N, type AdditionalFee as O, type ProductName as P, type TaxDetails as Q, type ModifierGroup as R, type Scope as S, type Title as T, type TranslatableString as U, type ItemModifier as V, WeightUnit as W, type PlatformFee as X, ChargeType as Y, type BundleInfo as Z, type BundledItem as _, type CatalogReference as a, type SaleAttributionCreditedPartyOneOf as a0, type StaffMemberAttribution as a1, type QueryCatalogItemsRequest as a2, type Paging as a3, type QueryCatalogItemsResponse as a4, type BasicItem as a5, type NumericPropertyRange as a6, PurchaseType as a7, type PagingMetadata as a8, type CatalogSPIConfig as a9, type AllItemsDiscountConfig as aa, type SpecificItemsDiscountConfig as ab, type Context as ac, IdentityType as ad, type IdentificationData as ae, type IdentificationDataIdOneOf as af, type GetCatalogItemsEnvelope as ag, type BuyerInfoIdOneOf as b, type GetCatalogItemsResponse as c, type ItemData as d, type ItemType as e, type ItemTypeItemTypeDataOneOf as f, ItemTypePreset as g, type DescriptionLineValueOneOf as h, type DescriptionLineDescriptionLineValueOneOf as i, type DescriptionLineName as j, type PlainTextValue as k, type Color as l, DescriptionLineType as m, type PhysicalProperties as n, type Dimensions as o, provideHandlers as p, DimensionsUnit as q, type Group as r, type SubscriptionOptionInfo as s, type SubscriptionSettings as t, SubscriptionFrequency as u, type BillingSettings as v, ProductPeriodAlignment as w, type CyclePriceOverride as x, type Description as y, type SecuredMedia as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_catalog",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"fqdn": "wix.interfaces.ecommerce.v1.catalog_provider"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"falconPackageHash": "
|
|
47
|
+
"falconPackageHash": "abb6d6a29a0e7ea30e83ad3d0eedf33458c2b80e0427e43fdc85ea20"
|
|
48
48
|
}
|