@fas-core/shared-types 1.0.129 → 1.0.130
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 +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6798,4 +6798,40 @@ interface IWishlist extends BaseEntity {
|
|
|
6798
6798
|
items: IWishlistItem[];
|
|
6799
6799
|
}
|
|
6800
6800
|
|
|
6801
|
-
|
|
6801
|
+
declare const SitemapPartKindEnum: {
|
|
6802
|
+
readonly PRODUCTS: "PRODUCTS";
|
|
6803
|
+
readonly CATEGORIES: "CATEGORIES";
|
|
6804
|
+
readonly BRANDS: "BRANDS";
|
|
6805
|
+
readonly BLOG_POSTS: "BLOG_POSTS";
|
|
6806
|
+
readonly BLOG_CATEGORIES: "BLOG_CATEGORIES";
|
|
6807
|
+
readonly FAQS: "FAQS";
|
|
6808
|
+
readonly FAQ_CATEGORIES: "FAQ_CATEGORIES";
|
|
6809
|
+
readonly PODCAST_EPISODES: "PODCAST_EPISODES";
|
|
6810
|
+
};
|
|
6811
|
+
type SitemapPartKindEnum = (typeof SitemapPartKindEnum)[keyof typeof SitemapPartKindEnum];
|
|
6812
|
+
declare const SITEMAP_PART_KIND_VALUES: ("PRODUCTS" | "CATEGORIES" | "BRANDS" | "BLOG_POSTS" | "BLOG_CATEGORIES" | "FAQS" | "FAQ_CATEGORIES" | "PODCAST_EPISODES")[];
|
|
6813
|
+
declare const SITEMAP_MANIFEST_ID = "manifest";
|
|
6814
|
+
declare const SITEMAP_MANIFESTS_COLLECTION = "sitemapmanifests";
|
|
6815
|
+
declare const SITEMAP_PARTS_COLLECTION = "sitemapparts";
|
|
6816
|
+
interface ISitemapManifest extends Omit<BaseEntity, "_id"> {
|
|
6817
|
+
_id: string;
|
|
6818
|
+
build: string;
|
|
6819
|
+
parts: Record<string, Partial<Record<SitemapPartKindEnum, number>>>;
|
|
6820
|
+
builtAt: Date | null;
|
|
6821
|
+
buildingAt?: Date | null;
|
|
6822
|
+
}
|
|
6823
|
+
interface ISitemapPart extends Omit<BaseEntity, "_id"> {
|
|
6824
|
+
_id: string;
|
|
6825
|
+
build: string;
|
|
6826
|
+
kind: SitemapPartKindEnum;
|
|
6827
|
+
entries: string;
|
|
6828
|
+
}
|
|
6829
|
+
interface SitemapEntryKey {
|
|
6830
|
+
key: string;
|
|
6831
|
+
lastmod: string;
|
|
6832
|
+
}
|
|
6833
|
+
declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartKindEnum, index: number) => string;
|
|
6834
|
+
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
6835
|
+
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
6836
|
+
|
|
6837
|
+
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, 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 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
|
@@ -6798,4 +6798,40 @@ interface IWishlist extends BaseEntity {
|
|
|
6798
6798
|
items: IWishlistItem[];
|
|
6799
6799
|
}
|
|
6800
6800
|
|
|
6801
|
-
|
|
6801
|
+
declare const SitemapPartKindEnum: {
|
|
6802
|
+
readonly PRODUCTS: "PRODUCTS";
|
|
6803
|
+
readonly CATEGORIES: "CATEGORIES";
|
|
6804
|
+
readonly BRANDS: "BRANDS";
|
|
6805
|
+
readonly BLOG_POSTS: "BLOG_POSTS";
|
|
6806
|
+
readonly BLOG_CATEGORIES: "BLOG_CATEGORIES";
|
|
6807
|
+
readonly FAQS: "FAQS";
|
|
6808
|
+
readonly FAQ_CATEGORIES: "FAQ_CATEGORIES";
|
|
6809
|
+
readonly PODCAST_EPISODES: "PODCAST_EPISODES";
|
|
6810
|
+
};
|
|
6811
|
+
type SitemapPartKindEnum = (typeof SitemapPartKindEnum)[keyof typeof SitemapPartKindEnum];
|
|
6812
|
+
declare const SITEMAP_PART_KIND_VALUES: ("PRODUCTS" | "CATEGORIES" | "BRANDS" | "BLOG_POSTS" | "BLOG_CATEGORIES" | "FAQS" | "FAQ_CATEGORIES" | "PODCAST_EPISODES")[];
|
|
6813
|
+
declare const SITEMAP_MANIFEST_ID = "manifest";
|
|
6814
|
+
declare const SITEMAP_MANIFESTS_COLLECTION = "sitemapmanifests";
|
|
6815
|
+
declare const SITEMAP_PARTS_COLLECTION = "sitemapparts";
|
|
6816
|
+
interface ISitemapManifest extends Omit<BaseEntity, "_id"> {
|
|
6817
|
+
_id: string;
|
|
6818
|
+
build: string;
|
|
6819
|
+
parts: Record<string, Partial<Record<SitemapPartKindEnum, number>>>;
|
|
6820
|
+
builtAt: Date | null;
|
|
6821
|
+
buildingAt?: Date | null;
|
|
6822
|
+
}
|
|
6823
|
+
interface ISitemapPart extends Omit<BaseEntity, "_id"> {
|
|
6824
|
+
_id: string;
|
|
6825
|
+
build: string;
|
|
6826
|
+
kind: SitemapPartKindEnum;
|
|
6827
|
+
entries: string;
|
|
6828
|
+
}
|
|
6829
|
+
interface SitemapEntryKey {
|
|
6830
|
+
key: string;
|
|
6831
|
+
lastmod: string;
|
|
6832
|
+
}
|
|
6833
|
+
declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartKindEnum, index: number) => string;
|
|
6834
|
+
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
6835
|
+
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
6836
|
+
|
|
6837
|
+
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, 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 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
|
@@ -124,11 +124,16 @@ __export(index_exports, {
|
|
|
124
124
|
RETIRED_CART_STATUSES: () => RETIRED_CART_STATUSES,
|
|
125
125
|
SALE_TYPE_VALUES: () => SALE_TYPE_VALUES,
|
|
126
126
|
SERVICE_PLAN_ELIGIBILITY_FIELD: () => SERVICE_PLAN_ELIGIBILITY_FIELD,
|
|
127
|
+
SITEMAP_MANIFESTS_COLLECTION: () => SITEMAP_MANIFESTS_COLLECTION,
|
|
128
|
+
SITEMAP_MANIFEST_ID: () => SITEMAP_MANIFEST_ID,
|
|
129
|
+
SITEMAP_PARTS_COLLECTION: () => SITEMAP_PARTS_COLLECTION,
|
|
130
|
+
SITEMAP_PART_KIND_VALUES: () => SITEMAP_PART_KIND_VALUES,
|
|
127
131
|
STATUS_TONE_VALUES: () => STATUS_TONE_VALUES,
|
|
128
132
|
SUBSCRIPTION_CHANNEL_VALUES: () => SUBSCRIPTION_CHANNEL_VALUES,
|
|
129
133
|
SUBSCRIPTION_TOPIC_LABELS: () => SUBSCRIPTION_TOPIC_LABELS,
|
|
130
134
|
SUBSCRIPTION_TOPIC_VALUES: () => SUBSCRIPTION_TOPIC_VALUES,
|
|
131
135
|
SaleTypeEnum: () => SaleTypeEnum,
|
|
136
|
+
SitemapPartKindEnum: () => SitemapPartKindEnum,
|
|
132
137
|
StatusToneEnum: () => StatusToneEnum,
|
|
133
138
|
StockStatusEnum: () => StockStatusEnum,
|
|
134
139
|
StockVerdictEnum: () => StockVerdictEnum,
|
|
@@ -194,6 +199,7 @@ __export(index_exports, {
|
|
|
194
199
|
normalizeNumber: () => normalizeNumber,
|
|
195
200
|
normalizePath: () => normalizePath,
|
|
196
201
|
orderLogTypeColorMap: () => orderLogTypeColorMap,
|
|
202
|
+
parseSitemapEntries: () => parseSitemapEntries,
|
|
197
203
|
paymentLinkStatusColorMap: () => paymentLinkStatusColorMap,
|
|
198
204
|
paymentMethodColorMap: () => paymentMethodColorMap,
|
|
199
205
|
paymentStatusColorMap: () => paymentStatusColorMap,
|
|
@@ -208,6 +214,8 @@ __export(index_exports, {
|
|
|
208
214
|
roundMoney: () => roundMoney,
|
|
209
215
|
saleTypeOf: () => saleTypeOf,
|
|
210
216
|
servicePlanFields: () => servicePlanFields,
|
|
217
|
+
sitemapEntryLine: () => sitemapEntryLine,
|
|
218
|
+
sitemapPartId: () => sitemapPartId,
|
|
211
219
|
statusColors: () => statusColors,
|
|
212
220
|
statusTone: () => statusTone,
|
|
213
221
|
statusTones: () => statusTones,
|
|
@@ -2774,4 +2782,30 @@ var NotificationTypeEnum = {
|
|
|
2774
2782
|
QUOTE_REQUESTED: "QUOTE_REQUESTED"
|
|
2775
2783
|
};
|
|
2776
2784
|
var NOTIFICATION_TYPE_VALUES = Object.values(NotificationTypeEnum);
|
|
2785
|
+
|
|
2786
|
+
// src/sitemap/interface.ts
|
|
2787
|
+
var SitemapPartKindEnum = {
|
|
2788
|
+
PRODUCTS: "PRODUCTS",
|
|
2789
|
+
CATEGORIES: "CATEGORIES",
|
|
2790
|
+
BRANDS: "BRANDS",
|
|
2791
|
+
BLOG_POSTS: "BLOG_POSTS",
|
|
2792
|
+
BLOG_CATEGORIES: "BLOG_CATEGORIES",
|
|
2793
|
+
FAQS: "FAQS",
|
|
2794
|
+
FAQ_CATEGORIES: "FAQ_CATEGORIES",
|
|
2795
|
+
PODCAST_EPISODES: "PODCAST_EPISODES"
|
|
2796
|
+
};
|
|
2797
|
+
var SITEMAP_PART_KIND_VALUES = Object.values(SitemapPartKindEnum);
|
|
2798
|
+
var SITEMAP_MANIFEST_ID = "manifest";
|
|
2799
|
+
var SITEMAP_MANIFESTS_COLLECTION = "sitemapmanifests";
|
|
2800
|
+
var SITEMAP_PARTS_COLLECTION = "sitemapparts";
|
|
2801
|
+
var sitemapPartId = (build, storeId, kind, index) => `${build}:${storeId}:${kind}:${index}`;
|
|
2802
|
+
var sitemapEntryLine = (key, lastmod) => {
|
|
2803
|
+
const date = lastmod ? new Date(lastmod) : null;
|
|
2804
|
+
const day = date && !Number.isNaN(date.getTime()) ? date.toISOString().slice(0, 10) : "";
|
|
2805
|
+
return `${key} ${day}`;
|
|
2806
|
+
};
|
|
2807
|
+
var parseSitemapEntries = (entries) => entries.split("\n").filter(Boolean).map((line) => {
|
|
2808
|
+
const cut = line.lastIndexOf(" ");
|
|
2809
|
+
return cut < 0 ? { key: line, lastmod: "" } : { key: line.slice(0, cut), lastmod: line.slice(cut + 1) };
|
|
2810
|
+
});
|
|
2777
2811
|
//# sourceMappingURL=index.js.map
|