digicust_types 1.8.512 → 1.8.514
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/execution-strategy/execution-strategy.model.d.ts +2 -0
- package/lib/models/digicust/execution-strategy/index.d.ts +1 -0
- package/lib/models/digicust/execution-strategy/index.js +1 -0
- package/lib/models/digicust/execution-strategy/material-enrichment-merge-config.d.ts +5 -0
- package/lib/models/digicust/execution-strategy/material-enrichment-merge-config.js +2 -0
- package/lib/models/digicust/execution-strategy/merge-line-item-mode.enum.d.ts +9 -0
- package/lib/models/digicust/execution-strategy/merge-line-item-mode.enum.js +20 -0
- package/lib/models/digicust/line-item/line-item.model.d.ts +4 -2
- package/package.json +1 -1
@@ -2,6 +2,7 @@ import { CustomsTariffNumberNormalizationSettings, DigicustDocumentType, Event,
|
|
2
2
|
import { UserInputTemplate } from "../userInputTemplate";
|
3
3
|
import { Submission } from "./sftp-config.model";
|
4
4
|
import { UploadWidget } from "./uploadWidget";
|
5
|
+
import { MaterialEnrichmentMergeConfig } from "./material-enrichment-merge-config";
|
5
6
|
/**
|
6
7
|
* Execution strategies are customer-configurable plans on how to process a specific case.
|
7
8
|
*/
|
@@ -509,6 +510,7 @@ export interface ExecutionStrategy {
|
|
509
510
|
disableMaterialNumberMatching?: boolean;
|
510
511
|
sendMasterDataTariffNumberOnly?: boolean;
|
511
512
|
sendMasterDataDescriptionOnly?: boolean;
|
513
|
+
materialEnrichmentMergeConfig?: MaterialEnrichmentMergeConfig;
|
512
514
|
tariffNumberMatchingConfiguration?: {
|
513
515
|
stakeholderFilters?: ("shipper" | "consignee" | "recipient" | "beneficiary" | "applicant" | "declarant" | "importer" | "exporter" | "buyer" | "agent" | "broker" | "carrier" | "warehouse" | "obligater")[];
|
514
516
|
matchShipperCountry?: boolean;
|
@@ -20,3 +20,4 @@ __exportStar(require("./sftp-config.model"), exports);
|
|
20
20
|
__exportStar(require("./resolved-rule"), exports);
|
21
21
|
__exportStar(require("./ruleCatalogItem"), exports);
|
22
22
|
__exportStar(require("./condition"), exports);
|
23
|
+
__exportStar(require("./merge-line-item-mode.enum"), exports);
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare enum MergeLineItemModeEnum {
|
2
|
+
standard = "standard",
|
3
|
+
extended = "extended",
|
4
|
+
pickInvoiceItems = "pickInvoiceItems",
|
5
|
+
pickPackingListItems = "pickPackingListItems",
|
6
|
+
mergeMultiplePackingLists = "mergeMultiplePackingLists",
|
7
|
+
pickDeliveryNoteItems = "pickDeliveryNoteItems",
|
8
|
+
pickExportDeclarationItems = "pickExportDeclarationItems"
|
9
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MergeLineItemModeEnum = void 0;
|
4
|
+
var MergeLineItemModeEnum;
|
5
|
+
(function (MergeLineItemModeEnum) {
|
6
|
+
// Default behavior, disables merging if exportDeclarations, importDeclarations, transitDeclarations or turkishExportDeclarations exist
|
7
|
+
MergeLineItemModeEnum["standard"] = "standard";
|
8
|
+
// Try to merge even if exportDeclarations, importDeclarations, transitDeclarations or turkishExportDeclarations exist
|
9
|
+
MergeLineItemModeEnum["extended"] = "extended";
|
10
|
+
// Pick only invoice items without merging, if any invoice items exist (else fallback to "standard" behavior)
|
11
|
+
MergeLineItemModeEnum["pickInvoiceItems"] = "pickInvoiceItems";
|
12
|
+
// Pick only packagelist items without merging, if any packinglists exist (else fallback to "standard" behavior)
|
13
|
+
MergeLineItemModeEnum["pickPackingListItems"] = "pickPackingListItems";
|
14
|
+
// Merge only multiple packinglist's items with each other, picking the first packingList as the base-line for the others
|
15
|
+
MergeLineItemModeEnum["mergeMultiplePackingLists"] = "mergeMultiplePackingLists";
|
16
|
+
// Pick only deliverynote items without merging, if any deliverynotes exist (else fallback to "standard" behavior)
|
17
|
+
MergeLineItemModeEnum["pickDeliveryNoteItems"] = "pickDeliveryNoteItems";
|
18
|
+
// Pick only exportDeclaration/turkishExportDeclaration items without merging, if any deliverynotes exist (else fallback to "standard" behavior)
|
19
|
+
MergeLineItemModeEnum["pickExportDeclarationItems"] = "pickExportDeclarationItems";
|
20
|
+
})(MergeLineItemModeEnum || (exports.MergeLineItemModeEnum = MergeLineItemModeEnum = {}));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Adjustment, Container, DigicustDocumentModel, DocumentTypeCode, MatchingMetadataModel, MaterialMatchInput, MaterialMatchResult, Package, PreferenceState, Procedure, AddressModel, CompanyModel, Currency, CustomsTariffNumber, Meta, Money, Quantity, Weight, WeightUnit, Bbox, UnitOfMeasurement, MasterDataCreationType, CustomsDuty, ImportSalesTax, AdditionDeduction, Translatable, TypeOfBusiness, CountrySpecificLineItem, DateTimeModel, PackageType, VOC } from "..";
|
1
|
+
import { Adjustment, Container, DigicustDocumentModel, DocumentTypeCode, MatchingMetadataModel, MaterialMatchInput, MaterialMatchResult, Package, PreferenceState, Procedure, AddressModel, CompanyModel, Currency, CustomsTariffNumber, Meta, Money, Quantity, Weight, WeightUnit, Bbox, UnitOfMeasurement, MasterDataCreationType, CustomsDuty, ImportSalesTax, AdditionDeduction, Translatable, TypeOfBusiness, CountrySpecificLineItem, DateTimeModel, PackageType, VOC, MaterialMatchByTariffNumberInput } from "..";
|
2
2
|
import { ItemFraudDetectionDetails } from "../fraud/item-fraud-detection";
|
3
3
|
import { LineItemDescriptionModel } from "./line-item-description.model";
|
4
4
|
/**
|
@@ -105,6 +105,7 @@ export interface LineItemModel {
|
|
105
105
|
containers?: Container[];
|
106
106
|
chassisNumber?: Meta<string>;
|
107
107
|
materialId?: string;
|
108
|
+
secondaryMaterialId?: string;
|
108
109
|
creationType?: MasterDataCreationType;
|
109
110
|
materialMatchingType?: "materialNumber" | "tariffNumber";
|
110
111
|
bbox?: Bbox;
|
@@ -112,7 +113,8 @@ export interface LineItemModel {
|
|
112
113
|
dangerousGoods?: {
|
113
114
|
UNNumber?: Meta<string>;
|
114
115
|
}[];
|
115
|
-
matchingMetadata?: MatchingMetadataModel<MaterialMatchInput, MaterialMatchResult>;
|
116
|
+
matchingMetadata?: MatchingMetadataModel<MaterialMatchInput, MaterialMatchResult> | MatchingMetadataModel<MaterialMatchByTariffNumberInput, MaterialMatchResult>;
|
117
|
+
secondaryMatchingMetadata?: MatchingMetadataModel<MaterialMatchInput, MaterialMatchResult> | MatchingMetadataModel<MaterialMatchByTariffNumberInput, MaterialMatchResult>;
|
116
118
|
countrySpecific?: CountrySpecificLineItem;
|
117
119
|
beforeNormalization?: {
|
118
120
|
totalNetWeight?: Weight;
|