@cellaware/utils 3.4.36 → 3.4.37
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/chatwms/client.d.ts
CHANGED
package/dist/chatwms/client.js
CHANGED
|
@@ -2,3 +2,7 @@ export const CHATWMS_GENERIC_CLIENT_ID = 'chatwms';
|
|
|
2
2
|
export function chatwmsGetClientId(customer, warehouse) {
|
|
3
3
|
return `${customer}_${warehouse}`;
|
|
4
4
|
}
|
|
5
|
+
export function chatwmsGetWarehouseFromClientId(clientId, customer) {
|
|
6
|
+
const prefix = `${customer}_`;
|
|
7
|
+
return clientId.substring(clientId.indexOf(prefix) + prefix.length);
|
|
8
|
+
}
|