@pinelab/vendure-plugin-qls-fulfillment 1.3.0 → 1.4.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
@@ -1,3 +1,8 @@
1
+ # 1.4.0 (2026-02-11)
2
+
3
+ - Allow `qlsProductIdUiTab` to be `null` to show QLS Product ID on the default Admin UI tab.
4
+ - Map QLS order status: `sent` → Delivered, `partically_sent` → PartiallyDelivered.
5
+
1
6
  # 1.3.0 (2026-02-05)
2
7
 
3
8
  - Upgraded to Vendure 3.5.3
@@ -9,5 +9,5 @@ declare module '@vendure/core' {
9
9
  }
10
10
  }
11
11
  /** Returns variant custom fields with the given Admin UI tab name. */
12
- export declare function getVariantCustomFields(uiTab: string): CustomFieldConfig[];
12
+ export declare function getVariantCustomFields(uiTab?: string | null): CustomFieldConfig[];
13
13
  export declare const orderCustomFields: CustomFieldConfig[];
@@ -55,7 +55,7 @@ exports.QlsPlugin = QlsPlugin = QlsPlugin_1 = __decorate([
55
55
  configuration: (config) => {
56
56
  config.authOptions.customPermissions.push(permissions_1.qlsFullSyncPermission);
57
57
  config.authOptions.customPermissions.push(permissions_1.qlsPushOrderPermission);
58
- config.customFields.ProductVariant.push(...(0, custom_fields_1.getVariantCustomFields)(QlsPlugin.options?.qlsProductIdUiTab ?? 'QLS'));
58
+ config.customFields.ProductVariant.push(...(0, custom_fields_1.getVariantCustomFields)(QlsPlugin.options?.qlsProductIdUiTab));
59
59
  config.customFields.Order.push(...custom_fields_1.orderCustomFields);
60
60
  return config;
61
61
  },
@@ -275,14 +275,11 @@ let QlsOrderService = class QlsOrderService {
275
275
  if (body.cancelled) {
276
276
  return 'Cancelled';
277
277
  }
278
- if (body.amount_delivered === body.amount_total) {
278
+ if (body.status === 'sent') {
279
279
  return 'Delivered';
280
280
  }
281
- switch (body.status) {
282
- case 'sent':
283
- return 'Shipped';
284
- case 'partically_sent':
285
- return 'PartiallyShipped';
281
+ if (body.status === 'partically_sent') {
282
+ return 'PartiallyDelivered';
286
283
  }
287
284
  }
288
285
  };
package/dist/types.d.ts CHANGED
@@ -49,9 +49,10 @@ export interface QlsPluginOptions {
49
49
  getReceiverContact?: (ctx: RequestContext, order: Order) => FulfillmentOrderInput['receiver_contact'] | undefined;
50
50
  /**
51
51
  * Admin UI tab name where the QLS Product ID custom field is shown on ProductVariant.
52
+ * `null` will show the custom field on the default tab.
52
53
  * Defaults to 'QLS'.
53
54
  */
54
- qlsProductIdUiTab?: string;
55
+ qlsProductIdUiTab?: string | null;
55
56
  }
56
57
  /**
57
58
  * Additional fields for a product variant that are used to create or update a product in QLS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinelab/vendure-plugin-qls-fulfillment",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Vendure plugin to fulfill orders via QLS.",
5
5
  "keywords": [
6
6
  "fulfillment",
@@ -32,5 +32,5 @@
32
32
  "dependencies": {
33
33
  "catch-unknown": "^2.0.0"
34
34
  },
35
- "gitHead": "349500e8984c828a399d21bd63bb8eb11aa790e8"
35
+ "gitHead": "a32c025ab660e9658823d4f614071ca6b8bf37db"
36
36
  }