@fas-core/shared-types 1.0.131 → 1.0.133
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 +679 -207
- package/dist/index.d.ts +679 -207
- package/dist/index.js +998 -183
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +998 -183
- 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
|
}
|
|
@@ -708,11 +850,19 @@ interface SavedCartSummary {
|
|
|
708
850
|
currentTotal: number;
|
|
709
851
|
priceChanges: number;
|
|
710
852
|
currencyCode: string;
|
|
711
|
-
createdAt: string |
|
|
712
|
-
expiresAt: string |
|
|
853
|
+
createdAt: string | null;
|
|
854
|
+
expiresAt: string | null;
|
|
713
855
|
lines: SavedCartLine[];
|
|
714
856
|
}
|
|
857
|
+
declare const isSavedLinePriceChanged: (line: SavedCartLine) => boolean;
|
|
715
858
|
|
|
859
|
+
interface INetsuiteOrderLine {
|
|
860
|
+
description: string;
|
|
861
|
+
quantityFulfilled: number;
|
|
862
|
+
quantityBilled: number;
|
|
863
|
+
quantityBackordered: number;
|
|
864
|
+
fulfillable: boolean;
|
|
865
|
+
}
|
|
716
866
|
interface IOrderItem extends BaseEntity {
|
|
717
867
|
order: IOrder;
|
|
718
868
|
product: IProduct;
|
|
@@ -720,8 +870,56 @@ interface IOrderItem extends BaseEntity {
|
|
|
720
870
|
pricing: ILinePricing;
|
|
721
871
|
metaData: Metadata;
|
|
722
872
|
note?: string;
|
|
873
|
+
netsuite?: INetsuiteOrderLine | null;
|
|
723
874
|
}
|
|
724
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
|
+
|
|
725
923
|
declare const PaymentStatusEnum: {
|
|
726
924
|
readonly INITIATED: "INITIATED";
|
|
727
925
|
readonly PENDING: "PENDING";
|
|
@@ -739,8 +937,6 @@ declare const PaymentStatusEnum: {
|
|
|
739
937
|
};
|
|
740
938
|
type PaymentStatusEnum = (typeof PaymentStatusEnum)[keyof typeof PaymentStatusEnum];
|
|
741
939
|
declare const PAYMENT_STATUS_VALUES: ("INITIATED" | "PENDING" | "PROCESSING" | "FAILED" | "CANCELLED" | "PENDING_CAPTURE" | "COMPLETED" | "VOIDED" | "REDIRECTED_TO_GATEWAY" | "UNKNOWN" | "REFUNDED" | "PARTIALLY_REFUNDED" | "NOT_REQUIRED")[];
|
|
742
|
-
declare const AWAITING_PAYMENT_STATUSES: PaymentStatusEnum[];
|
|
743
|
-
declare const paymentStatusColorMap: Record<PaymentStatusEnum, string>;
|
|
744
940
|
declare const PaymentMethodEnum: {
|
|
745
941
|
readonly CREDIT_CARD: "CREDIT_CARD";
|
|
746
942
|
readonly STRIPE: "STRIPE";
|
|
@@ -750,7 +946,6 @@ declare const PaymentMethodEnum: {
|
|
|
750
946
|
};
|
|
751
947
|
type PaymentMethodEnum = (typeof PaymentMethodEnum)[keyof typeof PaymentMethodEnum];
|
|
752
948
|
declare const PAYMENT_METHOD_VALUES: ("CREDIT_CARD" | "STRIPE" | "CHECK" | "APPLE_PAY" | "PURCHASE_ORDER")[];
|
|
753
|
-
declare const paymentMethodColorMap: Record<PaymentMethodEnum, string>;
|
|
754
949
|
declare const PaymentGatewayEnum: {
|
|
755
950
|
readonly STRIPE: "STRIPE";
|
|
756
951
|
readonly MANUAL: "MANUAL";
|
|
@@ -763,7 +958,6 @@ declare const TransactionTypeEnum: {
|
|
|
763
958
|
};
|
|
764
959
|
type TransactionTypeEnum = (typeof TransactionTypeEnum)[keyof typeof TransactionTypeEnum];
|
|
765
960
|
declare const TRANSACTION_TYPE_VALUES: ("ORDER" | "REFUND")[];
|
|
766
|
-
declare const typeColorMap: Record<TransactionTypeEnum, string>;
|
|
767
961
|
interface ITransactionBase extends BaseEntity {
|
|
768
962
|
order: IOrder;
|
|
769
963
|
store: IStore | string;
|
|
@@ -788,6 +982,29 @@ interface IRefundTransaction extends ITransactionBase {
|
|
|
788
982
|
originalTransaction?: ITransactionBase;
|
|
789
983
|
}
|
|
790
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
|
+
}
|
|
791
1008
|
interface INetsuiteOrderLink {
|
|
792
1009
|
id: string;
|
|
793
1010
|
recordType: string;
|
|
@@ -803,22 +1020,118 @@ interface INetsuiteOrderLink {
|
|
|
803
1020
|
pushedAt?: Date | string;
|
|
804
1021
|
statusCode?: string;
|
|
805
1022
|
statusCheckedAt?: Date | string;
|
|
1023
|
+
salesRep?: INetsuiteSalesRep | null;
|
|
1024
|
+
terms?: string;
|
|
1025
|
+
expectedShipDate?: string;
|
|
1026
|
+
actualShipDate?: string;
|
|
1027
|
+
orderEmails?: string[];
|
|
1028
|
+
createdFromTranId?: string;
|
|
806
1029
|
}
|
|
807
|
-
|
|
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 {
|
|
808
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;
|
|
809
1100
|
tranId?: string;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
shippedAt?: Date | string;
|
|
813
|
-
trackingNumbers: string[];
|
|
814
|
-
syncedAt?: Date | string;
|
|
1101
|
+
date?: Date | string;
|
|
1102
|
+
recordUrl?: string;
|
|
815
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
|
+
|
|
816
1128
|
declare const OrderStatusEnum: {
|
|
817
1129
|
readonly CREATED: "CREATED";
|
|
818
1130
|
readonly PAYMENT_FAILED: "PAYMENT_FAILED";
|
|
819
1131
|
readonly PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
820
1132
|
readonly PENDING_FULFILLMENT: "PENDING_FULFILLMENT";
|
|
821
1133
|
readonly PARTIALLY_FULFILLED: "PARTIALLY_FULFILLED";
|
|
1134
|
+
readonly PENDING_BILLING_PARTIALLY_FULFILLED: "PENDING_BILLING_PARTIALLY_FULFILLED";
|
|
822
1135
|
readonly PENDING_BILLING: "PENDING_BILLING";
|
|
823
1136
|
readonly BILLED: "BILLED";
|
|
824
1137
|
readonly CLOSED: "CLOSED";
|
|
@@ -836,25 +1149,61 @@ declare const OrderStatusEnum: {
|
|
|
836
1149
|
readonly QUOTE_EXPIRED: "QUOTE_EXPIRED";
|
|
837
1150
|
};
|
|
838
1151
|
type OrderStatusEnum = (typeof OrderStatusEnum)[keyof typeof OrderStatusEnum];
|
|
839
|
-
declare const ORDER_STATUS_VALUES: ("CANCELLED" | "REFUNDED" | "PARTIALLY_REFUNDED" | "
|
|
840
|
-
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")[];
|
|
841
1153
|
declare const PURCHASE_ORDER_STATUSES: OrderStatusEnum[];
|
|
842
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;
|
|
843
1160
|
declare const UNPLACED_ORDER_STATUSES: OrderStatusEnum[];
|
|
844
1161
|
declare const OPEN_ORDER_STATUSES: OrderStatusEnum[];
|
|
1162
|
+
declare const OPEN_QUOTE_STATUSES: OrderStatusEnum[];
|
|
1163
|
+
declare const CLOSED_QUOTE_STATUSES: OrderStatusEnum[];
|
|
845
1164
|
declare const QUOTE_ORDER_STATUSES: OrderStatusEnum[];
|
|
846
|
-
declare const StatusToneEnum: {
|
|
847
|
-
readonly DONE: "done";
|
|
848
|
-
readonly MOVING: "moving";
|
|
849
|
-
readonly WAITING: "waiting";
|
|
850
|
-
readonly STOPPED: "stopped";
|
|
851
|
-
readonly CLOSED: "closed";
|
|
852
|
-
};
|
|
853
|
-
type StatusToneEnum = (typeof StatusToneEnum)[keyof typeof StatusToneEnum];
|
|
854
|
-
declare const STATUS_TONE_VALUES: ("done" | "moving" | "waiting" | "stopped" | "closed")[];
|
|
855
1165
|
declare const statusTones: Record<OrderStatusEnum, StatusToneEnum>;
|
|
856
1166
|
declare const statusTone: (status?: string) => StatusToneEnum;
|
|
857
|
-
|
|
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
|
+
|
|
858
1207
|
interface IOrder extends BaseEntity {
|
|
859
1208
|
orderId: string;
|
|
860
1209
|
orderItems: IOrderItem[];
|
|
@@ -863,6 +1212,7 @@ interface IOrder extends BaseEntity {
|
|
|
863
1212
|
store: IStore;
|
|
864
1213
|
status: OrderStatusEnum;
|
|
865
1214
|
type: SaleType;
|
|
1215
|
+
origin?: OrderOriginEnum;
|
|
866
1216
|
sourceQuote?: IOrder | string;
|
|
867
1217
|
convertedOrder?: IOrder | string;
|
|
868
1218
|
quoteValidUntil?: Date;
|
|
@@ -878,6 +1228,7 @@ interface IOrder extends BaseEntity {
|
|
|
878
1228
|
billingAddress: IAddress;
|
|
879
1229
|
shippingMethod?: SelectedShippingMethod | null;
|
|
880
1230
|
shipments?: IOrderShipment[];
|
|
1231
|
+
netsuiteRefunds?: INetsuiteRefund[];
|
|
881
1232
|
tax?: AppliedTax | null;
|
|
882
1233
|
acceptedTermsAt: Date;
|
|
883
1234
|
customerNote: string;
|
|
@@ -894,6 +1245,48 @@ interface IOrder extends BaseEntity {
|
|
|
894
1245
|
pricing: ISummaryPricing;
|
|
895
1246
|
}
|
|
896
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
|
+
|
|
897
1290
|
interface ICustomer extends BaseEntity {
|
|
898
1291
|
netsuiteId: string;
|
|
899
1292
|
netsuiteEntityId: string;
|
|
@@ -901,9 +1294,13 @@ interface ICustomer extends BaseEntity {
|
|
|
901
1294
|
netsuiteProfileSyncedAt: Date | string | null;
|
|
902
1295
|
netsuitePushedAt: Date | string | null;
|
|
903
1296
|
netsuitePushError: string;
|
|
1297
|
+
netsuitePushRejected?: string;
|
|
904
1298
|
netsuiteLinkAttempts: number;
|
|
905
1299
|
netsuiteLinkAttemptedAt: Date | string | null;
|
|
906
1300
|
netsuiteLinkClaimAt?: Date | string | null;
|
|
1301
|
+
netsuiteHistoryRequestedAt?: Date | string | null;
|
|
1302
|
+
netsuiteHistoryCursor?: string | null;
|
|
1303
|
+
netsuiteHistorySyncedAt?: Date | string | null;
|
|
907
1304
|
netsuiteRemovedAt?: Date | string | null;
|
|
908
1305
|
netsuiteLinkError: string;
|
|
909
1306
|
firstName: string;
|
|
@@ -943,6 +1340,7 @@ interface IAddress extends BaseEntity {
|
|
|
943
1340
|
netsuiteAddressbookId: string;
|
|
944
1341
|
addressLine1: string;
|
|
945
1342
|
addressLine2: string;
|
|
1343
|
+
attention?: string;
|
|
946
1344
|
city: string;
|
|
947
1345
|
zipCode: string;
|
|
948
1346
|
firstName: string;
|
|
@@ -956,6 +1354,26 @@ interface IAddress extends BaseEntity {
|
|
|
956
1354
|
customer: ICustomer;
|
|
957
1355
|
}
|
|
958
1356
|
|
|
1357
|
+
interface AddressLinesInput {
|
|
1358
|
+
firstName?: string | null;
|
|
1359
|
+
lastName?: string | null;
|
|
1360
|
+
attention?: string | null;
|
|
1361
|
+
addressLine1?: string | null;
|
|
1362
|
+
addressLine2?: string | null;
|
|
1363
|
+
city?: string | null;
|
|
1364
|
+
zipCode?: string | null;
|
|
1365
|
+
phoneNumber?: string | null;
|
|
1366
|
+
state?: {
|
|
1367
|
+
name?: string | null;
|
|
1368
|
+
} | string | null;
|
|
1369
|
+
country?: {
|
|
1370
|
+
name?: string | null;
|
|
1371
|
+
} | string | null;
|
|
1372
|
+
}
|
|
1373
|
+
declare const addressLines: (address?: AddressLinesInput | null, { withPhone }?: {
|
|
1374
|
+
withPhone?: boolean;
|
|
1375
|
+
}) => string[];
|
|
1376
|
+
|
|
959
1377
|
declare const ADMIN_RESOURCE_LIST: readonly [{
|
|
960
1378
|
readonly value: "dashboard";
|
|
961
1379
|
readonly label: "Dashboard";
|
|
@@ -1085,7 +1503,7 @@ declare const ADMIN_RESOURCE_LIST: readonly [{
|
|
|
1085
1503
|
readonly label: "Account";
|
|
1086
1504
|
readonly group: "Settings";
|
|
1087
1505
|
}];
|
|
1088
|
-
declare const ADMIN_RESOURCES: ("
|
|
1506
|
+
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")[];
|
|
1089
1507
|
type IAdminResource = (typeof ADMIN_RESOURCE_LIST)[number]['value'];
|
|
1090
1508
|
declare const ADMIN_ACTIONS: readonly ["read", "write", "delete"];
|
|
1091
1509
|
type IAdminBaseAction = (typeof ADMIN_ACTIONS)[number];
|
|
@@ -1182,6 +1600,26 @@ type AdminUpdateRequest = Partial<Pick<IAdmin, EditableAdminField>> & {
|
|
|
1182
1600
|
newPassword?: string;
|
|
1183
1601
|
};
|
|
1184
1602
|
|
|
1603
|
+
declare const COMPANY: {
|
|
1604
|
+
readonly legalName: "Flexible Assembly Systems, Inc.";
|
|
1605
|
+
readonly address: {
|
|
1606
|
+
readonly street: "8220 Arjons Drive";
|
|
1607
|
+
readonly city: "San Diego";
|
|
1608
|
+
readonly region: "CA";
|
|
1609
|
+
readonly regionName: "California";
|
|
1610
|
+
readonly postalCode: "92126";
|
|
1611
|
+
readonly country: "US";
|
|
1612
|
+
readonly countryName: "United States of America";
|
|
1613
|
+
};
|
|
1614
|
+
readonly phone: {
|
|
1615
|
+
readonly label: "(619) 287-7000";
|
|
1616
|
+
readonly digits: "6192877000";
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
declare const COMPANY_CITY_LINE: string;
|
|
1620
|
+
declare const COMPANY_CITY_LINE_LONG: string;
|
|
1621
|
+
declare const COMPANY_ADDRESS_LINE: string;
|
|
1622
|
+
|
|
1185
1623
|
declare const CaseStatusEnum: {
|
|
1186
1624
|
readonly NOT_STARTED: "1";
|
|
1187
1625
|
readonly IN_PROGRESS: "2";
|
|
@@ -1192,7 +1630,6 @@ declare const CaseStatusEnum: {
|
|
|
1192
1630
|
type CaseStatus = (typeof CaseStatusEnum)[keyof typeof CaseStatusEnum];
|
|
1193
1631
|
declare const CASE_STATUS_VALUES: CaseStatus[];
|
|
1194
1632
|
declare const CASE_STATUS_LABELS: Record<CaseStatus, string>;
|
|
1195
|
-
declare const CASE_STATUS_COLORS: Record<CaseStatus, string>;
|
|
1196
1633
|
declare const CasePriorityEnum: {
|
|
1197
1634
|
readonly HIGH: "1";
|
|
1198
1635
|
readonly MEDIUM: "2";
|
|
@@ -1270,6 +1707,9 @@ interface INetsuiteCaseLink {
|
|
|
1270
1707
|
}
|
|
1271
1708
|
type ISupportCaseListItem = Omit<ISupportCase, "messages">;
|
|
1272
1709
|
|
|
1710
|
+
declare const CASE_STATUS_TONES: Record<CaseStatus, StatusToneEnum>;
|
|
1711
|
+
declare const caseStatusTone: (status?: string) => StatusToneEnum;
|
|
1712
|
+
|
|
1273
1713
|
interface IContact extends BaseEntity {
|
|
1274
1714
|
firstName: string;
|
|
1275
1715
|
lastName: string;
|
|
@@ -1372,40 +1812,7 @@ interface IProductTechnicalSpecTable extends BaseEntity {
|
|
|
1372
1812
|
status: boolean;
|
|
1373
1813
|
}
|
|
1374
1814
|
|
|
1375
|
-
declare const
|
|
1376
|
-
readonly SUBTOTAL: "SUBTOTAL";
|
|
1377
|
-
readonly TOTAL: "TOTAL";
|
|
1378
|
-
};
|
|
1379
|
-
type FeeAppliesToEnum = (typeof FeeAppliesToEnum)[keyof typeof FeeAppliesToEnum];
|
|
1380
|
-
declare const FEE_APPLIES_TO_VALUES: ("SUBTOTAL" | "TOTAL")[];
|
|
1381
|
-
interface IStoreFee extends BaseEntity {
|
|
1382
|
-
netsuiteId?: string;
|
|
1383
|
-
stores: (IStore | string)[];
|
|
1384
|
-
name: string;
|
|
1385
|
-
key: string;
|
|
1386
|
-
description?: string;
|
|
1387
|
-
pricingType: PricingType;
|
|
1388
|
-
value: number;
|
|
1389
|
-
appliesTo: FeeAppliesToEnum;
|
|
1390
|
-
enabled: boolean;
|
|
1391
|
-
isVisible: boolean;
|
|
1392
|
-
optional: boolean;
|
|
1393
|
-
defaultSelected: boolean;
|
|
1394
|
-
sortOrder: number;
|
|
1395
|
-
status: boolean;
|
|
1396
|
-
metaData: Metadata;
|
|
1397
|
-
}
|
|
1398
|
-
interface ISelectableFee {
|
|
1399
|
-
key: string;
|
|
1400
|
-
name: string;
|
|
1401
|
-
description?: string;
|
|
1402
|
-
pricingType: PricingType;
|
|
1403
|
-
value: number;
|
|
1404
|
-
appliesTo: FeeAppliesToEnum;
|
|
1405
|
-
optional: boolean;
|
|
1406
|
-
selected: boolean;
|
|
1407
|
-
amount: number;
|
|
1408
|
-
}
|
|
1815
|
+
declare const FEE_APPLIES_TO_LABELS: Record<FeeAppliesToEnum, string>;
|
|
1409
1816
|
|
|
1410
1817
|
declare const EmailTemplateEventEnum: {
|
|
1411
1818
|
readonly ORDER_RECEIVED: "ORDER_RECEIVED";
|
|
@@ -1450,6 +1857,10 @@ interface EmailParamMismatch {
|
|
|
1450
1857
|
token: string;
|
|
1451
1858
|
}
|
|
1452
1859
|
|
|
1860
|
+
declare const ORDER_EMAIL_EVENTS: readonly ["ORDER_RECEIVED", "ORDER_CANCELLED"];
|
|
1861
|
+
type OrderEmailEvent = (typeof ORDER_EMAIL_EVENTS)[number];
|
|
1862
|
+
declare const isOrderEmailEvent: (value: unknown) => value is OrderEmailEvent;
|
|
1863
|
+
|
|
1453
1864
|
declare const ConfiguratorSelectModeEnum: {
|
|
1454
1865
|
readonly SINGLE: "SINGLE";
|
|
1455
1866
|
readonly MULTI: "MULTI";
|
|
@@ -1611,7 +2022,14 @@ declare const applyPriceAdjustments: (baseUnitPrice: number, adjustments: IConfi
|
|
|
1611
2022
|
declare const adjustmentsFor: (adjustments: IConfiguratorPriceAdjustment[], sectionKey: string, optionKey: string) => IConfiguratorPriceAdjustment[];
|
|
1612
2023
|
declare const isConfigurationValid: (result: ConfiguratorEvalResult) => boolean;
|
|
1613
2024
|
|
|
1614
|
-
|
|
2025
|
+
declare const RedirectTargetTypeEnum: {
|
|
2026
|
+
readonly PRODUCT: "product";
|
|
2027
|
+
readonly VARIANT: "variant";
|
|
2028
|
+
readonly CATEGORY: "category";
|
|
2029
|
+
readonly URL: "url";
|
|
2030
|
+
};
|
|
2031
|
+
type RedirectTargetType = (typeof RedirectTargetTypeEnum)[keyof typeof RedirectTargetTypeEnum];
|
|
2032
|
+
declare const REDIRECT_TARGET_TYPE_VALUES: ("category" | "product" | "variant" | "url")[];
|
|
1615
2033
|
interface IRedirectSuggestion {
|
|
1616
2034
|
targetType: RedirectTargetType;
|
|
1617
2035
|
targetRef?: string | null;
|
|
@@ -1653,8 +2071,10 @@ declare const canonicalizeSlug: (input: string) => string;
|
|
|
1653
2071
|
declare const canonicalizeUrlSegment: (input: string) => string;
|
|
1654
2072
|
declare const canonicalizePath: (input: string) => string;
|
|
1655
2073
|
|
|
2074
|
+
declare const toCents: (amount: number) => number;
|
|
1656
2075
|
declare const roundMoney: (amount: number) => number;
|
|
1657
|
-
declare const
|
|
2076
|
+
declare const centsEqual: (a: number, b: number) => boolean;
|
|
2077
|
+
declare const formatMoney: (value: number | null | undefined, currencyCode?: string) => string;
|
|
1658
2078
|
declare const normalizeLineQuantity: (quantity: number) => number;
|
|
1659
2079
|
interface AddonAmountInput {
|
|
1660
2080
|
price: number;
|
|
@@ -1693,8 +2113,7 @@ declare const OrderLogTypeEnum: {
|
|
|
1693
2113
|
readonly NOTE: "NOTE";
|
|
1694
2114
|
};
|
|
1695
2115
|
type OrderLogTypeEnum = (typeof OrderLogTypeEnum)[keyof typeof OrderLogTypeEnum];
|
|
1696
|
-
declare const ORDER_LOG_TYPE_VALUES: ("REFUND" | "PAYMENT_FAILED" | "EMAIL" | "ORDER_PLACED" | "PAYMENT_PENDING" | "PAYMENT_SUCCEEDED" | "PAYMENT_CANCELLED" | "ORDER_STATUS"
|
|
1697
|
-
declare const orderLogTypeColorMap: Record<OrderLogTypeEnum, string>;
|
|
2116
|
+
declare const ORDER_LOG_TYPE_VALUES: ("REFUND" | "PAYMENT_FAILED" | "NOTE" | "EMAIL" | "ORDER_PLACED" | "PAYMENT_PENDING" | "PAYMENT_SUCCEEDED" | "PAYMENT_CANCELLED" | "ORDER_STATUS")[];
|
|
1698
2117
|
interface IOrderLog extends BaseEntity {
|
|
1699
2118
|
order: IOrder | string;
|
|
1700
2119
|
type: OrderLogTypeEnum;
|
|
@@ -1703,6 +2122,8 @@ interface IOrderLog extends BaseEntity {
|
|
|
1703
2122
|
meta?: Metadata;
|
|
1704
2123
|
}
|
|
1705
2124
|
|
|
2125
|
+
declare const ORDER_LOG_TYPE_COLORS: Record<OrderLogTypeEnum, string>;
|
|
2126
|
+
|
|
1706
2127
|
declare const PaymentLinkStatusEnum: {
|
|
1707
2128
|
readonly PENDING: "PENDING";
|
|
1708
2129
|
readonly PAID: "PAID";
|
|
@@ -1711,7 +2132,6 @@ declare const PaymentLinkStatusEnum: {
|
|
|
1711
2132
|
};
|
|
1712
2133
|
type PaymentLinkStatusEnum = (typeof PaymentLinkStatusEnum)[keyof typeof PaymentLinkStatusEnum];
|
|
1713
2134
|
declare const PAYMENT_LINK_STATUS_VALUES: ("PENDING" | "CANCELLED" | "PAID" | "EXPIRED")[];
|
|
1714
|
-
declare const paymentLinkStatusColorMap: Record<PaymentLinkStatusEnum, string>;
|
|
1715
2135
|
interface IPaymentLink extends BaseEntity {
|
|
1716
2136
|
order: IOrder | string;
|
|
1717
2137
|
token: string;
|
|
@@ -1729,6 +2149,9 @@ interface PaymentLinkView extends IPaymentLink {
|
|
|
1729
2149
|
url: string;
|
|
1730
2150
|
}
|
|
1731
2151
|
|
|
2152
|
+
declare const PAYMENT_LINK_STATUS_LABELS: Record<PaymentLinkStatusEnum, string>;
|
|
2153
|
+
declare const paymentLinkStatusTone: (status?: string | null) => StatusToneEnum;
|
|
2154
|
+
|
|
1732
2155
|
declare const SubscriptionChannelEnum: {
|
|
1733
2156
|
readonly EMAIL: "EMAIL";
|
|
1734
2157
|
readonly SMS: "SMS";
|
|
@@ -1975,6 +2398,14 @@ declare const BRAND_FIELDS: {
|
|
|
1975
2398
|
readonly conditional: true;
|
|
1976
2399
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
1977
2400
|
};
|
|
2401
|
+
readonly featured: {
|
|
2402
|
+
readonly before: "custrecord_featured_category";
|
|
2403
|
+
readonly after: "custrecord_featured_category";
|
|
2404
|
+
readonly target: "featured";
|
|
2405
|
+
readonly policy: "always";
|
|
2406
|
+
readonly note: string;
|
|
2407
|
+
readonly caution: string;
|
|
2408
|
+
};
|
|
1978
2409
|
readonly seoTitle: {
|
|
1979
2410
|
readonly before: "pagetitle";
|
|
1980
2411
|
readonly target: "seoMetaData.title";
|
|
@@ -3051,6 +3482,14 @@ declare const brandFields: NetsuiteFieldProvider<{
|
|
|
3051
3482
|
readonly conditional: true;
|
|
3052
3483
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
3053
3484
|
};
|
|
3485
|
+
readonly featured: {
|
|
3486
|
+
readonly before: "custrecord_featured_category";
|
|
3487
|
+
readonly after: "custrecord_featured_category";
|
|
3488
|
+
readonly target: "featured";
|
|
3489
|
+
readonly policy: "always";
|
|
3490
|
+
readonly note: string;
|
|
3491
|
+
readonly caution: string;
|
|
3492
|
+
};
|
|
3054
3493
|
readonly seoTitle: {
|
|
3055
3494
|
readonly before: "pagetitle";
|
|
3056
3495
|
readonly target: "seoMetaData.title";
|
|
@@ -4342,6 +4781,14 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
|
|
|
4342
4781
|
readonly conditional: true;
|
|
4343
4782
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
4344
4783
|
};
|
|
4784
|
+
readonly featured: {
|
|
4785
|
+
readonly before: "custrecord_featured_category";
|
|
4786
|
+
readonly after: "custrecord_featured_category";
|
|
4787
|
+
readonly target: "featured";
|
|
4788
|
+
readonly policy: "always";
|
|
4789
|
+
readonly note: string;
|
|
4790
|
+
readonly caution: string;
|
|
4791
|
+
};
|
|
4345
4792
|
readonly seoTitle: {
|
|
4346
4793
|
readonly before: "pagetitle";
|
|
4347
4794
|
readonly target: "seoMetaData.title";
|
|
@@ -5682,6 +6129,14 @@ declare const BY_ENTITY: {
|
|
|
5682
6129
|
readonly conditional: true;
|
|
5683
6130
|
readonly note: "No successor. Snapshot it before SuiteCommerce is retired, then it is ours.";
|
|
5684
6131
|
};
|
|
6132
|
+
readonly featured: {
|
|
6133
|
+
readonly before: "custrecord_featured_category";
|
|
6134
|
+
readonly after: "custrecord_featured_category";
|
|
6135
|
+
readonly target: "featured";
|
|
6136
|
+
readonly policy: "always";
|
|
6137
|
+
readonly note: string;
|
|
6138
|
+
readonly caution: string;
|
|
6139
|
+
};
|
|
5685
6140
|
readonly seoTitle: {
|
|
5686
6141
|
readonly before: "pagetitle";
|
|
5687
6142
|
readonly target: "seoMetaData.title";
|
|
@@ -6513,6 +6968,14 @@ interface INetsuiteQueueEntry {
|
|
|
6513
6968
|
runsInSeconds: number | null;
|
|
6514
6969
|
runningForSeconds: number | null;
|
|
6515
6970
|
}
|
|
6971
|
+
interface INetsuiteSyncCheckpoint {
|
|
6972
|
+
_id: string;
|
|
6973
|
+
checkedAt?: Date | string | null;
|
|
6974
|
+
claimAt?: Date | string | null;
|
|
6975
|
+
}
|
|
6976
|
+
|
|
6977
|
+
declare const NETSUITE_EVENT_STATE_TONES: Record<NetsuiteEventStateEnum, StatusToneEnum>;
|
|
6978
|
+
declare const netsuiteEventStateTone: (state?: string) => StatusToneEnum;
|
|
6516
6979
|
|
|
6517
6980
|
declare const TaxRateSourceEnum: {
|
|
6518
6981
|
readonly GROUP: "group";
|
|
@@ -6533,6 +6996,14 @@ interface ITaxRate extends BaseEntity {
|
|
|
6533
6996
|
syncedAt: Date;
|
|
6534
6997
|
}
|
|
6535
6998
|
|
|
6999
|
+
declare const taxRatePercent: (rate?: number | null) => string;
|
|
7000
|
+
declare const taxLabel: (tax?: {
|
|
7001
|
+
rate?: number;
|
|
7002
|
+
state?: string;
|
|
7003
|
+
county?: string;
|
|
7004
|
+
groupName?: string;
|
|
7005
|
+
} | null) => string | null;
|
|
7006
|
+
|
|
6536
7007
|
interface TaxSyncResult {
|
|
6537
7008
|
groups: number;
|
|
6538
7009
|
rates: number;
|
|
@@ -6636,7 +7107,7 @@ interface NetsuiteReceipt {
|
|
|
6636
7107
|
}
|
|
6637
7108
|
interface NetsuiteOrderPreview {
|
|
6638
7109
|
orderId: string;
|
|
6639
|
-
recordType:
|
|
7110
|
+
recordType: NetsuiteRecordTypeEnum;
|
|
6640
7111
|
recordLabel: string;
|
|
6641
7112
|
alreadyPushed?: NetsuiteReceipt;
|
|
6642
7113
|
lastError?: {
|
|
@@ -6737,6 +7208,7 @@ interface CacheStatus {
|
|
|
6737
7208
|
interface CheckoutAddressInput {
|
|
6738
7209
|
addressLine1: string;
|
|
6739
7210
|
addressLine2?: string;
|
|
7211
|
+
attention?: string;
|
|
6740
7212
|
city: string;
|
|
6741
7213
|
zipCode: string;
|
|
6742
7214
|
firstName: string;
|
|
@@ -6860,4 +7332,4 @@ declare const sitemapPartId: (build: string, storeId: string, kind: SitemapPartK
|
|
|
6860
7332
|
declare const sitemapEntryLine: (key: string, lastmod?: Date | string | null) => string;
|
|
6861
7333
|
declare const parseSitemapEntries: (entries: string) => SitemapEntryKey[];
|
|
6862
7334
|
|
|
6863
|
-
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, 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 };
|
|
7335
|
+
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 };
|