@fas-core/shared-types 1.0.103 → 1.0.104
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 +236 -1
- package/dist/index.d.ts +236 -1
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -418,6 +418,14 @@ interface AddonNetsuiteLink {
|
|
|
418
418
|
itemName?: string;
|
|
419
419
|
syncedAt?: Date | string;
|
|
420
420
|
}
|
|
421
|
+
interface AddonSnapshot {
|
|
422
|
+
groupKey: string;
|
|
423
|
+
addonKey: string;
|
|
424
|
+
name: string;
|
|
425
|
+
price: number;
|
|
426
|
+
pricingType: PricingType;
|
|
427
|
+
quantity: number;
|
|
428
|
+
}
|
|
421
429
|
|
|
422
430
|
interface ProductAddonScope {
|
|
423
431
|
storeId?: string;
|
|
@@ -1113,6 +1121,17 @@ interface IEmailTemplate extends BaseEntity {
|
|
|
1113
1121
|
isVisible: boolean;
|
|
1114
1122
|
status: boolean;
|
|
1115
1123
|
}
|
|
1124
|
+
declare const EmailParamMismatchKindEnum: {
|
|
1125
|
+
readonly MISSING: "missing";
|
|
1126
|
+
readonly UNDECLARED: "undeclared";
|
|
1127
|
+
readonly UNLISTED: "unlisted";
|
|
1128
|
+
};
|
|
1129
|
+
type EmailParamMismatchKindEnum = (typeof EmailParamMismatchKindEnum)[keyof typeof EmailParamMismatchKindEnum];
|
|
1130
|
+
declare const EMAIL_PARAM_MISMATCH_KIND_VALUES: ("missing" | "undeclared" | "unlisted")[];
|
|
1131
|
+
interface EmailParamMismatch {
|
|
1132
|
+
kind: EmailParamMismatchKindEnum;
|
|
1133
|
+
token: string;
|
|
1134
|
+
}
|
|
1116
1135
|
|
|
1117
1136
|
declare const ConfiguratorSelectModeEnum: {
|
|
1118
1137
|
readonly SINGLE: "SINGLE";
|
|
@@ -1305,6 +1324,12 @@ interface IUnmatched404 extends BaseEntity {
|
|
|
1305
1324
|
stores?: (IStore | string)[];
|
|
1306
1325
|
suggestions?: IRedirectSuggestion[];
|
|
1307
1326
|
}
|
|
1327
|
+
interface MatchResult {
|
|
1328
|
+
best: IRedirectSuggestion | null;
|
|
1329
|
+
score: number;
|
|
1330
|
+
autoLink: boolean;
|
|
1331
|
+
suggestions: IRedirectSuggestion[];
|
|
1332
|
+
}
|
|
1308
1333
|
|
|
1309
1334
|
declare const normalizePath: (input: string) => string;
|
|
1310
1335
|
declare const canonicalizeSlug: (input: string) => string;
|
|
@@ -5639,6 +5664,216 @@ declare const NETSUITE_RELATION_GROUPS: readonly string[];
|
|
|
5639
5664
|
*/
|
|
5640
5665
|
declare const syncOwnerFor: (entity: NetsuiteOwnedEntity) => string;
|
|
5641
5666
|
|
|
5667
|
+
declare const NetsuiteEventStateEnum: {
|
|
5668
|
+
readonly APPLIED: "applied";
|
|
5669
|
+
readonly DEFERRED: "deferred";
|
|
5670
|
+
readonly FAILED: "failed";
|
|
5671
|
+
readonly SKIPPED: "skipped";
|
|
5672
|
+
};
|
|
5673
|
+
type NetsuiteEventStateEnum = (typeof NetsuiteEventStateEnum)[keyof typeof NetsuiteEventStateEnum];
|
|
5674
|
+
declare const NETSUITE_EVENT_STATE_VALUES: ("applied" | "deferred" | "failed" | "skipped")[];
|
|
5675
|
+
interface INetsuiteEvent extends BaseEntity {
|
|
5676
|
+
eventId: string;
|
|
5677
|
+
recordType: string;
|
|
5678
|
+
recordId: string;
|
|
5679
|
+
action?: string;
|
|
5680
|
+
sourceId?: string;
|
|
5681
|
+
orderId?: string;
|
|
5682
|
+
state: NetsuiteEventStateEnum;
|
|
5683
|
+
detail?: string;
|
|
5684
|
+
receivedAt: Date;
|
|
5685
|
+
appliedAt?: Date;
|
|
5686
|
+
attempts?: number;
|
|
5687
|
+
lastAttemptAt?: Date;
|
|
5688
|
+
}
|
|
5689
|
+
interface INetsuiteQueueEntry {
|
|
5690
|
+
key: string;
|
|
5691
|
+
label: string;
|
|
5692
|
+
state: "queued" | "running";
|
|
5693
|
+
runsInSeconds: number | null;
|
|
5694
|
+
runningForSeconds: number | null;
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
declare const TaxRateSourceEnum: {
|
|
5698
|
+
readonly GROUP: "group";
|
|
5699
|
+
readonly ORDERS: "orders";
|
|
5700
|
+
};
|
|
5701
|
+
type TaxRateSourceEnum = (typeof TaxRateSourceEnum)[keyof typeof TaxRateSourceEnum];
|
|
5702
|
+
declare const TAX_RATE_SOURCE_VALUES: ("orders" | "group")[];
|
|
5703
|
+
interface ITaxRate extends BaseEntity {
|
|
5704
|
+
key: string;
|
|
5705
|
+
city: string;
|
|
5706
|
+
zip: string;
|
|
5707
|
+
state: string;
|
|
5708
|
+
county?: string;
|
|
5709
|
+
rate: number;
|
|
5710
|
+
netsuiteGroupId: string;
|
|
5711
|
+
netsuiteGroupName: string;
|
|
5712
|
+
source: TaxRateSourceEnum;
|
|
5713
|
+
syncedAt: Date;
|
|
5714
|
+
}
|
|
5715
|
+
|
|
5716
|
+
interface TaxSyncResult {
|
|
5717
|
+
groups: number;
|
|
5718
|
+
rates: number;
|
|
5719
|
+
overlaps: number;
|
|
5720
|
+
observed: number;
|
|
5721
|
+
corrected: number;
|
|
5722
|
+
removed: number;
|
|
5723
|
+
states: string[];
|
|
5724
|
+
}
|
|
5725
|
+
interface PromotionSyncResult {
|
|
5726
|
+
found: number;
|
|
5727
|
+
written: number;
|
|
5728
|
+
codes: string[];
|
|
5729
|
+
skipped: Array<{
|
|
5730
|
+
code: string;
|
|
5731
|
+
name: string;
|
|
5732
|
+
reason: string;
|
|
5733
|
+
}>;
|
|
5734
|
+
deactivated: string[];
|
|
5735
|
+
}
|
|
5736
|
+
interface CategoryImportSummary {
|
|
5737
|
+
received: number;
|
|
5738
|
+
created: number;
|
|
5739
|
+
existing: number;
|
|
5740
|
+
linked: number;
|
|
5741
|
+
skipped: number;
|
|
5742
|
+
missingParents: string[];
|
|
5743
|
+
}
|
|
5744
|
+
interface NetsuiteLinkResult {
|
|
5745
|
+
key: string;
|
|
5746
|
+
netsuiteId: string;
|
|
5747
|
+
created: boolean;
|
|
5748
|
+
}
|
|
5749
|
+
|
|
5750
|
+
declare const PushCheckStatusEnum: {
|
|
5751
|
+
readonly PASS: "pass";
|
|
5752
|
+
readonly WARN: "warn";
|
|
5753
|
+
readonly FAIL: "fail";
|
|
5754
|
+
};
|
|
5755
|
+
type PushCheckStatusEnum = (typeof PushCheckStatusEnum)[keyof typeof PushCheckStatusEnum];
|
|
5756
|
+
declare const PUSH_CHECK_STATUS_VALUES: ("pass" | "warn" | "fail")[];
|
|
5757
|
+
interface PushCheck {
|
|
5758
|
+
key: string;
|
|
5759
|
+
label: string;
|
|
5760
|
+
status: PushCheckStatusEnum;
|
|
5761
|
+
detail?: string;
|
|
5762
|
+
fixable?: boolean;
|
|
5763
|
+
}
|
|
5764
|
+
interface PushField {
|
|
5765
|
+
label: string;
|
|
5766
|
+
value: string;
|
|
5767
|
+
note?: string;
|
|
5768
|
+
}
|
|
5769
|
+
interface NetsuitePreviewLine {
|
|
5770
|
+
kind: "item" | "fee" | "addon";
|
|
5771
|
+
name: string;
|
|
5772
|
+
sku?: string;
|
|
5773
|
+
netsuiteItemId?: string;
|
|
5774
|
+
matchedBy?: "stored id" | "SKU lookup";
|
|
5775
|
+
quantity: number;
|
|
5776
|
+
rate: number;
|
|
5777
|
+
amount: number;
|
|
5778
|
+
problem?: string;
|
|
5779
|
+
}
|
|
5780
|
+
interface NetsuiteReceipt {
|
|
5781
|
+
id: string;
|
|
5782
|
+
recordType: string;
|
|
5783
|
+
externalId: string;
|
|
5784
|
+
tranId?: string;
|
|
5785
|
+
statusText?: string;
|
|
5786
|
+
total?: number;
|
|
5787
|
+
entityId?: string;
|
|
5788
|
+
entityLabel?: string;
|
|
5789
|
+
createdDate?: string;
|
|
5790
|
+
httpStatus?: number;
|
|
5791
|
+
recordUrl?: string;
|
|
5792
|
+
pushedAt: Date;
|
|
5793
|
+
sentLines?: Array<{
|
|
5794
|
+
kind: "item" | "fee" | "addon";
|
|
5795
|
+
sku?: string;
|
|
5796
|
+
name: string;
|
|
5797
|
+
netsuiteItemId?: string;
|
|
5798
|
+
quantity: number;
|
|
5799
|
+
amount: number;
|
|
5800
|
+
}>;
|
|
5801
|
+
totalMismatch?: {
|
|
5802
|
+
charged: number;
|
|
5803
|
+
landed: number;
|
|
5804
|
+
drift: number;
|
|
5805
|
+
};
|
|
5806
|
+
}
|
|
5807
|
+
interface NetsuiteOrderPreview {
|
|
5808
|
+
orderId: string;
|
|
5809
|
+
recordType: "salesOrder" | "estimate";
|
|
5810
|
+
recordLabel: string;
|
|
5811
|
+
alreadyPushed?: NetsuiteReceipt;
|
|
5812
|
+
lastError?: {
|
|
5813
|
+
message: string;
|
|
5814
|
+
failedAt?: string;
|
|
5815
|
+
recordType?: string;
|
|
5816
|
+
};
|
|
5817
|
+
connection: {
|
|
5818
|
+
configured: boolean;
|
|
5819
|
+
missing: string[];
|
|
5820
|
+
writesEnabled: boolean;
|
|
5821
|
+
account: string;
|
|
5822
|
+
};
|
|
5823
|
+
writesEnabled: boolean;
|
|
5824
|
+
customer: {
|
|
5825
|
+
email: string;
|
|
5826
|
+
netsuiteId?: string;
|
|
5827
|
+
label?: string;
|
|
5828
|
+
willCreate: boolean;
|
|
5829
|
+
};
|
|
5830
|
+
lines: NetsuitePreviewLine[];
|
|
5831
|
+
fields?: PushField[];
|
|
5832
|
+
totals: {
|
|
5833
|
+
netsuite: number;
|
|
5834
|
+
order: number;
|
|
5835
|
+
matches: boolean;
|
|
5836
|
+
currencyCode: string;
|
|
5837
|
+
};
|
|
5838
|
+
checks: PushCheck[];
|
|
5839
|
+
canSend: boolean;
|
|
5840
|
+
warnings: string[];
|
|
5841
|
+
blockers: string[];
|
|
5842
|
+
}
|
|
5843
|
+
interface NetsuiteSyncDefinition {
|
|
5844
|
+
key: string;
|
|
5845
|
+
label: string;
|
|
5846
|
+
recordTypes: string[];
|
|
5847
|
+
supportsSingle: boolean;
|
|
5848
|
+
supportsFull: boolean;
|
|
5849
|
+
heavy: boolean;
|
|
5850
|
+
fields: string[];
|
|
5851
|
+
source: string;
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
interface RevalidationResult {
|
|
5855
|
+
domain: string;
|
|
5856
|
+
url: string;
|
|
5857
|
+
ok: boolean;
|
|
5858
|
+
error: string | null;
|
|
5859
|
+
durationMs: number;
|
|
5860
|
+
at: string;
|
|
5861
|
+
}
|
|
5862
|
+
interface CacheStoreTarget {
|
|
5863
|
+
id: string;
|
|
5864
|
+
name: string;
|
|
5865
|
+
domain: string;
|
|
5866
|
+
reachable: boolean;
|
|
5867
|
+
lastResult: RevalidationResult | null;
|
|
5868
|
+
}
|
|
5869
|
+
interface CacheStatus {
|
|
5870
|
+
secretConfigured: boolean;
|
|
5871
|
+
urlOverride: string | null;
|
|
5872
|
+
urlTemplate: string | null;
|
|
5873
|
+
tags: string[];
|
|
5874
|
+
stores: CacheStoreTarget[];
|
|
5875
|
+
}
|
|
5876
|
+
|
|
5642
5877
|
interface CheckoutAddressInput {
|
|
5643
5878
|
addressLine1: string;
|
|
5644
5879
|
addressLine2?: string;
|
|
@@ -5719,4 +5954,4 @@ interface IWishlist extends BaseEntity {
|
|
|
5719
5954
|
items: IWishlistItem[];
|
|
5720
5955
|
}
|
|
5721
5956
|
|
|
5722
|
-
export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AWAITING_PAYMENT_STATUSES, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type ApiResponse, type AppliedTax, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CATEGORY_FIELDS, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EffectiveAccess, 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 ICategory, type ICategorySubcategory, 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 INetsuiteOrderLink, 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 IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type Metadata, NETSUITE_OWNED_FIELDS, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, NetsuiteFieldProvider, type NetsuiteOwnedEntity, type NetsuiteRelationSource, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, ProductVariantTypeEnum, QUOTE_ORDER_STATUSES, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, SALE_TYPE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TRANSACTION_TYPE_VALUES, TransactionTypeEnum, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, categoryFields, conditionHolds, couponFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveStoreScope, roundMoney, saleTypeOf, statusColors, stockVerdict, syncOwnerFor, toIdString, typeColorMap };
|
|
5957
|
+
export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AWAITING_PAYMENT_STATUSES, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type ApiResponse, type AppliedTax, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CATEGORY_FIELDS, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, 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 ICategory, type ICategorySubcategory, 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 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 IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuiteReceipt, type NetsuiteRelationSource, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, 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, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, categoryFields, conditionHolds, couponFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveStoreScope, roundMoney, saleTypeOf, statusColors, stockVerdict, syncOwnerFor, toIdString, typeColorMap };
|
package/dist/index.d.ts
CHANGED
|
@@ -418,6 +418,14 @@ interface AddonNetsuiteLink {
|
|
|
418
418
|
itemName?: string;
|
|
419
419
|
syncedAt?: Date | string;
|
|
420
420
|
}
|
|
421
|
+
interface AddonSnapshot {
|
|
422
|
+
groupKey: string;
|
|
423
|
+
addonKey: string;
|
|
424
|
+
name: string;
|
|
425
|
+
price: number;
|
|
426
|
+
pricingType: PricingType;
|
|
427
|
+
quantity: number;
|
|
428
|
+
}
|
|
421
429
|
|
|
422
430
|
interface ProductAddonScope {
|
|
423
431
|
storeId?: string;
|
|
@@ -1113,6 +1121,17 @@ interface IEmailTemplate extends BaseEntity {
|
|
|
1113
1121
|
isVisible: boolean;
|
|
1114
1122
|
status: boolean;
|
|
1115
1123
|
}
|
|
1124
|
+
declare const EmailParamMismatchKindEnum: {
|
|
1125
|
+
readonly MISSING: "missing";
|
|
1126
|
+
readonly UNDECLARED: "undeclared";
|
|
1127
|
+
readonly UNLISTED: "unlisted";
|
|
1128
|
+
};
|
|
1129
|
+
type EmailParamMismatchKindEnum = (typeof EmailParamMismatchKindEnum)[keyof typeof EmailParamMismatchKindEnum];
|
|
1130
|
+
declare const EMAIL_PARAM_MISMATCH_KIND_VALUES: ("missing" | "undeclared" | "unlisted")[];
|
|
1131
|
+
interface EmailParamMismatch {
|
|
1132
|
+
kind: EmailParamMismatchKindEnum;
|
|
1133
|
+
token: string;
|
|
1134
|
+
}
|
|
1116
1135
|
|
|
1117
1136
|
declare const ConfiguratorSelectModeEnum: {
|
|
1118
1137
|
readonly SINGLE: "SINGLE";
|
|
@@ -1305,6 +1324,12 @@ interface IUnmatched404 extends BaseEntity {
|
|
|
1305
1324
|
stores?: (IStore | string)[];
|
|
1306
1325
|
suggestions?: IRedirectSuggestion[];
|
|
1307
1326
|
}
|
|
1327
|
+
interface MatchResult {
|
|
1328
|
+
best: IRedirectSuggestion | null;
|
|
1329
|
+
score: number;
|
|
1330
|
+
autoLink: boolean;
|
|
1331
|
+
suggestions: IRedirectSuggestion[];
|
|
1332
|
+
}
|
|
1308
1333
|
|
|
1309
1334
|
declare const normalizePath: (input: string) => string;
|
|
1310
1335
|
declare const canonicalizeSlug: (input: string) => string;
|
|
@@ -5639,6 +5664,216 @@ declare const NETSUITE_RELATION_GROUPS: readonly string[];
|
|
|
5639
5664
|
*/
|
|
5640
5665
|
declare const syncOwnerFor: (entity: NetsuiteOwnedEntity) => string;
|
|
5641
5666
|
|
|
5667
|
+
declare const NetsuiteEventStateEnum: {
|
|
5668
|
+
readonly APPLIED: "applied";
|
|
5669
|
+
readonly DEFERRED: "deferred";
|
|
5670
|
+
readonly FAILED: "failed";
|
|
5671
|
+
readonly SKIPPED: "skipped";
|
|
5672
|
+
};
|
|
5673
|
+
type NetsuiteEventStateEnum = (typeof NetsuiteEventStateEnum)[keyof typeof NetsuiteEventStateEnum];
|
|
5674
|
+
declare const NETSUITE_EVENT_STATE_VALUES: ("applied" | "deferred" | "failed" | "skipped")[];
|
|
5675
|
+
interface INetsuiteEvent extends BaseEntity {
|
|
5676
|
+
eventId: string;
|
|
5677
|
+
recordType: string;
|
|
5678
|
+
recordId: string;
|
|
5679
|
+
action?: string;
|
|
5680
|
+
sourceId?: string;
|
|
5681
|
+
orderId?: string;
|
|
5682
|
+
state: NetsuiteEventStateEnum;
|
|
5683
|
+
detail?: string;
|
|
5684
|
+
receivedAt: Date;
|
|
5685
|
+
appliedAt?: Date;
|
|
5686
|
+
attempts?: number;
|
|
5687
|
+
lastAttemptAt?: Date;
|
|
5688
|
+
}
|
|
5689
|
+
interface INetsuiteQueueEntry {
|
|
5690
|
+
key: string;
|
|
5691
|
+
label: string;
|
|
5692
|
+
state: "queued" | "running";
|
|
5693
|
+
runsInSeconds: number | null;
|
|
5694
|
+
runningForSeconds: number | null;
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
declare const TaxRateSourceEnum: {
|
|
5698
|
+
readonly GROUP: "group";
|
|
5699
|
+
readonly ORDERS: "orders";
|
|
5700
|
+
};
|
|
5701
|
+
type TaxRateSourceEnum = (typeof TaxRateSourceEnum)[keyof typeof TaxRateSourceEnum];
|
|
5702
|
+
declare const TAX_RATE_SOURCE_VALUES: ("orders" | "group")[];
|
|
5703
|
+
interface ITaxRate extends BaseEntity {
|
|
5704
|
+
key: string;
|
|
5705
|
+
city: string;
|
|
5706
|
+
zip: string;
|
|
5707
|
+
state: string;
|
|
5708
|
+
county?: string;
|
|
5709
|
+
rate: number;
|
|
5710
|
+
netsuiteGroupId: string;
|
|
5711
|
+
netsuiteGroupName: string;
|
|
5712
|
+
source: TaxRateSourceEnum;
|
|
5713
|
+
syncedAt: Date;
|
|
5714
|
+
}
|
|
5715
|
+
|
|
5716
|
+
interface TaxSyncResult {
|
|
5717
|
+
groups: number;
|
|
5718
|
+
rates: number;
|
|
5719
|
+
overlaps: number;
|
|
5720
|
+
observed: number;
|
|
5721
|
+
corrected: number;
|
|
5722
|
+
removed: number;
|
|
5723
|
+
states: string[];
|
|
5724
|
+
}
|
|
5725
|
+
interface PromotionSyncResult {
|
|
5726
|
+
found: number;
|
|
5727
|
+
written: number;
|
|
5728
|
+
codes: string[];
|
|
5729
|
+
skipped: Array<{
|
|
5730
|
+
code: string;
|
|
5731
|
+
name: string;
|
|
5732
|
+
reason: string;
|
|
5733
|
+
}>;
|
|
5734
|
+
deactivated: string[];
|
|
5735
|
+
}
|
|
5736
|
+
interface CategoryImportSummary {
|
|
5737
|
+
received: number;
|
|
5738
|
+
created: number;
|
|
5739
|
+
existing: number;
|
|
5740
|
+
linked: number;
|
|
5741
|
+
skipped: number;
|
|
5742
|
+
missingParents: string[];
|
|
5743
|
+
}
|
|
5744
|
+
interface NetsuiteLinkResult {
|
|
5745
|
+
key: string;
|
|
5746
|
+
netsuiteId: string;
|
|
5747
|
+
created: boolean;
|
|
5748
|
+
}
|
|
5749
|
+
|
|
5750
|
+
declare const PushCheckStatusEnum: {
|
|
5751
|
+
readonly PASS: "pass";
|
|
5752
|
+
readonly WARN: "warn";
|
|
5753
|
+
readonly FAIL: "fail";
|
|
5754
|
+
};
|
|
5755
|
+
type PushCheckStatusEnum = (typeof PushCheckStatusEnum)[keyof typeof PushCheckStatusEnum];
|
|
5756
|
+
declare const PUSH_CHECK_STATUS_VALUES: ("pass" | "warn" | "fail")[];
|
|
5757
|
+
interface PushCheck {
|
|
5758
|
+
key: string;
|
|
5759
|
+
label: string;
|
|
5760
|
+
status: PushCheckStatusEnum;
|
|
5761
|
+
detail?: string;
|
|
5762
|
+
fixable?: boolean;
|
|
5763
|
+
}
|
|
5764
|
+
interface PushField {
|
|
5765
|
+
label: string;
|
|
5766
|
+
value: string;
|
|
5767
|
+
note?: string;
|
|
5768
|
+
}
|
|
5769
|
+
interface NetsuitePreviewLine {
|
|
5770
|
+
kind: "item" | "fee" | "addon";
|
|
5771
|
+
name: string;
|
|
5772
|
+
sku?: string;
|
|
5773
|
+
netsuiteItemId?: string;
|
|
5774
|
+
matchedBy?: "stored id" | "SKU lookup";
|
|
5775
|
+
quantity: number;
|
|
5776
|
+
rate: number;
|
|
5777
|
+
amount: number;
|
|
5778
|
+
problem?: string;
|
|
5779
|
+
}
|
|
5780
|
+
interface NetsuiteReceipt {
|
|
5781
|
+
id: string;
|
|
5782
|
+
recordType: string;
|
|
5783
|
+
externalId: string;
|
|
5784
|
+
tranId?: string;
|
|
5785
|
+
statusText?: string;
|
|
5786
|
+
total?: number;
|
|
5787
|
+
entityId?: string;
|
|
5788
|
+
entityLabel?: string;
|
|
5789
|
+
createdDate?: string;
|
|
5790
|
+
httpStatus?: number;
|
|
5791
|
+
recordUrl?: string;
|
|
5792
|
+
pushedAt: Date;
|
|
5793
|
+
sentLines?: Array<{
|
|
5794
|
+
kind: "item" | "fee" | "addon";
|
|
5795
|
+
sku?: string;
|
|
5796
|
+
name: string;
|
|
5797
|
+
netsuiteItemId?: string;
|
|
5798
|
+
quantity: number;
|
|
5799
|
+
amount: number;
|
|
5800
|
+
}>;
|
|
5801
|
+
totalMismatch?: {
|
|
5802
|
+
charged: number;
|
|
5803
|
+
landed: number;
|
|
5804
|
+
drift: number;
|
|
5805
|
+
};
|
|
5806
|
+
}
|
|
5807
|
+
interface NetsuiteOrderPreview {
|
|
5808
|
+
orderId: string;
|
|
5809
|
+
recordType: "salesOrder" | "estimate";
|
|
5810
|
+
recordLabel: string;
|
|
5811
|
+
alreadyPushed?: NetsuiteReceipt;
|
|
5812
|
+
lastError?: {
|
|
5813
|
+
message: string;
|
|
5814
|
+
failedAt?: string;
|
|
5815
|
+
recordType?: string;
|
|
5816
|
+
};
|
|
5817
|
+
connection: {
|
|
5818
|
+
configured: boolean;
|
|
5819
|
+
missing: string[];
|
|
5820
|
+
writesEnabled: boolean;
|
|
5821
|
+
account: string;
|
|
5822
|
+
};
|
|
5823
|
+
writesEnabled: boolean;
|
|
5824
|
+
customer: {
|
|
5825
|
+
email: string;
|
|
5826
|
+
netsuiteId?: string;
|
|
5827
|
+
label?: string;
|
|
5828
|
+
willCreate: boolean;
|
|
5829
|
+
};
|
|
5830
|
+
lines: NetsuitePreviewLine[];
|
|
5831
|
+
fields?: PushField[];
|
|
5832
|
+
totals: {
|
|
5833
|
+
netsuite: number;
|
|
5834
|
+
order: number;
|
|
5835
|
+
matches: boolean;
|
|
5836
|
+
currencyCode: string;
|
|
5837
|
+
};
|
|
5838
|
+
checks: PushCheck[];
|
|
5839
|
+
canSend: boolean;
|
|
5840
|
+
warnings: string[];
|
|
5841
|
+
blockers: string[];
|
|
5842
|
+
}
|
|
5843
|
+
interface NetsuiteSyncDefinition {
|
|
5844
|
+
key: string;
|
|
5845
|
+
label: string;
|
|
5846
|
+
recordTypes: string[];
|
|
5847
|
+
supportsSingle: boolean;
|
|
5848
|
+
supportsFull: boolean;
|
|
5849
|
+
heavy: boolean;
|
|
5850
|
+
fields: string[];
|
|
5851
|
+
source: string;
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
interface RevalidationResult {
|
|
5855
|
+
domain: string;
|
|
5856
|
+
url: string;
|
|
5857
|
+
ok: boolean;
|
|
5858
|
+
error: string | null;
|
|
5859
|
+
durationMs: number;
|
|
5860
|
+
at: string;
|
|
5861
|
+
}
|
|
5862
|
+
interface CacheStoreTarget {
|
|
5863
|
+
id: string;
|
|
5864
|
+
name: string;
|
|
5865
|
+
domain: string;
|
|
5866
|
+
reachable: boolean;
|
|
5867
|
+
lastResult: RevalidationResult | null;
|
|
5868
|
+
}
|
|
5869
|
+
interface CacheStatus {
|
|
5870
|
+
secretConfigured: boolean;
|
|
5871
|
+
urlOverride: string | null;
|
|
5872
|
+
urlTemplate: string | null;
|
|
5873
|
+
tags: string[];
|
|
5874
|
+
stores: CacheStoreTarget[];
|
|
5875
|
+
}
|
|
5876
|
+
|
|
5642
5877
|
interface CheckoutAddressInput {
|
|
5643
5878
|
addressLine1: string;
|
|
5644
5879
|
addressLine2?: string;
|
|
@@ -5719,4 +5954,4 @@ interface IWishlist extends BaseEntity {
|
|
|
5719
5954
|
items: IWishlistItem[];
|
|
5720
5955
|
}
|
|
5721
5956
|
|
|
5722
|
-
export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AWAITING_PAYMENT_STATUSES, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type ApiResponse, type AppliedTax, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CATEGORY_FIELDS, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EffectiveAccess, 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 ICategory, type ICategorySubcategory, 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 INetsuiteOrderLink, 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 IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type Metadata, NETSUITE_OWNED_FIELDS, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, NetsuiteFieldProvider, type NetsuiteOwnedEntity, type NetsuiteRelationSource, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, ProductVariantTypeEnum, QUOTE_ORDER_STATUSES, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, SALE_TYPE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TRANSACTION_TYPE_VALUES, TransactionTypeEnum, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, categoryFields, conditionHolds, couponFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveStoreScope, roundMoney, saleTypeOf, statusColors, stockVerdict, syncOwnerFor, toIdString, typeColorMap };
|
|
5957
|
+
export { ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AWAITING_PAYMENT_STATUSES, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type ApiResponse, type AppliedTax, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CATEGORY_FIELDS, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, 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 ICategory, type ICategorySubcategory, 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 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 IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuiteReceipt, type NetsuiteRelationSource, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, 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, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, categoryFields, conditionHolds, couponFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveStoreScope, roundMoney, saleTypeOf, statusColors, stockVerdict, syncOwnerFor, toIdString, typeColorMap };
|
package/dist/index.js
CHANGED
|
@@ -48,17 +48,21 @@ __export(index_exports, {
|
|
|
48
48
|
DEFAULT_SUBSCRIPTION_TOPICS: () => DEFAULT_SUBSCRIPTION_TOPICS,
|
|
49
49
|
DISCOUNT_TYPE_VALUES: () => DISCOUNT_TYPE_VALUES,
|
|
50
50
|
DiscountTypeEnum: () => DiscountTypeEnum,
|
|
51
|
+
EMAIL_PARAM_MISMATCH_KIND_VALUES: () => EMAIL_PARAM_MISMATCH_KIND_VALUES,
|
|
51
52
|
EMAIL_TEMPLATE_EVENT_VALUES: () => EMAIL_TEMPLATE_EVENT_VALUES,
|
|
52
53
|
EMAIL_TEMPLATE_VARIABLES_BY_EVENT: () => EMAIL_TEMPLATE_VARIABLES_BY_EVENT,
|
|
53
54
|
EMPTY_ACCESS: () => EMPTY_ACCESS,
|
|
55
|
+
EmailParamMismatchKindEnum: () => EmailParamMismatchKindEnum,
|
|
54
56
|
EmailTemplateEventEnum: () => EmailTemplateEventEnum,
|
|
55
57
|
FEE_APPLIES_TO_VALUES: () => FEE_APPLIES_TO_VALUES,
|
|
56
58
|
FeeAppliesToEnum: () => FeeAppliesToEnum,
|
|
57
59
|
INVENTORY_POLICY_VALUES: () => INVENTORY_POLICY_VALUES,
|
|
58
60
|
InventoryPolicyEnum: () => InventoryPolicyEnum,
|
|
61
|
+
NETSUITE_EVENT_STATE_VALUES: () => NETSUITE_EVENT_STATE_VALUES,
|
|
59
62
|
NETSUITE_OWNED_FIELDS: () => NETSUITE_OWNED_FIELDS,
|
|
60
63
|
NETSUITE_RELATION_GROUPS: () => NETSUITE_RELATION_GROUPS,
|
|
61
64
|
NOTIFICATION_TYPE_VALUES: () => NOTIFICATION_TYPE_VALUES,
|
|
65
|
+
NetsuiteEventStateEnum: () => NetsuiteEventStateEnum,
|
|
62
66
|
NetsuiteFieldProvider: () => NetsuiteFieldProvider,
|
|
63
67
|
NotificationTypeEnum: () => NotificationTypeEnum,
|
|
64
68
|
OPEN_ORDER_STATUSES: () => OPEN_ORDER_STATUSES,
|
|
@@ -75,6 +79,7 @@ __export(index_exports, {
|
|
|
75
79
|
PRODUCT_VARIANT_TYPE_VALUES: () => PRODUCT_VARIANT_TYPE_VALUES,
|
|
76
80
|
PROVIDERS: () => PROVIDERS,
|
|
77
81
|
PURCHASE_ORDER_STATUSES: () => PURCHASE_ORDER_STATUSES,
|
|
82
|
+
PUSH_CHECK_STATUS_VALUES: () => PUSH_CHECK_STATUS_VALUES,
|
|
78
83
|
PaymentGatewayEnum: () => PaymentGatewayEnum,
|
|
79
84
|
PaymentLinkStatusEnum: () => PaymentLinkStatusEnum,
|
|
80
85
|
PaymentMethodEnum: () => PaymentMethodEnum,
|
|
@@ -82,6 +87,7 @@ __export(index_exports, {
|
|
|
82
87
|
PricingTypeEnum: () => PricingTypeEnum,
|
|
83
88
|
ProductEventTypeEnum: () => ProductEventTypeEnum,
|
|
84
89
|
ProductVariantTypeEnum: () => ProductVariantTypeEnum,
|
|
90
|
+
PushCheckStatusEnum: () => PushCheckStatusEnum,
|
|
85
91
|
QUOTE_ORDER_STATUSES: () => QUOTE_ORDER_STATUSES,
|
|
86
92
|
RELATION_FIELDS: () => RELATION_FIELDS,
|
|
87
93
|
RESOURCE_OPERATIONS: () => RESOURCE_OPERATIONS,
|
|
@@ -95,7 +101,9 @@ __export(index_exports, {
|
|
|
95
101
|
StockVerdictEnum: () => StockVerdictEnum,
|
|
96
102
|
SubscriptionChannelEnum: () => SubscriptionChannelEnum,
|
|
97
103
|
SubscriptionTopicEnum: () => SubscriptionTopicEnum,
|
|
104
|
+
TAX_RATE_SOURCE_VALUES: () => TAX_RATE_SOURCE_VALUES,
|
|
98
105
|
TRANSACTION_TYPE_VALUES: () => TRANSACTION_TYPE_VALUES,
|
|
106
|
+
TaxRateSourceEnum: () => TaxRateSourceEnum,
|
|
99
107
|
TransactionTypeEnum: () => TransactionTypeEnum,
|
|
100
108
|
WIRED_EMAIL_TEMPLATE_EVENTS: () => WIRED_EMAIL_TEMPLATE_EVENTS,
|
|
101
109
|
actionsForResource: () => actionsForResource,
|
|
@@ -1564,6 +1572,12 @@ var EMAIL_TEMPLATE_VARIABLES_BY_EVENT = {
|
|
|
1564
1572
|
[EmailTemplateEventEnum.NOTIFICATION]: ["recipientName", "title", "message", "ctaLabel", "ctaUrl"],
|
|
1565
1573
|
[EmailTemplateEventEnum.PROMOTIONAL]: ["recipientName", "headline", "body", "ctaLabel", "ctaUrl", "unsubscribeUrl"]
|
|
1566
1574
|
};
|
|
1575
|
+
var EmailParamMismatchKindEnum = {
|
|
1576
|
+
MISSING: "missing",
|
|
1577
|
+
UNDECLARED: "undeclared",
|
|
1578
|
+
UNLISTED: "unlisted"
|
|
1579
|
+
};
|
|
1580
|
+
var EMAIL_PARAM_MISMATCH_KIND_VALUES = Object.values(EmailParamMismatchKindEnum);
|
|
1567
1581
|
|
|
1568
1582
|
// src/configurator/interface.ts
|
|
1569
1583
|
var ConfiguratorSelectModeEnum = {
|
|
@@ -2179,6 +2193,30 @@ var CampaignRecipientStatusEnum = {
|
|
|
2179
2193
|
};
|
|
2180
2194
|
var CAMPAIGN_RECIPIENT_STATUS_VALUES = Object.values(CampaignRecipientStatusEnum);
|
|
2181
2195
|
|
|
2196
|
+
// src/netsuiteEvent/interface.ts
|
|
2197
|
+
var NetsuiteEventStateEnum = {
|
|
2198
|
+
APPLIED: "applied",
|
|
2199
|
+
DEFERRED: "deferred",
|
|
2200
|
+
FAILED: "failed",
|
|
2201
|
+
SKIPPED: "skipped"
|
|
2202
|
+
};
|
|
2203
|
+
var NETSUITE_EVENT_STATE_VALUES = Object.values(NetsuiteEventStateEnum);
|
|
2204
|
+
|
|
2205
|
+
// src/taxRate/interface.ts
|
|
2206
|
+
var TaxRateSourceEnum = {
|
|
2207
|
+
GROUP: "group",
|
|
2208
|
+
ORDERS: "orders"
|
|
2209
|
+
};
|
|
2210
|
+
var TAX_RATE_SOURCE_VALUES = Object.values(TaxRateSourceEnum);
|
|
2211
|
+
|
|
2212
|
+
// src/netsuitePush/interface.ts
|
|
2213
|
+
var PushCheckStatusEnum = {
|
|
2214
|
+
PASS: "pass",
|
|
2215
|
+
WARN: "warn",
|
|
2216
|
+
FAIL: "fail"
|
|
2217
|
+
};
|
|
2218
|
+
var PUSH_CHECK_STATUS_VALUES = Object.values(PushCheckStatusEnum);
|
|
2219
|
+
|
|
2182
2220
|
// src/stock/interface.ts
|
|
2183
2221
|
var StockStatusEnum = {
|
|
2184
2222
|
IN_STOCK: "IN_STOCK",
|