@bikdotai/bik-component-library 0.0.640 → 0.0.641-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/cjs/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
- package/dist/cjs/components/data-source-panel/DataSourceInfoFooter.d.ts +13 -0
- package/dist/cjs/components/data-source-panel/DataSourcePanel.d.ts +15 -0
- package/dist/cjs/components/data-source-panel/DataSourcePanel.style.d.ts +2 -0
- package/dist/cjs/components/data-source-panel/index.d.ts +1 -0
- package/dist/cjs/components/data-source-panel/model.d.ts +118 -0
- package/dist/esm/components/QueryBuilder/Triggers/EVENTS/components/EventsTrigger.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/EVENTS/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/IG/components/IGTrigger.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts +2 -2
- package/dist/esm/components/data-source-panel/DataSourceInfoFooter.d.ts +13 -0
- package/dist/esm/components/data-source-panel/DataSourcePanel.d.ts +15 -0
- package/dist/esm/components/data-source-panel/DataSourcePanel.style.d.ts +2 -0
- package/dist/esm/components/data-source-panel/index.d.ts +1 -0
- package/dist/esm/components/data-source-panel/model.d.ts +118 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default EventsTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default IGTrigger;
|
package/dist/cjs/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownOption } from "../../../dropdown/type";
|
|
3
|
-
import { QueryBuilderProperty } from "../../
|
|
4
|
-
import { QueryBuilderNodeProps } from "../../
|
|
3
|
+
import { QueryBuilderProperty } from "../../Types/QueryBuilder.type";
|
|
4
|
+
import { QueryBuilderNodeProps } from "../../Types/QueryBuilderNodeProps.type";
|
|
5
5
|
declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
|
|
6
6
|
cacheKey: string;
|
|
7
7
|
propertyAddBtnText: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MessageSource } from './model';
|
|
3
|
+
interface SourceInfoFooterProps {
|
|
4
|
+
sourceIntent: Record<string, string>;
|
|
5
|
+
messageSource?: MessageSource;
|
|
6
|
+
hideAddDataButton?: boolean;
|
|
7
|
+
hideHeading?: boolean;
|
|
8
|
+
insights?: string;
|
|
9
|
+
faqCount?: number;
|
|
10
|
+
storeId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const SourceInfoFooter: import("react").MemoExoticComponent<(props: SourceInfoFooterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AllSourceInfoDetailsCustomDataModel, MessageSource } from './model';
|
|
3
|
+
export interface DataSourcePanelProps {
|
|
4
|
+
storeId: string;
|
|
5
|
+
messageSource: MessageSource;
|
|
6
|
+
setMessageSourcePanel: (source?: MessageSource) => void;
|
|
7
|
+
hideCloseButton?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
allSourceInfoDetail: AllSourceInfoDetailsCustomDataModel;
|
|
10
|
+
isSourceInfoFetched?: boolean;
|
|
11
|
+
faqCount: number;
|
|
12
|
+
ChecklistType: Record<string, string>;
|
|
13
|
+
IntentComponentMap: Record<string, JSX.Element>;
|
|
14
|
+
}
|
|
15
|
+
export declare const DataSourcePanel: React.FC<DataSourcePanelProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DataSourcePanel';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export interface MessageSource {
|
|
2
|
+
sources: InfoContent[];
|
|
3
|
+
intent: string;
|
|
4
|
+
messageId: string;
|
|
5
|
+
output_message_id?: string;
|
|
6
|
+
isUnsatisfactoryAnswer?: boolean;
|
|
7
|
+
isEditable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface InfoContent {
|
|
10
|
+
title: string;
|
|
11
|
+
docId?: string;
|
|
12
|
+
subTitle?: string;
|
|
13
|
+
link?: string | string[];
|
|
14
|
+
type?: string;
|
|
15
|
+
intent?: string;
|
|
16
|
+
productId?: string;
|
|
17
|
+
variantId?: string;
|
|
18
|
+
imageUrl?: string;
|
|
19
|
+
isTrainable?: boolean;
|
|
20
|
+
subIntent?: string;
|
|
21
|
+
insights?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface AllSourceInfoDetailsCustomDataModel {
|
|
24
|
+
[keys: string]: SourceInfoDetailsCustomDataModel;
|
|
25
|
+
}
|
|
26
|
+
export interface SourceInfoDetailsCustomDataModel {
|
|
27
|
+
storeId: string;
|
|
28
|
+
type: CustomDataType;
|
|
29
|
+
data: FileMetaData | CustomDataDocument | CustomDataFaqModel;
|
|
30
|
+
content?: string;
|
|
31
|
+
docId: string;
|
|
32
|
+
onEditClick: (item: FileMetaData | CustomDataDocument | CustomDataFaqModel, type: string) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare enum CustomDataCategories {
|
|
35
|
+
PAGE = "page",
|
|
36
|
+
POLICY = "policy",
|
|
37
|
+
ARTICLE = "article",
|
|
38
|
+
UPLOADED = "uploaded",
|
|
39
|
+
TEXT = "text"
|
|
40
|
+
}
|
|
41
|
+
export type CustomDataCategory = keyof typeof CustomDataCategories;
|
|
42
|
+
export declare enum CustomDataType {
|
|
43
|
+
FAQ = "FAQ",
|
|
44
|
+
FILES = "FILES",
|
|
45
|
+
WEBSITE_LINKS = "WEBSITE_LINKS",
|
|
46
|
+
TEXTS = "TEXTS",
|
|
47
|
+
FETCHED_LINKS = "FETCHED_LINKS",
|
|
48
|
+
URL = "URL",
|
|
49
|
+
TRAINING_TEMPLATE = "TRAINING_TEMPLATE"
|
|
50
|
+
}
|
|
51
|
+
export interface FileMetaData {
|
|
52
|
+
fileId: string;
|
|
53
|
+
fileName: string;
|
|
54
|
+
fileSize: string;
|
|
55
|
+
fileType: string;
|
|
56
|
+
fileUrl: string;
|
|
57
|
+
uploadType: 'URL' | 'FileUpload';
|
|
58
|
+
uploadDate: Date;
|
|
59
|
+
characterCount?: number;
|
|
60
|
+
intent?: string;
|
|
61
|
+
fileContent?: string;
|
|
62
|
+
fileContentPath?: string;
|
|
63
|
+
fileContentText?: string;
|
|
64
|
+
isActive?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface CustomDataDocument {
|
|
67
|
+
category: CustomDataCategory;
|
|
68
|
+
id: string;
|
|
69
|
+
handle?: string;
|
|
70
|
+
title?: string;
|
|
71
|
+
createdAt?: Date;
|
|
72
|
+
updatedAt?: Date;
|
|
73
|
+
url?: string;
|
|
74
|
+
isActive?: boolean;
|
|
75
|
+
characterCount?: number;
|
|
76
|
+
intent?: string;
|
|
77
|
+
wasManualLinkAdded?: boolean;
|
|
78
|
+
fileContent?: string;
|
|
79
|
+
fileContentText?: string;
|
|
80
|
+
fileId?: string;
|
|
81
|
+
fileContentPath?: string;
|
|
82
|
+
fileName?: string;
|
|
83
|
+
lastEditedAt?: number;
|
|
84
|
+
}
|
|
85
|
+
export interface CustomDataFaqModel {
|
|
86
|
+
id: string;
|
|
87
|
+
question: string;
|
|
88
|
+
answer: string;
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
updatedAt?: Date;
|
|
91
|
+
questionSpecificProducts?: Array<FaqProductModel>;
|
|
92
|
+
products?: Array<FaqProductModel>;
|
|
93
|
+
cta?: Array<LiveChatCTA>;
|
|
94
|
+
intent?: string;
|
|
95
|
+
crmNoteMeta?: CRMNoteMeta;
|
|
96
|
+
fromEditResponse?: boolean;
|
|
97
|
+
isTemplateFAQ?: boolean;
|
|
98
|
+
isSatisfactoryAnswer?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface FaqProductModel {
|
|
101
|
+
id: string;
|
|
102
|
+
variantId: string;
|
|
103
|
+
name: string;
|
|
104
|
+
imageUrl: string;
|
|
105
|
+
}
|
|
106
|
+
export interface CRMNoteMeta {
|
|
107
|
+
createdAt: Date;
|
|
108
|
+
sessionId: string;
|
|
109
|
+
userId: number;
|
|
110
|
+
messageId: string;
|
|
111
|
+
customerId: string;
|
|
112
|
+
updatedAt: Date;
|
|
113
|
+
}
|
|
114
|
+
export interface LiveChatCTA {
|
|
115
|
+
url: string;
|
|
116
|
+
cta: string;
|
|
117
|
+
buttonType: string;
|
|
118
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default EventsTrigger;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { QueryBuilderNodeProps } from "../../../
|
|
2
|
+
import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
|
|
3
3
|
declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
|
|
4
4
|
export default IGTrigger;
|
package/dist/esm/components/QueryBuilder/Triggers/IG/selectors/useIGTriggerNameCacheSelector.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { QueryBuilderAPIData } from "../../../
|
|
1
|
+
import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
|
|
2
2
|
export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
|
package/dist/esm/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownOption } from "../../../dropdown/type";
|
|
3
|
-
import { QueryBuilderProperty } from "../../
|
|
4
|
-
import { QueryBuilderNodeProps } from "../../
|
|
3
|
+
import { QueryBuilderProperty } from "../../Types/QueryBuilder.type";
|
|
4
|
+
import { QueryBuilderNodeProps } from "../../Types/QueryBuilderNodeProps.type";
|
|
5
5
|
declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
|
|
6
6
|
cacheKey: string;
|
|
7
7
|
propertyAddBtnText: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MessageSource } from './model';
|
|
3
|
+
interface SourceInfoFooterProps {
|
|
4
|
+
sourceIntent: Record<string, string>;
|
|
5
|
+
messageSource?: MessageSource;
|
|
6
|
+
hideAddDataButton?: boolean;
|
|
7
|
+
hideHeading?: boolean;
|
|
8
|
+
insights?: string;
|
|
9
|
+
faqCount?: number;
|
|
10
|
+
storeId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const SourceInfoFooter: import("react").MemoExoticComponent<(props: SourceInfoFooterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AllSourceInfoDetailsCustomDataModel, MessageSource } from './model';
|
|
3
|
+
export interface DataSourcePanelProps {
|
|
4
|
+
storeId: string;
|
|
5
|
+
messageSource: MessageSource;
|
|
6
|
+
setMessageSourcePanel: (source?: MessageSource) => void;
|
|
7
|
+
hideCloseButton?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
allSourceInfoDetail: AllSourceInfoDetailsCustomDataModel;
|
|
10
|
+
isSourceInfoFetched?: boolean;
|
|
11
|
+
faqCount: number;
|
|
12
|
+
ChecklistType: Record<string, string>;
|
|
13
|
+
IntentComponentMap: Record<string, JSX.Element>;
|
|
14
|
+
}
|
|
15
|
+
export declare const DataSourcePanel: React.FC<DataSourcePanelProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DataSourcePanel';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export interface MessageSource {
|
|
2
|
+
sources: InfoContent[];
|
|
3
|
+
intent: string;
|
|
4
|
+
messageId: string;
|
|
5
|
+
output_message_id?: string;
|
|
6
|
+
isUnsatisfactoryAnswer?: boolean;
|
|
7
|
+
isEditable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface InfoContent {
|
|
10
|
+
title: string;
|
|
11
|
+
docId?: string;
|
|
12
|
+
subTitle?: string;
|
|
13
|
+
link?: string | string[];
|
|
14
|
+
type?: string;
|
|
15
|
+
intent?: string;
|
|
16
|
+
productId?: string;
|
|
17
|
+
variantId?: string;
|
|
18
|
+
imageUrl?: string;
|
|
19
|
+
isTrainable?: boolean;
|
|
20
|
+
subIntent?: string;
|
|
21
|
+
insights?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface AllSourceInfoDetailsCustomDataModel {
|
|
24
|
+
[keys: string]: SourceInfoDetailsCustomDataModel;
|
|
25
|
+
}
|
|
26
|
+
export interface SourceInfoDetailsCustomDataModel {
|
|
27
|
+
storeId: string;
|
|
28
|
+
type: CustomDataType;
|
|
29
|
+
data: FileMetaData | CustomDataDocument | CustomDataFaqModel;
|
|
30
|
+
content?: string;
|
|
31
|
+
docId: string;
|
|
32
|
+
onEditClick: (item: FileMetaData | CustomDataDocument | CustomDataFaqModel, type: string) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare enum CustomDataCategories {
|
|
35
|
+
PAGE = "page",
|
|
36
|
+
POLICY = "policy",
|
|
37
|
+
ARTICLE = "article",
|
|
38
|
+
UPLOADED = "uploaded",
|
|
39
|
+
TEXT = "text"
|
|
40
|
+
}
|
|
41
|
+
export type CustomDataCategory = keyof typeof CustomDataCategories;
|
|
42
|
+
export declare enum CustomDataType {
|
|
43
|
+
FAQ = "FAQ",
|
|
44
|
+
FILES = "FILES",
|
|
45
|
+
WEBSITE_LINKS = "WEBSITE_LINKS",
|
|
46
|
+
TEXTS = "TEXTS",
|
|
47
|
+
FETCHED_LINKS = "FETCHED_LINKS",
|
|
48
|
+
URL = "URL",
|
|
49
|
+
TRAINING_TEMPLATE = "TRAINING_TEMPLATE"
|
|
50
|
+
}
|
|
51
|
+
export interface FileMetaData {
|
|
52
|
+
fileId: string;
|
|
53
|
+
fileName: string;
|
|
54
|
+
fileSize: string;
|
|
55
|
+
fileType: string;
|
|
56
|
+
fileUrl: string;
|
|
57
|
+
uploadType: 'URL' | 'FileUpload';
|
|
58
|
+
uploadDate: Date;
|
|
59
|
+
characterCount?: number;
|
|
60
|
+
intent?: string;
|
|
61
|
+
fileContent?: string;
|
|
62
|
+
fileContentPath?: string;
|
|
63
|
+
fileContentText?: string;
|
|
64
|
+
isActive?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface CustomDataDocument {
|
|
67
|
+
category: CustomDataCategory;
|
|
68
|
+
id: string;
|
|
69
|
+
handle?: string;
|
|
70
|
+
title?: string;
|
|
71
|
+
createdAt?: Date;
|
|
72
|
+
updatedAt?: Date;
|
|
73
|
+
url?: string;
|
|
74
|
+
isActive?: boolean;
|
|
75
|
+
characterCount?: number;
|
|
76
|
+
intent?: string;
|
|
77
|
+
wasManualLinkAdded?: boolean;
|
|
78
|
+
fileContent?: string;
|
|
79
|
+
fileContentText?: string;
|
|
80
|
+
fileId?: string;
|
|
81
|
+
fileContentPath?: string;
|
|
82
|
+
fileName?: string;
|
|
83
|
+
lastEditedAt?: number;
|
|
84
|
+
}
|
|
85
|
+
export interface CustomDataFaqModel {
|
|
86
|
+
id: string;
|
|
87
|
+
question: string;
|
|
88
|
+
answer: string;
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
updatedAt?: Date;
|
|
91
|
+
questionSpecificProducts?: Array<FaqProductModel>;
|
|
92
|
+
products?: Array<FaqProductModel>;
|
|
93
|
+
cta?: Array<LiveChatCTA>;
|
|
94
|
+
intent?: string;
|
|
95
|
+
crmNoteMeta?: CRMNoteMeta;
|
|
96
|
+
fromEditResponse?: boolean;
|
|
97
|
+
isTemplateFAQ?: boolean;
|
|
98
|
+
isSatisfactoryAnswer?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface FaqProductModel {
|
|
101
|
+
id: string;
|
|
102
|
+
variantId: string;
|
|
103
|
+
name: string;
|
|
104
|
+
imageUrl: string;
|
|
105
|
+
}
|
|
106
|
+
export interface CRMNoteMeta {
|
|
107
|
+
createdAt: Date;
|
|
108
|
+
sessionId: string;
|
|
109
|
+
userId: number;
|
|
110
|
+
messageId: string;
|
|
111
|
+
customerId: string;
|
|
112
|
+
updatedAt: Date;
|
|
113
|
+
}
|
|
114
|
+
export interface LiveChatCTA {
|
|
115
|
+
url: string;
|
|
116
|
+
cta: string;
|
|
117
|
+
buttonType: string;
|
|
118
|
+
}
|