@cmssy/core 19.20.0 → 19.21.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 CHANGED
@@ -225,7 +225,7 @@ function documentText(document2) {
225
225
  }
226
226
 
227
227
  // src/version.ts
228
- var CMSSY_CORE_VERSION = "19.20.0" ;
228
+ var CMSSY_CORE_VERSION = "19.21.0" ;
229
229
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
230
230
 
231
231
  // src/data/http.ts
@@ -673,7 +673,6 @@ var BUYER_CATALOG_PRICES_QUERY = typedOperation(`query BuyerCatalogPrices(
673
673
  $stockState: String
674
674
  $sku: String
675
675
  $locale: String
676
- $currency: String
677
676
  $priceMin: Int
678
677
  $priceMax: Int
679
678
  $sort: BuyerCatalogSort
@@ -689,7 +688,6 @@ var BUYER_CATALOG_PRICES_QUERY = typedOperation(`query BuyerCatalogPrices(
689
688
  stockState: $stockState
690
689
  sku: $sku
691
690
  locale: $locale
692
- currency: $currency
693
691
  priceMin: $priceMin
694
692
  priceMax: $priceMax
695
693
  sort: $sort
@@ -749,11 +747,12 @@ async function getBuyerCatalogPrices(config, query, options) {
749
747
  "cmssy: getBuyerCatalogPrices needs the signed-in member's accessToken - an anonymous visitor reads the catalogue"
750
748
  );
751
749
  }
750
+ const { currency: _currency, ...listing } = query;
752
751
  const data = await graphqlRequest(
753
752
  config,
754
753
  BUYER_CATALOG_PRICES_QUERY,
755
754
  {
756
- ...query,
755
+ ...listing,
757
756
  workspaceId: options.workspaceId,
758
757
  ...channelVariable(options.channel)
759
758
  },
@@ -860,7 +859,6 @@ var PUBLIC_CATALOG_PRICES_QUERY = typedOperation(`query PublicCatalogPrices(
860
859
  $stockState: String
861
860
  $sku: String
862
861
  $locale: String
863
- $currency: String
864
862
  $priceMin: Int
865
863
  $priceMax: Int
866
864
  $sort: BuyerCatalogSort
@@ -877,7 +875,6 @@ var PUBLIC_CATALOG_PRICES_QUERY = typedOperation(`query PublicCatalogPrices(
877
875
  stockState: $stockState
878
876
  sku: $sku
879
877
  locale: $locale
880
- currency: $currency
881
878
  priceMin: $priceMin
882
879
  priceMax: $priceMax
883
880
  sort: $sort
@@ -983,10 +980,11 @@ async function getPublicPrices(config, items, options) {
983
980
  }
984
981
  async function getPublicCatalogPrices(config, query, options) {
985
982
  const channel = requireChannel(config, options, "getPublicCatalogPrices");
983
+ const { currency: _currency, ...listing } = query;
986
984
  const data = await graphqlRequest(
987
985
  config,
988
986
  PUBLIC_CATALOG_PRICES_QUERY,
989
- { ...query, workspaceId: options.workspaceId, channel },
987
+ { ...listing, workspaceId: options.workspaceId, channel },
990
988
  {
991
989
  public: true,
992
990
  fetch: options.fetch,
package/dist/index.d.cts CHANGED
@@ -113,7 +113,6 @@ interface BuyerCatalogPricesVariables {
113
113
  stockState?: string | null;
114
114
  sku?: string | null;
115
115
  locale?: string | null;
116
- currency?: string | null;
117
116
  priceMin?: number | null;
118
117
  priceMax?: number | null;
119
118
  sort?: CmssyBuyerCatalogSort | null;
@@ -127,7 +126,9 @@ interface BuyerCatalogPricesResult {
127
126
  };
128
127
  }
129
128
  declare const BUYER_CATALOG_PRICES_QUERY: CmssyOperation<BuyerCatalogPricesResult, BuyerCatalogPricesVariables>;
130
- type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel">;
129
+ type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel"> & {
130
+ currency?: string | null;
131
+ };
131
132
  declare function getBuyerCatalogPrices(config: CmssyClientConfig, query: GetBuyerCatalogPricesQuery, options: GetBuyerPricesOptions): Promise<CmssyBuyerCatalogPage>;
132
133
 
133
134
  declare const CMSSY_PUBLIC_PRICES_MAX_ITEMS = 50;
@@ -181,7 +182,6 @@ interface PublicCatalogPricesVariables {
181
182
  stockState?: string | null;
182
183
  sku?: string | null;
183
184
  locale?: string | null;
184
- currency?: string | null;
185
185
  priceMin?: number | null;
186
186
  priceMax?: number | null;
187
187
  sort?: CmssyBuyerCatalogSort | null;
@@ -205,7 +205,9 @@ interface GetPublicPricesOptions {
205
205
  retry?: RetryOption;
206
206
  }
207
207
  declare function getPublicPrices(config: CmssyClientConfig, items: readonly CmssyPriceQueryItem[], options: GetPublicPricesOptions): Promise<CmssyPublicPriceResult>;
208
- type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel">;
208
+ type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel"> & {
209
+ currency?: string | null;
210
+ };
209
211
  declare function getPublicCatalogPrices(config: CmssyClientConfig, query: GetPublicCatalogPricesQuery, options: Omit<GetPublicPricesOptions, "locale">): Promise<CmssyPublicCatalogPage>;
210
212
 
211
213
  declare const quantityRuleReasonValues: readonly ["QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
package/dist/index.d.ts CHANGED
@@ -113,7 +113,6 @@ interface BuyerCatalogPricesVariables {
113
113
  stockState?: string | null;
114
114
  sku?: string | null;
115
115
  locale?: string | null;
116
- currency?: string | null;
117
116
  priceMin?: number | null;
118
117
  priceMax?: number | null;
119
118
  sort?: CmssyBuyerCatalogSort | null;
@@ -127,7 +126,9 @@ interface BuyerCatalogPricesResult {
127
126
  };
128
127
  }
129
128
  declare const BUYER_CATALOG_PRICES_QUERY: CmssyOperation<BuyerCatalogPricesResult, BuyerCatalogPricesVariables>;
130
- type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel">;
129
+ type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel"> & {
130
+ currency?: string | null;
131
+ };
131
132
  declare function getBuyerCatalogPrices(config: CmssyClientConfig, query: GetBuyerCatalogPricesQuery, options: GetBuyerPricesOptions): Promise<CmssyBuyerCatalogPage>;
132
133
 
133
134
  declare const CMSSY_PUBLIC_PRICES_MAX_ITEMS = 50;
@@ -181,7 +182,6 @@ interface PublicCatalogPricesVariables {
181
182
  stockState?: string | null;
182
183
  sku?: string | null;
183
184
  locale?: string | null;
184
- currency?: string | null;
185
185
  priceMin?: number | null;
186
186
  priceMax?: number | null;
187
187
  sort?: CmssyBuyerCatalogSort | null;
@@ -205,7 +205,9 @@ interface GetPublicPricesOptions {
205
205
  retry?: RetryOption;
206
206
  }
207
207
  declare function getPublicPrices(config: CmssyClientConfig, items: readonly CmssyPriceQueryItem[], options: GetPublicPricesOptions): Promise<CmssyPublicPriceResult>;
208
- type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel">;
208
+ type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel"> & {
209
+ currency?: string | null;
210
+ };
209
211
  declare function getPublicCatalogPrices(config: CmssyClientConfig, query: GetPublicCatalogPricesQuery, options: Omit<GetPublicPricesOptions, "locale">): Promise<CmssyPublicCatalogPage>;
210
212
 
211
213
  declare const quantityRuleReasonValues: readonly ["QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
package/dist/index.js CHANGED
@@ -224,7 +224,7 @@ function documentText(document2) {
224
224
  }
225
225
 
226
226
  // src/version.ts
227
- var CMSSY_CORE_VERSION = "19.20.0" ;
227
+ var CMSSY_CORE_VERSION = "19.21.0" ;
228
228
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
229
229
 
230
230
  // src/data/http.ts
@@ -672,7 +672,6 @@ var BUYER_CATALOG_PRICES_QUERY = typedOperation(`query BuyerCatalogPrices(
672
672
  $stockState: String
673
673
  $sku: String
674
674
  $locale: String
675
- $currency: String
676
675
  $priceMin: Int
677
676
  $priceMax: Int
678
677
  $sort: BuyerCatalogSort
@@ -688,7 +687,6 @@ var BUYER_CATALOG_PRICES_QUERY = typedOperation(`query BuyerCatalogPrices(
688
687
  stockState: $stockState
689
688
  sku: $sku
690
689
  locale: $locale
691
- currency: $currency
692
690
  priceMin: $priceMin
693
691
  priceMax: $priceMax
694
692
  sort: $sort
@@ -748,11 +746,12 @@ async function getBuyerCatalogPrices(config, query, options) {
748
746
  "cmssy: getBuyerCatalogPrices needs the signed-in member's accessToken - an anonymous visitor reads the catalogue"
749
747
  );
750
748
  }
749
+ const { currency: _currency, ...listing } = query;
751
750
  const data = await graphqlRequest(
752
751
  config,
753
752
  BUYER_CATALOG_PRICES_QUERY,
754
753
  {
755
- ...query,
754
+ ...listing,
756
755
  workspaceId: options.workspaceId,
757
756
  ...channelVariable(options.channel)
758
757
  },
@@ -859,7 +858,6 @@ var PUBLIC_CATALOG_PRICES_QUERY = typedOperation(`query PublicCatalogPrices(
859
858
  $stockState: String
860
859
  $sku: String
861
860
  $locale: String
862
- $currency: String
863
861
  $priceMin: Int
864
862
  $priceMax: Int
865
863
  $sort: BuyerCatalogSort
@@ -876,7 +874,6 @@ var PUBLIC_CATALOG_PRICES_QUERY = typedOperation(`query PublicCatalogPrices(
876
874
  stockState: $stockState
877
875
  sku: $sku
878
876
  locale: $locale
879
- currency: $currency
880
877
  priceMin: $priceMin
881
878
  priceMax: $priceMax
882
879
  sort: $sort
@@ -982,10 +979,11 @@ async function getPublicPrices(config, items, options) {
982
979
  }
983
980
  async function getPublicCatalogPrices(config, query, options) {
984
981
  const channel = requireChannel(config, options, "getPublicCatalogPrices");
982
+ const { currency: _currency, ...listing } = query;
985
983
  const data = await graphqlRequest(
986
984
  config,
987
985
  PUBLIC_CATALOG_PRICES_QUERY,
988
- { ...query, workspaceId: options.workspaceId, channel },
986
+ { ...listing, workspaceId: options.workspaceId, channel },
989
987
  {
990
988
  public: true,
991
989
  fetch: options.fetch,
@@ -154,7 +154,7 @@ function documentText(document) {
154
154
  }
155
155
 
156
156
  // src/version.ts
157
- var CMSSY_CORE_VERSION = "19.20.0" ;
157
+ var CMSSY_CORE_VERSION = "19.21.0" ;
158
158
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
159
159
 
160
160
  // src/data/http.ts
@@ -152,7 +152,7 @@ function documentText(document) {
152
152
  }
153
153
 
154
154
  // src/version.ts
155
- var CMSSY_CORE_VERSION = "19.20.0" ;
155
+ var CMSSY_CORE_VERSION = "19.21.0" ;
156
156
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
157
157
 
158
158
  // src/data/http.ts
package/dist/internal.cjs CHANGED
@@ -154,7 +154,7 @@ function documentText(document2) {
154
154
  }
155
155
 
156
156
  // src/version.ts
157
- var CMSSY_CORE_VERSION = "19.20.0" ;
157
+ var CMSSY_CORE_VERSION = "19.21.0" ;
158
158
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
159
159
 
160
160
  // src/data/http.ts
package/dist/internal.js CHANGED
@@ -152,7 +152,7 @@ function documentText(document2) {
152
152
  }
153
153
 
154
154
  // src/version.ts
155
- var CMSSY_CORE_VERSION = "19.20.0" ;
155
+ var CMSSY_CORE_VERSION = "19.21.0" ;
156
156
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
157
157
 
158
158
  // src/data/http.ts
@@ -152,7 +152,7 @@ function documentText(document) {
152
152
  }
153
153
 
154
154
  // src/version.ts
155
- var CMSSY_CORE_VERSION = "19.20.0" ;
155
+ var CMSSY_CORE_VERSION = "19.21.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.20.0" ;
153
+ var CMSSY_CORE_VERSION = "19.21.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.20.0",
3
+ "version": "19.21.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.70.0",
90
+ "@cmssy/types": "0.71.0",
91
91
  "jose": "^6.2.3"
92
92
  },
93
93
  "scripts": {