@retaila/shared-types 1.1.75 → 1.1.84

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 CHANGED
@@ -542,7 +542,7 @@ interface ProductCategory {
542
542
  id: string;
543
543
  accountId: string;
544
544
  parentId?: string;
545
- standardCategoryId: string;
545
+ standardCategoryId: string | null;
546
546
  name: string;
547
547
  slug: string;
548
548
  description?: string;
@@ -1003,6 +1003,7 @@ interface Order {
1003
1003
  payments?: Payment[];
1004
1004
  statusFlow?: StatusFlow[];
1005
1005
  statusChangeAllowed?: OrderStatus[];
1006
+ hasShipment?: boolean;
1006
1007
  }
1007
1008
  interface OrderItem {
1008
1009
  id: string;
@@ -1085,6 +1086,7 @@ type NextStatusAction<T extends keyof StatusByType = keyof StatusByType> = {
1085
1086
  type: T;
1086
1087
  status: StatusByType[T];
1087
1088
  text: string;
1089
+ fulfillmentId?: string;
1088
1090
  };
1089
1091
 
1090
1092
  interface OrderCreateFromCartDto {
@@ -1097,6 +1099,7 @@ interface AdminOrderStatusChangeDto {
1097
1099
  }
1098
1100
 
1099
1101
  declare function getOrderStatusInfo(status: OrderStatus): StatusInfo;
1102
+ declare function getOrderPaymentStatusInfo(status: OrderPaymentStatus): StatusInfo;
1100
1103
 
1101
1104
  /**
1102
1105
  * Add an item to the cart
@@ -1374,6 +1377,39 @@ interface OrderPromotion {
1374
1377
  updatedAt: Date;
1375
1378
  deletedAt?: Date | null;
1376
1379
  }
1380
+ interface PromotionRuleInput {
1381
+ ruleAttribute: string;
1382
+ ruleOperator: PromotionRuleOperator;
1383
+ values: string[];
1384
+ }
1385
+ interface PromotionApplicationMethodInput {
1386
+ targetType: PromotionTargetType;
1387
+ applicationType: PromotionApplicationType;
1388
+ value: number;
1389
+ }
1390
+ interface CreatePromotionDTO {
1391
+ name: string;
1392
+ description?: string | null;
1393
+ code?: string | null;
1394
+ isAutomatic: boolean;
1395
+ isStackable?: boolean;
1396
+ status: PromotionStatus;
1397
+ type?: PromotionType;
1398
+ campaignId?: string | null;
1399
+ promotionRules?: PromotionRuleInput[];
1400
+ targetRules?: PromotionRuleInput[];
1401
+ applicationMethod: PromotionApplicationMethodInput;
1402
+ }
1403
+ interface UpdatePromotionDTO extends Partial<CreatePromotionDTO> {
1404
+ id: string;
1405
+ }
1406
+ interface PromotionListFilters {
1407
+ page?: number;
1408
+ limit?: number;
1409
+ search?: string | null;
1410
+ status?: PromotionStatus | null;
1411
+ isAutomatic?: boolean | null;
1412
+ }
1377
1413
 
1378
1414
  /**
1379
1415
  * CartDeliveryMethod Entity
@@ -1476,6 +1512,9 @@ interface Cart {
1476
1512
  promotions: {
1477
1513
  code: string;
1478
1514
  amount: number;
1515
+ name?: string;
1516
+ description?: string;
1517
+ isAutomatic?: boolean;
1479
1518
  }[];
1480
1519
  }
1481
1520
  interface CartItem {
@@ -1571,6 +1610,49 @@ interface ProductAttributeOption {
1571
1610
  count: number;
1572
1611
  }
1573
1612
 
1613
+ declare enum CampaignStatus {
1614
+ ACTIVE = "active",
1615
+ INACTIVE = "inactive"
1616
+ }
1617
+ interface Campaign {
1618
+ id: string;
1619
+ accountId: string;
1620
+ name: string;
1621
+ description?: string | null;
1622
+ startDate?: Date | null;
1623
+ endDate?: Date | null;
1624
+ status: CampaignStatus;
1625
+ createdAt: Date;
1626
+ updatedAt: Date;
1627
+ deletedAt?: Date | null;
1628
+ }
1629
+ declare enum CampaignBudgetType {
1630
+ USAGE = "usage",
1631
+ SPEND = "spend",
1632
+ USAGE_BY_ATTRIBUTE = "usage_by_attribute",
1633
+ SPEND_BY_ATTRIBUTE = "spend_by_attribute"
1634
+ }
1635
+ interface CampaignBudget {
1636
+ id: string;
1637
+ accountId: string;
1638
+ campaignId: string;
1639
+ type: CampaignBudgetType;
1640
+ limit?: number | null;
1641
+ used: number;
1642
+ attribute?: string | null;
1643
+ createdAt: Date;
1644
+ updatedAt: Date;
1645
+ deletedAt?: Date | null;
1646
+ }
1647
+ interface CampaignBudgetUsage {
1648
+ id: string;
1649
+ campaignBudgetId: string;
1650
+ attributeValue: string;
1651
+ used: number;
1652
+ createdAt: Date;
1653
+ updatedAt: Date;
1654
+ }
1655
+
1574
1656
  /**
1575
1657
  * Entidad StoreBanner
1576
1658
  * Banners para la portada de la web de la tienda
@@ -1892,4 +1974,4 @@ declare enum IntegrationDeliveryZoneStatus {
1892
1974
  INACTIVE = "INACTIVE"
1893
1975
  }
1894
1976
 
1895
- export { type Account, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, AccountStatus, type Address, type AdminOrderStatusChangeDto, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, type ButtonStyle, 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 CreateAccountDeliveryOptionDTO, type CreateDeliveryOptionDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, Currency, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, 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 GeoZone, type GeoZoneInput, GeoZoneStatus, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type MapPosition, type Media, MediaType, 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 Payment, type PaymentCardBrand, PaymentCardBrandKey, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Phone, type PickupLocation, type Product, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionPromotionRule, type PromotionRule, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationLayoutComponent, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type ThemeConfig, type UpdateAccountDeliveryOptionDTO, type UpdateFulfillmentDto, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, parsePriceFormatPattern };
1977
+ export { type Account, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, AccountStatus, type Address, type AdminOrderStatusChangeDto, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, type ButtonStyle, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, 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 CreateAccountDeliveryOptionDTO, type CreateDeliveryOptionDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, Currency, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, 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 GeoZone, type GeoZoneInput, GeoZoneStatus, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type MapPosition, type Media, MediaType, 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 Payment, type PaymentCardBrand, PaymentCardBrandKey, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Phone, type PickupLocation, type Product, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, 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 StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationLayoutComponent, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type ThemeConfig, type UpdateAccountDeliveryOptionDTO, type UpdateFulfillmentDto, type UpdatePromotionDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, parsePriceFormatPattern };
package/dist/index.d.ts CHANGED
@@ -542,7 +542,7 @@ interface ProductCategory {
542
542
  id: string;
543
543
  accountId: string;
544
544
  parentId?: string;
545
- standardCategoryId: string;
545
+ standardCategoryId: string | null;
546
546
  name: string;
547
547
  slug: string;
548
548
  description?: string;
@@ -1003,6 +1003,7 @@ interface Order {
1003
1003
  payments?: Payment[];
1004
1004
  statusFlow?: StatusFlow[];
1005
1005
  statusChangeAllowed?: OrderStatus[];
1006
+ hasShipment?: boolean;
1006
1007
  }
1007
1008
  interface OrderItem {
1008
1009
  id: string;
@@ -1085,6 +1086,7 @@ type NextStatusAction<T extends keyof StatusByType = keyof StatusByType> = {
1085
1086
  type: T;
1086
1087
  status: StatusByType[T];
1087
1088
  text: string;
1089
+ fulfillmentId?: string;
1088
1090
  };
1089
1091
 
1090
1092
  interface OrderCreateFromCartDto {
@@ -1097,6 +1099,7 @@ interface AdminOrderStatusChangeDto {
1097
1099
  }
1098
1100
 
1099
1101
  declare function getOrderStatusInfo(status: OrderStatus): StatusInfo;
1102
+ declare function getOrderPaymentStatusInfo(status: OrderPaymentStatus): StatusInfo;
1100
1103
 
1101
1104
  /**
1102
1105
  * Add an item to the cart
@@ -1374,6 +1377,39 @@ interface OrderPromotion {
1374
1377
  updatedAt: Date;
1375
1378
  deletedAt?: Date | null;
1376
1379
  }
1380
+ interface PromotionRuleInput {
1381
+ ruleAttribute: string;
1382
+ ruleOperator: PromotionRuleOperator;
1383
+ values: string[];
1384
+ }
1385
+ interface PromotionApplicationMethodInput {
1386
+ targetType: PromotionTargetType;
1387
+ applicationType: PromotionApplicationType;
1388
+ value: number;
1389
+ }
1390
+ interface CreatePromotionDTO {
1391
+ name: string;
1392
+ description?: string | null;
1393
+ code?: string | null;
1394
+ isAutomatic: boolean;
1395
+ isStackable?: boolean;
1396
+ status: PromotionStatus;
1397
+ type?: PromotionType;
1398
+ campaignId?: string | null;
1399
+ promotionRules?: PromotionRuleInput[];
1400
+ targetRules?: PromotionRuleInput[];
1401
+ applicationMethod: PromotionApplicationMethodInput;
1402
+ }
1403
+ interface UpdatePromotionDTO extends Partial<CreatePromotionDTO> {
1404
+ id: string;
1405
+ }
1406
+ interface PromotionListFilters {
1407
+ page?: number;
1408
+ limit?: number;
1409
+ search?: string | null;
1410
+ status?: PromotionStatus | null;
1411
+ isAutomatic?: boolean | null;
1412
+ }
1377
1413
 
1378
1414
  /**
1379
1415
  * CartDeliveryMethod Entity
@@ -1476,6 +1512,9 @@ interface Cart {
1476
1512
  promotions: {
1477
1513
  code: string;
1478
1514
  amount: number;
1515
+ name?: string;
1516
+ description?: string;
1517
+ isAutomatic?: boolean;
1479
1518
  }[];
1480
1519
  }
1481
1520
  interface CartItem {
@@ -1571,6 +1610,49 @@ interface ProductAttributeOption {
1571
1610
  count: number;
1572
1611
  }
1573
1612
 
1613
+ declare enum CampaignStatus {
1614
+ ACTIVE = "active",
1615
+ INACTIVE = "inactive"
1616
+ }
1617
+ interface Campaign {
1618
+ id: string;
1619
+ accountId: string;
1620
+ name: string;
1621
+ description?: string | null;
1622
+ startDate?: Date | null;
1623
+ endDate?: Date | null;
1624
+ status: CampaignStatus;
1625
+ createdAt: Date;
1626
+ updatedAt: Date;
1627
+ deletedAt?: Date | null;
1628
+ }
1629
+ declare enum CampaignBudgetType {
1630
+ USAGE = "usage",
1631
+ SPEND = "spend",
1632
+ USAGE_BY_ATTRIBUTE = "usage_by_attribute",
1633
+ SPEND_BY_ATTRIBUTE = "spend_by_attribute"
1634
+ }
1635
+ interface CampaignBudget {
1636
+ id: string;
1637
+ accountId: string;
1638
+ campaignId: string;
1639
+ type: CampaignBudgetType;
1640
+ limit?: number | null;
1641
+ used: number;
1642
+ attribute?: string | null;
1643
+ createdAt: Date;
1644
+ updatedAt: Date;
1645
+ deletedAt?: Date | null;
1646
+ }
1647
+ interface CampaignBudgetUsage {
1648
+ id: string;
1649
+ campaignBudgetId: string;
1650
+ attributeValue: string;
1651
+ used: number;
1652
+ createdAt: Date;
1653
+ updatedAt: Date;
1654
+ }
1655
+
1574
1656
  /**
1575
1657
  * Entidad StoreBanner
1576
1658
  * Banners para la portada de la web de la tienda
@@ -1892,4 +1974,4 @@ declare enum IntegrationDeliveryZoneStatus {
1892
1974
  INACTIVE = "INACTIVE"
1893
1975
  }
1894
1976
 
1895
- export { type Account, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, AccountStatus, type Address, type AdminOrderStatusChangeDto, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, type ButtonStyle, 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 CreateAccountDeliveryOptionDTO, type CreateDeliveryOptionDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, Currency, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, 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 GeoZone, type GeoZoneInput, GeoZoneStatus, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type MapPosition, type Media, MediaType, 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 Payment, type PaymentCardBrand, PaymentCardBrandKey, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Phone, type PickupLocation, type Product, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, type Promotion, type PromotionApplicationMethod, type PromotionApplicationMethodPromotionRule, PromotionApplicationType, type PromotionPromotionRule, type PromotionRule, PromotionRuleOperator, type PromotionRuleValue, PromotionStatus, PromotionTargetType, PromotionType, PubSubTopics, type StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationLayoutComponent, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type ThemeConfig, type UpdateAccountDeliveryOptionDTO, type UpdateFulfillmentDto, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, parsePriceFormatPattern };
1977
+ export { type Account, type AccountBranch, type AccountBranchSchedule, AccountBranchScheduleDay, AccountBranchScheduleStatus, AccountBranchStatus, type AccountDeliveryOption, type AccountDeliveryOptionCalculatedCost, AccountDeliveryOptionPriceLogic, AccountDeliveryOptionStatus, type AccountDeliveryOptionZone, AccountDeliveryOptionZoneStatus, type AccountDomain, AccountDomainStatus, type AccountIntegration, type AccountIntegrationConfigDTO, AccountIntegrationConnectionStatus, AccountIntegrationEnvironment, AccountIntegrationStatus, type AccountPaymentMethod, AccountPaymentMethodStatus, AccountStatus, type Address, type AdminOrderStatusChangeDto, type BaseEntity, type BaseEntityWithAccount, type BaseEntityWithAccountAndUser, type BaseEntityWithUser, type ButtonStyle, type Campaign, type CampaignBudget, CampaignBudgetType, type CampaignBudgetUsage, 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 CreateAccountDeliveryOptionDTO, type CreateDeliveryOptionDto, type CreateFulfillmentDto, type CreateFulfillmentItemDto, type CreatePromotionDTO, Currency, type Customer, CustomerStatus, type CustomerUpsertDto, DayOfWeek, DeliveryType, type DeliveryZoneInput, 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 GeoZone, type GeoZoneInput, GeoZoneStatus, type Integration, IntegrationCategory, type IntegrationDeliveryZone, IntegrationDeliveryZoneStatus, IntegrationStatus, type MapPosition, type Media, MediaType, 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 Payment, type PaymentCardBrand, PaymentCardBrandKey, PaymentMethodType, type PaymentProviderAdapter, type PaymentProviderCaptureInput, type PaymentProviderCaptureOutput, type PaymentProviderContext, type PaymentProviderInitInput, type PaymentProviderInitOutput, type PaymentProviderKey, type PaymentProviderRefundInput, type PaymentProviderRefundOutput, type PaymentProviderWebhookResult, PaymentStatus, type Phone, type PickupLocation, type Product, type ProductAttribute, type ProductAttributeOption, ProductAttributeStatus, ProductAttributeType, type ProductCategory, ProductCategoryStatus, ProductStatus, ProductType, type ProductVariant, 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 StandardCategory, StandardCategoryStatus, type StatusChangeHistory, type StatusFlow, type StoreBanner, StoreBannerStatus, type StoreCustomization, type StoreCustomizationComponentSettings, type StoreCustomizationLayoutComponent, type StoreCustomizationPage, type StoreCustomizationPageComponent, type StoreCustomizationSeo, type StoreCustomizationThemeButtons, type StoreCustomizationThemeColors, type StoreCustomizationThemeTypography, type StorePage, StorePageStatus, StorePageType, type SupportConversation, SupportConversationChannel, type SupportConversationMessage, SupportConversationMessageAiAnalysisStatus, SupportConversationMessageDeliveryStatus, SupportConversationMessageDirection, SupportConversationMessageSenderType, SupportConversationPriority, SupportConversationStatus, SupportConversationVisibility, type ThemeConfig, type UpdateAccountDeliveryOptionDTO, type UpdateFulfillmentDto, type UpdatePromotionDTO, type Webhook, type WebhookPayload, getAccountPaymentMethodStatusInfo, getCurrencySymbol, getFulfillmentStatusInfo, getIntegrationCategoryName, getOrderPaymentStatusInfo, getOrderStatusInfo, getPaymentCardBrand, getPaymentStatusInfo, getProductStatusInfo, parsePriceFormatPattern };
package/dist/index.js CHANGED
@@ -33,6 +33,8 @@ __export(index_exports, {
33
33
  AccountIntegrationStatus: () => AccountIntegrationStatus,
34
34
  AccountPaymentMethodStatus: () => AccountPaymentMethodStatus,
35
35
  AccountStatus: () => AccountStatus,
36
+ CampaignBudgetType: () => CampaignBudgetType,
37
+ CampaignStatus: () => CampaignStatus,
36
38
  CartDeliveryType: () => CartDeliveryType,
37
39
  CartItemErrorCode: () => CartItemErrorCode,
38
40
  CartSource: () => CartSource,
@@ -81,6 +83,7 @@ __export(index_exports, {
81
83
  getCurrencySymbol: () => getCurrencySymbol,
82
84
  getFulfillmentStatusInfo: () => getFulfillmentStatusInfo,
83
85
  getIntegrationCategoryName: () => getIntegrationCategoryName,
86
+ getOrderPaymentStatusInfo: () => getOrderPaymentStatusInfo,
84
87
  getOrderStatusInfo: () => getOrderStatusInfo,
85
88
  getPaymentCardBrand: () => getPaymentCardBrand,
86
89
  getPaymentStatusInfo: () => getPaymentStatusInfo,
@@ -436,6 +439,17 @@ function getOrderStatusInfo(status) {
436
439
  };
437
440
  return map[status] ?? { text: String(status), class: "secondary" };
438
441
  }
442
+ function getOrderPaymentStatusInfo(status) {
443
+ const map = {
444
+ PENDING: { text: "Pago pendiente", class: "warning", actionText: "" },
445
+ PARTIAL: { text: "Pago parcial", class: "info", actionText: "" },
446
+ PAID: { text: "Pago completo", class: "success", actionText: "" },
447
+ OVERPAID: { text: "Pago excedido", class: "info", actionText: "" },
448
+ REFUNDED: { text: "Reembolsado", class: "success", actionText: "" },
449
+ PARTIALLY_REFUNDED: { text: "Parcialmente reembolsado", class: "warning", actionText: "" }
450
+ };
451
+ return map[status] ?? { text: String(status), class: "secondary" };
452
+ }
439
453
 
440
454
  // src/payment/types.ts
441
455
  var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
@@ -649,6 +663,20 @@ var ProductCategoryStatus = /* @__PURE__ */ ((ProductCategoryStatus2) => {
649
663
  return ProductCategoryStatus2;
650
664
  })(ProductCategoryStatus || {});
651
665
 
666
+ // src/campaign/types.ts
667
+ var CampaignStatus = /* @__PURE__ */ ((CampaignStatus2) => {
668
+ CampaignStatus2["ACTIVE"] = "active";
669
+ CampaignStatus2["INACTIVE"] = "inactive";
670
+ return CampaignStatus2;
671
+ })(CampaignStatus || {});
672
+ var CampaignBudgetType = /* @__PURE__ */ ((CampaignBudgetType2) => {
673
+ CampaignBudgetType2["USAGE"] = "usage";
674
+ CampaignBudgetType2["SPEND"] = "spend";
675
+ CampaignBudgetType2["USAGE_BY_ATTRIBUTE"] = "usage_by_attribute";
676
+ CampaignBudgetType2["SPEND_BY_ATTRIBUTE"] = "spend_by_attribute";
677
+ return CampaignBudgetType2;
678
+ })(CampaignBudgetType || {});
679
+
652
680
  // src/standardCategory/types.ts
653
681
  var StandardCategoryStatus = /* @__PURE__ */ ((StandardCategoryStatus2) => {
654
682
  StandardCategoryStatus2["ACTIVE"] = "ACTIVE";
@@ -798,6 +826,8 @@ var IntegrationDeliveryZoneStatus = /* @__PURE__ */ ((IntegrationDeliveryZoneSta
798
826
  AccountIntegrationStatus,
799
827
  AccountPaymentMethodStatus,
800
828
  AccountStatus,
829
+ CampaignBudgetType,
830
+ CampaignStatus,
801
831
  CartDeliveryType,
802
832
  CartItemErrorCode,
803
833
  CartSource,
@@ -846,6 +876,7 @@ var IntegrationDeliveryZoneStatus = /* @__PURE__ */ ((IntegrationDeliveryZoneSta
846
876
  getCurrencySymbol,
847
877
  getFulfillmentStatusInfo,
848
878
  getIntegrationCategoryName,
879
+ getOrderPaymentStatusInfo,
849
880
  getOrderStatusInfo,
850
881
  getPaymentCardBrand,
851
882
  getPaymentStatusInfo,