🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@anarock/api-typings

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anarock/api-typings - npm Package Compare versions

Comparing version

to
2.1.0

{
"name": "@anarock/api-typings",
"version": "2.0.2",
"version": "2.1.0",
"main": "index.js",
"repository": "https://github.com/anarock/anarock.api-typings",
"author": "ritz078 <rkritesh078@gmail.com>",
"author": "Anarock <developer@anarock.com>",
"scripts": {

@@ -8,0 +8,0 @@ "build": "rm -rf examples typings && node scripts/build",

@@ -162,3 +162,4 @@ {

"event_type": {
"enum": ["sv", "f2f", "followup"]
"enum": ["sv", "f2f", "followup"],
"tsEnumNames": ["SITE_VISIT", "FACE_TO_FACE", "FOLLOW_UP"]
},

@@ -241,3 +242,3 @@ "event_status": {

"role_on_entity": {
"enum": ["owner", "viewer"]
"$ref": "#/definitions/agentRole"
},

@@ -282,3 +283,4 @@ "location_info": {

"note_type": {
"enum": ["text"]
"enum": ["text", "audio"],
"tsEnumNames": ["TEXT", "AUDIO"]
},

@@ -289,2 +291,8 @@ "data": {

},
"audio_url": {
"type": "string"
},
"audio_duration": {
"type": "number"
},
"created_at": {

@@ -565,3 +573,3 @@ "$ref": "#/definitions/pastDate"

"role_on_entity": {
"enum": ["owner", "viewer"]
"$ref": "#/definitions/agentRole"
}

@@ -571,2 +579,7 @@ },

},
"agentRole": {
"title": "AgentRole",
"enum": ["owner", "viewer"],
"tsEnumNames": ["OWNER", "VIEWER"]
},
"lead": {

@@ -619,4 +632,6 @@ "type": "object",

{
"title": "Rating",
"type": "integer",
"enum": [1, 2, 3]
"enum": [1, 2, 3],
"tsEnumNames": ["COLD", "WARM", "HOT"]
},

@@ -635,3 +650,16 @@ {

"status_id": {
"enum": [2, 5, 6, 7, 8, 9, 10, 11, 12, 13]
"title": "LeadStatus",
"enum": [2, 5, 6, 7, 8, 9, 10, 11, 12, 13],
"tsEnumNames": [
"JUNK",
"FRESH",
"CLAIMED",
"INTERESTED",
"MEETING_DONE",
"VISIT_DONE",
"FINAL_NEGOTIATION",
"BOOKING_DONE",
"FAILED",
"LINKED"
]
},

@@ -638,0 +666,0 @@ "is_incoming_lead": {

@@ -133,3 +133,3 @@ {

"items": {
"$ref": "#/definitions/Reason"
"$ref": "#/definitions/Configurable"
}

@@ -164,3 +164,3 @@ },

"items": {
"$ref": "#/definitions/Reason"
"$ref": "#/definitions/Configurable"
}

@@ -195,3 +195,3 @@ },

"items": {
"$ref": "#/definitions/Reason"
"$ref": "#/definitions/Configurable"
}

@@ -202,3 +202,3 @@ },

"items": {
"$ref": "#/definitions/Reason"
"$ref": "#/definitions/Configurable"
}

@@ -250,17 +250,134 @@ },

"$ref": "#/definitions/IncentivesMeta"
},
"channel_partner_event_types": {
"type": "array",
"items": {
"$ref": "#/definitions/IdWithDisplayName"
}
},
"channel_partner_event_statuses": {
"type": "array",
"items": {
"$ref": "#/definitions/IdWithDisplayName"
}
},
"agent_cp_project_statuses": {
"type": "array",
"items": {
"$ref": "#/definitions/IdWithDisplayName"
}
},
"channel_partner_event_cancellation_reasons": {
"type": "array",
"items": {
"$ref": "#/definitions/IdWithDisplayName"
}
},
"channels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"channel_sources": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"channels_data": {
"$ref": "#/definitions/ChannelsData"
},
"channel_sources_data": {
"$ref": "#/definitions/ChannelsData"
},
"channel_sub_sources": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"customer_types": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"browse_internet_fors": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"channel_partner_transfer_reasons": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"budgets": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"mode_of_travel_to_sites": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"vehicle_owneds": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"need_parking_types": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"accommodation_types": {
"type": "array",
"items": {
"$ref": "#/definitions/Configurable"
}
},
"invoices_meta": {
"$ref": "#/definitions/InvoicesMeta"
},
"enable_source_selection": {
"type": "boolean"
}
},
"required": [
"accommodation_types",
"accompanied_by",
"after_call_status_metadata",
"age",
"agent_cp_project_statuses",
"annual_incomes",
"apartment_types",
"bookings_meta",
"browse_internet_fors",
"budgets",
"cancel_event_metadata",
"channel_partner_event_cancellation_reasons",
"channel_partner_event_statuses",
"channel_partner_event_types",
"channel_partner_not_interested_reasons",
"channel_partner_transfer_reasons",
"channel_sources",
"channel_sources_data",
"channel_sub_sources",
"channels",
"channels_data",
"cloudinary_cloud_name",
"customer_types",
"direction_preferences",
"dynamic_after_call_status_metadata",
"enable_lead_without_phone",
"enable_source_selection",
"entity_agent_mappings_roles",

@@ -276,2 +393,3 @@ "entity_agent_mappings_statuses",

"industries",
"invoices_meta",
"junk_reasons",

@@ -282,2 +400,4 @@ "lead_failure_reasons",

"miscellaneous_unit_configurations",
"mode_of_travel_to_sites",
"need_parking_types",
"not_contacted_follow_window_in_days",

@@ -302,3 +422,4 @@ "not_contacted_reasons",

"tenant_enable_incentives",
"terms_of_use"
"terms_of_use",
"vehicle_owneds"
],

@@ -389,3 +510,3 @@ "definitions": {

"items": {
"$ref": "#/definitions/LevelMapping"
"$ref": "#/definitions/IdWithDisplayName"
}

@@ -404,2 +525,8 @@ },

}
},
"fee_share_entity_type_mapping": {
"type": "array",
"items": {
"$ref": "#/definitions/StringIdWithName"
}
}

