@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 +5 -0
- package/dist/custom-fields.d.ts +1 -1
- package/dist/qls-plugin.js +1 -1
- package/dist/services/qls-order.service.js +3 -6
- package/dist/types.d.ts +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/custom-fields.d.ts
CHANGED
|
@@ -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
|
|
12
|
+
export declare function getVariantCustomFields(uiTab?: string | null): CustomFieldConfig[];
|
|
13
13
|
export declare const orderCustomFields: CustomFieldConfig[];
|
package/dist/qls-plugin.js
CHANGED
|
@@ -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
|
|
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.
|
|
278
|
+
if (body.status === 'sent') {
|
|
279
279
|
return 'Delivered';
|
|
280
280
|
}
|
|
281
|
-
|
|
282
|
-
|
|
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
|
+
"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": "
|
|
35
|
+
"gitHead": "a32c025ab660e9658823d4f614071ca6b8bf37db"
|
|
36
36
|
}
|