digicust_types 1.8.502 → 1.8.504

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,7 @@
1
+ import { Meta } from "../../meta";
2
+ export interface CHSpecificAggegated {
3
+ clearanceLocation?: Meta<CHClearanceLocation>;
4
+ declarationTime?: Meta<CHDeclarationTime>;
5
+ }
6
+ export type CHClearanceLocation = 1 | 2;
7
+ export type CHDeclarationTime = 1 | 2 | 3 | 99;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { Meta } from "../../meta";
2
+ export interface CHSpecificLineItem {
3
+ hc?: Meta<CHcommercialGood>;
4
+ vs?: Meta<CHcustomsClearanceType>;
5
+ nze?: Meta<number>;
6
+ permitObligation?: Meta<CHpermitObligation>;
7
+ }
8
+ export type CHcommercialGood = 1 | 2;
9
+ export type CHcustomsClearanceType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
10
+ export type CHpermitObligation = 0 | 1 | 2;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./CH-specific-aggregated";
2
+ export * from "./CH-specific-line-items";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CH-specific-aggregated"), exports);
18
+ __exportStar(require("./CH-specific-line-items"), exports);
@@ -138,6 +138,7 @@ export interface ExecutionStrategy {
138
138
  statisticalValueRounding?: "noRounding" | "roundOff" | "roundUp" | "roundToNearest";
139
139
  forceTotalValueToStatisticalValue?: boolean;
140
140
  statisticalValueAdditionDeductionOnlyToFirstLineItem?: boolean;
141
+ ignoreLineItemsWithNoValue?: boolean;
141
142
  defaultInvoiceType?: "tax_invoice" | "proforma";
142
143
  /** Between 0 and 1 */
143
144
  foreignFreightCostRate?: number;
@@ -0,0 +1 @@
1
+ export * from "./module.model";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./module.model"), exports);
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Identifies a module. Modules are different "programs" in the frontend
3
+ */
4
+ export interface ModuleModel {
5
+ id?: string;
6
+ alias?: string;
7
+ type?: ModuleType;
8
+ active?: boolean;
9
+ executionStrategies?: {
10
+ Default?: ModuleExecStrategy;
11
+ Declaration?: ModuleExecStrategy;
12
+ PreDeclaration?: ModuleExecStrategy;
13
+ SimplifiedProcedure?: ModuleExecStrategy;
14
+ WriteupProcedure?: ModuleExecStrategy;
15
+ T1Transit?: ModuleExecStrategy;
16
+ T2Transit?: ModuleExecStrategy;
17
+ MasterData?: ModuleExecStrategy;
18
+ StakeHolderData?: ModuleExecStrategy;
19
+ };
20
+ }
21
+ interface ModuleExecStrategy {
22
+ title?: string;
23
+ executionStrategyId?: string;
24
+ alias?: string;
25
+ active?: boolean;
26
+ }
27
+ export declare enum ModuleType {
28
+ import = "Import",
29
+ export = "Export",
30
+ warehouseProcedure = "Warehouse Procedure",
31
+ transitProcedure = "Transit Procedure",
32
+ dataExtraction = "Data Extraction",
33
+ documentClassification = "Document Classification",
34
+ productClassification = "Product Classification",
35
+ statistics = "Statistics",
36
+ masterModule = "Master Module"
37
+ }
38
+ export declare enum ModuleCategory {
39
+ default = "Default",
40
+ declaration = "Declaration",
41
+ preDeclaration = "Pre Declaration",
42
+ simplifiedProcedure = "Simplified Procedure",
43
+ writeupProcedure = "Writeup Procedure",
44
+ t1Transit = "T1 Transit",
45
+ t2Transit = "T2 Transit",
46
+ masterData = "Master Data",
47
+ stakeHolderData = "StakeHolder Data"
48
+ }
49
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModuleCategory = exports.ModuleType = void 0;
4
+ var ModuleType;
5
+ (function (ModuleType) {
6
+ ModuleType["import"] = "Import";
7
+ ModuleType["export"] = "Export";
8
+ ModuleType["warehouseProcedure"] = "Warehouse Procedure";
9
+ ModuleType["transitProcedure"] = "Transit Procedure";
10
+ ModuleType["dataExtraction"] = "Data Extraction";
11
+ ModuleType["documentClassification"] = "Document Classification";
12
+ ModuleType["productClassification"] = "Product Classification";
13
+ ModuleType["statistics"] = "Statistics";
14
+ ModuleType["masterModule"] = "Master Module";
15
+ })(ModuleType || (exports.ModuleType = ModuleType = {}));
16
+ var ModuleCategory;
17
+ (function (ModuleCategory) {
18
+ ModuleCategory["default"] = "Default";
19
+ ModuleCategory["declaration"] = "Declaration";
20
+ ModuleCategory["preDeclaration"] = "Pre Declaration";
21
+ ModuleCategory["simplifiedProcedure"] = "Simplified Procedure";
22
+ ModuleCategory["writeupProcedure"] = "Writeup Procedure";
23
+ ModuleCategory["t1Transit"] = "T1 Transit";
24
+ ModuleCategory["t2Transit"] = "T2 Transit";
25
+ ModuleCategory["masterData"] = "Master Data";
26
+ ModuleCategory["stakeHolderData"] = "StakeHolder Data";
27
+ })(ModuleCategory || (exports.ModuleCategory = ModuleCategory = {}));
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  /**
2
4
  * Information about an uploaded file. Used by multer package.
3
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.502",
3
+ "version": "1.8.504",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",