@epistola.app/valtimo-plugin 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { TemplateField } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ArrayFieldComponent implements OnChanges {
5
+ field: TemplateField;
6
+ value: any;
7
+ pluginId: string;
8
+ caseDefinitionKey: string | null;
9
+ processVariables: string[];
10
+ disabled: boolean;
11
+ valueChange: EventEmitter<any>;
12
+ expanded: boolean;
13
+ arrayPerFieldMode: boolean;
14
+ mappedCount: number;
15
+ totalRequired: number;
16
+ ngOnChanges(changes: SimpleChanges): void;
17
+ toggleExpanded(): void;
18
+ getSourceValue(): string;
19
+ onSourceValueChange(newValue: string): void;
20
+ toggleArrayPerFieldMode(): void;
21
+ onItemFieldChange(childName: string, sourceFieldName: string): void;
22
+ getItemFieldValue(childName: string): string;
23
+ hasArrayChildren(): boolean;
24
+ private updateCompleteness;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFieldComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrayFieldComponent, "epistola-array-field", never, { "field": { "alias": "field"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "caseDefinitionKey": { "alias": "caseDefinitionKey"; "required": false; }; "processVariables": { "alias": "processVariables"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
27
+ }
@@ -1,16 +1,15 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { Observable } from 'rxjs';
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
3
2
  import { TemplateField } from '../../models';
4
3
  import * as i0 from "@angular/core";
5
4
  /**
6
5
  * Top-level wrapper that hosts FieldTreeComponent instances for each top-level template field.
7
6
  * Manages the full nested mapping object, completeness tracking, and emits mapping changes.
8
7
  */
9
- export declare class DataMappingTreeComponent implements OnInit, OnDestroy {
8
+ export declare class DataMappingTreeComponent implements OnChanges {
10
9
  pluginId: string;
11
- templateFields$: Observable<TemplateField[]>;
12
- prefillMapping$: Observable<Record<string, any>>;
13
- disabled$: Observable<boolean>;
10
+ templateFields: TemplateField[];
11
+ prefillMapping: Record<string, any>;
12
+ disabled: boolean;
14
13
  caseDefinitionKey: string | null;
15
14
  processVariables: string[];
16
15
  mappingChange: EventEmitter<Record<string, any>>;
@@ -18,15 +17,11 @@ export declare class DataMappingTreeComponent implements OnInit, OnDestroy {
18
17
  mapped: number;
19
18
  total: number;
20
19
  }>;
21
- templateFields: TemplateField[];
22
20
  mapping: Record<string, any>;
23
- disabled: boolean;
24
- private readonly destroy$;
25
- ngOnInit(): void;
26
- ngOnDestroy(): void;
21
+ ngOnChanges(changes: SimpleChanges): void;
27
22
  onFieldValueChange(fieldName: string, value: any): void;
28
23
  getFieldValue(fieldName: string): any;
29
24
  private emitRequiredFieldsStatus;
30
25
  static ɵfac: i0.ɵɵFactoryDeclaration<DataMappingTreeComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<DataMappingTreeComponent, "epistola-data-mapping-tree", never, { "pluginId": { "alias": "pluginId"; "required": false; }; "templateFields$": { "alias": "templateFields$"; "required": false; }; "prefillMapping$": { "alias": "prefillMapping$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "caseDefinitionKey": { "alias": "caseDefinitionKey"; "required": false; }; "processVariables": { "alias": "processVariables"; "required": false; }; }, { "mappingChange": "mappingChange"; "requiredFieldsStatus": "requiredFieldsStatus"; }, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataMappingTreeComponent, "epistola-data-mapping-tree", never, { "pluginId": { "alias": "pluginId"; "required": false; }; "templateFields": { "alias": "templateFields"; "required": false; }; "prefillMapping": { "alias": "prefillMapping"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "caseDefinitionKey": { "alias": "caseDefinitionKey"; "required": false; }; "processVariables": { "alias": "processVariables"; "required": false; }; }, { "mappingChange": "mappingChange"; "requiredFieldsStatus": "requiredFieldsStatus"; }, never, never, true, never>;
32
27
  }
@@ -1,19 +1,11 @@
1
1
  import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { ValuePathSelectorPrefix } from '@valtimo/components';
3
2
  import { TemplateField } from '../../models';
4
3
  import * as i0 from "@angular/core";
5
- export type InputMode = 'browse' | 'pv' | 'expression';
6
4
  /**
7
- * Recursive component that renders a single TemplateField node as part of a tree form.
8
- *
9
- * - SCALAR fields render as a label + input row with a 3-mode selector (browse / pv / expression)
10
- * - OBJECT fields render as a collapsible section with children indented inside
11
- * - ARRAY fields render as a collapsible section with source collection input and optional per-item field mappings
12
- *
13
- * Input modes:
14
- * - Browse (⊞): ValuePathSelector for doc:/case: paths
15
- * - PV (pv): Dropdown of discovered process variables (text fallback when none found)
16
- * - Expression (fx): Free-text input for manual expressions
5
+ * Recursive field tree component.
6
+ * Dispatches SCALAR and ARRAY to dedicated sub-components.
7
+ * Handles OBJECT inline to avoid circular import issues (OBJECT children recurse back to this component).
8
+ * Uses forwardRef(() => FieldTreeComponent) in imports to allow self-referencing in the template.
17
9
  */
18
10
  export declare class FieldTreeComponent implements OnChanges {
19
11
  field: TemplateField;
@@ -23,52 +15,13 @@ export declare class FieldTreeComponent implements OnChanges {
23
15
  processVariables: string[];
24
16
  disabled: boolean;
25
17
  valueChange: EventEmitter<any>;
26
- readonly ValuePathSelectorPrefix: typeof ValuePathSelectorPrefix;
27
- inputMode: InputMode;
28
18
  expanded: boolean;
29
- /** For ARRAY fields: whether to show per-item field mapping */
30
- arrayPerFieldMode: boolean;
31
- /** Completeness badge for collapsed object/array sections */
32
19
  mappedCount: number;
33
20
  totalRequired: number;
34
21
  ngOnChanges(changes: SimpleChanges): void;
35
22
  toggleExpanded(): void;
36
- setInputMode(mode: InputMode): void;
37
- /** Handle value change from ValuePathSelector (browse mode) */
38
- onBrowseValueChange(newValue: string): void;
39
- /** Handle value change from PV dropdown */
40
- onPvChange(newValue: string): void;
41
- /** Handle value change from text input (expression mode) */
42
- onExpressionValueChange(newValue: string): void;
43
- /** Handle child value change for OBJECT fields */
44
23
  onChildChange(childName: string, childValue: any): void;
45
- /** Get the current value for a child field within an OBJECT */
46
24
  getChildValue(childName: string): any;
47
- /** Get the string value for display (for SCALAR leaf inputs and direct array mode) */
48
- getStringValue(): string;
49
- /** Get the PV name from a pv: prefixed value (for PV dropdown default selection) */
50
- getPvName(): string;
51
- /** Get the source collection value (works for both direct string and _source format) */
52
- getSourceValue(): string;
53
- /** Get the PV name from the source value */
54
- getSourcePvName(): string;
55
- toggleArrayPerFieldMode(): void;
56
- /** Handle source collection value change (used in ARRAY mode) */
57
- onSourceBrowseChange(newValue: string): void;
58
- onSourcePvChange(newValue: string): void;
59
- onSourceExpressionChange(newValue: string): void;
60
- /** Handle per-item field mapping change */
61
- onItemFieldChange(childName: string, sourceFieldName: string): void;
62
- /** Get the current source field name mapping for a child */
63
- getItemFieldValue(childName: string): string;
64
- /** Check if the array has any children that can be mapped per-item */
65
- hasArrayChildren(): boolean;
66
- private emitScalarValue;
67
- private updateSourceValue;
68
- private updateCompleteness;
69
- private updateArrayCompleteness;
70
- private detectInputMode;
71
- private isResolvableValue;
72
25
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldTreeComponent, never>;
73
26
  static ɵcmp: i0.ɵɵComponentDeclaration<FieldTreeComponent, "epistola-field-tree", never, { "field": { "alias": "field"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "caseDefinitionKey": { "alias": "caseDefinitionKey"; "required": false; }; "processVariables": { "alias": "processVariables"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
74
27
  }
@@ -4,7 +4,7 @@ import { FormOutput, SelectItem } from '@valtimo/components';
4
4
  import { CaseManagementParams, ManagementContext } from '@valtimo/shared';
5
5
  import { ProcessLinkStateService } from '@valtimo/process-link';
6
6
  import { BehaviorSubject, Observable } from 'rxjs';
7
- import { GenerateDocumentConfig, TemplateField } from '../../models';
7
+ import { AsyncResource, GenerateDocumentConfig, TemplateField } from '../../models';
8
8
  import { EpistolaPluginService } from '../../services';
9
9
  import * as i0 from "@angular/core";
10
10
  export type VariantSelectionMode = 'explicit' | 'attributes';
@@ -20,20 +20,11 @@ export declare class GenerateDocumentConfigurationComponent implements FunctionC
20
20
  context$?: Observable<[ManagementContext, CaseManagementParams]>;
21
21
  valid: EventEmitter<boolean>;
22
22
  configuration: EventEmitter<GenerateDocumentConfig>;
23
- templateOptions$: BehaviorSubject<SelectItem[]>;
24
- templatesLoading$: BehaviorSubject<boolean>;
25
- templatesError$: BehaviorSubject<string>;
26
- variantOptions$: BehaviorSubject<SelectItem[]>;
27
- variantsLoading$: BehaviorSubject<boolean>;
28
- variantsError$: BehaviorSubject<string>;
29
- environmentOptions$: BehaviorSubject<SelectItem[]>;
30
- environmentsLoading$: BehaviorSubject<boolean>;
31
- environmentsError$: BehaviorSubject<string>;
32
- templateFields$: BehaviorSubject<TemplateField[]>;
33
- templateFieldsLoading$: BehaviorSubject<boolean>;
34
- templateFieldsError$: BehaviorSubject<string>;
23
+ templates$: BehaviorSubject<AsyncResource<SelectItem[]>>;
24
+ variants$: BehaviorSubject<AsyncResource<SelectItem[]>>;
25
+ environments$: BehaviorSubject<AsyncResource<SelectItem[]>>;
26
+ templateFields$: BehaviorSubject<AsyncResource<TemplateField[]>>;
35
27
  dataMapping$: BehaviorSubject<Record<string, any>>;
36
- prefillDataMapping$: Observable<Record<string, any>>;
37
28
  outputFormatOptions: SelectItem[];
38
29
  readonly selectedTemplateId$: BehaviorSubject<string>;
39
30
  readonly selectedVariantId$: BehaviorSubject<string>;
@@ -41,13 +32,17 @@ export declare class GenerateDocumentConfigurationComponent implements FunctionC
41
32
  variantAttributeEntries: {
42
33
  key: string;
43
34
  value: string;
35
+ required: boolean;
36
+ _customKey?: boolean;
44
37
  }[];
38
+ availableAttributeKeys: string[];
45
39
  caseDefinitionKey: string | null;
46
40
  processVariables: string[];
47
41
  requiredFieldsStatus: {
48
42
  mapped: number;
49
43
  total: number;
50
44
  };
45
+ prefillDataMapping: Record<string, any>;
51
46
  private readonly destroy$;
52
47
  private saveSubscription;
53
48
  private readonly formValue$;
@@ -66,13 +61,26 @@ export declare class GenerateDocumentConfigurationComponent implements FunctionC
66
61
  addAttributeEntry(): void;
67
62
  removeAttributeEntry(index: number): void;
68
63
  onAttributeEntryChange(): void;
64
+ onKeySelected(entry: {
65
+ key: string;
66
+ value: string;
67
+ required: boolean;
68
+ _customKey?: boolean;
69
+ }, value: string): void;
70
+ cancelCustomKey(entry: {
71
+ key: string;
72
+ value: string;
73
+ required: boolean;
74
+ _customKey?: boolean;
75
+ }): void;
69
76
  private revalidate;
70
77
  private formatAttributes;
71
78
  private initContext;
72
- private initPrefillDataMapping;
79
+ private initPrefill;
73
80
  private initPluginConfiguration;
74
81
  private initTemplatesLoading;
75
82
  private initEnvironmentsLoading;
83
+ private initAttributesLoading;
76
84
  private initVariantsLoading;
77
85
  private initTemplateFieldsLoading;
78
86
  private loadProcessVariables;
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { TemplateField } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ScalarFieldComponent {
5
+ field: TemplateField;
6
+ value: any;
7
+ pluginId: string;
8
+ caseDefinitionKey: string | null;
9
+ processVariables: string[];
10
+ disabled: boolean;
11
+ valueChange: EventEmitter<any>;
12
+ get stringValue(): string;
13
+ onValueChange(newValue: string): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScalarFieldComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScalarFieldComponent, "epistola-scalar-field", never, { "field": { "alias": "field"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "caseDefinitionKey": { "alias": "caseDefinitionKey"; "required": false; }; "processVariables": { "alias": "processVariables"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
16
+ }
@@ -0,0 +1,34 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { ValuePathSelectorPrefix } from '@valtimo/components';
3
+ import * as i0 from "@angular/core";
4
+ export type InputMode = 'browse' | 'pv' | 'expression';
5
+ /**
6
+ * Reusable 3-mode input (browse / pv / expression) for value resolver expressions.
7
+ * Used by both ScalarFieldComponent and ArrayFieldComponent for source mapping.
8
+ */
9
+ export declare class ValueInputComponent implements OnChanges {
10
+ private readonly cdr;
11
+ name: string;
12
+ value: string;
13
+ pluginId: string;
14
+ caseDefinitionKey: string | null;
15
+ processVariables: string[];
16
+ disabled: boolean;
17
+ placeholder: string;
18
+ valueChange: EventEmitter<string>;
19
+ readonly ValuePathSelectorPrefix: typeof ValuePathSelectorPrefix;
20
+ inputMode: InputMode;
21
+ selectedPv: string;
22
+ browseDefault: string;
23
+ constructor(cdr: ChangeDetectorRef);
24
+ ngOnChanges(changes: SimpleChanges): void;
25
+ setInputMode(mode: InputMode): void;
26
+ onBrowseValueChange(newValue: string): void;
27
+ onPvChange(newValue: string): void;
28
+ onExpressionValueChange(newValue: string): void;
29
+ private detectInputMode;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValueInputComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValueInputComponent, "epistola-value-input", never, { "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "caseDefinitionKey": { "alias": "caseDefinitionKey"; "required": false; }; "processVariables": { "alias": "processVariables"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
32
+ }
33
+ /** Convert slash-notation paths (e.g. doc:/a/b) to dot notation (doc:a.b). */
34
+ export declare function normalizeToDots(value: string): string;
@@ -1,3 +1,4 @@
1
+ import { ModuleWithProviders } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
3
  import * as i1 from "@angular/common";
3
4
  import * as i2 from "@angular/common/http";
@@ -8,13 +9,17 @@ import * as i6 from "./components/generate-document-configuration/generate-docum
8
9
  import * as i7 from "./components/check-job-status-configuration/check-job-status-configuration.component";
9
10
  import * as i8 from "./components/download-document-configuration/download-document-configuration.component";
10
11
  import * as i9 from "./components/data-mapping-tree/data-mapping-tree.component";
11
- import * as i10 from "./components/field-tree/field-tree.component";
12
- import * as i11 from "./components/epistola-download/epistola-download.component";
13
- import * as i12 from "./components/epistola-retry-form/epistola-retry-form.component";
14
- import * as i13 from "./components/epistola-preview-button/epistola-preview-button.component";
15
- import * as i14 from "./components/epistola-document-preview/epistola-document-preview.component";
12
+ import * as i10 from "./components/value-input/value-input.component";
13
+ import * as i11 from "./components/scalar-field/scalar-field.component";
14
+ import * as i12 from "./components/array-field/array-field.component";
15
+ import * as i13 from "./components/field-tree/field-tree.component";
16
+ import * as i14 from "./components/epistola-download/epistola-download.component";
17
+ import * as i15 from "./components/epistola-retry-form/epistola-retry-form.component";
18
+ import * as i16 from "./components/epistola-preview-button/epistola-preview-button.component";
19
+ import * as i17 from "./components/epistola-document-preview/epistola-document-preview.component";
16
20
  export declare class EpistolaPluginModule {
21
+ static forRoot(): ModuleWithProviders<EpistolaPluginModule>;
17
22
  static ɵfac: i0.ɵɵFactoryDeclaration<EpistolaPluginModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<EpistolaPluginModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule, typeof i3.PluginTranslatePipeModule, typeof i4.FormModule, typeof i4.InputModule, typeof i4.SelectModule, typeof i5.EpistolaConfigurationComponent, typeof i6.GenerateDocumentConfigurationComponent, typeof i7.CheckJobStatusConfigurationComponent, typeof i8.DownloadDocumentConfigurationComponent, typeof i9.DataMappingTreeComponent, typeof i10.FieldTreeComponent, typeof i11.EpistolaDownloadComponent, typeof i12.EpistolaRetryFormComponent, typeof i13.EpistolaPreviewButtonComponent, typeof i14.EpistolaDocumentPreviewComponent], [typeof i5.EpistolaConfigurationComponent, typeof i6.GenerateDocumentConfigurationComponent, typeof i7.CheckJobStatusConfigurationComponent, typeof i8.DownloadDocumentConfigurationComponent, typeof i9.DataMappingTreeComponent, typeof i10.FieldTreeComponent, typeof i11.EpistolaDownloadComponent, typeof i12.EpistolaRetryFormComponent, typeof i13.EpistolaPreviewButtonComponent, typeof i14.EpistolaDocumentPreviewComponent]>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EpistolaPluginModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule, typeof i3.PluginTranslatePipeModule, typeof i4.FormModule, typeof i4.InputModule, typeof i4.SelectModule, typeof i5.EpistolaConfigurationComponent, typeof i6.GenerateDocumentConfigurationComponent, typeof i7.CheckJobStatusConfigurationComponent, typeof i8.DownloadDocumentConfigurationComponent, typeof i9.DataMappingTreeComponent, typeof i10.ValueInputComponent, typeof i11.ScalarFieldComponent, typeof i12.ArrayFieldComponent, typeof i13.FieldTreeComponent, typeof i14.EpistolaDownloadComponent, typeof i15.EpistolaRetryFormComponent, typeof i16.EpistolaPreviewButtonComponent, typeof i17.EpistolaDocumentPreviewComponent], [typeof i5.EpistolaConfigurationComponent, typeof i6.GenerateDocumentConfigurationComponent, typeof i7.CheckJobStatusConfigurationComponent, typeof i8.DownloadDocumentConfigurationComponent, typeof i9.DataMappingTreeComponent, typeof i10.ValueInputComponent, typeof i11.ScalarFieldComponent, typeof i12.ArrayFieldComponent, typeof i13.FieldTreeComponent, typeof i14.EpistolaDownloadComponent, typeof i15.EpistolaRetryFormComponent, typeof i16.EpistolaPreviewButtonComponent, typeof i17.EpistolaDocumentPreviewComponent]>;
19
24
  static ɵinj: i0.ɵɵInjectorDeclaration<EpistolaPluginModule>;
20
25
  }
@@ -0,0 +1,9 @@
1
+ export interface AsyncResource<T> {
2
+ data: T;
3
+ loading: boolean;
4
+ error: string | null;
5
+ }
6
+ export declare function initialResource<T>(empty: T): AsyncResource<T>;
7
+ export declare function loadingResource<T>(current: T): AsyncResource<T>;
8
+ export declare function successResource<T>(data: T): AsyncResource<T>;
9
+ export declare function errorResource<T>(current: T, error: string): AsyncResource<T>;
@@ -10,6 +10,16 @@ export interface EpistolaPluginConfig extends PluginConfigurationData {
10
10
  defaultEnvironmentId?: string;
11
11
  templateSyncEnabled?: boolean;
12
12
  }
13
+ /**
14
+ * A single variant attribute entry for attribute-based variant selection.
15
+ * When required is true, the variant MUST match this attribute.
16
+ * When required is false, it is a preference (preferred but not mandatory).
17
+ */
18
+ export interface VariantAttributeEntry {
19
+ key: string;
20
+ value: string;
21
+ required: boolean;
22
+ }
13
23
  /**
14
24
  * Action configuration for the generate-document action.
15
25
  * Contains all parameters needed to generate a document.
@@ -21,7 +31,7 @@ export interface EpistolaPluginConfig extends PluginConfigurationData {
21
31
  export interface GenerateDocumentConfig {
22
32
  templateId: string;
23
33
  variantId?: string;
24
- variantAttributes?: Record<string, string>;
34
+ variantAttributes?: VariantAttributeEntry[];
25
35
  environmentId?: string;
26
36
  dataMapping: Record<string, any>;
27
37
  outputFormat: 'PDF' | 'HTML';
@@ -1,2 +1,3 @@
1
+ export * from './async-resource';
1
2
  export * from './config';
2
3
  export * from './template';
@@ -61,3 +61,10 @@ export interface VariantInfo {
61
61
  name: string;
62
62
  attributes: Record<string, string>;
63
63
  }
64
+ /**
65
+ * An attribute definition for variant selection within a tenant.
66
+ */
67
+ export interface AttributeDefinition {
68
+ key: string;
69
+ description?: string;
70
+ }
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { ConfigService } from '@valtimo/shared';
3
3
  import { Observable } from 'rxjs';
4
- import { EnvironmentInfo, PreviewSource, TemplateDetails, TemplateInfo, ValidationResult, VariantInfo } from '../models';
4
+ import { AttributeDefinition, EnvironmentInfo, PreviewSource, TemplateDetails, TemplateInfo, ValidationResult, VariantInfo } from '../models';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Service for interacting with Epistola plugin API endpoints.
@@ -21,6 +21,10 @@ export declare class EpistolaPluginService {
21
21
  * Get template details including its fields.
22
22
  */
23
23
  getTemplateDetails(pluginConfigurationId: string, templateId: string): Observable<TemplateDetails>;
24
+ /**
25
+ * Get all attribute definitions for a plugin configuration's tenant.
26
+ */
27
+ getAttributes(pluginConfigurationId: string): Observable<AttributeDefinition[]>;
24
28
  /**
25
29
  * Get all available environments for a plugin configuration.
26
30
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epistola.app/valtimo-plugin",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Epistola document generation plugin for Valtimo",
5
5
  "license": "EUPL-1.2",
6
6
  "repository": {
@@ -23,10 +23,10 @@
23
23
  "@angular/common": ">=17.0.0",
24
24
  "@angular/core": ">=17.0.0",
25
25
  "@angular/forms": ">=17.0.0",
26
- "@valtimo/plugin": "^13.21.0",
27
26
  "@valtimo/components": "^13.21.0",
28
- "@valtimo/shared": "^13.21.0",
29
- "@valtimo/process-link": "^13.21.0"
27
+ "@valtimo/plugin": "^13.21.0",
28
+ "@valtimo/process-link": "^13.21.0",
29
+ "@valtimo/shared": "^13.21.0"
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.6.0"
package/public_api.d.ts CHANGED
@@ -6,6 +6,9 @@ export * from './lib/components/epistola-configuration/epistola-configuration.co
6
6
  export * from './lib/components/generate-document-configuration/generate-document-configuration.component';
7
7
  export * from './lib/components/check-job-status-configuration/check-job-status-configuration.component';
8
8
  export * from './lib/components/download-document-configuration/download-document-configuration.component';
9
+ export * from './lib/components/value-input/value-input.component';
10
+ export * from './lib/components/scalar-field/scalar-field.component';
11
+ export * from './lib/components/array-field/array-field.component';
9
12
  export * from './lib/components/field-tree/field-tree.component';
10
13
  export * from './lib/components/data-mapping-tree/data-mapping-tree.component';
11
14
  export * from './lib/components/epistola-download/epistola-download.component';