@nomalism-com/types 0.18.20 → 0.18.22
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,8 +1,8 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentHeaderClientPaymentVirtuals, DocumentSet, Payment, DocumentLineNote } from
|
|
3
|
-
import * as IDocumentType from
|
|
4
|
-
import * as IPayment from
|
|
5
|
-
export type Entity = Omit<DocumentHeader,
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentHeaderClientPaymentVirtuals, DocumentSet, Payment, DocumentLineNote } from "../../../shared/entities";
|
|
3
|
+
import * as IDocumentType from "../documentType/interfaces";
|
|
4
|
+
import * as IPayment from "../payment/interface";
|
|
5
|
+
export type Entity = Omit<DocumentHeader, "external_data">;
|
|
6
6
|
export declare const Route = "documentHeader";
|
|
7
7
|
export declare const UpperName = "DocumentHeader";
|
|
8
8
|
export declare const LowerName: string;
|
|
@@ -16,8 +16,12 @@ export interface IFindOneResponse extends Entity {
|
|
|
16
16
|
start_virtual: StartDocumentHeaderVirtuals | null;
|
|
17
17
|
virtual: DocumentHeaderVirtuals | null;
|
|
18
18
|
}
|
|
19
|
-
type IFindStartResponseOmitVirtual = Omit<IFindOneResponse,
|
|
19
|
+
type IFindStartResponseOmitVirtual = Omit<IFindOneResponse, "virtual">;
|
|
20
20
|
export interface IFindStartResponse extends IFindStartResponseOmitVirtual {
|
|
21
|
+
last_google_sheet_import: {
|
|
22
|
+
done: boolean;
|
|
23
|
+
error: string | null;
|
|
24
|
+
} | null;
|
|
21
25
|
client_balance?: number | null;
|
|
22
26
|
}
|
|
23
27
|
export interface IFindByDocumentLineStateRequest {
|
|
@@ -295,7 +299,7 @@ export interface ITransferOwnershipRequest {
|
|
|
295
299
|
document_header_id: string;
|
|
296
300
|
client_id: string;
|
|
297
301
|
}
|
|
298
|
-
export type IFindResponse = Pick<Entity,
|
|
302
|
+
export type IFindResponse = Pick<Entity, "document_number" | "id"> & {
|
|
299
303
|
legacy_id: string | null;
|
|
300
304
|
total: number;
|
|
301
305
|
emission_date: string;
|
|
@@ -403,7 +407,7 @@ export interface IRepository {
|
|
|
403
407
|
documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
|
|
404
408
|
createProviderProposal(data: IProviderProposalRequest): Promise<string>;
|
|
405
409
|
}
|
|
406
|
-
export type IApi = Omit<IRepository,
|
|
410
|
+
export type IApi = Omit<IRepository, "createFromHeader" | "createProductionOrder"> & {
|
|
407
411
|
createFromHeader(data: ICreateFromHeaderRequest): Promise<IShared.ITaskCluster[]>;
|
|
408
412
|
createProductionOrder(data: ICreateProductionOrderRequest): Promise<void>;
|
|
409
413
|
};
|
|
@@ -25,8 +25,8 @@ export interface IFindProviderProductsResponse {
|
|
|
25
25
|
price_sale: string;
|
|
26
26
|
margin: string;
|
|
27
27
|
available: string;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
ordered_quantity: string;
|
|
29
|
+
client_quantity: string;
|
|
30
30
|
last_ef_date: string;
|
|
31
31
|
last_em_date: string;
|
|
32
32
|
pfs: IFindProviderProductsPfs[];
|