@nomalism-com/types 0.18.79 → 0.19.2
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,5 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { DocumentLine,
|
|
2
|
+
import { DocumentLine, DocumentLineVirtuals, DocumentLineFolder, DocumentLinePendingConflict } from '../../../shared/entities';
|
|
3
3
|
import * as IDocumentLineAssoc from '../documentLineAssoc/interfaces';
|
|
4
4
|
import * as IDocumentHeader from '../documentHeader/interfaces';
|
|
5
5
|
import * as IDocumentType from '../documentType/interfaces';
|
|
@@ -8,7 +8,6 @@ export declare const Route = "documentLine";
|
|
|
8
8
|
export declare const UpperName = "DocumentLine";
|
|
9
9
|
export declare const LowerName: string;
|
|
10
10
|
export type IDocumentLineVirtuals = DocumentLineVirtuals;
|
|
11
|
-
export type IDocumentLineBaseVirtuals = DocumentLineBaseVirtuals;
|
|
12
11
|
export declare enum IMetadataPlugins {
|
|
13
12
|
almofada = "almofada",
|
|
14
13
|
atoalhado = "atoalhado",
|
|
@@ -133,8 +132,7 @@ export type IDocumentLineDocuments = Pick<IDocumentHeader.Entity, 'pdf_link' | '
|
|
|
133
132
|
};
|
|
134
133
|
export interface IEntityExtended extends DocumentLine {
|
|
135
134
|
data: IData;
|
|
136
|
-
|
|
137
|
-
virtual: IDocumentLineBaseVirtuals | null;
|
|
135
|
+
virtual: IDocumentLineVirtuals | null;
|
|
138
136
|
document_headers: IDocumentLineDocuments[];
|
|
139
137
|
document_line_folder: DocumentLineFolder | null;
|
|
140
138
|
pending_conflict: DocumentLinePendingConflict | null;
|
|
@@ -79,7 +79,6 @@ export import ZipCode = User.ZipCode;
|
|
|
79
79
|
export import DocumentSet = Stock.DocumentSet;
|
|
80
80
|
export import ExternalDocumentType = Stock.ExternalDocumentType;
|
|
81
81
|
export import File = Integration.File;
|
|
82
|
-
export import DocumentLineBaseVirtuals = Stock.DocumentLineBaseVirtuals;
|
|
83
82
|
export import DocumentLineVirtuals = Stock.DocumentLineVirtuals;
|
|
84
83
|
export import StartDocumentHeaderVirtuals = Stock.StartDocumentHeaderVirtuals;
|
|
85
84
|
export import DocumentHeaderVirtuals = Stock.DocumentHeaderVirtuals;
|
|
@@ -871,6 +871,7 @@ export type PhcInvoiceLines = {
|
|
|
871
871
|
};
|
|
872
872
|
export type ProductPromotionVirtuals = {
|
|
873
873
|
product_id: string;
|
|
874
|
+
promotion_assoc_id: string;
|
|
874
875
|
name: string;
|
|
875
876
|
initial_date: Date;
|
|
876
877
|
final_date: Date;
|
|
@@ -878,7 +879,6 @@ export type ProductPromotionVirtuals = {
|
|
|
878
879
|
free_shipping_for_purchases_above: number | null;
|
|
879
880
|
discount: number;
|
|
880
881
|
promotion_price: number;
|
|
881
|
-
promotion_id: string;
|
|
882
882
|
exclusive_to_client_id: string | null;
|
|
883
883
|
exclusive_to_location_id: string | null;
|
|
884
884
|
};
|
|
@@ -897,7 +897,7 @@ export type ProductVirtuals = {
|
|
|
897
897
|
available: number;
|
|
898
898
|
ordered_quantity: number;
|
|
899
899
|
};
|
|
900
|
-
export type
|
|
900
|
+
export type DocumentLineVirtuals = {
|
|
901
901
|
document_line_id: string;
|
|
902
902
|
client_unit_total_without_tax: number;
|
|
903
903
|
client_unit_total_without_discount: number;
|
|
@@ -953,9 +953,6 @@ export type DocumentLineBaseVirtuals = {
|
|
|
953
953
|
returned_from_invoice_external_id: string | null;
|
|
954
954
|
return_id: string | null;
|
|
955
955
|
credit_note_id: string | null;
|
|
956
|
-
};
|
|
957
|
-
export type DocumentLineVirtuals = {
|
|
958
|
-
document_line_id: string;
|
|
959
956
|
state: string;
|
|
960
957
|
provider_state: string;
|
|
961
958
|
};
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.19.2",
|
|
13
13
|
"main": "./dist/index.min.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
41
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
42
|
-
"@types/node": "^20.11.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^7.1.
|
|
44
|
-
"@typescript-eslint/parser": "^7.1.
|
|
42
|
+
"@types/node": "^20.11.25",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
44
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
45
45
|
"eslint": "^8.57.0",
|
|
46
|
-
"rollup": "^4.12.
|
|
46
|
+
"rollup": "^4.12.1",
|
|
47
47
|
"tslib": "^2.6.2"
|
|
48
48
|
}
|
|
49
49
|
}
|