@ecomweb/sdk 0.9.0 → 0.11.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/dist/index.d.ts CHANGED
@@ -618,6 +618,10 @@ type Store = {
618
618
  updated_at: string;
619
619
  deleted_at: string | null;
620
620
  embedded_scripts?: EmbeddedScript[];
621
+ /** Contract "Storefront": true until the merchant opens the store. Absent on older APIs. */
622
+ coming_soon?: boolean;
623
+ /** Contract "Storefront": when the store first opened, null if never. Absent on older APIs. */
624
+ first_opened_at?: string | null;
621
625
  };
622
626
  type StoreConfig = z.infer<typeof storeConfigSchema>;
623
627
  type StoreSettings = z.infer<typeof storeSettingsSchema>;
@@ -920,14 +924,14 @@ type ProductReviewReplyFilters = z.infer<typeof productReviewReplyFiltersSchema>
920
924
  * The order timeline: status history plus internal staff comments, served to
921
925
  * admin clients by `GET stores/:storeRef/orders/:id/timeline`.
922
926
  *
923
- * This SDK owns the vocabulary; the API pins it with a contract test
924
- * (order-event-type-vocabulary.contract.spec.ts) because the API cannot import
925
- * the SDK. Types only: the dashboard calls the admin routes through its own
927
+ * The vocabulary is owned by `ecomweb-contracts/src/types/order-timeline.ts`;
928
+ * this copy is kept in parity, and the API pins it in
929
+ * `order-event-type-vocabulary.contract.spec.ts`. Types only: the dashboard calls the admin routes through its own
926
930
  * client.
927
931
  */
928
- declare const ORDER_EVENT_TYPES: readonly ["placed", "order_status_changed", "fulfillment_status_changed", "shipping_status_changed", "payment_status_changed", "tracking_number_updated"];
932
+ declare const ORDER_EVENT_TYPES: readonly ["placed", "order_status_changed", "fulfillment_status_changed", "shipping_status_changed", "payment_status_changed", "tracking_number_updated", "shipment_booked", "shipment_cancelled", "shipment_failed"];
929
933
  type OrderEventType = (typeof ORDER_EVENT_TYPES)[number];
930
- declare const ORDER_ACTOR_TYPES: readonly ["staff", "customer", "api_key", "gateway", "system"];
934
+ declare const ORDER_ACTOR_TYPES: readonly ["staff", "customer", "api_key", "gateway", "system", "carrier"];
931
935
  type OrderActorType = (typeof ORDER_ACTOR_TYPES)[number];
