app-v3-scripts-editor 1.38.4 → 1.38.6

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.
@@ -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
- LEAD_ADS_FORM = "LEAD_ADS_FORM"
5
+ LEAD_CREATED = "lead_created"
6
6
  }
7
7
  export declare const FacebookLeadAdsTypeLabel: {
8
- LEAD_ADS_FORM: string;
8
+ lead_created: string;
9
9
  };
10
10
  export declare const FacebookLeadAdsTypeDescription: {
11
- LEAD_ADS_FORM: string;
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
- action?: FACEBOOK_LEAD_ADS_ACTION_TYPE;
17
- facebook_account?: string;
18
- lead_form?: string;
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
- updated_at: string;
466
- created_at: string;
467
- fbid: string;
468
- name: string;
469
- picture: string;
470
- link: string;
471
- access_token: string;
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
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.38.4",
4
+ "version": "1.38.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"