@fas-core/shared-types 1.0.148 → 1.0.150
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 +26 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- 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: {
|
|
@@ -806,6 +807,7 @@ declare const CartIssueTypes: {
|
|
|
806
807
|
readonly OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
807
808
|
readonly INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK";
|
|
808
809
|
readonly BELOW_MINIMUM_QUANTITY: "BELOW_MINIMUM_QUANTITY";
|
|
810
|
+
readonly BELOW_MINIMUM_ORDER: "BELOW_MINIMUM_ORDER";
|
|
809
811
|
readonly COUPON_INVALID: "COUPON_INVALID";
|
|
810
812
|
};
|
|
811
813
|
type CartIssueType = (typeof CartIssueTypes)[keyof typeof CartIssueTypes];
|
|
@@ -2644,6 +2646,12 @@ declare const CATEGORY_FIELDS: {
|
|
|
2644
2646
|
readonly policy: "always";
|
|
2645
2647
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
2646
2648
|
};
|
|
2649
|
+
readonly redirectTo: {
|
|
2650
|
+
readonly before: "addtohead";
|
|
2651
|
+
readonly target: "redirectTo";
|
|
2652
|
+
readonly policy: "always";
|
|
2653
|
+
readonly note: string;
|
|
2654
|
+
};
|
|
2647
2655
|
readonly banners: {
|
|
2648
2656
|
readonly before: "pagebanner";
|
|
2649
2657
|
readonly target: "banners";
|
|
@@ -3717,6 +3725,12 @@ declare const categoryFields: NetsuiteFieldProvider<{
|
|
|
3717
3725
|
readonly policy: "always";
|
|
3718
3726
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
3719
3727
|
};
|
|
3728
|
+
readonly redirectTo: {
|
|
3729
|
+
readonly before: "addtohead";
|
|
3730
|
+
readonly target: "redirectTo";
|
|
3731
|
+
readonly policy: "always";
|
|
3732
|
+
readonly note: string;
|
|
3733
|
+
};
|
|
3720
3734
|
readonly banners: {
|
|
3721
3735
|
readonly before: "pagebanner";
|
|
3722
3736
|
readonly target: "banners";
|
|
@@ -5005,6 +5019,12 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
|
|
|
5005
5019
|
readonly policy: "always";
|
|
5006
5020
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
5007
5021
|
};
|
|
5022
|
+
readonly redirectTo: {
|
|
5023
|
+
readonly before: "addtohead";
|
|
5024
|
+
readonly target: "redirectTo";
|
|
5025
|
+
readonly policy: "always";
|
|
5026
|
+
readonly note: string;
|
|
5027
|
+
};
|
|
5008
5028
|
readonly banners: {
|
|
5009
5029
|
readonly before: "pagebanner";
|
|
5010
5030
|
readonly target: "banners";
|
|
@@ -6344,6 +6364,12 @@ declare const BY_ENTITY: {
|
|
|
6344
6364
|
readonly policy: "always";
|
|
6345
6365
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
6346
6366
|
};
|
|
6367
|
+
readonly redirectTo: {
|
|
6368
|
+
readonly before: "addtohead";
|
|
6369
|
+
readonly target: "redirectTo";
|
|
6370
|
+
readonly policy: "always";
|
|
6371
|
+
readonly note: string;
|
|
6372
|
+
};
|
|
6347
6373
|
readonly banners: {
|
|
6348
6374
|
readonly before: "pagebanner";
|
|
6349
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: {
|
|
@@ -806,6 +807,7 @@ declare const CartIssueTypes: {
|
|
|
806
807
|
readonly OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
807
808
|
readonly INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK";
|
|
808
809
|
readonly BELOW_MINIMUM_QUANTITY: "BELOW_MINIMUM_QUANTITY";
|
|
810
|
+
readonly BELOW_MINIMUM_ORDER: "BELOW_MINIMUM_ORDER";
|
|
809
811
|
readonly COUPON_INVALID: "COUPON_INVALID";
|
|
810
812
|
};
|
|
811
813
|
type CartIssueType = (typeof CartIssueTypes)[keyof typeof CartIssueTypes];
|
|
@@ -2644,6 +2646,12 @@ declare const CATEGORY_FIELDS: {
|
|
|
2644
2646
|
readonly policy: "always";
|
|
2645
2647
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
2646
2648
|
};
|
|
2649
|
+
readonly redirectTo: {
|
|
2650
|
+
readonly before: "addtohead";
|
|
2651
|
+
readonly target: "redirectTo";
|
|
2652
|
+
readonly policy: "always";
|
|
2653
|
+
readonly note: string;
|
|
2654
|
+
};
|
|
2647
2655
|
readonly banners: {
|
|
2648
2656
|
readonly before: "pagebanner";
|
|
2649
2657
|
readonly target: "banners";
|
|
@@ -3717,6 +3725,12 @@ declare const categoryFields: NetsuiteFieldProvider<{
|
|
|
3717
3725
|
readonly policy: "always";
|
|
3718
3726
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
3719
3727
|
};
|
|
3728
|
+
readonly redirectTo: {
|
|
3729
|
+
readonly before: "addtohead";
|
|
3730
|
+
readonly target: "redirectTo";
|
|
3731
|
+
readonly policy: "always";
|
|
3732
|
+
readonly note: string;
|
|
3733
|
+
};
|
|
3720
3734
|
readonly banners: {
|
|
3721
3735
|
readonly before: "pagebanner";
|
|
3722
3736
|
readonly target: "banners";
|
|
@@ -5005,6 +5019,12 @@ declare const PROVIDERS: readonly [NetsuiteFieldProvider<{
|
|
|
5005
5019
|
readonly policy: "always";
|
|
5006
5020
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
5007
5021
|
};
|
|
5022
|
+
readonly redirectTo: {
|
|
5023
|
+
readonly before: "addtohead";
|
|
5024
|
+
readonly target: "redirectTo";
|
|
5025
|
+
readonly policy: "always";
|
|
5026
|
+
readonly note: string;
|
|
5027
|
+
};
|
|
5008
5028
|
readonly banners: {
|
|
5009
5029
|
readonly before: "pagebanner";
|
|
5010
5030
|
readonly target: "banners";
|
|
@@ -6344,6 +6364,12 @@ declare const BY_ENTITY: {
|
|
|
6344
6364
|
readonly policy: "always";
|
|
6345
6365
|
readonly note: "The H1, on 4,789 categories. addtohead is head markup and is not a substitute.";
|
|
6346
6366
|
};
|
|
6367
|
+
readonly redirectTo: {
|
|
6368
|
+
readonly before: "addtohead";
|
|
6369
|
+
readonly target: "redirectTo";
|
|
6370
|
+
readonly policy: "always";
|
|
6371
|
+
readonly note: string;
|
|
6372
|
+
};
|
|
6347
6373
|
readonly banners: {
|
|
6348
6374
|
readonly before: "pagebanner";
|
|
6349
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",
|
|
@@ -3417,6 +3423,7 @@ var CartIssueTypes = {
|
|
|
3417
3423
|
OUT_OF_STOCK: "OUT_OF_STOCK",
|
|
3418
3424
|
INSUFFICIENT_STOCK: "INSUFFICIENT_STOCK",
|
|
3419
3425
|
BELOW_MINIMUM_QUANTITY: "BELOW_MINIMUM_QUANTITY",
|
|
3426
|
+
BELOW_MINIMUM_ORDER: "BELOW_MINIMUM_ORDER",
|
|
3420
3427
|
COUPON_INVALID: "COUPON_INVALID"
|
|
3421
3428
|
};
|
|
3422
3429
|
var SAVED_CART_TTL_DAYS = 30;
|