@cmssy/core 19.18.0 → 19.20.0
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.cjs +5 -4
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -5
- package/dist/internal/locale.cjs +1 -1
- package/dist/internal/locale.js +1 -1
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/preflight.cjs +1 -1
- package/dist/preflight.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -225,7 +225,7 @@ function documentText(document2) {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
// src/version.ts
|
|
228
|
-
var CMSSY_CORE_VERSION = "19.
|
|
228
|
+
var CMSSY_CORE_VERSION = "19.20.0" ;
|
|
229
229
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
230
230
|
|
|
231
231
|
// src/data/http.ts
|
|
@@ -699,6 +699,7 @@ var BUYER_CATALOG_PRICES_QUERY = typedOperation(`query BuyerCatalogPrices(
|
|
|
699
699
|
) {
|
|
700
700
|
total
|
|
701
701
|
hasMore
|
|
702
|
+
currency
|
|
702
703
|
displayMode
|
|
703
704
|
taxTreatment {
|
|
704
705
|
kind
|
|
@@ -794,6 +795,7 @@ var PUBLIC_PRICES_QUERY = typedOperation(`query PublicPrices(
|
|
|
794
795
|
items: $items
|
|
795
796
|
locale: $locale
|
|
796
797
|
) {
|
|
798
|
+
currency
|
|
797
799
|
displayMode
|
|
798
800
|
priceWithheld
|
|
799
801
|
nextChangeAt
|
|
@@ -884,6 +886,7 @@ var PUBLIC_CATALOG_PRICES_QUERY = typedOperation(`query PublicCatalogPrices(
|
|
|
884
886
|
) {
|
|
885
887
|
total
|
|
886
888
|
hasMore
|
|
889
|
+
currency
|
|
887
890
|
displayMode
|
|
888
891
|
priceWithheld
|
|
889
892
|
nextChangeAt
|
|
@@ -995,8 +998,6 @@ async function getPublicCatalogPrices(config, query, options) {
|
|
|
995
998
|
);
|
|
996
999
|
return data.public.pricing.catalogPrices;
|
|
997
1000
|
}
|
|
998
|
-
|
|
999
|
-
// src/data/checkout-errors.ts
|
|
1000
1001
|
var quantityRuleReasonValues = [
|
|
1001
1002
|
"QUANTITY_BELOW_MIN",
|
|
1002
1003
|
"QUANTITY_ABOVE_MAX",
|
|
@@ -1004,7 +1005,7 @@ var quantityRuleReasonValues = [
|
|
|
1004
1005
|
];
|
|
1005
1006
|
var checkoutErrorReasonValues = [
|
|
1006
1007
|
"CART_REPRICED",
|
|
1007
|
-
|
|
1008
|
+
...types.cartCurrencyReasonValues,
|
|
1008
1009
|
"BUYER_CHANGED",
|
|
1009
1010
|
"PRODUCT_NOT_SOLD",
|
|
1010
1011
|
"TAX_TREATMENT_CHANGED",
|
package/dist/index.d.cts
CHANGED
|
@@ -102,6 +102,7 @@ interface CmssyBuyerCatalogPage {
|
|
|
102
102
|
items: CmssyBuyerCatalogPrice[];
|
|
103
103
|
total: number;
|
|
104
104
|
hasMore: boolean;
|
|
105
|
+
currency: string | null;
|
|
105
106
|
displayMode: CmssyPriceDisplayMode;
|
|
106
107
|
taxTreatment: CmssyTaxTreatment;
|
|
107
108
|
}
|
|
@@ -149,6 +150,7 @@ interface CmssyPublicPricedRecord {
|
|
|
149
150
|
}
|
|
150
151
|
interface CmssyPublicPriceResult {
|
|
151
152
|
items: CmssyPublicPricedRecord[];
|
|
153
|
+
currency: string | null;
|
|
152
154
|
displayMode: CmssyPriceDisplayMode;
|
|
153
155
|
priceWithheld: CmssyPriceWithheldReason | null;
|
|
154
156
|
nextChangeAt: string | null;
|
|
@@ -208,7 +210,7 @@ declare function getPublicCatalogPrices(config: CmssyClientConfig, query: GetPub
|
|
|
208
210
|
|
|
209
211
|
declare const quantityRuleReasonValues: readonly ["QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
|
|
210
212
|
type CmssyQuantityRuleReason = (typeof quantityRuleReasonValues)[number];
|
|
211
|
-
declare const checkoutErrorReasonValues: readonly ["CART_REPRICED", "CART_CURRENCY_CHANGED", "BUYER_CHANGED", "PRODUCT_NOT_SOLD", "TAX_TREATMENT_CHANGED", "QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
|
|
213
|
+
declare const checkoutErrorReasonValues: readonly ["CART_REPRICED", "CART_CURRENCY_CHANGED", "NO_PRICE_IN_CURRENCY", "BUYER_CHANGED", "PRODUCT_NOT_SOLD", "TAX_TREATMENT_CHANGED", "QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
|
|
212
214
|
type CmssyCheckoutErrorReason = (typeof checkoutErrorReasonValues)[number];
|
|
213
215
|
interface CmssyQuantityRuleViolation {
|
|
214
216
|
reason: CmssyQuantityRuleReason;
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ interface CmssyBuyerCatalogPage {
|
|
|
102
102
|
items: CmssyBuyerCatalogPrice[];
|
|
103
103
|
total: number;
|
|
104
104
|
hasMore: boolean;
|
|
105
|
+
currency: string | null;
|
|
105
106
|
displayMode: CmssyPriceDisplayMode;
|
|
106
107
|
taxTreatment: CmssyTaxTreatment;
|
|
107
108
|
}
|
|
@@ -149,6 +150,7 @@ interface CmssyPublicPricedRecord {
|
|
|
149
150
|
}
|
|
150
151
|
interface CmssyPublicPriceResult {
|
|
151
152
|
items: CmssyPublicPricedRecord[];
|
|
153
|
+
currency: string | null;
|
|
152
154
|
displayMode: CmssyPriceDisplayMode;
|
|
153
155
|
priceWithheld: CmssyPriceWithheldReason | null;
|
|
154
156
|
nextChangeAt: string | null;
|
|
@@ -208,7 +210,7 @@ declare function getPublicCatalogPrices(config: CmssyClientConfig, query: GetPub
|
|
|
208
210
|
|
|
209
211
|
declare const quantityRuleReasonValues: readonly ["QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
|
|
210
212
|
type CmssyQuantityRuleReason = (typeof quantityRuleReasonValues)[number];
|
|
211
|
-
declare const checkoutErrorReasonValues: readonly ["CART_REPRICED", "CART_CURRENCY_CHANGED", "BUYER_CHANGED", "PRODUCT_NOT_SOLD", "TAX_TREATMENT_CHANGED", "QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
|
|
213
|
+
declare const checkoutErrorReasonValues: readonly ["CART_REPRICED", "CART_CURRENCY_CHANGED", "NO_PRICE_IN_CURRENCY", "BUYER_CHANGED", "PRODUCT_NOT_SOLD", "TAX_TREATMENT_CHANGED", "QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
|
|
212
214
|
type CmssyCheckoutErrorReason = (typeof checkoutErrorReasonValues)[number];
|
|
213
215
|
interface CmssyQuantityRuleViolation {
|
|
214
216
|
reason: CmssyQuantityRuleReason;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { brandingFieldNames, mediaTypeValues, LAYOUT_REGIONS_MAX, LAYOUT_REGION_ID_PATTERN, LAYOUT_REGION_LABEL_MAX, evaluateFieldConditionGroup } from '@cmssy/types';
|
|
1
|
+
import { brandingFieldNames, cartCurrencyReasonValues, mediaTypeValues, LAYOUT_REGIONS_MAX, LAYOUT_REGION_ID_PATTERN, LAYOUT_REGION_LABEL_MAX, evaluateFieldConditionGroup } from '@cmssy/types';
|
|
2
2
|
export { API_TOKEN_HEADER_NAME, CLIENT_IP_HEADER_NAME, MediaType, evaluateFieldConditionGroup, mediaTypeValues, taxTreatmentKindValues } from '@cmssy/types';
|
|
3
3
|
|
|
4
4
|
// src/config.ts
|
|
@@ -224,7 +224,7 @@ function documentText(document2) {
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
// src/version.ts
|
|
227
|
-
var CMSSY_CORE_VERSION = "19.
|
|
227
|
+
var CMSSY_CORE_VERSION = "19.20.0" ;
|
|
228
228
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
229
229
|
|
|
230
230
|
// src/data/http.ts
|
|
@@ -698,6 +698,7 @@ var BUYER_CATALOG_PRICES_QUERY = typedOperation(`query BuyerCatalogPrices(
|
|
|
698
698
|
) {
|
|
699
699
|
total
|
|
700
700
|
hasMore
|
|
701
|
+
currency
|
|
701
702
|
displayMode
|
|
702
703
|
taxTreatment {
|
|
703
704
|
kind
|
|
@@ -793,6 +794,7 @@ var PUBLIC_PRICES_QUERY = typedOperation(`query PublicPrices(
|
|
|
793
794
|
items: $items
|
|
794
795
|
locale: $locale
|
|
795
796
|
) {
|
|
797
|
+
currency
|
|
796
798
|
displayMode
|
|
797
799
|
priceWithheld
|
|
798
800
|
nextChangeAt
|
|
@@ -883,6 +885,7 @@ var PUBLIC_CATALOG_PRICES_QUERY = typedOperation(`query PublicCatalogPrices(
|
|
|
883
885
|
) {
|
|
884
886
|
total
|
|
885
887
|
hasMore
|
|
888
|
+
currency
|
|
886
889
|
displayMode
|
|
887
890
|
priceWithheld
|
|
888
891
|
nextChangeAt
|
|
@@ -994,8 +997,6 @@ async function getPublicCatalogPrices(config, query, options) {
|
|
|
994
997
|
);
|
|
995
998
|
return data.public.pricing.catalogPrices;
|
|
996
999
|
}
|
|
997
|
-
|
|
998
|
-
// src/data/checkout-errors.ts
|
|
999
1000
|
var quantityRuleReasonValues = [
|
|
1000
1001
|
"QUANTITY_BELOW_MIN",
|
|
1001
1002
|
"QUANTITY_ABOVE_MAX",
|
|
@@ -1003,7 +1004,7 @@ var quantityRuleReasonValues = [
|
|
|
1003
1004
|
];
|
|
1004
1005
|
var checkoutErrorReasonValues = [
|
|
1005
1006
|
"CART_REPRICED",
|
|
1006
|
-
|
|
1007
|
+
...cartCurrencyReasonValues,
|
|
1007
1008
|
"BUYER_CHANGED",
|
|
1008
1009
|
"PRODUCT_NOT_SOLD",
|
|
1009
1010
|
"TAX_TREATMENT_CHANGED",
|
package/dist/internal/locale.cjs
CHANGED
package/dist/internal/locale.js
CHANGED
package/dist/internal.cjs
CHANGED
package/dist/internal.js
CHANGED
package/dist/preflight.cjs
CHANGED
|
@@ -152,7 +152,7 @@ function documentText(document) {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// src/version.ts
|
|
155
|
-
var CMSSY_CORE_VERSION = "19.
|
|
155
|
+
var CMSSY_CORE_VERSION = "19.20.0" ;
|
|
156
156
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
157
157
|
|
|
158
158
|
// src/content/content-client.ts
|
package/dist/preflight.js
CHANGED
|
@@ -150,7 +150,7 @@ function documentText(document) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// src/version.ts
|
|
153
|
-
var CMSSY_CORE_VERSION = "19.
|
|
153
|
+
var CMSSY_CORE_VERSION = "19.20.0" ;
|
|
154
154
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
155
155
|
|
|
156
156
|
// src/content/content-client.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmssy/core",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.20.0",
|
|
4
4
|
"description": "Framework-agnostic cmssy gateway: GraphQL client, block/field system, editor protocol. No React, no Next.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cmssy",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"vitest": "^2.1.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@cmssy/types": "0.
|
|
90
|
+
"@cmssy/types": "0.70.0",
|
|
91
91
|
"jose": "^6.2.3"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|