app-v3-scripts-editor 1.38.4 → 1.38.5
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.es.js +18837 -18702
- package/dist/app-v3-scripts-editor.umd.js +156 -156
- package/dist/src/lib/components/Blocks/FacebookLeadAds/types.d.ts +10 -6
- package/dist/src/lib/components/Selector/FacebookPage/listLeadgenForm.d.ts +9 -0
- package/dist/src/lib/constants/initial-script.d.ts +4 -0
- package/dist/src/services/facebook/useListLeadFormFacebook.d.ts +5 -0
- package/dist/src/services/types.d.ts +20 -8
- package/package.json +1 -1
|
@@ -2,20 +2,24 @@ import { Node, NodeProps } from '@xyflow/react';
|
|
|
2
2
|
import { INodeBaseType } from '../../../../services';
|
|
3
3
|
import { BlockTypeProps } from '../../../constants';
|
|
4
4
|
export declare enum FACEBOOK_LEAD_ADS_ACTION_TYPE {
|
|
5
|
-
|
|
5
|
+
LEAD_CREATED = "lead_created"
|
|
6
6
|
}
|
|
7
7
|
export declare const FacebookLeadAdsTypeLabel: {
|
|
8
|
-
|
|
8
|
+
lead_created: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const FacebookLeadAdsTypeDescription: {
|
|
11
|
-
|
|
11
|
+
lead_created: string;
|
|
12
12
|
};
|
|
13
13
|
export declare const FacebookLeadAdsTypeList: FACEBOOK_LEAD_ADS_ACTION_TYPE[];
|
|
14
14
|
export interface FacebookLeadAdsNodeData extends INodeBaseType, Record<string, unknown> {
|
|
15
15
|
title: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
type?: FACEBOOK_LEAD_ADS_ACTION_TYPE;
|
|
17
|
+
object?: string;
|
|
18
|
+
facebook_page_id?: string;
|
|
19
|
+
page_fbid?: string;
|
|
20
|
+
page_name?: string;
|
|
21
|
+
leadgen_form_id?: string;
|
|
22
|
+
leadgen_form_name?: string;
|
|
19
23
|
}
|
|
20
24
|
export type BlockFacebookLeadAdsProps = BlockTypeProps<FacebookLeadAdsNodeData>;
|
|
21
25
|
export type FacebookLeadAdsNodeProps = NodeProps<Node<FacebookLeadAdsNodeData>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { IFacebookLeadgenForm } from '../../../../services';
|
|
4
|
+
type ListLeadgenFormSelectorProps = SelectProps & {
|
|
5
|
+
FACEBOOK_PAGE_ID?: string;
|
|
6
|
+
dataDefault?: IFacebookLeadgenForm | IFacebookLeadgenForm[];
|
|
7
|
+
};
|
|
8
|
+
declare const ListLeadgenFormSelector: React.FC<ListLeadgenFormSelectorProps>;
|
|
9
|
+
export default ListLeadgenFormSelector;
|
|
@@ -149,6 +149,10 @@ export declare const initialData: {
|
|
|
149
149
|
ZNS_CUSTOMER: {};
|
|
150
150
|
TASK: {};
|
|
151
151
|
ACTION_TICKET: {};
|
|
152
|
+
TRIGGER_FACEBOOK_LEAD_ADS: {
|
|
153
|
+
title: string;
|
|
154
|
+
object: string;
|
|
155
|
+
};
|
|
152
156
|
};
|
|
153
157
|
export declare const getInitialData: (blockType: BlockType) => any;
|
|
154
158
|
export declare const initialNodes: Node[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
import { IFacebookLeadgenForm } from '../../lib';
|
|
3
|
+
export declare const GetListLeadFormFacebookKey = "list-lead-form-facebook";
|
|
4
|
+
declare function useGetListLeadFormFacebook(FACEBOOK_PAGE_ID: string): import('@tanstack/react-query').UseQueryResult<AxiosResponse<IFacebookLeadgenForm[], any>, AxiosError<unknown, any>>;
|
|
5
|
+
export default useGetListLeadFormFacebook;
|
|
@@ -462,12 +462,24 @@ export interface IConnector {
|
|
|
462
462
|
}
|
|
463
463
|
export type IFacebookPage = {
|
|
464
464
|
id: string;
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
company: string;
|
|
465
|
+
channel_id?: string;
|
|
466
|
+
fbid?: string;
|
|
467
|
+
name?: string;
|
|
468
|
+
picture?: string;
|
|
469
|
+
link?: string;
|
|
470
|
+
updated_at?: string;
|
|
471
|
+
created_at?: string;
|
|
473
472
|
};
|
|
473
|
+
export interface IFacebookLeadgenForm {
|
|
474
|
+
id?: string;
|
|
475
|
+
name?: string;
|
|
476
|
+
status?: string;
|
|
477
|
+
created_time?: string;
|
|
478
|
+
locale?: string;
|
|
479
|
+
questions?: {
|
|
480
|
+
key?: string;
|
|
481
|
+
label?: string;
|
|
482
|
+
type?: string;
|
|
483
|
+
id?: string;
|
|
484
|
+
}[];
|
|
485
|
+
}
|