@fas-core/shared-types 1.0.91 → 1.0.93

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
@@ -134,6 +134,8 @@ interface IContent {
134
134
  applications: string;
135
135
  }
136
136
 
137
+ declare const toIdString: (value: unknown) => string;
138
+
137
139
  interface ICurrency extends BaseEntity {
138
140
  name: string;
139
141
  symbol: string;
@@ -240,7 +242,13 @@ interface ICategory extends BaseEntity {
240
242
  subCategories?: ICategory[];
241
243
  }
242
244
 
243
- type StockStatus = "IN_STOCK" | "LOW_STOCK" | "OUT_OF_STOCK";
245
+ declare const StockStatusEnum: {
246
+ readonly IN_STOCK: "IN_STOCK";
247
+ readonly LOW_STOCK: "LOW_STOCK";
248
+ readonly OUT_OF_STOCK: "OUT_OF_STOCK";
249
+ };
250
+ type StockStatus = (typeof StockStatusEnum)[keyof typeof StockStatusEnum];
251
+ declare const STOCK_STATUS_VALUES: ("IN_STOCK" | "LOW_STOCK" | "OUT_OF_STOCK")[];
244
252
  interface IStock extends BaseEntity {
245
253
  sku: string;
246
254
  product: IProduct;
@@ -260,10 +268,28 @@ declare const InventoryPolicyEnum: {
260
268
  type InventoryPolicy = (typeof InventoryPolicyEnum)[keyof typeof InventoryPolicyEnum];
261
269
  declare const INVENTORY_POLICY_VALUES: InventoryPolicy[];
262
270
 
271
+ declare const SaleTypeEnum: {
272
+ readonly DIRECT: "DIRECT";
273
+ readonly QUOTE: "QUOTE";
274
+ };
275
+ type SaleType = (typeof SaleTypeEnum)[keyof typeof SaleTypeEnum];
276
+ declare const SALE_TYPE_VALUES: SaleType[];
277
+
278
+ interface SaleTypedLike {
279
+ saleType?: SaleType;
280
+ metaData?: unknown;
281
+ price?: {
282
+ price?: number;
283
+ } | null;
284
+ }
285
+ declare const saleTypeOf: (item: SaleTypedLike | null | undefined) => SaleType;
286
+ declare const isQuoteOnlyItem: (item: SaleTypedLike | null | undefined) => boolean;
287
+
263
288
  interface IProductVariantFields {
264
289
  description: string;
265
290
  overview: string;
266
291
  price: IPrice;
292
+ saleType?: SaleType;
267
293
  quantity: number;
268
294
  inventoryPolicy: InventoryPolicy;
269
295
  brand: IBrand;
@@ -436,9 +462,10 @@ declare const PaymentStatusEnum: {
436
462
  readonly UNKNOWN: "UNKNOWN";
437
463
  readonly REFUNDED: "REFUNDED";
438
464
  readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
465
+ readonly NOT_REQUIRED: "NOT_REQUIRED";
439
466
  };
440
467
  type PaymentStatusEnum = (typeof PaymentStatusEnum)[keyof typeof PaymentStatusEnum];
441
- declare const PAYMENT_STATUS_VALUES: ("INITIATED" | "PENDING" | "PROCESSING" | "FAILED" | "CANCELLED" | "PENDING_CAPTURE" | "COMPLETED" | "VOIDED" | "REDIRECTED_TO_GATEWAY" | "UNKNOWN" | "REFUNDED" | "PARTIALLY_REFUNDED")[];
468
+ declare const PAYMENT_STATUS_VALUES: ("INITIATED" | "PENDING" | "PROCESSING" | "FAILED" | "CANCELLED" | "PENDING_CAPTURE" | "COMPLETED" | "VOIDED" | "REDIRECTED_TO_GATEWAY" | "UNKNOWN" | "REFUNDED" | "PARTIALLY_REFUNDED" | "NOT_REQUIRED")[];
442
469
  declare const paymentStatusColorMap: Record<PaymentStatusEnum, string>;
443
470
  declare const PaymentMethodEnum: {
444
471
  readonly CREDIT_CARD: "CREDIT_CARD";
@@ -504,10 +531,17 @@ declare const OrderStatusEnum: {
504
531
  readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
505
532
  readonly ARCHIVED: "ARCHIVED";
506
533
  readonly RETURNED: "RETURNED";
534
+ readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
535
+ readonly QUOTED: "QUOTED";
536
+ readonly QUOTE_ACCEPTED: "QUOTE_ACCEPTED";
537
+ readonly QUOTE_DECLINED: "QUOTE_DECLINED";
538
+ readonly QUOTE_EXPIRED: "QUOTE_EXPIRED";
507
539
  };
508
540
  type OrderStatusEnum = (typeof OrderStatusEnum)[keyof typeof OrderStatusEnum];
509
- declare const ORDER_STATUS_VALUES: ("PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "CREATED" | "RECEIVED" | "CONFIRMED" | "SHIPPED" | "DELIVERED" | "CANCELED" | "ARCHIVED" | "RETURNED")[];
541
+ declare const ORDER_STATUS_VALUES: ("PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "CREATED" | "RECEIVED" | "CONFIRMED" | "SHIPPED" | "DELIVERED" | "CANCELED" | "ARCHIVED" | "RETURNED" | "QUOTE_REQUESTED" | "QUOTED" | "QUOTE_ACCEPTED" | "QUOTE_DECLINED" | "QUOTE_EXPIRED")[];
510
542
  declare const statusColors: Record<OrderStatusEnum, string>;
543
+ declare const PURCHASE_ORDER_STATUSES: OrderStatusEnum[];
544
+ declare const QUOTE_ORDER_STATUSES: OrderStatusEnum[];
511
545
  interface IOrderTracking {
512
546
  number: string;
513
547
  url: string;
@@ -520,6 +554,10 @@ interface IOrder extends BaseEntity {
520
554
  coupon: ICoupon;
521
555
  store: IStore;
522
556
  status: OrderStatusEnum;
557
+ type?: SaleType;
558
+ sourceQuote?: IOrder | string;
559
+ convertedOrder?: IOrder | string;
560
+ quoteValidUntil?: Date;
523
561
  paymentStatus: PaymentStatusEnum;
524
562
  paymentMethod: PaymentMethodEnum;
525
563
  paymentGateway: PaymentGatewayEnum;
@@ -577,6 +615,7 @@ interface IAddress extends BaseEntity {
577
615
  email: string;
578
616
  phoneNumber: string;
579
617
  defaultAddress: boolean;
618
+ isResidential?: boolean;
580
619
  state: IState;
581
620
  country: ICountry;
582
621
  customer: ICustomer;
@@ -699,13 +738,16 @@ declare const EmailTemplateEventEnum: {
699
738
  readonly WELCOME: "WELCOME";
700
739
  readonly PASSWORD_RESET: "PASSWORD_RESET";
701
740
  readonly QUOTE: "QUOTE";
741
+ readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
742
+ readonly QUOTE_SENT: "QUOTE_SENT";
743
+ readonly QUOTE_DECLINED: "QUOTE_DECLINED";
702
744
  readonly INVOICE: "INVOICE";
703
745
  readonly PROMOTIONAL: "PROMOTIONAL";
704
746
  readonly CONTACT_US: "CONTACT_US";
705
747
  readonly NOTIFICATION: "NOTIFICATION";
706
748
  };
707
749
  type EmailTemplateEventEnum = (typeof EmailTemplateEventEnum)[keyof typeof EmailTemplateEventEnum];
708
- declare const EMAIL_TEMPLATE_EVENT_VALUES: ("ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "QUOTE" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US" | "NOTIFICATION")[];
750
+ declare const EMAIL_TEMPLATE_EVENT_VALUES: ("QUOTE" | "QUOTE_REQUESTED" | "QUOTE_DECLINED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "QUOTE_SENT" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US" | "NOTIFICATION")[];
709
751
  declare const WIRED_EMAIL_TEMPLATE_EVENTS: EmailTemplateEventEnum[];
710
752
  declare const EMAIL_TEMPLATE_VARIABLES_BY_EVENT: Partial<Record<EmailTemplateEventEnum, string[]>>;
711
753
  interface IEmailTemplate extends BaseEntity {
@@ -929,6 +971,16 @@ interface AddonAmountInput {
929
971
  }
930
972
  declare const addonUnitAmount: (addon: AddonAmountInput, baseUnitPrice: number) => number;
931
973
  declare const addonsUnitAmount: (addons: AddonAmountInput[], baseUnitPrice: number) => number;
974
+ interface PricedLineLike {
975
+ pricing?: {
976
+ baseUnitPrice?: number;
977
+ unitPrice?: number;
978
+ };
979
+ metaData?: unknown;
980
+ }
981
+ declare const addonsOfLine: (line: PricedLineLike) => AddonAmountInput[];
982
+ declare const baseUnitPriceOfLine: (line: PricedLineLike) => number | null;
983
+ declare const feeHint: (fee: IAppliedFee) => string;
932
984
 
933
985
  declare const OrderLogTypeEnum: {
934
986
  readonly ORDER_PLACED: "ORDER_PLACED";
@@ -1038,14 +1090,21 @@ interface StockDemandLine {
1038
1090
  quantity: number;
1039
1091
  }
1040
1092
  declare const demandByKey: (lines: StockDemandLine[]) => Map<string, number>;
1093
+ declare const StockVerdictEnum: {
1094
+ readonly OK: "OK";
1095
+ readonly OUT_OF_STOCK: "OUT_OF_STOCK";
1096
+ readonly INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK";
1097
+ };
1098
+ type StockVerdictType = (typeof StockVerdictEnum)[keyof typeof StockVerdictEnum];
1099
+ declare const STOCK_VERDICT_VALUES: ("OUT_OF_STOCK" | "OK" | "INSUFFICIENT_STOCK")[];
1041
1100
  type StockVerdict = {
1042
- type: "OK";
1101
+ type: typeof StockVerdictEnum.OK;
1043
1102
  } | {
1044
- type: "OUT_OF_STOCK";
1103
+ type: typeof StockVerdictEnum.OUT_OF_STOCK;
1045
1104
  available: 0;
1046
1105
  requested: number;
1047
1106
  } | {
1048
- type: "INSUFFICIENT_STOCK";
1107
+ type: typeof StockVerdictEnum.INSUFFICIENT_STOCK;
1049
1108
  available: number;
1050
1109
  requested: number;
1051
1110
  };
@@ -1058,7 +1117,7 @@ declare const CartStatusEnum: {
1058
1117
  readonly ABANDONED: "ABANDONED";
1059
1118
  };
1060
1119
  type CartStatusEnum = (typeof CartStatusEnum)[keyof typeof CartStatusEnum];
1061
- declare const CART_STATUS_VALUES: ("ACTIVE" | "CONVERTED" | "QUOTED" | "ABANDONED")[];
1120
+ declare const CART_STATUS_VALUES: ("QUOTED" | "ACTIVE" | "CONVERTED" | "ABANDONED")[];
1062
1121
  declare const RETIRED_CART_STATUSES: CartStatusEnum[];
1063
1122
  interface ICart extends BaseEntity {
1064
1123
  cartId: string;
@@ -1071,6 +1130,7 @@ interface ICart extends BaseEntity {
1071
1130
  pricing: ISummaryPricing;
1072
1131
  selectedShippingRate?: IShippingRate;
1073
1132
  status: CartStatusEnum;
1133
+ type: SaleType;
1074
1134
  order?: IOrder | string;
1075
1135
  convertedAt?: Date;
1076
1136
  quoteToken?: string;
@@ -1078,6 +1138,26 @@ interface ICart extends BaseEntity {
1078
1138
  quoteEmail?: string;
1079
1139
  sourceCart?: ICart | string;
1080
1140
  }
1141
+ declare const CartIssueTypes: {
1142
+ readonly ITEM_UNAVAILABLE: "ITEM_UNAVAILABLE";
1143
+ readonly OUT_OF_STOCK: "OUT_OF_STOCK";
1144
+ readonly INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK";
1145
+ readonly COUPON_INVALID: "COUPON_INVALID";
1146
+ };
1147
+ type CartIssueType = (typeof CartIssueTypes)[keyof typeof CartIssueTypes];
1148
+ declare const CART_ISSUE_TYPE_VALUES: ("OUT_OF_STOCK" | "INSUFFICIENT_STOCK" | "ITEM_UNAVAILABLE" | "COUPON_INVALID")[];
1149
+ interface CartIssue {
1150
+ type: CartIssueType;
1151
+ itemId?: string;
1152
+ name?: string;
1153
+ available?: number;
1154
+ requested?: number;
1155
+ message: string;
1156
+ }
1157
+ interface CartValidation {
1158
+ ok: boolean;
1159
+ issues: CartIssue[];
1160
+ }
1081
1161
 
1082
1162
  declare const SubscriptionChannelEnum: {
1083
1163
  readonly EMAIL: "EMAIL";
@@ -1291,6 +1371,7 @@ interface CheckoutAddressInput {
1291
1371
  phoneNumber: string;
1292
1372
  state?: string;
1293
1373
  country?: string;
1374
+ isResidential?: boolean;
1294
1375
  }
1295
1376
  interface CheckoutPayload {
1296
1377
  store: string;
@@ -1334,9 +1415,10 @@ declare const NotificationTypeEnum: {
1334
1415
  readonly REFUND: "REFUND";
1335
1416
  readonly ORDER_CANCELLED: "ORDER_CANCELLED";
1336
1417
  readonly ORDER_STATUS: "ORDER_STATUS";
1418
+ readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
1337
1419
  };
1338
1420
  type NotificationTypeEnum = (typeof NotificationTypeEnum)[keyof typeof NotificationTypeEnum];
1339
- declare const NOTIFICATION_TYPE_VALUES: ("REFUND" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "PAYMENT_SUCCEEDED" | "PAYMENT_FAILED" | "ORDER_STATUS")[];
1421
+ declare const NOTIFICATION_TYPE_VALUES: ("REFUND" | "QUOTE_REQUESTED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "PAYMENT_SUCCEEDED" | "PAYMENT_FAILED" | "ORDER_STATUS")[];
1340
1422
  declare const notificationTypeColorMap: Record<NotificationTypeEnum, string>;
1341
1423
  interface INotification extends BaseEntity {
1342
1424
  type: NotificationTypeEnum;
@@ -1360,4 +1442,4 @@ interface IWishlist extends BaseEntity {
1360
1442
  items: IWishlistItem[];
1361
1443
  }
1362
1444
 
1363
- export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ROLES, type AddonAmountInput, type AddonSelectionRef, type ApiResponse, type BaseEntity, type BundleGroup, type BundleLine, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_ERROR_CODE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CampaignRecipientStatusEnum, CampaignStatusEnum, CartStatusEnum, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, DEFAULT_SUBSCRIPTION_TOPICS, DiscountTypeEnum, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogCitation, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICategory, type ICompliance, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type IContent, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IDocumentation, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderTracking, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductOptionGroup, type IProductOptionValue, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITechSpec, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, MAX_BUNDLE_QUANTITY, type Metadata, NOTIFICATION_TYPE_VALUES, NotificationTypeEnum, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_EVENT_TYPE_VALUES, type Paginated, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolvedAddonSelection, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SoftDeleteFilter, type StockDemandLine, type StockStatus, type StockVerdict, SubscriptionChannelEnum, SubscriptionTopicEnum, TRANSACTION_TYPE_VALUES, TransactionTypeEnum, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, addonUnitAmount, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, bundleGroupsOf, bundleLineQuantity, bundleUnitFrom, canonicalizePath, canonicalizeSlug, conditionHolds, demandByKey, evaluateConfigurator, formatMoney, groupHasDefaultAddon, isConfigurationValid, normalizeBundleQuantity, normalizeLineQuantity, normalizePath, notificationTypeColorMap, orderByBundle, orderLogTypeColorMap, paymentGatewayColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, resolveAddonSelections, resolveProductAddonGroups, roundMoney, statusColors, stockVerdict, typeColorMap };
1445
+ export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ROLES, type AddonAmountInput, type AddonSelectionRef, type ApiResponse, type BaseEntity, type BundleGroup, type BundleLine, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_ISSUE_TYPE_VALUES, CART_STATUS_VALUES, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_ERROR_CODE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, DEFAULT_SUBSCRIPTION_TOPICS, DiscountTypeEnum, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogCitation, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICategory, type ICompliance, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type IContent, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IDocumentation, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderTracking, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductOptionGroup, type IProductOptionValue, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITechSpec, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, MAX_BUNDLE_QUANTITY, type Metadata, NOTIFICATION_TYPE_VALUES, NotificationTypeEnum, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_EVENT_TYPE_VALUES, PURCHASE_ORDER_STATUSES, type Paginated, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, QUOTE_ORDER_STATUSES, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolvedAddonSelection, SALE_TYPE_VALUES, STOCK_STATUS_VALUES, STOCK_VERDICT_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SoftDeleteFilter, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StockVerdictType, SubscriptionChannelEnum, SubscriptionTopicEnum, TRANSACTION_TYPE_VALUES, TransactionTypeEnum, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, bundleGroupsOf, bundleLineQuantity, bundleUnitFrom, canonicalizePath, canonicalizeSlug, conditionHolds, demandByKey, evaluateConfigurator, feeHint, formatMoney, groupHasDefaultAddon, isConfigurationValid, isQuoteOnlyItem, normalizeBundleQuantity, normalizeLineQuantity, normalizePath, notificationTypeColorMap, orderByBundle, orderLogTypeColorMap, paymentGatewayColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, resolveAddonSelections, resolveProductAddonGroups, roundMoney, saleTypeOf, statusColors, stockVerdict, toIdString, typeColorMap };
package/dist/index.d.ts CHANGED
@@ -134,6 +134,8 @@ interface IContent {
134
134
  applications: string;
135
135
  }
136
136
 
137
+ declare const toIdString: (value: unknown) => string;
138
+
137
139
  interface ICurrency extends BaseEntity {
138
140
  name: string;
139
141
  symbol: string;
@@ -240,7 +242,13 @@ interface ICategory extends BaseEntity {
240
242
  subCategories?: ICategory[];
241
243
  }
242
244
 
243
- type StockStatus = "IN_STOCK" | "LOW_STOCK" | "OUT_OF_STOCK";
245
+ declare const StockStatusEnum: {
246
+ readonly IN_STOCK: "IN_STOCK";
247
+ readonly LOW_STOCK: "LOW_STOCK";
248
+ readonly OUT_OF_STOCK: "OUT_OF_STOCK";
249
+ };
250
+ type StockStatus = (typeof StockStatusEnum)[keyof typeof StockStatusEnum];
251
+ declare const STOCK_STATUS_VALUES: ("IN_STOCK" | "LOW_STOCK" | "OUT_OF_STOCK")[];
244
252
  interface IStock extends BaseEntity {
245
253
  sku: string;
246
254
  product: IProduct;
@@ -260,10 +268,28 @@ declare const InventoryPolicyEnum: {
260
268
  type InventoryPolicy = (typeof InventoryPolicyEnum)[keyof typeof InventoryPolicyEnum];
261
269
  declare const INVENTORY_POLICY_VALUES: InventoryPolicy[];
262
270
 
271
+ declare const SaleTypeEnum: {
272
+ readonly DIRECT: "DIRECT";
273
+ readonly QUOTE: "QUOTE";
274
+ };
275
+ type SaleType = (typeof SaleTypeEnum)[keyof typeof SaleTypeEnum];
276
+ declare const SALE_TYPE_VALUES: SaleType[];
277
+
278
+ interface SaleTypedLike {
279
+ saleType?: SaleType;
280
+ metaData?: unknown;
281
+ price?: {
282
+ price?: number;
283
+ } | null;
284
+ }
285
+ declare const saleTypeOf: (item: SaleTypedLike | null | undefined) => SaleType;
286
+ declare const isQuoteOnlyItem: (item: SaleTypedLike | null | undefined) => boolean;
287
+
263
288
  interface IProductVariantFields {
264
289
  description: string;
265
290
  overview: string;
266
291
  price: IPrice;
292
+ saleType?: SaleType;
267
293
  quantity: number;
268
294
  inventoryPolicy: InventoryPolicy;
269
295
  brand: IBrand;
@@ -436,9 +462,10 @@ declare const PaymentStatusEnum: {
436
462
  readonly UNKNOWN: "UNKNOWN";
437
463
  readonly REFUNDED: "REFUNDED";
438
464
  readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
465
+ readonly NOT_REQUIRED: "NOT_REQUIRED";
439
466
  };
440
467
  type PaymentStatusEnum = (typeof PaymentStatusEnum)[keyof typeof PaymentStatusEnum];
441
- declare const PAYMENT_STATUS_VALUES: ("INITIATED" | "PENDING" | "PROCESSING" | "FAILED" | "CANCELLED" | "PENDING_CAPTURE" | "COMPLETED" | "VOIDED" | "REDIRECTED_TO_GATEWAY" | "UNKNOWN" | "REFUNDED" | "PARTIALLY_REFUNDED")[];
468
+ declare const PAYMENT_STATUS_VALUES: ("INITIATED" | "PENDING" | "PROCESSING" | "FAILED" | "CANCELLED" | "PENDING_CAPTURE" | "COMPLETED" | "VOIDED" | "REDIRECTED_TO_GATEWAY" | "UNKNOWN" | "REFUNDED" | "PARTIALLY_REFUNDED" | "NOT_REQUIRED")[];
442
469
  declare const paymentStatusColorMap: Record<PaymentStatusEnum, string>;
443
470
  declare const PaymentMethodEnum: {
444
471
  readonly CREDIT_CARD: "CREDIT_CARD";
@@ -504,10 +531,17 @@ declare const OrderStatusEnum: {
504
531
  readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
505
532
  readonly ARCHIVED: "ARCHIVED";
506
533
  readonly RETURNED: "RETURNED";
534
+ readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
535
+ readonly QUOTED: "QUOTED";
536
+ readonly QUOTE_ACCEPTED: "QUOTE_ACCEPTED";
537
+ readonly QUOTE_DECLINED: "QUOTE_DECLINED";
538
+ readonly QUOTE_EXPIRED: "QUOTE_EXPIRED";
507
539
  };
508
540
  type OrderStatusEnum = (typeof OrderStatusEnum)[keyof typeof OrderStatusEnum];
509
- declare const ORDER_STATUS_VALUES: ("PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "CREATED" | "RECEIVED" | "CONFIRMED" | "SHIPPED" | "DELIVERED" | "CANCELED" | "ARCHIVED" | "RETURNED")[];
541
+ declare const ORDER_STATUS_VALUES: ("PENDING" | "PROCESSING" | "FAILED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "CREATED" | "RECEIVED" | "CONFIRMED" | "SHIPPED" | "DELIVERED" | "CANCELED" | "ARCHIVED" | "RETURNED" | "QUOTE_REQUESTED" | "QUOTED" | "QUOTE_ACCEPTED" | "QUOTE_DECLINED" | "QUOTE_EXPIRED")[];
510
542
  declare const statusColors: Record<OrderStatusEnum, string>;
543
+ declare const PURCHASE_ORDER_STATUSES: OrderStatusEnum[];
544
+ declare const QUOTE_ORDER_STATUSES: OrderStatusEnum[];
511
545
  interface IOrderTracking {
512
546
  number: string;
513
547
  url: string;
@@ -520,6 +554,10 @@ interface IOrder extends BaseEntity {
520
554
  coupon: ICoupon;
521
555
  store: IStore;
522
556
  status: OrderStatusEnum;
557
+ type?: SaleType;
558
+ sourceQuote?: IOrder | string;
559
+ convertedOrder?: IOrder | string;
560
+ quoteValidUntil?: Date;
523
561
  paymentStatus: PaymentStatusEnum;
524
562
  paymentMethod: PaymentMethodEnum;
525
563
  paymentGateway: PaymentGatewayEnum;
@@ -577,6 +615,7 @@ interface IAddress extends BaseEntity {
577
615
  email: string;
578
616
  phoneNumber: string;
579
617
  defaultAddress: boolean;
618
+ isResidential?: boolean;
580
619
  state: IState;
581
620
  country: ICountry;
582
621
  customer: ICustomer;
@@ -699,13 +738,16 @@ declare const EmailTemplateEventEnum: {
699
738
  readonly WELCOME: "WELCOME";
700
739
  readonly PASSWORD_RESET: "PASSWORD_RESET";
701
740
  readonly QUOTE: "QUOTE";
741
+ readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
742
+ readonly QUOTE_SENT: "QUOTE_SENT";
743
+ readonly QUOTE_DECLINED: "QUOTE_DECLINED";
702
744
  readonly INVOICE: "INVOICE";
703
745
  readonly PROMOTIONAL: "PROMOTIONAL";
704
746
  readonly CONTACT_US: "CONTACT_US";
705
747
  readonly NOTIFICATION: "NOTIFICATION";
706
748
  };
707
749
  type EmailTemplateEventEnum = (typeof EmailTemplateEventEnum)[keyof typeof EmailTemplateEventEnum];
708
- declare const EMAIL_TEMPLATE_EVENT_VALUES: ("ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "QUOTE" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US" | "NOTIFICATION")[];
750
+ declare const EMAIL_TEMPLATE_EVENT_VALUES: ("QUOTE" | "QUOTE_REQUESTED" | "QUOTE_DECLINED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "QUOTE_SENT" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US" | "NOTIFICATION")[];
709
751
  declare const WIRED_EMAIL_TEMPLATE_EVENTS: EmailTemplateEventEnum[];
710
752
  declare const EMAIL_TEMPLATE_VARIABLES_BY_EVENT: Partial<Record<EmailTemplateEventEnum, string[]>>;
711
753
  interface IEmailTemplate extends BaseEntity {
@@ -929,6 +971,16 @@ interface AddonAmountInput {
929
971
  }
930
972
  declare const addonUnitAmount: (addon: AddonAmountInput, baseUnitPrice: number) => number;
931
973
  declare const addonsUnitAmount: (addons: AddonAmountInput[], baseUnitPrice: number) => number;
974
+ interface PricedLineLike {
975
+ pricing?: {
976
+ baseUnitPrice?: number;
977
+ unitPrice?: number;
978
+ };
979
+ metaData?: unknown;
980
+ }
981
+ declare const addonsOfLine: (line: PricedLineLike) => AddonAmountInput[];
982
+ declare const baseUnitPriceOfLine: (line: PricedLineLike) => number | null;
983
+ declare const feeHint: (fee: IAppliedFee) => string;
932
984
 
933
985
  declare const OrderLogTypeEnum: {
934
986
  readonly ORDER_PLACED: "ORDER_PLACED";
@@ -1038,14 +1090,21 @@ interface StockDemandLine {
1038
1090
  quantity: number;
1039
1091
  }
1040
1092
  declare const demandByKey: (lines: StockDemandLine[]) => Map<string, number>;
1093
+ declare const StockVerdictEnum: {
1094
+ readonly OK: "OK";
1095
+ readonly OUT_OF_STOCK: "OUT_OF_STOCK";
1096
+ readonly INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK";
1097
+ };
1098
+ type StockVerdictType = (typeof StockVerdictEnum)[keyof typeof StockVerdictEnum];
1099
+ declare const STOCK_VERDICT_VALUES: ("OUT_OF_STOCK" | "OK" | "INSUFFICIENT_STOCK")[];
1041
1100
  type StockVerdict = {
1042
- type: "OK";
1101
+ type: typeof StockVerdictEnum.OK;
1043
1102
  } | {
1044
- type: "OUT_OF_STOCK";
1103
+ type: typeof StockVerdictEnum.OUT_OF_STOCK;
1045
1104
  available: 0;
1046
1105
  requested: number;
1047
1106
  } | {
1048
- type: "INSUFFICIENT_STOCK";
1107
+ type: typeof StockVerdictEnum.INSUFFICIENT_STOCK;
1049
1108
  available: number;
1050
1109
  requested: number;
1051
1110
  };
@@ -1058,7 +1117,7 @@ declare const CartStatusEnum: {
1058
1117
  readonly ABANDONED: "ABANDONED";
1059
1118
  };
1060
1119
  type CartStatusEnum = (typeof CartStatusEnum)[keyof typeof CartStatusEnum];
1061
- declare const CART_STATUS_VALUES: ("ACTIVE" | "CONVERTED" | "QUOTED" | "ABANDONED")[];
1120
+ declare const CART_STATUS_VALUES: ("QUOTED" | "ACTIVE" | "CONVERTED" | "ABANDONED")[];
1062
1121
  declare const RETIRED_CART_STATUSES: CartStatusEnum[];
1063
1122
  interface ICart extends BaseEntity {
1064
1123
  cartId: string;
@@ -1071,6 +1130,7 @@ interface ICart extends BaseEntity {
1071
1130
  pricing: ISummaryPricing;
1072
1131
  selectedShippingRate?: IShippingRate;
1073
1132
  status: CartStatusEnum;
1133
+ type: SaleType;
1074
1134
  order?: IOrder | string;
1075
1135
  convertedAt?: Date;
1076
1136
  quoteToken?: string;
@@ -1078,6 +1138,26 @@ interface ICart extends BaseEntity {
1078
1138
  quoteEmail?: string;
1079
1139
  sourceCart?: ICart | string;
1080
1140
  }
1141
+ declare const CartIssueTypes: {
1142
+ readonly ITEM_UNAVAILABLE: "ITEM_UNAVAILABLE";
1143
+ readonly OUT_OF_STOCK: "OUT_OF_STOCK";
1144
+ readonly INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK";
1145
+ readonly COUPON_INVALID: "COUPON_INVALID";
1146
+ };
1147
+ type CartIssueType = (typeof CartIssueTypes)[keyof typeof CartIssueTypes];
1148
+ declare const CART_ISSUE_TYPE_VALUES: ("OUT_OF_STOCK" | "INSUFFICIENT_STOCK" | "ITEM_UNAVAILABLE" | "COUPON_INVALID")[];
1149
+ interface CartIssue {
1150
+ type: CartIssueType;
1151
+ itemId?: string;
1152
+ name?: string;
1153
+ available?: number;
1154
+ requested?: number;
1155
+ message: string;
1156
+ }
1157
+ interface CartValidation {
1158
+ ok: boolean;
1159
+ issues: CartIssue[];
1160
+ }
1081
1161
 
1082
1162
  declare const SubscriptionChannelEnum: {
1083
1163
  readonly EMAIL: "EMAIL";
@@ -1291,6 +1371,7 @@ interface CheckoutAddressInput {
1291
1371
  phoneNumber: string;
1292
1372
  state?: string;
1293
1373
  country?: string;
1374
+ isResidential?: boolean;
1294
1375
  }
1295
1376
  interface CheckoutPayload {
1296
1377
  store: string;
@@ -1334,9 +1415,10 @@ declare const NotificationTypeEnum: {
1334
1415
  readonly REFUND: "REFUND";
1335
1416
  readonly ORDER_CANCELLED: "ORDER_CANCELLED";
1336
1417
  readonly ORDER_STATUS: "ORDER_STATUS";
1418
+ readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
1337
1419
  };
1338
1420
  type NotificationTypeEnum = (typeof NotificationTypeEnum)[keyof typeof NotificationTypeEnum];
1339
- declare const NOTIFICATION_TYPE_VALUES: ("REFUND" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "PAYMENT_SUCCEEDED" | "PAYMENT_FAILED" | "ORDER_STATUS")[];
1421
+ declare const NOTIFICATION_TYPE_VALUES: ("REFUND" | "QUOTE_REQUESTED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "PAYMENT_SUCCEEDED" | "PAYMENT_FAILED" | "ORDER_STATUS")[];
1340
1422
  declare const notificationTypeColorMap: Record<NotificationTypeEnum, string>;
1341
1423
  interface INotification extends BaseEntity {
1342
1424
  type: NotificationTypeEnum;
@@ -1360,4 +1442,4 @@ interface IWishlist extends BaseEntity {
1360
1442
  items: IWishlistItem[];
1361
1443
  }
1362
1444
 
1363
- export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ROLES, type AddonAmountInput, type AddonSelectionRef, type ApiResponse, type BaseEntity, type BundleGroup, type BundleLine, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_ERROR_CODE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CampaignRecipientStatusEnum, CampaignStatusEnum, CartStatusEnum, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, DEFAULT_SUBSCRIPTION_TOPICS, DiscountTypeEnum, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogCitation, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICategory, type ICompliance, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type IContent, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IDocumentation, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderTracking, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductOptionGroup, type IProductOptionValue, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITechSpec, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, MAX_BUNDLE_QUANTITY, type Metadata, NOTIFICATION_TYPE_VALUES, NotificationTypeEnum, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_EVENT_TYPE_VALUES, type Paginated, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolvedAddonSelection, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SoftDeleteFilter, type StockDemandLine, type StockStatus, type StockVerdict, SubscriptionChannelEnum, SubscriptionTopicEnum, TRANSACTION_TYPE_VALUES, TransactionTypeEnum, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, addonUnitAmount, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, bundleGroupsOf, bundleLineQuantity, bundleUnitFrom, canonicalizePath, canonicalizeSlug, conditionHolds, demandByKey, evaluateConfigurator, formatMoney, groupHasDefaultAddon, isConfigurationValid, normalizeBundleQuantity, normalizeLineQuantity, normalizePath, notificationTypeColorMap, orderByBundle, orderLogTypeColorMap, paymentGatewayColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, resolveAddonSelections, resolveProductAddonGroups, roundMoney, statusColors, stockVerdict, typeColorMap };
1445
+ export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ROLES, type AddonAmountInput, type AddonSelectionRef, type ApiResponse, type BaseEntity, type BundleGroup, type BundleLine, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_ISSUE_TYPE_VALUES, CART_STATUS_VALUES, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_ERROR_CODE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, DEFAULT_SUBSCRIPTION_TOPICS, DiscountTypeEnum, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminCreate, type IAdminRoleType, type IAdminSafe, type IAdminUpdate, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogCitation, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICategory, type ICompliance, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type IContent, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IDocumentation, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderTracking, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductOptionGroup, type IProductOptionValue, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITechSpec, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, MAX_BUNDLE_QUANTITY, type Metadata, NOTIFICATION_TYPE_VALUES, NotificationTypeEnum, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_EVENT_TYPE_VALUES, PURCHASE_ORDER_STATUSES, type Paginated, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, QUOTE_ORDER_STATUSES, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolvedAddonSelection, SALE_TYPE_VALUES, STOCK_STATUS_VALUES, STOCK_VERDICT_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SoftDeleteFilter, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StockVerdictType, SubscriptionChannelEnum, SubscriptionTopicEnum, TRANSACTION_TYPE_VALUES, TransactionTypeEnum, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, bundleGroupsOf, bundleLineQuantity, bundleUnitFrom, canonicalizePath, canonicalizeSlug, conditionHolds, demandByKey, evaluateConfigurator, feeHint, formatMoney, groupHasDefaultAddon, isConfigurationValid, isQuoteOnlyItem, normalizeBundleQuantity, normalizeLineQuantity, normalizePath, notificationTypeColorMap, orderByBundle, orderLogTypeColorMap, paymentGatewayColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, resolveAddonSelections, resolveProductAddonGroups, roundMoney, saleTypeOf, statusColors, stockVerdict, toIdString, typeColorMap };