UNPKG

rdpcrystal-edi-library

Version:

ASCII X12 EDI Library, Create, Parse, Load, Validate, View, Edit, Split, Join And Scrub EDI Data

1,699 lines (1,672 loc) 371 kB
/// <reference no-default-lib="true"/> /// <reference path="./bridge.d.ts" /> /// <reference path="./es5/lib.es5.d.ts" /> /// <reference path="./scripthost/lib.scripthost.d.ts" /> /// <reference path="./dom/lib.dom.d.ts" /> declare module "RDPCrystalEDILibrary" { /** * @callback EDIValidator.ValidationStartedEvent * @param {System.Object} sender * @return {void} */ /** * @callback EDIValidator.ValidationCompletedEvent * @param {System.Object} sender * @param {ValidationEventsArgs} e * @return {void} */ /** * @callback EDIValidator.GeneralEvent * @param {number} progress * @return {void} */ /** * @callback EDIValidator.CodeConditionEvent * @param {System.Object} sender * @param {CodeConditionEventArgs} e * @return {void} */ /** * @memberof System * @callback System.Func * @return {number} */ /** * @callback EDIRulesReader.ErrorEvent * @param {System.Object} sender * @param {EDIRulesReaderEventArg} e * @return {void} */ /** * @callback EDIRulesReader.GeneralEvent * @param {number} progress * @return {void} */ /** @namespace System */ /** * @memberof System * @callback System.EventHandler * @param {System.Object} sender * @param {FileOperationCompletedEventArgs} e * @return {void} */ /** * @callback EDIFileLoader.EDIFileLoadingCompletedEvent * @param {System.Object} sender * @param {FileLoadingEventArgs} e * @return {void} */ /** * @callback EDIFileScrubber.EDIFileScrubbingCompletedEvent * @param {System.Object} sender * @param {FileLoadingEventArgs} e * @return {void} */ /** * @callback GeneralEvent * @param {System.Object} sender * @return {void} */ /** * Responsible for generating a 997 Acknowledgement EDI File * * @public * @class Ack997Generator */ interface Ack997Generator { /** * Segment and element delimiters * * @instance * @public * @memberof Ack997Generator * @function Delimiters * @type Delimiters */ Delimiters: Delimiters | null; /** * String to insert between segments for formatting * * @instance * @public * @memberof Ack997Generator * @function SegmentSeparatorString * @type string */ SegmentSeparatorString: string | null; /** * Char used to pad empty spaces * * @instance * @public * @memberof Ack997Generator * @function PaddingChar * @type number */ PaddingChar: number; /** * Get/set the interchange control number * * @instance * @public * @memberof Ack997Generator * @function InterchangeControlNumber * @type number */ InterchangeControlNumber: number; /** * Get/set the group control number * * @instance * @public * @memberof Ack997Generator * @function GroupControlNumber * @type number */ GroupControlNumber: number; /** * Get/set the Transaction Set Control Number * * @instance * @public * @memberof Ack997Generator * @function TransactionSetControlNumber * @type number */ TransactionSetControlNumber: number; /** * Generates a 997 Acknowledgement EDI file. * * @instance * @public * @this Ack997Generator * @memberof Ack997Generator * @param {EDIValidator} ediValidator The edivalidator * @return {EDIDocument} */ generate(ediValidator: EDIValidator | null): EDIDocument | null; } interface Ack997GeneratorFunc extends Function { prototype: Ack997Generator; /** * Initializes a new instance of the {@link } class. * * @instance * @public * @this Ack997Generator * @memberof Ack997Generator * @return {void} */ new (): Ack997Generator; } declare var Ack997Generator: Ack997GeneratorFunc; /** * @class Trial */ interface Trial { /** * @instance * @public * @this Trial * @memberof Trial * @return {void} */ check(): void; } interface TrialFunc extends Function { prototype: Trial; new (): Trial; } declare var Trial: TrialFunc; /** * @static * @abstract * @public * @class Tokens */ interface Tokens { } interface TokensFunc extends Function { prototype: Tokens; new (): Tokens; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ COMMA: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SEMICOLON: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SPACE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ EQUAL: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ EQUALS: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ END: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ IFSTATEMENT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ELSEIFSTATEMENT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ IF: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ELSEIF: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ELSE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NULL: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SYMBOL: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SEGPOS: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ELEMPOS: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ STRINGLIST: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ INTEGERINDEXLIST: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ INTEGERLIST: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ INDEXER: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ INT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ FLOAT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CONDITION: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ GREATERTHAN: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ GREATERTHANOREQUALTO: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LESSTHAN: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LESSTHANOREQUALTO: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTEQUAL: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTEQUAL_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ EQUAL_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CONTAINS_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTCONTAINS_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ STARTSWITH_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTSTARTSWITH_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ENDSWITH_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTENDSWITH_CASE_INSENSITIVE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CONTAINS: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTCONTAINS: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ STARTSWITH: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTSTARTSWITH: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ENDSWITH: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTENDSWITH: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LENGTHEQUAL: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LENGTHNOTEQUAL: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LENGTHLESSTHAN: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LENGTHGREATERTHAN: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ AND: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ OR: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LEFT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LEFTBRACKET: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ RIGHT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ RIGHTBRACKET: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ DOT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ THEN: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ LOCALCODE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ERROR: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ USAGE: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ELEMENTLIST: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ REQUIRED: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTUSED: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ OPTIONAL: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ RECOMMENDED: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ NOTRECOMMENDED: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ DEFAULT: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SegmentNotUsed: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SegmentRecommended: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SegmentMissing: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ SegmentNotRecommended: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ElementHasWrongValue: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ElementNotUsed: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ElementRecommended: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ElementNotRecommended: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ ElementMissing: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CompositeElementHasWrongValue: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CompositeElementNotUsed: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CompositeElementRecommended: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CompositeElementNotRecommended: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CompositeElementMissing: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ STRING: TokenDefinition | null; /** * @static * @public * @memberof Tokens * @type TokenDefinition */ CODECONDITION: TokenDefinition | null; } declare var Tokens: TokensFunc; /** * @public * @class TokenDefinition */ interface TokenDefinition { /** * @instance * @public * @readonly * @memberof TokenDefinition * @type RegexMatcher */ Matcher: RegexMatcher | null; /** * @instance * @public * @readonly * @memberof TokenDefinition * @type System.Object */ Token: any | null; } interface TokenDefinitionFunc extends Function { prototype: TokenDefinition; /** * @instance * @public * @this TokenDefinition * @memberof TokenDefinition * @param {string} regex * @param {System.Object} token * @return {void} */ new (regex: string | null, token: any | null): TokenDefinition; } declare var TokenDefinition: TokenDefinitionFunc; /** * @class SummaryValidationInfo */ interface SummaryValidationInfo { /** * @instance * @public * @memberof SummaryValidationInfo * @function SummaryElementPosition * @type ElementPosition */ SummaryElementPosition: ElementPosition | null; /** * Gets or sets the number of segment from ST. * * @instance * @public * @memberof SummaryValidationInfo * @function NumberOfSegmentFromST * @type number */ NumberOfSegmentFromST: number; /** * @instance * @public * @memberof SummaryValidationInfo * @function SummaryElementValue * @type System.Decimal */ SummaryElementValue: System.Decimal; /** * @instance * @public * @memberof SummaryValidationInfo * @function SummaryElementAggregateValue * @type System.Decimal */ SummaryElementAggregateValue: System.Decimal; /** * @instance * @public * @memberof SummaryValidationInfo * @function LineNumber * @type number */ LineNumber: number; /** * @instance * @public * @memberof SummaryValidationInfo * @function ElementOrdinal * @type number */ ElementOrdinal: number; /** * @instance * @public * @memberof SummaryValidationInfo * @function CompositeElementOrdinal * @type number */ CompositeElementOrdinal: number; /** * @instance * @public * @memberof SummaryValidationInfo * @function LoopID * @type string */ LoopID: string | null; /** * @instance * @public * @memberof SummaryValidationInfo * @function SegmentName * @type string */ SegmentName: string | null; /** * Gets or sets the schema element position. * * @instance * @public * @memberof SummaryValidationInfo * @function SchemaElementPosition * @type string */ SchemaElementPosition: string | null; } interface SummaryValidationInfoFunc extends Function { prototype: SummaryValidationInfo; new (): SummaryValidationInfo; } declare var SummaryValidationInfo: SummaryValidationInfoFunc; /** * @class SummaryElementsProcessor */ interface SummaryElementsProcessor { } interface SummaryElementsProcessorFunc extends Function { prototype: SummaryElementsProcessor; new (): SummaryElementsProcessor; /** * @static * @public * @this SummaryElementsProcessor * @memberof SummaryElementsProcessor * @param {string} summaryLine * @return {SummaryElementInfo} */ extractSummaryInformation(summaryLine: string | null): SummaryElementInfo | null; /** * @static * @public * @this SummaryElementsProcessor * @memberof SummaryElementsProcessor * @param {string} elementPostionString * @return {ElementPosition} */ getElementPosition(elementPostionString: string | null): ElementPosition | null; } declare var SummaryElementsProcessor: SummaryElementsProcessorFunc; /** * @class SummaryElementInfo */ interface SummaryElementInfo { /** * @instance * @public * @memberof SummaryElementInfo * @function SummaryElementPosition * @type ElementPosition */ SummaryElementPosition: ElementPosition | null; /** * @instance * @public * @memberof SummaryElementInfo * @function SummaryChildrenElements * @type System.Collections.Generic.List$1 */ SummaryChildrenElements: System.Collections.Generic.List$1<ElementPosition> | null; } interface SummaryElementInfoFunc extends Function { prototype: SummaryElementInfo; new (): SummaryElementInfo; } declare var SummaryElementInfo: SummaryElementInfoFunc; /** * Used by EDIRuleCreator * * @public * @class SummaryDisplay */ interface SummaryDisplay { /** * Gets or sets the element. * * @instance * @public * @memberof SummaryDisplay * @function Element * @type string */ Element: string | null; /** * Gets or sets the rule. * * @instance * @public * @memberof SummaryDisplay * @function Rule * @type string */ Rule: string | null; } interface SummaryDisplayFunc extends Function { prototype: SummaryDisplay; /** * Initializes a new instance of the {@link } class. * * @instance * @public * @this SummaryDisplay * @memberof SummaryDisplay * @param {string} element The element. * @param {string} rule The rule. * @return {void} */ new (element: string | null, rule: string | null): SummaryDisplay; } declare var SummaryDisplay: SummaryDisplayFunc; /** * @class StringSplitter */ interface StringSplitter { /** * The string buffer container * * @instance * @public * @memberof StringSplitter * @type Array.<string> */ buffer: string[] | null; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value * @param {number} separator * @return {number} The number of results found */ split(value: string | null, separator: number): number; /** * Returns a string array that contains the substrings in this instance that are delimited by a specified string or Unicode character array. * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value * @param {string} separator * @return {number} The number of results found */ split$4(value: string | null, separator: string | null): number; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @throws IndexOutOfRange * @param {string} value * @param {Array.<number>} separators * @return {number} The number of results found */ split$2(value: string | null, separators: number[] | null): number; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @throws IndexOutOfRange * @param {string} value * @param {number} separator * @param {System.StringSplitOptions} options * @return {number} The number of results found */ split$1(value: string | null, separator: number, options: System.StringSplitOptions): number; /** * Returns a string array that contains the substrings in this instance that are delimited by a specified string or Unicode character array. * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value * @param {string} separator * @param {System.StringSplitOptions} options * @return {number} The number of results found */ split$5(value: string | null, separator: string | null, options: System.StringSplitOptions): number; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @throws IndexOutOfRange * @param {string} value * @param {Array.<number>} separators * @param {System.StringSplitOptions} options * @return {number} The number of results found */ split$3(value: string | null, separators: number[] | null, options: System.StringSplitOptions): number; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is safe and will automatically adjust the buffer if needed * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value * @param {number} separator * @return {number} The number of results found */ safeSplit(value: string | null, separator: number): number; /** * Split the string * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value The number of results found * @param {string} separator * @return {number} */ safeSplit$4(value: string | null, separator: string | null): number; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value * @param {Array.<number>} separators * @return {number} The number of results found */ safeSplit$2(value: string | null, separators: number[] | null): number; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is safe and will automatically adjust the buffer if needed * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value * @param {number} separator * @param {System.StringSplitOptions} options * @return {number} The number of results found */ safeSplit$1(value: string | null, separator: number, options: System.StringSplitOptions): number; /** * Split the string * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {string} value The number of results found * @param {string} separator * @param {System.StringSplitOptions} options * @return {number} */ safeSplit$5(value: string | null, separator: string | null, options: System.StringSplitOptions): number; /** * Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array. This method is unsafe and can throw IndexOutOfRange exception if we overflow the buffer * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @throws IndexOutOfRange * @param {string} value * @param {Array.<number>} separators * @param {System.StringSplitOptions} options * @return {number} The number of results found */ safeSplit$3(value: string | null, separators: number[] | null, options: System.StringSplitOptions): number; } interface StringSplitterFunc extends Function { prototype: StringSplitter; /** * Create a new StringSplitter object with the given buffer size * * @instance * @public * @this StringSplitter * @memberof StringSplitter * @param {number} bufferSize * @return {void} */ new (bufferSize: number): StringSplitter; } declare var StringSplitter: StringSplitterFunc; /** * Snip Levels * * @public * @class SnipTestLevel */ enum SnipTestLevel { DoesNotApply = 0, Integrity = 1, Requirement = 2, Balance = 3, Situational = 4, CodeSet = 5 } /** * Simple LogicProcessor class is responsible for preforming logical operations on the values of elements * * @static * @abstract * @class SimpleLogicProcessor */ interface SimpleLogicProcessor { } interface SimpleLogicProcessorFunc extends Function { prototype: SimpleLogicProcessor; new (): SimpleLogicProcessor; /** * Takes an element value and based on a rule operator performs a logical operation - Self Rules * * @static * @public * @this SimpleLogicProcessor * @memberof SimpleLogicProcessor * @param {string} elementValue * @param {System.Collections.Generic.HashSet$1} conditionalValues * @param {RuleOperator} op * @return {boolean} true if condition met, false otherwise */ checkCondition$1(elementValue: string | null, conditionalValues: System.Collections.Generic.HashSet$1<string> | null, op: RuleOperator): boolean; /** * @static * @public * @this SimpleLogicProcessor * @memberof SimpleLogicProcessor * @param {string} elementValue * @param {string} conditionalValue * @param {RuleOperator} op * @return {boolean} */ checkCondition$2(elementValue: string | null, conditionalValue: string | null, op: RuleOperator): boolean; /** * Performs a local operation of elements found in a segment based on the rule operator and element values - Self Rules * * @static * @public * @this SimpleLogicProcessor * @memberof SimpleLogicProcessor * @param {number} elementNumber Oridinal# of Element * @param {System.Collections.Generic.HashSet$1} elementValues Possible values for element * @param {System.Collections.Generic.Dictionary$2} foundElements Found elements in the segment * @param {RuleOperator} op rule operator * @return {boolean} true if condition met, false otherwise */ checkCondition(elementNumber: number, elementValues: System.Collections.Generic.HashSet$1<string> | null, foundElements: System.Collections.Generic.Dictionary$2<number,string> | null, op: RuleOperator): boolean; } declare var SimpleLogicProcessor: SimpleLogicProcessorFunc; /** * This class is resonsible for taking a string and extracting the rules from it * * @static * @abstract * @public * @class SemanticsProcessor */ interface SemanticsProcessor { } interface SemanticsProcessorFunc extends Function { prototype: SemanticsProcessor; new (): SemanticsProcessor; /** * @static * @public * @this SemanticsProcessor * @memberof SemanticsProcessor * @param {string} ruleString * @param {System.Collections.Generic.Dictionary$2} codeLists * @return {SemanticRule} */ extractSemanticRule(ruleString: string | null, codeLists: System.Collections.Generic.Dictionary$2<string,CodeList> | null): SemanticRule | null; /** * @static * @private * @this SemanticsProcessor * @memberof SemanticsProcessor * @param {SemanticRule} rule * @param {string} elseUsageString * @return {void} */ /** * @static * @private * @this SemanticsProcessor * @memberof SemanticsProcessor * @param {SemanticRule} rule * @param {string} usageString * @return {void} */ /** * @static * @private * @this SemanticsProcessor * @memberof SemanticsProcessor * @param {SemanticRule} rule * @param {string} condOperator * @return {void} */ /** * @static * @private * @this SemanticsProcessor * @memberof SemanticsProcessor * @param {string} elementPostionString * @return {ElementPosition} */ } declare var SemanticsProcessor: SemanticsProcessorFunc; /** * Represents a rule that a segment or element must conform to * * @public * @class SemanticRule */ interface SemanticRule { /** * The segment/element position that this rule is based on * * @instance * @public * @memberof SemanticRule * @function BaseSegmentPosition * @type ElementPosition */ BaseSegmentPosition: ElementPosition | null; /** * The segment position of the segment/element that this rule is for * * @instance * @public * @memberof SemanticRule * @function DependentSegmentPosition * @type ElementPosition */ DependentSegmentPosition: ElementPosition | null; /** * Get/set the default values that the base segment's element must have when rule is applied * * @instance * @public * @memberof SemanticRule * @function DefaultValues * @type System.Collections.Generic.HashSet$1 */ DefaultValues: System.Collections.Generic.HashSet$1<string> | null; /** * Get/set the accepted values that the base segment's element must contain when rule is applied * * @instance * @public * @memberof SemanticRule * @function AcceptedValues * @type System.Collections.Generic.HashSet$1 */ AcceptedValues: System.Collections.Generic.HashSet$1<string> | null; /** * Get/set the conditional values that the base segment's element should have when rule is applied. The conditional values are values that the base segment's element must contain for the rule to be applied * * @instance * @public * @memberof SemanticRule * @function ConditionalValues * @type System.Collections.Generic.HashSet$1 */ ConditionalValues: System.Collections.Generic.HashSet$1<string> | null; /** * Get/Set the rule operator for rule * * @instance * @public * @memberof SemanticRule * @function RuleOperator * @type RuleOperator */ RuleOperator: RuleOperator; /** * Get/set the usage of the segment or element who holds this rule * * @instance * @public * @memberof SemanticRule * @function Usage * @type Usage */ Usage: Usage; /** * Get/set the usage of the segment or element usage when the rule condition evaluates to false * * @instance * @public * @memberof SemanticRule * @function ElseUsage * @type Usage */ ElseUsage: Usage; /** * Returns a string representation of this object * * @instance * @public * @override * @this SemanticRule * @memberof SemanticRule * @return {string} string representation of this object */ toString(): string | null; } interface SemanticRuleFunc extends Function { prototype: SemanticRule; /** * Creates a new SemanticRule object * * @instance * @public * @this SemanticRule * @memberof SemanticRule * @return {void} */ new (): SemanticRule; } declare var SemanticRule: SemanticRuleFunc; /** * Represents a rule that a segment uses to check itself * * @public * @class SelfRule */ interface SelfRule { /** * Get/set the element number that the rule will apply to * * @instance * @public * @memberof SelfRule * @function ElementNumber * @type number */ ElementNumber: number; /** * Get/set the possible values that will trigger the rule * * @instance * @public * @memberof SelfRule * @function ElementValues * @type System.Collections.Generic.HashSet$1 */ ElementValues: System.Collections.Generic.HashSet$1<string> | null; /** * Get/set the rule operator * * @instance * @public * @memberof SelfRule * @function RuleOperator * @type RuleOperator */ RuleOperator: RuleOperator; /** * Get/set the elements that must be used when the rule is applied * * @instance * @public * @memberof SelfRule * @function UsedElementCollection * @type System.Collections.Generic.List$1 */ UsedElementCollection: System.Collections.Generic.List$1<number> | null; /** * Get/set the elements that must not be used when the rule is applied * * @instance * @public * @memberof SelfRule * @function NotUsedElementCollection * @type System.Collections.Generic.List$1 */ NotUsedElementCollection: System.Collections.Generic.List$1<number> | null; /** * Returns the not used elements as a string with element number delimited by a space * * @instance * @public * @this SelfRule * @memberof SelfRule * @return {string} */ getNotUsedOrdinalsString(): string | null; /** * Returns the not used elements as a string with element number delimited by a the separator character * * @instance * @public * @this SelfRule * @memberof SelfRule * @param {number} separator * @return {string} separator character */ getNotUsedOrdinalsString$1(separator: number): string | null; /** * Returns the used elements as a string with element number delimited by a space * * @instance * @public * @this SelfRule * @memberof SelfRule * @return {string} */ getUsedOrdinalsString(): string | null; /** * Returns the used elements as a string with element number delimited by a the separator character * * @instance * @public * @this SelfRule * @memberof SelfRule * @param {number} separator * @return {string} separator character */ getUsedOrdinalsString$1(separator: number): string | null; /** * Returns a comma separated list of the element values that will trigger the rule * * @instance * @public * @this SelfRule * @memberof SelfRule * @return {string} */ getCommaSeparatedElementValues(): string | null; } interface SelfRuleFunc extends Function { prototype: SelfRule; /** * Creates a new SelfRule object * * @instance * @public * @this SelfRule * @memberof SelfRule * @return {void} */ new (): SelfRule; } declare var SelfRule: SelfRuleFunc; /** * Represent basic segment information used by EDIRulesReader and EDIRulesCreator * * @public * @class SegmentSchema */ interface SegmentSchema { /** * @instance * @public * @memberof SegmentSchema * @function IsSegmentLoop * @type boolean */ IsSegmentLoop: boolean; /** * Gets or sets the position. * * @instance * @public * @memberof SegmentSchema * @function Position * @type string */ Position: string | null; /** * Get/set whether segment is the only segment in the loop * * @instance * @public * @memberof SegmentSchema * @function OnlySegmentInLoop * @type boolean */ OnlySegmentInLoop: boolean; /** * Get/set the name of segment * * @instance * @public * @memberof SegmentSchema * @function Name * @type string */ Name: string | null; /** * Get the orginal number of segment within the EDI rules file * * @instance * @public * @memberof SegmentSchema * @function OridinalNumber * @type number */ OridinalNumber: number; /** * Get/set the minimum amount of times segment will appear in its containing loop * * @instance * @public * @memberof SegmentSchema * @function MinimumOccurrences * @type number */ MinimumOccurrences: number; /** * Get/set the maximum amount of times segment will appear in its containing loop * * @instance * @public * @memberof SegmentSchema * @function MaximumOccurrences * @type number */ MaximumOccurrences: number; /** * Get/set whether segment repeats indefinitely * * @instance * @public * @memberof SegmentSchema * @function RepeatIndefinite * @type boolean */ RepeatIndefinite: boolean; /** * Get/set the rules that apply to segment * * @instance * @public * @memberof SegmentSchema * @function Rules * @type System.Collections.Generic.List$1 */ Rules: System.Collections.Generic.List$1<SemanticRule> | null; /** * @instance * @public * @memberof SegmentSchema * @function GeneralRules * @type System.Collections.Generic.List$1 */ GeneralRules: System.Collections.Generic.List$1<GeneralRule> | null; /** * Get/set usage of segment within containing loop * * @instance * @public * @memberof SegmentSchema * @function Usage * @type Usage */ Usage: Usage; /** * Get/set the mask number of the segment * * @instance * @public * @memberof SegmentSchema * @function MaskNumber * @type number */ MaskNumber: number; } interface SegmentSchemaFunc extends Function { prototype: SegmentSchema