@cmssy/core 19.21.0 → 19.22.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.21.0" ;
228
+ var CMSSY_CORE_VERSION = "19.22.0" ;
229
229
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
230
230
 
231
231
  // src/data/http.ts
@@ -747,12 +747,11 @@ async function getBuyerCatalogPrices(config, query, options) {
747
747
  "cmssy: getBuyerCatalogPrices needs the signed-in member's accessToken - an anonymous visitor reads the catalogue"
748
748
  );
749
749
  }
750
- const { currency: _currency, ...listing } = query;
751
750
  const data = await graphqlRequest(
752
751
  config,
753
752
  BUYER_CATALOG_PRICES_QUERY,
754
753
  {
755
- ...listing,
754
+ ...query,
756
755
  workspaceId: options.workspaceId,
757
756
  ...channelVariable(options.channel)
758
757
  },
@@ -980,11 +979,10 @@ async function getPublicPrices(config, items, options) {
980
979
  }
981
980
  async function getPublicCatalogPrices(config, query, options) {
982
981
  const channel = requireChannel(config, options, "getPublicCatalogPrices");
983
- const { currency: _currency, ...listing } = query;
984
982
  const data = await graphqlRequest(
985
983
  config,
986
984
  PUBLIC_CATALOG_PRICES_QUERY,
987
- { ...listing, workspaceId: options.workspaceId, channel },
985
+ { ...query, workspaceId: options.workspaceId, channel },
988
986
  {
989
987
  public: true,
990
988
  fetch: options.fetch,
package/dist/index.d.cts CHANGED
@@ -126,9 +126,7 @@ interface BuyerCatalogPricesResult {
126
126
  };
127
127
  }
128
128
  declare const BUYER_CATALOG_PRICES_QUERY: CmssyOperation<BuyerCatalogPricesResult, BuyerCatalogPricesVariables>;
129
- type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel"> & {
130
- currency?: string | null;
131
- };
129
+ type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel">;
132
130
  declare function getBuyerCatalogPrices(config: CmssyClientConfig, query: GetBuyerCatalogPricesQuery, options: GetBuyerPricesOptions): Promise<CmssyBuyerCatalogPage>;
133
131
 
134
132
  declare const CMSSY_PUBLIC_PRICES_MAX_ITEMS = 50;
@@ -205,9 +203,7 @@ interface GetPublicPricesOptions {
205
203
  retry?: RetryOption;
206
204
  }
207
205
  declare function getPublicPrices(config: CmssyClientConfig, items: readonly CmssyPriceQueryItem[], options: GetPublicPricesOptions): Promise<CmssyPublicPriceResult>;
208
- type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel"> & {
209
- currency?: string | null;
210
- };
206
+ type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel">;
211
207
  declare function getPublicCatalogPrices(config: CmssyClientConfig, query: GetPublicCatalogPricesQuery, options: Omit<GetPublicPricesOptions, "locale">): Promise<CmssyPublicCatalogPage>;
212
208
 
213
209
  declare const quantityRuleReasonValues: readonly ["QUANTITY_BELOW_MIN", "QUANTITY_ABOVE_MAX", "QUANTITY_NOT_ON_STEP"];
package/dist/index.d.ts CHANGED
@@ -126,9 +126,7 @@ interface BuyerCatalogPricesResult {
126
126
  };
127
127
  }
128
128
  declare const BUYER_CATALOG_PRICES_QUERY: CmssyOperation<BuyerCatalogPricesResult, BuyerCatalogPricesVariables>;
129
- type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel"> & {
130
- currency?: string | null;
131
- };
129
+ type GetBuyerCatalogPricesQuery = Omit<BuyerCatalogPricesVariables, "workspaceId" | "channel">;
132
130
  declare function getBuyerCatalogPrices(config: CmssyClientConfig, query: GetBuyerCatalogPricesQuery, options: GetBuyerPricesOptions): Promise<CmssyBuyerCatalogPage>;
133
131
 
134
132
  declare const CMSSY_PUBLIC_PRICES_MAX_ITEMS = 50;
@@ -205,9 +203,7 @@ interface GetPublicPricesOptions {
205
203
  retry?: RetryOption;
206
204
  }
207
205
  declare function getPublicPrices(config: CmssyClientConfig, items: readonly CmssyPriceQueryItem[], options: GetPublicPricesOptions): Promise<CmssyPublicPriceResult>;
208
- type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel"> & {
209
- currency?: string | null;
210
- };
206
+ type GetPublicCatalogPricesQuery = Omit<PublicCatalogPricesVariables, "workspaceId" | "channel">;
211
207
  declare function getPublicCatalogPrices(config: CmssyClientConfig, query: GetPublicCatalogPricesQuery, options: Omit<GetPublicPricesOptions, "locale">): Promise<CmssyPublicCatalogPage>;
212
208
 
213
209
  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.21.0" ;
227
+ var CMSSY_CORE_VERSION = "19.22.0" ;
228
228
  var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
229
229
 
230
230
  // src/data/http.ts
@@ -746,12 +746,11 @@ async function getBuyerCatalogPrices(config, query, options) {
746
746
  "cmssy: getBuyerCatalogPrices needs the signed-in member's accessToken - an anonymous visitor reads the catalogue"
747
747
  );
748
748
  }
749
- const { currency: _currency, ...listing } = query;
750
749
  const data = await graphqlRequest(
751
750
  config,
752
751
  BUYER_CATALOG_PRICES_QUERY,
753
752
  {
754
- ...listing,
753
+ ...query,
755
754
  workspaceId: options.workspaceId,
756
755
  ...channelVariable(options.channel)
757
756
  },
@@ -979,11 +978,10 @@ async function getPublicPrices(config, items, options) {
979
978
  }
980
979
  async function getPublicCatalogPrices(config, query, options) {
981
980
  const channel = requireChannel(config, options, "getPublicCatalogPrices");
982
- const { currency: _currency, ...listing } = query;
983
981
  const data = await graphqlRequest(
984
982
  config,
985
983
  PUBLIC_CATALOG_PRICES_QUERY,
986
- { ...listing, workspaceId: options.workspaceId, channel },
984
+ { ...query, workspaceId: options.workspaceId, channel },
987
985
  {
988
986
  public: true,
989
987
  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.21.0" ;
157
+ var CMSSY_CORE_VERSION = "19.22.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.21.0" ;
155
+ var CMSSY_CORE_VERSION = "19.22.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.21.0" ;
157
+ var CMSSY_CORE_VERSION = "19.22.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.21.0" ;
155
+ var CMSSY_CORE_VERSION = "19.22.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.21.0" ;
155
+ var CMSSY_CORE_VERSION = "19.22.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.21.0" ;
153
+ var CMSSY_CORE_VERSION = "19.22.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.21.0",
3
+ "version": "19.22.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",