app-v3-scripts-editor 1.36.4 → 1.36.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.
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { default as CampaignSelector } from '../../../../Selector/Campaign';
3
+ type CampaignSelectProps = React.ComponentProps<typeof CampaignSelector>;
4
+ declare const CallbotCampaignSelect: React.FC<CampaignSelectProps>;
5
+ export default CallbotCampaignSelect;
@@ -36,6 +36,7 @@ export interface CallbotActionNodeData extends INodeBaseType, Record<string, unk
36
36
  groups?: CallbotActionGroup[];
37
37
  object?: string;
38
38
  campaign_id?: string;
39
+ campaign_name?: string;
39
40
  call_campaign_customer?: string[];
40
41
  update_fields?: {
41
42
  id?: string;
@@ -1,8 +1,12 @@
1
1
  import { IProfile } from '../../../../services';
2
2
  import { VariableSuggestSelectProps } from '../../Shared/VariableSuggestSelect';
3
+ type UserVariableValueKey = {
4
+ [Key in keyof IProfile]: NonNullable<IProfile[Key]> extends string | number ? Key : never;
5
+ }[keyof IProfile];
3
6
  type UserVariableSelectorProps = {
4
7
  dataDefault?: IProfile | IProfile[];
5
8
  exclusiveTabSelection?: boolean;
9
+ valueKey?: UserVariableValueKey;
6
10
  } & Omit<VariableSuggestSelectProps, "options" | "defaultOptions" | "onSearch" | "tagRender">;
7
11
  declare const UserVariableSelector: React.FC<UserVariableSelectorProps>;
8
12
  export default UserVariableSelector;
@@ -1,6 +1,8 @@
1
+ import { CallbotGroupConditionModel } from '.';
1
2
  interface Props {
2
3
  groupIndex: number;
3
4
  name: number;
5
+ model: CallbotGroupConditionModel;
4
6
  campaignId?: string;
5
7
  idOptionValue?: string;
6
8
  formItemName: (string | number)[];
@@ -7,6 +7,7 @@ type InputByTypeProps = {
7
7
  required?: boolean;
8
8
  operator?: string;
9
9
  onValueChange?: SelectProps["onChange"];
10
+ objectType?: "CRM" | "CALLBOT";
10
11
  };
11
12
  declare const InputByType: React.FC<InputByTypeProps>;
12
13
  export default InputByType;
@@ -8,6 +8,7 @@ type FieldSettingItemContainerProps = {
8
8
  allProperty: IPropertyV2[];
9
9
  formListName: string;
10
10
  locked?: boolean;
11
+ objectType?: "CRM" | "CALLBOT";
11
12
  };
12
13
  declare const FieldSettingItemContainer: React.FC<FieldSettingItemContainerProps>;
13
14
  export default FieldSettingItemContainer;
@@ -1,2 +1,3 @@
1
1
  export declare const emailRegex: RegExp;
2
2
  export declare const variableRegex: RegExp;
3
+ export declare const phoneNumberRegex: RegExp;
@@ -260,6 +260,10 @@ export interface ICompany {
260
260
  }
261
261
  export interface IProfile {
262
262
  id: string;
263
+ profile: string;
264
+ user: string;
265
+ user_name?: string;
266
+ is_active?: boolean;
263
267
  email: string;
264
268
  phone_number: string;
265
269
  company: ICompany;
@@ -313,6 +317,7 @@ export interface IOutput {
313
317
  node_type?: BlockType;
314
318
  order?: number;
315
319
  output_mode?: string[];
320
+ is_updated?: boolean;
316
321
  }[];
317
322
  output_mode?: string[];
318
323
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "app-v3-scripts-editor",
3
3
  "private": false,
4
- "version": "1.36.4",
4
+ "version": "1.36.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ucall-asia/app-v3-scripts-editor.git"