@@ -413,2 +540,3 @@ },

"co_applicant_statuses",
"fee_share_entity_type_mapping",
"level_mapping"

@@ -423,2 +551,5 @@ ]

"properties": {
"order": {
"type": "integer"
},
"title": {

@@ -431,21 +562,5 @@ "type": "string"

},
"required": ["definition", "title"]
"required": ["definition", "order", "title"]
}
},
"LevelMapping": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"display_name": {
"type": "string"
}
},
"required": ["display_name", "id", "name"]
},
"CancelEventMetadatum": {

@@ -585,3 +700,4 @@ "type": "object",

"event_type": {
"enum": ["followup", "f2f", "sv"]
"enum": ["followup", "f2f", "sv"],
"tsEnumNames": ["FOLLOW_UP", "FACE_TO_FACE", "SITE_VISIT"]
},

@@ -660,2 +776,3 @@ "default_reminder_time": {

"answer_type": {
"title": "QuestionAnswerType",
"enum": [

@@ -676,3 +793,3 @@ "boolean",

"items": {
"$ref": "#/definitions/Configurable"
"$ref": "#/definitions/QuestionConfigurable"
}

@@ -711,3 +828,3 @@ },

},
"Configurable": {
"QuestionConfigurable": {
"type": "object",

@@ -731,11 +848,5 @@ "additionalProperties": false,

"type": "boolean"
},
"old_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["id", "is_seeded", "name"]
"required": ["id", "is_seeded", "name", "priority", "to_be_shown_on_app"]
},

@@ -1105,2 +1216,82 @@ "ReimbursementMetadata": {

},
"Configurable": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string"
},
"is_seeded": {
"type": "boolean"
},
"category_label": {
"type": "string"
},
"old_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"to_be_shown_on_app": {
"type": "boolean"
},
"to_be_shown_on_cc": {
"type": "boolean"
},
"to_be_shown_on_sd": {
"type": "boolean"
}
},
"required": [
"id",
"is_seeded",
"name",
"to_be_shown_on_app",
"to_be_shown_on_cc",
"to_be_shown_on_sd"
]
},
"ChannelsDatum": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"id": {
"type": "integer"
},
"types": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["id", "name", "types"]
},
"InvoicesMeta": {
"type": "object",
"additionalProperties": false,
"properties": {
"invoice_statuses": {
"type": "array",
"items": {
"type": "string"
}
},
"document_categories": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["document_categories", "invoice_statuses"]
},

@@ -1164,2 +1355,19 @@ "IdWithLabel": {

"IdWithDisplayName": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"display_name": {
"type": "string"
}
},
"required": ["display_name", "id", "name"]
},
"EventMetadata": {

@@ -1189,4 +1397,10 @@ "type": "array",

}
},
"ChannelsData": {
"type": "array",
"items": {
"$ref": "#/definitions/ChannelsDatum"
}
}
}
}

