FollowUpHistory
FollowUpHistory
Description
L'entité FollowUpHistory stocke l'historique des relances.
Relations
Ascendantes
Entité | Propriété |
|---|---|
Project | followUpHistory |
Descendantes
Entité | Propriété |
|---|
Liste des propriétés
Nom | Type | DerniÚre version modifiée | Description | Getter | Setter | Deprecated |
|---|---|---|---|---|---|---|
createdAt | Date | ï»ż | Date de crĂ©ation de l'entitĂ© FollowUpHistory | getFollowUpHistoryCreatedAt | Lecture seule | - |
createdBy | String | ï»ż | Utilisateur Ă l'origine de la crĂ©ation de l'entitĂ© FollowUpHistory | getFollowUpHistoryCreatedBy | Lecture seule | - |
date | Date | 2.13.0 | Date de la relance. | getFollowUpHistoryDate | setFollowUpHistoryDate | - |
id | String | ï»ż | Identifiant unique de l'entitĂ© FollowUpHistory | getFollowUpHistoryId | Lecture seule | - |
type | String | 2.13.0 | Type de la relance. | getFollowUpHistoryType | setFollowUpHistoryType | - |
updatedAt | Date | ï»ż | Date de modification de l'entitĂ© FollowUpHistory | getFollowUpHistoryUpdatedAt | Lecture seule | - |
updatedBy | String | ï»ż | Utilisateur Ă l'origine de la modification de l'entitĂ© FollowUpHistory | getFollowUpHistoryUpdatedBy | Lecture seule | - |
Enums
Aucune enumération disponible pour cette entité.
Exemple
import { Entities } from '@fasstech/oip-core';
import { getFollowUpHistoryDate, getFollowUpHistoryType, getfollowUpHistoryId, setFollowUpHistoryDate, setFollowUpHistoryType } from '@fasstech/oip-core/entities/followUpHistory';
import { getProjectId } from '@fasstech/oip-core/entities/project';
(async () => {
let ProjectEntity = await Entities('Project').get({ id: projectId });
const FollowUpHistoryEntity = await Entities('FollowUpHistory').create();
setFollowUpHistoryDate(new Date('2017-01-01'), FollowUpHistoryEntity);
setFollowUpHistoryType('type', FollowUpHistoryEntity);
ProjectEntity = await Entities('FollowUpHistory').save(ProjectEntity, FollowUpHistoryEntity);
await Entities('Project').save(ProjectEntity);
const ProjectEntityToTest = await Entities('Project').get({ id: getProjectId(ProjectEntity) });
const FollowUpHistoryEntityToTest = await Entities('FollowUpHistory').get(ProjectEntityToTest, getFollowUpHistoryId(FollowUpHistoryEntity));
getFollowUpHistoryDate(FollowUpHistoryEntityToTest); // new Date('2017-01-01')
getFollowUpHistoryType(FollowUpHistoryEntityToTest); // 'type'
})();