@nomalism-com/types 0.19.5 → 0.19.7

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.
@@ -362,8 +362,8 @@ export interface IDocumentListResponse {
362
362
  emission_date: Date;
363
363
  virtual_name: string;
364
364
  document_number: number;
365
- billing_persona_name: string;
366
- billing_persona_nif: string;
365
+ billing_persona_name: string | null;
366
+ billing_persona_nif: string | null;
367
367
  owner_number: number;
368
368
  owner_id: string | null;
369
369
  quantity: number;
@@ -1,5 +1,5 @@
1
1
  import * as IShared from '../../../shared/interface';
2
- import { DocumentLine, DocumentLineVirtuals, DocumentLineFolder, DocumentLinePendingConflict } from '../../../shared/entities';
2
+ import { DocumentLine, DocumentLineVirtuals, DocumentLineFolder, DocumentLinePendingConflict, DocumentLineBaseVirtuals } 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,6 +8,7 @@ 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;
11
12
  export declare enum IMetadataPlugins {
12
13
  almofada = "almofada",
13
14
  atoalhado = "atoalhado",
@@ -132,7 +133,8 @@ export type IDocumentLineDocuments = Pick<IDocumentHeader.Entity, 'pdf_link' | '
132
133
  };
133
134
  export interface IEntityExtended extends DocumentLine {
134
135
  data: IData;
135
- virtual: IDocumentLineVirtuals | null;
136
+ extended_virtual: IDocumentLineVirtuals | null;
137
+ virtual: IDocumentLineBaseVirtuals | null;
136
138
  document_headers: IDocumentLineDocuments[];
137
139
  document_line_folder: DocumentLineFolder | null;
138
140
  pending_conflict: DocumentLinePendingConflict | null;
@@ -79,6 +79,7 @@ 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;
82
83
  export import DocumentLineVirtuals = Stock.DocumentLineVirtuals;
83
84
  export import StartDocumentHeaderVirtuals = Stock.StartDocumentHeaderVirtuals;
84
85
  export import DocumentHeaderVirtuals = Stock.DocumentHeaderVirtuals;
@@ -897,6 +897,63 @@ export type ProductVirtuals = {
897
897
  available: number;
898
898
  ordered_quantity: number;
899
899
  };
900
+ export type DocumentLineBaseVirtuals = {
901
+ document_line_id: string;
902
+ client_unit_total_without_tax: number;
903
+ client_unit_total_without_discount: number;
904
+ client_unit_total: number;
905
+ client_unit_total_discount: number;
906
+ client_unit_total_tax: number;
907
+ client_total_without_tax: number;
908
+ client_total_without_discount: number;
909
+ client_total: number;
910
+ client_total_discount: number;
911
+ client_total_tax: number;
912
+ provider_unit_total_without_tax: number;
913
+ provider_unit_total_without_discount: number;
914
+ provider_unit_total: number;
915
+ provider_unit_total_discount: number;
916
+ provider_unit_total_tax: number;
917
+ provider_total_without_tax: number;
918
+ provider_total_without_discount: number;
919
+ provider_total: number;
920
+ provider_total_discount: number;
921
+ provider_total_tax: number;
922
+ commission_percentage: number;
923
+ commission_total: number;
924
+ cancelled: boolean;
925
+ phc_closed: boolean;
926
+ provider_invoice: boolean;
927
+ purchased_from_provider: boolean;
928
+ pending_return_to_provider: boolean;
929
+ available_for_client_order: boolean;
930
+ already_client_order: boolean;
931
+ already_material_entrance: boolean;
932
+ to_order: boolean;
933
+ rejected_return_to_provider: boolean;
934
+ inventory_loss: boolean;
935
+ return_to_provider_without_credit_note: boolean;
936
+ returned_to_provider: boolean;
937
+ awaiting_production: boolean;
938
+ ordered: boolean;
939
+ group_header: boolean;
940
+ waiting_for_bulk_order: boolean;
941
+ waiting_for_order: boolean;
942
+ closed: boolean;
943
+ provider_closed: boolean;
944
+ stock_in: boolean;
945
+ stock_out: boolean;
946
+ client_start_id: string | null;
947
+ provider_start_id: string | null;
948
+ invoice_id: string | null;
949
+ invoice_document_header_external_id: string | null;
950
+ invoice_external_id: string | null;
951
+ returned_from_invoice_id: string | null;
952
+ returned_from_invoice_document_header_external_id: string | null;
953
+ returned_from_invoice_external_id: string | null;
954
+ return_id: string | null;
955
+ credit_note_id: string | null;
956
+ };
900
957
  export type DocumentLineVirtuals = {
901
958
  document_line_id: string;
902
959
  client_unit_total_without_tax: number;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.19.5",
12
+ "version": "0.19.7",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [