@@ -573,17 +573,52 @@ export enum PROCESSOR_CONTEXT {
573
573
SEARCH_REQUEST = 'search_request' ,
574
574
SEARCH_RESPONSE = 'search_response' ,
575
575
}
576
+ export const NO_TRANSFORMATION = 'No transformation' ;
576
577
export enum TRANSFORM_CONTEXT {
577
578
INPUT = 'input' ,
578
579
OUTPUT = 'output' ,
579
580
}
580
581
export enum TRANSFORM_TYPE {
581
582
STRING = 'String' ,
582
583
FIELD = 'Field' ,
583
- EXPRESSION = 'Expression' ,
584
- TEMPLATE = 'Template ' ,
584
+ EXPRESSION = 'JSONPath Expression' ,
585
+ TEMPLATE = 'Prompt ' ,
585
586
}
586
- export const NO_TRANSFORMATION = 'No transformation' ;
587
+
588
+ export const INPUT_TRANSFORM_OPTIONS = [
589
+ {
590
+ id : TRANSFORM_TYPE . FIELD ,
591
+ description : 'Map an existing field from your data.' ,
592
+ } ,
593
+ {
594
+ id : TRANSFORM_TYPE . TEMPLATE ,
595
+ description : 'Configure a prompt and map to the input field.' ,
596
+ } ,
597
+ {
598
+ id : TRANSFORM_TYPE . EXPRESSION ,
599
+ description : 'Extract data before mapping to the input field.' ,
600
+ } ,
601
+ {
602
+ id : TRANSFORM_TYPE . STRING ,
603
+ description : 'Declare a string to the input field.' ,
604
+ } ,
605
+ ] ;
606
+
607
+ export const OUTPUT_TRANSFORM_OPTIONS = [
608
+ {
609
+ id : TRANSFORM_TYPE . FIELD ,
610
+ description : 'Map an existing field from your data.' ,
611
+ } ,
612
+ {
613
+ id : TRANSFORM_TYPE . EXPRESSION ,
614
+ description : 'Extract data before mapping to the input field.' ,
615
+ } ,
616
+ {
617
+ id : NO_TRANSFORMATION ,
618
+ description : 'Leave the output field as-is.' ,
619
+ } ,
620
+ ] ;
621
+
587
622
export const DEFAULT_NEW_WORKFLOW_NAME = 'new_workflow' ;
588
623
export const DEFAULT_NEW_WORKFLOW_DESCRIPTION = 'My new workflow' ;
589
624
export const DEFAULT_NEW_WORKFLOW_STATE_TYPE = ( 'NOT_STARTED' as any ) as typeof WORKFLOW_STATE ;
@@ -608,6 +643,7 @@ export enum SORT_ORDER {
608
643
export const MAX_DOCS = 1000 ;
609
644
export const MAX_DOCS_TO_IMPORT = 100 ;
610
645
export const MAX_STRING_LENGTH = 100 ;
646
+ export const MAX_DESCRIPTION_LENGTH = 1000 ;
611
647
export const MAX_JSON_STRING_LENGTH = 10000 ;
612
648
export const MAX_TEMPLATE_STRING_LENGTH = 10000 ;
613
649
export const MAX_BYTES = 1048576 ; // OSD REST request payload size limit
0 commit comments