932
936
  interface OrderTimelineActor {
933
937
  type: OrderActorType;
@@ -1660,6 +1664,36 @@ declare const updateCategorySchema: z.ZodObject<{
1660
1664
  declare const categoryWithChildrenSchema: z.ZodType<CategoryWithChildren>;
1661
1665
  declare const categoryTreeSchema: z.ZodType<CategoryTree>;
1662
1666
 
1667
+ /**
1668
+ * The buyer-facing shipment summary carried on an order, plus its error codes.
1669
+ * The API builds it from the carrier booking; this is the wire shape only.
1670
+ */
1671
+ declare const SHIPMENT_STATUSES: readonly ["booked", "picked_up", "in_transit", "out_for_delivery", "delivered", "failed", "returned", "cancelled"];
1672
+ type ShipmentStatus = (typeof SHIPMENT_STATUSES)[number];
1673
+ /** One tracking event on a shipment. */
1674
+ interface OrderShipmentEvent {
1675
+ /** ISO 8601. */
1676
+ occurred_at: string;
1677
+ /** Carrier status text, ready to show. */
1678
+ label: string;
1679
+ location: string | null;
1680
+ }
1681
+ /** What a buyer sees of their shipment. */
1682
+ interface OrderShipmentSummary {
1683
+ carrier_name: string | null;
1684
+ carrier_logo_url: string | null;
1685
+ service_name: string | null;
1686
+ tracking_number: string | null;
1687
+ track_link: string | null;
1688
+ status: ShipmentStatus | null;
1689
+ events: OrderShipmentEvent[];
1690
+ }
1691
+ /** Error codes the order endpoints return for shipment-related refusals. */
1692
+ declare const ORDER_SHIPMENT_ERROR_CODES: {
1693
+ /** Cancelling is refused because a carrier shipment is already in progress. */
1694
+ readonly CANCEL_BLOCKED_BY_SHIPMENT: "ORDER_CANCEL_BLOCKED_BY_SHIPMENT";
1695
+ };
1696
+
1663
1697
  /**
1664
1698
  * Order-related schemas based on Prisma models
1665
1699
  */
@@ -1743,6 +1777,18 @@ interface Order extends OptionalTimestamp {
1743
1777
  /** Display names resolved server-side from the shippings module. */
1744
1778
  shipping_city_name?: string | null;
1745
1779
  shipping_ward_name?: string | null;
1780
+ /** Carrier name chosen at checkout, when a carrier option was picked. */
1781
+ shipping_carrier?: string | null;
1782
+ /**
1783
+ * The buyer-facing shipment (carrier, tracking, events). Present on the
1784
+ * customer detail and guest lookup responses.
1785
+ */
1786
+ shipment?: OrderShipmentSummary | null;
1787
+ /**
1788
+ * Whether the buyer may still cancel this order. Present on the customer
1789
+ * detail and guest lookup responses.
1790
+ */
1791
+ can_cancel?: boolean;
1746
1792
  source: OrderSource;
1747
1793
  /**
1748
1794
  * The staff member who keyed this order in. Present on the detail
@@ -1784,7 +1830,7 @@ interface CustomerOrderSummary {
1784
1830
  * compatibility but ignored — never rely on a value sent here.
1785
1831
  */
1786
1832
  type ServerComputedOrderAmounts = "subtotal" | "original_subtotal" | "shipping_fee" | "original_shipping_fee" | "shipping_discount" | "discount" | "total";
1787
- type CreateOrder = Omit<Order, "id" | "order_number" | "order_code" | keyof OptionalTimestamp | "applied_promotions" | "shipping_method_name" | "shipping_city_name" | "shipping_ward_name" | "tax" | ServerComputedOrderAmounts | "source" | "created_by"> & Partial<Pick<Order, ServerComputedOrderAmounts>> & {
1833
+ type CreateOrder = Omit<Order, "id" | "order_number" | "order_code" | keyof OptionalTimestamp | "applied_promotions" | "shipping_method_name" | "shipping_city_name" | "shipping_ward_name" | "shipping_carrier" | "shipment" | "can_cancel" | "tax" | ServerComputedOrderAmounts | "source" | "created_by"> & Partial<Pick<Order, ServerComputedOrderAmounts>> & {
1788
1834
  /**
1789
1835
  * Which shipping method the shopper picked. Write-only: the API prices it
1790
1836
  * from the store's shipping rules and rejects a method with no available
@@ -4118,6 +4164,18 @@ interface CreateOrderRequest {
4118
4164
  * option.
4119
4165
  */
4120
4166
  shipping_rate_id?: number;
4167
+ /**
4168
+ * The `carrier_service_id` of the chosen option when it is a carrier
4169
+ * option; send it with `shipping_rate_id`.
4170
+ */
4171
+ shipping_service_id?: string;
4172
+ /**
4173
+ * The chosen carrier option's `amount`, as the buyer saw it. When the API
4174
+ * had to requote and the price differs (or this is absent), it answers
4175
+ * `SHIPPING_QUOTE_CHANGED` with fresh options; send the new amount to
4176
+ * confirm.
4177
+ */
4178
+ shipping_quoted_amount?: number;
4121
4179
  payment_method: PaymentMethod$1;
4122
4180
  notes?: string;
4123
4181
  customer_address_id?: number;
@@ -4253,6 +4311,13 @@ type StoreByDomainInfo = StoreConfigurationInfo & {
4253
4311
  * shown there, never the live one. Absent from older APIs.
4254
4312
  */
4255
4313
  preview_slug?: string | null;
4314
+ /**
4315
+ * A short-lived (1 h) store preview token, sent back as `X-Store-Preview`
4316
+ * in place of the preview cookie. Set only on a theme's preview host,
4317
+ * p-<slug>, while the store is coming soon; null otherwise. Absent from
4318
+ * older APIs.
4319
+ */
4320
+ store_preview_token?: string | null;
4256
4321
  };
4257
4322
 
4258
4323
  declare class StoresApi {
@@ -4262,9 +4327,13 @@ declare class StoresApi {
4262
4327
  includeConfig?: boolean;
4263
4328
  includeSettings?: boolean;
4264
4329
  includeEmbeddedScripts?: boolean;
4265
- }): Promise<StoreConfigurationInfo | null>;
4330
+ }, requestOptions?: RequestOptions): Promise<StoreConfigurationInfo | null>;
4266
4331
  getBySubdomain(subdomain: string): Promise<Store | null>;
4267
- getByDomain(domain: string): Promise<StoreByDomainInfo | null>;
4332
+ /**
4333
+ * The store `domain` serves. `options` (e.g. an `x-store-preview` header,
4334
+ * which opens a coming soon store) is passed to the client only when given.
4335
+ */
4336
+ getByDomain(domain: string, options?: RequestOptions): Promise<StoreByDomainInfo | null>;
4268
4337
  }
4269
4338
 
4270
4339
  declare class ThemesApi {
@@ -4586,6 +4655,8 @@ interface ShippingCalculationRequest {
4586
4655
  method?: "standard" | "express" | "pickup" | "cod";
4587
4656
  distance_km?: number;
4588
4657
  tags?: string[];
4658
+ /** Opt in to live carrier rates alongside fixed ones. Not defaulted by the SDK. */
4659
+ include_carrier_options?: boolean;
4589
4660
  }
4590
4661
  declare const SHIPPING_DELIVERY_TYPES: readonly ["STANDARD", "EXPRESS", "SAME_DAY", "ECONOMY", "PICKUP"];
4591
4662
  type ShippingDeliveryType = (typeof SHIPPING_DELIVERY_TYPES)[number];
@@ -4621,10 +4692,24 @@ interface ShippingOption {
4621
4692
  amount: number;
4622
4693
  currency: string;
4623
4694
  rate_id: number;
4695
+ /** `<rate_id>` for fixed, `<rate_id>:<service_id>` for carrier; absent from APIs before carrier rates. */
4696
+ option_id?: string;
4624
4697
  delivery_type: ShippingDeliveryType;
4625
4698
  display_name: string;
4626
4699
  estimated_days_min?: number | null;
4627
4700
  estimated_days_max?: number | null;
4701
+ /** Set on carrier-quoted options only. */
4702
+ carrier_code?: "allingo";
4703
+ /** The carrier's own id for the chosen service. */
4704
+ carrier_service_id?: string;
4705
+ /** Carrier display name, e.g. for a label beside the price. */
4706
+ carrier_name?: string;
4707
+ /** The carrier's service, e.g. "Giao chuẩn"; tells two options of one carrier apart. */
4708
+ carrier_service_name?: string;
4709
+ /** Carrier logo, or null when the carrier has none. */
4710
+ carrier_logo_url?: string | null;
4711
+ /** Human-readable delivery estimate from the carrier, or null. */
4712
+ estimated_label?: string | null;
4628
4713
  /** Populated only when the caller asks for debug output. */
4629
4714
  zone_id?: number;
4630
4715
  zone_name?: string;
@@ -4634,6 +4719,15 @@ interface ShippingOption {
4634
4719
  rank: number;
4635
4720
  }>;
4636
4721
  }
4722
+ /** Error codes the shipping endpoints and order creation can return. */
4723
+ declare const SHIPPING_ERROR_CODES: {
4724
+ readonly QUOTE_CHANGED: "SHIPPING_QUOTE_CHANGED";
4725
+ readonly RATE_UNAVAILABLE: "ORDER_SHIPPING_RATE_UNAVAILABLE";
4726
+ };
4727
+ /** `details` of a SHIPPING_QUOTE_CHANGED error: the options now on offer. */
4728
+ interface ShippingQuoteChangedDetails {
4729
+ options: ShippingOption[];
4730
+ }
4637
4731
 
4638
4732
  declare class ShippingApi {
4639
4733
  private http;
@@ -4994,7 +5088,8 @@ interface UrlRedirect {
4994
5088
  declare class RedirectsApi {
4995
5089
  private http;
4996
5090
  constructor(http: IHttpClient);
4997
- lookup(storeRef: string, path: string): Promise<UrlRedirect | null>;
5091
+ /** `options` (request options) are passed to the client only when given. */
5092
+ lookup(storeRef: string, path: string, options?: RequestOptions): Promise<UrlRedirect | null>;
4998
5093
  }
4999
5094
 
5000
5095
  /** Mirrors AuthTokensResult in customer-auth. Nullable by design: register
@@ -5193,4 +5288,4 @@ declare function createEcomwebSdk(options: EcomwebSdkOptions): {
5193
5288
  };
5194
5289
  type EcomwebSdk = ReturnType<typeof createEcomwebSdk>;
5195
5290
 
5196
- export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerAccess, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, ENTRY_HANDLE_PATTERN, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type EngineResult, FILTERABLE_TYPES, type FileKind, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LinkValue, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MEASUREMENT_UNITS, MEDIA_TYPES, MERCHANT_ADJUSTMENT_REASONS, METAFIELD_BASE_TYPES, METAFIELD_KEY_PATTERN, METAFIELD_LIMITS, METAFIELD_OWNER_TYPES, METAFIELD_TYPE_GROUPS, METAOBJECT_REFERENCE_TYPES, METAOBJECT_TYPE_PATTERN, type MeasurementType, type MeasurementValue, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MetafieldBaseType, type MetafieldBound, type MetafieldContext, type MetafieldDefinitionShape, type MetafieldIssue, type MetafieldIssueCode, type MetafieldListType, type MetafieldOwnerType, type MetafieldType, type MetafieldTypeGroup, type MetafieldValidationKey, type MetafieldValidations, type MetafieldWrite, type MetaobjectDefinitionShape, type MetaobjectFieldShape, type MetaobjectListParams, type MetaobjectListResult, MetaobjectsApi, type MoneyValue, type MoveQuantitiesRequest, type MutationApiFunction, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRIVATE_REFERENCE_TYPES, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type PublishedStoreTheme, type QuantitiesResponse, RENDER_PREFIX, RESOURCE_REFERENCE_TYPES, RULE_FIELDS, type RatingValue, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ResolvedAsset, type ResolvedBlogPostRef, type ResolvedCollectionRef, type ResolvedImage, type ResolvedMetaobjectRef, type ResolvedMetaobjectStub, type ResolvedPageRef, type ResolvedProductRef, type ResolvedVariantRef, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RichTextBlock, type RichTextHeading, type RichTextInline, type RichTextLink, type RichTextList, type RichTextListItem, type RichTextNode, type RichTextParagraph, type RichTextRoot, type RichTextText, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreByDomainInfo, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, type StorefrontMetafield, type StorefrontMetafields, type StorefrontMetaobjectEntry, StoresApi, type SubmitReviewInvitationPayload, THEME_HEX_COLOR, type ThemeDisplayItem, type ThemeMigration, type ThemeMigrationReport, type ThemeMigrationStep, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVisibleIf, ThemesApi, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, VALIDATION_KEYS, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithMetafields, type WithSeoMetadata$3 as WithSeoMetadata, allowedCustomerAccess, allowedFileKinds, allowedValuesFor, appliedPromotionSchema, applyThemeMigration, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, baseTypeOf, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, checkMetaobjectFieldChanges, colorSchema, compareDecimal, contentPageSchema, createAuthAwareHttpClient, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, entryDisplayName, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isBlankValue, isBlankValueFor, isEditableStatus, isListType, isMetafieldType, isPublishableStatus, isRuleField, isSafeRegex, isSettingVisible, isUnpublishedStatus, isValidEntryHandle, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, measurementInBaseUnit, messageOutboxStatusSchema, metafieldIdentifier, moneySchema, normalizeDate, normalizeDateTime, normalizeDecimal, normalizeId, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseMetafieldIdentifier, parseStorageUrl, parseThemeMigration, parseThemeSchema, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, resolveThemeSettings, reviewStatusSchema, rewriteSupabaseUrl, richTextLength, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, storefrontAccessAllowed, strictUrlSchema, themeDefaults, themeMajor, themeMigrationSchema, themeSchemaSchema, themeSettings, timestampSchema, toEntryHandle, toMetafieldKey, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validateMetafieldDefinition, validateMetafieldValue, validateMetaobjectDefinition, validateMetaobjectEntry, validatePaginationMeta, validateRichText, validateThemeValues, validateValidations, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
5291
+ export { ADJUSTABLE_STATES, ADMIN_ORDER_SOURCES, type AddToCartRequest, type Address, AddressesApi, type AdjustQuantitiesRequest, type AdjustableState, type AdminOrderSource, ApiClientError, type ApiError, type ApiResponse, type AppliedPromotion, type AttributeLink, AuthApi, type AuthErrorCode, type AuthIdentity, type AuthResult, type AuthTokens, type AutocompleteParams, type BankAccount, type BaseDeleteOptions, type BaseDeleteResult, type BaseQueryParams, type BatchOrderReviewInvitationsResult, BlogApi, type BlogCategory, type BlogCategoryQueryParams, type BlogComment, type BlogCommentWithReplies, type BlogPost, type BlogPostCategory, type BlogPostQueryParams, type BlogPostStatus, type BlogPostTag, type BlogPostWithRelations, type BlogSearchParams, type BlogSearchResponse, type BlogSettings, type BlogTag, type BlogTagQueryParams, COLLECTION_RULE_MATRIX, CONDITION_TYPE_LABELS, CartApi, type CartApiItem, type CartApiResponse, CategoriesApi, type Category, type CategoryQueryParams, type CategorySearchResponse, type CategoryTree, type CategoryWithChildren, type ChangeEmailPayload, type ChangePasswordPayload, type ChangedResult, type Collection, type CollectionQueryParams, type CollectionRule, type CollectionRuleSet, type CollectionRuleSetCriteria, type CollectionSearchCriteria, CollectionsApi, ConditionType, ConditionTypeSchema, type ConditionTypeType, type ContentPage, ContentPagesApi, type CreateAddressDto, type CreateBlogCategory, type CreateBlogComment, type CreateBlogPost, type CreateBlogSettings, type CreateBlogTag, type CreateCategory, type CreateContentPage, type CreateEmbeddedScript, type CreateOrder, type CreateOrderItem, type CreateOrderItemRequest, type CreateOrderRequest, type CreateProduct, type CreateProductReview, type CreateProductReviewReply, type CreateProductVariant, type CreatePromotion, CreatePromotionSchema, type CreateStore, type CreateStoreConfig, type CreateStoreSettings, type CreateVariantOption, type CreateVariantOptionValue, type CurrentIdentity, type Customer, type CustomerAccess, type CustomerOrderFilter, type CustomerOrderSummary, CustomersApi, DEFAULT_BUCKET, DISCOUNT_METHOD_LABELS, type DeleteApiFunction, type DeletedAt, DiscountMethod, DiscountMethodSchema, type DiscountMethodType, EMAIL_COLOR_PATTERN, EMAIL_PALETTE_DEFAULTS, ENTRY_HANDLE_PATTERN, type EcomwebSdk, type EcomwebSdkOptions, type EmbeddedScript, type EmbeddedScriptPlacement, type EngineResult, FILTERABLE_TYPES, type FileKind, type FulfillmentStatus, type GoogleAuthUrl, type GuestOrderLookupParams, type GuestOrderLookupResult, type IHttpClient, INVENTORY_ADJUSTMENT_REASONS, INVENTORY_ERROR_CODES, INVENTORY_POLICIES, INVENTORY_STATES, INVENTORY_STATUS_LABELS, type Id, type ImageFormat, type ImageTransformOptions, type InitiatePaymentResult, type InsufficientInventoryItem, type IntegrationStatus, type InventoryActor, type InventoryAdjustmentReason, type InventoryErrorCode, type InventoryHistoryEntry, type InventoryImportResponse, type InventoryLevelRow, type InventoryLocation, type InventoryPolicy, type InventoryQuantities, type InventoryState, InventoryStatus, KNOWN_PAYMENT_METHODS, LEGACY_STATUS_MIGRATION_MAP, LEVEL_PROVINCE, LEVEL_WARD, type LegacyOrderStatus, type LegacyProductStatus, type LinkValue, type LocationArea, type LocationAreaQuery, type LocationAreasResponse, type LoginPayload, MAX_RULES_PER_SET, MAX_RULE_VALUE_ENTRIES, MEASUREMENT_UNITS, MEDIA_TYPES, MERCHANT_ADJUSTMENT_REASONS, METAFIELD_BASE_TYPES, METAFIELD_KEY_PATTERN, METAFIELD_LIMITS, METAFIELD_OWNER_TYPES, METAFIELD_TYPE_GROUPS, METAOBJECT_REFERENCE_TYPES, METAOBJECT_TYPE_PATTERN, type MeasurementType, type MeasurementValue, MemoryTokenStorage, MenusApi, type MerchantAdjustmentReason, type MessageOutboxStatus, type MetafieldBaseType, type MetafieldBound, type MetafieldContext, type MetafieldDefinitionShape, type MetafieldIssue, type MetafieldIssueCode, type MetafieldListType, type MetafieldOwnerType, type MetafieldType, type MetafieldTypeGroup, type MetafieldValidationKey, type MetafieldValidations, type MetafieldWrite, type MetaobjectDefinitionShape, type MetaobjectFieldShape, type MetaobjectListParams, type MetaobjectListResult, MetaobjectsApi, type MoneyValue, type MoveQuantitiesRequest, type MutationApiFunction, OBJECT_PREFIX, ORDER_ACTOR_TYPES, ORDER_EVENT_TYPES, ORDER_SHIPMENT_ERROR_CODES, ORDER_SOURCES, type OptionalTimestamp, type Order, type OrderActorType, type OrderCommentMutationResult, type OrderCreatedBy, type OrderEventType, type OrderItem, type PaymentMethod$1 as OrderPaymentMethod, type OrderReviewInvitationSummary, type OrderShipmentEvent, type OrderShipmentSummary, type OrderSource, type OrderStatus, type OrderTimelineActor, type OrderTimelineComment, type OrderTimelineCommentAuthor, type OrderTimelineEntry, type OrderTimelineEvent, type OrderTimelineResponse, type OrderWithItems, OrdersApi, PAGINATION_DEFAULTS, PRIVATE_REFERENCE_TYPES, PRODUCT_STATUS_LABELS, PROMOTION_MODE_COLORS, PROMOTION_MODE_LABELS, PROMOTION_STATUS_COLORS, PROMOTION_STATUS_LABELS, PROMOTION_TYPE_COLORS, PROMOTION_TYPE_LABELS, type PaginatedApiFunction, type PaginatedPromotionsResponse, PaginatedPromotionsResponseSchema, type PaginatedResponse, type PaginatedReviewsResponse, type PaginationMeta, type PasswordPolicy, type PaymentCredentialStatus, type PaymentMethod$1 as PaymentMethod, PaymentMethodsApi, type PaymentStateResult, type PaymentStatus, PaymentsApi, type Product, type ProductDetail, type ProductImage, type ProductQueryParams, type ProductReview, type ProductReviewFilters, type ProductReviewReply, type ProductReviewReplyFilters, type ProductReviewStats, type ProductReviewWithReplies, type ProductSearchParams, type ProductSearchResponse, type ProductService, ProductStatus, type ProductVariant, type ProductVariantCombination, type ProductVariantCombinationEntry, type ProductVariantWithCombinations, type ProductVideo, type ProductWithReviewStats, type ProductWithVariants, ProductsApi, type Promotion, type PromotionData, PromotionMode, PromotionModeSchema, type PromotionModeType, type PromotionQueryParams, PromotionQueryParamsSchema, PromotionSchema, type PromotionStatistics, PromotionStatisticsSchema, PromotionStatus, PromotionStatusSchema, type PromotionStatusType, type PromotionSuggestion, type PromotionSuggestionsResponse, PromotionType, PromotionTypeSchema, type PromotionTypeType, type PromotionWithDiscount, PromotionWithDiscountSchema, PromotionsApi, type PublicAuthConfig, type PublishedStoreTheme, type QuantitiesResponse, RENDER_PREFIX, RESOURCE_REFERENCE_TYPES, RULE_FIELDS, type RatingValue, RedirectsApi, type RegisterPayload, type RequestOptions, type ResetPasswordPayload, type ResetResult, type ResizeMode, type ResolvedAsset, type ResolvedBlogPostRef, type ResolvedCollectionRef, type ResolvedImage, type ResolvedMetaobjectRef, type ResolvedMetaobjectStub, type ResolvedPageRef, type ResolvedProductRef, type ResolvedVariantRef, type ReviewInvitationPublicData, type ReviewStatus, ReviewsApi, type RichTextBlock, type RichTextHeading, type RichTextInline, type RichTextLink, type RichTextList, type RichTextListItem, type RichTextNode, type RichTextParagraph, type RichTextRoot, type RichTextText, type RuleField, type RuleFieldSpec, type RuleOperator, type RuleOperatorSpec, type RuleValueKind, SHIPMENT_STATUSES, SHIPPING_CONDITION_TYPES, SHIPPING_DELIVERY_TYPES, SHIPPING_ERROR_CODES, SHIPPING_RATE_TYPES, SearchApi, type SearchCategory, type SearchProduct, type SentResult, type SeoMetadata$3 as SeoMetadata, type ServerComputedOrderAmounts, type SetQuantitiesRequest, type SetQuantitiesResponse, type ShipmentStatus, ShippingApi, type ShippingCalculationRequest, type ShippingConditionType, type ShippingDeliveryType, type ShippingOption, type ShippingQuoteChangedDetails, type ShippingRate, type ShippingRateType, type ShippingStatus, type ShippingZone, type SingleEntityApiFunction, type StaleQuantity, type Store, type StoreByDomainInfo, type StoreConfig, type StoreConfigurationInfo, type StoreEmailBrandingSettings, type StoreMenu, type StoreMenuItem, type PaymentMethod as StorePaymentMethod, type StoreSettings, type StoreStatus, type StoreWithRelations, type StorefrontMetafield, type StorefrontMetafields, type StorefrontMetaobjectEntry, StoresApi, type SubmitReviewInvitationPayload, THEME_HEX_COLOR, type ThemeDisplayItem, type ThemeMigration, type ThemeMigrationReport, type ThemeMigrationStep, type ThemeSchema, type ThemeSchemaGroup, type ThemeSchemaItem, type ThemeSetting, type ThemeSettingType, type ThemeSettingsOf, type ThemeValue, type ThemeValueError, type ThemeValues, type ThemeVisibleIf, ThemesApi, type Timestamp, type TocItem, type TokenStorage, UNAVAILABLE_STATES, type UnavailableState, type UpdateAddressDto, type UpdateBlogCategory, type UpdateBlogComment, type UpdateBlogPost, type UpdateBlogSettings, type UpdateBlogTag, type UpdateCartItemRequest, type UpdateCategory, type UpdateContentPage, type UpdateEmbeddedScript, type UpdateOrder, type UpdateOrderItem, type UpdateProduct, type UpdateProductReview, type UpdateProductReviewReply, type UpdateProductVariant, type UpdatePromotion, UpdatePromotionSchema, type UpdateStore, type UpdateStoreConfig, type UpdateStoreSettings, type UpdateVariantOption, type UpdateVariantOptionValue, type UpsertCustomerForAuthPayload, type UrlRedirect, VALIDATION_KEYS, type ValidatePromotionCodeRequest, type ValidatePromotionCodeResponse, type VariantOption, type VariantOptionValue, type VariantStatus, type VerifiedResult, type VerifyOtpPayload, type WithMetafields, type WithSeoMetadata$3 as WithSeoMetadata, allowedCustomerAccess, allowedFileKinds, allowedValuesFor, appliedPromotionSchema, applyThemeMigration, assetBaseUrl, attributeLinkSchema, attributeLinkValueSchema, baseDeleteOptionsSchema, baseDeleteResultSchema, baseQueryParamsSchema, baseTypeOf, blogCategorySchema, blogCommentSchema, blogCommentWithRepliesSchema, blogPostCategorySchema, blogPostSchema, blogPostStatusSchema, blogPostTagSchema, blogPostWithRelationsSchema, blogSettingsSchema, blogTagSchema, buildTransformQuery, categorySchema, categoryTreeSchema, categoryWithChildrenSchema, checkMetaobjectFieldChanges, colorSchema, compareDecimal, contentPageSchema, createAuthAwareHttpClient, createBlogCategorySchema, createBlogCommentSchema, createBlogPostSchema, createBlogSettingsSchema, createBlogTagSchema, createCategorySchema, createContentPageSchema, createEcomwebSdk, createEmbeddedScriptSchema, createOrderItemSchema, createOrderSchema, createProductReviewReplySchema, createProductReviewSchema, createProductSchema, createProductVariantSchema, createStoreConfigSchema, createStoreSchema, createStoreSettingsSchema, createVariantOptionSchema, createVariantOptionValueSchema, customerOrderSummarySchema, decimalSchema, deletedAtSchema, dimensionsSchema, emailBrandingSchema, emailBrandingShape, emailSchema, embeddedScriptPlacementSchema, embeddedScriptSchema, ensureSuccess, entryDisplayName, fromObjectPublicUrlToRender, fulfillmentStatusSchema, idSchema, integrationStatusSchema, inventoryStatusSchema, isBlankValue, isBlankValueFor, isEditableStatus, isListType, isMetafieldType, isPublishableStatus, isRuleField, isSafeRegex, isSettingVisible, isUnpublishedStatus, isValidEntryHandle, jsonSchema, legacyOrderStatusSchema, legacyProductStatusSchema, legalLinksSchema, measurementInBaseUnit, messageOutboxStatusSchema, metafieldIdentifier, moneySchema, normalizeDate, normalizeDateTime, normalizeDecimal, normalizeId, onHand, operatorsForField, optionalTimestampSchema, optionalUrlSchema, orderItemSchema, orderSchema, orderStatusSchema, orderWithItemsSchema, paginatedResponseSchema, paginationMetaSchema, paginationSchema, parseMetafieldIdentifier, parseStorageUrl, parseThemeMigration, parseThemeSchema, paymentMethodSchema, paymentStatusSchema, phoneSchema, positionOrderSchema, productReviewFiltersSchema, productReviewReplyFiltersSchema, productReviewReplySchema, productReviewSchema, productReviewStatsSchema, productReviewWithRepliesSchema, productSchema, productStatusSchema, productVariantCombinationEntrySchema, productVariantCombinationSchema, productVariantSchema, productVariantWithCombinationsSchema, productWithReviewStatsSchema, productWithVariantsAndReviewStatsSchema, productWithVariantsSchema, resolveAssetUrl, resolveThemeSettings, reviewStatusSchema, rewriteSupabaseUrl, richTextLength, safeParseBaseQueryParams, safeParsePaginationMeta, shippingStatusSchema, slugSchema, sortOrderSchema, storeConfigSchema, storeIdSchema, storeSchema, storeSettingsSchema, storeStatusSchema, storeWithRelationsSchema, storefrontAccessAllowed, strictUrlSchema, themeDefaults, themeMajor, themeMigrationSchema, themeSchemaSchema, themeSettings, timestampSchema, toEntryHandle, toMetafieldKey, toObjectUrl, toRenderUrl, tocItemSchema, transformationsEnabled, unavailable, unwrap, unwrapOrNull, updateBlogCategorySchema, updateBlogCommentSchema, updateBlogPostSchema, updateBlogSettingsSchema, updateBlogTagSchema, updateCategorySchema, updateContentPageSchema, updateEmbeddedScriptSchema, updateOrderItemSchema, updateOrderSchema, updateProductReviewReplySchema, updateProductReviewSchema, updateProductSchema, updateProductVariantSchema, updateStoreConfigSchema, updateStoreSchema, updateStoreSettingsSchema, updateVariantOptionSchema, updateVariantOptionValueSchema, urlSchema, uuidSchema, validateMetafieldDefinition, validateMetafieldValue, validateMetaobjectDefinition, validateMetaobjectEntry, validatePaginationMeta, validateRichText, validateThemeValues, validateValidations, valueKindFor, variantOptionSchema, variantOptionValueSchema, variantStatusSchema };
package/dist/index.js CHANGED
@@ -877,6 +877,22 @@ var customerOrderSummarySchema = z10.object({
877
877
  last_order_date: z10.iso.datetime().optional().nullable()
878
878
  });
879
879
 
880
+ // src/types/shipment.ts
881
+ var SHIPMENT_STATUSES = [
882
+ "booked",
883
+ "picked_up",
884
+ "in_transit",
885
+ "out_for_delivery",
886
+ "delivered",
887
+ "failed",
888
+ "returned",
889
+ "cancelled"
890
+ ];
891
+ var ORDER_SHIPMENT_ERROR_CODES = {
892
+ /** Cancelling is refused because a carrier shipment is already in progress. */
893
+ CANCEL_BLOCKED_BY_SHIPMENT: "ORDER_CANCEL_BLOCKED_BY_SHIPMENT"
894
+ };
895
+
880
896
  // src/types/order-timeline.ts
881
897
  var ORDER_EVENT_TYPES = [
882
898
  "placed",
@@ -884,14 +900,18 @@ var ORDER_EVENT_TYPES = [
884
900
  "fulfillment_status_changed",
885
901
  "shipping_status_changed",
886
902
  "payment_status_changed",
887
- "tracking_number_updated"
903
+ "tracking_number_updated",
904
+ "shipment_booked",
905
+ "shipment_cancelled",
906
+ "shipment_failed"
888
907
  ];
889
908
  var ORDER_ACTOR_TYPES = [
890
909
  "staff",
891
910
  "customer",
892
911
  "api_key",
893
912
  "gateway",
894
- "system"
913
+ "system",
914
+ "carrier"
895
915
  ];
896
916
 
897
917
  // src/types/promotion.ts
@@ -3157,16 +3177,15 @@ var StoresApi = class {
3157
3177
  constructor(http) {
3158
3178
  this.http = http;
3159
3179
  }
3160
- async getById(storeRef, options) {
3180
+ async getById(storeRef, options, requestOptions) {
3161
3181
  const params = new URLSearchParams();
3162
3182
  if (options?.includeConfig ?? true) params.set("include_config", "1");
3163
3183
  if (options?.includeSettings ?? true) params.set("include_settings", "1");
3164
3184
  if (options?.includeEmbeddedScripts ?? true)
3165
3185
  params.set("include_embedded_scripts", "1");
3166
3186
  const qs = params.toString();
3167
- const res = await this.http.get(
3168
- `/public/stores/${storeRef}${qs ? `?${qs}` : ""}`
3169
- );
3187
+ const url = `/public/stores/${storeRef}${qs ? `?${qs}` : ""}`;
3188
+ const res = requestOptions ? await this.http.get(url, requestOptions) : await this.http.get(url);
3170
3189
  return unwrapOrNull(res);
3171
3190
  }
3172
3191
  async getBySubdomain(subdomain) {
@@ -3175,10 +3194,13 @@ var StoresApi = class {
3175
3194
  );
3176
3195
  return unwrapOrNull(res);
3177
3196
  }
3178
- async getByDomain(domain) {
3179
- const res = await this.http.get(
3180
- `/public/stores/domain/${domain}`
3181
- );
3197
+ /**
3198
+ * The store `domain` serves. `options` (e.g. an `x-store-preview` header,
3199
+ * which opens a coming soon store) is passed to the client only when given.
3200
+ */
3201
+ async getByDomain(domain, options) {
3202
+ const url = `/public/stores/domain/${domain}`;
3203
+ const res = options ? await this.http.get(url, options) : await this.http.get(url);
3182
3204
  return unwrapOrNull(res);
3183
3205
  }
3184
3206
  };
@@ -3522,12 +3544,12 @@ var RedirectsApi = class {
3522
3544
  constructor(http) {
3523
3545
  this.http = http;
3524
3546
  }
3525
- async lookup(storeRef, path) {
3547
+ /** `options` (request options) are passed to the client only when given. */
3548
+ async lookup(storeRef, path, options) {
3526
3549
  const params = new URLSearchParams();
3527
3550
  params.set("path", path);
3528
- const res = await this.http.get(
3529
- `/public/stores/${storeRef}/url-redirects/lookup?${params.toString()}`
3530
- );
3551
+ const url = `/public/stores/${storeRef}/url-redirects/lookup?${params.toString()}`;
3552
+ const res = options ? await this.http.get(url, options) : await this.http.get(url);
3531
3553
  const result = unwrapOrNull(res);
3532
3554
  return result?.data ?? null;
3533
3555
  }
@@ -3878,6 +3900,10 @@ var SHIPPING_CONDITION_TYPES = [
3878
3900
  "ORDER_VALUE",
3879
3901
  "WEIGHT"
3880
3902
  ];
3903
+ var SHIPPING_ERROR_CODES = {
3904
+ QUOTE_CHANGED: "SHIPPING_QUOTE_CHANGED",
3905
+ RATE_UNAVAILABLE: "ORDER_SHIPPING_RATE_UNAVAILABLE"
3906
+ };
3881
3907
 
3882
3908
  // src/index.ts
3883
3909
  function createEcomwebSdk(options) {
@@ -3958,6 +3984,7 @@ export {
3958
3984
  OBJECT_PREFIX,
3959
3985
  ORDER_ACTOR_TYPES,
3960
3986
  ORDER_EVENT_TYPES,
3987
+ ORDER_SHIPMENT_ERROR_CODES,
3961
3988
  ORDER_SOURCES,
3962
3989
  OrdersApi,
3963
3990
  PAGINATION_DEFAULTS,
@@ -3990,8 +4017,10 @@ export {
3990
4017
  RULE_FIELDS,
3991
4018
  RedirectsApi,
3992
4019
  ReviewsApi,
4020
+ SHIPMENT_STATUSES,
3993
4021
  SHIPPING_CONDITION_TYPES,
3994
4022
  SHIPPING_DELIVERY_TYPES,
4023
+ SHIPPING_ERROR_CODES,
3995
4024
  SHIPPING_RATE_TYPES,
3996
4025
  SearchApi,
3997
4026
  ShippingApi,