@thorprovider/types 7.9.0 → 7.10.0
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/.turbo/turbo-build.log +18 -18
- package/.turbo/turbo-type-check.log +0 -0
- package/CHANGELOG.md +13 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.mts +123 -3
- package/dist/index.d.ts +123 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/publish.log +60 -0
- package/src/auth.ts +15 -1
- package/src/cart.ts +9 -2
- package/src/checkout.ts +13 -0
- package/src/commerce-provider.ts +32 -1
- package/src/customer.ts +50 -0
- package/src/index.ts +10 -0
- package/src/product.ts +53 -0
package/dist/index.d.mts
CHANGED
|
@@ -301,6 +301,17 @@ interface CheckoutShippingGroupItem {
|
|
|
301
301
|
/** Quantity in this group when a line is split across groups. */
|
|
302
302
|
quantity?: number;
|
|
303
303
|
}
|
|
304
|
+
/** Outcome of requesting a guest-order claim (transfer) for a registered customer. */
|
|
305
|
+
interface CheckoutOrderClaimRequestResult {
|
|
306
|
+
/** True once the backend accepted the transfer request. */
|
|
307
|
+
requested: boolean;
|
|
308
|
+
}
|
|
309
|
+
/** Outcome of accepting a guest-order claim with the email token. */
|
|
310
|
+
interface CheckoutOrderClaimAcceptResult {
|
|
311
|
+
accepted: boolean;
|
|
312
|
+
/** The order the transfer was applied to. */
|
|
313
|
+
orderId: string;
|
|
314
|
+
}
|
|
304
315
|
interface CheckoutAdjustmentPayment {
|
|
305
316
|
id: string;
|
|
306
317
|
kind: 'gift-card' | 'store-credit';
|
|
@@ -976,6 +987,7 @@ interface ProductVariant {
|
|
|
976
987
|
stockStatus?: StockStatus;
|
|
977
988
|
inventoryLevels?: InventoryLevel[];
|
|
978
989
|
image?: Image;
|
|
990
|
+
attributes?: ProductAttributeGroup[];
|
|
979
991
|
}
|
|
980
992
|
/**
|
|
981
993
|
* Price range for product
|
|
@@ -984,6 +996,41 @@ interface PriceRange {
|
|
|
984
996
|
minVariantPrice: Money;
|
|
985
997
|
maxVariantPrice: Money;
|
|
986
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* One merchandising highlight, rendered as a label/value pair (e.g.
|
|
1001
|
+
* "Pantalla" / "14 pulgadas") above the description.
|
|
1002
|
+
*/
|
|
1003
|
+
interface ProductHighlight {
|
|
1004
|
+
label: string;
|
|
1005
|
+
value: string;
|
|
1006
|
+
}
|
|
1007
|
+
/** One row inside an attribute group. */
|
|
1008
|
+
interface ProductAttribute {
|
|
1009
|
+
id?: string;
|
|
1010
|
+
label: string;
|
|
1011
|
+
value: string;
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* A titled block of specifications (e.g. "Peso y medidas"). Grouped rather than
|
|
1015
|
+
* flat so the product detail can render several tables without inventing titles.
|
|
1016
|
+
*/
|
|
1017
|
+
interface ProductAttributeGroup {
|
|
1018
|
+
id?: string;
|
|
1019
|
+
title: string;
|
|
1020
|
+
items: ProductAttribute[];
|
|
1021
|
+
}
|
|
1022
|
+
/** A document attached to the product (datasheet, manual, care guide). */
|
|
1023
|
+
interface ProductAttachment {
|
|
1024
|
+
id: string;
|
|
1025
|
+
name: string;
|
|
1026
|
+
kind?: string;
|
|
1027
|
+
language?: string;
|
|
1028
|
+
size?: string;
|
|
1029
|
+
version?: string;
|
|
1030
|
+
url?: string;
|
|
1031
|
+
/** Empty or absent means the attachment applies to every variant. */
|
|
1032
|
+
variantIds?: string[];
|
|
1033
|
+
}
|
|
987
1034
|
/**
|
|
988
1035
|
* Main product type - normalized across all providers
|
|
989
1036
|
*
|
|
@@ -1021,6 +1068,12 @@ interface Product {
|
|
|
1021
1068
|
productType?: string;
|
|
1022
1069
|
vendor?: string;
|
|
1023
1070
|
tags?: string[];
|
|
1071
|
+
brand?: string;
|
|
1072
|
+
model?: string;
|
|
1073
|
+
shortDescription?: string;
|
|
1074
|
+
highlights?: ProductHighlight[];
|
|
1075
|
+
attributes?: ProductAttributeGroup[];
|
|
1076
|
+
attachments?: ProductAttachment[];
|
|
1024
1077
|
seo?: SEO;
|
|
1025
1078
|
createdAt: string;
|
|
1026
1079
|
updatedAt: string;
|
|
@@ -1627,8 +1680,7 @@ interface Cart {
|
|
|
1627
1680
|
*/
|
|
1628
1681
|
guestContact?: GuestContact;
|
|
1629
1682
|
/** Backend id of the applied shipping method, when one is selected. */
|
|
1630
|
-
selectedShippingMethodId?: string;
|
|
1631
|
-
/**
|
|
1683
|
+
selectedShippingMethodId?: string; /**
|
|
1632
1684
|
* Backend id of the shipping option the applied method was created from.
|
|
1633
1685
|
*
|
|
1634
1686
|
* This is the identity the checkout shipping UI selects (the value passed to
|
|
@@ -1643,6 +1695,14 @@ interface Cart {
|
|
|
1643
1695
|
promotions?: PromotionSummary[];
|
|
1644
1696
|
/** Platform-specific backend metadata, carried through unchanged. */
|
|
1645
1697
|
metadata?: Record<string, unknown>;
|
|
1698
|
+
/**
|
|
1699
|
+
* Buyer email the backend holds on the cart.
|
|
1700
|
+
*
|
|
1701
|
+
* Authoritative for the guest checkout: the backend requires `cart.email`
|
|
1702
|
+
* before a guest order can be completed. Absent when the cart has no contact
|
|
1703
|
+
* email yet, which is the state the host must resolve before payment.
|
|
1704
|
+
*/
|
|
1705
|
+
contactEmail?: string;
|
|
1646
1706
|
}
|
|
1647
1707
|
/**
|
|
1648
1708
|
* Input for adding items to cart
|
|
@@ -1851,6 +1911,37 @@ interface Address {
|
|
|
1851
1911
|
isDefaultBilling?: boolean;
|
|
1852
1912
|
isDefaultShipping?: boolean;
|
|
1853
1913
|
metadata?: Record<string, unknown>;
|
|
1914
|
+
createdAt?: string;
|
|
1915
|
+
updatedAt?: string;
|
|
1916
|
+
}
|
|
1917
|
+
/** Filters the address book can request from the provider. */
|
|
1918
|
+
type AddressFilter = 'all' | 'personal' | 'business' | 'default-shipping' | 'default-billing' | 'verified' | 'needs-review' | 'delivery-available';
|
|
1919
|
+
/** Server-side ordering supported by the address book. */
|
|
1920
|
+
type AddressSort = 'default-first' | 'recent' | 'oldest' | 'alphabetical' | 'city' | 'country' | 'company';
|
|
1921
|
+
/**
|
|
1922
|
+
* One page of the authenticated customer's address book.
|
|
1923
|
+
*
|
|
1924
|
+
* `total` is the filtered total of the customer's scope, never the page
|
|
1925
|
+
* length. `serverQuery` is intentionally absent: it is a presentation fact the
|
|
1926
|
+
* host knows, not a domain field.
|
|
1927
|
+
*/
|
|
1928
|
+
interface AddressListQuery {
|
|
1929
|
+
/** Free-text match over label, recipient, company, postal lines and phone. */
|
|
1930
|
+
search?: string;
|
|
1931
|
+
filter?: AddressFilter;
|
|
1932
|
+
sort?: AddressSort;
|
|
1933
|
+
/** 1-based page index. */
|
|
1934
|
+
page?: number;
|
|
1935
|
+
/** Page size requested from the provider. */
|
|
1936
|
+
pageSize?: number;
|
|
1937
|
+
}
|
|
1938
|
+
/** Result of a server-side address list query. */
|
|
1939
|
+
interface AddressListResult {
|
|
1940
|
+
items: Address[];
|
|
1941
|
+
total: number;
|
|
1942
|
+
page: number;
|
|
1943
|
+
pageSize: number;
|
|
1944
|
+
hasMore: boolean;
|
|
1854
1945
|
}
|
|
1855
1946
|
/**
|
|
1856
1947
|
* Customer
|
|
@@ -3340,6 +3431,14 @@ interface AuthProvider {
|
|
|
3340
3431
|
* @returns List of customer addresses
|
|
3341
3432
|
*/
|
|
3342
3433
|
getAddresses(): Promise<Address[]>;
|
|
3434
|
+
/**
|
|
3435
|
+
* Read one server-filtered page of the customer's address book.
|
|
3436
|
+
*
|
|
3437
|
+
* Optional so existing providers keep compiling; a provider that cannot
|
|
3438
|
+
* serve the query must omit it rather than return a partial or locally
|
|
3439
|
+
* filtered page.
|
|
3440
|
+
*/
|
|
3441
|
+
listAddresses?(query: AddressListQuery): Promise<AddressListResult>;
|
|
3343
3442
|
/**
|
|
3344
3443
|
* Create new address for current customer
|
|
3345
3444
|
* @param data - Address data
|
|
@@ -4301,6 +4400,27 @@ interface CommerceProvider {
|
|
|
4301
4400
|
* @throws {ProviderAPIError} If the backend fails or returns an invalid projection
|
|
4302
4401
|
*/
|
|
4303
4402
|
getCheckoutLineProjection?(cartId: string): Promise<CheckoutLineProjection>;
|
|
4403
|
+
/**
|
|
4404
|
+
* Read the backend's own capability flags, awaited (OPTIONAL).
|
|
4405
|
+
*
|
|
4406
|
+
* The synchronous `capabilities` property is a snapshot that returns static
|
|
4407
|
+
* defaults until a provider's discovery fetch resolves, and those defaults are
|
|
4408
|
+
* not authoritative. A caller that gates behaviour on a flag (guest checkout,
|
|
4409
|
+
* for example) must use this method so an unread or failed flag can be treated
|
|
4410
|
+
* as off.
|
|
4411
|
+
*/
|
|
4412
|
+
getCapabilities?(): Promise<BackendCapabilities>;
|
|
4413
|
+
/**
|
|
4414
|
+
* Request the transfer of a guest order to the authenticated customer
|
|
4415
|
+
* (OPTIONAL). The backend emails an acceptance token; nothing moves until it
|
|
4416
|
+
* is accepted.
|
|
4417
|
+
*/
|
|
4418
|
+
requestOrderClaim?(orderId: string): Promise<CheckoutOrderClaimRequestResult>;
|
|
4419
|
+
/**
|
|
4420
|
+
* Accept a previously requested guest-order transfer with its email token
|
|
4421
|
+
* (OPTIONAL). Requires no customer session.
|
|
4422
|
+
*/
|
|
4423
|
+
acceptOrderClaim?(orderId: string, token: string): Promise<CheckoutOrderClaimAcceptResult>;
|
|
4304
4424
|
/**
|
|
4305
4425
|
* Initiate payment session with provider
|
|
4306
4426
|
*
|
|
@@ -8028,4 +8148,4 @@ type UpdateBusinessPolicyResponse = {
|
|
|
8028
8148
|
business_policy: string;
|
|
8029
8149
|
};
|
|
8030
8150
|
|
|
8031
|
-
export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutGuestContact, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLineProjection, CheckoutLineProjectionLine, CheckoutLocationOptions, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrderAction, CustomerOrderDetail, CustomerOrderDetailAction, CustomerOrderDetailAdjustment, CustomerOrderDetailAdjustmentDirection, CustomerOrderDetailAdjustmentScope, CustomerOrderDetailAdjustmentSource, CustomerOrderDetailAllocation, CustomerOrderDetailApprovalStatus, CustomerOrderDetailAttachment, CustomerOrderDetailAttribute, CustomerOrderDetailAttributeKind, CustomerOrderDetailBusiness, CustomerOrderDetailCase, CustomerOrderDetailCaseLine, CustomerOrderDetailCaseStatus, CustomerOrderDetailCaseType, CustomerOrderDetailDocument, CustomerOrderDetailDocumentKind, CustomerOrderDetailFulfillment, CustomerOrderDetailFulfillmentItemStatus, CustomerOrderDetailFulfillmentStatus, CustomerOrderDetailGroup, CustomerOrderDetailInvoiceStatus, CustomerOrderDetailIssue, CustomerOrderDetailLine, CustomerOrderDetailLinePrice, CustomerOrderDetailOrder, CustomerOrderDetailPackage, CustomerOrderDetailPaymentStatus, CustomerOrderDetailPickup, CustomerOrderDetailPickupStatus, CustomerOrderDetailPriceKind, CustomerOrderDetailProductKind, CustomerOrderDetailPromotion, CustomerOrderDetailPromotionApplication, CustomerOrderDetailPromotionNominal, CustomerOrderDetailPromotionScope, CustomerOrderDetailRevision, CustomerOrderDetailRevisionKind, CustomerOrderDetailSection, CustomerOrderDetailShippingMethod, CustomerOrderDetailSnapshot, CustomerOrderDetailTaxLine, CustomerOrderDetailTotals, CustomerOrderDetailTransaction, CustomerOrderDetailTransactionKind, CustomerOrderDetailTransactionMethod, CustomerOrderDetailTransactionStatus, CustomerOrderFulfillmentItemStatus, CustomerOrderFulfillmentStatus, CustomerOrderHistoryCommercialFilter, CustomerOrderHistoryCommercialStatus, CustomerOrderHistoryDatePreset, CustomerOrderHistoryDeliveryMode, CustomerOrderHistoryFilters, CustomerOrderHistoryFulfilmentFilter, CustomerOrderHistoryOptions, CustomerOrderHistoryPage, CustomerOrderHistoryPaymentFilter, CustomerOrderHistoryQuery, CustomerOrderHistoryQuick, CustomerOrderHistoryRecord, CustomerOrderHistoryRefundFilter, CustomerOrderHistoryReturnStatus, CustomerOrderHistoryShipment, CustomerOrderHistorySort, CustomerOrderPaymentStatus, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, GuestContact, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceTier, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionKind, PromotionRule, PromotionScope, PromotionSummary, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
|
|
8151
|
+
export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AddressFilter, AddressListQuery, AddressListResult, AddressSort, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutGuestContact, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLineProjection, CheckoutLineProjectionLine, CheckoutLocationOptions, CheckoutOrderClaimAcceptResult, CheckoutOrderClaimRequestResult, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrderAction, CustomerOrderDetail, CustomerOrderDetailAction, CustomerOrderDetailAdjustment, CustomerOrderDetailAdjustmentDirection, CustomerOrderDetailAdjustmentScope, CustomerOrderDetailAdjustmentSource, CustomerOrderDetailAllocation, CustomerOrderDetailApprovalStatus, CustomerOrderDetailAttachment, CustomerOrderDetailAttribute, CustomerOrderDetailAttributeKind, CustomerOrderDetailBusiness, CustomerOrderDetailCase, CustomerOrderDetailCaseLine, CustomerOrderDetailCaseStatus, CustomerOrderDetailCaseType, CustomerOrderDetailDocument, CustomerOrderDetailDocumentKind, CustomerOrderDetailFulfillment, CustomerOrderDetailFulfillmentItemStatus, CustomerOrderDetailFulfillmentStatus, CustomerOrderDetailGroup, CustomerOrderDetailInvoiceStatus, CustomerOrderDetailIssue, CustomerOrderDetailLine, CustomerOrderDetailLinePrice, CustomerOrderDetailOrder, CustomerOrderDetailPackage, CustomerOrderDetailPaymentStatus, CustomerOrderDetailPickup, CustomerOrderDetailPickupStatus, CustomerOrderDetailPriceKind, CustomerOrderDetailProductKind, CustomerOrderDetailPromotion, CustomerOrderDetailPromotionApplication, CustomerOrderDetailPromotionNominal, CustomerOrderDetailPromotionScope, CustomerOrderDetailRevision, CustomerOrderDetailRevisionKind, CustomerOrderDetailSection, CustomerOrderDetailShippingMethod, CustomerOrderDetailSnapshot, CustomerOrderDetailTaxLine, CustomerOrderDetailTotals, CustomerOrderDetailTransaction, CustomerOrderDetailTransactionKind, CustomerOrderDetailTransactionMethod, CustomerOrderDetailTransactionStatus, CustomerOrderFulfillmentItemStatus, CustomerOrderFulfillmentStatus, CustomerOrderHistoryCommercialFilter, CustomerOrderHistoryCommercialStatus, CustomerOrderHistoryDatePreset, CustomerOrderHistoryDeliveryMode, CustomerOrderHistoryFilters, CustomerOrderHistoryFulfilmentFilter, CustomerOrderHistoryOptions, CustomerOrderHistoryPage, CustomerOrderHistoryPaymentFilter, CustomerOrderHistoryQuery, CustomerOrderHistoryQuick, CustomerOrderHistoryRecord, CustomerOrderHistoryRefundFilter, CustomerOrderHistoryReturnStatus, CustomerOrderHistoryShipment, CustomerOrderHistorySort, CustomerOrderPaymentStatus, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, GuestContact, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceTier, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductAttachment, ProductAttribute, ProductAttributeGroup, ProductCategory, ProductHighlight, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionKind, PromotionRule, PromotionScope, PromotionSummary, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -301,6 +301,17 @@ interface CheckoutShippingGroupItem {
|
|
|
301
301
|
/** Quantity in this group when a line is split across groups. */
|
|
302
302
|
quantity?: number;
|
|
303
303
|
}
|
|
304
|
+
/** Outcome of requesting a guest-order claim (transfer) for a registered customer. */
|
|
305
|
+
interface CheckoutOrderClaimRequestResult {
|
|
306
|
+
/** True once the backend accepted the transfer request. */
|
|
307
|
+
requested: boolean;
|
|
308
|
+
}
|
|
309
|
+
/** Outcome of accepting a guest-order claim with the email token. */
|
|
310
|
+
interface CheckoutOrderClaimAcceptResult {
|
|
311
|
+
accepted: boolean;
|
|
312
|
+
/** The order the transfer was applied to. */
|
|
313
|
+
orderId: string;
|
|
314
|
+
}
|
|
304
315
|
interface CheckoutAdjustmentPayment {
|
|
305
316
|
id: string;
|
|
306
317
|
kind: 'gift-card' | 'store-credit';
|
|
@@ -976,6 +987,7 @@ interface ProductVariant {
|
|
|
976
987
|
stockStatus?: StockStatus;
|
|
977
988
|
inventoryLevels?: InventoryLevel[];
|
|
978
989
|
image?: Image;
|
|
990
|
+
attributes?: ProductAttributeGroup[];
|
|
979
991
|
}
|
|
980
992
|
/**
|
|
981
993
|
* Price range for product
|
|
@@ -984,6 +996,41 @@ interface PriceRange {
|
|
|
984
996
|
minVariantPrice: Money;
|
|
985
997
|
maxVariantPrice: Money;
|
|
986
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* One merchandising highlight, rendered as a label/value pair (e.g.
|
|
1001
|
+
* "Pantalla" / "14 pulgadas") above the description.
|
|
1002
|
+
*/
|
|
1003
|
+
interface ProductHighlight {
|
|
1004
|
+
label: string;
|
|
1005
|
+
value: string;
|
|
1006
|
+
}
|
|
1007
|
+
/** One row inside an attribute group. */
|
|
1008
|
+
interface ProductAttribute {
|
|
1009
|
+
id?: string;
|
|
1010
|
+
label: string;
|
|
1011
|
+
value: string;
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* A titled block of specifications (e.g. "Peso y medidas"). Grouped rather than
|
|
1015
|
+
* flat so the product detail can render several tables without inventing titles.
|
|
1016
|
+
*/
|
|
1017
|
+
interface ProductAttributeGroup {
|
|
1018
|
+
id?: string;
|
|
1019
|
+
title: string;
|
|
1020
|
+
items: ProductAttribute[];
|
|
1021
|
+
}
|
|
1022
|
+
/** A document attached to the product (datasheet, manual, care guide). */
|
|
1023
|
+
interface ProductAttachment {
|
|
1024
|
+
id: string;
|
|
1025
|
+
name: string;
|
|
1026
|
+
kind?: string;
|
|
1027
|
+
language?: string;
|
|
1028
|
+
size?: string;
|
|
1029
|
+
version?: string;
|
|
1030
|
+
url?: string;
|
|
1031
|
+
/** Empty or absent means the attachment applies to every variant. */
|
|
1032
|
+
variantIds?: string[];
|
|
1033
|
+
}
|
|
987
1034
|
/**
|
|
988
1035
|
* Main product type - normalized across all providers
|
|
989
1036
|
*
|
|
@@ -1021,6 +1068,12 @@ interface Product {
|
|
|
1021
1068
|
productType?: string;
|
|
1022
1069
|
vendor?: string;
|
|
1023
1070
|
tags?: string[];
|
|
1071
|
+
brand?: string;
|
|
1072
|
+
model?: string;
|
|
1073
|
+
shortDescription?: string;
|
|
1074
|
+
highlights?: ProductHighlight[];
|
|
1075
|
+
attributes?: ProductAttributeGroup[];
|
|
1076
|
+
attachments?: ProductAttachment[];
|
|
1024
1077
|
seo?: SEO;
|
|
1025
1078
|
createdAt: string;
|
|
1026
1079
|
updatedAt: string;
|
|
@@ -1627,8 +1680,7 @@ interface Cart {
|
|
|
1627
1680
|
*/
|
|
1628
1681
|
guestContact?: GuestContact;
|
|
1629
1682
|
/** Backend id of the applied shipping method, when one is selected. */
|
|
1630
|
-
selectedShippingMethodId?: string;
|
|
1631
|
-
/**
|
|
1683
|
+
selectedShippingMethodId?: string; /**
|
|
1632
1684
|
* Backend id of the shipping option the applied method was created from.
|
|
1633
1685
|
*
|
|
1634
1686
|
* This is the identity the checkout shipping UI selects (the value passed to
|
|
@@ -1643,6 +1695,14 @@ interface Cart {
|
|
|
1643
1695
|
promotions?: PromotionSummary[];
|
|
1644
1696
|
/** Platform-specific backend metadata, carried through unchanged. */
|
|
1645
1697
|
metadata?: Record<string, unknown>;
|
|
1698
|
+
/**
|
|
1699
|
+
* Buyer email the backend holds on the cart.
|
|
1700
|
+
*
|
|
1701
|
+
* Authoritative for the guest checkout: the backend requires `cart.email`
|
|
1702
|
+
* before a guest order can be completed. Absent when the cart has no contact
|
|
1703
|
+
* email yet, which is the state the host must resolve before payment.
|
|
1704
|
+
*/
|
|
1705
|
+
contactEmail?: string;
|
|
1646
1706
|
}
|
|
1647
1707
|
/**
|
|
1648
1708
|
* Input for adding items to cart
|
|
@@ -1851,6 +1911,37 @@ interface Address {
|
|
|
1851
1911
|
isDefaultBilling?: boolean;
|
|
1852
1912
|
isDefaultShipping?: boolean;
|
|
1853
1913
|
metadata?: Record<string, unknown>;
|
|
1914
|
+
createdAt?: string;
|
|
1915
|
+
updatedAt?: string;
|
|
1916
|
+
}
|
|
1917
|
+
/** Filters the address book can request from the provider. */
|
|
1918
|
+
type AddressFilter = 'all' | 'personal' | 'business' | 'default-shipping' | 'default-billing' | 'verified' | 'needs-review' | 'delivery-available';
|
|
1919
|
+
/** Server-side ordering supported by the address book. */
|
|
1920
|
+
type AddressSort = 'default-first' | 'recent' | 'oldest' | 'alphabetical' | 'city' | 'country' | 'company';
|
|
1921
|
+
/**
|
|
1922
|
+
* One page of the authenticated customer's address book.
|
|
1923
|
+
*
|
|
1924
|
+
* `total` is the filtered total of the customer's scope, never the page
|
|
1925
|
+
* length. `serverQuery` is intentionally absent: it is a presentation fact the
|
|
1926
|
+
* host knows, not a domain field.
|
|
1927
|
+
*/
|
|
1928
|
+
interface AddressListQuery {
|
|
1929
|
+
/** Free-text match over label, recipient, company, postal lines and phone. */
|
|
1930
|
+
search?: string;
|
|
1931
|
+
filter?: AddressFilter;
|
|
1932
|
+
sort?: AddressSort;
|
|
1933
|
+
/** 1-based page index. */
|
|
1934
|
+
page?: number;
|
|
1935
|
+
/** Page size requested from the provider. */
|
|
1936
|
+
pageSize?: number;
|
|
1937
|
+
}
|
|
1938
|
+
/** Result of a server-side address list query. */
|
|
1939
|
+
interface AddressListResult {
|
|
1940
|
+
items: Address[];
|
|
1941
|
+
total: number;
|
|
1942
|
+
page: number;
|
|
1943
|
+
pageSize: number;
|
|
1944
|
+
hasMore: boolean;
|
|
1854
1945
|
}
|
|
1855
1946
|
/**
|
|
1856
1947
|
* Customer
|
|
@@ -3340,6 +3431,14 @@ interface AuthProvider {
|
|
|
3340
3431
|
* @returns List of customer addresses
|
|
3341
3432
|
*/
|
|
3342
3433
|
getAddresses(): Promise<Address[]>;
|
|
3434
|
+
/**
|
|
3435
|
+
* Read one server-filtered page of the customer's address book.
|
|
3436
|
+
*
|
|
3437
|
+
* Optional so existing providers keep compiling; a provider that cannot
|
|
3438
|
+
* serve the query must omit it rather than return a partial or locally
|
|
3439
|
+
* filtered page.
|
|
3440
|
+
*/
|
|
3441
|
+
listAddresses?(query: AddressListQuery): Promise<AddressListResult>;
|
|
3343
3442
|
/**
|
|
3344
3443
|
* Create new address for current customer
|
|
3345
3444
|
* @param data - Address data
|
|
@@ -4301,6 +4400,27 @@ interface CommerceProvider {
|
|
|
4301
4400
|
* @throws {ProviderAPIError} If the backend fails or returns an invalid projection
|
|
4302
4401
|
*/
|
|
4303
4402
|
getCheckoutLineProjection?(cartId: string): Promise<CheckoutLineProjection>;
|
|
4403
|
+
/**
|
|
4404
|
+
* Read the backend's own capability flags, awaited (OPTIONAL).
|
|
4405
|
+
*
|
|
4406
|
+
* The synchronous `capabilities` property is a snapshot that returns static
|
|
4407
|
+
* defaults until a provider's discovery fetch resolves, and those defaults are
|
|
4408
|
+
* not authoritative. A caller that gates behaviour on a flag (guest checkout,
|
|
4409
|
+
* for example) must use this method so an unread or failed flag can be treated
|
|
4410
|
+
* as off.
|
|
4411
|
+
*/
|
|
4412
|
+
getCapabilities?(): Promise<BackendCapabilities>;
|
|
4413
|
+
/**
|
|
4414
|
+
* Request the transfer of a guest order to the authenticated customer
|
|
4415
|
+
* (OPTIONAL). The backend emails an acceptance token; nothing moves until it
|
|
4416
|
+
* is accepted.
|
|
4417
|
+
*/
|
|
4418
|
+
requestOrderClaim?(orderId: string): Promise<CheckoutOrderClaimRequestResult>;
|
|
4419
|
+
/**
|
|
4420
|
+
* Accept a previously requested guest-order transfer with its email token
|
|
4421
|
+
* (OPTIONAL). Requires no customer session.
|
|
4422
|
+
*/
|
|
4423
|
+
acceptOrderClaim?(orderId: string, token: string): Promise<CheckoutOrderClaimAcceptResult>;
|
|
4304
4424
|
/**
|
|
4305
4425
|
* Initiate payment session with provider
|
|
4306
4426
|
*
|
|
@@ -8028,4 +8148,4 @@ type UpdateBusinessPolicyResponse = {
|
|
|
8028
8148
|
business_policy: string;
|
|
8029
8149
|
};
|
|
8030
8150
|
|
|
8031
|
-
export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutGuestContact, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLineProjection, CheckoutLineProjectionLine, CheckoutLocationOptions, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrderAction, CustomerOrderDetail, CustomerOrderDetailAction, CustomerOrderDetailAdjustment, CustomerOrderDetailAdjustmentDirection, CustomerOrderDetailAdjustmentScope, CustomerOrderDetailAdjustmentSource, CustomerOrderDetailAllocation, CustomerOrderDetailApprovalStatus, CustomerOrderDetailAttachment, CustomerOrderDetailAttribute, CustomerOrderDetailAttributeKind, CustomerOrderDetailBusiness, CustomerOrderDetailCase, CustomerOrderDetailCaseLine, CustomerOrderDetailCaseStatus, CustomerOrderDetailCaseType, CustomerOrderDetailDocument, CustomerOrderDetailDocumentKind, CustomerOrderDetailFulfillment, CustomerOrderDetailFulfillmentItemStatus, CustomerOrderDetailFulfillmentStatus, CustomerOrderDetailGroup, CustomerOrderDetailInvoiceStatus, CustomerOrderDetailIssue, CustomerOrderDetailLine, CustomerOrderDetailLinePrice, CustomerOrderDetailOrder, CustomerOrderDetailPackage, CustomerOrderDetailPaymentStatus, CustomerOrderDetailPickup, CustomerOrderDetailPickupStatus, CustomerOrderDetailPriceKind, CustomerOrderDetailProductKind, CustomerOrderDetailPromotion, CustomerOrderDetailPromotionApplication, CustomerOrderDetailPromotionNominal, CustomerOrderDetailPromotionScope, CustomerOrderDetailRevision, CustomerOrderDetailRevisionKind, CustomerOrderDetailSection, CustomerOrderDetailShippingMethod, CustomerOrderDetailSnapshot, CustomerOrderDetailTaxLine, CustomerOrderDetailTotals, CustomerOrderDetailTransaction, CustomerOrderDetailTransactionKind, CustomerOrderDetailTransactionMethod, CustomerOrderDetailTransactionStatus, CustomerOrderFulfillmentItemStatus, CustomerOrderFulfillmentStatus, CustomerOrderHistoryCommercialFilter, CustomerOrderHistoryCommercialStatus, CustomerOrderHistoryDatePreset, CustomerOrderHistoryDeliveryMode, CustomerOrderHistoryFilters, CustomerOrderHistoryFulfilmentFilter, CustomerOrderHistoryOptions, CustomerOrderHistoryPage, CustomerOrderHistoryPaymentFilter, CustomerOrderHistoryQuery, CustomerOrderHistoryQuick, CustomerOrderHistoryRecord, CustomerOrderHistoryRefundFilter, CustomerOrderHistoryReturnStatus, CustomerOrderHistoryShipment, CustomerOrderHistorySort, CustomerOrderPaymentStatus, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, GuestContact, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceTier, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionKind, PromotionRule, PromotionScope, PromotionSummary, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
|
|
8151
|
+
export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AddressFilter, AddressListQuery, AddressListResult, AddressSort, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutGuestContact, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLineProjection, CheckoutLineProjectionLine, CheckoutLocationOptions, CheckoutOrderClaimAcceptResult, CheckoutOrderClaimRequestResult, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrderAction, CustomerOrderDetail, CustomerOrderDetailAction, CustomerOrderDetailAdjustment, CustomerOrderDetailAdjustmentDirection, CustomerOrderDetailAdjustmentScope, CustomerOrderDetailAdjustmentSource, CustomerOrderDetailAllocation, CustomerOrderDetailApprovalStatus, CustomerOrderDetailAttachment, CustomerOrderDetailAttribute, CustomerOrderDetailAttributeKind, CustomerOrderDetailBusiness, CustomerOrderDetailCase, CustomerOrderDetailCaseLine, CustomerOrderDetailCaseStatus, CustomerOrderDetailCaseType, CustomerOrderDetailDocument, CustomerOrderDetailDocumentKind, CustomerOrderDetailFulfillment, CustomerOrderDetailFulfillmentItemStatus, CustomerOrderDetailFulfillmentStatus, CustomerOrderDetailGroup, CustomerOrderDetailInvoiceStatus, CustomerOrderDetailIssue, CustomerOrderDetailLine, CustomerOrderDetailLinePrice, CustomerOrderDetailOrder, CustomerOrderDetailPackage, CustomerOrderDetailPaymentStatus, CustomerOrderDetailPickup, CustomerOrderDetailPickupStatus, CustomerOrderDetailPriceKind, CustomerOrderDetailProductKind, CustomerOrderDetailPromotion, CustomerOrderDetailPromotionApplication, CustomerOrderDetailPromotionNominal, CustomerOrderDetailPromotionScope, CustomerOrderDetailRevision, CustomerOrderDetailRevisionKind, CustomerOrderDetailSection, CustomerOrderDetailShippingMethod, CustomerOrderDetailSnapshot, CustomerOrderDetailTaxLine, CustomerOrderDetailTotals, CustomerOrderDetailTransaction, CustomerOrderDetailTransactionKind, CustomerOrderDetailTransactionMethod, CustomerOrderDetailTransactionStatus, CustomerOrderFulfillmentItemStatus, CustomerOrderFulfillmentStatus, CustomerOrderHistoryCommercialFilter, CustomerOrderHistoryCommercialStatus, CustomerOrderHistoryDatePreset, CustomerOrderHistoryDeliveryMode, CustomerOrderHistoryFilters, CustomerOrderHistoryFulfilmentFilter, CustomerOrderHistoryOptions, CustomerOrderHistoryPage, CustomerOrderHistoryPaymentFilter, CustomerOrderHistoryQuery, CustomerOrderHistoryQuick, CustomerOrderHistoryRecord, CustomerOrderHistoryRefundFilter, CustomerOrderHistoryReturnStatus, CustomerOrderHistoryShipment, CustomerOrderHistorySort, CustomerOrderPaymentStatus, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, GuestContact, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceTier, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductAttachment, ProductAttribute, ProductAttributeGroup, ProductCategory, ProductHighlight, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionKind, PromotionRule, PromotionScope, PromotionSummary, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @thorprovider/types v1.0\n * Shared TypeScript types for Thor Commerce ecosystem\n * \n * Pure type definitions with zero runtime dependencies.\n * Foundation for type-safe commerce operations following SOLID principles.\n */\n\n// ============================================\n// Common Types\n// ============================================\nexport type {\n Money,\n Image,\n SEO,\n Connection,\n Edge,\n PaginationOptions,\n SortOptions,\n Country,\n PromotionKind,\n PromotionScope,\n PromotionSummary,\n} from './common';\n\n// ============================================\n// Commerce Contracts (single-store context + guest shapes)\n// ============================================\nexport type {\n StoreContext,\n ShopperIdentity,\n CartSession,\n OrderReceipt,\n} from './commerce';\n\n// ============================================\n// Checkout Contracts (type-only)\n// ============================================\nexport type {\n CheckoutReadState,\n CheckoutAddressOption,\n CheckoutAddressLevel,\n CheckoutLocationOptions,\n CheckoutAddressValues,\n CheckoutContactValues,\n GuestContact,\n CheckoutGuestContact,\n CheckoutCustomerIdentity,\n CheckoutSavedAddress,\n CheckoutShippingOption,\n CheckoutShippingGroup,\n CheckoutShippingGroupItem,\n CheckoutAdjustmentPayment,\n CheckoutInterruptionKind,\n CheckoutInterruptionAction,\n CheckoutInterruption,\n CheckoutSubmission,\n} from './checkout';\n\n// ============================================\n// Grouped Shipping Contracts (type-only)\n// ============================================\nexport type {\n ShippingGroupLocation,\n ShippingGroupOption,\n ShippingGroupItem,\n ShippingGroup,\n ShippingGroupQuote,\n ShippingGroupSelection,\n} from './shipping';\n\nexport type {\n AuthorConfig,\n BrandConfig,\n ModulesConfig,\n NavigationItem,\n SiteConfig,\n SocialConfig,\n} from './site-config';\n\nexport type { SiteConfigLabels } from './site-config-labels';\n\n// ============================================\n// Unified Query Types\n// ============================================\nexport type {\n QuerySortDirection,\n QueryEntityInput,\n QueryEntitiesInput,\n QueryMeta,\n QueryErrors,\n QueryResponse,\n} from './query';\n\n// ============================================\n// Catalog Query & Facet Support Types\n// ============================================\nexport type {\n CatalogSortKey,\n CatalogQuery,\n CatalogAppliedFilters,\n CatalogFacetId,\n CatalogFacetDemonstrationSource,\n FacetSupport,\n CatalogResults,\n CatalogQueryFailureCode,\n CatalogQueryFailureRepair,\n CatalogQueryFailure,\n CatalogQueryOutcome,\n} from './catalog';\n\n// ============================================\n// Product Types\n// ============================================\nexport type {\n Product,\n ProductOption,\n ProductVariant,\n SelectedOption,\n PriceRange,\n GetProductsOptions,\n ActiveFilter,\n SortOption,\n FilterSection,\n FilterOption,\n ProductPreview,\n Review,\n CompareProduct,\n AdminProductVariant,\n AdminProduct,\n AdvancedSearchProductsOptions,\n SearchResultMeta,\n FilterConfig,\n} from './product';\n\n// ============================================\n// Cart Types\n// ============================================\nexport type {\n Cart,\n CartItem,\n CartProduct,\n CartCost,\n CartLineInput,\n CartLineUpdate,\n ShippingMethod,\n DiscountCode,\n PriceTier,\n CheckoutLineProjection,\n CheckoutLineProjectionLine,\n} from './cart';\n\n// ============================================\n// Inventory & Fulfillment Types\n// ============================================\nexport type {\n StockLocation,\n InventoryLevel,\n FulfillmentSet,\n FulfillmentOption,\n StockStatus,\n StockValidation,\n} from './stock-location';\n\n// ============================================\n// Collection Types\n// ============================================\nexport type {\n Collection,\n CollectionProductsOptions,\n GetCollectionsOptions,\n} from './collection';\n\n// ============================================\n// Category Types\n// ============================================\nexport type {\n ProductCategory,\n GetCategoriesOptions,\n GetCategoriesCallback,\n} from './category';\n\n// ============================================\n// Customer Types\n// ============================================\nexport type {\n Customer,\n Address,\n GetCustomersOptions,\n GetCustomersCallback,\n} from './customer';\n\n// ============================================\n// Region Types\n// ============================================\nexport type {\n Region,\n} from './region';\n\n// ============================================\n// Order Types\n// ============================================\nexport type {\n Order,\n OrderDeliveryGroup,\n OrderItem,\n OrderPayment,\n OrderPaymentStatus,\n OrderStatus,\n PaymentStatus,\n FulfillmentStatus,\n GetOrdersOptions,\n GetOrdersCallback,\n GetCustomerOrdersPageOptions,\n CustomerOrdersPage,\n CustomerOrderAction,\n CustomerOrderPaymentStatus,\n CustomerOrderFulfillmentStatus,\n CustomerOrderFulfillmentItemStatus,\n CustomerOrderHistoryQuick,\n CustomerOrderHistorySort,\n CustomerOrderHistoryDatePreset,\n CustomerOrderHistoryCommercialStatus,\n CustomerOrderHistoryCommercialFilter,\n CustomerOrderHistoryPaymentFilter,\n CustomerOrderHistoryRefundFilter,\n CustomerOrderHistoryFulfilmentFilter,\n CustomerOrderHistoryDeliveryMode,\n CustomerOrderHistoryReturnStatus,\n CustomerOrderHistoryFilters,\n CustomerOrderHistoryQuery,\n CustomerOrderHistoryOptions,\n CustomerOrderHistoryShipment,\n CustomerOrderHistoryRecord,\n CustomerOrderHistoryPage,\n CustomerOrderDetail,\n CustomerOrderDetailAction,\n CustomerOrderDetailAdjustment,\n CustomerOrderDetailAdjustmentDirection,\n CustomerOrderDetailAdjustmentScope,\n CustomerOrderDetailAdjustmentSource,\n CustomerOrderDetailAllocation,\n CustomerOrderDetailApprovalStatus,\n CustomerOrderDetailAttachment,\n CustomerOrderDetailAttribute,\n CustomerOrderDetailAttributeKind,\n CustomerOrderDetailBusiness,\n CustomerOrderDetailCase,\n CustomerOrderDetailCaseLine,\n CustomerOrderDetailCaseStatus,\n CustomerOrderDetailCaseType,\n CustomerOrderDetailDocument,\n CustomerOrderDetailDocumentKind,\n CustomerOrderDetailFulfillment,\n CustomerOrderDetailFulfillmentItemStatus,\n CustomerOrderDetailFulfillmentStatus,\n CustomerOrderDetailGroup,\n CustomerOrderDetailInvoiceStatus,\n CustomerOrderDetailIssue,\n CustomerOrderDetailLine,\n CustomerOrderDetailLinePrice,\n CustomerOrderDetailOrder,\n CustomerOrderDetailPackage,\n CustomerOrderDetailPaymentStatus,\n CustomerOrderDetailPickup,\n CustomerOrderDetailPickupStatus,\n CustomerOrderDetailPriceKind,\n CustomerOrderDetailProductKind,\n CustomerOrderDetailPromotion,\n CustomerOrderDetailPromotionApplication,\n CustomerOrderDetailPromotionNominal,\n CustomerOrderDetailPromotionScope,\n CustomerOrderDetailRevision,\n CustomerOrderDetailRevisionKind,\n CustomerOrderDetailSection,\n CustomerOrderDetailShippingMethod,\n CustomerOrderDetailSnapshot,\n CustomerOrderDetailTaxLine,\n CustomerOrderDetailTotals,\n CustomerOrderDetailTransaction,\n CustomerOrderDetailTransactionKind,\n CustomerOrderDetailTransactionMethod,\n CustomerOrderDetailTransactionStatus,\n} from './order';\n\n// ============================================\n// Provider Types (L1 - type-only)\n// Runtime provider registry lives in @thorprovider/adapters\n// ============================================\nexport type { ProviderTypeString } from './provider';\n\n// ============================================\n// Storefront Types\n// ============================================\nexport type {\n StorefrontContext,\n StorefrontPlatformType,\n} from './storefront';\n\n// ============================================\n// Storefront Configuration Types\n// ============================================\nexport type {\n StorefrontConfig,\n StorefrontSeoDefaults,\n} from './storefront-config';\n\n// ============================================\n// Designer Configuration Types\n// ============================================\nexport type {\n DesignerConfig,\n DesignerThemeConfig,\n DesignerThemePreset,\n DesignerNavItem,\n DesignerHistoryEntry,\n} from './designer-config';\n\n// ============================================\n// Auth Types\n// ============================================\nexport type {\n AuthProvider,\n AuthConfig,\n AuthMethod,\n AuthStorage,\n LoginCredentials,\n RegisterData,\n AuthResponse,\n UpdateCustomerData,\n CreateAddressData,\n PasswordResetRequest,\n PasswordResetConfirm,\n TokenVerifyState,\n TokenVerifyResult,\n RecoveryConfirmResult,\n SalesChannelType,\n InterestCategory,\n RequestedProfile,\n SubmitApplicationSalesChannel,\n SubmitApplicationBody,\n SubmitApplicationCreated,\n SubmitApplicationConflictApplication,\n SubmitApplicationResponse,\n SubmitApplicationResult,\n} from './auth';\n\n// ============================================\n// Payment Types\n// ============================================\nexport type {\n PaymentMethod,\n PaymentMethodType,\n PaymentMethodFeatures,\n PaymentMethodsOptions,\n CachedPaymentMethods,\n CheckoutCapturePolicy,\n CheckoutPaymentPlanItem,\n GiftCardValidationResult,\n StoreCreditAccountSummary,\n CheckoutPaymentSummary,\n CheckoutPaymentSummaryPayment,\n CheckoutPaymentSummaryStatus,\n} from './payment';\n\n// ============================================\n// Commerce Provider Interface\n// ============================================\nexport type {\n CommerceProvider,\n BackendCapabilities,\n ProviderConfig,\n} from './commerce-provider';\n\n// ============================================\n// Admin Types\n// ============================================\nexport type {\n AdminUser,\n AuditLog,\n DashboardConfig,\n DashboardMetrics,\n SalesMetrics,\n OrdersMetrics,\n ProductsMetrics,\n ChartDataPoint,\n DashboardMetricsAdapter,\n DashboardOrdersAdapter,\n DashboardProductsAdapter,\n AuditLogAdapter,\n SiteConfigMetadata,\n ConfigHistoryEntry,\n // Multi-tenant admin types\n AdminChannelCustomer,\n GetChannelCustomersResponse,\n GetChannelCustomersOptions,\n AdminApiKey,\n GetChannelApiKeysResponse,\n AdminChannelCategory,\n GetChannelCategoriesResponse,\n GetChannelCategoriesOptions,\n AdminSalesChannelRef,\n GetCategorySalesChannelsResponse,\n AssignCategoriesToChannelsBody,\n AssignCategoriesToChannelsResponse,\n UnassignCategoriesFromChannelsBody,\n UnassignCategoriesFromChannelsResponse,\n GetCollectionSalesChannelsResponse,\n AssignCollectionsToChannelsBody,\n AssignCollectionsToChannelsResponse,\n UnassignCollectionsFromChannelsBody,\n UnassignCollectionsFromChannelsResponse,\n AdminStorefrontSeoDefaults,\n AdminStorefrontConfig,\n GetAdminStorefrontConfigResponse,\n UpdateStorefrontConfigBody,\n UpdateStorefrontConfigResponse,\n AdminSiteConfigHistoryEntry,\n AdminSiteConfig,\n GetAdminSiteConfigResponse,\n UpdateSiteConfigBody,\n UpdateSiteConfigResponse,\n AdminSiteConfigHistoryEntryFull,\n GetAdminSiteConfigHistoryResponse,\n GetAdminSiteConfigHistoryOptions,\n RestoreSiteConfigResponse,\n LinkCustomerToChannelResponse,\n // Dropshipping types\n DropshipperAccountRef,\n DropshipperCostTier,\n DropshipperSaleTier,\n OnboardDropshipperBody,\n OnboardDropshipperResponse,\n DropshipperVariant,\n DropshipperProduct,\n DropshipperProductImage,\n DropshipperProductAttachment,\n DropshipperProductPrivateMedia,\n GetDropshipperProductsOptions,\n GetDropshipperProductsResponse,\n ValidateCheckoutItemsRequest,\n ValidatedCheckoutItem,\n ValidateCheckoutItemsResponse,\n UpdateDropshipperProductStatusBody,\n UpdateDropshipperProductStatusResponse,\n DropshipperPriceTier,\n DropshipperPriceItem,\n UpdateDropshipperPricesBody,\n UpdateDropshipperPricesResponse,\n DropshipperOrderCustomer,\n DropshipperOrder,\n GetDropshipperOrdersOptions,\n GetDropshipperOrdersResponse,\n DropshipperShippingOption,\n DropshipperShippingGroupOption,\n DropshipperShippingGroup,\n ShippingGroupInput,\n GetDropshipperShippingOptionsBody,\n GetDropshipperShippingOptionsResponse,\n DropshipperOrderShippingAddress,\n DropshipperOrderItem,\n DropshipperOrderTotals,\n DropshipperOrderTaxLine,\n DropshipperOrderTimelineEvent,\n DropshipperOrderDetail,\n GetDropshipperOrderDetailResponse,\n CreateOrderItem,\n CreateDropshipperOrderBody,\n CreateDropshipperOrderResponse,\n ExtendedCreateDropshipperOrderBody,\n ExtendedCreateDropshipperOrderResponse,\n SetPaymentCollectorBody,\n SetPaymentCollectorResponse,\n SetPaymentMethodBody,\n SetPaymentMethodResponse,\n ValidateGiftCardBody,\n ValidateGiftCardResponse,\n DropshipperCategory,\n GetDropshipperCategoriesOptions,\n GetDropshipperCategoriesResponse,\n CreateDropshipperCategoryBody,\n UpdateDropshipperCategoryBody,\n DeleteDropshipperCategoryResponse,\n ProviderCategory,\n GetProviderCategoriesResponse,\n GetCategoryMappingsOptions,\n CategoryMapping,\n GetCategoryMappingsResponse,\n CreateCategoryMappingBody,\n CreateCategoryMappingResponse,\n DeleteCategoryMappingResponse,\n DropshipperCustomer,\n DropshipperCustomerStats,\n DropshipperCustomerFinancial,\n DropshipperCustomerAddress,\n DropshipperCustomerDetail,\n GetDropshipperCustomersOptions,\n GetDropshipperCustomersResponse,\n GetDropshipperCustomerDetailResponse,\n CreateDropshipperCustomerBody,\n CreateDropshipperCustomerResponse,\n UpdateDropshipperCustomerBody,\n UpdateDropshipperCustomerResponse,\n DropshipperBalance,\n DropshipperPendingOrders,\n DropshipperPaymentMethodConfig,\n DropshipperAccount,\n GetDropshipperAccountResponse,\n DropshipperPayableOrder,\n GetDropshipperPayableResponse,\n DropshipperReceivableOrder,\n GetDropshipperReceivableResponse,\n SettlementRecord,\n GetSettlementsOptions,\n GetSettlementsResponse,\n GetSettlementDetailResponse,\n CreateSettlementBody,\n CreateSettlementResponse,\n ConfirmSettlementBody,\n CancelSettlementBody,\n UpdateSettlementStatusResponse,\n AdminDropshipperAccount,\n AdminDropshipperBalance,\n GetAdminDropshipperAccountsResponse,\n GetAdminAccountBalanceResponse,\n GetAdminPriceListsResponse,\n GetUserChannelResponse,\n DropshipperPromotion,\n GetDropshipperPromotionsOptions,\n GetDropshipperPromotionsResponse,\n PromotionRule,\n CreateDropshipperPromotionBody,\n UpdateDropshipperPromotionBody,\n DeleteDropshipperPromotionResponse,\n GetDashboardStatsOptions,\n DashboardPeriodMetrics,\n DashboardChanges,\n DashboardTopProduct,\n DashboardStats,\n GetDashboardStatsResponse,\n GetStorefrontDropshipperCategoriesResponse,\n OrderNote,\n CreateOrderNoteBody,\n GetOrderNotesResponse,\n CreateOrderNoteResponse,\n DeleteOrderNoteResponse,\n // Order cancel and edits\n CancelDropshipperOrderResponse,\n CreateOrderEditBody,\n CreateOrderEditResponse,\n AddOrderEditItemBody,\n AddOrderEditItemResponse,\n ConfirmOrderEditResponse,\n // Draft Orders\n DropshipperDraftOrderItem,\n DropshipperDraftOrder,\n GetDropshipperDraftOrdersOptions,\n GetDropshipperDraftOrdersResponse,\n CreateDropshipperDraftOrderBody,\n CreateDropshipperDraftOrderResponse,\n GetDropshipperDraftOrderDetailResponse,\n UpdateDropshipperDraftOrderBody,\n UpdateDropshipperDraftOrderResponse,\n ConvertDropshipperDraftOrderBody,\n ConvertDropshipperDraftOrderResponse,\n DeleteDropshipperDraftOrderResponse,\n // Order totals preview\n PreviewDropshipperOrderItem,\n PreviewDropshipperOrderTotalsBody,\n PreviewDropshipperOrderTotalsResponse,\n // Dropshipper addresses (channel-scoped)\n DropshipperAddressBody,\n DropshipperAddressResponse,\n GetDropshipperAddressesResponse,\n // Financial Endpoints — Group A\n SettlementStatus,\n GetDropshipperAccountBalanceResponse,\n GetDropshipperAccountOrdersOptions,\n GetDropshipperAccountOrdersResponse,\n GetAdminDropshipperAccountOrdersResponse,\n GetAdminDropshipperAccountSettlementsOptions,\n GetAdminDropshipperAccountSettlementsResponse,\n ResolveGuaranteeBody,\n ResolveGuaranteeResponse,\n CreateCompensacionBody,\n CreateCompensacionResponse,\n CreateAjusteBody,\n CreateAjusteResponse,\n // Financial Endpoints — Group B\n CreateCobroBody,\n CreateCobroResponse,\n CreatePagoBody,\n CreatePagoResponse,\n CreateReversoBody,\n CreateReversoResponse,\n ConfirmMovementBody,\n ConfirmMovementResponse,\n CancelMovementBody,\n CancelMovementResponse,\n GetFinancialAnalysisResponse,\n RegisterPaymentBody,\n RegisterPaymentResponse,\n // Dashboard Capabilities\n DropshipperDashboardCapabilities,\n // AI Assistant Chat\n ChatMessage,\n ChatRequest,\n ChatIntent,\n ChatSource,\n ChatSourceVariant,\n ChatResponse,\n ChatAssistantHealthResponse,\n // Geo-reference\n GeoCountry,\n GeoProvince,\n GeoCity,\n GetGeoCountriesResponse,\n GetGeoProvincesResponse,\n GetGeoCitiesResponse,\n // Product Attributes\n DropshipperProductAttribute,\n DropshipperProductAttributeValue,\n GetProductAttributesResponse,\n DropshipperAttributeDefinition,\n DropshipperAttributeDefinitionValue,\n GetDropshipperAttributesResponse,\n DropshipperProductOption,\n DropshipperProductOptionValue,\n // Dropshipper Profile\n DropshipperProfile,\n GetMyProfileResponse,\n // Cost Price Changes Detection\n CostPriceChangesCheckResponse,\n CostPriceChangeItem,\n CostPriceChangesResponse,\n AcknowledgeCostPriceChangesResponse,\n // Notifications\n NotificationData,\n PriceUpdatedNotificationData,\n ProductAssignedNotificationData,\n StockChangeNotificationData,\n ManualAdminNotificationData,\n RawNotification,\n GetNotificationsOptions,\n GetNotificationsResponse,\n // Notification preferences\n DropshipperNotificationEventType,\n DropshipperNotificationPreference,\n UpdateNotificationPreferencesBody,\n GetNotificationPreferencesResponse,\n } from './admin';\n\n// ============================================\n// Dropshipper Business Policy Types\n// ============================================\nexport type {\n GetBusinessPolicyResponse,\n UpdateBusinessPolicyBody,\n UpdateBusinessPolicyResponse,\n} from './dropshipper-business-policy';\n\n// ============================================\n// Header Configuration Types\n// ============================================\nexport type {\n IconConfig,\n NavigationCalloutItem,\n NavigationLinkItem,\n DynamicSource,\n HeaderLinkItem,\n AccountMenuItem,\n AccountDropdownConfig,\n SearchBarConfig,\n HeaderNavigationConfig,\n} from './header-config';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @thorprovider/types v1.0\n * Shared TypeScript types for Thor Commerce ecosystem\n * \n * Pure type definitions with zero runtime dependencies.\n * Foundation for type-safe commerce operations following SOLID principles.\n */\n\n// ============================================\n// Common Types\n// ============================================\nexport type {\n Money,\n Image,\n SEO,\n Connection,\n Edge,\n PaginationOptions,\n SortOptions,\n Country,\n PromotionKind,\n PromotionScope,\n PromotionSummary,\n} from './common';\n\n// ============================================\n// Commerce Contracts (single-store context + guest shapes)\n// ============================================\nexport type {\n StoreContext,\n ShopperIdentity,\n CartSession,\n OrderReceipt,\n} from './commerce';\n\n// ============================================\n// Checkout Contracts (type-only)\n// ============================================\nexport type {\n CheckoutReadState,\n CheckoutAddressOption,\n CheckoutAddressLevel,\n CheckoutLocationOptions,\n CheckoutAddressValues,\n CheckoutContactValues,\n GuestContact,\n CheckoutGuestContact,\n CheckoutCustomerIdentity,\n CheckoutSavedAddress,\n CheckoutShippingOption,\n CheckoutShippingGroup,\n CheckoutShippingGroupItem,\n CheckoutAdjustmentPayment,\n CheckoutOrderClaimRequestResult,\n CheckoutOrderClaimAcceptResult,\n CheckoutInterruptionKind,\n CheckoutInterruptionAction,\n CheckoutInterruption,\n CheckoutSubmission,\n} from './checkout';\n\n// ============================================\n// Grouped Shipping Contracts (type-only)\n// ============================================\nexport type {\n ShippingGroupLocation,\n ShippingGroupOption,\n ShippingGroupItem,\n ShippingGroup,\n ShippingGroupQuote,\n ShippingGroupSelection,\n} from './shipping';\n\nexport type {\n AuthorConfig,\n BrandConfig,\n ModulesConfig,\n NavigationItem,\n SiteConfig,\n SocialConfig,\n} from './site-config';\n\nexport type { SiteConfigLabels } from './site-config-labels';\n\n// ============================================\n// Unified Query Types\n// ============================================\nexport type {\n QuerySortDirection,\n QueryEntityInput,\n QueryEntitiesInput,\n QueryMeta,\n QueryErrors,\n QueryResponse,\n} from './query';\n\n// ============================================\n// Catalog Query & Facet Support Types\n// ============================================\nexport type {\n CatalogSortKey,\n CatalogQuery,\n CatalogAppliedFilters,\n CatalogFacetId,\n CatalogFacetDemonstrationSource,\n FacetSupport,\n CatalogResults,\n CatalogQueryFailureCode,\n CatalogQueryFailureRepair,\n CatalogQueryFailure,\n CatalogQueryOutcome,\n} from './catalog';\n\n// ============================================\n// Product Types\n// ============================================\nexport type {\n Product,\n ProductOption,\n ProductVariant,\n SelectedOption,\n PriceRange,\n ProductHighlight,\n ProductAttribute,\n ProductAttributeGroup,\n ProductAttachment,\n GetProductsOptions,\n ActiveFilter,\n SortOption,\n FilterSection,\n FilterOption,\n ProductPreview,\n Review,\n CompareProduct,\n AdminProductVariant,\n AdminProduct,\n AdvancedSearchProductsOptions,\n SearchResultMeta,\n FilterConfig,\n} from './product';\n\n// ============================================\n// Cart Types\n// ============================================\nexport type {\n Cart,\n CartItem,\n CartProduct,\n CartCost,\n CartLineInput,\n CartLineUpdate,\n ShippingMethod,\n DiscountCode,\n PriceTier,\n CheckoutLineProjection,\n CheckoutLineProjectionLine,\n} from './cart';\n\n// ============================================\n// Inventory & Fulfillment Types\n// ============================================\nexport type {\n StockLocation,\n InventoryLevel,\n FulfillmentSet,\n FulfillmentOption,\n StockStatus,\n StockValidation,\n} from './stock-location';\n\n// ============================================\n// Collection Types\n// ============================================\nexport type {\n Collection,\n CollectionProductsOptions,\n GetCollectionsOptions,\n} from './collection';\n\n// ============================================\n// Category Types\n// ============================================\nexport type {\n ProductCategory,\n GetCategoriesOptions,\n GetCategoriesCallback,\n} from './category';\n\n// ============================================\n// Customer Types\n// ============================================\nexport type {\n Customer,\n Address,\n AddressFilter,\n AddressSort,\n AddressListQuery,\n AddressListResult,\n GetCustomersOptions,\n GetCustomersCallback,\n} from './customer';\n\n// ============================================\n// Region Types\n// ============================================\nexport type {\n Region,\n} from './region';\n\n// ============================================\n// Order Types\n// ============================================\nexport type {\n Order,\n OrderDeliveryGroup,\n OrderItem,\n OrderPayment,\n OrderPaymentStatus,\n OrderStatus,\n PaymentStatus,\n FulfillmentStatus,\n GetOrdersOptions,\n GetOrdersCallback,\n GetCustomerOrdersPageOptions,\n CustomerOrdersPage,\n CustomerOrderAction,\n CustomerOrderPaymentStatus,\n CustomerOrderFulfillmentStatus,\n CustomerOrderFulfillmentItemStatus,\n CustomerOrderHistoryQuick,\n CustomerOrderHistorySort,\n CustomerOrderHistoryDatePreset,\n CustomerOrderHistoryCommercialStatus,\n CustomerOrderHistoryCommercialFilter,\n CustomerOrderHistoryPaymentFilter,\n CustomerOrderHistoryRefundFilter,\n CustomerOrderHistoryFulfilmentFilter,\n CustomerOrderHistoryDeliveryMode,\n CustomerOrderHistoryReturnStatus,\n CustomerOrderHistoryFilters,\n CustomerOrderHistoryQuery,\n CustomerOrderHistoryOptions,\n CustomerOrderHistoryShipment,\n CustomerOrderHistoryRecord,\n CustomerOrderHistoryPage,\n CustomerOrderDetail,\n CustomerOrderDetailAction,\n CustomerOrderDetailAdjustment,\n CustomerOrderDetailAdjustmentDirection,\n CustomerOrderDetailAdjustmentScope,\n CustomerOrderDetailAdjustmentSource,\n CustomerOrderDetailAllocation,\n CustomerOrderDetailApprovalStatus,\n CustomerOrderDetailAttachment,\n CustomerOrderDetailAttribute,\n CustomerOrderDetailAttributeKind,\n CustomerOrderDetailBusiness,\n CustomerOrderDetailCase,\n CustomerOrderDetailCaseLine,\n CustomerOrderDetailCaseStatus,\n CustomerOrderDetailCaseType,\n CustomerOrderDetailDocument,\n CustomerOrderDetailDocumentKind,\n CustomerOrderDetailFulfillment,\n CustomerOrderDetailFulfillmentItemStatus,\n CustomerOrderDetailFulfillmentStatus,\n CustomerOrderDetailGroup,\n CustomerOrderDetailInvoiceStatus,\n CustomerOrderDetailIssue,\n CustomerOrderDetailLine,\n CustomerOrderDetailLinePrice,\n CustomerOrderDetailOrder,\n CustomerOrderDetailPackage,\n CustomerOrderDetailPaymentStatus,\n CustomerOrderDetailPickup,\n CustomerOrderDetailPickupStatus,\n CustomerOrderDetailPriceKind,\n CustomerOrderDetailProductKind,\n CustomerOrderDetailPromotion,\n CustomerOrderDetailPromotionApplication,\n CustomerOrderDetailPromotionNominal,\n CustomerOrderDetailPromotionScope,\n CustomerOrderDetailRevision,\n CustomerOrderDetailRevisionKind,\n CustomerOrderDetailSection,\n CustomerOrderDetailShippingMethod,\n CustomerOrderDetailSnapshot,\n CustomerOrderDetailTaxLine,\n CustomerOrderDetailTotals,\n CustomerOrderDetailTransaction,\n CustomerOrderDetailTransactionKind,\n CustomerOrderDetailTransactionMethod,\n CustomerOrderDetailTransactionStatus,\n} from './order';\n\n// ============================================\n// Provider Types (L1 - type-only)\n// Runtime provider registry lives in @thorprovider/adapters\n// ============================================\nexport type { ProviderTypeString } from './provider';\n\n// ============================================\n// Storefront Types\n// ============================================\nexport type {\n StorefrontContext,\n StorefrontPlatformType,\n} from './storefront';\n\n// ============================================\n// Storefront Configuration Types\n// ============================================\nexport type {\n StorefrontConfig,\n StorefrontSeoDefaults,\n} from './storefront-config';\n\n// ============================================\n// Designer Configuration Types\n// ============================================\nexport type {\n DesignerConfig,\n DesignerThemeConfig,\n DesignerThemePreset,\n DesignerNavItem,\n DesignerHistoryEntry,\n} from './designer-config';\n\n// ============================================\n// Auth Types\n// ============================================\nexport type {\n AuthProvider,\n AuthConfig,\n AuthMethod,\n AuthStorage,\n LoginCredentials,\n RegisterData,\n AuthResponse,\n UpdateCustomerData,\n CreateAddressData,\n PasswordResetRequest,\n PasswordResetConfirm,\n TokenVerifyState,\n TokenVerifyResult,\n RecoveryConfirmResult,\n SalesChannelType,\n InterestCategory,\n RequestedProfile,\n SubmitApplicationSalesChannel,\n SubmitApplicationBody,\n SubmitApplicationCreated,\n SubmitApplicationConflictApplication,\n SubmitApplicationResponse,\n SubmitApplicationResult,\n} from './auth';\n\n// ============================================\n// Payment Types\n// ============================================\nexport type {\n PaymentMethod,\n PaymentMethodType,\n PaymentMethodFeatures,\n PaymentMethodsOptions,\n CachedPaymentMethods,\n CheckoutCapturePolicy,\n CheckoutPaymentPlanItem,\n GiftCardValidationResult,\n StoreCreditAccountSummary,\n CheckoutPaymentSummary,\n CheckoutPaymentSummaryPayment,\n CheckoutPaymentSummaryStatus,\n} from './payment';\n\n// ============================================\n// Commerce Provider Interface\n// ============================================\nexport type {\n CommerceProvider,\n BackendCapabilities,\n ProviderConfig,\n} from './commerce-provider';\n\n// ============================================\n// Admin Types\n// ============================================\nexport type {\n AdminUser,\n AuditLog,\n DashboardConfig,\n DashboardMetrics,\n SalesMetrics,\n OrdersMetrics,\n ProductsMetrics,\n ChartDataPoint,\n DashboardMetricsAdapter,\n DashboardOrdersAdapter,\n DashboardProductsAdapter,\n AuditLogAdapter,\n SiteConfigMetadata,\n ConfigHistoryEntry,\n // Multi-tenant admin types\n AdminChannelCustomer,\n GetChannelCustomersResponse,\n GetChannelCustomersOptions,\n AdminApiKey,\n GetChannelApiKeysResponse,\n AdminChannelCategory,\n GetChannelCategoriesResponse,\n GetChannelCategoriesOptions,\n AdminSalesChannelRef,\n GetCategorySalesChannelsResponse,\n AssignCategoriesToChannelsBody,\n AssignCategoriesToChannelsResponse,\n UnassignCategoriesFromChannelsBody,\n UnassignCategoriesFromChannelsResponse,\n GetCollectionSalesChannelsResponse,\n AssignCollectionsToChannelsBody,\n AssignCollectionsToChannelsResponse,\n UnassignCollectionsFromChannelsBody,\n UnassignCollectionsFromChannelsResponse,\n AdminStorefrontSeoDefaults,\n AdminStorefrontConfig,\n GetAdminStorefrontConfigResponse,\n UpdateStorefrontConfigBody,\n UpdateStorefrontConfigResponse,\n AdminSiteConfigHistoryEntry,\n AdminSiteConfig,\n GetAdminSiteConfigResponse,\n UpdateSiteConfigBody,\n UpdateSiteConfigResponse,\n AdminSiteConfigHistoryEntryFull,\n GetAdminSiteConfigHistoryResponse,\n GetAdminSiteConfigHistoryOptions,\n RestoreSiteConfigResponse,\n LinkCustomerToChannelResponse,\n // Dropshipping types\n DropshipperAccountRef,\n DropshipperCostTier,\n DropshipperSaleTier,\n OnboardDropshipperBody,\n OnboardDropshipperResponse,\n DropshipperVariant,\n DropshipperProduct,\n DropshipperProductImage,\n DropshipperProductAttachment,\n DropshipperProductPrivateMedia,\n GetDropshipperProductsOptions,\n GetDropshipperProductsResponse,\n ValidateCheckoutItemsRequest,\n ValidatedCheckoutItem,\n ValidateCheckoutItemsResponse,\n UpdateDropshipperProductStatusBody,\n UpdateDropshipperProductStatusResponse,\n DropshipperPriceTier,\n DropshipperPriceItem,\n UpdateDropshipperPricesBody,\n UpdateDropshipperPricesResponse,\n DropshipperOrderCustomer,\n DropshipperOrder,\n GetDropshipperOrdersOptions,\n GetDropshipperOrdersResponse,\n DropshipperShippingOption,\n DropshipperShippingGroupOption,\n DropshipperShippingGroup,\n ShippingGroupInput,\n GetDropshipperShippingOptionsBody,\n GetDropshipperShippingOptionsResponse,\n DropshipperOrderShippingAddress,\n DropshipperOrderItem,\n DropshipperOrderTotals,\n DropshipperOrderTaxLine,\n DropshipperOrderTimelineEvent,\n DropshipperOrderDetail,\n GetDropshipperOrderDetailResponse,\n CreateOrderItem,\n CreateDropshipperOrderBody,\n CreateDropshipperOrderResponse,\n ExtendedCreateDropshipperOrderBody,\n ExtendedCreateDropshipperOrderResponse,\n SetPaymentCollectorBody,\n SetPaymentCollectorResponse,\n SetPaymentMethodBody,\n SetPaymentMethodResponse,\n ValidateGiftCardBody,\n ValidateGiftCardResponse,\n DropshipperCategory,\n GetDropshipperCategoriesOptions,\n GetDropshipperCategoriesResponse,\n CreateDropshipperCategoryBody,\n UpdateDropshipperCategoryBody,\n DeleteDropshipperCategoryResponse,\n ProviderCategory,\n GetProviderCategoriesResponse,\n GetCategoryMappingsOptions,\n CategoryMapping,\n GetCategoryMappingsResponse,\n CreateCategoryMappingBody,\n CreateCategoryMappingResponse,\n DeleteCategoryMappingResponse,\n DropshipperCustomer,\n DropshipperCustomerStats,\n DropshipperCustomerFinancial,\n DropshipperCustomerAddress,\n DropshipperCustomerDetail,\n GetDropshipperCustomersOptions,\n GetDropshipperCustomersResponse,\n GetDropshipperCustomerDetailResponse,\n CreateDropshipperCustomerBody,\n CreateDropshipperCustomerResponse,\n UpdateDropshipperCustomerBody,\n UpdateDropshipperCustomerResponse,\n DropshipperBalance,\n DropshipperPendingOrders,\n DropshipperPaymentMethodConfig,\n DropshipperAccount,\n GetDropshipperAccountResponse,\n DropshipperPayableOrder,\n GetDropshipperPayableResponse,\n DropshipperReceivableOrder,\n GetDropshipperReceivableResponse,\n SettlementRecord,\n GetSettlementsOptions,\n GetSettlementsResponse,\n GetSettlementDetailResponse,\n CreateSettlementBody,\n CreateSettlementResponse,\n ConfirmSettlementBody,\n CancelSettlementBody,\n UpdateSettlementStatusResponse,\n AdminDropshipperAccount,\n AdminDropshipperBalance,\n GetAdminDropshipperAccountsResponse,\n GetAdminAccountBalanceResponse,\n GetAdminPriceListsResponse,\n GetUserChannelResponse,\n DropshipperPromotion,\n GetDropshipperPromotionsOptions,\n GetDropshipperPromotionsResponse,\n PromotionRule,\n CreateDropshipperPromotionBody,\n UpdateDropshipperPromotionBody,\n DeleteDropshipperPromotionResponse,\n GetDashboardStatsOptions,\n DashboardPeriodMetrics,\n DashboardChanges,\n DashboardTopProduct,\n DashboardStats,\n GetDashboardStatsResponse,\n GetStorefrontDropshipperCategoriesResponse,\n OrderNote,\n CreateOrderNoteBody,\n GetOrderNotesResponse,\n CreateOrderNoteResponse,\n DeleteOrderNoteResponse,\n // Order cancel and edits\n CancelDropshipperOrderResponse,\n CreateOrderEditBody,\n CreateOrderEditResponse,\n AddOrderEditItemBody,\n AddOrderEditItemResponse,\n ConfirmOrderEditResponse,\n // Draft Orders\n DropshipperDraftOrderItem,\n DropshipperDraftOrder,\n GetDropshipperDraftOrdersOptions,\n GetDropshipperDraftOrdersResponse,\n CreateDropshipperDraftOrderBody,\n CreateDropshipperDraftOrderResponse,\n GetDropshipperDraftOrderDetailResponse,\n UpdateDropshipperDraftOrderBody,\n UpdateDropshipperDraftOrderResponse,\n ConvertDropshipperDraftOrderBody,\n ConvertDropshipperDraftOrderResponse,\n DeleteDropshipperDraftOrderResponse,\n // Order totals preview\n PreviewDropshipperOrderItem,\n PreviewDropshipperOrderTotalsBody,\n PreviewDropshipperOrderTotalsResponse,\n // Dropshipper addresses (channel-scoped)\n DropshipperAddressBody,\n DropshipperAddressResponse,\n GetDropshipperAddressesResponse,\n // Financial Endpoints — Group A\n SettlementStatus,\n GetDropshipperAccountBalanceResponse,\n GetDropshipperAccountOrdersOptions,\n GetDropshipperAccountOrdersResponse,\n GetAdminDropshipperAccountOrdersResponse,\n GetAdminDropshipperAccountSettlementsOptions,\n GetAdminDropshipperAccountSettlementsResponse,\n ResolveGuaranteeBody,\n ResolveGuaranteeResponse,\n CreateCompensacionBody,\n CreateCompensacionResponse,\n CreateAjusteBody,\n CreateAjusteResponse,\n // Financial Endpoints — Group B\n CreateCobroBody,\n CreateCobroResponse,\n CreatePagoBody,\n CreatePagoResponse,\n CreateReversoBody,\n CreateReversoResponse,\n ConfirmMovementBody,\n ConfirmMovementResponse,\n CancelMovementBody,\n CancelMovementResponse,\n GetFinancialAnalysisResponse,\n RegisterPaymentBody,\n RegisterPaymentResponse,\n // Dashboard Capabilities\n DropshipperDashboardCapabilities,\n // AI Assistant Chat\n ChatMessage,\n ChatRequest,\n ChatIntent,\n ChatSource,\n ChatSourceVariant,\n ChatResponse,\n ChatAssistantHealthResponse,\n // Geo-reference\n GeoCountry,\n GeoProvince,\n GeoCity,\n GetGeoCountriesResponse,\n GetGeoProvincesResponse,\n GetGeoCitiesResponse,\n // Product Attributes\n DropshipperProductAttribute,\n DropshipperProductAttributeValue,\n GetProductAttributesResponse,\n DropshipperAttributeDefinition,\n DropshipperAttributeDefinitionValue,\n GetDropshipperAttributesResponse,\n DropshipperProductOption,\n DropshipperProductOptionValue,\n // Dropshipper Profile\n DropshipperProfile,\n GetMyProfileResponse,\n // Cost Price Changes Detection\n CostPriceChangesCheckResponse,\n CostPriceChangeItem,\n CostPriceChangesResponse,\n AcknowledgeCostPriceChangesResponse,\n // Notifications\n NotificationData,\n PriceUpdatedNotificationData,\n ProductAssignedNotificationData,\n StockChangeNotificationData,\n ManualAdminNotificationData,\n RawNotification,\n GetNotificationsOptions,\n GetNotificationsResponse,\n // Notification preferences\n DropshipperNotificationEventType,\n DropshipperNotificationPreference,\n UpdateNotificationPreferencesBody,\n GetNotificationPreferencesResponse,\n } from './admin';\n\n// ============================================\n// Dropshipper Business Policy Types\n// ============================================\nexport type {\n GetBusinessPolicyResponse,\n UpdateBusinessPolicyBody,\n UpdateBusinessPolicyResponse,\n} from './dropshipper-business-policy';\n\n// ============================================\n// Header Configuration Types\n// ============================================\nexport type {\n IconConfig,\n NavigationCalloutItem,\n NavigationLinkItem,\n DynamicSource,\n HeaderLinkItem,\n AccountMenuItem,\n AccountDropdownConfig,\n SearchBarConfig,\n HeaderNavigationConfig,\n} from './header-config';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/package.json
CHANGED
package/publish.log
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
npm warn Unknown project config "network-concurrency". This will stop working in the next major version of npm.
|
|
2
|
+
npm warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
|
|
3
|
+
npm warn publish errors corrected:
|
|
4
|
+
npm warn publish "repository.url" was normalized to "git+https://github.com/thorprovider/thor-commerce.git"
|
|
5
|
+
npm notice
|
|
6
|
+
npm notice 📦 @thor/types@2.0.1
|
|
7
|
+
npm notice Tarball Contents
|
|
8
|
+
npm notice 277B AGENTS.md
|
|
9
|
+
npm notice 1.6kB CHANGELOG.md
|
|
10
|
+
npm notice 6.4kB README.md
|
|
11
|
+
npm notice 101.2kB dist/index.d.mts
|
|
12
|
+
npm notice 101.2kB dist/index.d.ts
|
|
13
|
+
npm notice 3.2kB dist/index.js
|
|
14
|
+
npm notice 14.3kB dist/index.js.map
|
|
15
|
+
npm notice 1.9kB dist/index.mjs
|
|
16
|
+
npm notice 14.2kB dist/index.mjs.map
|
|
17
|
+
npm notice 832B package.json
|
|
18
|
+
npm notice 724B src/admin/AdminUser.ts
|
|
19
|
+
npm notice 946B src/admin/AuditLog.ts
|
|
20
|
+
npm notice 2.0kB src/admin/DashboardConfig.ts
|
|
21
|
+
npm notice 1.5kB src/admin/DashboardMetrics.ts
|
|
22
|
+
npm notice 268B src/admin/index.ts
|
|
23
|
+
npm notice 1.2kB src/admin/SiteConfigMetadata.ts
|
|
24
|
+
npm notice 6.5kB src/auth.ts
|
|
25
|
+
npm notice 2.8kB src/cart.ts
|
|
26
|
+
npm notice 3.0kB src/category.ts
|
|
27
|
+
npm notice 733B src/collection.ts
|
|
28
|
+
npm notice 35.3kB src/commerce-provider.ts
|
|
29
|
+
npm notice 2.1kB src/common.ts
|
|
30
|
+
npm notice 4.6kB src/customer.ts
|
|
31
|
+
npm notice 2.5kB src/designer-config.ts
|
|
32
|
+
npm notice 7.3kB src/header-config.README.md
|
|
33
|
+
npm notice 4.6kB src/header-config.ts
|
|
34
|
+
npm notice 5.5kB src/index.ts
|
|
35
|
+
npm notice 5.0kB src/order.ts
|
|
36
|
+
npm notice 6.0kB src/payment.ts
|
|
37
|
+
npm notice 10.7kB src/product.ts
|
|
38
|
+
npm notice 3.8kB src/provider.ts
|
|
39
|
+
npm notice 1.4kB src/region.ts
|
|
40
|
+
npm notice 2.1kB src/site-config-labels.ts
|
|
41
|
+
npm notice 3.0kB src/site-config.ts
|
|
42
|
+
npm notice 1.3kB src/stock-location.ts
|
|
43
|
+
npm notice 1.5kB src/storefront-config.ts
|
|
44
|
+
npm notice 3.3kB src/storefront.ts
|
|
45
|
+
npm notice 333B tsconfig.json
|
|
46
|
+
npm notice 303B tsup.config.ts
|
|
47
|
+
npm notice Tarball Details
|
|
48
|
+
npm notice name: @thor/types
|
|
49
|
+
npm notice version: 2.0.1
|
|
50
|
+
npm notice filename: thor-types-2.0.1.tgz
|
|
51
|
+
npm notice package size: 87.7 kB
|
|
52
|
+
npm notice unpacked size: 365.5 kB
|
|
53
|
+
npm notice shasum: 45a0c68b20d21a5446a471abb9077f2dd59cdd0d
|
|
54
|
+
npm notice integrity: sha512-AJRNa0Gs1osFo[...]RLXmlsHuMfinQ==
|
|
55
|
+
npm notice total files: 39
|
|
56
|
+
npm notice
|
|
57
|
+
npm notice Publishing to https://npm.pkg.github.com with tag latest and restricted access
|
|
58
|
+
npm error code E401
|
|
59
|
+
npm error 401 Unauthorized - PUT https://npm.pkg.github.com/@thor%2ftypes - unauthenticated: User cannot be authenticated with the token provided.
|
|
60
|
+
npm error A complete log of this run can be found in: /home/nelson/.npm/_logs/2026-04-16T15_45_29_457Z-debug-0.log
|