@cellaware/utils 5.4.2 → 5.4.4

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.
@@ -34,6 +34,7 @@ export interface ChatWMSProductVariable {
34
34
  disabledValue: string;
35
35
  standard: boolean;
36
36
  }
37
+ export declare function chatwmsGetStandardProductVariables(vendor: string): ChatWMSProductVariable[];
37
38
  export interface ChatWMSProductTable {
38
39
  tableName: string;
39
40
  tableGroup: string;
@@ -41,3 +41,48 @@ export function initChatWMSProduct() {
41
41
  analysis: []
42
42
  };
43
43
  }
44
+ export function chatwmsGetStandardProductVariables(vendor) {
45
+ let variables = [];
46
+ const standard = true;
47
+ switch (vendor) {
48
+ case CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE:
49
+ {
50
+ variables.push({
51
+ key: '__WH_ID__',
52
+ exampleValue: `'WMD1'`,
53
+ disabledValue: `'----'`,
54
+ standard
55
+ });
56
+ variables.push({
57
+ key: '__LOCALE_ID__',
58
+ exampleValue: `'US_ENGLISH'`,
59
+ disabledValue: `'US_ENGLISH'`,
60
+ standard
61
+ });
62
+ }
63
+ break;
64
+ case CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE_CLOUD:
65
+ {
66
+ variables.push({
67
+ key: '__WH_ID__',
68
+ exampleValue: `'WMD1'`,
69
+ disabledValue: `'----'`,
70
+ standard
71
+ });
72
+ variables.push({
73
+ key: '__LOCALE_ID__',
74
+ exampleValue: `'US_ENGLISH'`,
75
+ disabledValue: `'US_ENGLISH'`,
76
+ standard
77
+ });
78
+ variables.push({
79
+ key: '__INSTANCE_ID_CLAUSE__',
80
+ exampleValue: `= 'INSTANCE_ID'`,
81
+ disabledValue: `is not null`,
82
+ standard
83
+ });
84
+ }
85
+ break;
86
+ }
87
+ return variables;
88
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "5.4.2",
3
+ "version": "5.4.4",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",