@cellaware/utils 5.4.2 → 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.
- package/dist/chatwms/product.d.ts +1 -0
- package/dist/chatwms/product.js +55 -0
- package/package.json +1 -1
|
@@ -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;
|
package/dist/chatwms/product.js
CHANGED
|
@@ -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
|
+
}
|