@thorprovider/types 6.0.0 → 7.0.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 +1 -5
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.mts +1 -124
- package/dist/index.d.ts +1 -124
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/admin/DropshippingAdmin.ts +0 -138
- package/src/index.ts +0 -7
package/dist/index.d.mts
CHANGED
|
@@ -4639,8 +4639,6 @@ interface ExtendedCreateDropshipperOrderResponse {
|
|
|
4639
4639
|
discount_total: number;
|
|
4640
4640
|
total: number;
|
|
4641
4641
|
profit: number;
|
|
4642
|
-
/** Desglose de impuestos por tasa (ítems + envío). `total` es el importe. */
|
|
4643
|
-
tax_lines: DropshipperOrderTaxLine[];
|
|
4644
4642
|
created_at: string;
|
|
4645
4643
|
/** One shipping method per group (contract v2). Replaces `shipping_method`. */
|
|
4646
4644
|
shipping_methods: DropshipperShippingMethod[];
|
|
@@ -4694,19 +4692,6 @@ interface DropshipperItemTaxLine {
|
|
|
4694
4692
|
total: number;
|
|
4695
4693
|
subtotal: number;
|
|
4696
4694
|
}
|
|
4697
|
-
/**
|
|
4698
|
-
* Línea de impuesto del desglose de una orden (ítems + envío).
|
|
4699
|
-
*
|
|
4700
|
-
* `total` es el **importe del impuesto** (no la base imponible). No expone
|
|
4701
|
-
* `subtotal` porque en el contrato de order ese campo también es un importe de
|
|
4702
|
-
* impuesto (impuesto sobre la base pre-descuento), no la base.
|
|
4703
|
-
*/
|
|
4704
|
-
interface DropshipperOrderTaxLine {
|
|
4705
|
-
code: string | null;
|
|
4706
|
-
rate: number;
|
|
4707
|
-
total: number;
|
|
4708
|
-
kind: 'item' | 'shipping';
|
|
4709
|
-
}
|
|
4710
4695
|
interface DropshipperOrderItem {
|
|
4711
4696
|
id: string;
|
|
4712
4697
|
title: string;
|
|
@@ -4933,8 +4918,6 @@ interface DropshipperShippingMethod {
|
|
|
4933
4918
|
original_total: number;
|
|
4934
4919
|
total: number;
|
|
4935
4920
|
tax_total: number;
|
|
4936
|
-
/** Tax lines del método de envío (importe por tasa). El backend ya las emite. */
|
|
4937
|
-
tax_lines?: DropshipperItemTaxLine[];
|
|
4938
4921
|
discount_total: number;
|
|
4939
4922
|
/** Discount adjustments applied to this shipping method (read-only; [] when none). */
|
|
4940
4923
|
adjustments?: DropshipperItemAdjustment[];
|
|
@@ -5021,63 +5004,9 @@ interface DropshipperOrderFulfillment {
|
|
|
5021
5004
|
provider_id: string | null;
|
|
5022
5005
|
/** Name of the stock location the fulfillment ships from, when resolvable */
|
|
5023
5006
|
location_name: string | null;
|
|
5024
|
-
/** Delivery type of the fulfillment (a group travels together in one fulfillment). */
|
|
5025
|
-
type: 'pickup' | 'shipping';
|
|
5026
|
-
/** Shipping option of origin, to resolve the method name against `order.shipping_methods`. */
|
|
5027
|
-
shipping_option_id: string | null;
|
|
5028
|
-
/** Pickup store (name + address) for a `pickup` fulfillment; `null` for shipping. */
|
|
5029
|
-
pickup_location: DropshipperPickupLocation | null;
|
|
5030
5007
|
items: DropshipperFulfillmentItem[];
|
|
5031
5008
|
labels: DropshipperFulfillmentLabel[];
|
|
5032
5009
|
}
|
|
5033
|
-
/**
|
|
5034
|
-
* Estado de un grupo de entrega. `configured` = plan aplicado, aún no enviado
|
|
5035
|
-
* al almacén; `preparing` = enviado al almacén (FulfillmentDeliveryInfo) sin
|
|
5036
|
-
* fulfillment; el resto son estados del fulfillment vinculado.
|
|
5037
|
-
*/
|
|
5038
|
-
type DropshipperDeliveryGroupStatus = 'configured' | 'preparing' | 'pending' | 'packed' | 'shipped' | 'delivered' | 'canceled';
|
|
5039
|
-
/**
|
|
5040
|
-
* Un grupo de entrega de la orden: un grupo configurado del plan de envío
|
|
5041
|
-
* (`metadata.shipping_plan.configured_groups`), con o sin fulfillment. Los
|
|
5042
|
-
* campos se resuelven progresivamente a medida que la orden avanza.
|
|
5043
|
-
*/
|
|
5044
|
-
interface DropshipperDeliveryGroup {
|
|
5045
|
-
id: string;
|
|
5046
|
-
type: 'pickup' | 'shipping';
|
|
5047
|
-
origin: {
|
|
5048
|
-
id: string | null;
|
|
5049
|
-
name: string | null;
|
|
5050
|
-
/** Código corto del almacén (`metadata.code`), si existe. */
|
|
5051
|
-
code: string | null;
|
|
5052
|
-
};
|
|
5053
|
-
method: {
|
|
5054
|
-
id: string | null;
|
|
5055
|
-
name: string | null;
|
|
5056
|
-
estimated_days: string | null;
|
|
5057
|
-
};
|
|
5058
|
-
items: Array<{
|
|
5059
|
-
title: string;
|
|
5060
|
-
sku: string | null;
|
|
5061
|
-
quantity: number;
|
|
5062
|
-
}>;
|
|
5063
|
-
status: DropshipperDeliveryGroupStatus;
|
|
5064
|
-
/** Fulfillment vinculado, cuando el grupo ya fue cumplido; `null` si no. */
|
|
5065
|
-
fulfillment: {
|
|
5066
|
-
id: string;
|
|
5067
|
-
status: string;
|
|
5068
|
-
provider_id: string | null;
|
|
5069
|
-
packed_at: string | null;
|
|
5070
|
-
shipped_at: string | null;
|
|
5071
|
-
delivered_at: string | null;
|
|
5072
|
-
canceled_at: string | null;
|
|
5073
|
-
labels: DropshipperFulfillmentLabel[];
|
|
5074
|
-
} | null;
|
|
5075
|
-
/** Punto de recogida + encargado (solo grupos `pickup`). */
|
|
5076
|
-
pickup: {
|
|
5077
|
-
location: DropshipperPickupLocation | null;
|
|
5078
|
-
person_in_charge: string | null;
|
|
5079
|
-
} | null;
|
|
5080
|
-
}
|
|
5081
5010
|
/** A credit line applied to an order (read-only; generated from a gift card,
|
|
5082
5011
|
* store credit or payment collection). `amount` is in major units of
|
|
5083
5012
|
* `currency_code`. */
|
|
@@ -5124,8 +5053,6 @@ interface DropshipperOrderDetail {
|
|
|
5124
5053
|
claims?: DropshipperOrderClaim[];
|
|
5125
5054
|
/** Fulfillments on the order, read-only (optional) */
|
|
5126
5055
|
fulfillments?: DropshipperOrderFulfillment[];
|
|
5127
|
-
/** Grupos de entrega del plan de envío, con o sin fulfillment (optional). */
|
|
5128
|
-
delivery_groups?: DropshipperDeliveryGroup[];
|
|
5129
5056
|
transactions: DropshipperTransaction[];
|
|
5130
5057
|
financial_summary: DropshipperFinancialSummary;
|
|
5131
5058
|
/** Credit lines applied to the order (read-only; `[]` when none). */
|
|
@@ -5176,8 +5103,6 @@ interface CreateDropshipperOrderBody {
|
|
|
5176
5103
|
/** One selected option per shipping group (contract v2). Replaces `shipping_method_id`. */
|
|
5177
5104
|
shipping_groups?: ShippingGroupInput[];
|
|
5178
5105
|
payment_method_id: string;
|
|
5179
|
-
/** Código de gift card (obligatorio si el método de pago es gift card). */
|
|
5180
|
-
gift_card_code?: string;
|
|
5181
5106
|
notes?: string;
|
|
5182
5107
|
}
|
|
5183
5108
|
/** Response for `POST /admin/thor/dropshipper/orders` */
|
|
@@ -5195,20 +5120,6 @@ interface CreateDropshipperOrderResponse {
|
|
|
5195
5120
|
interface SetPaymentCollectorBody {
|
|
5196
5121
|
payment_collected_by: 'dropshipper' | 'provider';
|
|
5197
5122
|
}
|
|
5198
|
-
/** Body for `POST /admin/thor/dropshipper/gift-cards/validate` */
|
|
5199
|
-
interface ValidateGiftCardBody {
|
|
5200
|
-
code: string;
|
|
5201
|
-
/** Moneda de la orden: si se envía, se valida que la gift card coincida. */
|
|
5202
|
-
currency_code?: string;
|
|
5203
|
-
}
|
|
5204
|
-
/** Response for `POST /admin/thor/dropshipper/gift-cards/validate` */
|
|
5205
|
-
interface ValidateGiftCardResponse {
|
|
5206
|
-
valid: boolean;
|
|
5207
|
-
/** Mensaje de usuario cuando `valid` es false. */
|
|
5208
|
-
reason?: string;
|
|
5209
|
-
balance?: number;
|
|
5210
|
-
currency_code?: string;
|
|
5211
|
-
}
|
|
5212
5123
|
/** Response for `POST /admin/thor/dropshipper/orders/:id/set-payment-collector` */
|
|
5213
5124
|
interface SetPaymentCollectorResponse {
|
|
5214
5125
|
order_id: string;
|
|
@@ -5320,8 +5231,6 @@ interface DropshipperDraftOrder {
|
|
|
5320
5231
|
/** @deprecated legacy singular shipping method id; use `shipping_groups` instead. */
|
|
5321
5232
|
shipping_method_id: string | null;
|
|
5322
5233
|
payment_method_id: string | null;
|
|
5323
|
-
/** Código de gift card persistido en el borrador (metadata). */
|
|
5324
|
-
gift_card_code?: string | null;
|
|
5325
5234
|
notes: string | null;
|
|
5326
5235
|
converted_order_id: string | null;
|
|
5327
5236
|
converted_at: string | null;
|
|
@@ -5378,7 +5287,6 @@ interface CreateDropshipperDraftOrderBody {
|
|
|
5378
5287
|
/** @deprecated legacy singular shipping method id; use `shipping_groups` instead. */
|
|
5379
5288
|
shipping_method_id?: string;
|
|
5380
5289
|
payment_method_id?: string;
|
|
5381
|
-
gift_card_code?: string;
|
|
5382
5290
|
notes?: string;
|
|
5383
5291
|
}
|
|
5384
5292
|
/** Response for `POST /admin/thor/dropshipper/draft-orders` */
|
|
@@ -5401,7 +5309,6 @@ interface UpdateDropshipperDraftOrderBody {
|
|
|
5401
5309
|
/** @deprecated legacy singular shipping method id; use `shipping_groups` instead. */
|
|
5402
5310
|
shipping_method_id?: string;
|
|
5403
5311
|
payment_method_id?: string;
|
|
5404
|
-
gift_card_code?: string;
|
|
5405
5312
|
notes?: string;
|
|
5406
5313
|
}
|
|
5407
5314
|
/** Response for `POST /admin/thor/dropshipper/draft-orders/:id` */
|
|
@@ -5423,34 +5330,6 @@ interface DeleteDropshipperDraftOrderResponse {
|
|
|
5423
5330
|
id: string;
|
|
5424
5331
|
deleted: boolean;
|
|
5425
5332
|
}
|
|
5426
|
-
/** Item for `POST /admin/thor/dropshipper/orders/preview-totals` */
|
|
5427
|
-
interface PreviewDropshipperOrderItem {
|
|
5428
|
-
variant_id: string;
|
|
5429
|
-
quantity: number;
|
|
5430
|
-
/** Sale price per unit the dropshipper intends to charge (honored over the catalog price). */
|
|
5431
|
-
unit_price?: number;
|
|
5432
|
-
}
|
|
5433
|
-
/** Body for `POST /admin/thor/dropshipper/orders/preview-totals` */
|
|
5434
|
-
interface PreviewDropshipperOrderTotalsBody {
|
|
5435
|
-
customer_id: string;
|
|
5436
|
-
currency_code: string;
|
|
5437
|
-
items: PreviewDropshipperOrderItem[];
|
|
5438
|
-
shipping_address: DropshipperOrderShippingAddress;
|
|
5439
|
-
/** One selected option per shipping group (contract v2). Required when any item needs shipping. */
|
|
5440
|
-
shipping_groups?: ShippingGroupInput[];
|
|
5441
|
-
}
|
|
5442
|
-
/** Response for `POST /admin/thor/dropshipper/orders/preview-totals` */
|
|
5443
|
-
interface PreviewDropshipperOrderTotalsResponse {
|
|
5444
|
-
subtotal: number;
|
|
5445
|
-
items_subtotal: number;
|
|
5446
|
-
shipping_subtotal: number;
|
|
5447
|
-
shipping_total: number;
|
|
5448
|
-
tax_total: number;
|
|
5449
|
-
discount_total: number;
|
|
5450
|
-
total: number;
|
|
5451
|
-
/** Desglose de impuestos por tasa (ítems + envío). `total` es el importe. */
|
|
5452
|
-
tax_lines: DropshipperOrderTaxLine[];
|
|
5453
|
-
}
|
|
5454
5333
|
/** A dropshipper custom category node */
|
|
5455
5334
|
interface DropshipperCategory {
|
|
5456
5335
|
id: string;
|
|
@@ -6010,8 +5889,6 @@ interface DashboardStats {
|
|
|
6010
5889
|
total: number;
|
|
6011
5890
|
profit: number;
|
|
6012
5891
|
status: string;
|
|
6013
|
-
/** Estado de cobro crudo del backend (captured/authorized/partially_captured/...). */
|
|
6014
|
-
payment_status: string;
|
|
6015
5892
|
created_at: string;
|
|
6016
5893
|
}>;
|
|
6017
5894
|
top_products_by_profit: DashboardTopProduct[];
|
|
@@ -6814,4 +6691,4 @@ type UpdateBusinessPolicyResponse = {
|
|
|
6814
6691
|
business_policy: string;
|
|
6815
6692
|
};
|
|
6816
6693
|
|
|
6817
|
-
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, 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, 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,
|
|
6694
|
+
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, 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, 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, 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, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderItem, OrderNote, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PriceRange, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionRule, 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, ShippingGroupInput, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, 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, ValidatedCheckoutItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -4639,8 +4639,6 @@ interface ExtendedCreateDropshipperOrderResponse {
|
|
|
4639
4639
|
discount_total: number;
|
|
4640
4640
|
total: number;
|
|
4641
4641
|
profit: number;
|
|
4642
|
-
/** Desglose de impuestos por tasa (ítems + envío). `total` es el importe. */
|
|
4643
|
-
tax_lines: DropshipperOrderTaxLine[];
|
|
4644
4642
|
created_at: string;
|
|
4645
4643
|
/** One shipping method per group (contract v2). Replaces `shipping_method`. */
|
|
4646
4644
|
shipping_methods: DropshipperShippingMethod[];
|
|
@@ -4694,19 +4692,6 @@ interface DropshipperItemTaxLine {
|
|
|
4694
4692
|
total: number;
|
|
4695
4693
|
subtotal: number;
|
|
4696
4694
|
}
|
|
4697
|
-
/**
|
|
4698
|
-
* Línea de impuesto del desglose de una orden (ítems + envío).
|
|
4699
|
-
*
|
|
4700
|
-
* `total` es el **importe del impuesto** (no la base imponible). No expone
|
|
4701
|
-
* `subtotal` porque en el contrato de order ese campo también es un importe de
|
|
4702
|
-
* impuesto (impuesto sobre la base pre-descuento), no la base.
|
|
4703
|
-
*/
|
|
4704
|
-
interface DropshipperOrderTaxLine {
|
|
4705
|
-
code: string | null;
|
|
4706
|
-
rate: number;
|
|
4707
|
-
total: number;
|
|
4708
|
-
kind: 'item' | 'shipping';
|
|
4709
|
-
}
|
|
4710
4695
|
interface DropshipperOrderItem {
|
|
4711
4696
|
id: string;
|
|
4712
4697
|
title: string;
|
|
@@ -4933,8 +4918,6 @@ interface DropshipperShippingMethod {
|
|
|
4933
4918
|
original_total: number;
|
|
4934
4919
|
total: number;
|
|
4935
4920
|
tax_total: number;
|
|
4936
|
-
/** Tax lines del método de envío (importe por tasa). El backend ya las emite. */
|
|
4937
|
-
tax_lines?: DropshipperItemTaxLine[];
|
|
4938
4921
|
discount_total: number;
|
|
4939
4922
|
/** Discount adjustments applied to this shipping method (read-only; [] when none). */
|
|
4940
4923
|
adjustments?: DropshipperItemAdjustment[];
|
|
@@ -5021,63 +5004,9 @@ interface DropshipperOrderFulfillment {
|
|
|
5021
5004
|
provider_id: string | null;
|
|
5022
5005
|
/** Name of the stock location the fulfillment ships from, when resolvable */
|
|
5023
5006
|
location_name: string | null;
|
|
5024
|
-
/** Delivery type of the fulfillment (a group travels together in one fulfillment). */
|
|
5025
|
-
type: 'pickup' | 'shipping';
|
|
5026
|
-
/** Shipping option of origin, to resolve the method name against `order.shipping_methods`. */
|
|
5027
|
-
shipping_option_id: string | null;
|
|
5028
|
-
/** Pickup store (name + address) for a `pickup` fulfillment; `null` for shipping. */
|
|
5029
|
-
pickup_location: DropshipperPickupLocation | null;
|
|
5030
5007
|
items: DropshipperFulfillmentItem[];
|
|
5031
5008
|
labels: DropshipperFulfillmentLabel[];
|
|
5032
5009
|
}
|
|
5033
|
-
/**
|
|
5034
|
-
* Estado de un grupo de entrega. `configured` = plan aplicado, aún no enviado
|
|
5035
|
-
* al almacén; `preparing` = enviado al almacén (FulfillmentDeliveryInfo) sin
|
|
5036
|
-
* fulfillment; el resto son estados del fulfillment vinculado.
|
|
5037
|
-
*/
|
|
5038
|
-
type DropshipperDeliveryGroupStatus = 'configured' | 'preparing' | 'pending' | 'packed' | 'shipped' | 'delivered' | 'canceled';
|
|
5039
|
-
/**
|
|
5040
|
-
* Un grupo de entrega de la orden: un grupo configurado del plan de envío
|
|
5041
|
-
* (`metadata.shipping_plan.configured_groups`), con o sin fulfillment. Los
|
|
5042
|
-
* campos se resuelven progresivamente a medida que la orden avanza.
|
|
5043
|
-
*/
|
|
5044
|
-
interface DropshipperDeliveryGroup {
|
|
5045
|
-
id: string;
|
|
5046
|
-
type: 'pickup' | 'shipping';
|
|
5047
|
-
origin: {
|
|
5048
|
-
id: string | null;
|
|
5049
|
-
name: string | null;
|
|
5050
|
-
/** Código corto del almacén (`metadata.code`), si existe. */
|
|
5051
|
-
code: string | null;
|
|
5052
|
-
};
|
|
5053
|
-
method: {
|
|
5054
|
-
id: string | null;
|
|
5055
|
-
name: string | null;
|
|
5056
|
-
estimated_days: string | null;
|
|
5057
|
-
};
|
|
5058
|
-
items: Array<{
|
|
5059
|
-
title: string;
|
|
5060
|
-
sku: string | null;
|
|
5061
|
-
quantity: number;
|
|
5062
|
-
}>;
|
|
5063
|
-
status: DropshipperDeliveryGroupStatus;
|
|
5064
|
-
/** Fulfillment vinculado, cuando el grupo ya fue cumplido; `null` si no. */
|
|
5065
|
-
fulfillment: {
|
|
5066
|
-
id: string;
|
|
5067
|
-
status: string;
|
|
5068
|
-
provider_id: string | null;
|
|
5069
|
-
packed_at: string | null;
|
|
5070
|
-
shipped_at: string | null;
|
|
5071
|
-
delivered_at: string | null;
|
|
5072
|
-
canceled_at: string | null;
|
|
5073
|
-
labels: DropshipperFulfillmentLabel[];
|
|
5074
|
-
} | null;
|
|
5075
|
-
/** Punto de recogida + encargado (solo grupos `pickup`). */
|
|
5076
|
-
pickup: {
|
|
5077
|
-
location: DropshipperPickupLocation | null;
|
|
5078
|
-
person_in_charge: string | null;
|
|
5079
|
-
} | null;
|
|
5080
|
-
}
|
|
5081
5010
|
/** A credit line applied to an order (read-only; generated from a gift card,
|
|
5082
5011
|
* store credit or payment collection). `amount` is in major units of
|
|
5083
5012
|
* `currency_code`. */
|
|
@@ -5124,8 +5053,6 @@ interface DropshipperOrderDetail {
|
|
|
5124
5053
|
claims?: DropshipperOrderClaim[];
|
|
5125
5054
|
/** Fulfillments on the order, read-only (optional) */
|
|
5126
5055
|
fulfillments?: DropshipperOrderFulfillment[];
|
|
5127
|
-
/** Grupos de entrega del plan de envío, con o sin fulfillment (optional). */
|
|
5128
|
-
delivery_groups?: DropshipperDeliveryGroup[];
|
|
5129
5056
|
transactions: DropshipperTransaction[];
|
|
5130
5057
|
financial_summary: DropshipperFinancialSummary;
|
|
5131
5058
|
/** Credit lines applied to the order (read-only; `[]` when none). */
|
|
@@ -5176,8 +5103,6 @@ interface CreateDropshipperOrderBody {
|
|
|
5176
5103
|
/** One selected option per shipping group (contract v2). Replaces `shipping_method_id`. */
|
|
5177
5104
|
shipping_groups?: ShippingGroupInput[];
|
|
5178
5105
|
payment_method_id: string;
|
|
5179
|
-
/** Código de gift card (obligatorio si el método de pago es gift card). */
|
|
5180
|
-
gift_card_code?: string;
|
|
5181
5106
|
notes?: string;
|
|
5182
5107
|
}
|
|
5183
5108
|
/** Response for `POST /admin/thor/dropshipper/orders` */
|
|
@@ -5195,20 +5120,6 @@ interface CreateDropshipperOrderResponse {
|
|
|
5195
5120
|
interface SetPaymentCollectorBody {
|
|
5196
5121
|
payment_collected_by: 'dropshipper' | 'provider';
|
|
5197
5122
|
}
|
|
5198
|
-
/** Body for `POST /admin/thor/dropshipper/gift-cards/validate` */
|
|
5199
|
-
interface ValidateGiftCardBody {
|
|
5200
|
-
code: string;
|
|
5201
|
-
/** Moneda de la orden: si se envía, se valida que la gift card coincida. */
|
|
5202
|
-
currency_code?: string;
|
|
5203
|
-
}
|
|
5204
|
-
/** Response for `POST /admin/thor/dropshipper/gift-cards/validate` */
|
|
5205
|
-
interface ValidateGiftCardResponse {
|
|
5206
|
-
valid: boolean;
|
|
5207
|
-
/** Mensaje de usuario cuando `valid` es false. */
|
|
5208
|
-
reason?: string;
|
|
5209
|
-
balance?: number;
|
|
5210
|
-
currency_code?: string;
|
|
5211
|
-
}
|
|
5212
5123
|
/** Response for `POST /admin/thor/dropshipper/orders/:id/set-payment-collector` */
|
|
5213
5124
|
interface SetPaymentCollectorResponse {
|
|
5214
5125
|
order_id: string;
|
|
@@ -5320,8 +5231,6 @@ interface DropshipperDraftOrder {
|
|
|
5320
5231
|
/** @deprecated legacy singular shipping method id; use `shipping_groups` instead. */
|
|
5321
5232
|
shipping_method_id: string | null;
|
|
5322
5233
|
payment_method_id: string | null;
|
|
5323
|
-
/** Código de gift card persistido en el borrador (metadata). */
|
|
5324
|
-
gift_card_code?: string | null;
|
|
5325
5234
|
notes: string | null;
|
|
5326
5235
|
converted_order_id: string | null;
|
|
5327
5236
|
converted_at: string | null;
|
|
@@ -5378,7 +5287,6 @@ interface CreateDropshipperDraftOrderBody {
|
|
|
5378
5287
|
/** @deprecated legacy singular shipping method id; use `shipping_groups` instead. */
|
|
5379
5288
|
shipping_method_id?: string;
|
|
5380
5289
|
payment_method_id?: string;
|
|
5381
|
-
gift_card_code?: string;
|
|
5382
5290
|
notes?: string;
|
|
5383
5291
|
}
|
|
5384
5292
|
/** Response for `POST /admin/thor/dropshipper/draft-orders` */
|
|
@@ -5401,7 +5309,6 @@ interface UpdateDropshipperDraftOrderBody {
|
|
|
5401
5309
|
/** @deprecated legacy singular shipping method id; use `shipping_groups` instead. */
|
|
5402
5310
|
shipping_method_id?: string;
|
|
5403
5311
|
payment_method_id?: string;
|
|
5404
|
-
gift_card_code?: string;
|
|
5405
5312
|
notes?: string;
|
|
5406
5313
|
}
|
|
5407
5314
|
/** Response for `POST /admin/thor/dropshipper/draft-orders/:id` */
|
|
@@ -5423,34 +5330,6 @@ interface DeleteDropshipperDraftOrderResponse {
|
|
|
5423
5330
|
id: string;
|
|
5424
5331
|
deleted: boolean;
|
|
5425
5332
|
}
|
|
5426
|
-
/** Item for `POST /admin/thor/dropshipper/orders/preview-totals` */
|
|
5427
|
-
interface PreviewDropshipperOrderItem {
|
|
5428
|
-
variant_id: string;
|
|
5429
|
-
quantity: number;
|
|
5430
|
-
/** Sale price per unit the dropshipper intends to charge (honored over the catalog price). */
|
|
5431
|
-
unit_price?: number;
|
|
5432
|
-
}
|
|
5433
|
-
/** Body for `POST /admin/thor/dropshipper/orders/preview-totals` */
|
|
5434
|
-
interface PreviewDropshipperOrderTotalsBody {
|
|
5435
|
-
customer_id: string;
|
|
5436
|
-
currency_code: string;
|
|
5437
|
-
items: PreviewDropshipperOrderItem[];
|
|
5438
|
-
shipping_address: DropshipperOrderShippingAddress;
|
|
5439
|
-
/** One selected option per shipping group (contract v2). Required when any item needs shipping. */
|
|
5440
|
-
shipping_groups?: ShippingGroupInput[];
|
|
5441
|
-
}
|
|
5442
|
-
/** Response for `POST /admin/thor/dropshipper/orders/preview-totals` */
|
|
5443
|
-
interface PreviewDropshipperOrderTotalsResponse {
|
|
5444
|
-
subtotal: number;
|
|
5445
|
-
items_subtotal: number;
|
|
5446
|
-
shipping_subtotal: number;
|
|
5447
|
-
shipping_total: number;
|
|
5448
|
-
tax_total: number;
|
|
5449
|
-
discount_total: number;
|
|
5450
|
-
total: number;
|
|
5451
|
-
/** Desglose de impuestos por tasa (ítems + envío). `total` es el importe. */
|
|
5452
|
-
tax_lines: DropshipperOrderTaxLine[];
|
|
5453
|
-
}
|
|
5454
5333
|
/** A dropshipper custom category node */
|
|
5455
5334
|
interface DropshipperCategory {
|
|
5456
5335
|
id: string;
|
|
@@ -6010,8 +5889,6 @@ interface DashboardStats {
|
|
|
6010
5889
|
total: number;
|
|
6011
5890
|
profit: number;
|
|
6012
5891
|
status: string;
|
|
6013
|
-
/** Estado de cobro crudo del backend (captured/authorized/partially_captured/...). */
|
|
6014
|
-
payment_status: string;
|
|
6015
5892
|
created_at: string;
|
|
6016
5893
|
}>;
|
|
6017
5894
|
top_products_by_profit: DashboardTopProduct[];
|
|
@@ -6814,4 +6691,4 @@ type UpdateBusinessPolicyResponse = {
|
|
|
6814
6691
|
business_policy: string;
|
|
6815
6692
|
};
|
|
6816
6693
|
|
|
6817
|
-
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, 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, 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,
|
|
6694
|
+
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, 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, 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, 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, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderItem, OrderNote, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PriceRange, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionRule, 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, ShippingGroupInput, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, 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, 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} 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\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} 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 OrderItem,\n OrderStatus,\n PaymentStatus,\n FulfillmentStatus,\n GetOrdersOptions,\n GetOrdersCallback,\n GetCustomerOrdersPageOptions,\n CustomerOrdersPage,\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} 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} 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\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} 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 OrderItem,\n OrderStatus,\n PaymentStatus,\n FulfillmentStatus,\n GetOrdersOptions,\n GetOrdersCallback,\n GetCustomerOrdersPageOptions,\n CustomerOrdersPage,\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} 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 DropshipperOrderTimelineEvent,\n DropshipperOrderDetail,\n GetDropshipperOrderDetailResponse,\n CreateOrderItem,\n CreateDropshipperOrderBody,\n CreateDropshipperOrderResponse,\n ExtendedCreateDropshipperOrderBody,\n ExtendedCreateDropshipperOrderResponse,\n SetPaymentCollectorBody,\n SetPaymentCollectorResponse,\n SetPaymentMethodBody,\n SetPaymentMethodResponse,\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 // 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