digicust_types 1.8.388 → 1.8.390
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.
- package/lib/models/digicust/case/case-file.mapping.d.ts +24 -0
- package/lib/models/digicust/case/case-file.mapping.js +2 -0
- package/lib/models/digicust/case/index.d.ts +1 -0
- package/lib/models/digicust/case/index.js +1 -0
- package/lib/models/digicust/event/event.model.d.ts +1 -16
- package/lib/models/digicust/execution-strategy/execution-strategy.model.d.ts +8 -0
- package/package.json +1 -1
@@ -0,0 +1,24 @@
|
|
1
|
+
export interface CaseFileMapping {
|
2
|
+
format?: "JSON" | "CSV" | "XML" | "TXT" | "XLSX";
|
3
|
+
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
4
|
+
fileNameMapping?: string;
|
5
|
+
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
6
|
+
mapping?: string;
|
7
|
+
/** Remove tags that are "", null or undefined from output. Defaults to false */
|
8
|
+
removeEmptyTags?: boolean;
|
9
|
+
/** Delimiter for CSV mapping */
|
10
|
+
csvSeparator?: string;
|
11
|
+
csvForceTextDelimiter?: boolean;
|
12
|
+
/**
|
13
|
+
* Text delimiter for CSV mapping. Defaults to '"'
|
14
|
+
*/
|
15
|
+
csvTextDelimiter?: string;
|
16
|
+
/**
|
17
|
+
* Replace CSV separator in values with this string.
|
18
|
+
*/
|
19
|
+
csvReplaceCsvSeparatorInFields?: string;
|
20
|
+
/** Include headers in CSV */
|
21
|
+
includeHeaders?: boolean;
|
22
|
+
/** Remove non-latin symbols */
|
23
|
+
removeAccents?: boolean;
|
24
|
+
}
|
@@ -19,5 +19,6 @@ __exportStar(require("./case-status.enum"), exports);
|
|
19
19
|
__exportStar(require("./case-submission-transaction"), exports);
|
20
20
|
__exportStar(require("./case-type.enum"), exports);
|
21
21
|
__exportStar(require("./case.model"), exports);
|
22
|
+
__exportStar(require("./case-file.mapping"), exports);
|
22
23
|
__exportStar(require("./context.model"), exports);
|
23
24
|
__exportStar(require("./uploaded-file.model"), exports);
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { CaseFileMapping } from "../case";
|
1
2
|
/**
|
2
3
|
* Base model of an event (e.g. webhook or email)
|
3
4
|
*/
|
@@ -53,19 +54,3 @@ export interface EmailEvent extends Event {
|
|
53
54
|
active?: boolean;
|
54
55
|
} & CaseFileMapping;
|
55
56
|
}
|
56
|
-
export interface CaseFileMapping {
|
57
|
-
format?: "JSON" | "CSV" | "XML" | "TXT" | "XLSX";
|
58
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
59
|
-
fileNameMapping?: string;
|
60
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
61
|
-
mapping?: string;
|
62
|
-
/** Remove tags that are "", null or undefined from output. Defaults to false */
|
63
|
-
removeEmptyTags?: boolean;
|
64
|
-
/** Delimiter for CSV mapping */
|
65
|
-
csvSeparator?: string;
|
66
|
-
csvForceTextDelimiter?: boolean;
|
67
|
-
/** Include headers in CSV */
|
68
|
-
includeHeaders?: boolean;
|
69
|
-
/** Remove non-latin symbols */
|
70
|
-
removeAccents?: boolean;
|
71
|
-
}
|
@@ -509,6 +509,14 @@ export interface ExecutionStrategy {
|
|
509
509
|
doNotSendUploadNotification?: boolean;
|
510
510
|
doNotSendProcessedNotification?: boolean;
|
511
511
|
ruleSystem?: "default" | "chained";
|
512
|
+
ruleSettings: {
|
513
|
+
/**
|
514
|
+
* Sort line items before applying line item rules with annotateOnlyFirstLineItem.
|
515
|
+
* This influences which ones of these line items will be annotated.
|
516
|
+
* Default value: position
|
517
|
+
*/
|
518
|
+
sortLineItemsBeforeAnnotating: "position" | "customsTariffNumber";
|
519
|
+
};
|
512
520
|
events?: Event[];
|
513
521
|
rules?: Rule[];
|
514
522
|
userInputTemplates?: UserInputTemplate[];
|