@@ -64,3 +64,5 @@ {

"role_on_entity": {
"enum": ["owner", "viewer"]
"title": "AgentRole",
"enum": ["owner", "viewer"],
"tsEnumNames": ["OWNER", "VIEWER"]
},

@@ -193,3 +195,4 @@ "agent_types": {

"note_type": {
"enum": ["text"]
"enum": ["text", "audio"],
"tsEnumNames": ["TEXT", "AUDIO"]
},

@@ -200,2 +203,8 @@ "data": {

},
"audio_url": {
"type": "string"
},
"audio_duration": {
"type": "number"
},
"created_at": {

@@ -202,0 +211,0 @@ "$ref": "#/definitions/pastDate"

@@ -7,19 +7,27 @@ {

"required": [
"id",
"app_section_visibility",
"assignment_details",
"auth_token",
"booking_access_details",
"company",
"country_id",
"department",
"device_id",
"email",
"employee_code",
"expires_at",
"expires_in",
"id",
"is_available",
"is_random_password",
"name",
"otp_login",
"phone",
"department",
"device_id",
"assignment_details",
"is_available",
"profile_type",
"user_type",
"country_id",
"profile_types",
"profiles",
"reporting_manager_details",
"role",
"auth_token",
"reporting_manager_details",
"app_section_visibility"
"user_roles",
"user_type"
],

@@ -94,2 +102,35 @@ "properties": {

"$ref": "#/definitions/app_section_visibility"
},
"user_roles": {
"type": "array",
"items": {
"type": "string"
}
},
"otp_login": {
"type": "boolean"
},
"profiles": {
"type": "array",
"items": {
"$ref": "#/definitions/Profile"
}
},
"is_random_password": {
"type": "boolean"
},
"profile_types": {
"type": "array",
"items": {
"type": "string"
}
},
"employee_code": {
"type": "string"
},
"company": {
"type": "string"
},
"booking_access_details": {
"$ref": "#/definitions/BookingAccessDetails"
}

@@ -103,52 +144,6 @@ },

"lead_funnel": {
"type": "object",
"additionalProperties": false,
"properties": {
"fresh": {
"type": "boolean"
},
"claimed": {
"type": "boolean"
},
"interested": {
"type": "boolean"
},
"junk": {
"type": "boolean"
},
"failed": {
"type": "boolean"
},
"final_negotiation": {
"type": "boolean"
},
"booking_done": {
"type": "boolean"
}
},
"required": [
"fresh",
"claimed",
"interested",
"junk",
"failed",
"booking_done",
"final_negotiation"
]
"$ref": "#/definitions/LeadFunnel"
},
"user_profile": {
"type": "object",
"additionalProperties": false,
"properties": {
"incentive": {
"type": "boolean"
},
"reimbursement": {
"type": "boolean"
},
"project_section": {
"type": "boolean"
}
},
"required": ["incentive", "reimbursement", "project_section"]
"$ref": "#/definitions/UserProfile"
}

@@ -162,9 +157,14 @@ },

"required": [
"assignment",
"assignment_id",
"assignment_supply_entity_mapping_id",
"assignment_type",
"assignment_supply_entity_mapping_id",
"assignment_id",
"disable_visit_done_from_app",
"is_lead_flow_active",
"manager_id",
"masking_type",
"name",
"primary_locality_name",
"project_id",
"manager_id"
"show_location_app"
],

@@ -198,9 +198,219 @@ "properties": {

"minimum": 1
},
"assignment": {
"type": "integer"
},
"is_lead_flow_active": {
"type": "boolean"
},
"disable_visit_done_from_app": {
"type": "boolean"
},
"masking_type": {
"type": "string"
},
"show_location_app": {
"type": "boolean"
}
}
},
"LeadFunnel": {
"type": "object",
"additionalProperties": false,
"properties": {
"fresh": {
"type": "boolean"
},
"claimed": {
"type": "boolean"
},
"interested": {
"type": "boolean"
},
"junk": {
"type": "boolean"
},
"failed": {
"type": "boolean"
},
"final_negotiation": {
"type": "boolean"
},
"booking_done": {
"type": "boolean"
}
},
"required": [
"booking_done",
"claimed",
"failed",
"final_negotiation",
"fresh",
"interested",
"junk"
]
},
"UserProfile": {
"type": "object",
"additionalProperties": false,
"properties": {
"incentive": {
"type": "boolean"
},
"reimbursement": {
"type": "boolean"
},
"project_section": {
"type": "boolean"
}
},
"required": ["incentive", "project_section", "reimbursement"]
},
"BookingAccessDetails": {
"type": "object",
"additionalProperties": false,
"properties": {
"only_booking_approver": {
"type": "boolean"
},
"asem_details": {
"type": "array",
"items": {
"$ref": "#/definitions/AsemDetails"
}
}
},
"required": ["asem_details", "only_booking_approver"]
},
"AsemDetails": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"asem_id": {
"type": "integer"
},
"assignment_id": {
"type": "integer"
},
"assignment_name": {
"type": "string"
}
},
"required": ["asem_id", "assignment_id", "assignment_name", "id", "name"]
},
"Profile": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"profile_type": {
"type": "string"
},
"parent_id": {
"type": "integer"
},
"reporting_manager_id": {
"type": "integer"
},
"profile_details": {
"$ref": "#/definitions/ProfileDetails"
},
"status": {
"type": "string"
}
},
"required": [
"id",
"parent_id",
"profile_details",
"profile_type",
"reporting_manager_id",
"status"
]
},
"ProfileDetails": {
"type": "object",
"additionalProperties": false,
"properties": {
"role": {
"type": "string"
},
"device_id": {
"type": "string"
},
"department": {
"type": "string"
},
"designation": {
"type": "string"
},
"is_available": {
"type": "boolean"
},
"employee_code": {
"type": "string"
},
"sub_department": {
"type": "string"
},
"daily_lead_limit": {
"type": "integer"
},
"agent_app_version": {
"type": "string"
},
"max_mandates_count": {
"type": "integer"
},
"is_logged_in_on_app": {
"type": "boolean"
},
"call_center_agent_id": {
"type": "string"
},
"cooling_period_in_sec": {
"type": "integer"
},
"team_lead_app_version": {
"type": "string"
},
"latest_activity_timestamp": {
"type": "string",
"format": "date-time"
},
"allowed_multiple_assignment_types": {
"type": "boolean"
}
},
"required": [
"agent_app_version",
"allowed_multiple_assignment_types",
"call_center_agent_id",
"cooling_period_in_sec",
"daily_lead_limit",
"department",
"designation",
"device_id",
"employee_code",
"is_available",
"is_logged_in_on_app",
"latest_activity_timestamp",
"max_mandates_count",
"role",
"sub_department",
"team_lead_app_version"
]
},
"reportingManagerDetails": {
"type": "object",
"additionalProperties": false,
"required": ["id", "name", "phone"],
"required": ["id", "name", "phone_with_country_code"],
"properties": {

@@ -215,3 +425,3 @@ "id": {

},
"phone": {
"phone_with_country_code": {
"type": "string",

@@ -218,0 +428,0 @@ "faker": "phone.phoneNumberFormat"

@@ -43,6 +43,6 @@ /**

max_budget?: number;
rating: (1 | 2 | 3) | null;
rating: Rating | null;
category?: string;
claimed_at?: PastDate;
status_id: 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13;
status_id: LeadStatus;
is_incoming_lead: boolean;

@@ -118,3 +118,3 @@ is_patch_out_lead?: boolean;

end_time: number;
event_type: "sv" | "f2f" | "followup";
event_type: EventType;
event_status: EventStatus;

@@ -139,3 +139,3 @@ event_title: string;

agents_details: AgentDetail[];
role_on_entity: "owner" | "viewer";
role_on_entity: AgentRole;
location_info?: LocationInfo;

@@ -145,4 +145,6 @@ }

note_id: PositiveInt;
note_type: "text";
note_type: NoteType;
data: string;
audio_url?: string;
audio_duration?: number;
created_at: PastDate;

@@ -169,3 +171,3 @@ updated_at?: PastDate;

phone: PhoneNumber;
role_on_entity: "owner" | "viewer";
role_on_entity: AgentRole;
}

@@ -285,2 +287,24 @@ export interface ExtraDetails {

export enum Rating {
COLD = 1,
WARM = 2,
HOT = 3
}
export enum LeadStatus {
JUNK = 2,
FRESH = 5,
CLAIMED = 6,
INTERESTED = 7,
MEETING_DONE = 8,
VISIT_DONE = 9,
FINAL_NEGOTIATION = 10,
BOOKING_DONE = 11,
FAILED = 12,
LINKED = 13
}
export enum EventType {
SITE_VISIT = "sv",
FACE_TO_FACE = "f2f",
FOLLOW_UP = "followup"
}
export enum EventStatus {

@@ -293,1 +317,9 @@ NEW = "new",

}
export enum NoteType {
TEXT = "text",
AUDIO = "audio"
}
export enum AgentRole {
OWNER = "owner",
VIEWER = "viewer"
}

@@ -12,2 +12,13 @@ /**

export type CancelEventMetaData = CancelEventMetadatum[];
export type QuestionAnswerType =
| "boolean"
| "number"
| "text"
| "date"
| "single_select_dropdown"
| "multi_select_dropdown"
| "single_select_radio"
| "multi_select_checkboxes"
| "place";
export type ChannelsData = ChannelsDatum[];

@@ -41,3 +52,3 @@ export interface MetaDataAPI {

parkings: Configurable[];
channel_partner_not_interested_reasons: Reason[];
channel_partner_not_interested_reasons: Configurable[];
direction_preferences: Configurable[];

@@ -47,3 +58,3 @@ payment_modes: Configurable[];

industries: Configurable[];
failed_reasons: Reason[];
failed_reasons: Configurable[];
orientations: Configurable[];

@@ -53,4 +64,4 @@ occupations: Configurable[];

genders: Configurable[];
junk_reasons: Reason[];
lead_failure_reasons: Reason[];
junk_reasons: Configurable[];
lead_failure_reasons: Configurable[];
property_types: Configurable[];

@@ -65,2 +76,27 @@ accompanied_by: Configurable[];

incentives_meta: IncentivesMeta;
channel_partner_event_types: IdWithDisplayName[];
channel_partner_event_statuses: IdWithDisplayName[];
agent_cp_project_statuses: IdWithDisplayName[];
channel_partner_event_cancellation_reasons: IdWithDisplayName[];
channels: {
[k: string]: string;
};
channel_sources: {
[k: string]: string;
};
channels_data: ChannelsData;
channel_sources_data: ChannelsData;
channel_sub_sources: {
[k: string]: string;
};
customer_types: Configurable[];
browse_internet_fors: Configurable[];
channel_partner_transfer_reasons: Configurable[];
budgets: Configurable[];
mode_of_travel_to_sites: Configurable[];
vehicle_owneds: Configurable[];
need_parking_types: Configurable[];
accommodation_types: Configurable[];
invoices_meta: InvoicesMeta;
enable_source_selection: boolean;
}

@@ -70,3 +106,3 @@ export interface EventMetadatum {

name: string;
event_type: "followup" | "f2f" | "sv";
event_type: EventType;
default_reminder_time: number;

@@ -184,13 +220,5 @@ default_meeting_durations: number[];

name: string;
priority?: number;
to_be_shown_on_app?: boolean;
is_seeded: boolean;
category_label?: string;
old_ids?: string[];
}
export interface Reason {
id: string;
name: string;
is_seeded: boolean;
category_label: string;
old_ids: string[] | null;
to_be_shown_on_app: boolean;

@@ -204,16 +232,14 @@ to_be_shown_on_cc: boolean;

payload_key: string;
answer_type:
| "boolean"
| "number"
| "text"
| "date"
| "single_select_dropdown"
| "multi_select_dropdown"
| "single_select_radio"
| "multi_select_checkboxes"
| "place";
configurables: Configurable[];
answer_type: QuestionAnswerType;
configurables: QuestionConfigurable[];
answer_regex: null | string;
error_message: null | string;
}
export interface QuestionConfigurable {
id: string;
name: string;
priority: number;
to_be_shown_on_app: boolean;
is_seeded: boolean;
}
export interface BookingsMeta {

@@ -223,7 +249,8 @@ booking_statuses: IdWithName[];

booking_log_statuses: IdWithName[];
level_mapping: LevelMapping[];
level_mapping: IdWithDisplayName[];
action_mapping: IdWithName[];
approval_status_mapping: StringIdWithName[];
fee_share_entity_type_mapping: StringIdWithName[];
}
export interface LevelMapping {
export interface IdWithDisplayName {
id: number;

@@ -239,2 +266,3 @@ name: string;

[k: string]: {
order: number;
title: string;

@@ -244,1 +272,16 @@ definition: string;

}
export interface ChannelsDatum {
name: string;
id: number;
types: string[];
}
export interface InvoicesMeta {
invoice_statuses: string[];
document_categories: string[];
}
export enum EventType {
FOLLOW_UP = "followup",
FACE_TO_FACE = "f2f",
SITE_VISIT = "sv"
}

@@ -69,3 +69,3 @@ /**

name: string;
role_on_entity: "owner" | "viewer";
role_on_entity: AgentRole;
agent_types: string[];

@@ -81,4 +81,6 @@ }

note_id: PositiveInt;
note_type: "text";
note_type: NoteType;
data: string;
audio_url?: string;
audio_duration?: number;
created_at: PastDate;

@@ -105,1 +107,9 @@ updated_at?: PastDate;

}
export enum AgentRole {
OWNER = "owner",
VIEWER = "viewer"
}
export enum NoteType {
TEXT = "text",
AUDIO = "audio"
}

@@ -27,2 +27,10 @@ /**

app_section_visibility: AppSectionVisibility;
user_roles: string[];
otp_login: boolean;
profiles: Profile[];
is_random_password: boolean;
profile_types: string[];
employee_code: string;
company: string;
booking_access_details: BookingAccessDetails;
}

@@ -37,2 +45,7 @@ export interface AssignmentDetails {

manager_id: number;
assignment: number;
is_lead_flow_active: boolean;
disable_visit_done_from_app: boolean;
masking_type: string;
show_location_app: boolean;
}

@@ -42,19 +55,58 @@ export interface ReportingManagerDetails {

name: string;
phone: string;
phone_with_country_code: string;
}
export interface AppSectionVisibility {
lead_funnel: {
fresh: boolean;
claimed: boolean;
interested: boolean;
junk: boolean;
failed: boolean;
final_negotiation: boolean;
booking_done: boolean;
};
user_profile: {
incentive: boolean;
reimbursement: boolean;
project_section: boolean;
};
lead_funnel: LeadFunnel;
user_profile: UserProfile;
}
export interface LeadFunnel {
fresh: boolean;
claimed: boolean;
interested: boolean;
junk: boolean;
failed: boolean;
final_negotiation: boolean;
booking_done: boolean;
}
export interface UserProfile {
incentive: boolean;
reimbursement: boolean;
project_section: boolean;
}
export interface Profile {
id: number;
profile_type: string;
parent_id: number;
reporting_manager_id: number;
profile_details: ProfileDetails;
status: string;
}
export interface ProfileDetails {
role: string;
device_id: string;
department: string;
designation: string;
is_available: boolean;
employee_code: string;
sub_department: string;
daily_lead_limit: number;
agent_app_version: string;
max_mandates_count: number;
is_logged_in_on_app: boolean;
call_center_agent_id: string;
cooling_period_in_sec: number;
team_lead_app_version: string;
latest_activity_timestamp: string;
allowed_multiple_assignment_types: boolean;
}
export interface BookingAccessDetails {
only_booking_approver: boolean;
asem_details: AsemDetails[];
}
export interface AsemDetails {
id: number;
name: string;
asem_id: number;
assignment_id: number;
assignment_name: string;
}