@atlasmap/core
Advanced tools
Comparing version 2.0.5 to 2.1.0-M.1
@@ -47,2 +47,5 @@ import { Logger } from 'loglevel'; | ||
inspectionSource: string; | ||
inspectionParameters: { | ||
[key: string]: string; | ||
}; | ||
inspectionResult: string; | ||
@@ -80,2 +83,3 @@ selectedRoot: string; | ||
mappingFiles: string[]; | ||
mappingDefinitionId: number; | ||
mappings: MappingDefinition | null; | ||
@@ -82,0 +86,0 @@ preloadedMappingJson: string | null; |
@@ -33,2 +33,5 @@ import { Field } from './field.model'; | ||
inspectionType: InspectionType; | ||
inspectionParameters: { | ||
[key: string]: string; | ||
}; | ||
inspectionSource: string; | ||
@@ -79,2 +82,3 @@ inspectionResult: string; | ||
getField(fieldPath: string): Field | null; | ||
getComplexFields(): Field[]; | ||
getTerminalFields(): Field[]; | ||
@@ -104,3 +108,4 @@ initializeFromFields(): void; | ||
private prepareComplexFields; | ||
private discoverAllComplexFields; | ||
private discoverComplexFields; | ||
} |
@@ -26,8 +26,9 @@ import { ConfigModel } from './config.model'; | ||
private mapping; | ||
field?: MappedField | undefined; | ||
field?: MappedField | null | undefined; | ||
metaStr?: string | undefined; | ||
static readonly PREFIX = "expression-field-"; | ||
constructor(mapping: MappingModel, field?: MappedField | undefined, metaStr?: string | undefined, index?: number); | ||
constructor(mapping: MappingModel, field?: MappedField | null | undefined, metaStr?: string | undefined, index?: number); | ||
toText(): string; | ||
toHTML(): string; | ||
hasComplexField(): boolean; | ||
} | ||
@@ -34,0 +35,0 @@ export declare class ExpressionModel { |
@@ -13,2 +13,3 @@ import { DocumentDefinition } from './document-definition.model'; | ||
type: string; | ||
scope: string; | ||
value: string; | ||
@@ -15,0 +16,0 @@ column: number; |
@@ -12,2 +12,3 @@ import { ConfigModel } from './config.model'; | ||
parsedIndex: string | null; | ||
parsedScope: string | null; | ||
fieldIsProperty: boolean; | ||
@@ -33,2 +34,3 @@ fieldIsConstant: boolean; | ||
targetFields: MappedField[]; | ||
referenceFields: MappedField[]; | ||
transition: TransitionModel; | ||
@@ -66,9 +68,22 @@ constructor(); | ||
getIndexForMappedField(mappedField: MappedField): number | null; | ||
getField(fieldPath: string): Field | null; | ||
createReferenceField(field: Field): MappedField | null; | ||
/** | ||
* Return an array of user mapped fields for the specified panel in this field pair instance. No | ||
* data-mapper generated padding fields will be included. | ||
* A reference field is a complex field which is referenced in a | ||
* conditional expression but does not exist as an explicit part of | ||
* the mapping. If the field already exists return it otherwise | ||
* create it. | ||
* | ||
* @param fieldPath | ||
*/ | ||
getReferenceField(fieldPath: string): MappedField | null; | ||
/** | ||
* Return an array of user mapped fields for the specified panel in this | ||
* field pair instance. No data-mapper generated padding fields will be | ||
* included. | ||
* | ||
* @param isSource - true source panel, false target panel | ||
*/ | ||
getUserMappedFields(isSource: boolean): MappedField[]; | ||
getReferenceMappedFields(): MappedField[]; | ||
getMappedFields(isSource: boolean): MappedField[]; | ||
@@ -75,0 +90,0 @@ getLastMappedField(isSource: boolean): MappedField | null; |
@@ -45,2 +45,3 @@ import ky from 'ky'; | ||
fetchDocument(docDef: DocumentDefinition, classPath: string): Observable<DocumentDefinition>; | ||
getLibraryClassNames(): Observable<string[]>; | ||
/** | ||
@@ -61,3 +62,5 @@ * Push a user-defined Java archive file (binary buffer) to the runtime. | ||
*/ | ||
processDocument(selectedFile: any, inspectionType: InspectionType, isSource: boolean): Promise<boolean>; | ||
processDocument(selectedFile: any, inspectionType: InspectionType, isSource: boolean, inspectionParameters?: { | ||
[key: string]: string; | ||
}): Promise<boolean>; | ||
private createDocumentFetchRequest; | ||
@@ -64,0 +67,0 @@ parseDocumentResponse(responseJson: any, docDef: DocumentDefinition): void; |
@@ -32,3 +32,5 @@ import { Subject, Observable } from 'rxjs'; | ||
*/ | ||
initializeUserDoc(docBody: any, docName: string, docType: DocumentType, inspectionType: InspectionType, isSource: boolean): Promise<void>; | ||
initializeUserDoc(docBody: any, docName: string, docType: DocumentType, inspectionType: InspectionType, isSource: boolean, parameters?: { | ||
[key: string]: string; | ||
}): Promise<void>; | ||
initialize(): Promise<boolean>; | ||
@@ -35,0 +37,0 @@ processMappingsDocuments(mappingsSchemaAggregate: string): any; |
@@ -1,2 +0,2 @@ | ||
import ky from 'ky'; | ||
import ky, { Options } from 'ky'; | ||
import { Observable, Subscription, Subject } from 'rxjs'; | ||
@@ -95,4 +95,9 @@ import { ConfigModel } from '../models/config.model'; | ||
/** | ||
* Invoke the runtime service to both validate and save the current active mapping. | ||
* Invoke the runtime service to save the current active mapping. | ||
* No validation will occur. | ||
*/ | ||
updateMappings(payload: Options['json']): Promise<boolean>; | ||
/** | ||
* Invoke the runtime service to validate the current active mapping. | ||
*/ | ||
private validateMappings; | ||
@@ -105,3 +110,4 @@ /** | ||
/** | ||
* Validate and save complete mappings. Triggered either as an observable or directly. | ||
* Validate and save complete mappings. Triggered either as an observable | ||
* or directly. | ||
*/ | ||
@@ -108,0 +114,0 @@ notifyMappingUpdated(): Promise<boolean>; |
{ | ||
"name": "@atlasmap/core", | ||
"description": "", | ||
"version": "2.0.5", | ||
"version": "2.1.0-M.1", | ||
"license": "MIT", | ||
@@ -18,3 +18,3 @@ "publishConfig": { | ||
"build:module": "tsdx build", | ||
"build": "npm-run-all build:module test", | ||
"build": "npm-run-all build:module test lint", | ||
"test": "tsdx test --runInBand", | ||
@@ -111,3 +111,3 @@ "test:coverage": "tsdx test --coverage --runInBand", | ||
}, | ||
"gitHead": "fbfb297c88b65a7e0a14862c01f460137be18e16" | ||
"gitHead": "9197f7cf4acea03dff08dbae6675b6e74c9222d7" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2312187
16185
3