@fas-core/shared-types 1.0.129 → 1.0.131
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 +63 -1
- package/dist/index.d.ts +63 -1
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -686,6 +686,32 @@ interface AppliedTax {
|
|
|
686
686
|
shippingTaxable: boolean;
|
|
687
687
|
cartFingerprint?: string;
|
|
688
688
|
}
|
|
689
|
+
declare const SAVED_CART_TTL_DAYS = 30;
|
|
690
|
+
interface SavedCartLine {
|
|
691
|
+
name: string;
|
|
692
|
+
sku: string;
|
|
693
|
+
quantity: number;
|
|
694
|
+
quoteOnly: boolean;
|
|
695
|
+
savedUnitPrice: number;
|
|
696
|
+
currentUnitPrice: number | null;
|
|
697
|
+
lineTotal: number;
|
|
698
|
+
currentLineTotal: number;
|
|
699
|
+
}
|
|
700
|
+
interface SavedCartSummary {
|
|
701
|
+
cartId: string;
|
|
702
|
+
type: SaleType;
|
|
703
|
+
quoteToken: string | null;
|
|
704
|
+
quoteEmail: string | null;
|
|
705
|
+
itemCount: number;
|
|
706
|
+
quantity: number;
|
|
707
|
+
total: number;
|
|
708
|
+
currentTotal: number;
|
|
709
|
+
priceChanges: number;
|
|
710
|
+
currencyCode: string;
|
|
711
|
+
createdAt: string | Date | null;
|
|
712
|
+
expiresAt: string | Date | null;
|
|
713
|
+
lines: SavedCartLine[];
|
|
714
|
+
}
|
|
689
715
|
|
|
690
716
|
interface IOrderItem extends BaseEntity {
|
|
691
717
|
order: IOrder;
|
|
@@ -6798,4 +6824,40 @@ interface IWishlist extends BaseEntity {
|
|
|
6798
6824
|
items: IWishlistItem[];
|
|
6799
6825
|
}
|
|
6800
6826
|
|
|
6801
|
-
|
|
6827
|
+
declare const SitemapPartKindEnum: {
|
|
6828
|
+
readonly PRODUCTS: "PRODUCTS";
|
|
6829
|
+
readonly CATEGORIES: "CATEGORIES";
|
|
6830
|
+
readonly BRANDS: "BRANDS";
|
|
6831
|
+
readonly BLOG_POSTS: "BLOG_POSTS";
|
|
6832
|
+
readonly BLOG_CATEGORIES: "BLOG_CATEGORIES";
|
|
6833
|
+
readonly FAQS: "FAQS";
|
|
6834
|
+
readonly FAQ_CATEGORIES: "FAQ_CATEGORIES";
|
|
6835
|
+
readonly PODCAST_EPISODES: "PODCAST_EPISODES";
|
|
6836
|
+
};
|
|
6837
|
+
type SitemapPartKindEnum = (typeof SitemapPartKindEnum)[keyof typeof SitemapPartKindEnum];
|
|
6838
|
+
declare const SITEMAP_PART_KIND_VALUES: ("PRODUCTS" | "CATEGORIES" | "BRANDS" | "BLOG_POSTS" | "BLOG_CATEGORIES" | "FAQS" | "FAQ_CATEGORIES" | "PODCAST_EPISODES")[];
|
|
6839
|
+
declare const SITEMAP_MANIFEST_ID = "manifest";
|
|
6840
|
+
declare const SITEMAP_MANIFESTS_COLLECTION = "sitemapmanifests";
|
|
6841
|
+
declare const SITEMAP_PARTS_COLLECTION = "sitemapparts";
|
|
6842
|
+
interface ISitemapManifest extends Omit<BaseEntity, "_id"> {
|
|
6843
|
+
_id: string;
|
|
6844
|
+
build: string;
|
|
6845
|
+
parts: Record<string, Partial<Record<SitemapPartKindEnum, number>>>;
|
|
6846
|
+
builtAt: Date | null;
|
|
6847
|
+
buildingAt?: Date | null;
|
|
6848
|
+
}
|
|
6849
|
+
interface ISitemapPart extends Omit<BaseEntity, "_id"> {
|
|
6850
|
+
_id: string;
|
|
6851
|
+
build: string;
|
|
6852
|
+
kind: SitemapPartKindEnum;
|
|
6853
|
+
entries: string;
|
|
6854
|
+
}
|
|
6855
|
+
interface SitemapEntryKey {
|
|
6856
|
+
key: string;
|
|
6857
|
+
lastmod: string;
|
|
6858
|
+
}
|
|
6859
|
+
declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartKindEnum, index: number) => string;
|
|
6860
|
+
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
6861
|
+
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
6862
|
+
|
|
6863
|
+
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_COLORS, CASE_STATUS_LABELS, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, COMPANY_MAX_LENGTH, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, 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 IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, 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 INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, 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 IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type ISitemapManifest, type ISitemapPart, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, MIN_PASSWORD_LENGTH, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, type QuoteRequestResult, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, categoryFields, chargesOfLine, companyNameOf, conditionHolds, couponFields, customerFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, isValidPassword, isValidPhone, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, parseSitemapEntries, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, sitemapEntryLine, sitemapPartId, statusColors, statusTone, statusTones, stockVerdict, syncOwnerFor, toIdString, trimmedText, typeColorMap };
|
package/dist/index.d.ts
CHANGED
|
@@ -686,6 +686,32 @@ interface AppliedTax {
|
|
|
686
686
|
shippingTaxable: boolean;
|
|
687
687
|
cartFingerprint?: string;
|
|
688
688
|
}
|
|
689
|
+
declare const SAVED_CART_TTL_DAYS = 30;
|
|
690
|
+
interface SavedCartLine {
|
|
691
|
+
name: string;
|
|
692
|
+
sku: string;
|
|
693
|
+
quantity: number;
|
|
694
|
+
quoteOnly: boolean;
|
|
695
|
+
savedUnitPrice: number;
|
|
696
|
+
currentUnitPrice: number | null;
|
|
697
|
+
lineTotal: number;
|
|
698
|
+
currentLineTotal: number;
|
|
699
|
+
}
|
|
700
|
+
interface SavedCartSummary {
|
|
701
|
+
cartId: string;
|
|
702
|
+
type: SaleType;
|
|
703
|
+
quoteToken: string | null;
|
|
704
|
+
quoteEmail: string | null;
|
|
705
|
+
itemCount: number;
|
|
706
|
+
quantity: number;
|
|
707
|
+
total: number;
|
|
708
|
+
currentTotal: number;
|
|
709
|
+
priceChanges: number;
|
|
710
|
+
currencyCode: string;
|
|
711
|
+
createdAt: string | Date | null;
|
|
712
|
+
expiresAt: string | Date | null;
|
|
713
|
+
lines: SavedCartLine[];
|
|
714
|
+
}
|
|
689
715
|
|
|
690
716
|
interface IOrderItem extends BaseEntity {
|
|
691
717
|
order: IOrder;
|
|
@@ -6798,4 +6824,40 @@ interface IWishlist extends BaseEntity {
|
|
|
6798
6824
|
items: IWishlistItem[];
|
|
6799
6825
|
}
|
|
6800
6826
|
|
|
6801
|
-
|
|
6827
|
+
declare const SitemapPartKindEnum: {
|
|
6828
|
+
readonly PRODUCTS: "PRODUCTS";
|
|
6829
|
+
readonly CATEGORIES: "CATEGORIES";
|
|
6830
|
+
readonly BRANDS: "BRANDS";
|
|
6831
|
+
readonly BLOG_POSTS: "BLOG_POSTS";
|
|
6832
|
+
readonly BLOG_CATEGORIES: "BLOG_CATEGORIES";
|
|
6833
|
+
readonly FAQS: "FAQS";
|
|
6834
|
+
readonly FAQ_CATEGORIES: "FAQ_CATEGORIES";
|
|
6835
|
+
readonly PODCAST_EPISODES: "PODCAST_EPISODES";
|
|
6836
|
+
};
|
|
6837
|
+
type SitemapPartKindEnum = (typeof SitemapPartKindEnum)[keyof typeof SitemapPartKindEnum];
|
|
6838
|
+
declare const SITEMAP_PART_KIND_VALUES: ("PRODUCTS" | "CATEGORIES" | "BRANDS" | "BLOG_POSTS" | "BLOG_CATEGORIES" | "FAQS" | "FAQ_CATEGORIES" | "PODCAST_EPISODES")[];
|
|
6839
|
+
declare const SITEMAP_MANIFEST_ID = "manifest";
|
|
6840
|
+
declare const SITEMAP_MANIFESTS_COLLECTION = "sitemapmanifests";
|
|
6841
|
+
declare const SITEMAP_PARTS_COLLECTION = "sitemapparts";
|
|
6842
|
+
interface ISitemapManifest extends Omit<BaseEntity, "_id"> {
|
|
6843
|
+
_id: string;
|
|
6844
|
+
build: string;
|
|
6845
|
+
parts: Record<string, Partial<Record<SitemapPartKindEnum, number>>>;
|
|
6846
|
+
builtAt: Date | null;
|
|
6847
|
+
buildingAt?: Date | null;
|
|
6848
|
+
}
|
|
6849
|
+
interface ISitemapPart extends Omit<BaseEntity, "_id"> {
|
|
6850
|
+
_id: string;
|
|
6851
|
+
build: string;
|
|
6852
|
+
kind: SitemapPartKindEnum;
|
|
6853
|
+
entries: string;
|
|
6854
|
+
}
|
|
6855
|
+
interface SitemapEntryKey {
|
|
6856
|
+
key: string;
|
|
6857
|
+
lastmod: string;
|
|
6858
|
+
}
|
|
6859
|
+
declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartKindEnum, index: number) => string;
|
|
6860
|
+
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
6861
|
+
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
6862
|
+
|
|
6863
|
+
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_COLORS, CASE_STATUS_LABELS, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, COMPANY_MAX_LENGTH, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, 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 IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, 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 INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, 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 IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type ISitemapManifest, type ISitemapPart, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, MIN_PASSWORD_LENGTH, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, type QuoteRequestResult, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, categoryFields, chargesOfLine, companyNameOf, conditionHolds, couponFields, customerFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, isValidPassword, isValidPhone, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, parseSitemapEntries, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, sitemapEntryLine, sitemapPartId, statusColors, statusTone, statusTones, stockVerdict, syncOwnerFor, toIdString, trimmedText, typeColorMap };
|
package/dist/index.js
CHANGED
|
@@ -123,12 +123,18 @@ __export(index_exports, {
|
|
|
123
123
|
RESOURCE_OPERATIONS: () => RESOURCE_OPERATIONS,
|
|
124
124
|
RETIRED_CART_STATUSES: () => RETIRED_CART_STATUSES,
|
|
125
125
|
SALE_TYPE_VALUES: () => SALE_TYPE_VALUES,
|
|
126
|
+
SAVED_CART_TTL_DAYS: () => SAVED_CART_TTL_DAYS,
|
|
126
127
|
SERVICE_PLAN_ELIGIBILITY_FIELD: () => SERVICE_PLAN_ELIGIBILITY_FIELD,
|
|
128
|
+
SITEMAP_MANIFESTS_COLLECTION: () => SITEMAP_MANIFESTS_COLLECTION,
|
|
129
|
+
SITEMAP_MANIFEST_ID: () => SITEMAP_MANIFEST_ID,
|
|
130
|
+
SITEMAP_PARTS_COLLECTION: () => SITEMAP_PARTS_COLLECTION,
|
|
131
|
+
SITEMAP_PART_KIND_VALUES: () => SITEMAP_PART_KIND_VALUES,
|
|
127
132
|
STATUS_TONE_VALUES: () => STATUS_TONE_VALUES,
|
|
128
133
|
SUBSCRIPTION_CHANNEL_VALUES: () => SUBSCRIPTION_CHANNEL_VALUES,
|
|
129
134
|
SUBSCRIPTION_TOPIC_LABELS: () => SUBSCRIPTION_TOPIC_LABELS,
|
|
130
135
|
SUBSCRIPTION_TOPIC_VALUES: () => SUBSCRIPTION_TOPIC_VALUES,
|
|
131
136
|
SaleTypeEnum: () => SaleTypeEnum,
|
|
137
|
+
SitemapPartKindEnum: () => SitemapPartKindEnum,
|
|
132
138
|
StatusToneEnum: () => StatusToneEnum,
|
|
133
139
|
StockStatusEnum: () => StockStatusEnum,
|
|
134
140
|
StockVerdictEnum: () => StockVerdictEnum,
|
|
@@ -194,6 +200,7 @@ __export(index_exports, {
|
|
|
194
200
|
normalizeNumber: () => normalizeNumber,
|
|
195
201
|
normalizePath: () => normalizePath,
|
|
196
202
|
orderLogTypeColorMap: () => orderLogTypeColorMap,
|
|
203
|
+
parseSitemapEntries: () => parseSitemapEntries,
|
|
197
204
|
paymentLinkStatusColorMap: () => paymentLinkStatusColorMap,
|
|
198
205
|
paymentMethodColorMap: () => paymentMethodColorMap,
|
|
199
206
|
paymentStatusColorMap: () => paymentStatusColorMap,
|
|
@@ -208,6 +215,8 @@ __export(index_exports, {
|
|
|
208
215
|
roundMoney: () => roundMoney,
|
|
209
216
|
saleTypeOf: () => saleTypeOf,
|
|
210
217
|
servicePlanFields: () => servicePlanFields,
|
|
218
|
+
sitemapEntryLine: () => sitemapEntryLine,
|
|
219
|
+
sitemapPartId: () => sitemapPartId,
|
|
211
220
|
statusColors: () => statusColors,
|
|
212
221
|
statusTone: () => statusTone,
|
|
213
222
|
statusTones: () => statusTones,
|
|
@@ -2579,6 +2588,7 @@ var CartIssueTypes = {
|
|
|
2579
2588
|
BELOW_MINIMUM_QUANTITY: "BELOW_MINIMUM_QUANTITY",
|
|
2580
2589
|
COUPON_INVALID: "COUPON_INVALID"
|
|
2581
2590
|
};
|
|
2591
|
+
var SAVED_CART_TTL_DAYS = 30;
|
|
2582
2592
|
|
|
2583
2593
|
// src/cartItem/stock.ts
|
|
2584
2594
|
var demandByKey = (lines) => {
|
|
@@ -2774,4 +2784,30 @@ var NotificationTypeEnum = {
|
|
|
2774
2784
|
QUOTE_REQUESTED: "QUOTE_REQUESTED"
|
|
2775
2785
|
};
|
|
2776
2786
|
var NOTIFICATION_TYPE_VALUES = Object.values(NotificationTypeEnum);
|
|
2787
|
+
|
|
2788
|
+
// src/sitemap/interface.ts
|
|
2789
|
+
var SitemapPartKindEnum = {
|
|
2790
|
+
PRODUCTS: "PRODUCTS",
|
|
2791
|
+
CATEGORIES: "CATEGORIES",
|
|
2792
|
+
BRANDS: "BRANDS",
|
|
2793
|
+
BLOG_POSTS: "BLOG_POSTS",
|
|
2794
|
+
BLOG_CATEGORIES: "BLOG_CATEGORIES",
|
|
2795
|
+
FAQS: "FAQS",
|
|
2796
|
+
FAQ_CATEGORIES: "FAQ_CATEGORIES",
|
|
2797
|
+
PODCAST_EPISODES: "PODCAST_EPISODES"
|
|
2798
|
+
};
|
|
2799
|
+
var SITEMAP_PART_KIND_VALUES = Object.values(SitemapPartKindEnum);
|
|
2800
|
+
var SITEMAP_MANIFEST_ID = "manifest";
|
|
2801
|
+
var SITEMAP_MANIFESTS_COLLECTION = "sitemapmanifests";
|
|
2802
|
+
var SITEMAP_PARTS_COLLECTION = "sitemapparts";
|
|
2803
|
+
var sitemapPartId = (build, storeId, kind, index) => `${build}:${storeId}:${kind}:${index}`;
|
|
2804
|
+
var sitemapEntryLine = (key, lastmod) => {
|
|
2805
|
+
const date = lastmod ? new Date(lastmod) : null;
|
|
2806
|
+
const day = date && !Number.isNaN(date.getTime()) ? date.toISOString().slice(0, 10) : "";
|
|
2807
|
+
return `${key} ${day}`;
|
|
2808
|
+
};
|
|
2809
|
+
var parseSitemapEntries = (entries) => entries.split("\n").filter(Boolean).map((line) => {
|
|
2810
|
+
const cut = line.lastIndexOf(" ");
|
|
2811
|
+
return cut < 0 ? { key: line, lastmod: "" } : { key: line.slice(0, cut), lastmod: line.slice(cut + 1) };
|
|
2812
|
+
});
|
|
2777
2813
|
//# sourceMappingURL=index.js.map
|