@callimacus/thamyr-core 4.15.0 → 4.16.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/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.16.0](https://github.com/callimacus/thamyr-sdk/compare/thamyr-core-v4.15.0...thamyr-core-v4.16.0) (2026-10-31)
7
+
8
+
9
+ ### Features
10
+
11
+ * **core:** skesis related hits carry their edge direction and relation (contract synced from core v21.11.0) ([#867](https://github.com/callimacus/thamyr-sdk/issues/867)) ([b31f54a](https://github.com/callimacus/thamyr-sdk/commit/b31f54aee334eaf0c200d3f7198a51c793db09c0))
12
+
6
13
  ## [4.15.0](https://github.com/callimacus/thamyr-sdk/compare/thamyr-core-v4.14.1...thamyr-core-v4.15.0) (2026-10-29)
7
14
 
8
15
 
@@ -1555,6 +1555,14 @@ type SkesisRelatedResponse = {
1555
1555
  related: Array<{
1556
1556
  id: string;
1557
1557
  item: SkesisItem;
1558
+ /**
1559
+ * Which way the edge that surfaced the hit runs: `forward`, the anchor references the hit; `reverse`, the hit references the anchor. Under the fallback (`usedFallback`), relative to the neighbour whose edges were used.
1560
+ */
1561
+ direction: 'forward' | 'reverse';
1562
+ /**
1563
+ * The edge's relation as its source stored it, e.g. a commerce platform's recommendation type. Absent when the edge has none.
1564
+ */
1565
+ relation?: string;
1558
1566
  }>;
1559
1567
  siblingColors: Array<{
1560
1568
  id: string;
@@ -3112,7 +3120,7 @@ type WoocommerceStartCartErrors = {
3112
3120
  */
3113
3121
  403: PinaxForbidden;
3114
3122
  /**
3115
- * No WordPress site with WooCommerce is connected to this project
3123
+ * No WordPress site with WooCommerce is connected to this project, or the request comes from the site’s preview
3116
3124
  */
3117
3125
  404: PublicError;
3118
3126
  /**
@@ -3408,7 +3416,7 @@ declare class Woocommerce extends HeyApiClient {
3408
3416
  /**
3409
3417
  * Start a WooCommerce cart
3410
3418
  *
3411
- * A new, empty cart on the WooCommerce store of the WordPress site connected to the project: the site’s address, the Store API root and the cart’s first token. Every cart call after this one goes from the browser to the store with the token, and each answer carries the token to send next. Not found while no WordPress site is connected, or the site sends no cart token (no WooCommerce on it).
3419
+ * A new, empty cart on the WooCommerce store of the WordPress site connected to the project: the site’s address, the Store API root and the cart’s first token. Every cart call after this one goes from the browser to the store with the token, and each answer carries the token to send next. Not found while no WordPress site is connected, the site sends no cart token (no WooCommerce on it), or the request comes from the site’s preview, where the cart is off.
3412
3420
  */
3413
3421
  startCart<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<WoocommerceStartCartResponses, WoocommerceStartCartErrors, ThrowOnError>;
3414
3422
  }
@@ -1553,6 +1553,14 @@ type SkesisRelatedResponse = {
1553
1553
  related: Array<{
1554
1554
  id: string;
1555
1555
  item: SkesisItem;
1556
+ /**
1557
+ * Which way the edge that surfaced the hit runs: `forward`, the anchor references the hit; `reverse`, the hit references the anchor. Under the fallback (`usedFallback`), relative to the neighbour whose edges were used.
1558
+ */
1559
+ direction: 'forward' | 'reverse';
1560
+ /**
1561
+ * The edge's relation as its source stored it, e.g. a commerce platform's recommendation type. Absent when the edge has none.
1562
+ */
1563
+ relation?: string;
1556
1564
  }>;
1557
1565
  siblingColors: Array<{
1558
1566
  id: string;
@@ -3110,7 +3118,7 @@ type WoocommerceStartCartErrors = {
3110
3118
  */
3111
3119
  403: PinaxForbidden;
3112
3120
  /**
3113
- * No WordPress site with WooCommerce is connected to this project
3121
+ * No WordPress site with WooCommerce is connected to this project, or the request comes from the site’s preview
3114
3122
  */
3115
3123
  404: PublicError;
3116
3124
  /**
@@ -3406,7 +3414,7 @@ declare class Woocommerce extends HeyApiClient {
3406
3414
  /**
3407
3415
  * Start a WooCommerce cart
3408
3416
  *
3409
- * A new, empty cart on the WooCommerce store of the WordPress site connected to the project: the site’s address, the Store API root and the cart’s first token. Every cart call after this one goes from the browser to the store with the token, and each answer carries the token to send next. Not found while no WordPress site is connected, or the site sends no cart token (no WooCommerce on it).
3417
+ * A new, empty cart on the WooCommerce store of the WordPress site connected to the project: the site’s address, the Store API root and the cart’s first token. Every cart call after this one goes from the browser to the store with the token, and each answer carries the token to send next. Not found while no WordPress site is connected, the site sends no cart token (no WooCommerce on it), or the request comes from the site’s preview, where the cart is off.
3410
3418
  */
3411
3419
  startCart<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<WoocommerceStartCartResponses, WoocommerceStartCartErrors, ThrowOnError>;
3412
3420
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callimacus/thamyr-core",
3
- "version": "4.15.0",
3
+ "version": "4.16.0",
4
4
  "private": false,
5
5
  "description": "Core package for Thamyr",
6
6
  "license": "SEE LICENSE IN LICENSE.md",