impact-chatbot 2.3.19 → 2.3.21

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/temp.d.ts CHANGED
@@ -62,4 +62,75 @@ export declare let chatbotFilterCustomConfig: {
62
62
  sub_offset: any;
63
63
  download_rows: any;
64
64
  };
65
+ export declare let singleConversationNewData: ({
66
+ userType: string;
67
+ chatType: string;
68
+ data: string;
69
+ } | {
70
+ userType: string;
71
+ chatType: string;
72
+ data: {
73
+ header: string;
74
+ step_status: string;
75
+ sub_header: string;
76
+ current_intent: string;
77
+ }[];
78
+ } | {
79
+ userType: string;
80
+ chatType: string;
81
+ data: ({
82
+ type: string;
83
+ data: {
84
+ header: string;
85
+ inputPosition: string;
86
+ labelOrientation: string;
87
+ label: string;
88
+ param_name: string;
89
+ options: {
90
+ label: string;
91
+ value: string;
92
+ }[];
93
+ isRequired: boolean;
94
+ isDisabled: boolean;
95
+ isMulti: boolean;
96
+ display_name?: undefined;
97
+ unique_id?: undefined;
98
+ row_data?: undefined;
99
+ table_config?: undefined;
100
+ };
101
+ } | {
102
+ type: string;
103
+ data: {
104
+ display_name: string;
105
+ unique_id: string;
106
+ row_data: {
107
+ "Style Color ID": string;
108
+ "Style Description": string;
109
+ stockout_store_count: number;
110
+ max_dc_oh_it_oo: number;
111
+ lw_sales_units: number;
112
+ }[];
113
+ table_config: ({
114
+ column_header: string;
115
+ field: string;
116
+ is_searchable: boolean;
117
+ type: string;
118
+ } | {
119
+ column_header: string;
120
+ field: string;
121
+ is_searchable: boolean;
122
+ type?: undefined;
123
+ })[];
124
+ header?: undefined;
125
+ inputPosition?: undefined;
126
+ labelOrientation?: undefined;
127
+ label?: undefined;
128
+ param_name?: undefined;
129
+ options?: undefined;
130
+ isRequired?: undefined;
131
+ isDisabled?: undefined;
132
+ isMulti?: undefined;
133
+ };
134
+ })[];
135
+ })[];
65
136
  export default chatbotFilterConfig;
package/dist/utlis.d.ts CHANGED
@@ -39,18 +39,15 @@ export declare const getFormattedTableConfig: (tableConfig: any) => any;
39
39
  * @returns {Promise<Function>} - The imported function
40
40
  */
41
41
  export declare const getDynamicFunction: (path: any, functionName: any) => Promise<any>;
42
+ export declare const generateConversationId: () => string | 0;
42
43
  /**
43
44
  * Generates a conversation object structure with empty messages array and current timestamp
44
45
  * @returns {object} - The conversation object structure
45
46
  */
46
- export declare const generateConversationObject: () => {
47
- conversations: {
48
- 1: {
49
- id: number;
50
- name: string;
51
- timestamp: string;
52
- messages: any[];
53
- };
54
- };
47
+ export declare const generateConversationObject: (conversationId: any) => {
48
+ id: any;
49
+ name: string;
50
+ timestamp: string;
51
+ messages: any[];
55
52
  };
56
53
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impact-chatbot",
3
- "version": "2.3.19",
3
+ "version": "2.3.21",
4
4
  "description": "Standalone chatbot library - 1:1 copy of smartBot converted to TypeScript",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",