digicust_types 1.7.132 → 1.7.136

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.
@@ -1,7 +1,7 @@
1
1
  import { AddressModel } from "./address.model";
2
2
  import { PersonModel } from "./person.model";
3
3
  import { Meta } from "./meta";
4
- import { MatchingMetadataModel, StakeholderMatchingMethod } from '../digicust/masterdata';
4
+ import { MatchingMetadataModel, StakeholderMatchingMethod } from "../digicust/masterdata";
5
5
  /**
6
6
  * Identifies a company
7
7
  */
@@ -16,6 +16,7 @@ export interface CompanyModel extends Meta<string> {
16
16
  TIN?: Meta<string>;
17
17
  inputTaxDeduction?: Meta<boolean>;
18
18
  securityNumber?: Meta<string>;
19
+ externalIdentifier?: Meta<string>;
19
20
  stakeholderId?: string;
20
21
  matchingMetadata?: MatchingMetadataModel<StakeholderMatchingMethod>;
21
22
  }
@@ -21,13 +21,6 @@ export interface WebhookEvent extends Event {
21
21
  bodyMapping?: string;
22
22
  contentType?: string;
23
23
  }
24
- export interface MountedSFTPEvent extends Event {
25
- type: EventType.mountedSFTP;
26
- /** How to map the data */
27
- caseFileMapping: CaseFileMapping;
28
- "mounted-base-path": string;
29
- "sftp-path": string;
30
- }
31
24
  export interface SFTPEvent extends Event {
32
25
  type: EventType.sftp;
33
26
  /** How to map the data */
@@ -21,10 +21,6 @@ export interface ExecutionStrategy {
21
21
  "sftp-inbound"?: string;
22
22
  "sftp-outbound"?: string;
23
23
  };
24
- importViaMountedSFTP?: {
25
- "mounted-base-path": string;
26
- "sftp-path": string;
27
- };
28
24
  whitelistedImportEmails?: string[];
29
25
  defaultClassification?: DigicustDocumentType;
30
26
  dataExtraction?: {
@@ -25,6 +25,7 @@ export interface LineItemModel {
25
25
  serialNumber?: Meta<string>;
26
26
  orderNumber?: Meta<string>;
27
27
  description?: Meta<string>;
28
+ documentDescription?: Meta<string>;
28
29
  quantity?: Quantity;
29
30
  orderedQuantity?: Quantity;
30
31
  unitOfMeasurement?: Meta<UOM>;
@@ -36,7 +37,7 @@ export interface LineItemModel {
36
37
  amountUnit?: Meta<number>;
37
38
  discount?: Money;
38
39
  discountUnit?: Meta<Currency>;
39
- currency: Meta<Currency>;
40
+ currency?: Meta<Currency>;
40
41
  netWeight?: Weight;
41
42
  totalNetWeight?: Weight;
42
43
  grossWeight?: Weight;
@@ -30,7 +30,8 @@ export interface Meursing extends Meta<string> {
30
30
  }
31
31
  export declare enum MaterialCreationType {
32
32
  manual = "manual",
33
- processed = "processed"
33
+ processed = "processed",
34
+ file = "file"
34
35
  }
35
36
  export interface MaterialModel {
36
37
  id?: string;
@@ -40,7 +41,7 @@ export interface MaterialModel {
40
41
  materialNumber?: Workflow<string>;
41
42
  code?: Workflow<string>;
42
43
  description?: Workflow<string>;
43
- invoiceDescription?: Workflow<string>;
44
+ documentDescription?: Workflow<string>;
44
45
  unitOfMeasurement?: Workflow<UOM>;
45
46
  countryOfOriginHistory?: ItemCountryOfOrigin[];
46
47
  itemPrice?: Money & Workflow<number>;
@@ -51,12 +52,11 @@ export interface MaterialModel {
51
52
  buyerOrderNumber?: Workflow<string>;
52
53
  dimensions?: Dimensions & Workflow<any>;
53
54
  meursing?: Meursing[];
54
- documentTypeCodes?: Workflow<{
55
- code?: string;
55
+ documentTypeCodes?: ({
56
56
  description?: string;
57
57
  reference?: string;
58
- type?: "import" | "export" | "any";
59
- }>[];
58
+ type?: "Import" | "Export" | "Any";
59
+ } & Workflow<string>)[];
60
60
  customsLaw?: {
61
61
  customsTariffNumber?: CustomsTariffNumber & Workflow<any>;
62
62
  procedure?: Workflow<string>;
@@ -5,4 +5,5 @@ var MaterialCreationType;
5
5
  (function (MaterialCreationType) {
6
6
  MaterialCreationType["manual"] = "manual";
7
7
  MaterialCreationType["processed"] = "processed";
8
+ MaterialCreationType["file"] = "file"; // If added through file upload on frontend
8
9
  })(MaterialCreationType = exports.MaterialCreationType || (exports.MaterialCreationType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.132",
3
+ "version": "1.7.136",
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.2",
27
+ "@types/node": "^14.18.3",
28
28
  "typedoc": "^0.22.10"
29
29
  },
30
30
  "devDependencies": {