@fas-core/shared-types 1.0.94 → 1.0.101

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
@@ -21,23 +21,12 @@ interface ICountry extends BaseEntity {
21
21
  }
22
22
 
23
23
  type Id = Types.ObjectId | string;
24
- interface Paginated<T> {
25
- data: T[];
26
- total: number;
27
- page: number;
28
- limit: number;
29
- totalPages: number;
30
- }
31
24
  interface ApiResponse<T> {
32
25
  success: boolean;
33
26
  message: string;
34
27
  data?: T;
35
28
  error?: string;
36
29
  }
37
- interface SoftDeleteFilter {
38
- isDeleted?: boolean;
39
- deletedAt?: Date | null;
40
- }
41
30
 
42
31
  type Metadata = Record<string, unknown>;
43
32
  interface IKeyValue {
@@ -98,13 +87,6 @@ interface ISummaryPricing {
98
87
  totalAmount: number;
99
88
  currencyCode: string;
100
89
  }
101
- interface ITechSpec {
102
- group?: string;
103
- key: string;
104
- label: string;
105
- value?: unknown;
106
- values?: Metadata;
107
- }
108
90
  interface IShipping {
109
91
  weightLb: number;
110
92
  weightKg: number;
@@ -115,27 +97,13 @@ interface IShipping {
115
97
  heightIn: number;
116
98
  heightMm: number;
117
99
  }
118
- interface ICompliance {
119
- eccn: string;
120
- hts: number;
121
- unspsc: number;
122
- taa: string;
123
- stratCode: string;
124
- }
125
- interface IDocumentation {
126
- warranty: string[];
127
- infographics: string[];
128
- environment: string[];
129
- }
130
- interface IContent {
131
- overview: string;
132
- expertNote: string;
133
- keyFeatures: string[];
134
- applications: string;
135
- }
136
100
 
137
101
  declare const toIdString: (value: unknown) => string;
138
102
 
103
+ declare const isNonEmptyString: (value: unknown) => value is string;
104
+ declare const normalizeNumber: (value: unknown, fallback?: number) => number;
105
+ declare const isValidEmail: (email: unknown) => email is string;
106
+
139
107
  interface ICurrency extends BaseEntity {
140
108
  name: string;
141
109
  symbol: string;
@@ -248,7 +216,6 @@ declare const StockStatusEnum: {
248
216
  readonly OUT_OF_STOCK: "OUT_OF_STOCK";
249
217
  };
250
218
  type StockStatus = (typeof StockStatusEnum)[keyof typeof StockStatusEnum];
251
- declare const STOCK_STATUS_VALUES: ("IN_STOCK" | "LOW_STOCK" | "OUT_OF_STOCK")[];
252
219
  interface IStock extends BaseEntity {
253
220
  sku: string;
254
221
  product: IProduct;
@@ -308,7 +275,13 @@ interface IProductVariantFields {
308
275
  }
309
276
 
310
277
  type VariantOptionMode = "OPTION_BACKED" | "MANUAL";
311
- type ProductVariantType = "SINGLE" | "OPTION_BACKED" | "MANUAL";
278
+ declare const ProductVariantTypeEnum: {
279
+ readonly SINGLE: "SINGLE";
280
+ readonly OPTION_BACKED: "OPTION_BACKED";
281
+ readonly MANUAL: "MANUAL";
282
+ };
283
+ type ProductVariantType = (typeof ProductVariantTypeEnum)[keyof typeof ProductVariantTypeEnum];
284
+ declare const PRODUCT_VARIANT_TYPE_VALUES: ("OPTION_BACKED" | "MANUAL" | "SINGLE")[];
312
285
  interface IProductVariantOptionValue {
313
286
  id?: string;
314
287
  valueKey: string;
@@ -336,21 +309,6 @@ interface IVariantOptionSelection {
336
309
  valueLabel: string;
337
310
  sortOrder: number;
338
311
  }
339
- interface IProductOptionGroup extends BaseEntity {
340
- product: IProduct;
341
- optionKey: string;
342
- name: string;
343
- sortOrder: number;
344
- status: boolean;
345
- }
346
- interface IProductOptionValue extends BaseEntity {
347
- product: IProduct;
348
- group: IProductOptionGroup;
349
- valueKey: string;
350
- label: string;
351
- sortOrder: number;
352
- status: boolean;
353
- }
354
312
 
355
313
  interface IVariant extends BaseEntity, IProductVariantFields {
356
314
  name: string;
@@ -461,6 +419,7 @@ declare const PaymentStatusEnum: {
461
419
  };
462
420
  type PaymentStatusEnum = (typeof PaymentStatusEnum)[keyof typeof PaymentStatusEnum];
463
421
  declare const PAYMENT_STATUS_VALUES: ("INITIATED" | "PENDING" | "PROCESSING" | "FAILED" | "CANCELLED" | "PENDING_CAPTURE" | "COMPLETED" | "VOIDED" | "REDIRECTED_TO_GATEWAY" | "UNKNOWN" | "REFUNDED" | "PARTIALLY_REFUNDED" | "NOT_REQUIRED")[];
422
+ declare const AWAITING_PAYMENT_STATUSES: PaymentStatusEnum[];
464
423
  declare const paymentStatusColorMap: Record<PaymentStatusEnum, string>;
465
424
  declare const PaymentMethodEnum: {
466
425
  readonly CREDIT_CARD: "CREDIT_CARD";
@@ -481,7 +440,6 @@ declare const PaymentGatewayEnum: {
481
440
  };
482
441
  type PaymentGatewayEnum = (typeof PaymentGatewayEnum)[keyof typeof PaymentGatewayEnum];
483
442
  declare const PAYMENT_GATEWAY_VALUES: ("MANUAL" | "PAYPAL" | "STRIPE" | "BRAINTREE")[];
484
- declare const paymentGatewayColorMap: Record<PaymentGatewayEnum, string>;
485
443
  declare const TransactionTypeEnum: {
486
444
  readonly ORDER: "ORDER";
487
445
  readonly REFUND: "REFUND";
@@ -491,17 +449,18 @@ declare const TRANSACTION_TYPE_VALUES: ("ORDER" | "REFUND")[];
491
449
  declare const typeColorMap: Record<TransactionTypeEnum, string>;
492
450
  interface ITransactionBase extends BaseEntity {
493
451
  order: IOrder;
452
+ store: IStore | string;
494
453
  currency: ICurrency;
495
454
  transactionId: string;
496
455
  amount: number;
497
456
  status: PaymentStatusEnum;
498
457
  paymentMethod: PaymentMethodEnum;
499
- gateway?: PaymentGatewayEnum;
458
+ gateway: PaymentGatewayEnum;
500
459
  gatewayId?: string;
501
- metaData?: Metadata;
460
+ metaData: Metadata;
502
461
  comment?: string;
503
- isPaymentLink?: boolean;
504
- refundedAmount?: number;
462
+ isPaymentLink: boolean;
463
+ refundedAmount: number;
505
464
  proofFileId?: string;
506
465
  }
507
466
  interface IOrderTransaction extends ITransactionBase {
@@ -536,6 +495,7 @@ type OrderStatusEnum = (typeof OrderStatusEnum)[keyof typeof OrderStatusEnum];
536
495
  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")[];
537
496
  declare const statusColors: Record<OrderStatusEnum, string>;
538
497
  declare const PURCHASE_ORDER_STATUSES: OrderStatusEnum[];
498
+ declare const OPEN_ORDER_STATUSES: OrderStatusEnum[];
539
499
  declare const QUOTE_ORDER_STATUSES: OrderStatusEnum[];
540
500
  interface IOrder extends BaseEntity {
541
501
  orderId: string;
@@ -610,8 +570,153 @@ interface IAddress extends BaseEntity {
610
570
  customer: ICustomer;
611
571
  }
612
572
 
613
- type IAdminRoleType = 'Admin' | 'Super Admin' | 'Cashier' | 'Manager' | 'CEO' | 'Driver' | 'Security Guard' | 'Accountant';
614
- declare const ADMIN_ROLES: IAdminRoleType[];
573
+ declare const ADMIN_RESOURCE_LIST: readonly [{
574
+ readonly value: "dashboard";
575
+ readonly label: "Dashboard";
576
+ readonly group: "Overview";
577
+ }, {
578
+ readonly value: "metrics";
579
+ readonly label: "Metrics";
580
+ readonly group: "Overview";
581
+ }, {
582
+ readonly value: "products";
583
+ readonly label: "Products";
584
+ readonly group: "Catalog";
585
+ }, {
586
+ readonly value: "categories";
587
+ readonly label: "Categories";
588
+ readonly group: "Catalog";
589
+ }, {
590
+ readonly value: "brands";
591
+ readonly label: "Brands";
592
+ readonly group: "Catalog";
593
+ }, {
594
+ readonly value: "technical-specs";
595
+ readonly label: "Technical Specs";
596
+ readonly group: "Catalog";
597
+ }, {
598
+ readonly value: "addon-configs";
599
+ readonly label: "Addon Configs";
600
+ readonly group: "Catalog";
601
+ }, {
602
+ readonly value: "relation-groups";
603
+ readonly label: "Relation Groups";
604
+ readonly group: "Catalog";
605
+ }, {
606
+ readonly value: "configurators";
607
+ readonly label: "Configurators";
608
+ readonly group: "Catalog";
609
+ }, {
610
+ readonly value: "orders";
611
+ readonly label: "Orders";
612
+ readonly group: "Commerce";
613
+ }, {
614
+ readonly value: "quotes";
615
+ readonly label: "Quotes";
616
+ readonly group: "Commerce";
617
+ }, {
618
+ readonly value: "carts";
619
+ readonly label: "Carts";
620
+ readonly group: "Commerce";
621
+ }, {
622
+ readonly value: "transactions";
623
+ readonly label: "Transactions";
624
+ readonly group: "Commerce";
625
+ }, {
626
+ readonly value: "coupons";
627
+ readonly label: "Coupons";
628
+ readonly group: "Commerce";
629
+ }, {
630
+ readonly value: "store-fees";
631
+ readonly label: "Store Fees";
632
+ readonly group: "Commerce";
633
+ }, {
634
+ readonly value: "customers";
635
+ readonly label: "Customers";
636
+ readonly group: "People";
637
+ }, {
638
+ readonly value: "contact-us";
639
+ readonly label: "Contact Requests";
640
+ readonly group: "People";
641
+ }, {
642
+ readonly value: "subscribers";
643
+ readonly label: "Subscribers";
644
+ readonly group: "People";
645
+ }, {
646
+ readonly value: "blog";
647
+ readonly label: "Blog";
648
+ readonly group: "Content";
649
+ }, {
650
+ readonly value: "faqs";
651
+ readonly label: "FAQs";
652
+ readonly group: "Content";
653
+ }, {
654
+ readonly value: "podcast";
655
+ readonly label: "Podcast";
656
+ readonly group: "Content";
657
+ }, {
658
+ readonly value: "email-templates";
659
+ readonly label: "Email Templates";
660
+ readonly group: "Content";
661
+ }, {
662
+ readonly value: "notifications";
663
+ readonly label: "Notifications";
664
+ readonly group: "Content";
665
+ }, {
666
+ readonly value: "campaigns";
667
+ readonly label: "Campaigns";
668
+ readonly group: "Content";
669
+ }, {
670
+ readonly value: "stores";
671
+ readonly label: "Stores";
672
+ readonly group: "Settings";
673
+ }, {
674
+ readonly value: "currencies";
675
+ readonly label: "Currencies";
676
+ readonly group: "Settings";
677
+ }, {
678
+ readonly value: "redirects";
679
+ readonly label: "Redirects";
680
+ readonly group: "Settings";
681
+ }, {
682
+ readonly value: "cache";
683
+ readonly label: "Cache";
684
+ readonly group: "Settings";
685
+ }, {
686
+ readonly value: "admins";
687
+ readonly label: "Admins";
688
+ readonly group: "Settings";
689
+ }, {
690
+ readonly value: "account";
691
+ readonly label: "Account";
692
+ readonly group: "Settings";
693
+ }];
694
+ declare const ADMIN_RESOURCES: ("stores" | "dashboard" | "metrics" | "products" | "categories" | "brands" | "technical-specs" | "addon-configs" | "relation-groups" | "configurators" | "orders" | "quotes" | "carts" | "transactions" | "coupons" | "store-fees" | "customers" | "contact-us" | "subscribers" | "blog" | "faqs" | "podcast" | "email-templates" | "notifications" | "campaigns" | "currencies" | "redirects" | "cache" | "admins" | "account")[];
695
+ type IAdminResource = (typeof ADMIN_RESOURCE_LIST)[number]['value'];
696
+ declare const ADMIN_ACTIONS: readonly ["read", "write", "delete"];
697
+ type IAdminBaseAction = (typeof ADMIN_ACTIONS)[number];
698
+ declare const RESOURCE_OPERATIONS: Partial<Record<IAdminResource, readonly string[]>>;
699
+ type IAdminAction = IAdminBaseAction | string;
700
+ declare const actionsForResource: (resource: IAdminResource) => IAdminAction[];
701
+ declare const isValidAction: (resource: IAdminResource, action: string) => boolean;
702
+ interface IAdminPermission {
703
+ resource: IAdminResource;
704
+ actions: IAdminAction[];
705
+ }
706
+ interface IAdminStoreAccess {
707
+ store: string;
708
+ role?: string | null;
709
+ extras: IAdminPermission[];
710
+ }
711
+ interface IAdminRole extends BaseEntity {
712
+ key: string;
713
+ name: string;
714
+ description: string;
715
+ permissions: IAdminPermission[];
716
+ isSuperAdmin: boolean;
717
+ isSystem: boolean;
718
+ }
719
+ type IAdminRoleCreate = Omit<IAdminRole, keyof BaseEntity>;
615
720
  interface IAdmin extends BaseEntity {
616
721
  firstName: string;
617
722
  lastName: string;
@@ -619,15 +724,57 @@ interface IAdmin extends BaseEntity {
619
724
  phoneNumber: string;
620
725
  status: boolean;
621
726
  password: string;
622
- role: IAdminRoleType;
727
+ role: string;
623
728
  access_list: string[];
729
+ storeAccess: IAdminStoreAccess[];
730
+ resetPasswordTokenHash?: string;
731
+ resetPasswordTokenExpiresAt?: Date | null;
624
732
  joiningDate: Date;
625
733
  profileImage: string;
626
734
  lastLogin: Date;
627
735
  }
628
- type IAdminCreate = Omit<IAdmin, keyof BaseEntity>;
629
- type IAdminUpdate = Partial<IAdminCreate>;
630
736
  type IAdminSafe = Omit<IAdmin, 'password'>;
737
+ declare const ADMIN_AUDIT_ACTIONS: readonly ["role.create", "role.update", "role.delete", "admin.create", "admin.role", "admin.grants", "admin.status", "admin.delete"];
738
+ type IAdminAuditAction = (typeof ADMIN_AUDIT_ACTIONS)[number];
739
+ interface IAdminAuditLog extends BaseEntity {
740
+ actor: IAdmin | string;
741
+ actorName: string;
742
+ action: IAdminAuditAction;
743
+ targetAdmin?: IAdmin | string | null;
744
+ targetRole?: IAdminRole | string | null;
745
+ store?: string | null;
746
+ summary: string;
747
+ before?: Record<string, unknown> | null;
748
+ after?: Record<string, unknown> | null;
749
+ }
750
+
751
+ interface EffectiveAccess {
752
+ isSuperAdmin: boolean;
753
+ permissions: Record<string, string[]>;
754
+ }
755
+ interface ResolveAccessInput {
756
+ role?: string | null;
757
+ storeAccess?: IAdminStoreAccess[];
758
+ roles: Record<string, Pick<IAdminRole, 'permissions' | 'isSuperAdmin'>>;
759
+ storeId?: string | null;
760
+ }
761
+ declare const EMPTY_ACCESS: EffectiveAccess;
762
+ declare const resolveEffectivePermissions: (input: ResolveAccessInput) => EffectiveAccess;
763
+ declare const can: (access: EffectiveAccess, resource: IAdminResource, action: IAdminAction) => boolean;
764
+ declare const canAny: (access: EffectiveAccess, resource: IAdminResource) => boolean;
765
+ declare const grantedPermissions: (access: EffectiveAccess) => IAdminPermission[];
766
+ declare const missingGrants: (actor: EffectiveAccess, requested: IAdminPermission[]) => string[];
767
+ declare const ALL_STORES = "*";
768
+ interface StoreScopeInput {
769
+ role?: string | null;
770
+ storeAccess?: IAdminStoreAccess[];
771
+ roles: Record<string, Pick<IAdminRole, 'permissions' | 'isSuperAdmin'>>;
772
+ }
773
+ declare const resolveStoreScope: (input: StoreScopeInput) => string[] | null;
774
+ interface StoreAccessCheckInput extends StoreScopeInput {
775
+ storeId?: string | null;
776
+ }
777
+ declare const hasStoreAccess: (input: StoreAccessCheckInput) => boolean;
631
778
 
632
779
  interface IContact extends BaseEntity {
633
780
  firstName: string;
@@ -793,7 +940,6 @@ declare const ConfiguratorErrorCodeEnum: {
793
940
  readonly RULES_UNSTABLE: "RULES_UNSTABLE";
794
941
  };
795
942
  type ConfiguratorErrorCodeEnum = (typeof ConfiguratorErrorCodeEnum)[keyof typeof ConfiguratorErrorCodeEnum];
796
- declare const CONFIGURATOR_ERROR_CODE_VALUES: ("REQUIRED_SECTION_EMPTY" | "OPTION_NOT_AVAILABLE" | "SECTION_NOT_AVAILABLE" | "UNKNOWN_SECTION" | "SINGLE_SELECT_OVERFILLED" | "RULES_UNSTABLE")[];
797
943
  interface IConfiguratorQuery {
798
944
  search?: string;
799
945
  categories?: string[];
@@ -1036,8 +1182,6 @@ declare const StockVerdictEnum: {
1036
1182
  readonly OUT_OF_STOCK: "OUT_OF_STOCK";
1037
1183
  readonly INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK";
1038
1184
  };
1039
- type StockVerdictType = (typeof StockVerdictEnum)[keyof typeof StockVerdictEnum];
1040
- declare const STOCK_VERDICT_VALUES: ("OUT_OF_STOCK" | "OK" | "INSUFFICIENT_STOCK")[];
1041
1185
  type StockVerdict = {
1042
1186
  type: typeof StockVerdictEnum.OK;
1043
1187
  } | {
@@ -1086,7 +1230,6 @@ declare const CartIssueTypes: {
1086
1230
  readonly COUPON_INVALID: "COUPON_INVALID";
1087
1231
  };
1088
1232
  type CartIssueType = (typeof CartIssueTypes)[keyof typeof CartIssueTypes];
1089
- declare const CART_ISSUE_TYPE_VALUES: ("OUT_OF_STOCK" | "INSUFFICIENT_STOCK" | "ITEM_UNAVAILABLE" | "COUPON_INVALID")[];
1090
1233
  interface CartIssue {
1091
1234
  type: CartIssueType;
1092
1235
  itemId?: string;
@@ -1338,7 +1481,6 @@ declare const ProductEventTypeEnum: {
1338
1481
  readonly PURCHASE: "purchase";
1339
1482
  };
1340
1483
  type ProductEventTypeEnum = (typeof ProductEventTypeEnum)[keyof typeof ProductEventTypeEnum];
1341
- declare const PRODUCT_EVENT_TYPE_VALUES: ("view" | "add_to_cart" | "purchase")[];
1342
1484
  interface IProductDailyStat extends BaseEntity {
1343
1485
  product: IProduct | string;
1344
1486
  store?: IStore | string | null;
@@ -1360,7 +1502,6 @@ declare const NotificationTypeEnum: {
1360
1502
  };
1361
1503
  type NotificationTypeEnum = (typeof NotificationTypeEnum)[keyof typeof NotificationTypeEnum];
1362
1504
  declare const NOTIFICATION_TYPE_VALUES: ("REFUND" | "QUOTE_REQUESTED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "PAYMENT_SUCCEEDED" | "PAYMENT_FAILED" | "ORDER_STATUS")[];
1363
- declare const notificationTypeColorMap: Record<NotificationTypeEnum, string>;
1364
1505
  interface INotification extends BaseEntity {
1365
1506
  type: NotificationTypeEnum;
1366
1507
  title: string;
@@ -1383,4 +1524,4 @@ interface IWishlist extends BaseEntity {
1383
1524
  items: IWishlistItem[];
1384
1525
  }
1385
1526
 
1386
- export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ROLES, type AddonAmountInput, type AddonSelectionRef, type ApiResponse, type BaseEntity, 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 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, 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, canonicalizePath, canonicalizeSlug, conditionHolds, demandByKey, evaluateConfigurator, feeHint, formatMoney, groupHasDefaultAddon, isConfigurationValid, isQuoteOnlyItem, normalizeLineQuantity, normalizePath, notificationTypeColorMap, orderLogTypeColorMap, paymentGatewayColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, resolveAddonSelections, resolveProductAddonGroups, roundMoney, saleTypeOf, statusColors, stockVerdict, toIdString, typeColorMap };
1527
+ export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AWAITING_PAYMENT_STATUSES, type AddonAmountInput, type AddonSelectionRef, type ApiResponse, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_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, EMPTY_ACCESS, type EffectiveAccess, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminAction, type IAdminAuditAction, type IAdminAuditLog, type IAdminBaseAction, type IAdminPermission, type IAdminResource, type IAdminRole, type IAdminRoleCreate, type IAdminSafe, type IAdminStoreAccess, 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 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 ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, 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 ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type Metadata, NOTIFICATION_TYPE_VALUES, NotificationTypeEnum, OPEN_ORDER_STATUSES, 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_VARIANT_TYPE_VALUES, PURCHASE_ORDER_STATUSES, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, ProductVariantTypeEnum, QUOTE_ORDER_STATUSES, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, SALE_TYPE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, TRANSACTION_TYPE_VALUES, TransactionTypeEnum, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, can, canAny, canonicalizePath, canonicalizeSlug, conditionHolds, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, missingGrants, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveStoreScope, roundMoney, saleTypeOf, statusColors, stockVerdict, toIdString, typeColorMap };