MARX#90312 Structurele ondersteuning voor mail2whatever

svn path=/Database/trunk/; revision=70480
This commit is contained in:
Jos Groot Lipman
2025-10-01 08:09:32 +00:00
parent e83da85fc5
commit ff30064704
4 changed files with 18 additions and 1 deletions

View File

@@ -2538,6 +2538,7 @@ FAC_LCL('lcl_mld_omschr_vervolg' , 'Omschrijving vervolgmelding', 'Description
FAC_LCL('lcl_mld_onzichtbaar', 'Onzichtbaar', 'Invisible')
FAC_LCL('lcl_mld_optioneel', 'Optioneel', 'Optional')
FAC_LCL('lcl_mld_verplicht', 'Verplicht', 'Mandatory')
FAC_LCL('lcl_ai_generated', 'Gegenereerd door AI', 'AI generated')
FAC_LCL('lcl_mld_ai_generated', 'Automatisch (gegenereerd door AI)', 'Automatic (AI generated)')
FAC_LCL('lcl_mld_ai_subject_instructions', 'Het volgende user-bericht is een melding, genereer hier een beknopt onderwerp voor in het nederlands, zonder prefixes en gebruik maximaal 80 tekens'
, 'The following user-message is a ticket description, generate a succinct subject for the given description, without prefixes and using a maximum of 80 characters')
@@ -2547,6 +2548,8 @@ FAC_LCL('lcl_mld_ai_faq_instructions', 'Het volgende user-bericht is json data d
, 'The user will supply json data, this data represent a ticket in an FMIS. Use this data to generate one FAQ item, meaning one main question that this ticket answers, and that answer')
FAC_LCL('lcl_mld_opdr_ai_descr_instructions', 'Het volgende user-bericht is json data die een melding in een FMIS representeert. Er wordt nu een nieuwe werk-opdracht aangemaakt van type ''{0}''. Genereer een relevante werk-opdracht omschrijving voor deze nieuwe werk-opdracht, de doelgroep is de uitvoerder die deze werkopdracht ontvangt. Geef alleen deze omschrijving terug, zonder voorwoord, introductie, prefixes of quotes'
, 'The user will supply json data, this data represent a ticket in an FMIS. Right now, a new workorder of type ''{0}'' is being created. Generate a relevant workorder description for this new workorder, the target audience is the contractor receiving this workorder. Return only this description, without preface, introduction, prefixes or quotes')
FAC_LCL('lcl_mld_ai_summarize_instructions', 'Het volgende user-bericht is json data die een melding in een FMIS representeert. Vat deze informatie samen en geef weer wat de actuele tussenstand van de voortgang is, zo beknopt mogelijk'
, 'The user will supply json data, this data represents a ticket in an FMIS. Summarize this information and present the current status of progress as concisely as possible')
FAC_LCL('lcl_mld_publish_portal_message_instructions',
'Het volgende is JSON met ''mld_data'' en ''bericht_categorieen''.'
|| CHR(10) || 'Genereer hieruit een portal-nieuwsbericht als JSON met *exact* deze 5 velden:'
@@ -3586,7 +3589,7 @@ FAC_LCL('lcl_prs_bedrijfadres_srtnoti_title', 'Gebeurtenissen', 'Events')
FAC_LCL('lcl_prs_bedrijfadres_frame', 'Systeemadres', 'System address')
FAC_LCL('lcl_prs_bedrijfadres_omschrijving', 'Omschrijving', 'Description')
FAC_LCL('lcl_prs_bedrijfadres_template', 'Adres sjabloon', 'Adres template')
FAC_LCL('lcl_prs_bedrijfadres_template', 'Systeemkoppeling', 'System interface')
FAC_LCL('lcl_prs_bedrijfadres_type', 'Kanaal', 'Channel')
FAC_LCL('lcl_prs_bedrijfadres_type_b', 'Bestelopdrachten', 'Purchase orders')
FAC_LCL('lcl_prs_bedrijfadres_type_o', 'Opdrachtverstrekking', 'Orders contractor')
@@ -3601,6 +3604,10 @@ FAC_LCL('lcl_prs_bedrijfadres_type_r', 'Catering', 'Catering')
FAC_LCL('lcl_prs_bedrijfadres_type_g', 'Generiek kanaal', 'Generic channel')
FAC_LCL('lcl_prs_bedrijfadres_type_e_intern', 'ERP synchronisatie', 'ERP synchronisation')
FAC_LCL('lcl_prs_bedrijfadres_template_basic', 'Basis', 'Basic')
FAC_LCL('lcl_prs_bedrijfadres_template_generic', 'Geavanceerd', 'Advanced')
FAC_LCL('lcl_prs_bedrijfadres_template_unlicensed', '{0} (geen licentie)', '{0} (unlicensed)')
FAC_LCL('lcl_prs_bedrijfadres_authmethod', 'Authenticatie mode', 'Authenticatie mode')
FAC_LCL('lcl_prs_bedrijfadres_authmethodLOV', '0;Automatisch;1;Geforceerd Basic;2;Eigen HTTP header;3;Aan xml toevoegen;4;oAuth basic;5;Google Auth',
'0;Automatic;1;Forced Basic;2;Custom HTTP header;3;Add to xml;4;oAuth basic;5;Google Auth')
@@ -3728,6 +3735,7 @@ FAC_LCL('lcl_prs_person_voornaam', 'Voornaam', 'First name')
FAC_LCL('lcl_prs_person_uurloon', 'Uurloon', 'Hourly rate')
FAC_LCL('lcl_prs_person_timezone', 'Tijdzone', 'Timezone')
FAC_LCL('lcl_timezone', 'Tijdzone', 'Timezone')
FAC_LCL('lcl_timezone_is_local', 'Alle tijden zijn lokaal', 'All times are local')
FAC_LCL('lcl_prs_person_lcid', 'Regionale instellingen', 'Regional settings')
FAC_LCL('lcl_prs_person_lcidLOV', '1033;Engels (Verenigde Staten);2057;Engels (Verenigd Koninkrijk);1043;Nederlands (Nederland);2067;Nederlands (Belgie);1031;Duits (Duitsland);3079;Duits (Oostenrijk);4103;Duits (Luxemburg);2055;Duits (Zwitserland)',
'1033;English (United States);2057;English (United Kingdom);1043;Dutch (Netherlands);2067;Dutch (Belgium);1031;German (Germany);3079;German (Austria);4103;German (Luxembourg);2055;German (Switzerland)')
@@ -7806,6 +7814,7 @@ FAC_LCL('fac_email_setting_attachext', 'Toegestane extensies', 'Allowed extensi
FAC_LCL('fac_email_setting_reqattachext', 'Specifieke extensie', 'Specific extension')
FAC_LCL('fac_email_setting_attachmaxkb', 'Max. grootte bijlage (kB)', 'Max. attachment size (kB)')
FAC_LCL('fac_email_setting_opmerking', 'Opmerking', 'Remark')
FAC_LCL('fac_email_setting_ai_prompt', 'AI prompt', 'AI prompt')
FAC_LCL('fac_email_setting_volgnr', 'Volgnummer', 'Sequence number')
FAC_LCL('fac_email_setting_perslid_key','Fallback autorisatie', 'Fallback authentication')
FAC_LCL('fac_email_setting_err1', 'Bijlage {0} van {1}MB is te groot. Maximum is {2}MB', 'Attachment {0} of {1}MB is too large. Maximum is {2}MB')

View File

@@ -556,6 +556,9 @@ DEFINE_SETTING('FAC', 0001, 'WEB_PRSSYS', 'usrrap_refreshrate'
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ai_enabled' , 'number' , '0' , 'Enable AI (65535=all (incl. future) AI features) to generate;' || CHR(10) || '&1; subjects for calls from their description (configuration needed)' || CHR(10) || '&2; FAQs for calls' || CHR(10) || '&4; text for closing calls' || CHR(10) || '&8; new order descriptions' || CHR(10) || '&16; portal messages when publishing calls')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ai_endpoint' , 'string' , 'https://ai-fac-prod-openai-studio.openai.azure.com/openai/deployments/ai-fac-prod-4o/chat/completions?api-version=2024-08-01-preview', 'AI API endpoint url')
DEFINE_SETTING('FAC', 0001, 'WEB_FACFAC', 'ai_apikey' , 'string' , 'CCV3nRxb3ohPwxlwPQBjGFWqDSPTilfLHjsfhGBRjOEmlfgRtRzwJQQJ99AKACfhMk5XJ3w3AAABACOG7TGx', 'APIKEY for AI services')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ai_mail_base_prompt_outputformat' , 'string' , '' , 'AI base prompt for e-mails. Describes desired output format 0 (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ai_mail_base_prompt1' , 'string' , '' , 'AI base prompt for e-mails. Describes format 1 (future use)')
DEFINE_SETTING('FAC', 0001, 'WEB_FACTAB', 'ai_mail_base_prompt2' , 'string' , '' , 'AI base prompt for e-mails. Describes format 2 (future use)')
DEFINE_SETTING('MSG', 0001, 'WEB_PRSSYS', 'msg_photo_size' , 'string' , 'r512x512' , 'Resize uploads to this maximum MSG photo size. Ex: r200x150')
DEFINE_SETTING('MSG', 0001, 'WEB_PRSSYS', 'msg_max_history' , 'number' , '30' , 'Show messages no longer than msg_max_history days ago')
DEFINE_SETTING('FAQ', 0001, 'WEB_PRSSYS', 'faq_kennisbank_popup' , 'number' , '3' , 'Show kennisbank popup {0=no | 01=1=FE | 10=2=FO | 11=3=FE+FO}')

View File

@@ -2120,6 +2120,7 @@ CREATE_TABLE(fac_email_setting, 0)
fac_email_setting_loglevel NUMBER(3) DEFAULT 0 NOT NULL,
fac_email_setting_text VARCHAR2 (320), -- signaaltekst in onderwerpregel
fac_email_setting_opmerking VARCHAR2 (320),
fac_email_setting_ai_prompt VARCHAR2 (4000),
// Note: this column is defined in MLD_TAB.SRC
// mld_stdmelding_key NUMBER(10) REFERENCES mld_stdmelding(mld_stdmelding_key) ON DELETE CASCADE,
// Note: this column is defined in PRS_TAB.SRC

View File

@@ -131,6 +131,10 @@ ALTER TABLE fac_notificatie
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#87173
ALTER TABLE fac_imp_inspectie ADD ctr_discipline_omschrijving VARCHAR2(60);
/////////////////////////////////////////////////////////////////////////////////////////// MARX#90312
ALTER TABLE fac_email_setting
ADD fac_email_setting_ai_prompt VARCHAR2(4000);
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#00000
REGISTERONCE('$Id$')