@retaila/shared-types 2.0.8 → 2.0.10
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.mts +89 -2
- package/dist/index.d.ts +89 -2
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -401,6 +401,8 @@ interface AccountDeliveryOption {
|
|
|
401
401
|
deliveryType: DeliveryType;
|
|
402
402
|
demo: boolean;
|
|
403
403
|
hideAccountBranchAddress: boolean;
|
|
404
|
+
/** When true, estimated delivery times are calculated by AI and shown to customers at checkout */
|
|
405
|
+
showEstimatedDeliveryTime: boolean;
|
|
404
406
|
createdAt: Date;
|
|
405
407
|
updatedAt: Date;
|
|
406
408
|
deletedAt?: Date | null;
|
|
@@ -409,6 +411,11 @@ interface AccountDeliveryOption {
|
|
|
409
411
|
integration?: AccountIntegration | null;
|
|
410
412
|
price?: number | null;
|
|
411
413
|
accountBranch?: AccountBranch | null;
|
|
414
|
+
/** Computed by api-public when listing delivery options; ISO date strings */
|
|
415
|
+
estimatedDelivery?: {
|
|
416
|
+
start: string;
|
|
417
|
+
end: string;
|
|
418
|
+
};
|
|
412
419
|
}
|
|
413
420
|
declare enum AccountDeliveryOptionPriceLogic {
|
|
414
421
|
FIXED = "FIXED",
|
|
@@ -467,6 +474,7 @@ interface CreateAccountDeliveryOptionDTO {
|
|
|
467
474
|
deliveryType: DeliveryType;
|
|
468
475
|
deliveryZones?: DeliveryZoneInput[];
|
|
469
476
|
data?: Record<string, unknown>;
|
|
477
|
+
showEstimatedDeliveryTime?: boolean;
|
|
470
478
|
}
|
|
471
479
|
interface UpdateAccountDeliveryOptionDTO {
|
|
472
480
|
accountBranchId: string;
|
|
@@ -478,6 +486,7 @@ interface UpdateAccountDeliveryOptionDTO {
|
|
|
478
486
|
deliveryType?: DeliveryType;
|
|
479
487
|
deliveryZones?: DeliveryZoneInput[];
|
|
480
488
|
data?: Record<string, unknown>;
|
|
489
|
+
showEstimatedDeliveryTime?: boolean;
|
|
481
490
|
}
|
|
482
491
|
/** Rule types for estimated delivery calculation */
|
|
483
492
|
declare enum DeliveryOptionRuleType {
|
|
@@ -487,7 +496,11 @@ declare enum DeliveryOptionRuleType {
|
|
|
487
496
|
PICKUP_READY_HOURS = "PICKUP_READY_HOURS",
|
|
488
497
|
FIXED_OFFSET_DAYS = "FIXED_OFFSET_DAYS",
|
|
489
498
|
/** ISO weekday numbers (1=Mon..7=Sun) that count as operating days */
|
|
490
|
-
BUSINESS_DAYS = "BUSINESS_DAYS"
|
|
499
|
+
BUSINESS_DAYS = "BUSINESS_DAYS",
|
|
500
|
+
/** Delivery time-of-day window inferred by AI from historical orders */
|
|
501
|
+
DELIVERY_HOURS = "DELIVERY_HOURS",
|
|
502
|
+
/** Extra days added to the pessimistic end when volume is high */
|
|
503
|
+
BUFFER_SAFETY_MARGIN = "BUFFER_SAFETY_MARGIN"
|
|
491
504
|
}
|
|
492
505
|
interface AccountDeliveryOptionRule {
|
|
493
506
|
id: string;
|
|
@@ -535,6 +548,16 @@ interface BusinessDaysParams {
|
|
|
535
548
|
/** ISO weekday numbers: 1=Monday … 7=Sunday */
|
|
536
549
|
days: number[];
|
|
537
550
|
}
|
|
551
|
+
interface DeliveryHoursParams {
|
|
552
|
+
/** Start of delivery window "HH:mm" */
|
|
553
|
+
start: string;
|
|
554
|
+
/** End of delivery window "HH:mm" */
|
|
555
|
+
end: string;
|
|
556
|
+
}
|
|
557
|
+
interface BufferSafetyMarginParams {
|
|
558
|
+
/** Extra days added to the pessimistic (end) delivery date */
|
|
559
|
+
extraDays: number;
|
|
560
|
+
}
|
|
538
561
|
/** Unified delivery config shape used by the backoffice form */
|
|
539
562
|
interface UnifiedDeliveryConfig {
|
|
540
563
|
businessDays: number[];
|
|
@@ -599,6 +622,40 @@ declare enum AccountBranchScheduleDay {
|
|
|
599
622
|
SUNDAY = "SUNDAY"
|
|
600
623
|
}
|
|
601
624
|
|
|
625
|
+
declare enum AccountEmailDomainStatus {
|
|
626
|
+
PENDING = "PENDING",
|
|
627
|
+
DNS_PENDING = "DNS_PENDING",
|
|
628
|
+
ACTIVE = "ACTIVE",
|
|
629
|
+
INACTIVE = "INACTIVE"
|
|
630
|
+
}
|
|
631
|
+
interface AccountEmailDomain {
|
|
632
|
+
id: string;
|
|
633
|
+
accountId: string;
|
|
634
|
+
accountDomainId: string;
|
|
635
|
+
domain: string;
|
|
636
|
+
status: AccountEmailDomainStatus;
|
|
637
|
+
activatedAt: Date | null;
|
|
638
|
+
createdAt: Date;
|
|
639
|
+
updatedAt: Date;
|
|
640
|
+
deletedAt: Date | null;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
interface AccountMailbox {
|
|
644
|
+
id: string;
|
|
645
|
+
accountId: string;
|
|
646
|
+
accountEmailDomainId: string;
|
|
647
|
+
localPart: string;
|
|
648
|
+
email: string;
|
|
649
|
+
displayName: string;
|
|
650
|
+
mayReceive: boolean;
|
|
651
|
+
maySend: boolean;
|
|
652
|
+
/** Storage limit in megabytes. Default 500. */
|
|
653
|
+
storageLimitMb: number;
|
|
654
|
+
createdAt: Date;
|
|
655
|
+
updatedAt: Date;
|
|
656
|
+
deletedAt: Date | null;
|
|
657
|
+
}
|
|
658
|
+
|
|
602
659
|
interface StatusInfo {
|
|
603
660
|
text: string;
|
|
604
661
|
class: string;
|
|
@@ -3477,4 +3534,34 @@ interface AccountServiceBillingCharge {
|
|
|
3477
3534
|
deletedAt?: Date | null;
|
|
3478
3535
|
}
|
|
3479
3536
|
|
|
3480
|
-
|
|
3537
|
+
declare enum HolidayType {
|
|
3538
|
+
/** Business is expected to be closed. Default: excluded from delivery calculation. */
|
|
3539
|
+
NON_WORKING = "NON_WORKING",
|
|
3540
|
+
/** Business may choose to work. Default: included in delivery calculation. */
|
|
3541
|
+
WORKING = "WORKING"
|
|
3542
|
+
}
|
|
3543
|
+
interface Holiday {
|
|
3544
|
+
id: string;
|
|
3545
|
+
/** ISO date string "YYYY-MM-DD" */
|
|
3546
|
+
date: string;
|
|
3547
|
+
/** ISO 3166-1 alpha-2 country code (e.g. "UY", "AR") */
|
|
3548
|
+
country: string;
|
|
3549
|
+
name: string;
|
|
3550
|
+
type: HolidayType;
|
|
3551
|
+
createdAt: Date;
|
|
3552
|
+
updatedAt: Date;
|
|
3553
|
+
}
|
|
3554
|
+
interface AccountHolidaySchedule {
|
|
3555
|
+
id: string;
|
|
3556
|
+
accountId: string;
|
|
3557
|
+
holidayId: string;
|
|
3558
|
+
/** Whether the account will operate on this holiday */
|
|
3559
|
+
isOpen: boolean;
|
|
3560
|
+
respondedAt: Date;
|
|
3561
|
+
/** Tracks whether a reminder has already been sent */
|
|
3562
|
+
reminderSentAt?: Date | null;
|
|
3563
|
+
createdAt: Date;
|
|
3564
|
+
updatedAt: Date;
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, type AccountDeliveryOptionRule, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountEmailDomain, AccountEmailDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountHolidaySchedule, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountMailbox, type AccountPaymentMethod, AccountPaymentMethodStatus, type AccountServiceBillingCharge, type AccountServicePlan, AccountServicePlanStatus, AccountStatus, type AccountUserRoleLink, type ActiveSession, type Address, type AdminOrderStatusChangeDto, AiCreditSource, AiCreditTransactionReason, AiCreditType, type AiCreditsBalance, type AnalyticsEvent, AnalyticsEventType, type AnalyticsFunnelStep, type AnalyticsOverview, type AnalyticsPageview, type AnalyticsPagination, type AnalyticsQueryParams, type AnalyticsSession, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, BillingInterval, type BufferSafetyMarginParams, type BusinessDaysParams, type ButtonStyle, COUNTRY_DEFAULTS, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, type CampaignData, type CampaignPerformance, CampaignStatus, type Cart, type CartConfirmDto, type CartDeliveryMethod, type CartDeliveryMethodAdjustment, type CartDeliveryMethodCreateData, type CartDeliveryMethodCreateDto, type CartDeliveryMethodFindParams, type CartDeliveryMethodResponse, type CartDeliveryMethodUpdateData, type CartDeliveryMethodUpdateDto, CartDeliveryType, type CartItem, type CartItemAddDto, type CartItemAttributeDetail, CartItemErrorCode, type CartItemRemoveDto, type CartItemUpdateDto, type CartItemValidation, type CartLineItemAdjustment, type CartPromotion, CartSource, CartStatus, type CartUpdateDto, type ChargeSellerAllocation, ChargeStatus, ChargeType, type Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CountryDefaultBranchAddress, type CountryDefaultConfig, type CountryDefaultTax, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateDeliveryOptionRuleDTO, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, type CustomerNotificationConfig, CustomerStatus, type CustomerUpsertDto, DayOfWeek, type DeliveryDaysParams, type DeliveryHoursParams, DeliveryOptionRuleType, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, DisplayOrderStatus, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, type FixedOffsetDaysParams, type Fulfillment, type FulfillmentDeliveryOption, type FulfillmentItem, type FulfillmentLabel, type FulfillmentLabelCreateData, type FulfillmentLabelUpdateData, type FulfillmentProviderAdapter, type FulfillmentProviderContext, type FulfillmentProviderCreateInput, type FulfillmentProviderCreateOutput, type FulfillmentProviderKey, type FulfillmentProviderProcessWebhookInput, type FulfillmentProviderProcessWebhookOutput, type FulfillmentRecollectionCapabilities, type FulfillmentRecollectionConfig, type FulfillmentRecollectionMode, type FulfillmentRecollectionSchedule, FulfillmentStatus, type FulfillmentTrackingEvent, type FunnelData, FunnelStep, type FunnelStepData, type GeoZone, type GeoZoneInput, GeoZoneStatus, type HistoricalDataPoint, type Holiday, HolidayType, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type InternalNotificationConfig, InternalNotificationType, type LinkButtonStyle, type MapPosition, type Media, MediaType, NavigationItemType, type NavigationMenuConfig, type NavigationMenuItem, type NeutralColorScale, type NextStatusAction, type Order, type OrderCreateFromCartDto, type OrderDeliveryMethod, type OrderDeliveryMethodAdjustment, type OrderDeliveryMethodCreateData, type OrderDeliveryMethodUpdateData, OrderDeliveryType, type OrderItem, type OrderItemSnapshot, type OrderLineItemAdjustment, OrderPaymentStatus, type OrderPromotion, OrderSource, OrderStatus, type PageData, PageType, type Payment, type PaymentCardBrand, PaymentCardBrandKey, type PaymentConversion, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Permission, type Phone, type PickupLocation, type PickupReadyHoursParams, type ProcessingDaysParams, type Product, type ProductAnalyticsData, type ProductAnalyticsItem, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, ProductVariantStatus, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodInput, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionListFilters, type PromotionPromotionRule, type PromotionRule, type PromotionRuleInput, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type RealtimeAnalytics, type RecentEvent, type Role, type RolePermissionLink, type RoundingConfig, RoundingMethod, RoundingRule, SUPPORTED_COUNTRIES, type SameDayCutoffParams, type Seller, type SellerPeriodBalance, type ServiceBillingPlan, type ServiceBillingPlanLimits, type ServiceBillingPlanPrice, type ServiceBillingPlanSpec, type ServiceBillingPlanSpecCategory, type ServiceBillingPlanSpecItem, type SessionHeartbeatDto, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreComponentTemplate, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationFooterZone, type StoreCustomizationHeaderZone, type StoreCustomizationLayout, type StoreCustomizationLayoutComponent, type StoreCustomizationLayoutLegacy, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type StoreSettings, type StoreTemplate, type StoreTemplateMocks, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type SupportedCountryCode, type SurfaceColors, type ThemeBorderRadius, type ThemeBorderWidth, type ThemeBorders, type ThemeButtonSize, type ThemeButtonSizes, type ThemeButtonVariant, type ThemeButtonVariants, type ThemeButtons, type ThemeColorPalette, type ThemeConfig, type ThemeFonts, type ThemeProductCard, type ThemeShadows, type ThemeSpacing, type ThemeTypography, type ThemeTypographySizes, type ThemeTypographyStyles, type TopPagesData, type TrackEventDto, type TrackPageviewDto, TrafficSource, type TrafficSourceItem, type TrafficSourcesData, type TypographyStyle, type UnifiedDeliveryConfig, type UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateDeliveryOptionRuleDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getDisplayOrderStatus, getDisplayOrderStatusInfo, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern };
|
package/dist/index.d.ts
CHANGED
|
@@ -401,6 +401,8 @@ interface AccountDeliveryOption {
|
|
|
401
401
|
deliveryType: DeliveryType;
|
|
402
402
|
demo: boolean;
|
|
403
403
|
hideAccountBranchAddress: boolean;
|
|
404
|
+
/** When true, estimated delivery times are calculated by AI and shown to customers at checkout */
|
|
405
|
+
showEstimatedDeliveryTime: boolean;
|
|
404
406
|
createdAt: Date;
|
|
405
407
|
updatedAt: Date;
|
|
406
408
|
deletedAt?: Date | null;
|
|
@@ -409,6 +411,11 @@ interface AccountDeliveryOption {
|
|
|
409
411
|
integration?: AccountIntegration | null;
|
|
410
412
|
price?: number | null;
|
|
411
413
|
accountBranch?: AccountBranch | null;
|
|
414
|
+
/** Computed by api-public when listing delivery options; ISO date strings */
|
|
415
|
+
estimatedDelivery?: {
|
|
416
|
+
start: string;
|
|
417
|
+
end: string;
|
|
418
|
+
};
|
|
412
419
|
}
|
|
413
420
|
declare enum AccountDeliveryOptionPriceLogic {
|
|
414
421
|
FIXED = "FIXED",
|
|
@@ -467,6 +474,7 @@ interface CreateAccountDeliveryOptionDTO {
|
|
|
467
474
|
deliveryType: DeliveryType;
|
|
468
475
|
deliveryZones?: DeliveryZoneInput[];
|
|
469
476
|
data?: Record<string, unknown>;
|
|
477
|
+
showEstimatedDeliveryTime?: boolean;
|
|
470
478
|
}
|
|
471
479
|
interface UpdateAccountDeliveryOptionDTO {
|
|
472
480
|
accountBranchId: string;
|
|
@@ -478,6 +486,7 @@ interface UpdateAccountDeliveryOptionDTO {
|
|
|
478
486
|
deliveryType?: DeliveryType;
|
|
479
487
|
deliveryZones?: DeliveryZoneInput[];
|
|
480
488
|
data?: Record<string, unknown>;
|
|
489
|
+
showEstimatedDeliveryTime?: boolean;
|
|
481
490
|
}
|
|
482
491
|
/** Rule types for estimated delivery calculation */
|
|
483
492
|
declare enum DeliveryOptionRuleType {
|
|
@@ -487,7 +496,11 @@ declare enum DeliveryOptionRuleType {
|
|
|
487
496
|
PICKUP_READY_HOURS = "PICKUP_READY_HOURS",
|
|
488
497
|
FIXED_OFFSET_DAYS = "FIXED_OFFSET_DAYS",
|
|
489
498
|
/** ISO weekday numbers (1=Mon..7=Sun) that count as operating days */
|
|
490
|
-
BUSINESS_DAYS = "BUSINESS_DAYS"
|
|
499
|
+
BUSINESS_DAYS = "BUSINESS_DAYS",
|
|
500
|
+
/** Delivery time-of-day window inferred by AI from historical orders */
|
|
501
|
+
DELIVERY_HOURS = "DELIVERY_HOURS",
|
|
502
|
+
/** Extra days added to the pessimistic end when volume is high */
|
|
503
|
+
BUFFER_SAFETY_MARGIN = "BUFFER_SAFETY_MARGIN"
|
|
491
504
|
}
|
|
492
505
|
interface AccountDeliveryOptionRule {
|
|
493
506
|
id: string;
|
|
@@ -535,6 +548,16 @@ interface BusinessDaysParams {
|
|
|
535
548
|
/** ISO weekday numbers: 1=Monday … 7=Sunday */
|
|
536
549
|
days: number[];
|
|
537
550
|
}
|
|
551
|
+
interface DeliveryHoursParams {
|
|
552
|
+
/** Start of delivery window "HH:mm" */
|
|
553
|
+
start: string;
|
|
554
|
+
/** End of delivery window "HH:mm" */
|
|
555
|
+
end: string;
|
|
556
|
+
}
|
|
557
|
+
interface BufferSafetyMarginParams {
|
|
558
|
+
/** Extra days added to the pessimistic (end) delivery date */
|
|
559
|
+
extraDays: number;
|
|
560
|
+
}
|
|
538
561
|
/** Unified delivery config shape used by the backoffice form */
|
|
539
562
|
interface UnifiedDeliveryConfig {
|
|
540
563
|
businessDays: number[];
|
|
@@ -599,6 +622,40 @@ declare enum AccountBranchScheduleDay {
|
|
|
599
622
|
SUNDAY = "SUNDAY"
|
|
600
623
|
}
|
|
601
624
|
|
|
625
|
+
declare enum AccountEmailDomainStatus {
|
|
626
|
+
PENDING = "PENDING",
|
|
627
|
+
DNS_PENDING = "DNS_PENDING",
|
|
628
|
+
ACTIVE = "ACTIVE",
|
|
629
|
+
INACTIVE = "INACTIVE"
|
|
630
|
+
}
|
|
631
|
+
interface AccountEmailDomain {
|
|
632
|
+
id: string;
|
|
633
|
+
accountId: string;
|
|
634
|
+
accountDomainId: string;
|
|
635
|
+
domain: string;
|
|
636
|
+
status: AccountEmailDomainStatus;
|
|
637
|
+
activatedAt: Date | null;
|
|
638
|
+
createdAt: Date;
|
|
639
|
+
updatedAt: Date;
|
|
640
|
+
deletedAt: Date | null;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
interface AccountMailbox {
|
|
644
|
+
id: string;
|
|
645
|
+
accountId: string;
|
|
646
|
+
accountEmailDomainId: string;
|
|
647
|
+
localPart: string;
|
|
648
|
+
email: string;
|
|
649
|
+
displayName: string;
|
|
650
|
+
mayReceive: boolean;
|
|
651
|
+
maySend: boolean;
|
|
652
|
+
/** Storage limit in megabytes. Default 500. */
|
|
653
|
+
storageLimitMb: number;
|
|
654
|
+
createdAt: Date;
|
|
655
|
+
updatedAt: Date;
|
|
656
|
+
deletedAt: Date | null;
|
|
657
|
+
}
|
|
658
|
+
|
|
602
659
|
interface StatusInfo {
|
|
603
660
|
text: string;
|
|
604
661
|
class: string;
|
|
@@ -3477,4 +3534,34 @@ interface AccountServiceBillingCharge {
|
|
|
3477
3534
|
deletedAt?: Date | null;
|
|
3478
3535
|
}
|
|
3479
3536
|
|
|
3480
|
-
|
|
3537
|
+
declare enum HolidayType {
|
|
3538
|
+
/** Business is expected to be closed. Default: excluded from delivery calculation. */
|
|
3539
|
+
NON_WORKING = "NON_WORKING",
|
|
3540
|
+
/** Business may choose to work. Default: included in delivery calculation. */
|
|
3541
|
+
WORKING = "WORKING"
|
|
3542
|
+
}
|
|
3543
|
+
interface Holiday {
|
|
3544
|
+
id: string;
|
|
3545
|
+
/** ISO date string "YYYY-MM-DD" */
|
|
3546
|
+
date: string;
|
|
3547
|
+
/** ISO 3166-1 alpha-2 country code (e.g. "UY", "AR") */
|
|
3548
|
+
country: string;
|
|
3549
|
+
name: string;
|
|
3550
|
+
type: HolidayType;
|
|
3551
|
+
createdAt: Date;
|
|
3552
|
+
updatedAt: Date;
|
|
3553
|
+
}
|
|
3554
|
+
interface AccountHolidaySchedule {
|
|
3555
|
+
id: string;
|
|
3556
|
+
accountId: string;
|
|
3557
|
+
holidayId: string;
|
|
3558
|
+
/** Whether the account will operate on this holiday */
|
|
3559
|
+
isOpen: boolean;
|
|
3560
|
+
respondedAt: Date;
|
|
3561
|
+
/** Tracks whether a reminder has already been sent */
|
|
3562
|
+
reminderSentAt?: Date | null;
|
|
3563
|
+
createdAt: Date;
|
|
3564
|
+
updatedAt: Date;
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, type AccountDeliveryOptionRule, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountEmailDomain, AccountEmailDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountHolidaySchedule, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountMailbox, type AccountPaymentMethod, AccountPaymentMethodStatus, type AccountServiceBillingCharge, type AccountServicePlan, AccountServicePlanStatus, AccountStatus, type AccountUserRoleLink, type ActiveSession, type Address, type AdminOrderStatusChangeDto, AiCreditSource, AiCreditTransactionReason, AiCreditType, type AiCreditsBalance, type AnalyticsEvent, AnalyticsEventType, type AnalyticsFunnelStep, type AnalyticsOverview, type AnalyticsPageview, type AnalyticsPagination, type AnalyticsQueryParams, type AnalyticsSession, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, BillingInterval, type BufferSafetyMarginParams, type BusinessDaysParams, type ButtonStyle, COUNTRY_DEFAULTS, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, type CampaignData, type CampaignPerformance, CampaignStatus, type Cart, type CartConfirmDto, type CartDeliveryMethod, type CartDeliveryMethodAdjustment, type CartDeliveryMethodCreateData, type CartDeliveryMethodCreateDto, type CartDeliveryMethodFindParams, type CartDeliveryMethodResponse, type CartDeliveryMethodUpdateData, type CartDeliveryMethodUpdateDto, CartDeliveryType, type CartItem, type CartItemAddDto, type CartItemAttributeDetail, CartItemErrorCode, type CartItemRemoveDto, type CartItemUpdateDto, type CartItemValidation, type CartLineItemAdjustment, type CartPromotion, CartSource, CartStatus, type CartUpdateDto, type ChargeSellerAllocation, ChargeStatus, ChargeType, type Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CountryDefaultBranchAddress, type CountryDefaultConfig, type CountryDefaultTax, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateDeliveryOptionRuleDTO, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, type CustomerNotificationConfig, CustomerStatus, type CustomerUpsertDto, DayOfWeek, type DeliveryDaysParams, type DeliveryHoursParams, DeliveryOptionRuleType, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, DisplayOrderStatus, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, type FixedOffsetDaysParams, type Fulfillment, type FulfillmentDeliveryOption, type FulfillmentItem, type FulfillmentLabel, type FulfillmentLabelCreateData, type FulfillmentLabelUpdateData, type FulfillmentProviderAdapter, type FulfillmentProviderContext, type FulfillmentProviderCreateInput, type FulfillmentProviderCreateOutput, type FulfillmentProviderKey, type FulfillmentProviderProcessWebhookInput, type FulfillmentProviderProcessWebhookOutput, type FulfillmentRecollectionCapabilities, type FulfillmentRecollectionConfig, type FulfillmentRecollectionMode, type FulfillmentRecollectionSchedule, FulfillmentStatus, type FulfillmentTrackingEvent, type FunnelData, FunnelStep, type FunnelStepData, type GeoZone, type GeoZoneInput, GeoZoneStatus, type HistoricalDataPoint, type Holiday, HolidayType, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type InternalNotificationConfig, InternalNotificationType, type LinkButtonStyle, type MapPosition, type Media, MediaType, NavigationItemType, type NavigationMenuConfig, type NavigationMenuItem, type NeutralColorScale, type NextStatusAction, type Order, type OrderCreateFromCartDto, type OrderDeliveryMethod, type OrderDeliveryMethodAdjustment, type OrderDeliveryMethodCreateData, type OrderDeliveryMethodUpdateData, OrderDeliveryType, type OrderItem, type OrderItemSnapshot, type OrderLineItemAdjustment, OrderPaymentStatus, type OrderPromotion, OrderSource, OrderStatus, type PageData, PageType, type Payment, type PaymentCardBrand, PaymentCardBrandKey, type PaymentConversion, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Permission, type Phone, type PickupLocation, type PickupReadyHoursParams, type ProcessingDaysParams, type Product, type ProductAnalyticsData, type ProductAnalyticsItem, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, ProductVariantStatus, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodInput, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionListFilters, type PromotionPromotionRule, type PromotionRule, type PromotionRuleInput, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type RealtimeAnalytics, type RecentEvent, type Role, type RolePermissionLink, type RoundingConfig, RoundingMethod, RoundingRule, SUPPORTED_COUNTRIES, type SameDayCutoffParams, type Seller, type SellerPeriodBalance, type ServiceBillingPlan, type ServiceBillingPlanLimits, type ServiceBillingPlanPrice, type ServiceBillingPlanSpec, type ServiceBillingPlanSpecCategory, type ServiceBillingPlanSpecItem, type SessionHeartbeatDto, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreComponentTemplate, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationFooterZone, type StoreCustomizationHeaderZone, type StoreCustomizationLayout, type StoreCustomizationLayoutComponent, type StoreCustomizationLayoutLegacy, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type StoreSettings, type StoreTemplate, type StoreTemplateMocks, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type SupportedCountryCode, type SurfaceColors, type ThemeBorderRadius, type ThemeBorderWidth, type ThemeBorders, type ThemeButtonSize, type ThemeButtonSizes, type ThemeButtonVariant, type ThemeButtonVariants, type ThemeButtons, type ThemeColorPalette, type ThemeConfig, type ThemeFonts, type ThemeProductCard, type ThemeShadows, type ThemeSpacing, type ThemeTypography, type ThemeTypographySizes, type ThemeTypographyStyles, type TopPagesData, type TrackEventDto, type TrackPageviewDto, TrafficSource, type TrafficSourceItem, type TrafficSourcesData, type TypographyStyle, type UnifiedDeliveryConfig, type UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateDeliveryOptionRuleDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getDisplayOrderStatus, getDisplayOrderStatusInfo, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern };
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
AccountDeliveryOptionStatus: () => AccountDeliveryOptionStatus,
|
|
29
29
|
AccountDeliveryOptionZoneStatus: () => AccountDeliveryOptionZoneStatus,
|
|
30
30
|
AccountDomainStatus: () => AccountDomainStatus,
|
|
31
|
+
AccountEmailDomainStatus: () => AccountEmailDomainStatus,
|
|
31
32
|
AccountExchangeRateType: () => AccountExchangeRateType,
|
|
32
33
|
AccountIntegrationConnectionStatus: () => AccountIntegrationConnectionStatus,
|
|
33
34
|
AccountIntegrationEnvironment: () => AccountIntegrationEnvironment,
|
|
@@ -68,6 +69,7 @@ __export(index_exports, {
|
|
|
68
69
|
FulfillmentStatus: () => FulfillmentStatus,
|
|
69
70
|
FunnelStep: () => FunnelStep,
|
|
70
71
|
GeoZoneStatus: () => GeoZoneStatus,
|
|
72
|
+
HolidayType: () => HolidayType,
|
|
71
73
|
IntegrationCategory: () => IntegrationCategory,
|
|
72
74
|
IntegrationDeliveryZoneStatus: () => IntegrationDeliveryZoneStatus,
|
|
73
75
|
IntegrationStatus: () => IntegrationStatus,
|
|
@@ -379,6 +381,8 @@ var DeliveryOptionRuleType = /* @__PURE__ */ ((DeliveryOptionRuleType2) => {
|
|
|
379
381
|
DeliveryOptionRuleType2["PICKUP_READY_HOURS"] = "PICKUP_READY_HOURS";
|
|
380
382
|
DeliveryOptionRuleType2["FIXED_OFFSET_DAYS"] = "FIXED_OFFSET_DAYS";
|
|
381
383
|
DeliveryOptionRuleType2["BUSINESS_DAYS"] = "BUSINESS_DAYS";
|
|
384
|
+
DeliveryOptionRuleType2["DELIVERY_HOURS"] = "DELIVERY_HOURS";
|
|
385
|
+
DeliveryOptionRuleType2["BUFFER_SAFETY_MARGIN"] = "BUFFER_SAFETY_MARGIN";
|
|
382
386
|
return DeliveryOptionRuleType2;
|
|
383
387
|
})(DeliveryOptionRuleType || {});
|
|
384
388
|
|
|
@@ -390,6 +394,15 @@ var AccountDomainStatus = /* @__PURE__ */ ((AccountDomainStatus2) => {
|
|
|
390
394
|
return AccountDomainStatus2;
|
|
391
395
|
})(AccountDomainStatus || {});
|
|
392
396
|
|
|
397
|
+
// src/accountEmailDomain/types.ts
|
|
398
|
+
var AccountEmailDomainStatus = /* @__PURE__ */ ((AccountEmailDomainStatus2) => {
|
|
399
|
+
AccountEmailDomainStatus2["PENDING"] = "PENDING";
|
|
400
|
+
AccountEmailDomainStatus2["DNS_PENDING"] = "DNS_PENDING";
|
|
401
|
+
AccountEmailDomainStatus2["ACTIVE"] = "ACTIVE";
|
|
402
|
+
AccountEmailDomainStatus2["INACTIVE"] = "INACTIVE";
|
|
403
|
+
return AccountEmailDomainStatus2;
|
|
404
|
+
})(AccountEmailDomainStatus || {});
|
|
405
|
+
|
|
393
406
|
// src/accountIntegration/types.ts
|
|
394
407
|
var AccountIntegrationStatus = /* @__PURE__ */ ((AccountIntegrationStatus2) => {
|
|
395
408
|
AccountIntegrationStatus2["ACTIVE"] = "ACTIVE";
|
|
@@ -1202,6 +1215,13 @@ var ChargeStatus = /* @__PURE__ */ ((ChargeStatus2) => {
|
|
|
1202
1215
|
ChargeStatus2["CANCELLED"] = "CANCELLED";
|
|
1203
1216
|
return ChargeStatus2;
|
|
1204
1217
|
})(ChargeStatus || {});
|
|
1218
|
+
|
|
1219
|
+
// src/holiday/types.ts
|
|
1220
|
+
var HolidayType = /* @__PURE__ */ ((HolidayType2) => {
|
|
1221
|
+
HolidayType2["NON_WORKING"] = "NON_WORKING";
|
|
1222
|
+
HolidayType2["WORKING"] = "WORKING";
|
|
1223
|
+
return HolidayType2;
|
|
1224
|
+
})(HolidayType || {});
|
|
1205
1225
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1206
1226
|
0 && (module.exports = {
|
|
1207
1227
|
AccountBranchScheduleDay,
|
|
@@ -1211,6 +1231,7 @@ var ChargeStatus = /* @__PURE__ */ ((ChargeStatus2) => {
|
|
|
1211
1231
|
AccountDeliveryOptionStatus,
|
|
1212
1232
|
AccountDeliveryOptionZoneStatus,
|
|
1213
1233
|
AccountDomainStatus,
|
|
1234
|
+
AccountEmailDomainStatus,
|
|
1214
1235
|
AccountExchangeRateType,
|
|
1215
1236
|
AccountIntegrationConnectionStatus,
|
|
1216
1237
|
AccountIntegrationEnvironment,
|
|
@@ -1251,6 +1272,7 @@ var ChargeStatus = /* @__PURE__ */ ((ChargeStatus2) => {
|
|
|
1251
1272
|
FulfillmentStatus,
|
|
1252
1273
|
FunnelStep,
|
|
1253
1274
|
GeoZoneStatus,
|
|
1275
|
+
HolidayType,
|
|
1254
1276
|
IntegrationCategory,
|
|
1255
1277
|
IntegrationDeliveryZoneStatus,
|
|
1256
1278
|
IntegrationStatus,
|