@cellaware/utils 5.5.2 → 6.0.0
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/vendor.d.ts +8 -0
- package/dist/chatwms/vendor.js +16 -0
- package/package.json +1 -1
- package/dist/chatwms/product.d.ts +0 -69
- package/dist/chatwms/product.js +0 -90
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const CHATWMS_VENDOR_GROUP_CELLAWARE = "cellaware";
|
|
2
|
+
export declare const CHATWMS_VENDOR_GROUP_BLUEYONDER = "blueyonder";
|
|
3
|
+
export declare const CHATWMS_VENDOR_GROUPS: string[];
|
|
4
|
+
export declare const CHATWMS_VENDOR_CELLAWARE_DEMO: string;
|
|
5
|
+
export declare const CHATWMS_VENDOR_BLUEYONDER_DISCRETE: string;
|
|
6
|
+
export declare const CHATWMS_VENDOR_BLUEYONDER_DISCRETE_CLOUD: string;
|
|
7
|
+
export declare const CHATWMS_VENDOR_BLUEYONDER_DISPATCHER: string;
|
|
8
|
+
export declare const CHATWMS_PRODUCT_VENDORS: string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const CHATWMS_VENDOR_GROUP_CELLAWARE = 'cellaware';
|
|
2
|
+
export const CHATWMS_VENDOR_GROUP_BLUEYONDER = 'blueyonder';
|
|
3
|
+
export const CHATWMS_VENDOR_GROUPS = [
|
|
4
|
+
CHATWMS_VENDOR_GROUP_CELLAWARE,
|
|
5
|
+
CHATWMS_VENDOR_GROUP_BLUEYONDER
|
|
6
|
+
];
|
|
7
|
+
export const CHATWMS_VENDOR_CELLAWARE_DEMO = CHATWMS_VENDOR_GROUP_CELLAWARE + '-demo';
|
|
8
|
+
export const CHATWMS_VENDOR_BLUEYONDER_DISCRETE = CHATWMS_VENDOR_GROUP_BLUEYONDER + '-discrete';
|
|
9
|
+
export const CHATWMS_VENDOR_BLUEYONDER_DISCRETE_CLOUD = CHATWMS_VENDOR_GROUP_BLUEYONDER + '-discrete-cloud';
|
|
10
|
+
export const CHATWMS_VENDOR_BLUEYONDER_DISPATCHER = CHATWMS_VENDOR_GROUP_BLUEYONDER + '-dispatcher';
|
|
11
|
+
export const CHATWMS_PRODUCT_VENDORS = [
|
|
12
|
+
CHATWMS_VENDOR_CELLAWARE_DEMO,
|
|
13
|
+
CHATWMS_VENDOR_BLUEYONDER_DISCRETE,
|
|
14
|
+
CHATWMS_VENDOR_BLUEYONDER_DISCRETE_CLOUD,
|
|
15
|
+
CHATWMS_VENDOR_BLUEYONDER_DISPATCHER
|
|
16
|
+
];
|
package/package.json
CHANGED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export declare const CHATWMS_PRODUCT_VENDOR_GROUP_CELLAWARE = "cellaware";
|
|
2
|
-
export declare const CHATWMS_PRODUCT_VENDOR_GROUP_BLUEYONDER = "blueyonder";
|
|
3
|
-
export declare const CHATWMS_PRODUCT_VENDOR_GROUPS: string[];
|
|
4
|
-
export declare const CHATWMS_PRODUCT_VENDOR_CELLAWARE_DEMO: string;
|
|
5
|
-
export declare const CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE: string;
|
|
6
|
-
export declare const CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE_CLOUD: string;
|
|
7
|
-
export declare const CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISPATCHER: string;
|
|
8
|
-
export declare const CHATWMS_PRODUCT_VENDORS: string[];
|
|
9
|
-
export declare function chatwmsGetProductId(customer: string, vendor: string, version: string): string;
|
|
10
|
-
export interface ChatWMSProductBase {
|
|
11
|
-
productId: string;
|
|
12
|
-
customer: string;
|
|
13
|
-
vendor: string;
|
|
14
|
-
version: string;
|
|
15
|
-
description: string;
|
|
16
|
-
externalDescription: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function initChatWMSProductBase(): ChatWMSProductBase;
|
|
19
|
-
export interface ChatWMSProduct extends ChatWMSProductBase {
|
|
20
|
-
revision: number;
|
|
21
|
-
variables: ChatWMSProductVariable[];
|
|
22
|
-
tables: ChatWMSProductTable[];
|
|
23
|
-
notes: ChatWMSProductNote[];
|
|
24
|
-
examples: ChatWMSProductExample[];
|
|
25
|
-
columnDescriptions: ChatWMSProductColumnDescription[];
|
|
26
|
-
columnComments: ChatWMSProductColumnComment[];
|
|
27
|
-
valueDescriptionQueries: ChatWMSProductValueDescriptionQuery[];
|
|
28
|
-
}
|
|
29
|
-
export declare function initChatWMSProduct(): ChatWMSProduct;
|
|
30
|
-
export declare function initChatWMSRevision(): number;
|
|
31
|
-
export interface ChatWMSProductVariable {
|
|
32
|
-
key: string;
|
|
33
|
-
exampleValue: string;
|
|
34
|
-
disabledValue: string;
|
|
35
|
-
standard: boolean;
|
|
36
|
-
}
|
|
37
|
-
export declare function chatwmsGetStandardProductVariables(vendor: string): ChatWMSProductVariable[];
|
|
38
|
-
export interface ChatWMSProductTable {
|
|
39
|
-
tableName: string;
|
|
40
|
-
tableGroup: string;
|
|
41
|
-
description: string;
|
|
42
|
-
query: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ChatWMSProductNote {
|
|
45
|
-
sequence: number;
|
|
46
|
-
title: string;
|
|
47
|
-
content: string;
|
|
48
|
-
query?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface ChatWMSProductExample {
|
|
51
|
-
sequence: number;
|
|
52
|
-
specification: string;
|
|
53
|
-
query: string;
|
|
54
|
-
comments?: string;
|
|
55
|
-
}
|
|
56
|
-
export interface ChatWMSProductColumnDescription {
|
|
57
|
-
columnName: string;
|
|
58
|
-
description: string;
|
|
59
|
-
}
|
|
60
|
-
export interface ChatWMSProductColumnComment {
|
|
61
|
-
columnName: string;
|
|
62
|
-
tableName?: string;
|
|
63
|
-
comment: string;
|
|
64
|
-
}
|
|
65
|
-
export interface ChatWMSProductValueDescriptionQuery {
|
|
66
|
-
columnName: string;
|
|
67
|
-
tableName?: string;
|
|
68
|
-
query: string;
|
|
69
|
-
}
|
package/dist/chatwms/product.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
export const CHATWMS_PRODUCT_VENDOR_GROUP_CELLAWARE = 'cellaware';
|
|
2
|
-
export const CHATWMS_PRODUCT_VENDOR_GROUP_BLUEYONDER = 'blueyonder';
|
|
3
|
-
export const CHATWMS_PRODUCT_VENDOR_GROUPS = [
|
|
4
|
-
CHATWMS_PRODUCT_VENDOR_GROUP_CELLAWARE,
|
|
5
|
-
CHATWMS_PRODUCT_VENDOR_GROUP_BLUEYONDER
|
|
6
|
-
];
|
|
7
|
-
export const CHATWMS_PRODUCT_VENDOR_CELLAWARE_DEMO = CHATWMS_PRODUCT_VENDOR_GROUP_CELLAWARE + '-demo';
|
|
8
|
-
export const CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE = CHATWMS_PRODUCT_VENDOR_GROUP_BLUEYONDER + '-discrete';
|
|
9
|
-
export const CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE_CLOUD = CHATWMS_PRODUCT_VENDOR_GROUP_BLUEYONDER + '-discrete-cloud';
|
|
10
|
-
export const CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISPATCHER = CHATWMS_PRODUCT_VENDOR_GROUP_BLUEYONDER + '-dispatcher';
|
|
11
|
-
export const CHATWMS_PRODUCT_VENDORS = [
|
|
12
|
-
CHATWMS_PRODUCT_VENDOR_CELLAWARE_DEMO,
|
|
13
|
-
CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE,
|
|
14
|
-
CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE_CLOUD,
|
|
15
|
-
CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISPATCHER
|
|
16
|
-
];
|
|
17
|
-
export function chatwmsGetProductId(customer, vendor, version) {
|
|
18
|
-
return `${customer}_${vendor}_${version}`;
|
|
19
|
-
}
|
|
20
|
-
export function initChatWMSProductBase() {
|
|
21
|
-
return {
|
|
22
|
-
productId: '',
|
|
23
|
-
customer: '',
|
|
24
|
-
vendor: '',
|
|
25
|
-
version: '',
|
|
26
|
-
description: '',
|
|
27
|
-
externalDescription: ''
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export function initChatWMSProduct() {
|
|
31
|
-
return {
|
|
32
|
-
...initChatWMSProductBase(),
|
|
33
|
-
revision: initChatWMSRevision(),
|
|
34
|
-
variables: [],
|
|
35
|
-
tables: [],
|
|
36
|
-
notes: [],
|
|
37
|
-
examples: [],
|
|
38
|
-
columnDescriptions: [],
|
|
39
|
-
columnComments: [],
|
|
40
|
-
valueDescriptionQueries: []
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export function initChatWMSRevision() {
|
|
44
|
-
return Date.now();
|
|
45
|
-
}
|
|
46
|
-
export function chatwmsGetStandardProductVariables(vendor) {
|
|
47
|
-
let variables = [];
|
|
48
|
-
const standard = true;
|
|
49
|
-
switch (vendor) {
|
|
50
|
-
case CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE:
|
|
51
|
-
{
|
|
52
|
-
variables.push({
|
|
53
|
-
key: '__WH_ID__',
|
|
54
|
-
exampleValue: `'WMD1'`,
|
|
55
|
-
disabledValue: `'----'`,
|
|
56
|
-
standard
|
|
57
|
-
});
|
|
58
|
-
variables.push({
|
|
59
|
-
key: '__LOCALE_ID__',
|
|
60
|
-
exampleValue: `'US_ENGLISH'`,
|
|
61
|
-
disabledValue: `'US_ENGLISH'`,
|
|
62
|
-
standard
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
case CHATWMS_PRODUCT_VENDOR_BLUEYONDER_DISCRETE_CLOUD:
|
|
67
|
-
{
|
|
68
|
-
variables.push({
|
|
69
|
-
key: '__WH_ID__',
|
|
70
|
-
exampleValue: `'WMD1'`,
|
|
71
|
-
disabledValue: `'----'`,
|
|
72
|
-
standard
|
|
73
|
-
});
|
|
74
|
-
variables.push({
|
|
75
|
-
key: '__LOCALE_ID__',
|
|
76
|
-
exampleValue: `'US_ENGLISH'`,
|
|
77
|
-
disabledValue: `'US_ENGLISH'`,
|
|
78
|
-
standard
|
|
79
|
-
});
|
|
80
|
-
variables.push({
|
|
81
|
-
key: '__INSTANCE_ID_CLAUSE__',
|
|
82
|
-
exampleValue: `= 'INSTANCE_ID'`,
|
|
83
|
-
disabledValue: `is not null`,
|
|
84
|
-
standard
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
return variables;
|
|
90
|
-
}
|