@fas-core/shared-types 1.0.127 → 1.0.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -109,6 +109,8 @@ declare const isValidPassword: (value: unknown) => value is string;
109
109
  declare const trimmedText: (value: unknown) => string;
110
110
  declare const COMPANY_MAX_LENGTH = 83;
111
111
  declare const companyNameOf: (value: unknown) => string;
112
+ declare const PHONE_MAX_LENGTH = 34;
113
+ declare const isValidPhone: (value: unknown) => boolean;
112
114
 
113
115
  interface ICurrency extends BaseEntity {
114
116
  name: string;
@@ -241,8 +243,14 @@ declare const AccountSourceEnum: {
241
243
  };
242
244
  type AccountSource = (typeof AccountSourceEnum)[keyof typeof AccountSourceEnum];
243
245
  declare const ACCOUNT_SOURCE_VALUES: AccountSource[];
246
+ declare const CustomerAccountErrorCodeEnum: {
247
+ readonly ACCOUNT_EXISTS: "ACCOUNT_EXISTS";
248
+ readonly ACCOUNT_DISABLED: "ACCOUNT_DISABLED";
249
+ readonly PASSWORD_SETUP_REQUIRED: "PASSWORD_SETUP_REQUIRED";
250
+ };
251
+ type CustomerAccountErrorCode = (typeof CustomerAccountErrorCodeEnum)[keyof typeof CustomerAccountErrorCodeEnum];
244
252
 
245
- declare const EDITABLE_CUSTOMER_FIELDS: readonly ["firstName", "lastName", "company", "phoneNumber", "profileImage", "address", "status"];
253
+ declare const EDITABLE_CUSTOMER_FIELDS: readonly ["firstName", "lastName", "company", "phoneNumber", "profileImage", "address"];
246
254
  type EditableCustomerField = (typeof EDITABLE_CUSTOMER_FIELDS)[number];
247
255
  interface CustomerSignupRequest {
248
256
  email: string;
@@ -869,6 +877,8 @@ interface ICustomer extends BaseEntity {
869
877
  netsuitePushError: string;
870
878
  netsuiteLinkAttempts: number;
871
879
  netsuiteLinkAttemptedAt: Date | string | null;
880
+ netsuiteLinkClaimAt?: Date | string | null;
881
+ netsuiteRemovedAt?: Date | string | null;
872
882
  netsuiteLinkError: string;
873
883
  firstName: string;
874
884
  lastName: string;
@@ -1376,6 +1386,7 @@ declare const EmailTemplateEventEnum: {
1376
1386
  readonly ORDER_CANCELLED: "ORDER_CANCELLED";
1377
1387
  readonly WELCOME: "WELCOME";
1378
1388
  readonly PASSWORD_RESET: "PASSWORD_RESET";
1389
+ readonly PASSWORD_SETUP: "PASSWORD_SETUP";
1379
1390
  readonly QUOTE: "QUOTE";
1380
1391
  readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
1381
1392
  readonly QUOTE_SENT: "QUOTE_SENT";
@@ -1383,10 +1394,9 @@ declare const EmailTemplateEventEnum: {
1383
1394
  readonly INVOICE: "INVOICE";
1384
1395
  readonly PROMOTIONAL: "PROMOTIONAL";
1385
1396
  readonly CONTACT_US: "CONTACT_US";
1386
- readonly NOTIFICATION: "NOTIFICATION";
1387
1397
  };
1388
1398
  type EmailTemplateEventEnum = (typeof EmailTemplateEventEnum)[keyof typeof EmailTemplateEventEnum];
1389
- declare const EMAIL_TEMPLATE_EVENT_VALUES: ("QUOTE" | "QUOTE_REQUESTED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "QUOTE_SENT" | "QUOTE_DECLINED" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US" | "NOTIFICATION")[];
1399
+ declare const EMAIL_TEMPLATE_EVENT_VALUES: ("QUOTE" | "QUOTE_REQUESTED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "PASSWORD_SETUP" | "QUOTE_SENT" | "QUOTE_DECLINED" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US")[];
1390
1400
  declare const WIRED_EMAIL_TEMPLATE_EVENTS: EmailTemplateEventEnum[];
1391
1401
  declare const EMAIL_TEMPLATE_VARIABLES_BY_EVENT: Partial<Record<EmailTemplateEventEnum, string[]>>;
1392
1402
  interface IEmailTemplate extends BaseEntity {
@@ -2417,6 +2427,7 @@ interface FieldMapping {
2417
2427
  pending?: boolean;
2418
2428
  conditional?: boolean;
2419
2429
  identity?: boolean;
2430
+ pushed?: boolean;
2420
2431
  derivedFrom?: readonly string[];
2421
2432
  caution?: string;
2422
2433
  note?: string;
@@ -3310,6 +3321,72 @@ declare const couponFields: NetsuiteFieldProvider<{
3310
3321
  note: string;
3311
3322
  };
3312
3323
  }>;
3324
+ declare const customerFields: NetsuiteFieldProvider<{
3325
+ email: {
3326
+ before: string;
3327
+ after: string;
3328
+ target: string;
3329
+ policy: "always";
3330
+ identity: true;
3331
+ note: string;
3332
+ caution: string;
3333
+ };
3334
+ firstName: {
3335
+ before: string;
3336
+ after: string;
3337
+ target: string;
3338
+ policy: "always";
3339
+ pushed: true;
3340
+ note: string;
3341
+ };
3342
+ lastName: {
3343
+ before: string;
3344
+ after: string;
3345
+ target: string;
3346
+ policy: "always";
3347
+ pushed: true;
3348
+ note: string;
3349
+ };
3350
+ company: {
3351
+ before: string;
3352
+ after: string;
3353
+ target: string;
3354
+ policy: "always";
3355
+ pushed: true;
3356
+ note: string;
3357
+ };
3358
+ phoneNumber: {
3359
+ before: string;
3360
+ after: string;
3361
+ target: string;
3362
+ policy: "always";
3363
+ pushed: true;
3364
+ note: string;
3365
+ };
3366
+ status: {
3367
+ before: string;
3368
+ after: string;
3369
+ target: string;
3370
+ policy: "always";
3371
+ note: string;
3372
+ };
3373
+ netsuiteId: {
3374
+ before: string;
3375
+ after: string;
3376
+ target: string;
3377
+ policy: "always";
3378
+ conditional: true;
3379
+ note: string;
3380
+ };
3381
+ netsuiteEntityId: {
3382
+ before: string;
3383
+ after: string;
3384
+ target: string;
3385
+ policy: "always";
3386
+ conditional: true;
3387
+ note: string;
3388
+ };
3389
+ }>;
3313
3390
  declare const podcastFields: NetsuiteFieldProvider<{
3314
3391
  guid: {
3315
3392
  before: string;
@@ -4866,6 +4943,71 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
4866
4943
  policy: "seed";
4867
4944
  note: string;
4868
4945
  };
4946
+ }>, NetsuiteFieldProvider<{
4947
+ email: {
4948
+ before: string;
4949
+ after: string;
4950
+ target: string;
4951
+ policy: "always";
4952
+ identity: true;
4953
+ note: string;
4954
+ caution: string;
4955
+ };
4956
+ firstName: {
4957
+ before: string;
4958
+ after: string;
4959
+ target: string;
4960
+ policy: "always";
4961
+ pushed: true;
4962
+ note: string;
4963
+ };
4964
+ lastName: {
4965
+ before: string;
4966
+ after: string;
4967
+ target: string;
4968
+ policy: "always";
4969
+ pushed: true;
4970
+ note: string;
4971
+ };
4972
+ company: {
4973
+ before: string;
4974
+ after: string;
4975
+ target: string;
4976
+ policy: "always";
4977
+ pushed: true;
4978
+ note: string;
4979
+ };
4980
+ phoneNumber: {
4981
+ before: string;
4982
+ after: string;
4983
+ target: string;
4984
+ policy: "always";
4985
+ pushed: true;
4986
+ note: string;
4987
+ };
4988
+ status: {
4989
+ before: string;
4990
+ after: string;
4991
+ target: string;
4992
+ policy: "always";
4993
+ note: string;
4994
+ };
4995
+ netsuiteId: {
4996
+ before: string;
4997
+ after: string;
4998
+ target: string;
4999
+ policy: "always";
5000
+ conditional: true;
5001
+ note: string;
5002
+ };
5003
+ netsuiteEntityId: {
5004
+ before: string;
5005
+ after: string;
5006
+ target: string;
5007
+ policy: "always";
5008
+ conditional: true;
5009
+ note: string;
5010
+ };
4869
5011
  }>, NetsuiteFieldProvider<{
4870
5012
  guid: {
4871
5013
  before: string;
@@ -5810,6 +5952,72 @@ declare const BY_ENTITY: {
5810
5952
  note: string;
5811
5953
  };
5812
5954
  }>;
5955
+ readonly customer: NetsuiteFieldProvider<{
5956
+ email: {
5957
+ before: string;
5958
+ after: string;
5959
+ target: string;
5960
+ policy: "always";
5961
+ identity: true;
5962
+ note: string;
5963
+ caution: string;
5964
+ };
5965
+ firstName: {
5966
+ before: string;
5967
+ after: string;
5968
+ target: string;
5969
+ policy: "always";
5970
+ pushed: true;
5971
+ note: string;
5972
+ };
5973
+ lastName: {
5974
+ before: string;
5975
+ after: string;
5976
+ target: string;
5977
+ policy: "always";
5978
+ pushed: true;
5979
+ note: string;
5980
+ };
5981
+ company: {
5982
+ before: string;
5983
+ after: string;
5984
+ target: string;
5985
+ policy: "always";
5986
+ pushed: true;
5987
+ note: string;
5988
+ };
5989
+ phoneNumber: {
5990
+ before: string;
5991
+ after: string;
5992
+ target: string;
5993
+ policy: "always";
5994
+ pushed: true;
5995
+ note: string;
5996
+ };
5997
+ status: {
5998
+ before: string;
5999
+ after: string;
6000
+ target: string;
6001
+ policy: "always";
6002
+ note: string;
6003
+ };
6004
+ netsuiteId: {
6005
+ before: string;
6006
+ after: string;
6007
+ target: string;
6008
+ policy: "always";
6009
+ conditional: true;
6010
+ note: string;
6011
+ };
6012
+ netsuiteEntityId: {
6013
+ before: string;
6014
+ after: string;
6015
+ target: string;
6016
+ policy: "always";
6017
+ conditional: true;
6018
+ note: string;
6019
+ };
6020
+ }>;
5813
6021
  readonly podcast: NetsuiteFieldProvider<{
5814
6022
  guid: {
5815
6023
  before: string;
@@ -6224,7 +6432,7 @@ declare const BY_ENTITY: {
6224
6432
  type NetsuiteOwnedEntity = keyof typeof BY_ENTITY;
6225
6433
  declare const NETSUITE_OWNED_FIELDS: Record<NetsuiteOwnedEntity, readonly string[]>;
6226
6434
  declare const isNetsuiteOwned: (entity: NetsuiteOwnedEntity, field: string) => boolean;
6227
- type SyncRisk = 'overwritten' | 'identity' | 'seeded' | 'ours';
6435
+ type SyncRisk = 'overwritten' | 'identity' | 'seeded' | 'pushed' | 'ours';
6228
6436
  declare const netsuiteFieldRisk: (entity: NetsuiteOwnedEntity, field: string, linked?: boolean) => SyncRisk;
6229
6437
  declare const netsuiteFieldConditional: (entity: NetsuiteOwnedEntity, field: string) => boolean;
6230
6438
  interface FieldSource {
@@ -6590,4 +6798,4 @@ interface IWishlist extends BaseEntity {
6590
6798
  items: IWishlistItem[];
6591
6799
  }
6592
6800
 
6593
- export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_COLORS, CASE_STATUS_LABELS, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, COMPANY_MAX_LENGTH, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminAction, type IAdminAuditAction, type IAdminAuditLog, type IAdminBaseAction, type IAdminPermission, type IAdminResource, type IAdminRole, type IAdminRoleCreate, type IAdminSafe, type IAdminStoreAccess, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, MIN_PASSWORD_LENGTH, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PLACED_OPEN_ORDER_STATUSES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, type QuoteRequestResult, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SERVICE_PLAN_ELIGIBILITY_FIELD, STATUS_TONE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, type ServicePlanNetsuiteLink, StatusToneEnum, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, categoryFields, chargesOfLine, companyNameOf, conditionHolds, couponFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, isValidPassword, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, statusColors, statusTone, statusTones, stockVerdict, syncOwnerFor, toIdString, trimmedText, typeColorMap };
6801
+ export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_COLORS, CASE_STATUS_LABELS, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, COMPANY_MAX_LENGTH, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminAction, type IAdminAuditAction, type IAdminAuditLog, type IAdminBaseAction, type IAdminPermission, type IAdminResource, type IAdminRole, type IAdminRoleCreate, type IAdminSafe, type IAdminStoreAccess, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, MIN_PASSWORD_LENGTH, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, type QuoteRequestResult, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SERVICE_PLAN_ELIGIBILITY_FIELD, STATUS_TONE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, type ServicePlanNetsuiteLink, StatusToneEnum, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, categoryFields, chargesOfLine, companyNameOf, conditionHolds, couponFields, customerFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, isValidPassword, isValidPhone, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, statusColors, statusTone, statusTones, stockVerdict, syncOwnerFor, toIdString, trimmedText, typeColorMap };
package/dist/index.d.ts CHANGED
@@ -109,6 +109,8 @@ declare const isValidPassword: (value: unknown) => value is string;
109
109
  declare const trimmedText: (value: unknown) => string;
110
110
  declare const COMPANY_MAX_LENGTH = 83;
111
111
  declare const companyNameOf: (value: unknown) => string;
112
+ declare const PHONE_MAX_LENGTH = 34;
113
+ declare const isValidPhone: (value: unknown) => boolean;
112
114
 
113
115
  interface ICurrency extends BaseEntity {
114
116
  name: string;
@@ -241,8 +243,14 @@ declare const AccountSourceEnum: {
241
243
  };
242
244
  type AccountSource = (typeof AccountSourceEnum)[keyof typeof AccountSourceEnum];
243
245
  declare const ACCOUNT_SOURCE_VALUES: AccountSource[];
246
+ declare const CustomerAccountErrorCodeEnum: {
247
+ readonly ACCOUNT_EXISTS: "ACCOUNT_EXISTS";
248
+ readonly ACCOUNT_DISABLED: "ACCOUNT_DISABLED";
249
+ readonly PASSWORD_SETUP_REQUIRED: "PASSWORD_SETUP_REQUIRED";
250
+ };
251
+ type CustomerAccountErrorCode = (typeof CustomerAccountErrorCodeEnum)[keyof typeof CustomerAccountErrorCodeEnum];
244
252
 
245
- declare const EDITABLE_CUSTOMER_FIELDS: readonly ["firstName", "lastName", "company", "phoneNumber", "profileImage", "address", "status"];
253
+ declare const EDITABLE_CUSTOMER_FIELDS: readonly ["firstName", "lastName", "company", "phoneNumber", "profileImage", "address"];
246
254
  type EditableCustomerField = (typeof EDITABLE_CUSTOMER_FIELDS)[number];
247
255
  interface CustomerSignupRequest {
248
256
  email: string;
@@ -869,6 +877,8 @@ interface ICustomer extends BaseEntity {
869
877
  netsuitePushError: string;
870
878
  netsuiteLinkAttempts: number;
871
879
  netsuiteLinkAttemptedAt: Date | string | null;
880
+ netsuiteLinkClaimAt?: Date | string | null;
881
+ netsuiteRemovedAt?: Date | string | null;
872
882
  netsuiteLinkError: string;
873
883
  firstName: string;
874
884
  lastName: string;
@@ -1376,6 +1386,7 @@ declare const EmailTemplateEventEnum: {
1376
1386
  readonly ORDER_CANCELLED: "ORDER_CANCELLED";
1377
1387
  readonly WELCOME: "WELCOME";
1378
1388
  readonly PASSWORD_RESET: "PASSWORD_RESET";
1389
+ readonly PASSWORD_SETUP: "PASSWORD_SETUP";
1379
1390
  readonly QUOTE: "QUOTE";
1380
1391
  readonly QUOTE_REQUESTED: "QUOTE_REQUESTED";
1381
1392
  readonly QUOTE_SENT: "QUOTE_SENT";
@@ -1383,10 +1394,9 @@ declare const EmailTemplateEventEnum: {
1383
1394
  readonly INVOICE: "INVOICE";
1384
1395
  readonly PROMOTIONAL: "PROMOTIONAL";
1385
1396
  readonly CONTACT_US: "CONTACT_US";
1386
- readonly NOTIFICATION: "NOTIFICATION";
1387
1397
  };
1388
1398
  type EmailTemplateEventEnum = (typeof EmailTemplateEventEnum)[keyof typeof EmailTemplateEventEnum];
1389
- declare const EMAIL_TEMPLATE_EVENT_VALUES: ("QUOTE" | "QUOTE_REQUESTED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "QUOTE_SENT" | "QUOTE_DECLINED" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US" | "NOTIFICATION")[];
1399
+ declare const EMAIL_TEMPLATE_EVENT_VALUES: ("QUOTE" | "QUOTE_REQUESTED" | "ORDER_RECEIVED" | "ORDER_CANCELLED" | "WELCOME" | "PASSWORD_RESET" | "PASSWORD_SETUP" | "QUOTE_SENT" | "QUOTE_DECLINED" | "INVOICE" | "PROMOTIONAL" | "CONTACT_US")[];
1390
1400
  declare const WIRED_EMAIL_TEMPLATE_EVENTS: EmailTemplateEventEnum[];
1391
1401
  declare const EMAIL_TEMPLATE_VARIABLES_BY_EVENT: Partial<Record<EmailTemplateEventEnum, string[]>>;
1392
1402
  interface IEmailTemplate extends BaseEntity {
@@ -2417,6 +2427,7 @@ interface FieldMapping {
2417
2427
  pending?: boolean;
2418
2428
  conditional?: boolean;
2419
2429
  identity?: boolean;
2430
+ pushed?: boolean;
2420
2431
  derivedFrom?: readonly string[];
2421
2432
  caution?: string;
2422
2433
  note?: string;
@@ -3310,6 +3321,72 @@ declare const couponFields: NetsuiteFieldProvider<{
3310
3321
  note: string;
3311
3322
  };
3312
3323
  }>;
3324
+ declare const customerFields: NetsuiteFieldProvider<{
3325
+ email: {
3326
+ before: string;
3327
+ after: string;
3328
+ target: string;
3329
+ policy: "always";
3330
+ identity: true;
3331
+ note: string;
3332
+ caution: string;
3333
+ };
3334
+ firstName: {
3335
+ before: string;
3336
+ after: string;
3337
+ target: string;
3338
+ policy: "always";
3339
+ pushed: true;
3340
+ note: string;
3341
+ };
3342
+ lastName: {
3343
+ before: string;
3344
+ after: string;
3345
+ target: string;
3346
+ policy: "always";
3347
+ pushed: true;
3348
+ note: string;
3349
+ };
3350
+ company: {
3351
+ before: string;
3352
+ after: string;
3353
+ target: string;
3354
+ policy: "always";
3355
+ pushed: true;
3356
+ note: string;
3357
+ };
3358
+ phoneNumber: {
3359
+ before: string;
3360
+ after: string;
3361
+ target: string;
3362
+ policy: "always";
3363
+ pushed: true;
3364
+ note: string;
3365
+ };
3366
+ status: {
3367
+ before: string;
3368
+ after: string;
3369
+ target: string;
3370
+ policy: "always";
3371
+ note: string;
3372
+ };
3373
+ netsuiteId: {
3374
+ before: string;
3375
+ after: string;
3376
+ target: string;
3377
+ policy: "always";
3378
+ conditional: true;
3379
+ note: string;
3380
+ };
3381
+ netsuiteEntityId: {
3382
+ before: string;
3383
+ after: string;
3384
+ target: string;
3385
+ policy: "always";
3386
+ conditional: true;
3387
+ note: string;
3388
+ };
3389
+ }>;
3313
3390
  declare const podcastFields: NetsuiteFieldProvider<{
3314
3391
  guid: {
3315
3392
  before: string;
@@ -4866,6 +4943,71 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
4866
4943
  policy: "seed";
4867
4944
  note: string;
4868
4945
  };
4946
+ }>, NetsuiteFieldProvider<{
4947
+ email: {
4948
+ before: string;
4949
+ after: string;
4950
+ target: string;
4951
+ policy: "always";
4952
+ identity: true;
4953
+ note: string;
4954
+ caution: string;
4955
+ };
4956
+ firstName: {
4957
+ before: string;
4958
+ after: string;
4959
+ target: string;
4960
+ policy: "always";
4961
+ pushed: true;
4962
+ note: string;
4963
+ };
4964
+ lastName: {
4965
+ before: string;
4966
+ after: string;
4967
+ target: string;
4968
+ policy: "always";
4969
+ pushed: true;
4970
+ note: string;
4971
+ };
4972
+ company: {
4973
+ before: string;
4974
+ after: string;
4975
+ target: string;
4976
+ policy: "always";
4977
+ pushed: true;
4978
+ note: string;
4979
+ };
4980
+ phoneNumber: {
4981
+ before: string;
4982
+ after: string;
4983
+ target: string;
4984
+ policy: "always";
4985
+ pushed: true;
4986
+ note: string;
4987
+ };
4988
+ status: {
4989
+ before: string;
4990
+ after: string;
4991
+ target: string;
4992
+ policy: "always";
4993
+ note: string;
4994
+ };
4995
+ netsuiteId: {
4996
+ before: string;
4997
+ after: string;
4998
+ target: string;
4999
+ policy: "always";
5000
+ conditional: true;
5001
+ note: string;
5002
+ };
5003
+ netsuiteEntityId: {
5004
+ before: string;
5005
+ after: string;
5006
+ target: string;
5007
+ policy: "always";
5008
+ conditional: true;
5009
+ note: string;
5010
+ };
4869
5011
  }>, NetsuiteFieldProvider<{
4870
5012
  guid: {
4871
5013
  before: string;
@@ -5810,6 +5952,72 @@ declare const BY_ENTITY: {
5810
5952
  note: string;
5811
5953
  };
5812
5954
  }>;
5955
+ readonly customer: NetsuiteFieldProvider<{
5956
+ email: {
5957
+ before: string;
5958
+ after: string;
5959
+ target: string;
5960
+ policy: "always";
5961
+ identity: true;
5962
+ note: string;
5963
+ caution: string;
5964
+ };
5965
+ firstName: {
5966
+ before: string;
5967
+ after: string;
5968
+ target: string;
5969
+ policy: "always";
5970
+ pushed: true;
5971
+ note: string;
5972
+ };
5973
+ lastName: {
5974
+ before: string;
5975
+ after: string;
5976
+ target: string;
5977
+ policy: "always";
5978
+ pushed: true;
5979
+ note: string;
5980
+ };
5981
+ company: {
5982
+ before: string;
5983
+ after: string;
5984
+ target: string;
5985
+ policy: "always";
5986
+ pushed: true;
5987
+ note: string;
5988
+ };
5989
+ phoneNumber: {
5990
+ before: string;
5991
+ after: string;
5992
+ target: string;
5993
+ policy: "always";
5994
+ pushed: true;
5995
+ note: string;
5996
+ };
5997
+ status: {
5998
+ before: string;
5999
+ after: string;
6000
+ target: string;
6001
+ policy: "always";
6002
+ note: string;
6003
+ };
6004
+ netsuiteId: {
6005
+ before: string;
6006
+ after: string;
6007
+ target: string;
6008
+ policy: "always";
6009
+ conditional: true;
6010
+ note: string;
6011
+ };
6012
+ netsuiteEntityId: {
6013
+ before: string;
6014
+ after: string;
6015
+ target: string;
6016
+ policy: "always";
6017
+ conditional: true;
6018
+ note: string;
6019
+ };
6020
+ }>;
5813
6021
  readonly podcast: NetsuiteFieldProvider<{
5814
6022
  guid: {
5815
6023
  before: string;
@@ -6224,7 +6432,7 @@ declare const BY_ENTITY: {
6224
6432
  type NetsuiteOwnedEntity = keyof typeof BY_ENTITY;
6225
6433
  declare const NETSUITE_OWNED_FIELDS: Record<NetsuiteOwnedEntity, readonly string[]>;
6226
6434
  declare const isNetsuiteOwned: (entity: NetsuiteOwnedEntity, field: string) => boolean;
6227
- type SyncRisk = 'overwritten' | 'identity' | 'seeded' | 'ours';
6435
+ type SyncRisk = 'overwritten' | 'identity' | 'seeded' | 'pushed' | 'ours';
6228
6436
  declare const netsuiteFieldRisk: (entity: NetsuiteOwnedEntity, field: string, linked?: boolean) => SyncRisk;
6229
6437
  declare const netsuiteFieldConditional: (entity: NetsuiteOwnedEntity, field: string) => boolean;
6230
6438
  interface FieldSource {
@@ -6590,4 +6798,4 @@ interface IWishlist extends BaseEntity {
6590
6798
  items: IWishlistItem[];
6591
6799
  }
6592
6800
 
6593
- export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_COLORS, CASE_STATUS_LABELS, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, COMPANY_MAX_LENGTH, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminAction, type IAdminAuditAction, type IAdminAuditLog, type IAdminBaseAction, type IAdminPermission, type IAdminResource, type IAdminRole, type IAdminRoleCreate, type IAdminSafe, type IAdminStoreAccess, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, MIN_PASSWORD_LENGTH, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PLACED_OPEN_ORDER_STATUSES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, type QuoteRequestResult, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SERVICE_PLAN_ELIGIBILITY_FIELD, STATUS_TONE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, type ServicePlanNetsuiteLink, StatusToneEnum, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, categoryFields, chargesOfLine, companyNameOf, conditionHolds, couponFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, isValidPassword, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, statusColors, statusTone, statusTones, stockVerdict, syncOwnerFor, toIdString, trimmedText, typeColorMap };
6801
+ export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_COLORS, CASE_STATUS_LABELS, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, COMPANY_MAX_LENGTH, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminAction, type IAdminAuditAction, type IAdminAuditLog, type IAdminBaseAction, type IAdminPermission, type IAdminResource, type IAdminRole, type IAdminRoleCreate, type IAdminSafe, type IAdminStoreAccess, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, MIN_PASSWORD_LENGTH, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, type QuoteRequestResult, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SERVICE_PLAN_ELIGIBILITY_FIELD, STATUS_TONE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SelectedShippingMethod, type ServicePlanNetsuiteLink, StatusToneEnum, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, categoryFields, chargesOfLine, companyNameOf, conditionHolds, couponFields, customerFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isValidAction, isValidEmail, isValidPassword, isValidPhone, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, statusColors, statusTone, statusTones, stockVerdict, syncOwnerFor, toIdString, trimmedText, typeColorMap };