@pinelab/vendure-plugin-sendcloud 1.5.0 → 1.5.2

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
@@ -1,3 +1,11 @@
1
+ # 1.5.2 (2025-11-06)
2
+
3
+ - Updated official documentation URL
4
+
5
+ # 1.5.1 (2025-09-15)
6
+
7
+ - Log existing fulfillments when items are already fulfilled
8
+
1
9
  # 1.5.0 (2025-06-04)
2
10
 
3
11
  - Upgrade to Vendure to 3.3.2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Vendure SendCloud plugin
2
2
 
3
- ### [Official documentation here](https://pinelab-plugins.com/plugin/vendure-plugin-sendcloud)
3
+ ### [Official documentation here](https://plugins.pinelab.studio/plugin/vendure-plugin-sendcloud)
4
4
 
5
5
  This plugin syncs orders to the SendCloud fulfillment platform.
6
6
 
@@ -1,6 +1,7 @@
1
1
  import { FulfillmentStateTransitionError, Order, OrderService, RequestContext } from '@vendure/core';
2
2
  import { AddFulfillmentToOrderResult, ConfigurableOperationInput } from '@vendure/common/lib/generated-types';
3
3
  import { Fulfillment } from '@vendure/core/dist/entity/fulfillment/fulfillment.entity';
4
+ export declare const loggerCtx = "OrderStateUtil";
4
5
  /**
5
6
  * Create a fulfillment for all orderlines. Returns fulfillments[0] if already fulfilled
6
7
  */
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loggerCtx = void 0;
3
4
  exports.fulfillAll = fulfillAll;
4
5
  exports.transitionToShipped = transitionToShipped;
5
6
  exports.transitionToDelivered = transitionToDelivered;
6
7
  exports.throwIfTransitionFailed = throwIfTransitionFailed;
8
+ const core_1 = require("@vendure/core");
9
+ exports.loggerCtx = 'OrderStateUtil';
7
10
  /**
8
11
  * Create a fulfillment for all orderlines. Returns fulfillments[0] if already fulfilled
9
12
  */
@@ -19,7 +22,9 @@ async function fulfillAll(ctx, orderService, order, handler) {
19
22
  if (fulfillment.errorCode ===
20
23
  'ITEMS_ALREADY_FULFILLED_ERROR') {
21
24
  const fulfillments = await orderService.getOrderFulfillments(ctx, order);
22
- return fulfillments[0];
25
+ const fulfillment = fulfillments[0];
26
+ core_1.Logger.info(`Items already fulfilled for order ${order.code}. Returning fulfillment '${fulfillment.id}'. Existing fulfillments: ${fulfillments.map((f) => f.id).join(', ')}`, exports.loggerCtx);
27
+ return fulfillment;
23
28
  }
24
29
  throwIfTransitionFailed(fulfillment);
25
30
  return fulfillment;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@pinelab/vendure-plugin-sendcloud",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Vendure plugin for syncing orders with SendCloud",
5
5
  "author": "Martijn van de Brug <martijn@pinelab.studio>",
6
- "homepage": "https://pinelab-plugins.com/",
6
+ "homepage": "https://plugins.pinelab.studio/",
7
7
  "repository": "https://github.com/Pinelab-studio/pinelab-vendure-plugins",
8
8
  "license": "MIT",
9
9
  "private": false,
@@ -23,5 +23,5 @@
23
23
  "start": "yarn ts-node test/dev-server.ts",
24
24
  "lint": "echo 'No linting configured'"
25
25
  },
26
- "gitHead": "b79f04225946ec8f37653382c6acde07bee90daf"
26
+ "gitHead": "0564435781055813435b8c6a71baa2a6d27ddc08"
27
27
  }