@cellaware/utils 5.4.1 → 5.4.3

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.
@@ -32,7 +32,9 @@ export interface ChatWMSProductVariable {
32
32
  key: string;
33
33
  exampleValue: string;
34
34
  disabledValue: string;
35
+ standard: boolean;
35
36
  }
37
+ export declare function chatwmsGetStandardProductVariables(vendor: string): ChatWMSProductVariable[];
36
38
  export interface ChatWMSProductTable {
37
39
  tableName: string;
38
40
  tableGroup: string;
@@ -41,3 +41,58 @@ 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_CELLAWARE_DEMO:
49
+ {
50
+ variables.push({
51
+ key: '__TEST_VARIABLE__',
52
+ exampleValue: `'TEST'`,
53
+ disabledValue: `'----'`,
54
+ standard
55
+ });
56
+ }
57
+ break;
58
+ case CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE:
59
+ {
60
+ variables.push({
61
+ key: '__WH_ID__',
62
+ exampleValue: `'WMD1'`,
63
+ disabledValue: `'----'`,
64
+ standard
65
+ });
66
+ variables.push({
67
+ key: '__LOCALE_ID__',
68
+ exampleValue: `'US_ENGLISH'`,
69
+ disabledValue: `'US_ENGLISH'`,
70
+ standard
71
+ });
72
+ }
73
+ break;
74
+ case CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE_CLOUD:
75
+ {
76
+ variables.push({
77
+ key: '__WH_ID__',
78
+ exampleValue: `'WMD1'`,
79
+ disabledValue: `'----'`,
80
+ standard
81
+ });
82
+ variables.push({
83
+ key: '__LOCALE_ID__',
84
+ exampleValue: `'US_ENGLISH'`,
85
+ disabledValue: `'US_ENGLISH'`,
86
+ standard
87
+ });
88
+ variables.push({
89
+ key: '__INSTANCE_ID_CLAUSE__',
90
+ exampleValue: `= 'INSTANCE_ID'`,
91
+ disabledValue: `is not null`,
92
+ standard
93
+ });
94
+ }
95
+ break;
96
+ }
97
+ return variables;
98
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "5.4.1",
3
+ "version": "5.4.3",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",