@fas-core/shared-types 1.0.138 → 1.0.141
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -319,6 +319,7 @@ interface PaginatedResponse<T> {
|
|
|
319
319
|
page: number;
|
|
320
320
|
limit: number;
|
|
321
321
|
pages: number;
|
|
322
|
+
capped?: boolean;
|
|
322
323
|
}
|
|
323
324
|
interface ServerQueryParams {
|
|
324
325
|
page?: number;
|
|
@@ -1787,6 +1788,9 @@ interface ProductServicePlanScope {
|
|
|
1787
1788
|
}
|
|
1788
1789
|
declare const resolveProductServicePlans: (plans: IServicePlan[], scope?: ProductServicePlanScope, requiresField?: string) => IServicePlan[];
|
|
1789
1790
|
|
|
1791
|
+
declare const BULK_SPEC_PRODUCT_LIMIT = 200;
|
|
1792
|
+
declare const chunkSpecProductIds: (ids: readonly string[]) => string[][];
|
|
1793
|
+
|
|
1790
1794
|
interface ITechnicalSpecColumn extends BaseEntity {
|
|
1791
1795
|
name: string;
|
|
1792
1796
|
key: string;
|
|
@@ -7052,6 +7056,7 @@ interface PromotionSyncResult {
|
|
|
7052
7056
|
interface CategoryImportSummary {
|
|
7053
7057
|
received: number;
|
|
7054
7058
|
created: number;
|
|
7059
|
+
changed: number;
|
|
7055
7060
|
existing: number;
|
|
7056
7061
|
linked: number;
|
|
7057
7062
|
skipped: number;
|
|
@@ -7357,4 +7362,4 @@ declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartK
|
|
|
7357
7362
|
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
7358
7363
|
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
7359
7364
|
|
|
7360
|
-
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AVAILABILITY_STATUS_TONES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AddressLinesInput, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, type Availability, AvailabilityToneEnum, BACKORDERED_TONE, BRAND_FIELDS, BUSINESS_TIME_ZONE, 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_LABELS, CASE_STATUS_TONES, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, CLOSED_QUOTE_STATUSES, COMPANY, COMPANY_ADDRESS_LINE, COMPANY_CITY_LINE, COMPANY_CITY_LINE_LONG, COMPANY_MAX_LENGTH, COMPLETE_ORDER_STATUSES, 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 ConvertedOrderView, type CouponNetsuiteLink, CreditMemoStatusEnum, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerNameInput, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_LABELS, 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, FAILED_PAYMENT_STATUSES, FEE_APPLIES_TO_LABELS, FEE_APPLIES_TO_VALUES, FULFILLMENT_STATUS_LABEL, FULFILLMENT_STATUS_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, FulfillmentStatusEnum, 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 INetsuiteOrderLine, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INetsuiteRefund, type INetsuiteSalesRep, type INetsuiteSyncCheckpoint, 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, type LineShipProgress, LineShipStateEnum, MAX_PAGE, MAX_PAGE_SIZE, MIN_PASSWORD_LENGTH, MOVABLE_STATUSES, type MatchResult, type Metadata, NETSUITE_ESTIMATE_STATUS_TEXT, NETSUITE_EVENT_LANE_VALUES, NETSUITE_EVENT_STATE_TONES, NETSUITE_EVENT_STATE_VALUES, NETSUITE_FULFILLMENT_STATUS_TEXT, NETSUITE_INVOICE_STATUS_TEXT, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_REFUND_KIND_VALUES, NETSUITE_REFUND_RECORD_NAME, NETSUITE_RELATION_GROUPS, NETSUITE_RETURN_STATUS_TEXT, NETSUITE_SALES_ORDER_STATUS_TEXT, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventLaneEnum, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLineLike, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, NetsuiteRefundKindEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OFFLINE_PAYMENT_METHODS, OPEN_ORDER_STATUSES, OPEN_QUOTE_STATUSES, ORDER_EMAIL_EVENTS, ORDER_LOG_TYPE_COLORS, ORDER_LOG_TYPE_VALUES, ORDER_ORIGIN_VALUES, ORDER_STATUS_LABELS, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, type OrderEmailEvent, type OrderLineNameInput, OrderLogTypeEnum, OrderOriginEnum, OrderStatusEnum, PAID_PAYMENT_STATUSES, PARTLY_SHIPPED_STATUSES, PAYMENT_GATEWAY_LABELS, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_LABELS, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_COLORS, PAYMENT_METHOD_LABELS, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_LABELS, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PO_NUMBER_MAX_LENGTH, PRICING_TYPE_LABELS, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROFILE_ACTOR_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, type PaginatedResponse, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PersonNameInput, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, ProfileActorEnum, type ProfileEditRules, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_BUYABLE_STATUS, QUOTE_ORDER_STATUSES, QUOTE_SETTLEMENT_VALUES, QUOTE_VALID_DAYS, type QuantityLineInput, type QuoteRequestResult, type QuoteRuleInput, QuoteSettlementEnum, REDIRECT_TARGET_TYPE_VALUES, REFUND_STATE_TONES, REFUND_TRAIL_TITLE, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, RETURN_ORDER_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, RedirectTargetTypeEnum, RefundPaymentStatusEnum, RefundStateEnum, type RefundStep, RefundStepStateEnum, type RefundSummary, type RefundTrail, RefundTrailKindEnum, type ResolveAccessInput, type ResolvedAddonSelection, ReturnStatusEnum, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SETTLED_STATUSES, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_COLORS, STATUS_TONE_VALUES, STOCK_STATUS_VALUES, STORE_THEME_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServerQueryParams, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StatusToneRecord, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, StoreThemeEnum, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_COLORS, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, type TrackingDisplay, TrackingKindEnum, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, addressLines, adjustmentsFor, applyPriceAdjustments, availabilityOf, availabilityStatusTone, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, buildOptionSignature, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, caseStatusTone, categoryFields, centsEqual, chargesOfLine, clampPage, clampPageSize, cleanOptionKey, companyNameOf, conditionHolds, convertedOrderBilledOffline, convertedOrderOf, couponFields, customerDisplayName, customerFields, customerRefundHeadline, customerStatusTone, demandByKey, discountValueLabel, errorMessage, evaluateConfigurator, feeHint, firstLine, formatDay, formatMoney, fulfillmentStatusTone, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isDiscountType, isFailedPaymentStatus, isNetsuiteOrigin, isNetsuiteOwned, isNonEmptyString, isOfflinePaymentMethod, isOrderEmailEvent, isPaidPaymentStatus, isPartlyShipped, isPricingType, isQuoteBuyable, isQuoteExpired, isQuoteLapsing, isQuoteOnlyItem, isRepQuoteOrderable, isSavedLinePriceChanged, isSellable, isSettledStatus, isStoredCalendarDay, isValidAction, isValidEmail, isValidPassword, isValidPhone, itemsLabel, lineName, lineQuantityCount, lineSellable, lineShipProgress, lineShipTone, lineSku, linesShipped, liveRefunds, missingGrants, netsuiteDocumentLabel, netsuiteDocumentTone, netsuiteEventStateTone, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, pageOf, parseSitemapEntries, paymentLinkStatusTone, paymentMethodLabel, paymentStatusLabel, paymentStatusTone, personName, poNumberText, podcastFields, pricingValueLabel, productFields, profileEditRules, quoteCanBeOrdered, quoteDaysLeft, quoteIsPriced, quotePaymentUnfinished, quoteSettlement, quoteValidityPassed, readMapped, recordStatusTone, refundHeadline, refundStateTone, refundStepTone, refundSummary, repLineNote, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, shipmentsTone, sitemapEntryLine, sitemapPartId, slugify, statusTagColor, statusTone, statusTones, stockVerdict, syncOwnerFor, taxLabel, taxRatePercent, toCents, toIdString, trackingDisplay, trimmedText };
|
|
7365
|
+
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AVAILABILITY_STATUS_TONES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AddressLinesInput, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, type Availability, AvailabilityToneEnum, BACKORDERED_TONE, BRAND_FIELDS, BULK_SPEC_PRODUCT_LIMIT, BUSINESS_TIME_ZONE, 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_LABELS, CASE_STATUS_TONES, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, CLOSED_QUOTE_STATUSES, COMPANY, COMPANY_ADDRESS_LINE, COMPANY_CITY_LINE, COMPANY_CITY_LINE_LONG, COMPANY_MAX_LENGTH, COMPLETE_ORDER_STATUSES, 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 ConvertedOrderView, type CouponNetsuiteLink, CreditMemoStatusEnum, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerNameInput, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_LABELS, 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, FAILED_PAYMENT_STATUSES, FEE_APPLIES_TO_LABELS, FEE_APPLIES_TO_VALUES, FULFILLMENT_STATUS_LABEL, FULFILLMENT_STATUS_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, FulfillmentStatusEnum, 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 INetsuiteOrderLine, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INetsuiteRefund, type INetsuiteSalesRep, type INetsuiteSyncCheckpoint, 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, type LineShipProgress, LineShipStateEnum, MAX_PAGE, MAX_PAGE_SIZE, MIN_PASSWORD_LENGTH, MOVABLE_STATUSES, type MatchResult, type Metadata, NETSUITE_ESTIMATE_STATUS_TEXT, NETSUITE_EVENT_LANE_VALUES, NETSUITE_EVENT_STATE_TONES, NETSUITE_EVENT_STATE_VALUES, NETSUITE_FULFILLMENT_STATUS_TEXT, NETSUITE_INVOICE_STATUS_TEXT, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_REFUND_KIND_VALUES, NETSUITE_REFUND_RECORD_NAME, NETSUITE_RELATION_GROUPS, NETSUITE_RETURN_STATUS_TEXT, NETSUITE_SALES_ORDER_STATUS_TEXT, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventLaneEnum, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLineLike, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, NetsuiteRefundKindEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OFFLINE_PAYMENT_METHODS, OPEN_ORDER_STATUSES, OPEN_QUOTE_STATUSES, ORDER_EMAIL_EVENTS, ORDER_LOG_TYPE_COLORS, ORDER_LOG_TYPE_VALUES, ORDER_ORIGIN_VALUES, ORDER_STATUS_LABELS, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, type OrderEmailEvent, type OrderLineNameInput, OrderLogTypeEnum, OrderOriginEnum, OrderStatusEnum, PAID_PAYMENT_STATUSES, PARTLY_SHIPPED_STATUSES, PAYMENT_GATEWAY_LABELS, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_LABELS, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_COLORS, PAYMENT_METHOD_LABELS, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_LABELS, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PO_NUMBER_MAX_LENGTH, PRICING_TYPE_LABELS, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROFILE_ACTOR_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, type PaginatedResponse, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PersonNameInput, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, ProfileActorEnum, type ProfileEditRules, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_BUYABLE_STATUS, QUOTE_ORDER_STATUSES, QUOTE_SETTLEMENT_VALUES, QUOTE_VALID_DAYS, type QuantityLineInput, type QuoteRequestResult, type QuoteRuleInput, QuoteSettlementEnum, REDIRECT_TARGET_TYPE_VALUES, REFUND_STATE_TONES, REFUND_TRAIL_TITLE, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, RETURN_ORDER_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, RedirectTargetTypeEnum, RefundPaymentStatusEnum, RefundStateEnum, type RefundStep, RefundStepStateEnum, type RefundSummary, type RefundTrail, RefundTrailKindEnum, type ResolveAccessInput, type ResolvedAddonSelection, ReturnStatusEnum, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SETTLED_STATUSES, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_COLORS, STATUS_TONE_VALUES, STOCK_STATUS_VALUES, STORE_THEME_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServerQueryParams, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StatusToneRecord, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, StoreThemeEnum, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_COLORS, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, type TrackingDisplay, TrackingKindEnum, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, addressLines, adjustmentsFor, applyPriceAdjustments, availabilityOf, availabilityStatusTone, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, buildOptionSignature, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, caseStatusTone, categoryFields, centsEqual, chargesOfLine, chunkSpecProductIds, clampPage, clampPageSize, cleanOptionKey, companyNameOf, conditionHolds, convertedOrderBilledOffline, convertedOrderOf, couponFields, customerDisplayName, customerFields, customerRefundHeadline, customerStatusTone, demandByKey, discountValueLabel, errorMessage, evaluateConfigurator, feeHint, firstLine, formatDay, formatMoney, fulfillmentStatusTone, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isDiscountType, isFailedPaymentStatus, isNetsuiteOrigin, isNetsuiteOwned, isNonEmptyString, isOfflinePaymentMethod, isOrderEmailEvent, isPaidPaymentStatus, isPartlyShipped, isPricingType, isQuoteBuyable, isQuoteExpired, isQuoteLapsing, isQuoteOnlyItem, isRepQuoteOrderable, isSavedLinePriceChanged, isSellable, isSettledStatus, isStoredCalendarDay, isValidAction, isValidEmail, isValidPassword, isValidPhone, itemsLabel, lineName, lineQuantityCount, lineSellable, lineShipProgress, lineShipTone, lineSku, linesShipped, liveRefunds, missingGrants, netsuiteDocumentLabel, netsuiteDocumentTone, netsuiteEventStateTone, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, pageOf, parseSitemapEntries, paymentLinkStatusTone, paymentMethodLabel, paymentStatusLabel, paymentStatusTone, personName, poNumberText, podcastFields, pricingValueLabel, productFields, profileEditRules, quoteCanBeOrdered, quoteDaysLeft, quoteIsPriced, quotePaymentUnfinished, quoteSettlement, quoteValidityPassed, readMapped, recordStatusTone, refundHeadline, refundStateTone, refundStepTone, refundSummary, repLineNote, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, shipmentsTone, sitemapEntryLine, sitemapPartId, slugify, statusTagColor, statusTone, statusTones, stockVerdict, syncOwnerFor, taxLabel, taxRatePercent, toCents, toIdString, trackingDisplay, trimmedText };
|
package/dist/index.d.ts
CHANGED
|
@@ -319,6 +319,7 @@ interface PaginatedResponse<T> {
|
|
|
319
319
|
page: number;
|
|
320
320
|
limit: number;
|
|
321
321
|
pages: number;
|
|
322
|
+
capped?: boolean;
|
|
322
323
|
}
|
|
323
324
|
interface ServerQueryParams {
|
|
324
325
|
page?: number;
|
|
@@ -1787,6 +1788,9 @@ interface ProductServicePlanScope {
|
|
|
1787
1788
|
}
|
|
1788
1789
|
declare const resolveProductServicePlans: (plans: IServicePlan[], scope?: ProductServicePlanScope, requiresField?: string) => IServicePlan[];
|
|
1789
1790
|
|
|
1791
|
+
declare const BULK_SPEC_PRODUCT_LIMIT = 200;
|
|
1792
|
+
declare const chunkSpecProductIds: (ids: readonly string[]) => string[][];
|
|
1793
|
+
|
|
1790
1794
|
interface ITechnicalSpecColumn extends BaseEntity {
|
|
1791
1795
|
name: string;
|
|
1792
1796
|
key: string;
|
|
@@ -7052,6 +7056,7 @@ interface PromotionSyncResult {
|
|
|
7052
7056
|
interface CategoryImportSummary {
|
|
7053
7057
|
received: number;
|
|
7054
7058
|
created: number;
|
|
7059
|
+
changed: number;
|
|
7055
7060
|
existing: number;
|
|
7056
7061
|
linked: number;
|
|
7057
7062
|
skipped: number;
|
|
@@ -7357,4 +7362,4 @@ declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartK
|
|
|
7357
7362
|
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
7358
7363
|
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
7359
7364
|
|
|
7360
|
-
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AVAILABILITY_STATUS_TONES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AddressLinesInput, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, type Availability, AvailabilityToneEnum, BACKORDERED_TONE, BRAND_FIELDS, BUSINESS_TIME_ZONE, 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_LABELS, CASE_STATUS_TONES, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, CLOSED_QUOTE_STATUSES, COMPANY, COMPANY_ADDRESS_LINE, COMPANY_CITY_LINE, COMPANY_CITY_LINE_LONG, COMPANY_MAX_LENGTH, COMPLETE_ORDER_STATUSES, 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 ConvertedOrderView, type CouponNetsuiteLink, CreditMemoStatusEnum, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerNameInput, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_LABELS, 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, FAILED_PAYMENT_STATUSES, FEE_APPLIES_TO_LABELS, FEE_APPLIES_TO_VALUES, FULFILLMENT_STATUS_LABEL, FULFILLMENT_STATUS_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, FulfillmentStatusEnum, 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 INetsuiteOrderLine, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INetsuiteRefund, type INetsuiteSalesRep, type INetsuiteSyncCheckpoint, 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, type LineShipProgress, LineShipStateEnum, MAX_PAGE, MAX_PAGE_SIZE, MIN_PASSWORD_LENGTH, MOVABLE_STATUSES, type MatchResult, type Metadata, NETSUITE_ESTIMATE_STATUS_TEXT, NETSUITE_EVENT_LANE_VALUES, NETSUITE_EVENT_STATE_TONES, NETSUITE_EVENT_STATE_VALUES, NETSUITE_FULFILLMENT_STATUS_TEXT, NETSUITE_INVOICE_STATUS_TEXT, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_REFUND_KIND_VALUES, NETSUITE_REFUND_RECORD_NAME, NETSUITE_RELATION_GROUPS, NETSUITE_RETURN_STATUS_TEXT, NETSUITE_SALES_ORDER_STATUS_TEXT, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventLaneEnum, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLineLike, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, NetsuiteRefundKindEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OFFLINE_PAYMENT_METHODS, OPEN_ORDER_STATUSES, OPEN_QUOTE_STATUSES, ORDER_EMAIL_EVENTS, ORDER_LOG_TYPE_COLORS, ORDER_LOG_TYPE_VALUES, ORDER_ORIGIN_VALUES, ORDER_STATUS_LABELS, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, type OrderEmailEvent, type OrderLineNameInput, OrderLogTypeEnum, OrderOriginEnum, OrderStatusEnum, PAID_PAYMENT_STATUSES, PARTLY_SHIPPED_STATUSES, PAYMENT_GATEWAY_LABELS, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_LABELS, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_COLORS, PAYMENT_METHOD_LABELS, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_LABELS, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PO_NUMBER_MAX_LENGTH, PRICING_TYPE_LABELS, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROFILE_ACTOR_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, type PaginatedResponse, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PersonNameInput, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, ProfileActorEnum, type ProfileEditRules, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_BUYABLE_STATUS, QUOTE_ORDER_STATUSES, QUOTE_SETTLEMENT_VALUES, QUOTE_VALID_DAYS, type QuantityLineInput, type QuoteRequestResult, type QuoteRuleInput, QuoteSettlementEnum, REDIRECT_TARGET_TYPE_VALUES, REFUND_STATE_TONES, REFUND_TRAIL_TITLE, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, RETURN_ORDER_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, RedirectTargetTypeEnum, RefundPaymentStatusEnum, RefundStateEnum, type RefundStep, RefundStepStateEnum, type RefundSummary, type RefundTrail, RefundTrailKindEnum, type ResolveAccessInput, type ResolvedAddonSelection, ReturnStatusEnum, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SETTLED_STATUSES, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_COLORS, STATUS_TONE_VALUES, STOCK_STATUS_VALUES, STORE_THEME_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServerQueryParams, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StatusToneRecord, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, StoreThemeEnum, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_COLORS, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, type TrackingDisplay, TrackingKindEnum, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, addressLines, adjustmentsFor, applyPriceAdjustments, availabilityOf, availabilityStatusTone, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, buildOptionSignature, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, caseStatusTone, categoryFields, centsEqual, chargesOfLine, clampPage, clampPageSize, cleanOptionKey, companyNameOf, conditionHolds, convertedOrderBilledOffline, convertedOrderOf, couponFields, customerDisplayName, customerFields, customerRefundHeadline, customerStatusTone, demandByKey, discountValueLabel, errorMessage, evaluateConfigurator, feeHint, firstLine, formatDay, formatMoney, fulfillmentStatusTone, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isDiscountType, isFailedPaymentStatus, isNetsuiteOrigin, isNetsuiteOwned, isNonEmptyString, isOfflinePaymentMethod, isOrderEmailEvent, isPaidPaymentStatus, isPartlyShipped, isPricingType, isQuoteBuyable, isQuoteExpired, isQuoteLapsing, isQuoteOnlyItem, isRepQuoteOrderable, isSavedLinePriceChanged, isSellable, isSettledStatus, isStoredCalendarDay, isValidAction, isValidEmail, isValidPassword, isValidPhone, itemsLabel, lineName, lineQuantityCount, lineSellable, lineShipProgress, lineShipTone, lineSku, linesShipped, liveRefunds, missingGrants, netsuiteDocumentLabel, netsuiteDocumentTone, netsuiteEventStateTone, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, pageOf, parseSitemapEntries, paymentLinkStatusTone, paymentMethodLabel, paymentStatusLabel, paymentStatusTone, personName, poNumberText, podcastFields, pricingValueLabel, productFields, profileEditRules, quoteCanBeOrdered, quoteDaysLeft, quoteIsPriced, quotePaymentUnfinished, quoteSettlement, quoteValidityPassed, readMapped, recordStatusTone, refundHeadline, refundStateTone, refundStepTone, refundSummary, repLineNote, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, shipmentsTone, sitemapEntryLine, sitemapPartId, slugify, statusTagColor, statusTone, statusTones, stockVerdict, syncOwnerFor, taxLabel, taxRatePercent, toCents, toIdString, trackingDisplay, trimmedText };
|
|
7365
|
+
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AVAILABILITY_STATUS_TONES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AddressLinesInput, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, type Availability, AvailabilityToneEnum, BACKORDERED_TONE, BRAND_FIELDS, BULK_SPEC_PRODUCT_LIMIT, BUSINESS_TIME_ZONE, 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_LABELS, CASE_STATUS_TONES, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, CLOSED_QUOTE_STATUSES, COMPANY, COMPANY_ADDRESS_LINE, COMPANY_CITY_LINE, COMPANY_CITY_LINE_LONG, COMPANY_MAX_LENGTH, COMPLETE_ORDER_STATUSES, 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 ConvertedOrderView, type CouponNetsuiteLink, CreditMemoStatusEnum, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerNameInput, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_LABELS, 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, FAILED_PAYMENT_STATUSES, FEE_APPLIES_TO_LABELS, FEE_APPLIES_TO_VALUES, FULFILLMENT_STATUS_LABEL, FULFILLMENT_STATUS_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, FulfillmentStatusEnum, 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 INetsuiteOrderLine, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INetsuiteRefund, type INetsuiteSalesRep, type INetsuiteSyncCheckpoint, 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, type LineShipProgress, LineShipStateEnum, MAX_PAGE, MAX_PAGE_SIZE, MIN_PASSWORD_LENGTH, MOVABLE_STATUSES, type MatchResult, type Metadata, NETSUITE_ESTIMATE_STATUS_TEXT, NETSUITE_EVENT_LANE_VALUES, NETSUITE_EVENT_STATE_TONES, NETSUITE_EVENT_STATE_VALUES, NETSUITE_FULFILLMENT_STATUS_TEXT, NETSUITE_INVOICE_STATUS_TEXT, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_REFUND_KIND_VALUES, NETSUITE_REFUND_RECORD_NAME, NETSUITE_RELATION_GROUPS, NETSUITE_RETURN_STATUS_TEXT, NETSUITE_SALES_ORDER_STATUS_TEXT, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventLaneEnum, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLineLike, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, NetsuiteRefundKindEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OFFLINE_PAYMENT_METHODS, OPEN_ORDER_STATUSES, OPEN_QUOTE_STATUSES, ORDER_EMAIL_EVENTS, ORDER_LOG_TYPE_COLORS, ORDER_LOG_TYPE_VALUES, ORDER_ORIGIN_VALUES, ORDER_STATUS_LABELS, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, type OrderEmailEvent, type OrderLineNameInput, OrderLogTypeEnum, OrderOriginEnum, OrderStatusEnum, PAID_PAYMENT_STATUSES, PARTLY_SHIPPED_STATUSES, PAYMENT_GATEWAY_LABELS, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_LABELS, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_COLORS, PAYMENT_METHOD_LABELS, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_LABELS, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PO_NUMBER_MAX_LENGTH, PRICING_TYPE_LABELS, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROFILE_ACTOR_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, type PaginatedResponse, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PersonNameInput, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, ProfileActorEnum, type ProfileEditRules, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_BUYABLE_STATUS, QUOTE_ORDER_STATUSES, QUOTE_SETTLEMENT_VALUES, QUOTE_VALID_DAYS, type QuantityLineInput, type QuoteRequestResult, type QuoteRuleInput, QuoteSettlementEnum, REDIRECT_TARGET_TYPE_VALUES, REFUND_STATE_TONES, REFUND_TRAIL_TITLE, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, RETURN_ORDER_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, RedirectTargetTypeEnum, RefundPaymentStatusEnum, RefundStateEnum, type RefundStep, RefundStepStateEnum, type RefundSummary, type RefundTrail, RefundTrailKindEnum, type ResolveAccessInput, type ResolvedAddonSelection, ReturnStatusEnum, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SETTLED_STATUSES, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_COLORS, STATUS_TONE_VALUES, STOCK_STATUS_VALUES, STORE_THEME_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServerQueryParams, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StatusToneRecord, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, StoreThemeEnum, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_COLORS, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, type TrackingDisplay, TrackingKindEnum, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, addressLines, adjustmentsFor, applyPriceAdjustments, availabilityOf, availabilityStatusTone, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, buildOptionSignature, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, caseStatusTone, categoryFields, centsEqual, chargesOfLine, chunkSpecProductIds, clampPage, clampPageSize, cleanOptionKey, companyNameOf, conditionHolds, convertedOrderBilledOffline, convertedOrderOf, couponFields, customerDisplayName, customerFields, customerRefundHeadline, customerStatusTone, demandByKey, discountValueLabel, errorMessage, evaluateConfigurator, feeHint, firstLine, formatDay, formatMoney, fulfillmentStatusTone, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isDiscountType, isFailedPaymentStatus, isNetsuiteOrigin, isNetsuiteOwned, isNonEmptyString, isOfflinePaymentMethod, isOrderEmailEvent, isPaidPaymentStatus, isPartlyShipped, isPricingType, isQuoteBuyable, isQuoteExpired, isQuoteLapsing, isQuoteOnlyItem, isRepQuoteOrderable, isSavedLinePriceChanged, isSellable, isSettledStatus, isStoredCalendarDay, isValidAction, isValidEmail, isValidPassword, isValidPhone, itemsLabel, lineName, lineQuantityCount, lineSellable, lineShipProgress, lineShipTone, lineSku, linesShipped, liveRefunds, missingGrants, netsuiteDocumentLabel, netsuiteDocumentTone, netsuiteEventStateTone, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, pageOf, parseSitemapEntries, paymentLinkStatusTone, paymentMethodLabel, paymentStatusLabel, paymentStatusTone, personName, poNumberText, podcastFields, pricingValueLabel, productFields, profileEditRules, quoteCanBeOrdered, quoteDaysLeft, quoteIsPriced, quotePaymentUnfinished, quoteSettlement, quoteValidityPassed, readMapped, recordStatusTone, refundHeadline, refundStateTone, refundStepTone, refundSummary, repLineNote, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, shipmentsTone, sitemapEntryLine, sitemapPartId, slugify, statusTagColor, statusTone, statusTones, stockVerdict, syncOwnerFor, taxLabel, taxRatePercent, toCents, toIdString, trackingDisplay, trimmedText };
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
AvailabilityToneEnum: () => AvailabilityToneEnum,
|
|
36
36
|
BACKORDERED_TONE: () => BACKORDERED_TONE,
|
|
37
37
|
BRAND_FIELDS: () => BRAND_FIELDS,
|
|
38
|
+
BULK_SPEC_PRODUCT_LIMIT: () => BULK_SPEC_PRODUCT_LIMIT,
|
|
38
39
|
BUSINESS_TIME_ZONE: () => BUSINESS_TIME_ZONE,
|
|
39
40
|
CAMPAIGN_RECIPIENT_STATUS_VALUES: () => CAMPAIGN_RECIPIENT_STATUS_VALUES,
|
|
40
41
|
CAMPAIGN_STATUS_VALUES: () => CAMPAIGN_STATUS_VALUES,
|
|
@@ -244,6 +245,7 @@ __export(index_exports, {
|
|
|
244
245
|
categoryFields: () => categoryFields,
|
|
245
246
|
centsEqual: () => centsEqual,
|
|
246
247
|
chargesOfLine: () => chargesOfLine,
|
|
248
|
+
chunkSpecProductIds: () => chunkSpecProductIds,
|
|
247
249
|
clampPage: () => clampPage,
|
|
248
250
|
clampPageSize: () => clampPageSize,
|
|
249
251
|
cleanOptionKey: () => cleanOptionKey,
|
|
@@ -2194,6 +2196,16 @@ var cleanOptionKey = (value) => {
|
|
|
2194
2196
|
};
|
|
2195
2197
|
var buildOptionSignature = (selections) => selections.length === 0 ? void 0 : [...selections].sort((left, right) => left.optionKey < right.optionKey ? -1 : left.optionKey > right.optionKey ? 1 : 0).map((selection) => `${selection.optionKey}:${selection.valueKey}`).join("|");
|
|
2196
2198
|
|
|
2199
|
+
// src/productTechnicalSpec/limits.ts
|
|
2200
|
+
var BULK_SPEC_PRODUCT_LIMIT = 200;
|
|
2201
|
+
var chunkSpecProductIds = (ids) => {
|
|
2202
|
+
const batches = [];
|
|
2203
|
+
for (let at = 0; at < ids.length; at += BULK_SPEC_PRODUCT_LIMIT) {
|
|
2204
|
+
batches.push(ids.slice(at, at + BULK_SPEC_PRODUCT_LIMIT));
|
|
2205
|
+
}
|
|
2206
|
+
return batches;
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2197
2209
|
// src/addonConfig/resolve.ts
|
|
2198
2210
|
var idOf3 = (value) => {
|
|
2199
2211
|
if (!value) return "";
|
|
@@ -3237,12 +3249,7 @@ var quoteSettlement = (quote) => {
|
|
|
3237
3249
|
var isRepQuoteOrderable = (quote, now = /* @__PURE__ */ new Date()) => isNetsuiteOrigin(quote) && quoteCanBeOrdered(quote, now) && quote.payableOnline !== true;
|
|
3238
3250
|
|
|
3239
3251
|
// src/order/statusTone.ts
|
|
3240
|
-
var recordStatusTone = (record, now = /* @__PURE__ */ new Date()) =>
|
|
3241
|
-
const status = String(record.status ?? "");
|
|
3242
|
-
if (record.convertedOrder && status.startsWith("QUOTE_")) return StatusToneEnum.CLOSED;
|
|
3243
|
-
if (isQuoteLapsing(record, now)) return StatusToneEnum.WAITING;
|
|
3244
|
-
return statusTone(status);
|
|
3245
|
-
};
|
|
3252
|
+
var recordStatusTone = (record, now = /* @__PURE__ */ new Date()) => isQuoteLapsing(record, now) ? StatusToneEnum.WAITING : statusTone(String(record.status ?? ""));
|
|
3246
3253
|
var statusTagColor = (record) => STATUS_TONE_COLORS[recordStatusTone(record)];
|
|
3247
3254
|
|
|
3248
3255
|
// src/orderItem/netsuiteLine.ts
|
|
@@ -3291,7 +3298,7 @@ var lineName = (line) => text(lineSellable(line).name) || text(asRecord(line.met
|
|
|
3291
3298
|
var lineSku = (line) => text(lineSellable(line).sku) || text(asRecord(line.metaData).sku);
|
|
3292
3299
|
|
|
3293
3300
|
// src/orderItem/count.ts
|
|
3294
|
-
var lineQuantityCount = (lines) => (lines ?? []).
|
|
3301
|
+
var lineQuantityCount = (lines) => (lines ?? []).length;
|
|
3295
3302
|
var itemsLabel = (summary) => `${summary.quantityCount} item${summary.quantityCount === 1 ? "" : "s"}`;
|
|
3296
3303
|
|
|
3297
3304
|
// src/orderLog/interface.ts
|