digicust_types 1.7.124 → 1.7.128
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.
|
@@ -2,6 +2,8 @@ import { HsCodeModel, Meta, ClassificationCode } from "../common";
|
|
|
2
2
|
export interface CustomsTariffNumber extends Meta<string> {
|
|
3
3
|
hsCode?: Meta<string>;
|
|
4
4
|
additionalCodes?: Meta<string>[];
|
|
5
|
+
hsCodeInvoice?: Meta<string>;
|
|
6
|
+
customsDescription?: Meta<string>;
|
|
5
7
|
tradeZone?: {
|
|
6
8
|
[key: string]: {
|
|
7
9
|
code?: ClassificationCode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TypeOfBusinessType, TradePreference } from "..";
|
|
2
|
+
import { Money, DateTimeModel, Quantity, Workflow, Meta, UOM, Weight, Dimensions, CustomsTariffNumber } from "../..";
|
|
3
3
|
export interface ItemPrice {
|
|
4
4
|
price?: Money;
|
|
5
5
|
priceDate?: DateTimeModel;
|
|
@@ -22,22 +22,25 @@ export interface ItemCountryOfOrigin {
|
|
|
22
22
|
documentId?: string;
|
|
23
23
|
recipientId?: string;
|
|
24
24
|
}
|
|
25
|
-
export interface Meursing extends Meta<string
|
|
25
|
+
export interface Meursing extends Meta<string> {
|
|
26
26
|
milkfat?: Workflow<number>;
|
|
27
27
|
protein?: Workflow<number>;
|
|
28
28
|
starch?: Workflow<number>;
|
|
29
29
|
saccharose?: Workflow<number>;
|
|
30
30
|
}
|
|
31
|
+
export declare enum MaterialCreationType {
|
|
32
|
+
manual = "manual",
|
|
33
|
+
processed = "processed"
|
|
34
|
+
}
|
|
31
35
|
export interface MaterialModel {
|
|
32
36
|
id?: string;
|
|
33
37
|
customerId?: string;
|
|
34
38
|
projectId?: string;
|
|
39
|
+
creationType?: MaterialCreationType;
|
|
35
40
|
materialNumber?: Workflow<string>;
|
|
36
41
|
code?: Workflow<string>;
|
|
37
42
|
description?: Workflow<string>;
|
|
38
|
-
|
|
39
|
-
[lang: string]: Workflow<string>;
|
|
40
|
-
};
|
|
43
|
+
invoiceDescription?: Workflow<string>;
|
|
41
44
|
unitOfMeasurement?: Workflow<UOM>;
|
|
42
45
|
countryOfOriginHistory?: ItemCountryOfOrigin[];
|
|
43
46
|
itemPrice?: Money & Workflow<number>;
|
|
@@ -47,10 +50,13 @@ export interface MaterialModel {
|
|
|
47
50
|
buyerArticleNumber?: Workflow<string>;
|
|
48
51
|
buyerOrderNumber?: Workflow<string>;
|
|
49
52
|
dimensions?: Dimensions & Workflow<any>;
|
|
50
|
-
meursing?: Meursing
|
|
51
|
-
documentTypeCodes?:
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
meursing?: Meursing[];
|
|
54
|
+
documentTypeCodes?: Workflow<{
|
|
55
|
+
code?: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
reference?: string;
|
|
58
|
+
type?: "import" | "export" | "any";
|
|
59
|
+
}>[];
|
|
54
60
|
customsLaw?: {
|
|
55
61
|
customsTariffNumber?: CustomsTariffNumber & Workflow<any>;
|
|
56
62
|
procedure?: Workflow<string>;
|
|
@@ -79,7 +85,10 @@ export interface MaterialModel {
|
|
|
79
85
|
* Different materialNumbers might be applied for different recipients.
|
|
80
86
|
* The recipientId refers to a stakeholder.
|
|
81
87
|
*/
|
|
82
|
-
|
|
88
|
+
recipients?: {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
}[];
|
|
83
92
|
meta?: {
|
|
84
93
|
version?: number;
|
|
85
94
|
userCreated?: boolean;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaterialCreationType = void 0;
|
|
4
|
+
var MaterialCreationType;
|
|
5
|
+
(function (MaterialCreationType) {
|
|
6
|
+
MaterialCreationType["manual"] = "manual";
|
|
7
|
+
MaterialCreationType["processed"] = "processed";
|
|
8
|
+
})(MaterialCreationType = exports.MaterialCreationType || (exports.MaterialCreationType = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digicust_types",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.128",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/Digicust0406/types#readme",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@types/node": "^14.18.
|
|
27
|
+
"@types/node": "^14.18.3",
|
|
28
28
|
"typedoc": "^0.22.10"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|