@whiplashmerch/whiplash-api-client 1.0.64 → 1.0.66
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/client.esm.js +11 -0
- package/dist/client.esm.js.map +1 -1
- package/dist/generated/data-contracts.d.ts +201 -1
- package/dist/utils/loads.d.ts +3 -1
- package/generated/data-contracts.ts +128 -0
- package/package.json +1 -1
package/dist/client.esm.js
CHANGED
|
@@ -22725,6 +22725,14 @@ var PutApiV21FilterSetsIdBatchGroupBy;
|
|
|
22725
22725
|
PutApiV21FilterSetsIdBatchGroupBy["WholesaleStartDate"] = "wholesale_start_date";
|
|
22726
22726
|
PutApiV21FilterSetsIdBatchGroupBy["WholesaleVendor"] = "wholesale_vendor";
|
|
22727
22727
|
PutApiV21FilterSetsIdBatchGroupBy["WholesaleStore"] = "wholesale_store";
|
|
22728
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleDivision"] = "wholesale_division";
|
|
22729
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleFobLocationQualifier"] = "wholesale_fob_location_qualifier";
|
|
22730
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleFobLocationDescription"] = "wholesale_fob_location_description";
|
|
22731
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleCustomerAccountNumber"] = "wholesale_customer_account_number";
|
|
22732
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleSortCode"] = "wholesale_sort_code";
|
|
22733
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleGroup"] = "wholesale_group";
|
|
22734
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleSellerName"] = "wholesale_seller_name";
|
|
22735
|
+
PutApiV21FilterSetsIdBatchGroupBy["WholesaleReference"] = "wholesale_reference";
|
|
22728
22736
|
})(PutApiV21FilterSetsIdBatchGroupBy || (PutApiV21FilterSetsIdBatchGroupBy = {}));
|
|
22729
22737
|
var PutApiV21FilterSetsIdBatchLocationRoles;
|
|
22730
22738
|
(function (PutApiV21FilterSetsIdBatchLocationRoles) {
|
|
@@ -26977,6 +26985,7 @@ const getApi21InboundConsumerReturnUnitCount = (client, id) => {
|
|
|
26977
26985
|
|
|
26978
26986
|
const loadRelations = {
|
|
26979
26987
|
bill_of_lading: { idKey: 'bill_of_lading_id', entityKey: 'bill_of_lading', func: getApiV21BillOfLadings, type: RelationType.Direct },
|
|
26988
|
+
warehouse: { idKey: 'warehouse_id', entityKey: 'warehouse', func: getApiV21Warehouses, type: RelationType.Direct },
|
|
26980
26989
|
};
|
|
26981
26990
|
/**
|
|
26982
26991
|
* @returns ApiV21EntitiesLoadExtended[]
|
|
@@ -26985,6 +26994,8 @@ const getApiV21LoadsExtended = (client, params, options, perPage = 25) => {
|
|
|
26985
26994
|
const configuration = [];
|
|
26986
26995
|
if (options.bill_of_lading)
|
|
26987
26996
|
configuration.push(loadRelations.bill_of_lading);
|
|
26997
|
+
if (options.warehouse)
|
|
26998
|
+
configuration.push(loadRelations.warehouse);
|
|
26988
26999
|
return new Promise((resolve, reject) => getApiV21Loads(client, params)
|
|
26989
27000
|
.then(response => resolve(loadRelatedObjects(client, response, configuration, perPage)))
|
|
26990
27001
|
.catch(reject));
|