@fas-core/shared-types 1.0.149 → 1.0.151
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 +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -531,6 +531,7 @@ interface ICategory extends BaseEntity {
|
|
|
531
531
|
netsuiteId: string;
|
|
532
532
|
metaData: Metadata;
|
|
533
533
|
seoMetaData: ISEOMetaData;
|
|
534
|
+
redirectTo?: string;
|
|
534
535
|
}
|
|
535
536
|
|
|
536
537
|
declare const StockStatusEnum: {
|
|
@@ -2645,6 +2646,12 @@ declare const CATEGORY_FIELDS: {
|
|
|
2645
2646
|
readonly policy: "always";
|
|
2646
2647
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
2647
2648
|
};
|
|
2649
|
+
readonly redirectTo: {
|
|
2650
|
+
readonly before: "addtohead";
|
|
2651
|
+
readonly target: "redirectTo";
|
|
2652
|
+
readonly policy: "always";
|
|
2653
|
+
readonly note: string;
|
|
2654
|
+
};
|
|
2648
2655
|
readonly banners: {
|
|
2649
2656
|
readonly before: "pagebanner";
|
|
2650
2657
|
readonly target: "banners";
|
|
@@ -3718,6 +3725,12 @@ declare const categoryFields: NetsuiteFieldProvider<{
|
|
|
3718
3725
|
readonly policy: "always";
|
|
3719
3726
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
3720
3727
|
};
|
|
3728
|
+
readonly redirectTo: {
|
|
3729
|
+
readonly before: "addtohead";
|
|
3730
|
+
readonly target: "redirectTo";
|
|
3731
|
+
readonly policy: "always";
|
|
3732
|
+
readonly note: string;
|
|
3733
|
+
};
|
|
3721
3734
|
readonly banners: {
|
|
3722
3735
|
readonly before: "pagebanner";
|
|
3723
3736
|
readonly target: "banners";
|
|
@@ -5006,6 +5019,12 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
|
|
|
5006
5019
|
readonly policy: "always";
|
|
5007
5020
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
5008
5021
|
};
|
|
5022
|
+
readonly redirectTo: {
|
|
5023
|
+
readonly before: "addtohead";
|
|
5024
|
+
readonly target: "redirectTo";
|
|
5025
|
+
readonly policy: "always";
|
|
5026
|
+
readonly note: string;
|
|
5027
|
+
};
|
|
5009
5028
|
readonly banners: {
|
|
5010
5029
|
readonly before: "pagebanner";
|
|
5011
5030
|
readonly target: "banners";
|
|
@@ -6345,6 +6364,12 @@ declare const BY_ENTITY: {
|
|
|
6345
6364
|
readonly policy: "always";
|
|
6346
6365
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
6347
6366
|
};
|
|
6367
|
+
readonly redirectTo: {
|
|
6368
|
+
readonly before: "addtohead";
|
|
6369
|
+
readonly target: "redirectTo";
|
|
6370
|
+
readonly policy: "always";
|
|
6371
|
+
readonly note: string;
|
|
6372
|
+
};
|
|
6348
6373
|
readonly banners: {
|
|
6349
6374
|
readonly before: "pagebanner";
|
|
6350
6375
|
readonly target: "banners";
|
package/dist/index.d.ts
CHANGED
|
@@ -531,6 +531,7 @@ interface ICategory extends BaseEntity {
|
|
|
531
531
|
netsuiteId: string;
|
|
532
532
|
metaData: Metadata;
|
|
533
533
|
seoMetaData: ISEOMetaData;
|
|
534
|
+
redirectTo?: string;
|
|
534
535
|
}
|
|
535
536
|
|
|
536
537
|
declare const StockStatusEnum: {
|
|
@@ -2645,6 +2646,12 @@ declare const CATEGORY_FIELDS: {
|
|
|
2645
2646
|
readonly policy: "always";
|
|
2646
2647
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
2647
2648
|
};
|
|
2649
|
+
readonly redirectTo: {
|
|
2650
|
+
readonly before: "addtohead";
|
|
2651
|
+
readonly target: "redirectTo";
|
|
2652
|
+
readonly policy: "always";
|
|
2653
|
+
readonly note: string;
|
|
2654
|
+
};
|
|
2648
2655
|
readonly banners: {
|
|
2649
2656
|
readonly before: "pagebanner";
|
|
2650
2657
|
readonly target: "banners";
|
|
@@ -3718,6 +3725,12 @@ declare const categoryFields: NetsuiteFieldProvider<{
|
|
|
3718
3725
|
readonly policy: "always";
|
|
3719
3726
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
3720
3727
|
};
|
|
3728
|
+
readonly redirectTo: {
|
|
3729
|
+
readonly before: "addtohead";
|
|
3730
|
+
readonly target: "redirectTo";
|
|
3731
|
+
readonly policy: "always";
|
|
3732
|
+
readonly note: string;
|
|
3733
|
+
};
|
|
3721
3734
|
readonly banners: {
|
|
3722
3735
|
readonly before: "pagebanner";
|
|
3723
3736
|
readonly target: "banners";
|
|
@@ -5006,6 +5019,12 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
|
|
|
5006
5019
|
readonly policy: "always";
|
|
5007
5020
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
5008
5021
|
};
|
|
5022
|
+
readonly redirectTo: {
|
|
5023
|
+
readonly before: "addtohead";
|
|
5024
|
+
readonly target: "redirectTo";
|
|
5025
|
+
readonly policy: "always";
|
|
5026
|
+
readonly note: string;
|
|
5027
|
+
};
|
|
5009
5028
|
readonly banners: {
|
|
5010
5029
|
readonly before: "pagebanner";
|
|
5011
5030
|
readonly target: "banners";
|
|
@@ -6345,6 +6364,12 @@ declare const BY_ENTITY: {
|
|
|
6345
6364
|
readonly policy: "always";
|
|
6346
6365
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
6347
6366
|
};
|
|
6367
|
+
readonly redirectTo: {
|
|
6368
|
+
readonly before: "addtohead";
|
|
6369
|
+
readonly target: "redirectTo";
|
|
6370
|
+
readonly policy: "always";
|
|
6371
|
+
readonly note: string;
|
|
6372
|
+
};
|
|
6348
6373
|
readonly banners: {
|
|
6349
6374
|
readonly before: "pagebanner";
|
|
6350
6375
|
readonly target: "banners";
|
package/dist/index.js
CHANGED
|
@@ -1479,6 +1479,12 @@ var CATEGORY_FIELDS = {
|
|
|
1479
1479
|
policy: "always",
|
|
1480
1480
|
note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute."
|
|
1481
1481
|
},
|
|
1482
|
+
redirectTo: {
|
|
1483
|
+
before: "addtohead",
|
|
1484
|
+
target: "redirectTo",
|
|
1485
|
+
policy: "always",
|
|
1486
|
+
note: "Only a location.replace('/path') in the head markup is read, and only its path \u2014 the script is never run. The category page answers a temporary redirect (307) to it, so merchandisers send a category to its series (NII) page as they did in SiteBuilder. Clearing it in NetSuite clears the redirect on the next sync."
|
|
1487
|
+
},
|
|
1482
1488
|
banners: {
|
|
1483
1489
|
before: "pagebanner",
|
|
1484
1490
|
target: "banners",
|
|
@@ -3524,7 +3530,7 @@ var TAX_RATE_SOURCE_VALUES = Object.values(TaxRateSourceEnum);
|
|
|
3524
3530
|
|
|
3525
3531
|
// src/taxRate/label.ts
|
|
3526
3532
|
var taxRatePercent = (rate) => `${(Number(rate ?? 0) * 100).toFixed(3).replace(/\.?0+$/, "")}%`;
|
|
3527
|
-
var titleCase = (value) => value.toLowerCase().replace(/\b[a-z]/g, (letter) => letter.toUpperCase());
|
|
3533
|
+
var titleCase = (value) => value.replace(/_+/g, " ").trim().toLowerCase().replace(/\b[a-z]/g, (letter) => letter.toUpperCase());
|
|
3528
3534
|
var taxLabel = (tax) => {
|
|
3529
3535
|
if (!tax || typeof tax.rate !== "number" || tax.rate <= 0) return null;
|
|
3530
3536
|
const place = [tax.county ? `${titleCase(tax.county)} County` : null, tax.state].filter(Boolean).join(", ") || tax.groupName || "";
|