app-v3-scripts-editor 1.37.7 → 1.37.8
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/app-v3-scripts-editor.css +1 -1
- package/dist/app-v3-scripts-editor.es.js +29850 -29185
- package/dist/app-v3-scripts-editor.umd.js +171 -171
- package/dist/src/lib/components/Blocks/Contact/trigger/types.d.ts +1 -1
- package/dist/src/lib/components/Blocks/FacebookLeadAds/block.d.ts +3 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/index.css.d.ts +17 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/index.d.ts +4 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/index.settings.d.ts +3 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/node.d.ts +3 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/setting/Action.d.ts +3 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/setting/Output.d.ts +7 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/setting/Setting.d.ts +3 -0
- package/dist/src/lib/components/Blocks/FacebookLeadAds/types.d.ts +21 -0
- package/dist/src/lib/components/Selector/FacebookPage/index.d.ts +8 -0
- package/dist/src/lib/components/Shared/CallbotUpdatedByCondition/helpers.d.ts +30 -0
- package/dist/src/lib/components/Shared/CallbotUpdatedByCondition/index.d.ts +15 -0
- package/dist/src/lib/constants/block-types.d.ts +1 -0
- package/dist/src/lib/constants/node-types.d.ts +1 -0
- package/dist/src/lib/events/emit-to-parent/event.d.ts +1 -0
- package/dist/src/services/facebook/useExchangeTokenFacebookPage.d.ts +5 -0
- package/dist/src/services/facebook/useInfiniteFacebookPage.d.ts +9 -0
- package/dist/src/services/types.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const wrapper: string;
|
|
2
|
+
export declare const container: string;
|
|
3
|
+
export declare const iconWrapper: string;
|
|
4
|
+
export declare const iconPrimaryStyle: string;
|
|
5
|
+
export declare const iconAbsoluteStyle: string;
|
|
6
|
+
export declare const settingsContainer: string;
|
|
7
|
+
export declare const alertGroup: string;
|
|
8
|
+
export declare const radioGroup: string;
|
|
9
|
+
export declare const radioSpace: string;
|
|
10
|
+
export declare const radioItem: string;
|
|
11
|
+
export declare const radioContent: string;
|
|
12
|
+
export declare const checkIconWrapper: string;
|
|
13
|
+
export declare const triangle: string;
|
|
14
|
+
export declare const checkIcon: string;
|
|
15
|
+
export declare const emailTypeGroup: string;
|
|
16
|
+
export declare const radioButton: string;
|
|
17
|
+
export declare const radioCol: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IOutput } from '../../../../../services';
|
|
2
|
+
type FacebookLeadAdsOutputContainerProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
outputs: IOutput["outputs"];
|
|
5
|
+
};
|
|
6
|
+
declare const FacebookLeadAdsOutputContainer: React.FC<FacebookLeadAdsOutputContainerProps>;
|
|
7
|
+
export default FacebookLeadAdsOutputContainer;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Node, NodeProps } from '@xyflow/react';
|
|
2
|
+
import { INodeBaseType } from '../../../../services';
|
|
3
|
+
import { BlockTypeProps } from '../../../constants';
|
|
4
|
+
export declare enum FACEBOOK_LEAD_ADS_ACTION_TYPE {
|
|
5
|
+
LEAD_ADS_FORM = "LEAD_ADS_FORM"
|
|
6
|
+
}
|
|
7
|
+
export declare const FacebookLeadAdsTypeLabel: {
|
|
8
|
+
LEAD_ADS_FORM: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FacebookLeadAdsTypeDescription: {
|
|
11
|
+
LEAD_ADS_FORM: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const FacebookLeadAdsTypeList: FACEBOOK_LEAD_ADS_ACTION_TYPE[];
|
|
14
|
+
export interface FacebookLeadAdsNodeData extends INodeBaseType, Record<string, unknown> {
|
|
15
|
+
title: string;
|
|
16
|
+
action?: FACEBOOK_LEAD_ADS_ACTION_TYPE;
|
|
17
|
+
facebook_account?: string;
|
|
18
|
+
lead_form?: string;
|
|
19
|
+
}
|
|
20
|
+
export type BlockFacebookLeadAdsProps = BlockTypeProps<FacebookLeadAdsNodeData>;
|
|
21
|
+
export type FacebookLeadAdsNodeProps = NodeProps<Node<FacebookLeadAdsNodeData>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { IFacebookPage } from '../../../../services';
|
|
4
|
+
type FacebookPageSelectorProps = SelectProps & {
|
|
5
|
+
dataDefault?: IFacebookPage | IFacebookPage[];
|
|
6
|
+
};
|
|
7
|
+
declare const FacebookPageSelector: React.FC<FacebookPageSelectorProps>;
|
|
8
|
+
export default FacebookPageSelector;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import { IOptionValue, IProperty, IPropertyCallCampaignCustomer } from '../../../../services';
|
|
3
|
+
export type CallbotConditionOption = IOptionValue & {
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
export type CallbotConditionProperty = {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
dataOptions?: CallbotConditionOption[];
|
|
10
|
+
slug?: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
sourceModel?: string;
|
|
14
|
+
};
|
|
15
|
+
export type FieldNames = {
|
|
16
|
+
changeFieldIds?: string;
|
|
17
|
+
conditionValues?: string;
|
|
18
|
+
groups?: string;
|
|
19
|
+
condition?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const defaultFieldNames: Required<FieldNames>;
|
|
22
|
+
export declare const isCallCampaignCustomerProperty: (property: IProperty | IPropertyCallCampaignCustomer) => property is IPropertyCallCampaignCustomer;
|
|
23
|
+
export declare const normalizeCallCampaignCustomerOptions: (option?: IPropertyCallCampaignCustomer["options"]) => CallbotConditionOption[] | undefined;
|
|
24
|
+
export declare const normalizeProperty: (property: IProperty | IPropertyCallCampaignCustomer) => CallbotConditionProperty;
|
|
25
|
+
export declare const getOperatorOptions: (type?: string) => SelectProps["options"];
|
|
26
|
+
export declare const isValueDisabledOperator: (operator?: string) => operator is "VALUABLE" | "EMPTY";
|
|
27
|
+
export declare const getValueOptions: (property?: CallbotConditionProperty) => {
|
|
28
|
+
value: string;
|
|
29
|
+
id: string;
|
|
30
|
+
}[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldNames } from './helpers';
|
|
3
|
+
export type CallbotUpdatedByConditionProps = {
|
|
4
|
+
model: string;
|
|
5
|
+
campaignId?: string;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
searchPlaceholder?: string;
|
|
8
|
+
emptyText?: ReactNode;
|
|
9
|
+
conditionText?: ReactNode;
|
|
10
|
+
addConditionText?: ReactNode;
|
|
11
|
+
removeConditionText?: string;
|
|
12
|
+
fieldNames?: FieldNames;
|
|
13
|
+
};
|
|
14
|
+
declare const CallbotUpdatedByCondition: ({ model, campaignId, title, searchPlaceholder, emptyText, conditionText, addConditionText, removeConditionText, fieldNames, }: CallbotUpdatedByConditionProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default CallbotUpdatedByCondition;
|
|
@@ -17,6 +17,7 @@ export declare enum BlockType {
|
|
|
17
17
|
SCHEDULE_AT = "SCHEDULE_AT",
|
|
18
18
|
TRIGGER_CATCH_HOOK = "TRIGGER_CATCH_HOOK",
|
|
19
19
|
TRIGGER_CALLBOT_CUSTOMER = "TRIGGER_CALLBOT_CUSTOMER",
|
|
20
|
+
TRIGGER_FACEBOOK_LEAD_ADS = "TRIGGER_FACEBOOK_LEAD_ADS",
|
|
20
21
|
ACTION_CONTACT = "ACTION_CONTACT",
|
|
21
22
|
ACTION_CALLBOT = "ACTION_CALLBOT",
|
|
22
23
|
ACTION_ZNS = "ACTION_ZNS",
|
|
@@ -31,6 +31,7 @@ export declare const nodeTypes: {
|
|
|
31
31
|
AI_AGENT: import('react').FC<import('../components/Blocks/AIAgent/types').BlockAIAgentProps>;
|
|
32
32
|
NOTIFICATION: import('react').FC<import('../components/Blocks/Notification/types').BlockNotificationProps>;
|
|
33
33
|
AUTO_FLOW_HTTP_REQUEST: import('react').FC<import('../components/Blocks/AutoFlowHttpRequest/types').BlockAutoFlowHttpRequestActionProps>;
|
|
34
|
+
TRIGGER_FACEBOOK_LEAD_ADS: import('react').FC<import('../components/Blocks/FacebookLeadAds/types').BlockFacebookLeadAdsProps>;
|
|
34
35
|
};
|
|
35
36
|
export declare const getNodeColor: (node: {
|
|
36
37
|
type?: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
declare function useExchangeTokenFacebookPage(): import('@tanstack/react-query').UseMutationResult<import('axios').AxiosResponse<any, any>, AxiosError<{
|
|
3
|
+
error_messages: string;
|
|
4
|
+
}, any>, any, unknown>;
|
|
5
|
+
export default useExchangeTokenFacebookPage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IMailConfig, IPagination } from '../../lib';
|
|
3
|
+
export declare const filterInfiniteFacebookPage = "filter-infinite-facebook-page";
|
|
4
|
+
declare const useInfiniteFacebookPageConfig: ({ currentFilters, pageSize, enabled, }: {
|
|
5
|
+
currentFilters: Record<string, unknown>;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
}) => import('@tanstack/react-query').UseInfiniteQueryResult<import('@tanstack/react-query').InfiniteData<AxiosResponse<IPagination<IMailConfig>, any>, unknown>, AxiosError<unknown, any>>;
|
|
9
|
+
export default useInfiniteFacebookPageConfig;
|
|
@@ -458,3 +458,14 @@ export interface IConnector {
|
|
|
458
458
|
transcript_text?: string;
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
+
export type IFacebookPage = {
|
|
462
|
+
id: string;
|
|
463
|
+
updated_at: string;
|
|
464
|
+
created_at: string;
|
|
465
|
+
fbid: string;
|
|
466
|
+
name: string;
|
|
467
|
+
picture: string;
|
|
468
|
+
link: string;
|
|
469
|
+
access_token: string;
|
|
470
|
+
company: string;
|
|
471
|
+
};
|