Funeral
Funeral
Description
L'entité Funeral porte le recueil des informations relatives aux besoins et aux options/configurations pour les obsÚques.
Relations
Ascendantes
Entité | Propriété |
|---|---|
OSCommonProps | funerals |
Project | funerals |
Descendantes
Entité | Propriété |
|---|---|
History | history |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
coffinSymbol | String | Symbole ou emblĂšme du cercueil. | ï»ż | ï»ż | ï»ż | 3.19.0 |
planner | String | Indique la personne en charge de l'organisation des obsĂšques. | ï»ż | ï»ż | ï»ż | 3.19.0 |
protectionGoals | String | Objectifs de prĂ©voyance obsĂšques pour le client (ex. : prestation ou capital). | ï»ż | ï»ż | ï»ż | 3.19.0 |
typeBurial | String | Type d'inhumation. | ï»ż | ï»ż | ï»ż | 3.19.0 |
typeCeremony | String | Type de cĂ©rĂ©monie souhaitĂ©e. | ï»ż | ï»ż | ï»ż | 3.19.0 |
typeCremation | String | Type de crĂ©mation. | ï»ż | ï»ż | ï»ż | 3.19.0 |
typeFuneral | String | Type d'obsĂšques (ex. : inhumation ou crĂ©mation). | ï»ż | ï»ż | ï»ż | 3.19.0 |
id | String | Identifiant de l'entitĂ© Funeral | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© Funeral | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© Funeral dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© Funeral dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
funeralId | String | Identifiant public de l'entitĂ© Funeral dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© Funeral dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© Funeral | ï»ż | X | ï»ż | ï»ż |
createdBy | String | Responsable de la crĂ©ation de l'entitĂ© Funeral | ï»ż | ï»ż | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© Funeral | ï»ż | X | ï»ż | ï»ż |
updatedBy | String | Responsable de la derniĂšre mise Ă jour de l'entitĂ© Funeral | ï»ż | ï»ż | ï»ż | ï»ż |
Enumérations
Aucune enumération.
Enumérations génériques
Aucune enumération générique.
Exemple
import { Entities } from '@fasstech/oip-core';
import { getCompanyId } from '@fasstech/oip-core/entities/Company';
import { getFuneralCode, getFuneralCoffinSymbol, getFuneralCreatedBy, getFuneralExternalCode, getFuneralExternalId, getFuneralFuneralId, getFuneralId, getFuneralLabel, getFuneralPlanner, getFuneralProtectionGoals, getFuneralTypeBurial, getFuneralTypeCeremony, getFuneralTypeCremation, getFuneralTypeFuneral, getFuneralUpdatedBy, setFuneralCode, setFuneralCoffinSymbol, setFuneralCreatedBy, setFuneralExternalCode, setFuneralExternalId, setFuneralFuneralId, setFuneralLabel, setFuneralPlanner, setFuneralProtectionGoals, setFuneralTypeBurial, setFuneralTypeCeremony, setFuneralTypeCremation, setFuneralTypeFuneral, setFuneralUpdatedBy } from '@fasstech/oip-core/entities/Funeral';
import { getOSCommonPropsId } from '@fasstech/oip-core/entities/OSCommonProps';
import { getOfferNodeId } from '@fasstech/oip-core/entities/OfferNode';
import { getProjectId } from '@fasstech/oip-core/entities/Project';
(async () => {
let project = await Entities('Project').create();
let company = await Entities('Company').create();
let offerNode = await Entities('OfferNode').create();
let oSCommonProps = await Entities('OSCommonProps').create();
const funeral = await Entities('Funeral').create();
setFuneralCoffinSymbol('coffinSymbol', funeral);
setFuneralPlanner('planner', funeral);
setFuneralProtectionGoals('protectionGoals', funeral);
setFuneralTypeBurial('typeBurial', funeral);
setFuneralTypeCeremony('typeCeremony', funeral);
setFuneralTypeCremation('typeCremation', funeral);
setFuneralTypeFuneral('typeFuneral', funeral);
setFuneralCode('code', funeral);
setFuneralExternalId('externalId', funeral);
setFuneralExternalCode('externalCode', funeral);
setFuneralFuneralId('funeralId', funeral);
setFuneralLabel('label', funeral);
setFuneralCreatedBy('createdBy', funeral);
setFuneralUpdatedBy('updatedBy', funeral);
oSCommonProps = await Entities('Funeral').save(oSCommonProps, funeral);
offerNode = await Entities('OSCommonProps').save(offerNode, oSCommonProps);
company = await Entities('OfferNode').save(company, offerNode);
project = await Entities('Company').save(project, company);
await Entities('Project').save(project);
const projectToTest = await Entities('Project').get({ id: getProjectId(project) });
const companyToTest = await Entities('Company').get(projectToTest, { filter: ({ id }) => id === getCompanyId(company) });
const offerNodeToTest = await Entities('OfferNode').get(companyToTest, { filter: ({ id }) => id === getOfferNodeId(offerNode) });
const oSCommonPropsToTest = await Entities('OSCommonProps').get(offerNodeToTest, { filter: ({ id }) => id === getOSCommonPropsId(oSCommonProps) });
const funeralToTest = await Entities('Funeral').get(oSCommonPropsToTest, { filter: ({ id }) => id === getFuneralId(funeral) });
getFuneralCoffinSymbol(funeralToTest); // 'coffinSymbol'
getFuneralPlanner(funeralToTest); // 'planner'
getFuneralProtectionGoals(funeralToTest); // 'protectionGoals'
getFuneralTypeBurial(funeralToTest); // 'typeBurial'
getFuneralTypeCeremony(funeralToTest); // 'typeCeremony'
getFuneralTypeCremation(funeralToTest); // 'typeCremation'
getFuneralTypeFuneral(funeralToTest); // 'typeFuneral'
getFuneralCode(funeralToTest); // 'code'
getFuneralExternalId(funeralToTest); // 'externalId'
getFuneralExternalCode(funeralToTest); // 'externalCode'
getFuneralFuneralId(funeralToTest); // 'funeralId'
getFuneralLabel(funeralToTest); // 'label'
getFuneralCreatedBy(funeralToTest); // 'createdBy'
getFuneralUpdatedBy(funeralToTest); // 'updatedBy'
})();