digicust_types 1.8.520 → 1.8.522

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,10 @@
1
+ export interface AppliedRuleModel {
2
+ ruleId: string;
3
+ ruleName: string;
4
+ appliedAt: Date;
5
+ matchedConditions?: {
6
+ conditionId?: string;
7
+ conditionExpression?: string;
8
+ evaluatedValue?: any;
9
+ }[];
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  import { AggregatedCaseDataModel, CaseStatus, DigicustDocumentModel, Environment, ErrorModel, ExecutionStrategy, Meta, ProcedureMode, UploadedFileModel } from "..";
2
2
  import { ProcessingModel } from "../queue";
3
+ import { AppliedRuleModel } from "./applied-rule.model";
3
4
  /**
4
5
  * Model used for any kind of customs case.
5
6
  */
@@ -57,5 +58,7 @@ export interface CaseModel {
57
58
  aggregated?: AggregatedCaseDataModel;
58
59
  /** Information on how the case needs to be processed */
59
60
  executionStrategy?: ExecutionStrategy;
61
+ /** Rules that were applied during case processing */
62
+ appliedRules?: AppliedRuleModel[];
60
63
  }
61
64
  export declare const condenseCaseModel: (caseModel?: CaseModel) => CaseModel;
@@ -1,4 +1,5 @@
1
1
  export * from "./aggregated-case-data.model";
2
+ export * from "./applied-rule.model";
2
3
  export * from "./case-status.enum";
3
4
  export * from "./case-submission-transaction";
4
5
  export * from "./case-type.enum";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./aggregated-case-data.model"), exports);
18
+ __exportStar(require("./applied-rule.model"), exports);
18
19
  __exportStar(require("./case-status.enum"), exports);
19
20
  __exportStar(require("./case-submission-transaction"), exports);
20
21
  __exportStar(require("./case-type.enum"), exports);
@@ -0,0 +1,18 @@
1
+ import { DocumentCodeSource } from "./document-code-source.enum";
2
+ import { ConditionModel } from "../execution-strategy/condition.model";
3
+ export interface DocumentCodeSourceContext {
4
+ source: DocumentCodeSource;
5
+ taricQueryParams?: {
6
+ itemId?: string;
7
+ countryCode?: string;
8
+ procedureMode?: string;
9
+ certificateType?: string;
10
+ };
11
+ ruleMetadata?: {
12
+ name?: string;
13
+ id?: string;
14
+ conditions?: ConditionModel[];
15
+ };
16
+ computationParams?: any;
17
+ materialId?: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  /**
4
3
  * Information about an uploaded file. Used by multer package.
5
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.520",
3
+ "version": "1.8.522",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",