@fas-core/shared-types 1.0.132 → 1.0.134
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 +677 -205
- package/dist/index.d.ts +677 -205
- package/dist/index.js +997 -184
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +997 -184
- package/dist/index.mjs.map +1 -1
- package/package.json +47 -42
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,193 @@ interface ApiResponse<T> {
|
|
|
28
28
|
error?: string;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
interface ICurrency extends BaseEntity {
|
|
32
|
+
name: string;
|
|
33
|
+
symbol: string;
|
|
34
|
+
status: boolean;
|
|
35
|
+
iso_code: string;
|
|
36
|
+
exchange_rate: number;
|
|
37
|
+
live_exchange_rates: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface IShipFromAddress {
|
|
41
|
+
name?: string;
|
|
42
|
+
phone?: string;
|
|
43
|
+
addressLine1: string;
|
|
44
|
+
addressLine2?: string;
|
|
45
|
+
city: string;
|
|
46
|
+
stateProvince: string;
|
|
47
|
+
postalCode: string;
|
|
48
|
+
countryCode: string;
|
|
49
|
+
}
|
|
50
|
+
interface IShippingRate {
|
|
51
|
+
rateId: string;
|
|
52
|
+
carrierId: string;
|
|
53
|
+
carrier: string;
|
|
54
|
+
serviceCode: string;
|
|
55
|
+
service: string;
|
|
56
|
+
amount: number;
|
|
57
|
+
currency: string;
|
|
58
|
+
deliveryDays: number | null;
|
|
59
|
+
estimatedDelivery: string | null;
|
|
60
|
+
}
|
|
61
|
+
interface RateAddress {
|
|
62
|
+
addressee?: string;
|
|
63
|
+
addr1?: string;
|
|
64
|
+
addr2?: string;
|
|
65
|
+
city?: string;
|
|
66
|
+
state?: string;
|
|
67
|
+
zip?: string;
|
|
68
|
+
countryCode?: string;
|
|
69
|
+
isResidential?: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface RatedShippingMethod {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
shipping: number;
|
|
75
|
+
handling: number;
|
|
76
|
+
total: number;
|
|
77
|
+
free: boolean;
|
|
78
|
+
estimated: boolean;
|
|
79
|
+
handlingTaxable?: boolean;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare const StoreThemeEnum: {
|
|
83
|
+
readonly LIGHT: "light";
|
|
84
|
+
readonly DARK: "dark";
|
|
85
|
+
};
|
|
86
|
+
type StoreThemeEnum = (typeof StoreThemeEnum)[keyof typeof StoreThemeEnum];
|
|
87
|
+
declare const STORE_THEME_VALUES: ("light" | "dark")[];
|
|
88
|
+
interface IStoreSettings {
|
|
89
|
+
logo: string;
|
|
90
|
+
theme: StoreThemeEnum;
|
|
91
|
+
favicon: string;
|
|
92
|
+
timezone: string;
|
|
93
|
+
requireCustomerLogin: boolean;
|
|
94
|
+
seoMetaData: ISEOMetaData;
|
|
95
|
+
}
|
|
96
|
+
interface IStore extends BaseEntity {
|
|
97
|
+
name: string;
|
|
98
|
+
shortName: string;
|
|
99
|
+
slug: string;
|
|
100
|
+
domain: string;
|
|
101
|
+
isPrimarySite: boolean;
|
|
102
|
+
parent?: IStore | string | null;
|
|
103
|
+
shipFrom?: IShipFromAddress;
|
|
104
|
+
currencies: ICurrency[];
|
|
105
|
+
defaultCurrency: ICurrency;
|
|
106
|
+
settings: IStoreSettings;
|
|
107
|
+
status: boolean;
|
|
108
|
+
storeAdmins: Array<string | Types.ObjectId>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare const PricingTypeEnum: {
|
|
112
|
+
readonly PERCENTAGE: "PERCENTAGE";
|
|
113
|
+
readonly FIXED: "FIXED";
|
|
114
|
+
};
|
|
115
|
+
type PricingType = (typeof PricingTypeEnum)[keyof typeof PricingTypeEnum];
|
|
116
|
+
declare const PRICING_TYPE_VALUES: ("PERCENTAGE" | "FIXED")[];
|
|
117
|
+
interface IAddonConfig extends BaseEntity {
|
|
118
|
+
name: string;
|
|
119
|
+
key: string;
|
|
120
|
+
description: string;
|
|
121
|
+
longDescription?: string;
|
|
122
|
+
stores: (IStore | string)[];
|
|
123
|
+
price: number;
|
|
124
|
+
pricingType: PricingType;
|
|
125
|
+
quantity: number;
|
|
126
|
+
sortOrder: number;
|
|
127
|
+
applyToAll: boolean;
|
|
128
|
+
isDefault: boolean;
|
|
129
|
+
isVisible: boolean;
|
|
130
|
+
status: boolean;
|
|
131
|
+
metaData: Metadata;
|
|
132
|
+
netsuite?: AddonNetsuiteLink | null;
|
|
133
|
+
}
|
|
134
|
+
interface IAddonGroup extends BaseEntity {
|
|
135
|
+
netsuite?: AddonGroupNetsuiteLink | null;
|
|
136
|
+
name: string;
|
|
137
|
+
key: string;
|
|
138
|
+
description: string;
|
|
139
|
+
addons: IAddonConfig[];
|
|
140
|
+
sortOrder: number;
|
|
141
|
+
isVisible: boolean;
|
|
142
|
+
status: boolean;
|
|
143
|
+
}
|
|
144
|
+
interface AddonGroupNetsuiteLink {
|
|
145
|
+
requiresField?: string;
|
|
146
|
+
syncedAt?: Date | string;
|
|
147
|
+
}
|
|
148
|
+
interface AddonNetsuiteLink {
|
|
149
|
+
itemId: string;
|
|
150
|
+
itemName?: string;
|
|
151
|
+
syncedAt?: Date | string;
|
|
152
|
+
}
|
|
153
|
+
interface AddonSnapshot {
|
|
154
|
+
groupKey: string;
|
|
155
|
+
addonKey: string;
|
|
156
|
+
name: string;
|
|
157
|
+
price: number;
|
|
158
|
+
pricingType: PricingType;
|
|
159
|
+
quantity: number;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface ProductAddonScope {
|
|
163
|
+
storeId?: string;
|
|
164
|
+
productAddonIds?: string[];
|
|
165
|
+
productPrice?: number;
|
|
166
|
+
productFlags?: Record<string, boolean | undefined>;
|
|
167
|
+
}
|
|
168
|
+
declare const resolveProductAddonGroups: (groups: IAddonGroup[], scope?: ProductAddonScope) => IAddonGroup[];
|
|
169
|
+
declare const groupHasDefaultAddon: (group: IAddonGroup) => boolean;
|
|
170
|
+
interface AddonSelectionRef {
|
|
171
|
+
groupKey: string;
|
|
172
|
+
addonKey: string;
|
|
173
|
+
}
|
|
174
|
+
interface ResolvedAddonSelection extends AddonSelectionRef {
|
|
175
|
+
addon: IAddonConfig;
|
|
176
|
+
}
|
|
177
|
+
declare const resolveAddonSelections: (groups: IAddonGroup[], selections: AddonSelectionRef[]) => ResolvedAddonSelection[];
|
|
178
|
+
|
|
179
|
+
declare const PRICING_TYPE_LABELS: Record<PricingType, string>;
|
|
180
|
+
declare const isPricingType: (value: unknown) => value is PricingType;
|
|
181
|
+
declare const pricingValueLabel: (pricingType: PricingType | null | undefined, value: number, currencyCode?: string) => string;
|
|
182
|
+
|
|
183
|
+
declare const FeeAppliesToEnum: {
|
|
184
|
+
readonly SUBTOTAL: "SUBTOTAL";
|
|
185
|
+
readonly TOTAL: "TOTAL";
|
|
186
|
+
};
|
|
187
|
+
type FeeAppliesToEnum = (typeof FeeAppliesToEnum)[keyof typeof FeeAppliesToEnum];
|
|
188
|
+
declare const FEE_APPLIES_TO_VALUES: ("SUBTOTAL" | "TOTAL")[];
|
|
189
|
+
interface IStoreFee extends BaseEntity {
|
|
190
|
+
netsuiteId?: string;
|
|
191
|
+
stores: (IStore | string)[];
|
|
192
|
+
name: string;
|
|
193
|
+
key: string;
|
|
194
|
+
description?: string;
|
|
195
|
+
pricingType: PricingType;
|
|
196
|
+
value: number;
|
|
197
|
+
appliesTo: FeeAppliesToEnum;
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
isVisible: boolean;
|
|
200
|
+
optional: boolean;
|
|
201
|
+
defaultSelected: boolean;
|
|
202
|
+
sortOrder: number;
|
|
203
|
+
status: boolean;
|
|
204
|
+
metaData: Metadata;
|
|
205
|
+
}
|
|
206
|
+
interface ISelectableFee {
|
|
207
|
+
key: string;
|
|
208
|
+
name: string;
|
|
209
|
+
description?: string;
|
|
210
|
+
pricingType: PricingType;
|
|
211
|
+
value: number;
|
|
212
|
+
appliesTo: FeeAppliesToEnum;
|
|
213
|
+
optional: boolean;
|
|
214
|
+
selected: boolean;
|
|
215
|
+
amount: number;
|
|
216
|
+
}
|
|
217
|
+
|
|
31
218
|
type Metadata = Record<string, unknown>;
|
|
32
219
|
interface IKeyValue {
|
|
33
220
|
key: string;
|
|
@@ -72,9 +259,9 @@ interface IAppliedFee {
|
|
|
72
259
|
name: string;
|
|
73
260
|
amount: number;
|
|
74
261
|
description?: string;
|
|
75
|
-
pricingType?:
|
|
262
|
+
pricingType?: PricingType;
|
|
76
263
|
value?: number;
|
|
77
|
-
appliesTo?:
|
|
264
|
+
appliesTo?: FeeAppliesToEnum;
|
|
78
265
|
optional?: boolean;
|
|
79
266
|
}
|
|
80
267
|
interface ISummaryPricing {
|
|
@@ -109,82 +296,56 @@ declare const isValidPassword: (value: unknown) => value is string;
|
|
|
109
296
|
declare const trimmedText: (value: unknown) => string;
|
|
110
297
|
declare const COMPANY_MAX_LENGTH = 83;
|
|
111
298
|
declare const companyNameOf: (value: unknown) => string;
|
|
299
|
+
declare const PO_NUMBER_MAX_LENGTH = 60;
|
|
300
|
+
declare const poNumberText: (value: unknown) => string;
|
|
112
301
|
declare const PHONE_MAX_LENGTH = 34;
|
|
113
302
|
declare const isValidPhone: (value: unknown) => boolean;
|
|
114
303
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
live_exchange_rates: boolean;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface IShipFromAddress {
|
|
125
|
-
name?: string;
|
|
126
|
-
phone?: string;
|
|
127
|
-
addressLine1: string;
|
|
128
|
-
addressLine2?: string;
|
|
129
|
-
city: string;
|
|
130
|
-
stateProvince: string;
|
|
131
|
-
postalCode: string;
|
|
132
|
-
countryCode: string;
|
|
133
|
-
}
|
|
134
|
-
interface IShippingRate {
|
|
135
|
-
rateId: string;
|
|
136
|
-
carrierId: string;
|
|
137
|
-
carrier: string;
|
|
138
|
-
serviceCode: string;
|
|
139
|
-
service: string;
|
|
140
|
-
amount: number;
|
|
141
|
-
currency: string;
|
|
142
|
-
deliveryDays: number | null;
|
|
143
|
-
estimatedDelivery: string | null;
|
|
144
|
-
}
|
|
145
|
-
interface RateAddress {
|
|
146
|
-
addressee?: string;
|
|
147
|
-
addr1?: string;
|
|
148
|
-
addr2?: string;
|
|
149
|
-
city?: string;
|
|
150
|
-
state?: string;
|
|
151
|
-
zip?: string;
|
|
152
|
-
countryCode?: string;
|
|
153
|
-
isResidential?: boolean;
|
|
154
|
-
}
|
|
155
|
-
interface RatedShippingMethod {
|
|
156
|
-
id: string;
|
|
157
|
-
name: string;
|
|
158
|
-
shipping: number;
|
|
159
|
-
handling: number;
|
|
304
|
+
declare const MAX_PAGE_SIZE = 100;
|
|
305
|
+
declare const MAX_PAGE = 1000;
|
|
306
|
+
declare const clampPageSize: (limit: unknown, fallback: number) => number;
|
|
307
|
+
declare const clampPage: (page: unknown) => number;
|
|
308
|
+
interface PaginatedResponse<T> {
|
|
309
|
+
data: T[];
|
|
160
310
|
total: number;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
311
|
+
page: number;
|
|
312
|
+
limit: number;
|
|
313
|
+
pages: number;
|
|
314
|
+
}
|
|
315
|
+
interface ServerQueryParams {
|
|
316
|
+
page?: number;
|
|
317
|
+
limit?: number;
|
|
318
|
+
search?: string;
|
|
319
|
+
sortField?: string;
|
|
320
|
+
sortOrder?: "asc" | "desc";
|
|
321
|
+
filters?: Record<string, unknown>;
|
|
322
|
+
fields?: string[];
|
|
323
|
+
populate?: string[];
|
|
324
|
+
count?: boolean;
|
|
325
|
+
has?: string[];
|
|
326
|
+
includeInactive?: boolean;
|
|
164
327
|
}
|
|
165
328
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
329
|
+
declare const BUSINESS_TIME_ZONE = "America/Los_Angeles";
|
|
330
|
+
declare const isStoredCalendarDay: (date: Date) => boolean;
|
|
331
|
+
declare const formatDay: (value?: Date | string | null, { month }?: {
|
|
332
|
+
month?: "short" | "long";
|
|
333
|
+
}) => string;
|
|
334
|
+
|
|
335
|
+
interface PersonNameInput {
|
|
336
|
+
firstName?: string | null;
|
|
337
|
+
lastName?: string | null;
|
|
173
338
|
}
|
|
174
|
-
interface
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
slug: string;
|
|
178
|
-
domain: string;
|
|
179
|
-
isPrimarySite: boolean;
|
|
180
|
-
parent?: IStore | string | null;
|
|
181
|
-
shipFrom?: IShipFromAddress;
|
|
182
|
-
currencies: ICurrency[];
|
|
183
|
-
defaultCurrency: ICurrency;
|
|
184
|
-
settings: IStoreSettings;
|
|
185
|
-
status: boolean;
|
|
186
|
-
storeAdmins: Array<string | Types.ObjectId>;
|
|
339
|
+
interface CustomerNameInput extends PersonNameInput {
|
|
340
|
+
company?: string | null;
|
|
341
|
+
email?: string | null;
|
|
187
342
|
}
|
|
343
|
+
declare const personName: (person?: PersonNameInput | null) => string;
|
|
344
|
+
declare const customerDisplayName: (customer?: CustomerNameInput | null, fallback?: string) => string;
|
|
345
|
+
|
|
346
|
+
declare const slugify: (text: string) => string;
|
|
347
|
+
|
|
348
|
+
declare const errorMessage: (error: unknown, fallback?: string) => string;
|
|
188
349
|
|
|
189
350
|
declare const DISCOUNT_TYPE_VALUES: ("PERCENTAGE" | "FIXED" | "FREE_SHIPPING")[];
|
|
190
351
|
declare const DiscountTypeEnum: {
|
|
@@ -228,6 +389,10 @@ interface CouponNetsuiteLink {
|
|
|
228
389
|
syncedAt?: Date | string;
|
|
229
390
|
}
|
|
230
391
|
|
|
392
|
+
declare const DISCOUNT_TYPE_LABELS: Record<DiscountTypeEnum, string>;
|
|
393
|
+
declare const isDiscountType: (value: unknown) => value is DiscountTypeEnum;
|
|
394
|
+
declare const discountValueLabel: (discount?: Partial<IDiscountType> | null, currencyCode?: string) => string;
|
|
395
|
+
|
|
231
396
|
declare const AuthProviderEnum: {
|
|
232
397
|
readonly CREDENTIALS: "credentials";
|
|
233
398
|
readonly GOOGLE: "google";
|
|
@@ -271,6 +436,31 @@ type CustomerProfileUpdateRequest = Partial<Pick<ICustomer, EditableCustomerFiel
|
|
|
271
436
|
oldPassword?: string;
|
|
272
437
|
newPassword?: string;
|
|
273
438
|
};
|
|
439
|
+
declare const ProfileActorEnum: {
|
|
440
|
+
readonly CUSTOMER: "CUSTOMER";
|
|
441
|
+
readonly ADMIN: "ADMIN";
|
|
442
|
+
};
|
|
443
|
+
type ProfileActorEnum = (typeof ProfileActorEnum)[keyof typeof ProfileActorEnum];
|
|
444
|
+
declare const PROFILE_ACTOR_VALUES: ("CUSTOMER" | "ADMIN")[];
|
|
445
|
+
interface ProfileEditRules {
|
|
446
|
+
validatesEveryField: boolean;
|
|
447
|
+
needsCurrentPassword: boolean;
|
|
448
|
+
pushesToNetsuite: boolean;
|
|
449
|
+
}
|
|
450
|
+
declare const profileEditRules: (actor: ProfileActorEnum) => ProfileEditRules;
|
|
451
|
+
|
|
452
|
+
declare const StatusToneEnum: {
|
|
453
|
+
readonly DONE: "done";
|
|
454
|
+
readonly MOVING: "moving";
|
|
455
|
+
readonly WAITING: "waiting";
|
|
456
|
+
readonly STOPPED: "stopped";
|
|
457
|
+
readonly CLOSED: "closed";
|
|
458
|
+
};
|
|
459
|
+
type StatusToneEnum = (typeof StatusToneEnum)[keyof typeof StatusToneEnum];
|
|
460
|
+
declare const STATUS_TONE_VALUES: ("done" | "moving" | "waiting" | "stopped" | "closed")[];
|
|
461
|
+
declare const STATUS_TONE_COLORS: Record<StatusToneEnum, string>;
|
|
462
|
+
|
|
463
|
+
declare const customerStatusTone: (active?: boolean | null) => StatusToneEnum;
|
|
274
464
|
|
|
275
465
|
interface IBrand extends BaseEntity {
|
|
276
466
|
name: string;
|
|
@@ -280,6 +470,7 @@ interface IBrand extends BaseEntity {
|
|
|
280
470
|
banners: IBannerSlide[];
|
|
281
471
|
stores: IStore[];
|
|
282
472
|
sortOrder: number;
|
|
473
|
+
featured: boolean;
|
|
283
474
|
status: boolean;
|
|
284
475
|
isOnline: boolean;
|
|
285
476
|
netsuiteId: string;
|
|
@@ -334,6 +525,7 @@ declare const StockStatusEnum: {
|
|
|
334
525
|
readonly OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
335
526
|
};
|
|
336
527
|
type StockStatus = (typeof StockStatusEnum)[keyof typeof StockStatusEnum];
|
|
528
|
+
declare const STOCK_STATUS_VALUES: ("IN_STOCK" | "LOW_STOCK" | "OUT_OF_STOCK")[];
|
|
337
529
|
interface IStock extends BaseEntity {
|
|
338
530
|
sku: string;
|
|
339
531
|
product: IProduct;
|
|
@@ -346,6 +538,21 @@ interface IStock extends BaseEntity {
|
|
|
346
538
|
lowStockThreshold: number;
|
|
347
539
|
}
|
|
348
540
|
|
|
541
|
+
declare const AvailabilityToneEnum: {
|
|
542
|
+
readonly IN: "in";
|
|
543
|
+
readonly LOW: "low";
|
|
544
|
+
readonly OUT: "out";
|
|
545
|
+
};
|
|
546
|
+
type AvailabilityToneEnum = (typeof AvailabilityToneEnum)[keyof typeof AvailabilityToneEnum];
|
|
547
|
+
interface Availability {
|
|
548
|
+
label: string;
|
|
549
|
+
tone: AvailabilityToneEnum;
|
|
550
|
+
}
|
|
551
|
+
declare const availabilityOf: (product: Pick<IProduct, "stock" | "quantity" | "inventoryPolicy">) => Availability;
|
|
552
|
+
declare const isSellable: (product: Pick<IProduct, "stock" | "quantity" | "inventoryPolicy">) => boolean;
|
|
553
|
+
declare const AVAILABILITY_STATUS_TONES: Record<AvailabilityToneEnum, StatusToneEnum>;
|
|
554
|
+
declare const availabilityStatusTone: (tone: AvailabilityToneEnum) => StatusToneEnum;
|
|
555
|
+
|
|
349
556
|
declare const InventoryPolicyEnum: {
|
|
350
557
|
readonly DENY: "deny";
|
|
351
558
|
readonly CONTINUE: "continue";
|
|
@@ -409,14 +616,14 @@ interface IProductVariantFields {
|
|
|
409
616
|
isOnline: boolean;
|
|
410
617
|
}
|
|
411
618
|
|
|
412
|
-
type VariantOptionMode = "OPTION_BACKED" | "MANUAL";
|
|
413
619
|
declare const ProductVariantTypeEnum: {
|
|
414
620
|
readonly SINGLE: "SINGLE";
|
|
415
621
|
readonly OPTION_BACKED: "OPTION_BACKED";
|
|
416
622
|
readonly MANUAL: "MANUAL";
|
|
417
623
|
};
|
|
418
624
|
type ProductVariantType = (typeof ProductVariantTypeEnum)[keyof typeof ProductVariantTypeEnum];
|
|
419
|
-
declare const PRODUCT_VARIANT_TYPE_VALUES: ("
|
|
625
|
+
declare const PRODUCT_VARIANT_TYPE_VALUES: ("SINGLE" | "OPTION_BACKED" | "MANUAL")[];
|
|
626
|
+
type VariantOptionMode = Exclude<ProductVariantType, typeof ProductVariantTypeEnum.SINGLE>;
|
|
420
627
|
interface IProductVariantOptionValue {
|
|
421
628
|
id?: string;
|
|
422
629
|
valueKey: string;
|
|
@@ -445,6 +652,9 @@ interface IVariantOptionSelection {
|
|
|
445
652
|
sortOrder: number;
|
|
446
653
|
}
|
|
447
654
|
|
|
655
|
+
declare const cleanOptionKey: (value: unknown) => string;
|
|
656
|
+
declare const buildOptionSignature: (selections: ReadonlyArray<IVariantOptionSelection>) => string | undefined;
|
|
657
|
+
|
|
448
658
|
interface IVariant extends BaseEntity, IProductVariantFields {
|
|
449
659
|
name: string;
|
|
450
660
|
sku: string;
|
|
@@ -470,74 +680,6 @@ interface IProductRelationGroup {
|
|
|
470
680
|
skus: string[];
|
|
471
681
|
}
|
|
472
682
|
|
|
473
|
-
declare const PricingTypeEnum: {
|
|
474
|
-
readonly PERCENTAGE: "PERCENTAGE";
|
|
475
|
-
readonly FIXED: "FIXED";
|
|
476
|
-
};
|
|
477
|
-
type PricingType = (typeof PricingTypeEnum)[keyof typeof PricingTypeEnum];
|
|
478
|
-
declare const PRICING_TYPE_VALUES: ("PERCENTAGE" | "FIXED")[];
|
|
479
|
-
interface IAddonConfig extends BaseEntity {
|
|
480
|
-
name: string;
|
|
481
|
-
key: string;
|
|
482
|
-
description: string;
|
|
483
|
-
longDescription?: string;
|
|
484
|
-
stores: (IStore | string)[];
|
|
485
|
-
price: number;
|
|
486
|
-
pricingType: PricingType;
|
|
487
|
-
quantity: number;
|
|
488
|
-
sortOrder: number;
|
|
489
|
-
applyToAll: boolean;
|
|
490
|
-
isDefault: boolean;
|
|
491
|
-
isVisible: boolean;
|
|
492
|
-
status: boolean;
|
|
493
|
-
metaData: Metadata;
|
|
494
|
-
netsuite?: AddonNetsuiteLink | null;
|
|
495
|
-
}
|
|
496
|
-
interface IAddonGroup extends BaseEntity {
|
|
497
|
-
netsuite?: AddonGroupNetsuiteLink | null;
|
|
498
|
-
name: string;
|
|
499
|
-
key: string;
|
|
500
|
-
description: string;
|
|
501
|
-
addons: IAddonConfig[];
|
|
502
|
-
sortOrder: number;
|
|
503
|
-
isVisible: boolean;
|
|
504
|
-
status: boolean;
|
|
505
|
-
}
|
|
506
|
-
interface AddonGroupNetsuiteLink {
|
|
507
|
-
requiresField?: string;
|
|
508
|
-
syncedAt?: Date | string;
|
|
509
|
-
}
|
|
510
|
-
interface AddonNetsuiteLink {
|
|
511
|
-
itemId: string;
|
|
512
|
-
itemName?: string;
|
|
513
|
-
syncedAt?: Date | string;
|
|
514
|
-
}
|
|
515
|
-
interface AddonSnapshot {
|
|
516
|
-
groupKey: string;
|
|
517
|
-
addonKey: string;
|
|
518
|
-
name: string;
|
|
519
|
-
price: number;
|
|
520
|
-
pricingType: PricingType;
|
|
521
|
-
quantity: number;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
interface ProductAddonScope {
|
|
525
|
-
storeId?: string;
|
|
526
|
-
productAddonIds?: string[];
|
|
527
|
-
productPrice?: number;
|
|
528
|
-
productFlags?: Record<string, boolean | undefined>;
|
|
529
|
-
}
|
|
530
|
-
declare const resolveProductAddonGroups: (groups: IAddonGroup[], scope?: ProductAddonScope) => IAddonGroup[];
|
|
531
|
-
declare const groupHasDefaultAddon: (group: IAddonGroup) => boolean;
|
|
532
|
-
interface AddonSelectionRef {
|
|
533
|
-
groupKey: string;
|
|
534
|
-
addonKey: string;
|
|
535
|
-
}
|
|
536
|
-
interface ResolvedAddonSelection extends AddonSelectionRef {
|
|
537
|
-
addon: IAddonConfig;
|
|
538
|
-
}
|
|
539
|
-
declare const resolveAddonSelections: (groups: IAddonGroup[], selections: AddonSelectionRef[]) => ResolvedAddonSelection[];
|
|
540
|
-
|
|
541
683
|
interface ICategorySequence {
|
|
542
684
|
[categoryId: string]: number;
|
|
543
685
|
}
|
|
@@ -714,6 +856,13 @@ interface SavedCartSummary {
|
|
|
714
856
|
}
|
|
715
857
|
declare const isSavedLinePriceChanged: (line: SavedCartLine) => boolean;
|
|
716
858
|
|
|
859
|
+
interface INetsuiteOrderLine {
|
|
860
|
+
description: string;
|
|
861
|
+
quantityFulfilled: number;
|
|
862
|
+
quantityBilled: number;
|
|
863
|
+
quantityBackordered: number;
|
|
864
|
+
fulfillable: boolean;
|
|
865
|
+
}
|
|
717
866
|
interface IOrderItem extends BaseEntity {
|
|
718
867
|
order: IOrder;
|
|
719
868
|
product: IProduct;
|
|
@@ -721,8 +870,56 @@ interface IOrderItem extends BaseEntity {
|
|
|
721
870
|
pricing: ILinePricing;
|
|
722
871
|
metaData: Metadata;
|
|
723
872
|
note?: string;
|
|
873
|
+
netsuite?: INetsuiteOrderLine | null;
|
|
724
874
|
}
|
|
725
875
|
|
|
876
|
+
declare const LineShipStateEnum: {
|
|
877
|
+
readonly SHIPPED: "SHIPPED";
|
|
878
|
+
readonly PARTLY_SHIPPED: "PARTLY_SHIPPED";
|
|
879
|
+
readonly NOT_SHIPPED: "NOT_SHIPPED";
|
|
880
|
+
};
|
|
881
|
+
type LineShipStateEnum = (typeof LineShipStateEnum)[keyof typeof LineShipStateEnum];
|
|
882
|
+
interface LineShipProgress {
|
|
883
|
+
state: LineShipStateEnum;
|
|
884
|
+
shipped: number;
|
|
885
|
+
ordered: number;
|
|
886
|
+
backordered: number;
|
|
887
|
+
}
|
|
888
|
+
interface NetsuiteLineLike {
|
|
889
|
+
pricing?: {
|
|
890
|
+
quantity?: number;
|
|
891
|
+
} | null;
|
|
892
|
+
netsuite?: INetsuiteOrderLine | null;
|
|
893
|
+
}
|
|
894
|
+
declare const firstLine: (value: string) => string;
|
|
895
|
+
declare const repLineNote: (description: string | undefined, alreadyShown: string[]) => string;
|
|
896
|
+
declare const lineShipProgress: (line: NetsuiteLineLike) => LineShipProgress | null;
|
|
897
|
+
declare const linesShipped: (lines: NetsuiteLineLike[]) => {
|
|
898
|
+
shipped: number;
|
|
899
|
+
counted: number;
|
|
900
|
+
};
|
|
901
|
+
declare const lineShipTone: (state?: LineShipStateEnum) => StatusToneEnum;
|
|
902
|
+
declare const BACKORDERED_TONE: StatusToneEnum;
|
|
903
|
+
|
|
904
|
+
interface OrderLineNameInput {
|
|
905
|
+
product?: unknown;
|
|
906
|
+
variant?: unknown;
|
|
907
|
+
metaData?: unknown;
|
|
908
|
+
}
|
|
909
|
+
declare const lineSellable: (line: OrderLineNameInput) => Record<string, unknown>;
|
|
910
|
+
declare const lineName: (line: OrderLineNameInput) => string;
|
|
911
|
+
declare const lineSku: (line: OrderLineNameInput) => string;
|
|
912
|
+
|
|
913
|
+
interface QuantityLineInput {
|
|
914
|
+
pricing?: {
|
|
915
|
+
quantity?: number;
|
|
916
|
+
} | null;
|
|
917
|
+
}
|
|
918
|
+
declare const lineQuantityCount: (lines?: ReadonlyArray<QuantityLineInput | unknown> | null) => number;
|
|
919
|
+
declare const itemsLabel: (summary: {
|
|
920
|
+
quantityCount: number;
|
|
921
|
+
}) => string;
|
|
922
|
+
|
|
726
923
|
declare const PaymentStatusEnum: {
|
|
727
924
|
readonly INITIATED: "INITIATED";
|
|
728
925
|
readonly PENDING: "PENDING";
|
|
@@ -740,8 +937,6 @@ declare const PaymentStatusEnum: {
|
|
|
740
937
|
};
|
|
741
938
|
type PaymentStatusEnum = (typeof PaymentStatusEnum)[keyof typeof PaymentStatusEnum];
|
|
742
939
|
declare const PAYMENT_STATUS_VALUES: ("INITIATED" | "PENDING" | "PROCESSING" | "FAILED" | "CANCELLED" | "PENDING_CAPTURE" | "COMPLETED" | "VOIDED" | "REDIRECTED_TO_GATEWAY" | "UNKNOWN" | "REFUNDED" | "PARTIALLY_REFUNDED" | "NOT_REQUIRED")[];
|
|
743
|
-
declare const AWAITING_PAYMENT_STATUSES: PaymentStatusEnum[];
|
|
744
|
-
declare const paymentStatusColorMap: Record<PaymentStatusEnum, string>;
|
|
745
940
|
declare const PaymentMethodEnum: {
|
|
746
941
|
readonly CREDIT_CARD: "CREDIT_CARD";
|
|
747
942
|
readonly STRIPE: "STRIPE";
|
|
@@ -751,7 +946,6 @@ declare const PaymentMethodEnum: {
|
|
|
751
946
|
};
|
|
752
947
|
type PaymentMethodEnum = (typeof PaymentMethodEnum)[keyof typeof PaymentMethodEnum];
|
|
753
948
|
declare const PAYMENT_METHOD_VALUES: ("CREDIT_CARD" | "STRIPE" | "CHECK" | "APPLE_PAY" | "PURCHASE_ORDER")[];
|
|
754
|
-
declare const paymentMethodColorMap: Record<PaymentMethodEnum, string>;
|
|
755
949
|
declare const PaymentGatewayEnum: {
|
|
756
950
|
readonly STRIPE: "STRIPE";
|
|
757
951
|
readonly MANUAL: "MANUAL";
|
|
@@ -764,7 +958,6 @@ declare const TransactionTypeEnum: {
|
|
|
764
958
|
};
|
|
765
959
|
type TransactionTypeEnum = (typeof TransactionTypeEnum)[keyof typeof TransactionTypeEnum];
|
|
766
960
|
declare const TRANSACTION_TYPE_VALUES: ("ORDER" | "REFUND")[];
|
|
767
|
-
declare const typeColorMap: Record<TransactionTypeEnum, string>;
|
|
768
961
|
interface ITransactionBase extends BaseEntity {
|
|
769
962
|
order: IOrder;
|
|
770
963
|
store: IStore | string;
|
|
@@ -789,6 +982,29 @@ interface IRefundTransaction extends ITransactionBase {
|
|
|
789
982
|
originalTransaction?: ITransactionBase;
|
|
790
983
|
}
|
|
791
984
|
|
|
985
|
+
declare const AWAITING_PAYMENT_STATUSES: PaymentStatusEnum[];
|
|
986
|
+
declare const PAID_PAYMENT_STATUSES: PaymentStatusEnum[];
|
|
987
|
+
declare const FAILED_PAYMENT_STATUSES: PaymentStatusEnum[];
|
|
988
|
+
declare const isPaidPaymentStatus: (status?: string | null) => boolean;
|
|
989
|
+
declare const isFailedPaymentStatus: (status?: string | null) => boolean;
|
|
990
|
+
declare const PAYMENT_STATUS_LABELS: Record<PaymentStatusEnum, string>;
|
|
991
|
+
declare const paymentStatusLabel: (status?: string | null) => string;
|
|
992
|
+
declare const paymentStatusTone: (status?: string | null) => StatusToneEnum;
|
|
993
|
+
|
|
994
|
+
declare const PAYMENT_METHOD_LABELS: Record<PaymentMethodEnum, string>;
|
|
995
|
+
declare const paymentMethodLabel: (method?: string | null) => string;
|
|
996
|
+
declare const OFFLINE_PAYMENT_METHODS: PaymentMethodEnum[];
|
|
997
|
+
declare const isOfflinePaymentMethod: (method?: string | null) => boolean;
|
|
998
|
+
declare const PAYMENT_GATEWAY_LABELS: Record<PaymentGatewayEnum, string>;
|
|
999
|
+
declare const PAYMENT_METHOD_COLORS: Record<PaymentMethodEnum, string>;
|
|
1000
|
+
|
|
1001
|
+
declare const TRANSACTION_TYPE_COLORS: Record<TransactionTypeEnum, string>;
|
|
1002
|
+
|
|
1003
|
+
interface INetsuiteSalesRep {
|
|
1004
|
+
id: string;
|
|
1005
|
+
firstName: string;
|
|
1006
|
+
email?: string;
|
|
1007
|
+
}
|
|
792
1008
|
interface INetsuiteOrderLink {
|
|
793
1009
|
id: string;
|
|
794
1010
|
recordType: string;
|
|
@@ -804,22 +1020,118 @@ interface INetsuiteOrderLink {
|
|
|
804
1020
|
pushedAt?: Date | string;
|
|
805
1021
|
statusCode?: string;
|
|
806
1022
|
statusCheckedAt?: Date | string;
|
|
1023
|
+
salesRep?: INetsuiteSalesRep | null;
|
|
1024
|
+
terms?: string;
|
|
1025
|
+
expectedShipDate?: string;
|
|
1026
|
+
actualShipDate?: string;
|
|
1027
|
+
orderEmails?: string[];
|
|
1028
|
+
createdFromTranId?: string;
|
|
807
1029
|
}
|
|
808
|
-
|
|
1030
|
+
|
|
1031
|
+
declare const OrderOriginEnum: {
|
|
1032
|
+
readonly WEBSITE: "WEBSITE";
|
|
1033
|
+
readonly NETSUITE: "NETSUITE";
|
|
1034
|
+
};
|
|
1035
|
+
type OrderOriginEnum = (typeof OrderOriginEnum)[keyof typeof OrderOriginEnum];
|
|
1036
|
+
declare const ORDER_ORIGIN_VALUES: OrderOriginEnum[];
|
|
1037
|
+
declare const isNetsuiteOrigin: (order: {
|
|
1038
|
+
origin?: OrderOriginEnum | null;
|
|
1039
|
+
} | null | undefined) => boolean;
|
|
1040
|
+
|
|
1041
|
+
declare const NetsuiteRefundKindEnum: {
|
|
1042
|
+
readonly RETURN_AUTHORIZATION: "RETURN_AUTHORIZATION";
|
|
1043
|
+
readonly CREDIT_MEMO: "CREDIT_MEMO";
|
|
1044
|
+
readonly CUSTOMER_REFUND: "CUSTOMER_REFUND";
|
|
1045
|
+
readonly CASH_REFUND: "CASH_REFUND";
|
|
1046
|
+
};
|
|
1047
|
+
type NetsuiteRefundKindEnum = (typeof NetsuiteRefundKindEnum)[keyof typeof NetsuiteRefundKindEnum];
|
|
1048
|
+
declare const NETSUITE_REFUND_KIND_VALUES: NetsuiteRefundKindEnum[];
|
|
1049
|
+
interface INetsuiteRefund {
|
|
809
1050
|
netsuiteId: string;
|
|
1051
|
+
kind: NetsuiteRefundKindEnum;
|
|
1052
|
+
tranId: string;
|
|
1053
|
+
date?: Date | string;
|
|
1054
|
+
status: string;
|
|
1055
|
+
amount: number;
|
|
1056
|
+
sourceId: string;
|
|
1057
|
+
recordUrl?: string;
|
|
1058
|
+
}
|
|
1059
|
+
declare const ReturnStatusEnum: {
|
|
1060
|
+
readonly PENDING_RECEIPT: "Pending Receipt";
|
|
1061
|
+
readonly PENDING_REFUND: "Pending Refund";
|
|
1062
|
+
readonly REFUNDED: "Refunded";
|
|
1063
|
+
readonly CLOSED: "Closed";
|
|
1064
|
+
};
|
|
1065
|
+
type ReturnStatusEnum = (typeof ReturnStatusEnum)[keyof typeof ReturnStatusEnum];
|
|
1066
|
+
declare const RefundPaymentStatusEnum: {
|
|
1067
|
+
readonly VOIDED: "Voided";
|
|
1068
|
+
};
|
|
1069
|
+
type RefundPaymentStatusEnum = (typeof RefundPaymentStatusEnum)[keyof typeof RefundPaymentStatusEnum];
|
|
1070
|
+
declare const liveRefunds: (refunds?: INetsuiteRefund[]) => INetsuiteRefund[];
|
|
1071
|
+
declare const CreditMemoStatusEnum: {
|
|
1072
|
+
readonly OPEN: "Open";
|
|
1073
|
+
readonly FULLY_APPLIED: "Fully Applied";
|
|
1074
|
+
};
|
|
1075
|
+
type CreditMemoStatusEnum = (typeof CreditMemoStatusEnum)[keyof typeof CreditMemoStatusEnum];
|
|
1076
|
+
declare const RefundStepStateEnum: {
|
|
1077
|
+
readonly DONE: "DONE";
|
|
1078
|
+
readonly OPEN: "OPEN";
|
|
1079
|
+
};
|
|
1080
|
+
type RefundStepStateEnum = (typeof RefundStepStateEnum)[keyof typeof RefundStepStateEnum];
|
|
1081
|
+
declare const RefundTrailKindEnum: {
|
|
1082
|
+
readonly RETURN: "RETURN";
|
|
1083
|
+
readonly CREDIT: "CREDIT";
|
|
1084
|
+
readonly REFUND: "REFUND";
|
|
1085
|
+
};
|
|
1086
|
+
type RefundTrailKindEnum = (typeof RefundTrailKindEnum)[keyof typeof RefundTrailKindEnum];
|
|
1087
|
+
declare const RefundStateEnum: {
|
|
1088
|
+
readonly NONE: "NONE";
|
|
1089
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
1090
|
+
readonly CREDITED: "CREDITED";
|
|
1091
|
+
readonly PARTIAL: "PARTIAL";
|
|
1092
|
+
readonly FULL: "FULL";
|
|
1093
|
+
};
|
|
1094
|
+
type RefundStateEnum = (typeof RefundStateEnum)[keyof typeof RefundStateEnum];
|
|
1095
|
+
interface RefundStep {
|
|
1096
|
+
state: RefundStepStateEnum;
|
|
1097
|
+
label: string;
|
|
1098
|
+
status: string;
|
|
1099
|
+
recordName: string;
|
|
810
1100
|
tranId?: string;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
shippedAt?: Date | string;
|
|
814
|
-
trackingNumbers: string[];
|
|
815
|
-
syncedAt?: Date | string;
|
|
1101
|
+
date?: Date | string;
|
|
1102
|
+
recordUrl?: string;
|
|
816
1103
|
}
|
|
1104
|
+
interface RefundTrail {
|
|
1105
|
+
key: string;
|
|
1106
|
+
kind: RefundTrailKindEnum;
|
|
1107
|
+
reference?: string;
|
|
1108
|
+
amount: number;
|
|
1109
|
+
steps: RefundStep[];
|
|
1110
|
+
}
|
|
1111
|
+
interface RefundSummary {
|
|
1112
|
+
state: RefundStateEnum;
|
|
1113
|
+
refunded: number;
|
|
1114
|
+
credited: number;
|
|
1115
|
+
trails: RefundTrail[];
|
|
1116
|
+
}
|
|
1117
|
+
declare const NETSUITE_REFUND_RECORD_NAME: Record<NetsuiteRefundKindEnum, string>;
|
|
1118
|
+
declare const REFUND_TRAIL_TITLE: Record<RefundTrailKindEnum, string>;
|
|
1119
|
+
declare const netsuiteDocumentLabel: (document: INetsuiteRefund) => string;
|
|
1120
|
+
declare const refundSummary: (refunds?: INetsuiteRefund[], orderTotal?: number) => RefundSummary;
|
|
1121
|
+
declare const refundHeadline: (refunds?: INetsuiteRefund[]) => string;
|
|
1122
|
+
declare const customerRefundHeadline: (refunds?: INetsuiteRefund[]) => string;
|
|
1123
|
+
declare const REFUND_STATE_TONES: Record<RefundStateEnum, StatusToneEnum>;
|
|
1124
|
+
declare const refundStateTone: (state?: RefundStateEnum) => StatusToneEnum;
|
|
1125
|
+
declare const netsuiteDocumentTone: (status?: string) => StatusToneEnum;
|
|
1126
|
+
declare const refundStepTone: (state?: RefundStepStateEnum) => StatusToneEnum;
|
|
1127
|
+
|
|
817
1128
|
declare const OrderStatusEnum: {
|
|
818
1129
|
readonly CREATED: "CREATED";
|
|
819
1130
|
readonly PAYMENT_FAILED: "PAYMENT_FAILED";
|
|
820
1131
|
readonly PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
821
1132
|
readonly PENDING_FULFILLMENT: "PENDING_FULFILLMENT";
|
|
822
1133
|
readonly PARTIALLY_FULFILLED: "PARTIALLY_FULFILLED";
|
|
1134
|
+
readonly PENDING_BILLING_PARTIALLY_FULFILLED: "PENDING_BILLING_PARTIALLY_FULFILLED";
|
|
823
1135
|
readonly PENDING_BILLING: "PENDING_BILLING";
|
|
824
1136
|
readonly BILLED: "BILLED";
|
|
825
1137
|
readonly CLOSED: "CLOSED";
|
|
@@ -837,25 +1149,61 @@ declare const OrderStatusEnum: {
|
|
|
837
1149
|
readonly QUOTE_EXPIRED: "QUOTE_EXPIRED";
|
|
838
1150
|
};
|
|
839
1151
|
type OrderStatusEnum = (typeof OrderStatusEnum)[keyof typeof OrderStatusEnum];
|
|
840
|
-
declare const ORDER_STATUS_VALUES: ("CANCELLED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "
|
|
841
|
-
declare const statusColors: Record<OrderStatusEnum, string>;
|
|
1152
|
+
declare const ORDER_STATUS_VALUES: ("CLOSED" | "CANCELLED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "PENDING_RECEIPT" | "PENDING_REFUND" | "CREATED" | "PAYMENT_FAILED" | "PENDING_APPROVAL" | "PENDING_FULFILLMENT" | "PARTIALLY_FULFILLED" | "PENDING_BILLING_PARTIALLY_FULFILLED" | "PENDING_BILLING" | "BILLED" | "QUOTE_REQUESTED" | "QUOTE_OPEN" | "QUOTE_APPROVED" | "QUOTE_PROCESSED" | "QUOTE_CLOSED" | "QUOTE_VOIDED" | "QUOTE_EXPIRED")[];
|
|
842
1153
|
declare const PURCHASE_ORDER_STATUSES: OrderStatusEnum[];
|
|
843
1154
|
declare const PLACED_OPEN_ORDER_STATUSES: OrderStatusEnum[];
|
|
1155
|
+
declare const COMPLETE_ORDER_STATUSES: OrderStatusEnum[];
|
|
1156
|
+
declare const RETURN_ORDER_STATUSES: OrderStatusEnum[];
|
|
1157
|
+
declare const SETTLED_STATUSES: OrderStatusEnum[];
|
|
1158
|
+
declare const MOVABLE_STATUSES: OrderStatusEnum[];
|
|
1159
|
+
declare const isSettledStatus: (status?: string) => boolean;
|
|
844
1160
|
declare const UNPLACED_ORDER_STATUSES: OrderStatusEnum[];
|
|
845
1161
|
declare const OPEN_ORDER_STATUSES: OrderStatusEnum[];
|
|
1162
|
+
declare const OPEN_QUOTE_STATUSES: OrderStatusEnum[];
|
|
1163
|
+
declare const CLOSED_QUOTE_STATUSES: OrderStatusEnum[];
|
|
846
1164
|
declare const QUOTE_ORDER_STATUSES: OrderStatusEnum[];
|
|
847
|
-
declare const StatusToneEnum: {
|
|
848
|
-
readonly DONE: "done";
|
|
849
|
-
readonly MOVING: "moving";
|
|
850
|
-
readonly WAITING: "waiting";
|
|
851
|
-
readonly STOPPED: "stopped";
|
|
852
|
-
readonly CLOSED: "closed";
|
|
853
|
-
};
|
|
854
|
-
type StatusToneEnum = (typeof StatusToneEnum)[keyof typeof StatusToneEnum];
|
|
855
|
-
declare const STATUS_TONE_VALUES: ("done" | "moving" | "waiting" | "stopped" | "closed")[];
|
|
856
1165
|
declare const statusTones: Record<OrderStatusEnum, StatusToneEnum>;
|
|
857
1166
|
declare const statusTone: (status?: string) => StatusToneEnum;
|
|
858
|
-
|
|
1167
|
+
|
|
1168
|
+
declare const TrackingKindEnum: {
|
|
1169
|
+
readonly UPS: "UPS";
|
|
1170
|
+
readonly FEDEX: "FEDEX";
|
|
1171
|
+
readonly NOTE: "NOTE";
|
|
1172
|
+
};
|
|
1173
|
+
type TrackingKindEnum = (typeof TrackingKindEnum)[keyof typeof TrackingKindEnum];
|
|
1174
|
+
interface TrackingDisplay {
|
|
1175
|
+
kind: TrackingKindEnum;
|
|
1176
|
+
text: string;
|
|
1177
|
+
url?: string;
|
|
1178
|
+
}
|
|
1179
|
+
declare const trackingDisplay: (value: string, shipment?: {
|
|
1180
|
+
carrier?: string;
|
|
1181
|
+
shipMethod?: string;
|
|
1182
|
+
}) => TrackingDisplay;
|
|
1183
|
+
declare const FulfillmentStatusEnum: {
|
|
1184
|
+
readonly PICKED: "PICKED";
|
|
1185
|
+
readonly PACKED: "PACKED";
|
|
1186
|
+
readonly SHIPPED: "SHIPPED";
|
|
1187
|
+
};
|
|
1188
|
+
type FulfillmentStatusEnum = (typeof FulfillmentStatusEnum)[keyof typeof FulfillmentStatusEnum];
|
|
1189
|
+
declare const FULFILLMENT_STATUS_VALUES: ("SHIPPED" | "PICKED" | "PACKED")[];
|
|
1190
|
+
declare const FULFILLMENT_STATUS_LABEL: Record<FulfillmentStatusEnum, string>;
|
|
1191
|
+
interface IOrderShipment {
|
|
1192
|
+
netsuiteId: string;
|
|
1193
|
+
status?: FulfillmentStatusEnum;
|
|
1194
|
+
tranId?: string;
|
|
1195
|
+
carrier?: string;
|
|
1196
|
+
shipMethod?: string;
|
|
1197
|
+
shippedAt?: Date | string;
|
|
1198
|
+
trackingNumbers: string[];
|
|
1199
|
+
syncedAt?: Date | string;
|
|
1200
|
+
recordUrl?: string;
|
|
1201
|
+
}
|
|
1202
|
+
declare const fulfillmentStatusTone: (status?: FulfillmentStatusEnum) => StatusToneEnum;
|
|
1203
|
+
declare const PARTLY_SHIPPED_STATUSES: OrderStatusEnum[];
|
|
1204
|
+
declare const isPartlyShipped: (orderStatus?: string) => boolean;
|
|
1205
|
+
declare const shipmentsTone: (orderStatus?: string) => StatusToneEnum;
|
|
1206
|
+
|
|
859
1207
|
interface IOrder extends BaseEntity {
|
|
860
1208
|
orderId: string;
|
|
861
1209
|
orderItems: IOrderItem[];
|
|
@@ -864,6 +1212,7 @@ interface IOrder extends BaseEntity {
|
|
|
864
1212
|
store: IStore;
|
|
865
1213
|
status: OrderStatusEnum;
|
|
866
1214
|
type: SaleType;
|
|
1215
|
+
origin?: OrderOriginEnum;
|
|
867
1216
|
sourceQuote?: IOrder | string;
|
|
868
1217
|
convertedOrder?: IOrder | string;
|
|
869
1218
|
quoteValidUntil?: Date;
|
|
@@ -879,6 +1228,7 @@ interface IOrder extends BaseEntity {
|
|
|
879
1228
|
billingAddress: IAddress;
|
|
880
1229
|
shippingMethod?: SelectedShippingMethod | null;
|
|
881
1230
|
shipments?: IOrderShipment[];
|
|
1231
|
+
netsuiteRefunds?: INetsuiteRefund[];
|
|
882
1232
|
tax?: AppliedTax | null;
|
|
883
1233
|
acceptedTermsAt: Date;
|
|
884
1234
|
customerNote: string;
|
|
@@ -895,6 +1245,48 @@ interface IOrder extends BaseEntity {
|
|
|
895
1245
|
pricing: ISummaryPricing;
|
|
896
1246
|
}
|
|
897
1247
|
|
|
1248
|
+
declare const NETSUITE_SALES_ORDER_STATUS_TEXT: Record<string, string>;
|
|
1249
|
+
declare const NETSUITE_ESTIMATE_STATUS_TEXT: Record<string, string>;
|
|
1250
|
+
declare const NETSUITE_FULFILLMENT_STATUS_TEXT: Record<string, string>;
|
|
1251
|
+
declare const NETSUITE_INVOICE_STATUS_TEXT: Record<string, string>;
|
|
1252
|
+
declare const NETSUITE_RETURN_STATUS_TEXT: Record<string, string>;
|
|
1253
|
+
declare const ORDER_STATUS_LABELS: Record<OrderStatusEnum, string>;
|
|
1254
|
+
declare const netsuiteStatusLabel: (status?: string, netsuiteStatusText?: string) => string;
|
|
1255
|
+
|
|
1256
|
+
declare const QUOTE_VALID_DAYS = 30;
|
|
1257
|
+
interface QuoteRuleInput {
|
|
1258
|
+
status?: string;
|
|
1259
|
+
quotePricedAt?: string | Date | null;
|
|
1260
|
+
quoteValidUntil?: string | Date | null;
|
|
1261
|
+
pricing?: {
|
|
1262
|
+
totalAmount?: number;
|
|
1263
|
+
} | null;
|
|
1264
|
+
convertedOrder?: unknown;
|
|
1265
|
+
origin?: OrderOriginEnum | null;
|
|
1266
|
+
payableOnline?: boolean;
|
|
1267
|
+
}
|
|
1268
|
+
declare const QUOTE_BUYABLE_STATUS: "QUOTE_APPROVED";
|
|
1269
|
+
declare const quoteIsPriced: (quote: QuoteRuleInput) => boolean;
|
|
1270
|
+
declare const quoteDaysLeft: (quote: QuoteRuleInput, now?: Date) => number | null;
|
|
1271
|
+
declare const quoteValidityPassed: (quote: QuoteRuleInput, now?: Date) => boolean;
|
|
1272
|
+
declare const isQuoteExpired: (quote: QuoteRuleInput, now?: Date) => boolean;
|
|
1273
|
+
declare const isQuoteLapsing: (quote: QuoteRuleInput, now?: Date) => boolean;
|
|
1274
|
+
declare const quoteCanBeOrdered: (quote: QuoteRuleInput, now?: Date) => boolean;
|
|
1275
|
+
declare const isQuoteBuyable: (quote: QuoteRuleInput, now?: Date) => boolean;
|
|
1276
|
+
interface ConvertedOrderView {
|
|
1277
|
+
orderId?: string;
|
|
1278
|
+
paymentStatus?: string;
|
|
1279
|
+
origin?: OrderOriginEnum | null;
|
|
1280
|
+
}
|
|
1281
|
+
declare const convertedOrderOf: (quote: QuoteRuleInput) => ConvertedOrderView | null;
|
|
1282
|
+
declare const convertedOrderBilledOffline: (quote: QuoteRuleInput) => boolean;
|
|
1283
|
+
declare const quotePaymentUnfinished: (quote: QuoteRuleInput) => boolean;
|
|
1284
|
+
declare const isRepQuoteOrderable: (quote: QuoteRuleInput, now?: Date) => boolean;
|
|
1285
|
+
|
|
1286
|
+
type StatusToneRecord = QuoteRuleInput;
|
|
1287
|
+
declare const recordStatusTone: (record: StatusToneRecord, now?: Date) => StatusToneEnum;
|
|
1288
|
+
declare const statusTagColor: (record: StatusToneRecord) => string;
|
|
1289
|
+
|
|
898
1290
|
interface ICustomer extends BaseEntity {
|
|
899
1291
|
netsuiteId: string;
|
|
900
1292
|
netsuiteEntityId: string;
|
|
@@ -902,9 +1294,13 @@ interface ICustomer extends BaseEntity {
|
|
|
902
1294
|
netsuiteProfileSyncedAt: Date | string | null;
|
|
903
1295
|
netsuitePushedAt: Date | string | null;
|
|
904
1296
|
netsuitePushError: string;
|
|
1297
|
+
netsuitePushRejected?: string;
|
|
905
1298
|
netsuiteLinkAttempts: number;
|
|
906
1299
|
netsuiteLinkAttemptedAt: Date | string | null;
|
|
907
1300
|
netsuiteLinkClaimAt?: Date | string | null;
|
|
1301
|
+
netsuiteHistoryRequestedAt?: Date | string | null;
|
|
1302
|
+
netsuiteHistoryCursor?: string | null;
|
|
1303
|
+
netsuiteHistorySyncedAt?: Date | string | null;
|
|
908
1304
|
netsuiteRemovedAt?: Date | string | null;
|
|
909
1305
|
netsuiteLinkError: string;
|
|
910
1306
|
firstName: string;
|
|
@@ -944,6 +1340,7 @@ interface IAddress extends BaseEntity {
|
|
|
944
1340
|
netsuiteAddressbookId: string;
|
|
945
1341
|
addressLine1: string;
|
|
946
1342
|
addressLine2: string;
|
|
1343
|
+
attention?: string;
|
|
947
1344
|
city: string;
|
|
948
1345
|
zipCode: string;
|
|
949
1346
|
firstName: string;
|
|
@@ -952,11 +1349,32 @@ interface IAddress extends BaseEntity {
|
|
|
952
1349
|
phoneNumber: string;
|
|
953
1350
|
defaultAddress: boolean;
|
|
954
1351
|
isResidential?: boolean;
|
|
1352
|
+
fromTransaction: boolean;
|
|
955
1353
|
state: IState;
|
|
956
1354
|
country: ICountry;
|
|
957
1355
|
customer: ICustomer;
|
|
958
1356
|
}
|
|
959
1357
|
|
|
1358
|
+
interface AddressLinesInput {
|
|
1359
|
+
firstName?: string | null;
|
|
1360
|
+
lastName?: string | null;
|
|
1361
|
+
attention?: string | null;
|
|
1362
|
+
addressLine1?: string | null;
|
|
1363
|
+
addressLine2?: string | null;
|
|
1364
|
+
city?: string | null;
|
|
1365
|
+
zipCode?: string | null;
|
|
1366
|
+
phoneNumber?: string | null;
|
|
1367
|
+
state?: {
|
|
1368
|
+
name?: string | null;
|
|
1369
|
+
} | string | null;
|
|
1370
|
+
country?: {
|
|
1371
|
+
name?: string | null;
|
|
1372
|
+
} | string | null;
|
|
1373
|
+
}
|
|
1374
|
+
declare const addressLines: (address?: AddressLinesInput | null, { withPhone }?: {
|
|
1375
|
+
withPhone?: boolean;
|
|
1376
|
+
}) => string[];
|
|
1377
|
+
|
|
960
1378
|
declare const ADMIN_RESOURCE_LIST: readonly [{
|
|
961
1379
|
readonly value: "dashboard";
|
|
962
1380
|
readonly label: "Dashboard";
|
|
@@ -1086,7 +1504,7 @@ declare const ADMIN_RESOURCE_LIST: readonly [{
|
|
|
1086
1504
|
readonly label: "Account";
|
|
1087
1505
|
readonly group: "Settings";
|
|
1088
1506
|
}];
|
|
1089
|
-
declare const ADMIN_RESOURCES: ("
|
|
1507
|
+
declare const ADMIN_RESOURCES: ("stores" | "categories" | "podcast" | "blog" | "orders" | "dashboard" | "metrics" | "products" | "brands" | "technical-specs" | "addon-configs" | "service-plans" | "relation-groups" | "configurators" | "quotes" | "carts" | "transactions" | "coupons" | "store-fees" | "tax-rates" | "customers" | "contact-us" | "subscribers" | "faqs" | "email-templates" | "notifications" | "campaigns" | "currencies" | "redirects" | "cache" | "admins" | "account")[];
|
|
1090
1508
|
type IAdminResource = (typeof ADMIN_RESOURCE_LIST)[number]['value'];
|
|
1091
1509
|
declare const ADMIN_ACTIONS: readonly ["read", "write", "delete"];
|
|
1092
1510
|
type IAdminBaseAction = (typeof ADMIN_ACTIONS)[number];
|
|
@@ -1183,6 +1601,26 @@ type AdminUpdateRequest = Partial<Pick<IAdmin, EditableAdminField>> & {
|
|
|
1183
1601
|
newPassword?: string;
|
|
1184
1602
|
};
|
|
1185
1603
|
|
|
1604
|
+
declare const COMPANY: {
|
|
1605
|
+
readonly legalName: "Flexible Assembly Systems, Inc.";
|
|
1606
|
+
readonly address: {
|
|
1607
|
+
readonly street: "8220 Arjons Drive";
|
|
1608
|
+
readonly city: "San Diego";
|
|
1609
|
+
readonly region: "CA";
|
|
1610
|
+
readonly regionName: "California";
|
|
1611
|
+
readonly postalCode: "92126";
|
|
1612
|
+
readonly country: "US";
|
|
1613
|
+
readonly countryName: "United States of America";
|
|
1614
|
+
};
|
|
1615
|
+
readonly phone: {
|
|
1616
|
+
readonly label: "(619) 287-7000";
|
|
1617
|
+
readonly digits: "6192877000";
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
declare const COMPANY_CITY_LINE: string;
|
|
1621
|
+
declare const COMPANY_CITY_LINE_LONG: string;
|
|
1622
|
+
declare const COMPANY_ADDRESS_LINE: string;
|
|
1623
|
+
|
|
1186
1624
|
declare const CaseStatusEnum: {
|
|
1187
1625
|
readonly NOT_STARTED: "1";
|
|
1188
1626
|
readonly IN_PROGRESS: "2";
|
|
@@ -1193,7 +1631,6 @@ declare const CaseStatusEnum: {
|
|
|
1193
1631
|
type CaseStatus = (typeof CaseStatusEnum)[keyof typeof CaseStatusEnum];
|
|
1194
1632
|
declare const CASE_STATUS_VALUES: CaseStatus[];
|
|
1195
1633
|
declare const CASE_STATUS_LABELS: Record<CaseStatus, string>;
|
|
1196
|
-
declare const CASE_STATUS_COLORS: Record<CaseStatus, string>;
|
|
1197
1634
|
declare const CasePriorityEnum: {
|
|
1198
1635
|
readonly HIGH: "1";
|
|
1199
1636
|
readonly MEDIUM: "2";
|
|
@@ -1271,6 +1708,9 @@ interface INetsuiteCaseLink {
|
|
|
1271
1708
|
}
|
|
1272
1709
|
type ISupportCaseListItem = Omit<ISupportCase, "messages">;
|
|
1273
1710
|
|
|
1711
|
+
declare const CASE_STATUS_TONES: Record<CaseStatus, StatusToneEnum>;
|
|
1712
|
+
declare const caseStatusTone: (status?: string) => StatusToneEnum;
|
|
1713
|
+
|
|
1274
1714
|
interface IContact extends BaseEntity {
|
|
1275
1715
|
firstName: string;
|
|
1276
1716
|
lastName: string;
|
|
@@ -1373,40 +1813,7 @@ interface IProductTechnicalSpecTable extends BaseEntity {
|
|
|
1373
1813
|
status: boolean;
|
|
1374
1814
|
}
|
|
1375
1815
|
|
|
1376
|
-
declare const
|
|
1377
|
-
readonly SUBTOTAL: "SUBTOTAL";
|
|
1378
|
-
readonly TOTAL: "TOTAL";
|
|
1379
|
-
};
|
|
1380
|
-
type FeeAppliesToEnum = (typeof FeeAppliesToEnum)[keyof typeof FeeAppliesToEnum];
|
|
1381
|
-
declare const FEE_APPLIES_TO_VALUES: ("SUBTOTAL" | "TOTAL")[];
|
|
1382
|
-
interface IStoreFee extends BaseEntity {
|
|
1383
|
-
netsuiteId?: string;
|
|
1384
|
-
stores: (IStore | string)[];
|
|
1385
|
-
name: string;
|
|
1386
|
-
key: string;
|
|
1387
|
-
description?: string;
|
|
1388
|
-
pricingType: PricingType;
|
|
1389
|
-
value: number;
|
|
1390
|
-
appliesTo: FeeAppliesToEnum;
|
|
1391
|
-
enabled: boolean;
|
|
1392
|
-
isVisible: boolean;
|
|
1393
|
-
optional: boolean;
|
|
1394
|
-
defaultSelected: boolean;
|
|
1395
|
-
sortOrder: number;
|
|
1396
|
-
status: boolean;
|
|
1397
|
-
metaData: Metadata;
|
|
1398
|
-
}
|
|
1399
|
-
interface ISelectableFee {
|
|
1400
|
-
key: string;
|
|
1401
|
-
name: string;
|
|
1402
|
-
description?: string;
|
|
1403
|
-
pricingType: PricingType;
|
|
1404
|
-
value: number;
|
|
1405
|
-
appliesTo: FeeAppliesToEnum;
|
|
1406
|
-
optional: boolean;
|
|
1407
|
-
selected: boolean;
|
|
1408
|
-
amount: number;
|
|
1409
|
-
}
|
|
1816
|
+
declare const FEE_APPLIES_TO_LABELS: Record<FeeAppliesToEnum, string>;
|
|
1410
1817
|
|
|
1411
1818
|
declare const EmailTemplateEventEnum: {
|
|
1412
1819
|
readonly ORDER_RECEIVED: "ORDER_RECEIVED";
|
|
@@ -1451,6 +1858,10 @@ interface EmailParamMismatch {
|
|
|
1451
1858
|
token: string;
|
|
1452
1859
|
}
|
|
1453
1860
|
|
|
1861
|
+
declare const ORDER_EMAIL_EVENTS: readonly ["ORDER_RECEIVED", "ORDER_CANCELLED"];
|
|
1862
|
+
type OrderEmailEvent = (typeof ORDER_EMAIL_EVENTS)[number];
|
|
1863
|
+
declare const isOrderEmailEvent: (value: unknown) => value is OrderEmailEvent;
|
|
1864
|
+
|
|
1454
1865
|
declare const ConfiguratorSelectModeEnum: {
|
|
1455
1866
|
readonly SINGLE: "SINGLE";
|
|
1456
1867
|
readonly MULTI: "MULTI";
|
|
@@ -1612,7 +2023,14 @@ declare const applyPriceAdjustments: (baseUnitPrice: number, adjustments: IConfi
|
|
|
1612
2023
|
declare const adjustmentsFor: (adjustments: IConfiguratorPriceAdjustment[], sectionKey: string, optionKey: string) => IConfiguratorPriceAdjustment[];
|
|
1613
2024
|
declare const isConfigurationValid: (result: ConfiguratorEvalResult) => boolean;
|
|
1614
2025
|
|
|
1615
|
-
|
|
2026
|
+
declare const RedirectTargetTypeEnum: {
|
|
2027
|
+
readonly PRODUCT: "product";
|
|
2028
|
+
readonly VARIANT: "variant";
|
|
2029
|
+
readonly CATEGORY: "category";
|
|
2030
|
+
readonly URL: "url";
|
|
2031
|
+
};
|
|
2032
|
+
type RedirectTargetType = (typeof RedirectTargetTypeEnum)[keyof typeof RedirectTargetTypeEnum];
|
|
2033
|
+
declare const REDIRECT_TARGET_TYPE_VALUES: ("category" | "product" | "variant" | "url")[];
|
|
1616
2034
|
interface IRedirectSuggestion {
|
|
1617
2035
|
targetType: RedirectTargetType;
|
|
1618
2036
|
targetRef?: string | null;
|
|
@@ -1654,8 +2072,10 @@ declare const canonicalizeSlug: (input: string) => string;
|
|
|
1654
2072
|
declare const canonicalizeUrlSegment: (input: string) => string;
|
|
1655
2073
|
declare const canonicalizePath: (input: string) => string;
|
|
1656
2074
|
|
|
2075
|
+
declare const toCents: (amount: number) => number;
|
|
1657
2076
|
declare const roundMoney: (amount: number) => number;
|
|
1658
|
-
declare const
|
|
2077
|
+
declare const centsEqual: (a: number, b: number) => boolean;
|
|
2078
|
+
declare const formatMoney: (value: number | null | undefined, currencyCode?: string) => string;
|
|
1659
2079
|
declare const normalizeLineQuantity: (quantity: number) => number;
|
|
1660
2080
|
interface AddonAmountInput {
|
|
1661
2081
|
price: number;
|
|
@@ -1694,8 +2114,7 @@ declare const OrderLogTypeEnum: {
|
|
|
1694
2114
|
readonly NOTE: "NOTE";
|
|
1695
2115
|
};
|
|
1696
2116
|
type OrderLogTypeEnum = (typeof OrderLogTypeEnum)[keyof typeof OrderLogTypeEnum];
|
|
1697
|
-
declare const ORDER_LOG_TYPE_VALUES: ("REFUND" | "PAYMENT_FAILED" | "EMAIL" | "ORDER_PLACED" | "PAYMENT_PENDING" | "PAYMENT_SUCCEEDED" | "PAYMENT_CANCELLED" | "ORDER_STATUS"
|
|
1698
|
-
declare const orderLogTypeColorMap: Record<OrderLogTypeEnum, string>;
|
|
2117
|
+
declare const ORDER_LOG_TYPE_VALUES: ("REFUND" | "PAYMENT_FAILED" | "NOTE" | "EMAIL" | "ORDER_PLACED" | "PAYMENT_PENDING" | "PAYMENT_SUCCEEDED" | "PAYMENT_CANCELLED" | "ORDER_STATUS")[];
|
|
1699
2118
|
interface IOrderLog extends BaseEntity {
|
|
1700
2119
|
order: IOrder | string;
|
|
1701
2120
|
type: OrderLogTypeEnum;
|
|
@@ -1704,6 +2123,8 @@ interface IOrderLog extends BaseEntity {
|
|
|
1704
2123
|
meta?: Metadata;
|
|
1705
2124
|
}
|
|
1706
2125
|
|
|
2126
|
+
declare const ORDER_LOG_TYPE_COLORS: Record<OrderLogTypeEnum, string>;
|
|
2127
|
+
|
|
1707
2128
|
declare const PaymentLinkStatusEnum: {
|
|
1708
2129
|
readonly PENDING: "PENDING";
|
|
1709
2130
|
readonly PAID: "PAID";
|
|
@@ -1712,7 +2133,6 @@ declare const PaymentLinkStatusEnum: {
|
|
|
1712
2133
|
};
|
|
1713
2134
|
type PaymentLinkStatusEnum = (typeof PaymentLinkStatusEnum)[keyof typeof PaymentLinkStatusEnum];
|
|
1714
2135
|
declare const PAYMENT_LINK_STATUS_VALUES: ("PENDING" | "CANCELLED" | "PAID" | "EXPIRED")[];
|
|
1715
|
-
declare const paymentLinkStatusColorMap: Record<PaymentLinkStatusEnum, string>;
|
|
1716
2136
|
interface IPaymentLink extends BaseEntity {
|
|
1717
2137
|
order: IOrder | string;
|
|
1718
2138
|
token: string;
|
|
@@ -1730,6 +2150,9 @@ interface PaymentLinkView extends IPaymentLink {
|
|
|
1730
2150
|
url: string;
|
|
1731
2151
|
}
|
|
1732
2152
|
|
|
2153
|
+
declare const PAYMENT_LINK_STATUS_LABELS: Record<PaymentLinkStatusEnum, string>;
|
|
2154
|
+
declare const paymentLinkStatusTone: (status?: string | null) => StatusToneEnum;
|
|
2155
|
+
|
|
1733
2156
|
declare const SubscriptionChannelEnum: {
|
|
1734
2157
|
readonly EMAIL: "EMAIL";
|
|
1735
2158
|
readonly SMS: "SMS";
|
|
@@ -1976,6 +2399,14 @@ declare const BRAND_FIELDS: {
|
|
|
1976
2399
|
readonly conditional: true;
|
|
1977
2400
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
1978
2401
|
};
|
|
2402
|
+
readonly featured: {
|
|
2403
|
+
readonly before: "custrecord_featured_category";
|
|
2404
|
+
readonly after: "custrecord_featured_category";
|
|
2405
|
+
readonly target: "featured";
|
|
2406
|
+
readonly policy: "always";
|
|
2407
|
+
readonly note: string;
|
|
2408
|
+
readonly caution: string;
|
|
2409
|
+
};
|
|
1979
2410
|
readonly seoTitle: {
|
|
1980
2411
|
readonly before: "pagetitle";
|
|
1981
2412
|
readonly target: "seoMetaData.title";
|
|
@@ -3052,6 +3483,14 @@ declare const brandFields: NetsuiteFieldProvider<{
|
|
|
3052
3483
|
readonly conditional: true;
|
|
3053
3484
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
3054
3485
|
};
|
|
3486
|
+
readonly featured: {
|
|
3487
|
+
readonly before: "custrecord_featured_category";
|
|
3488
|
+
readonly after: "custrecord_featured_category";
|
|
3489
|
+
readonly target: "featured";
|
|
3490
|
+
readonly policy: "always";
|
|
3491
|
+
readonly note: string;
|
|
3492
|
+
readonly caution: string;
|
|
3493
|
+
};
|
|
3055
3494
|
readonly seoTitle: {
|
|
3056
3495
|
readonly before: "pagetitle";
|
|
3057
3496
|
readonly target: "seoMetaData.title";
|
|
@@ -4343,6 +4782,14 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
|
|
|
4343
4782
|
readonly conditional: true;
|
|
4344
4783
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
4345
4784
|
};
|
|
4785
|
+
readonly featured: {
|
|
4786
|
+
readonly before: "custrecord_featured_category";
|
|
4787
|
+
readonly after: "custrecord_featured_category";
|
|
4788
|
+
readonly target: "featured";
|
|
4789
|
+
readonly policy: "always";
|
|
4790
|
+
readonly note: string;
|
|
4791
|
+
readonly caution: string;
|
|
4792
|
+
};
|
|
4346
4793
|
readonly seoTitle: {
|
|
4347
4794
|
readonly before: "pagetitle";
|
|
4348
4795
|
readonly target: "seoMetaData.title";
|
|
@@ -5683,6 +6130,14 @@ declare const BY_ENTITY: {
|
|
|
5683
6130
|
readonly conditional: true;
|
|
5684
6131
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
5685
6132
|
};
|
|
6133
|
+
readonly featured: {
|
|
6134
|
+
readonly before: "custrecord_featured_category";
|
|
6135
|
+
readonly after: "custrecord_featured_category";
|
|
6136
|
+
readonly target: "featured";
|
|
6137
|
+
readonly policy: "always";
|
|
6138
|
+
readonly note: string;
|
|
6139
|
+
readonly caution: string;
|
|
6140
|
+
};
|
|
5686
6141
|
readonly seoTitle: {
|
|
5687
6142
|
readonly before: "pagetitle";
|
|
5688
6143
|
readonly target: "seoMetaData.title";
|
|
@@ -6514,6 +6969,14 @@ interface INetsuiteQueueEntry {
|
|
|
6514
6969
|
runsInSeconds: number | null;
|
|
6515
6970
|
runningForSeconds: number | null;
|
|
6516
6971
|
}
|
|
6972
|
+
interface INetsuiteSyncCheckpoint {
|
|
6973
|
+
_id: string;
|
|
6974
|
+
checkedAt?: Date | string | null;
|
|
6975
|
+
claimAt?: Date | string | null;
|
|
6976
|
+
}
|
|
6977
|
+
|
|
6978
|
+
declare const NETSUITE_EVENT_STATE_TONES: Record<NetsuiteEventStateEnum, StatusToneEnum>;
|
|
6979
|
+
declare const netsuiteEventStateTone: (state?: string) => StatusToneEnum;
|
|
6517
6980
|
|
|
6518
6981
|
declare const TaxRateSourceEnum: {
|
|
6519
6982
|
readonly GROUP: "group";
|
|
@@ -6534,6 +6997,14 @@ interface ITaxRate extends BaseEntity {
|
|
|
6534
6997
|
syncedAt: Date;
|
|
6535
6998
|
}
|
|
6536
6999
|
|
|
7000
|
+
declare const taxRatePercent: (rate?: number | null) => string;
|
|
7001
|
+
declare const taxLabel: (tax?: {
|
|
7002
|
+
rate?: number;
|
|
7003
|
+
state?: string;
|
|
7004
|
+
county?: string;
|
|
7005
|
+
groupName?: string;
|
|
7006
|
+
} | null) => string | null;
|
|
7007
|
+
|
|
6537
7008
|
interface TaxSyncResult {
|
|
6538
7009
|
groups: number;
|
|
6539
7010
|
rates: number;
|
|
@@ -6637,7 +7108,7 @@ interface NetsuiteReceipt {
|
|
|
6637
7108
|
}
|
|
6638
7109
|
interface NetsuiteOrderPreview {
|
|
6639
7110
|
orderId: string;
|
|
6640
|
-
recordType:
|
|
7111
|
+
recordType: NetsuiteRecordTypeEnum;
|
|
6641
7112
|
recordLabel: string;
|
|
6642
7113
|
alreadyPushed?: NetsuiteReceipt;
|
|
6643
7114
|
lastError?: {
|
|
@@ -6738,6 +7209,7 @@ interface CacheStatus {
|
|
|
6738
7209
|
interface CheckoutAddressInput {
|
|
6739
7210
|
addressLine1: string;
|
|
6740
7211
|
addressLine2?: string;
|
|
7212
|
+
attention?: string;
|
|
6741
7213
|
city: string;
|
|
6742
7214
|
zipCode: string;
|
|
6743
7215
|
firstName: string;
|
|
@@ -6861,4 +7333,4 @@ declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartK
|
|
|
6861
7333
|
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
6862
7334
|
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
6863
7335
|
|
|
6864
|
-
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, BRAND_FIELDS, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_COLORS, CASE_STATUS_LABELS, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, COMPANY_MAX_LENGTH, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type CouponNetsuiteLink, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FEE_APPLIES_TO_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminAction, type IAdminAuditAction, type IAdminAuditLog, type IAdminBaseAction, type IAdminPermission, type IAdminResource, type IAdminRole, type IAdminRoleCreate, type IAdminSafe, type IAdminStoreAccess, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type ISitemapManifest, type ISitemapPart, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, MIN_PASSWORD_LENGTH, type MatchResult, type Metadata, NETSUITE_EVENT_STATE_VALUES, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_RELATION_GROUPS, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OPEN_ORDER_STATUSES, ORDER_LOG_TYPE_VALUES, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, OrderLogTypeEnum, OrderStatusEnum, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_ORDER_STATUSES, type QuoteRequestResult, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, type ResolveAccessInput, type ResolvedAddonSelection, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, adjustmentsFor, applyPriceAdjustments, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, categoryFields, chargesOfLine, companyNameOf, conditionHolds, couponFields, customerFields, demandByKey, evaluateConfigurator, feeHint, formatMoney, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isNetsuiteOwned, isNonEmptyString, isQuoteOnlyItem, isSavedLinePriceChanged, isValidAction, isValidEmail, isValidPassword, isValidPhone, missingGrants, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, orderLogTypeColorMap, parseSitemapEntries, paymentLinkStatusColorMap, paymentMethodColorMap, paymentStatusColorMap, podcastFields, productFields, readMapped, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, sitemapEntryLine, sitemapPartId, statusColors, statusTone, statusTones, stockVerdict, syncOwnerFor, toIdString, trimmedText, typeColorMap };
|
|
7336
|
+
export { ACCOUNT_SOURCE_VALUES, ACTIVE_SUBSCRIPTION_CHANNELS, ADMIN_ACTIONS, ADMIN_AUDIT_ACTIONS, ADMIN_RESOURCES, ADMIN_RESOURCE_LIST, ALL_STORES, AUTH_PROVIDER_VALUES, AVAILABILITY_STATUS_TONES, AWAITING_PAYMENT_STATUSES, type AccountSource, AccountSourceEnum, type AddonAmountInput, type AddonGroupNetsuiteLink, type AddonNetsuiteLink, type AddonSelectionRef, type AddonSnapshot, type AddressLinesInput, type AdminCreateRequest, type AdminUpdateRequest, type ApiResponse, type AppliedTax, type AuthProvider, AuthProviderEnum, type Availability, AvailabilityToneEnum, BACKORDERED_TONE, BRAND_FIELDS, BUSINESS_TIME_ZONE, type BaseEntity, CAMPAIGN_RECIPIENT_STATUS_VALUES, CAMPAIGN_STATUS_VALUES, CART_STATUS_VALUES, CASE_ORIGIN_LABELS, CASE_ORIGIN_VALUES, CASE_PRIORITY_LABELS, CASE_PRIORITY_VALUES, CASE_PROFILE_LABELS, CASE_PROFILE_VALUES, CASE_STATUS_LABELS, CASE_STATUS_TONES, CASE_STATUS_VALUES, CASE_TYPE_LABELS, CASE_TYPE_VALUES, CATEGORY_FIELDS, CLOSED_QUOTE_STATUSES, COMPANY, COMPANY_ADDRESS_LINE, COMPANY_CITY_LINE, COMPANY_CITY_LINE_LONG, COMPANY_MAX_LENGTH, COMPLETE_ORDER_STATUSES, CONFIGURATOR_CONDITION_TYPE_VALUES, CONFIGURATOR_EFFECT_TYPE_VALUES, CONFIGURATOR_SELECT_MODE_VALUES, CONFIGURATOR_SOURCE_VALUES, CONTACT_PROFILE_OPTIONS, type CacheStatus, type CacheStoreTarget, CampaignRecipientStatusEnum, CampaignStatusEnum, type CartIssue, type CartIssueType, CartIssueTypes, CartStatusEnum, type CartValidation, type CaseOrigin, CaseOriginEnum, type CasePriority, CasePriorityEnum, type CaseProfile, CaseProfileEnum, type CaseStatus, CaseStatusEnum, type CaseType, CaseTypeEnum, type CategoryImportSummary, type CheckoutAddressInput, type CheckoutPayload, type CheckoutResult, ConfiguratorConditionTypeEnum, ConfiguratorEffectTypeEnum, ConfiguratorErrorCodeEnum, type ConfiguratorEvalContext, type ConfiguratorEvalError, type ConfiguratorEvalResult, ConfiguratorSelectModeEnum, type ConfiguratorSelections, ConfiguratorSourceEnum, type ConvertedOrderView, type CouponNetsuiteLink, CreditMemoStatusEnum, type CustomerAccountErrorCode, CustomerAccountErrorCodeEnum, type CustomerNameInput, type CustomerProfileUpdateRequest, type CustomerSignupRequest, type CustomerSocialLoginRequest, DEFAULT_SUBSCRIPTION_TOPICS, DISCOUNT_TYPE_LABELS, DISCOUNT_TYPE_VALUES, DiscountTypeEnum, EDITABLE_ADMIN_FIELDS, EDITABLE_CUSTOMER_FIELDS, EMAIL_PARAM_MISMATCH_KIND_VALUES, EMAIL_TEMPLATE_EVENT_VALUES, EMAIL_TEMPLATE_VARIABLES_BY_EVENT, EMPTY_ACCESS, type EditableAdminField, type EditableCustomerField, type EffectiveAccess, type EmailParamMismatch, EmailParamMismatchKindEnum, EmailTemplateEventEnum, FAILED_PAYMENT_STATUSES, FEE_APPLIES_TO_LABELS, FEE_APPLIES_TO_VALUES, FULFILLMENT_STATUS_LABEL, FULFILLMENT_STATUS_VALUES, FeeAppliesToEnum, type FieldMap, type FieldMapping, type FieldSource, FulfillmentStatusEnum, type IAddonConfig, type IAddonGroup, type IAddress, type IAdmin, type IAdminAction, type IAdminAuditAction, type IAdminAuditLog, type IAdminBaseAction, type IAdminPermission, type IAdminResource, type IAdminRole, type IAdminRoleCreate, type IAdminSafe, type IAdminStoreAccess, type IAppliedFee, type IBannerSlide, type IBlogAuthor, type IBlogCategory, type IBlogPost, type IBrand, type ICampaign, type ICampaignRecipient, type ICampaignStats, type ICart, type ICartItem, type ICartServicePlanSnapshot, type ICaseMessage, type ICategory, type ICategorySequence, type ICategorySubcategory, type ICategoryUrl, type IConfigurator, type IConfiguratorCondition, type IConfiguratorEffect, type IConfiguratorFacet, type IConfiguratorFacetValue, type IConfiguratorOption, type IConfiguratorPriceAdjustment, type IConfiguratorQuery, type IConfiguratorRule, type IConfiguratorSection, type IConfiguratorStep, type IConfiguratorTarget, type IContact, type ICountry, type ICoupon, type ICurrency, type ICustomer, type IDiscountType, type IEmailTemplate, type IFaq, type IFaqCategory, type IKeyValue, type ILinePricing, type IMediaAsset, INVENTORY_POLICY_VALUES, type INetsuiteCaseLink, type INetsuiteEvent, type INetsuiteOrderLine, type INetsuiteOrderLink, type INetsuiteQueueEntry, type INetsuiteRefund, type INetsuiteSalesRep, type INetsuiteSyncCheckpoint, type INotification, type IOrder, type IOrderItem, type IOrderLog, type IOrderShipment, type IOrderTransaction, type IPaymentLink, type IPodcastEpisode, type IPrice, type IProduct, type IProductDailyStat, type IProductRelationGroup, type IProductTechnicalSpec, type IProductTechnicalSpecTable, type IProductVariantFields, type IProductVariantOptionGroup, type IProductVariantOptionMatrix, type IProductVariantOptionValue, type IRedirect, type IRedirectSuggestion, type IRefundTransaction, type IRelationGroup, type ISEOMetaData, type ISelectableFee, type IServicePlan, type IShipFromAddress, type IShipping, type IShippingRate, type ISitemapManifest, type ISitemapPart, type IState, type IStock, type IStore, type IStoreFee, type IStoreSettings, type ISubscriber, type ISubscriberConsent, type ISubscription, type ISummaryPricing, type ISupportCase, type ISupportCaseListItem, type ITaxRate, type ITechnicalSpecColumn, type ITechnicalSpecGroup, type ITransactionBase, type IUnmatched404, type IVariant, type IVariantOptionSelection, type IWishlist, type IWishlistItem, type Id, type InventoryPolicy, InventoryPolicyEnum, type LineChargeInput, type LineShipProgress, LineShipStateEnum, MAX_PAGE, MAX_PAGE_SIZE, MIN_PASSWORD_LENGTH, MOVABLE_STATUSES, type MatchResult, type Metadata, NETSUITE_ESTIMATE_STATUS_TEXT, NETSUITE_EVENT_STATE_TONES, NETSUITE_EVENT_STATE_VALUES, NETSUITE_FULFILLMENT_STATUS_TEXT, NETSUITE_INVOICE_STATUS_TEXT, NETSUITE_OWNED_FIELDS, NETSUITE_RECORD_TYPE_VALUES, NETSUITE_REFUND_KIND_VALUES, NETSUITE_REFUND_RECORD_NAME, NETSUITE_RELATION_GROUPS, NETSUITE_RETURN_STATUS_TEXT, NETSUITE_SALES_ORDER_STATUS_TEXT, NOTIFICATION_TYPE_VALUES, type NetsuiteCustomerLinkResult, NetsuiteEventStateEnum, NetsuiteFieldProvider, type NetsuiteLineLike, type NetsuiteLinkResult, type NetsuiteOrderPreview, type NetsuiteOwnedEntity, type NetsuitePreviewLine, type NetsuitePushAttempt, type NetsuitePushOutcome, type NetsuiteReceipt, NetsuiteRecordTypeEnum, NetsuiteRefundKindEnum, type NetsuiteRelationSource, type NetsuiteStatusChange, type NetsuiteStatusSyncResult, type NetsuiteSyncDefinition, NotificationTypeEnum, OFFLINE_PAYMENT_METHODS, OPEN_ORDER_STATUSES, OPEN_QUOTE_STATUSES, ORDER_EMAIL_EVENTS, ORDER_LOG_TYPE_COLORS, ORDER_LOG_TYPE_VALUES, ORDER_ORIGIN_VALUES, ORDER_STATUS_LABELS, ORDER_STATUS_VALUES, type OfferedAddon, type OfferedAddonGroup, type OfferedServicePlan, type OrderEmailEvent, type OrderLineNameInput, OrderLogTypeEnum, OrderOriginEnum, OrderStatusEnum, PAID_PAYMENT_STATUSES, PARTLY_SHIPPED_STATUSES, PAYMENT_GATEWAY_LABELS, PAYMENT_GATEWAY_VALUES, PAYMENT_LINK_STATUS_LABELS, PAYMENT_LINK_STATUS_VALUES, PAYMENT_METHOD_COLORS, PAYMENT_METHOD_LABELS, PAYMENT_METHOD_VALUES, PAYMENT_STATUS_LABELS, PAYMENT_STATUS_VALUES, PHONE_MAX_LENGTH, PLACED_OPEN_ORDER_STATUSES, PO_NUMBER_MAX_LENGTH, PRICING_TYPE_LABELS, PRICING_TYPE_VALUES, PRODUCT_FIELDS, PRODUCT_VARIANT_TYPE_VALUES, PROFILE_ACTOR_VALUES, PROVIDERS, PURCHASE_ORDER_STATUSES, PUSH_CHECK_STATUS_VALUES, type PaginatedResponse, PaymentGatewayEnum, PaymentLinkStatusEnum, type PaymentLinkView, PaymentMethodEnum, PaymentStatusEnum, type PersonNameInput, type PricedLineLike, type PricingType, PricingTypeEnum, type ProductAddonScope, ProductEventTypeEnum, type ProductServicePlanScope, type ProductVariantType, ProductVariantTypeEnum, ProfileActorEnum, type ProfileEditRules, type PromotionSyncResult, type PushCheck, PushCheckStatusEnum, type PushField, QUOTE_BUYABLE_STATUS, QUOTE_ORDER_STATUSES, QUOTE_VALID_DAYS, type QuantityLineInput, type QuoteRequestResult, type QuoteRuleInput, REDIRECT_TARGET_TYPE_VALUES, REFUND_STATE_TONES, REFUND_TRAIL_TITLE, RELATION_FIELDS, RESOURCE_OPERATIONS, RETIRED_CART_STATUSES, RETURN_ORDER_STATUSES, type RateAddress, type RatedShippingMethod, type RedirectTargetType, RedirectTargetTypeEnum, RefundPaymentStatusEnum, RefundStateEnum, type RefundStep, RefundStepStateEnum, type RefundSummary, type RefundTrail, RefundTrailKindEnum, type ResolveAccessInput, type ResolvedAddonSelection, ReturnStatusEnum, type RevalidationResult, SALE_TYPE_VALUES, SAVED_CART_TTL_DAYS, SERVICE_PLAN_ELIGIBILITY_FIELD, SETTLED_STATUSES, SITEMAP_MANIFESTS_COLLECTION, SITEMAP_MANIFEST_ID, SITEMAP_PARTS_COLLECTION, SITEMAP_PART_KIND_VALUES, STATUS_TONE_COLORS, STATUS_TONE_VALUES, STOCK_STATUS_VALUES, STORE_THEME_VALUES, SUBSCRIPTION_CHANNEL_VALUES, SUBSCRIPTION_TOPIC_LABELS, SUBSCRIPTION_TOPIC_VALUES, type SaleType, SaleTypeEnum, type SaleTypedLike, type SavedCartLine, type SavedCartSummary, type SelectedShippingMethod, type ServerQueryParams, type ServicePlanNetsuiteLink, type SitemapEntryKey, SitemapPartKindEnum, StatusToneEnum, type StatusToneRecord, type StockDemandLine, type StockStatus, StockStatusEnum, type StockVerdict, StockVerdictEnum, type StoreAccessCheckInput, type StoreScopeInput, StoreThemeEnum, SubscriptionChannelEnum, SubscriptionTopicEnum, type SyncPolicy, type SyncRisk, TAX_RATE_SOURCE_VALUES, TRANSACTION_TYPE_COLORS, TRANSACTION_TYPE_VALUES, TaxRateSourceEnum, type TaxSyncResult, type TrackingDisplay, TrackingKindEnum, TransactionTypeEnum, UNPLACED_ORDER_STATUSES, type VariantOptionMode, WIRED_EMAIL_TEMPLATE_EVENTS, actionsForResource, addonFields, addonUnitAmount, addonsOfLine, addonsUnitAmount, addressLines, adjustmentsFor, applyPriceAdjustments, availabilityOf, availabilityStatusTone, baseUnitPriceOfLine, blogAuthorFields, blogCategoryFields, blogPostFields, brandFields, buildOptionSignature, can, canAny, canonicalizePath, canonicalizeSlug, canonicalizeUrlSegment, cartAcceptsItem, caseIsOpen, caseStatusTone, categoryFields, centsEqual, chargesOfLine, clampPage, clampPageSize, cleanOptionKey, companyNameOf, conditionHolds, convertedOrderBilledOffline, convertedOrderOf, couponFields, customerDisplayName, customerFields, customerRefundHeadline, customerStatusTone, demandByKey, discountValueLabel, errorMessage, evaluateConfigurator, feeHint, firstLine, formatDay, formatMoney, fulfillmentStatusTone, grantedPermissions, groupHasDefaultAddon, hasStoreAccess, isConfigurationValid, isContactProfile, isDiscountType, isFailedPaymentStatus, isNetsuiteOrigin, isNetsuiteOwned, isNonEmptyString, isOfflinePaymentMethod, isOrderEmailEvent, isPaidPaymentStatus, isPartlyShipped, isPricingType, isQuoteBuyable, isQuoteExpired, isQuoteLapsing, isQuoteOnlyItem, isRepQuoteOrderable, isSavedLinePriceChanged, isSellable, isSettledStatus, isStoredCalendarDay, isValidAction, isValidEmail, isValidPassword, isValidPhone, itemsLabel, lineName, lineQuantityCount, lineSellable, lineShipProgress, lineShipTone, lineSku, linesShipped, liveRefunds, missingGrants, netsuiteDocumentLabel, netsuiteDocumentTone, netsuiteEventStateTone, netsuiteFieldCaution, netsuiteFieldConditional, netsuiteFieldDerivedFrom, netsuiteFieldNote, netsuiteFieldRisk, netsuiteFieldSource, netsuiteRelationSource, netsuiteStatusLabel, normalizeLineQuantity, normalizeNumber, normalizePath, parseSitemapEntries, paymentLinkStatusTone, paymentMethodLabel, paymentStatusLabel, paymentStatusTone, personName, poNumberText, podcastFields, pricingValueLabel, productFields, profileEditRules, quoteCanBeOrdered, quoteDaysLeft, quoteIsPriced, quotePaymentUnfinished, quoteValidityPassed, readMapped, recordStatusTone, refundHeadline, refundStateTone, refundStepTone, refundSummary, repLineNote, resolveAddonSelections, resolveEffectivePermissions, resolveProductAddonGroups, resolveProductServicePlans, resolveStoreScope, roundMoney, saleTypeOf, servicePlanFields, shipmentsTone, sitemapEntryLine, sitemapPartId, slugify, statusTagColor, statusTone, statusTones, stockVerdict, syncOwnerFor, taxLabel, taxRatePercent, toCents, toIdString, trackingDisplay, trimmedText };
|