OptionalcontractOptionalcontract_OptionaldeletedOptionalrestoredOptionalsimulationOptionalsimulation_Lead ID
Date created
Date updated
Date deleted
Created By
Field relation sw001.sw001s01
Updated By
Field relation sw001.sw001s01
Deleted By
Field relation sw001.sw001s01
Requiredsw025s08Firstname
Requiredsw025s09Lastname
Requiredsw025s10Requiredsw025s11Phone / Mobile
Requiredsw025s12Language App
Field relation sw009.sw009s01
Segment Type
Field relation sw010.sw010s01
Where Met Us
Field relation sw021.sw021s01
Trader
Field relation sw022.sw022s01
Requiredsw025s16Trader - Other
Date capture
Date updated
Date Transfer BPO
Requiredsw025s20State Lead
Field relation sw024.sw024s01
Requiredsw025s21Source Data Lead ID
Field relation sw023.sw023s01
Url (Referer)
Commissioned By
Field relation sw001.sw001s01
Edit Mode
Requiredsw025s25UUID
Date of birth
UTM (campaign)
UTM (content)
UTM (term)
Route Web
Schedule Call
Click2call
Attempts
Requiredsw025s34Source Data Lead - Other
Observations
States Lead
Field relation sw115.sw115s01
Sub States Lead
Field relation sw116.sw116s01
Reason Sub States Lead
Field relation sw116.sw116s01
Assigned to
Field relation sw001.sw001s01
Date Assigned
Completed By
Field relation sw001.sw001s01
Date Completed
Requiredsw025s45Address - Postal code
Requiredsw025s46Address - Province
Field relation sw073.sw073s09
Requiredsw025s47Address - Municipality
Field relation sw073.sw073s09
Requiredsw025s48Address - Locality
Field relation sw073.sw073s09
Requiredsw025s49Address - Type of road ID
Field relation sw018.sw018s01
Requiredsw025s50Address - Description road
Address - Number
Address - Block
Address - Port
Address - Complement
Requiredsw025s55Document Country ID
Field relation sw017.sw017s01
Requiredsw025s56Document Type ID
Field relation sw019.sw019s01
Requiredsw025s57Document Number
Requiredsw025s58Document expiration date
Status Blocked
Requiredsw025s60Address Country ID
Field relation sw017.sw017s01
OptionalupdatedStatictargetReturns object that is managed by this repository. If this repository manages entity from schema, then it returns a name of that schema instead.
Checks if entity has an id. If entity composite compose ids, it will check them all.
Recovers a given entity in the database.
Optionaloptions: SaveOptionsReloads entity data from the database.
Removes current entity from the database.
Optionaloptions: RemoveOptionsSaves current entity in the database. If entity does not exist in the database then inserts, otherwise updates.
Optionaloptions: SaveOptionsRecords the delete date of current entity.
Optionaloptions: SaveOptionsStaticaverageStaticclearClears all the data from the given table/collection (truncates/drops it).
StaticcountStaticcountStaticcreateStaticcreateStaticdeleteDeletes entities by a given criteria. Unlike remove method executes a primitive operation without cascades, relations and other operations included. Executes fast and efficient DELETE query. Does not check if entity exist in the database.
StaticexistsStaticexistsStaticfindStaticfindFinds entities that match given find options. Also counts all entities that match given conditions, but ignores pagination settings (from and take options).
StaticfindStaticfindStaticfindStaticfindStaticfindStaticfindStaticfindStaticfindStaticgetStaticgetStatichasChecks entity has an id. If entity composite compose ids, it will check them all.
StaticinsertInserts a given entity into the database. Unlike save method executes a primitive operation without cascades, relations and other operations included. Executes fast and efficient INSERT query. Does not check if entity exist in the database, so query will fail if duplicate entity is being inserted.
StaticmaximumStaticmergeStaticminimumStaticpreloadCreates a new entity from the given plain javascript object. If entity already exist in the database, then it loads it (and everything related to it), replaces all values with the new ones from the given object and returns this new entity. This new entity is actually a loaded from the db entity with all properties replaced from the new object.
Note that given entity-like object must have an entity id / primary key to find entity by. Returns undefined if entity with given id was not found.
StaticqueryExecutes a raw SQL query and returns a raw database results. Raw query execution is supported only by relational databases (MongoDB is not supported).
Optionalparameters: any[]StaticremoveStaticsaveStaticsoftStaticsumStaticupdateUpdates entity partially. Entity can be found by a given conditions. Unlike save method executes a primitive operation without cascades, relations and other operations included. Executes fast and efficient UPDATE query. Does not check if entity exist in the database.
StaticupsertInserts a given entity into the database, unless a unique constraint conflicts then updates the entity Unlike save method executes a primitive operation without cascades, relations and other operations included. Executes fast and efficient INSERT ... ON CONFLICT DO UPDATE/ON DUPLICATE KEY UPDATE query.
StaticuseSets DataSource to be used by entity.
Leads - History
Tabela histórico para gerir as Leads