@retaila/shared-types 1.1.117 → 1.1.119
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 +41 -16
- package/dist/index.d.ts +41 -16
- package/dist/index.js +53 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -27,6 +27,39 @@ interface MapPosition {
|
|
|
27
27
|
lng: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
declare const SUPPORTED_COUNTRIES: readonly ["UY", "AR"];
|
|
31
|
+
type SupportedCountryCode = (typeof SUPPORTED_COUNTRIES)[number];
|
|
32
|
+
declare function isSupportedCountry(code: string): code is SupportedCountryCode;
|
|
33
|
+
interface CountryDefaultBranchAddress {
|
|
34
|
+
country: string;
|
|
35
|
+
department: string;
|
|
36
|
+
locality: string;
|
|
37
|
+
street: string;
|
|
38
|
+
number: string;
|
|
39
|
+
mapPosition: {
|
|
40
|
+
lat: number;
|
|
41
|
+
lng: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
interface CountryDefaultTax {
|
|
45
|
+
name: string;
|
|
46
|
+
rate: number;
|
|
47
|
+
rateType: string;
|
|
48
|
+
}
|
|
49
|
+
interface CountryDefaultConfig {
|
|
50
|
+
/** Display name for the country (e.g. for select options). */
|
|
51
|
+
name: string;
|
|
52
|
+
timezone: string;
|
|
53
|
+
currency: string;
|
|
54
|
+
phoneCountryCode: string;
|
|
55
|
+
locale: string;
|
|
56
|
+
defaultBranchAddress: CountryDefaultBranchAddress;
|
|
57
|
+
defaultTaxes: CountryDefaultTax[];
|
|
58
|
+
}
|
|
59
|
+
/** Default configurations for enabled countries. Only countries with defaults are listed. */
|
|
60
|
+
declare const COUNTRY_DEFAULTS: Record<string, CountryDefaultConfig>;
|
|
61
|
+
declare function getCountryDefaults(code: string): CountryDefaultConfig | null;
|
|
62
|
+
|
|
30
63
|
/**
|
|
31
64
|
* Entidad Media
|
|
32
65
|
* Se utiliza para almacenar y gestionar archivos y recursos multimedia.
|
|
@@ -146,6 +179,7 @@ interface Account {
|
|
|
146
179
|
email: string;
|
|
147
180
|
timezone: string;
|
|
148
181
|
status: AccountStatus;
|
|
182
|
+
country: string;
|
|
149
183
|
themeConfig?: ThemeConfig;
|
|
150
184
|
privateKey?: string;
|
|
151
185
|
demo: boolean;
|
|
@@ -252,6 +286,8 @@ interface Integration {
|
|
|
252
286
|
updatedAt: Date;
|
|
253
287
|
deletedAt?: Date | null;
|
|
254
288
|
order: number;
|
|
289
|
+
/** ISO country codes where this integration is available. Null or empty = all countries. */
|
|
290
|
+
countries?: string[] | null;
|
|
255
291
|
accountIntegration: AccountIntegration | null;
|
|
256
292
|
}
|
|
257
293
|
|
|
@@ -898,16 +934,7 @@ type FulfillmentDeliveryOption = {
|
|
|
898
934
|
interface PickupLocation {
|
|
899
935
|
id: string;
|
|
900
936
|
name: string;
|
|
901
|
-
address:
|
|
902
|
-
street: string;
|
|
903
|
-
city: string;
|
|
904
|
-
state: string;
|
|
905
|
-
postalCode?: string;
|
|
906
|
-
};
|
|
907
|
-
coordinates?: {
|
|
908
|
-
latitude: number;
|
|
909
|
-
longitude: number;
|
|
910
|
-
};
|
|
937
|
+
address: Address;
|
|
911
938
|
hours?: string;
|
|
912
939
|
phone?: string;
|
|
913
940
|
additionalInfo?: Record<string, unknown>;
|
|
@@ -931,11 +958,7 @@ type FulfillmentRecollectionCapabilities = {
|
|
|
931
958
|
type FulfillmentRecollectionConfig = {
|
|
932
959
|
mode: FulfillmentRecollectionMode;
|
|
933
960
|
scheduledDateTime?: Date;
|
|
934
|
-
recollectionAddress?:
|
|
935
|
-
street: string;
|
|
936
|
-
city: string;
|
|
937
|
-
state: string;
|
|
938
|
-
};
|
|
961
|
+
recollectionAddress?: Address;
|
|
939
962
|
contactInfo?: {
|
|
940
963
|
name: string;
|
|
941
964
|
phone: string;
|
|
@@ -949,6 +972,8 @@ type FulfillmentProviderCreateInput = {
|
|
|
949
972
|
order: Order;
|
|
950
973
|
fulfillment: Fulfillment;
|
|
951
974
|
recollectionConfig?: FulfillmentRecollectionConfig;
|
|
975
|
+
/** ISO 3166-1 alpha-2 country code (e.g. 'UY', 'AR') for provider defaults (e.g. phone fallback). */
|
|
976
|
+
accountCountryCode?: string;
|
|
952
977
|
};
|
|
953
978
|
type FulfillmentProviderCreateOutput = {
|
|
954
979
|
data?: Record<string, unknown>;
|
|
@@ -3162,4 +3187,4 @@ interface UpdateNotificationSettingsDTO {
|
|
|
3162
3187
|
recipientEmails?: string[];
|
|
3163
3188
|
}
|
|
3164
3189
|
|
|
3165
|
-
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, 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, type ButtonStyle, 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 Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, 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 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 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, 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 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 UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLegacyLayout, isZonedLayout, parsePriceFormatPattern };
|
|
3190
|
+
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, 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, 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 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 CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, 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 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 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 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 UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,39 @@ interface MapPosition {
|
|
|
27
27
|
lng: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
declare const SUPPORTED_COUNTRIES: readonly ["UY", "AR"];
|
|
31
|
+
type SupportedCountryCode = (typeof SUPPORTED_COUNTRIES)[number];
|
|
32
|
+
declare function isSupportedCountry(code: string): code is SupportedCountryCode;
|
|
33
|
+
interface CountryDefaultBranchAddress {
|
|
34
|
+
country: string;
|
|
35
|
+
department: string;
|
|
36
|
+
locality: string;
|
|
37
|
+
street: string;
|
|
38
|
+
number: string;
|
|
39
|
+
mapPosition: {
|
|
40
|
+
lat: number;
|
|
41
|
+
lng: number;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
interface CountryDefaultTax {
|
|
45
|
+
name: string;
|
|
46
|
+
rate: number;
|
|
47
|
+
rateType: string;
|
|
48
|
+
}
|
|
49
|
+
interface CountryDefaultConfig {
|
|
50
|
+
/** Display name for the country (e.g. for select options). */
|
|
51
|
+
name: string;
|
|
52
|
+
timezone: string;
|
|
53
|
+
currency: string;
|
|
54
|
+
phoneCountryCode: string;
|
|
55
|
+
locale: string;
|
|
56
|
+
defaultBranchAddress: CountryDefaultBranchAddress;
|
|
57
|
+
defaultTaxes: CountryDefaultTax[];
|
|
58
|
+
}
|
|
59
|
+
/** Default configurations for enabled countries. Only countries with defaults are listed. */
|
|
60
|
+
declare const COUNTRY_DEFAULTS: Record<string, CountryDefaultConfig>;
|
|
61
|
+
declare function getCountryDefaults(code: string): CountryDefaultConfig | null;
|
|
62
|
+
|
|
30
63
|
/**
|
|
31
64
|
* Entidad Media
|
|
32
65
|
* Se utiliza para almacenar y gestionar archivos y recursos multimedia.
|
|
@@ -146,6 +179,7 @@ interface Account {
|
|
|
146
179
|
email: string;
|
|
147
180
|
timezone: string;
|
|
148
181
|
status: AccountStatus;
|
|
182
|
+
country: string;
|
|
149
183
|
themeConfig?: ThemeConfig;
|
|
150
184
|
privateKey?: string;
|
|
151
185
|
demo: boolean;
|
|
@@ -252,6 +286,8 @@ interface Integration {
|
|
|
252
286
|
updatedAt: Date;
|
|
253
287
|
deletedAt?: Date | null;
|
|
254
288
|
order: number;
|
|
289
|
+
/** ISO country codes where this integration is available. Null or empty = all countries. */
|
|
290
|
+
countries?: string[] | null;
|
|
255
291
|
accountIntegration: AccountIntegration | null;
|
|
256
292
|
}
|
|
257
293
|
|
|
@@ -898,16 +934,7 @@ type FulfillmentDeliveryOption = {
|
|
|
898
934
|
interface PickupLocation {
|
|
899
935
|
id: string;
|
|
900
936
|
name: string;
|
|
901
|
-
address:
|
|
902
|
-
street: string;
|
|
903
|
-
city: string;
|
|
904
|
-
state: string;
|
|
905
|
-
postalCode?: string;
|
|
906
|
-
};
|
|
907
|
-
coordinates?: {
|
|
908
|
-
latitude: number;
|
|
909
|
-
longitude: number;
|
|
910
|
-
};
|
|
937
|
+
address: Address;
|
|
911
938
|
hours?: string;
|
|
912
939
|
phone?: string;
|
|
913
940
|
additionalInfo?: Record<string, unknown>;
|
|
@@ -931,11 +958,7 @@ type FulfillmentRecollectionCapabilities = {
|
|
|
931
958
|
type FulfillmentRecollectionConfig = {
|
|
932
959
|
mode: FulfillmentRecollectionMode;
|
|
933
960
|
scheduledDateTime?: Date;
|
|
934
|
-
recollectionAddress?:
|
|
935
|
-
street: string;
|
|
936
|
-
city: string;
|
|
937
|
-
state: string;
|
|
938
|
-
};
|
|
961
|
+
recollectionAddress?: Address;
|
|
939
962
|
contactInfo?: {
|
|
940
963
|
name: string;
|
|
941
964
|
phone: string;
|
|
@@ -949,6 +972,8 @@ type FulfillmentProviderCreateInput = {
|
|
|
949
972
|
order: Order;
|
|
950
973
|
fulfillment: Fulfillment;
|
|
951
974
|
recollectionConfig?: FulfillmentRecollectionConfig;
|
|
975
|
+
/** ISO 3166-1 alpha-2 country code (e.g. 'UY', 'AR') for provider defaults (e.g. phone fallback). */
|
|
976
|
+
accountCountryCode?: string;
|
|
952
977
|
};
|
|
953
978
|
type FulfillmentProviderCreateOutput = {
|
|
954
979
|
data?: Record<string, unknown>;
|
|
@@ -3162,4 +3187,4 @@ interface UpdateNotificationSettingsDTO {
|
|
|
3162
3187
|
recipientEmails?: string[];
|
|
3163
3188
|
}
|
|
3164
3189
|
|
|
3165
|
-
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, 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, type ButtonStyle, 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 Collection, type CollectionMedia, type CollectionProductLink, type CollectionRule, CollectionRuleField, CollectionRuleFieldLabels, CollectionRuleOperator, CollectionRuleOperatorLabels, CollectionRulesLogic, CollectionStatus, CollectionStatusLabels, CollectionType, CollectionTypeLabels, type ColorVariant, type CreateAccountDeliveryOptionDTO, type CreateAccountExchangeRateDto, type CreateAnalyticsSessionDto, type CreateCollectionDTO, type CreateDeliveryOptionDto, type CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, 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 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 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, 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 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 UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLegacyLayout, isZonedLayout, parsePriceFormatPattern };
|
|
3190
|
+
export { type Account, type AccountAiCreditTransaction, type AccountAiCredits, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountCurrencyConfig, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountExchangeRate, type AccountExchangeRateListResponse, type AccountExchangeRateMetadata, type AccountExchangeRateQueryDto, type AccountExchangeRateResponse, AccountExchangeRateType, type AccountExchangeRateWithEffectiveRate, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, 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, 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 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 CreateExchangeRateDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, type CreateRoleDTO, type CreateStoreComponentTemplateDTO, type CreateStoreTemplateDTO, Currency, type CurrencyConversion, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, type DesignTokens, DeviceType, type EffectiveExchangeRate, type ExchangeRate, type ExchangeRateListResponse, type ExchangeRateMetadata, type ExchangeRateQueryDto, type ExchangeRateResponse, 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 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 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 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 UpdateAccountDeliveryOptionDTO, type UpdateAccountExchangeRateAllDto, type UpdateAccountExchangeRateDto, type UpdateCollectionDTO, type UpdateExchangeRateDto, type UpdateFulfillmentDto, type UpdateNotificationSettingsDTO, type UpdatePromotionDTO, type UpdateRoleDTO, type UpdateStoreComponentTemplateDTO, type UpdateStoreTemplateDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCountryDefaults, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, isLegacyLayout, isSupportedCountry, isZonedLayout, parsePriceFormatPattern };
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __export(index_exports, {
|
|
|
38
38
|
AiCreditTransactionReason: () => AiCreditTransactionReason,
|
|
39
39
|
AiCreditType: () => AiCreditType,
|
|
40
40
|
AnalyticsEventType: () => AnalyticsEventType,
|
|
41
|
+
COUNTRY_DEFAULTS: () => COUNTRY_DEFAULTS,
|
|
41
42
|
CampaignBudgetType: () => CampaignBudgetType,
|
|
42
43
|
CampaignStatus: () => CampaignStatus,
|
|
43
44
|
CartDeliveryType: () => CartDeliveryType,
|
|
@@ -89,6 +90,7 @@ __export(index_exports, {
|
|
|
89
90
|
PubSubTopics: () => PubSubTopics,
|
|
90
91
|
RoundingMethod: () => RoundingMethod,
|
|
91
92
|
RoundingRule: () => RoundingRule,
|
|
93
|
+
SUPPORTED_COUNTRIES: () => SUPPORTED_COUNTRIES,
|
|
92
94
|
StandardCategoryStatus: () => StandardCategoryStatus,
|
|
93
95
|
StoreBannerStatus: () => StoreBannerStatus,
|
|
94
96
|
StorePageStatus: () => StorePageStatus,
|
|
@@ -103,6 +105,7 @@ __export(index_exports, {
|
|
|
103
105
|
SupportConversationVisibility: () => SupportConversationVisibility,
|
|
104
106
|
TrafficSource: () => TrafficSource,
|
|
105
107
|
getAccountPaymentMethodStatusInfo: () => getAccountPaymentMethodStatusInfo,
|
|
108
|
+
getCountryDefaults: () => getCountryDefaults,
|
|
106
109
|
getCurrencySymbol: () => getCurrencySymbol,
|
|
107
110
|
getFulfillmentStatusInfo: () => getFulfillmentStatusInfo,
|
|
108
111
|
getIntegrationCategoryName: () => getIntegrationCategoryName,
|
|
@@ -112,11 +115,57 @@ __export(index_exports, {
|
|
|
112
115
|
getPaymentStatusInfo: () => getPaymentStatusInfo,
|
|
113
116
|
getProductStatusInfo: () => getProductStatusInfo,
|
|
114
117
|
isLegacyLayout: () => isLegacyLayout,
|
|
118
|
+
isSupportedCountry: () => isSupportedCountry,
|
|
115
119
|
isZonedLayout: () => isZonedLayout,
|
|
116
120
|
parsePriceFormatPattern: () => parsePriceFormatPattern
|
|
117
121
|
});
|
|
118
122
|
module.exports = __toCommonJS(index_exports);
|
|
119
123
|
|
|
124
|
+
// src/common/Country.ts
|
|
125
|
+
var SUPPORTED_COUNTRIES = ["UY", "AR"];
|
|
126
|
+
function isSupportedCountry(code) {
|
|
127
|
+
return SUPPORTED_COUNTRIES.includes(code);
|
|
128
|
+
}
|
|
129
|
+
var COUNTRY_DEFAULTS = {
|
|
130
|
+
UY: {
|
|
131
|
+
name: "Uruguay",
|
|
132
|
+
timezone: "America/Montevideo",
|
|
133
|
+
currency: "UYU",
|
|
134
|
+
phoneCountryCode: "+598",
|
|
135
|
+
locale: "es-UY",
|
|
136
|
+
defaultBranchAddress: {
|
|
137
|
+
country: "Uruguay",
|
|
138
|
+
department: "Montevideo",
|
|
139
|
+
locality: "Centro",
|
|
140
|
+
street: "Calle 123",
|
|
141
|
+
number: "123",
|
|
142
|
+
mapPosition: { lat: -34.9211269, lng: -56.161656 }
|
|
143
|
+
},
|
|
144
|
+
defaultTaxes: [{ name: "IVA", rate: 22, rateType: "PERCENTAGE" }]
|
|
145
|
+
},
|
|
146
|
+
AR: {
|
|
147
|
+
name: "Argentina",
|
|
148
|
+
timezone: "America/Argentina/Buenos_Aires",
|
|
149
|
+
currency: "ARS",
|
|
150
|
+
phoneCountryCode: "+54",
|
|
151
|
+
locale: "es-AR",
|
|
152
|
+
defaultBranchAddress: {
|
|
153
|
+
country: "Argentina",
|
|
154
|
+
department: "Buenos Aires",
|
|
155
|
+
locality: "CABA",
|
|
156
|
+
street: "Calle ejemplo",
|
|
157
|
+
number: "123",
|
|
158
|
+
mapPosition: { lat: -34.6037, lng: -58.3816 }
|
|
159
|
+
},
|
|
160
|
+
defaultTaxes: [{ name: "IVA", rate: 21, rateType: "PERCENTAGE" }]
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
function getCountryDefaults(code) {
|
|
164
|
+
if (!code || code.length !== 2) return null;
|
|
165
|
+
const key = code.toUpperCase();
|
|
166
|
+
return COUNTRY_DEFAULTS[key] ?? null;
|
|
167
|
+
}
|
|
168
|
+
|
|
120
169
|
// src/common/Media.ts
|
|
121
170
|
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
122
171
|
MediaType2["IMAGE"] = "IMAGE";
|
|
@@ -1056,6 +1105,7 @@ var InternalNotificationType = /* @__PURE__ */ ((InternalNotificationType2) => {
|
|
|
1056
1105
|
AiCreditTransactionReason,
|
|
1057
1106
|
AiCreditType,
|
|
1058
1107
|
AnalyticsEventType,
|
|
1108
|
+
COUNTRY_DEFAULTS,
|
|
1059
1109
|
CampaignBudgetType,
|
|
1060
1110
|
CampaignStatus,
|
|
1061
1111
|
CartDeliveryType,
|
|
@@ -1107,6 +1157,7 @@ var InternalNotificationType = /* @__PURE__ */ ((InternalNotificationType2) => {
|
|
|
1107
1157
|
PubSubTopics,
|
|
1108
1158
|
RoundingMethod,
|
|
1109
1159
|
RoundingRule,
|
|
1160
|
+
SUPPORTED_COUNTRIES,
|
|
1110
1161
|
StandardCategoryStatus,
|
|
1111
1162
|
StoreBannerStatus,
|
|
1112
1163
|
StorePageStatus,
|
|
@@ -1121,6 +1172,7 @@ var InternalNotificationType = /* @__PURE__ */ ((InternalNotificationType2) => {
|
|
|
1121
1172
|
SupportConversationVisibility,
|
|
1122
1173
|
TrafficSource,
|
|
1123
1174
|
getAccountPaymentMethodStatusInfo,
|
|
1175
|
+
getCountryDefaults,
|
|
1124
1176
|
getCurrencySymbol,
|
|
1125
1177
|
getFulfillmentStatusInfo,
|
|
1126
1178
|
getIntegrationCategoryName,
|
|
@@ -1130,6 +1182,7 @@ var InternalNotificationType = /* @__PURE__ */ ((InternalNotificationType2) => {
|
|
|
1130
1182
|
getPaymentStatusInfo,
|
|
1131
1183
|
getProductStatusInfo,
|
|
1132
1184
|
isLegacyLayout,
|
|
1185
|
+
isSupportedCountry,
|
|
1133
1186
|
isZonedLayout,
|
|
1134
1187
|
parsePriceFormatPattern
|
|
1135
1188
|
});
|