@nomalism-com/types 1.3.42 → 1.3.44
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.
- package/dist/index.cjs +5950 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4946 -4904
- package/dist/main.d.ts +263 -261
- package/dist/modules/document/CAT/interfaces.d.ts +1 -1
- package/dist/modules/document/CAT/route.schema.d.ts +2 -2
- package/dist/modules/document/NPF/interface.d.ts +1 -1
- package/dist/modules/document/NPF/route.schema.d.ts +1 -1
- package/dist/modules/document/NRCL/interface.d.ts +4 -4
- package/dist/modules/document/NRCL/route.schema.d.ts +1 -1
- package/dist/modules/document/billOfLading/interfaces.d.ts +2 -2
- package/dist/modules/document/billOfLading/route.schema.d.ts +3 -2
- package/dist/modules/document/inventario/interface.d.ts +1 -1
- package/dist/modules/document/inventario/route.schema.d.ts +1 -1
- package/dist/modules/document/materialEntrance/interfaces.d.ts +15 -15
- package/dist/modules/document/materialEntrance/route.schema.d.ts +2 -2
- package/dist/modules/document/order/interfaces.d.ts +3 -3
- package/dist/modules/document/order/route.schema.d.ts +2 -2
- package/dist/modules/document/productionOrder/interfaces.d.ts +1 -1
- package/dist/modules/document/productionOrder/route.schema.d.ts +1 -1
- package/dist/modules/document/proforma/interfaces.d.ts +1 -1
- package/dist/modules/document/proforma/route.schema.d.ts +2 -2
- package/dist/modules/document/propostaFornecedor/interfaces.d.ts +1 -1
- package/dist/modules/document/propostaFornecedor/route.schema.d.ts +1 -1
- package/dist/modules/document/propostaSheets/interface.d.ts +7 -7
- package/dist/modules/document/propostaSheets/route.schema.d.ts +2 -2
- package/dist/modules/document/providerCreditNoteFromReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/providerCreditNoteFromReturn/route.schema.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/interfaces.d.ts +1 -1
- package/dist/modules/document/providerFinancialCreditNote/route.schema.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/interfaces.d.ts +1 -1
- package/dist/modules/document/providerServiceInvoice/route.schema.d.ts +1 -1
- package/dist/modules/document/purchase/interfaces.d.ts +3 -3
- package/dist/modules/document/purchase/route.schema.d.ts +2 -2
- package/dist/modules/document/quebra/interfaces.d.ts +2 -2
- package/dist/modules/document/quebra/route.schema.d.ts +1 -1
- package/dist/modules/document/returnToProvider/interface.d.ts +2 -2
- package/dist/modules/document/returnToProvider/route.schema.d.ts +1 -1
- package/dist/modules/document/transformado/interfaces.d.ts +1 -1
- package/dist/modules/document/transformado/route.schema.d.ts +1 -1
- package/dist/modules/document/upfrontReturn/interfaces.d.ts +1 -1
- package/dist/modules/document/upfrontReturn/route.schema.d.ts +1 -1
- package/dist/modules/documentManagement/multimedia/interfaces.d.ts +3 -3
- package/dist/modules/documentManagement/multimedia/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailLog/interfaces.d.ts +9 -9
- package/dist/modules/integration/emailLog/route.schema.d.ts +2 -2
- package/dist/modules/integration/emailTemplate/interfaces.d.ts +3 -3
- package/dist/modules/integration/emailTemplate/route.schema.d.ts +2 -2
- package/dist/modules/integration/emailTemplateAttachment/interfaces.d.ts +2 -2
- package/dist/modules/integration/emailTemplateAttachment/route.schema.d.ts +1 -1
- package/dist/modules/integration/emailVerification/interfaces.d.ts +2 -2
- package/dist/modules/integration/emailVerification/route.schema.d.ts +2 -2
- package/dist/modules/integration/googleFilePermission/interfaces.d.ts +2 -2
- package/dist/modules/integration/googleFilePermission/route.schema.d.ts +3 -3
- package/dist/modules/integration/googleSheets/interfaces.d.ts +9 -9
- package/dist/modules/integration/googleSheets/route.schema.d.ts +1 -1
- package/dist/modules/integration/observation/interfaces.d.ts +3 -3
- package/dist/modules/integration/observation/route.schema.d.ts +1 -1
- package/dist/modules/integration/observationType/interfaces.d.ts +3 -3
- package/dist/modules/integration/observationType/route.schema.d.ts +3 -3
- package/dist/modules/integration/patchNotes/interfaces.d.ts +2 -2
- package/dist/modules/integration/projectInfo/interfaces.d.ts +7 -7
- package/dist/modules/integration/projectInfo/route.schema.d.ts +1 -1
- package/dist/modules/integration/settings/interfaces.d.ts +2 -2
- package/dist/modules/integration/settings/route.schema.d.ts +1 -1
- package/dist/modules/llm/llm/interfaces.d.ts +1 -1
- package/dist/modules/llm/llm/route.schema.d.ts +1 -1
- package/dist/modules/print/npc/interfaces.d.ts +3 -3
- package/dist/modules/print/npc/route.schema.d.ts +1 -1
- package/dist/modules/print/printer/interfaces.d.ts +7 -7
- package/dist/modules/print/printer/route.schema.d.ts +1 -1
- package/dist/modules/print/schedulePrintJob/interfaces.d.ts +3 -3
- package/dist/modules/print/schedulePrintJob/route.schema.d.ts +2 -2
- package/dist/modules/sms/allowedDevice/interfaces.d.ts +21 -0
- package/dist/modules/sms/allowedDevice/route.schema.d.ts +3 -0
- package/dist/modules/sms/smsSender/interfaces.d.ts +7 -3
- package/dist/modules/sms/smsTemplate/interfaces.d.ts +3 -5
- package/dist/modules/sms/smsTemplate/route.schema.d.ts +1 -3
- package/dist/modules/stock/accountCode/interface.d.ts +1 -1
- package/dist/modules/stock/accountCode/route.schema.d.ts +1 -1
- package/dist/modules/stock/chat/interfaces.d.ts +5 -5
- package/dist/modules/stock/chat/route.schema.d.ts +2 -2
- package/dist/modules/stock/chatRapidMessage/interface.d.ts +2 -2
- package/dist/modules/stock/chatRapidMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/conferirEncomenda/interface.d.ts +2 -3
- package/dist/modules/stock/dashboard/interface.d.ts +1 -1
- package/dist/modules/stock/dashboard/route.schema.d.ts +1 -1
- package/dist/modules/stock/file/interface.d.ts +2 -2
- package/dist/modules/stock/file/route.schema.d.ts +2 -2
- package/dist/modules/stock/gmails/interface.d.ts +2 -2
- package/dist/modules/stock/googleCalendar/interface.d.ts +1 -1
- package/dist/modules/stock/googleCalendar/route.schema.d.ts +2 -2
- package/dist/modules/stock/googleSheetPool/interface.d.ts +2 -2
- package/dist/modules/stock/location/interface.d.ts +6 -6
- package/dist/modules/stock/location/route.schema.d.ts +1 -1
- package/dist/modules/stock/mobilePrint/interface.d.ts +1 -1
- package/dist/modules/stock/mobilePrint/route.schema.d.ts +1 -1
- package/dist/modules/stock/prison/interface.d.ts +2 -2
- package/dist/modules/stock/prison/route.schema.d.ts +2 -2
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +18 -18
- package/dist/modules/stock/productGoogleSheets/route.schema.d.ts +2 -2
- package/dist/modules/stock/productImage/interface.d.ts +8 -8
- package/dist/modules/stock/productImage/route.schema.d.ts +1 -1
- package/dist/modules/stock/productLocation/interface.d.ts +1 -1
- package/dist/modules/stock/promotion/interface.d.ts +6 -6
- package/dist/modules/stock/promotion/route.schema.d.ts +1 -1
- package/dist/modules/stock/promotionAssoc/interface.d.ts +6 -6
- package/dist/modules/stock/promotionAssoc/route.schema.d.ts +1 -1
- package/dist/modules/stock/queryList/interfaces.d.ts +4 -4
- package/dist/modules/stock/queryList/route.schema.d.ts +3 -3
- package/dist/modules/stock/queryParameter/interfaces.d.ts +12 -12
- package/dist/modules/stock/queryParameter/route.schema.d.ts +1 -1
- package/dist/modules/stock/recurrentTasks/interface.d.ts +1 -1
- package/dist/modules/stock/returnReason/interfaces.d.ts +2 -2
- package/dist/modules/stock/returnReason/route.schema.d.ts +1 -1
- package/dist/modules/stock/savedEmPicking/interfaces.d.ts +4 -4
- package/dist/modules/stock/savedEmPicking/route.schema.d.ts +2 -2
- package/dist/modules/stock/savedProviderProposal/interfaces.d.ts +2 -2
- package/dist/modules/stock/savedProviderProposal/route.schema.d.ts +1 -1
- package/dist/modules/stock/stockMovement/interface.d.ts +8 -8
- package/dist/modules/stock/stockMovement/route.schema.d.ts +1 -1
- package/dist/modules/stock/tag/interface.d.ts +7 -7
- package/dist/modules/stock/tag/route.schema.d.ts +1 -1
- package/dist/modules/stock/task/interface.d.ts +13 -13
- package/dist/modules/stock/task/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskMessage/interface.d.ts +4 -4
- package/dist/modules/stock/taskMessage/route.schema.d.ts +1 -1
- package/dist/modules/stock/taskRead/interface.d.ts +4 -4
- package/dist/modules/stock/taskRead/route.schema.d.ts +1 -1
- package/dist/modules/stock/typeOfLocation/interface.d.ts +6 -6
- package/dist/modules/stock/typeOfLocation/route.schema.d.ts +1 -1
- package/dist/modules/stock/unitOfMeasure/interface.d.ts +6 -6
- package/dist/modules/stock/unitOfMeasure/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatTax/interface.d.ts +6 -6
- package/dist/modules/stock/vatTax/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatTaxZone/interface.d.ts +6 -6
- package/dist/modules/stock/vatTaxZone/route.schema.d.ts +1 -1
- package/dist/modules/stock/vatValidation/interfaces.d.ts +1 -1
- package/dist/modules/stock/vatValidation/route.schema.d.ts +1 -1
- package/dist/modules/stock/workflow/interfaces.d.ts +5 -5
- package/dist/modules/stock/workflow/route.schema.d.ts +1 -1
- package/dist/modules/supply/currentAccount/interface.d.ts +14 -14
- package/dist/modules/supply/currentAccount/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentHeader/interfaces.d.ts +10 -10
- package/dist/modules/supply/documentHeader/route.schema.d.ts +3 -3
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +3 -3
- package/dist/modules/supply/documentHeaderSubscriber/interface.d.ts +2 -2
- package/dist/modules/supply/documentHeaderSubscriber/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentHeaderSurvey/interfaces.d.ts +5 -5
- package/dist/modules/supply/documentHeaderSurvey/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentLine/interfaces.d.ts +12 -12
- package/dist/modules/supply/documentLine/route.schema.d.ts +2 -2
- package/dist/modules/supply/documentLineAssoc/interfaces.d.ts +4 -4
- package/dist/modules/supply/documentLineMT/interface.d.ts +2 -2
- package/dist/modules/supply/documentLineMT/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentLineNote/interfaces.d.ts +10 -10
- package/dist/modules/supply/documentLineNote/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentLineRM/interface.d.ts +2 -2
- package/dist/modules/supply/documentLineRM/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentSet/interface.d.ts +2 -6
- package/dist/modules/supply/documentSet/route.schema.d.ts +1 -1
- package/dist/modules/supply/documentType/interfaces.d.ts +66 -66
- package/dist/modules/supply/documentType/route.schema.d.ts +1 -1
- package/dist/modules/supply/externalDocumentHeader/interface.d.ts +3 -3
- package/dist/modules/supply/externalDocumentHeader/route.schema.d.ts +1 -1
- package/dist/modules/supply/externalDocumentType/interface.d.ts +2 -2
- package/dist/modules/supply/orderManagement/interface.d.ts +1 -1
- package/dist/modules/supply/payment/interface.d.ts +11 -11
- package/dist/modules/supply/payment/route.schema.d.ts +1 -1
- package/dist/modules/supply/paymentBatch/interface.d.ts +3 -3
- package/dist/modules/supply/paymentBatch/route.schema.d.ts +2 -2
- package/dist/modules/supply/preSale/interface.d.ts +4 -4
- package/dist/modules/supply/preSale/route.schema.d.ts +1 -1
- package/dist/modules/supply/preSaleProduct/interface.d.ts +2 -2
- package/dist/modules/supply/preSaleProduct/route.schema.d.ts +1 -1
- package/dist/modules/supply/schedule/interface.d.ts +8 -8
- package/dist/modules/supply/schedule/route.schema.d.ts +1 -1
- package/dist/modules/supply/startDocumentHeaderLastUpdate/interface.d.ts +2 -2
- package/dist/modules/tickets/channel/interfaces.d.ts +3 -3
- package/dist/modules/tickets/channel/route.schema.d.ts +1 -1
- package/dist/modules/tickets/clt/interfaces.d.ts +3 -3
- package/dist/modules/tickets/clt/route.schema.d.ts +1 -1
- package/dist/modules/tickets/language/interfaces.d.ts +3 -3
- package/dist/modules/tickets/language/route.schema.d.ts +1 -1
- package/dist/modules/tickets/tickets/interfaces.d.ts +3 -3
- package/dist/modules/tickets/tickets/route.schema.d.ts +1 -1
- package/dist/modules/ui/portal/interface.d.ts +4 -4
- package/dist/modules/ui/portal/route.schema.d.ts +1 -1
- package/dist/modules/ui/sideMenu/interface.d.ts +2 -2
- package/dist/modules/ui/sideMenu/route.schema.d.ts +1 -1
- package/dist/modules/ui/sidemenuHighlight/interface.d.ts +3 -3
- package/dist/modules/ui/sidemenuHighlight/route.schema.d.ts +1 -1
- package/dist/modules/user/bankData/interface.d.ts +6 -6
- package/dist/modules/user/bankData/route.schema.d.ts +1 -1
- package/dist/modules/user/chatSubscribers/interfaces.d.ts +6 -6
- package/dist/modules/user/chatSubscribers/route.schema.d.ts +2 -2
- package/dist/modules/user/clientType/interface.d.ts +5 -5
- package/dist/modules/user/clientType/route.schema.d.ts +1 -1
- package/dist/modules/user/clients/interface.d.ts +9 -13
- package/dist/modules/user/clients/route.schema.d.ts +1 -1
- package/dist/modules/user/commissioner/interface.d.ts +7 -7
- package/dist/modules/user/commissioner/route.schema.d.ts +1 -1
- package/dist/modules/user/country/interface.d.ts +5 -5
- package/dist/modules/user/country/route.schema.d.ts +1 -1
- package/dist/modules/user/deliveryMethods/interfaces.d.ts +2 -2
- package/dist/modules/user/deliveryMethods/route.schema.d.ts +1 -1
- package/dist/modules/user/favorites/interfaces.d.ts +2 -2
- package/dist/modules/user/favorites/route.schema.d.ts +3 -3
- package/dist/modules/user/language/interface.d.ts +5 -5
- package/dist/modules/user/language/route.schema.d.ts +1 -1
- package/dist/modules/user/maturityDates/interfaces.d.ts +2 -2
- package/dist/modules/user/maturityDates/route.schema.d.ts +1 -1
- package/dist/modules/user/password/interfaces.d.ts +1 -1
- package/dist/modules/user/password/route.schema.d.ts +1 -1
- package/dist/modules/user/paymentMethods/interfaces.d.ts +16 -16
- package/dist/modules/user/paymentMethods/route.schema.d.ts +1 -1
- package/dist/modules/user/persona/interface.d.ts +3 -3
- package/dist/modules/user/persona/route.schema.d.ts +1 -1
- package/dist/modules/user/providerType/interface.d.ts +5 -5
- package/dist/modules/user/providerType/route.schema.d.ts +1 -1
- package/dist/modules/user/providers/interface.d.ts +10 -12
- package/dist/modules/user/providers/route.schema.d.ts +3 -2
- package/dist/modules/user/purchaseConditions/interface.d.ts +6 -9
- package/dist/modules/user/purchaseConditions/route.schema.d.ts +1 -1
- package/dist/modules/user/reasonForExemption/interface.d.ts +8 -8
- package/dist/modules/user/reasonForExemption/route.schema.d.ts +1 -1
- package/dist/modules/user/refreshToken/interface.d.ts +1 -1
- package/dist/modules/user/refreshToken/route.schema.d.ts +1 -1
- package/dist/modules/user/segmentsArea/interface.d.ts +5 -5
- package/dist/modules/user/segmentsArea/route.schema.d.ts +1 -1
- package/dist/modules/user/sessions/interface.d.ts +1 -1
- package/dist/modules/user/sessions/route.schema.d.ts +1 -1
- package/dist/modules/user/shippings/interface.d.ts +6 -6
- package/dist/modules/user/shippings/route.schema.d.ts +1 -1
- package/dist/modules/user/storeOperator/interface.d.ts +6 -6
- package/dist/modules/user/storeOperator/route.schema.d.ts +1 -1
- package/dist/modules/user/swift/interface.d.ts +5 -5
- package/dist/modules/user/swift/route.schema.d.ts +1 -1
- package/dist/modules/user/systemModule/interface.d.ts +2 -2
- package/dist/modules/user/systemModule/route.schema.d.ts +1 -1
- package/dist/modules/user/tenant/interface.d.ts +2 -2
- package/dist/modules/user/tenant/route.schema.d.ts +1 -1
- package/dist/modules/user/theme/interfaces.d.ts +2 -2
- package/dist/modules/user/theme/route.schema.d.ts +1 -1
- package/dist/modules/user/timeSheet/interfaces.d.ts +5 -5
- package/dist/modules/user/timeSheet/route.schema.d.ts +1 -1
- package/dist/modules/user/userPositions/interface.d.ts +5 -5
- package/dist/modules/user/userPositions/route.schema.d.ts +1 -1
- package/dist/modules/user/userTokens/interface.d.ts +3 -3
- package/dist/modules/user/userTokens/route.schema.d.ts +1 -1
- package/dist/modules/user/users/interface.d.ts +10 -10
- package/dist/modules/user/users/route.schema.d.ts +1 -1
- package/dist/modules/user/vehicles/interfaces.d.ts +3 -3
- package/dist/modules/user/vehicles/route.schema.d.ts +1 -1
- package/dist/modules/user/zipCode/interfaces.d.ts +1 -1
- package/dist/modules/user/zipCode/route.schema.d.ts +1 -1
- package/dist/modules/view/errorLog/interfaces.d.ts +6 -6
- package/dist/modules/view/errorLog/route.schema.d.ts +1 -1
- package/dist/modules/view/webSocket/interfaces.d.ts +23 -23
- package/dist/shared/entities/integration.d.ts +1 -1
- package/dist/shared/entities/sms.d.ts +17 -1
- package/dist/shared/entities/stock.d.ts +25 -26
- package/dist/shared/entities/user.d.ts +4 -4
- package/dist/shared/interface.d.ts +42 -42
- package/dist/shared/messages.d.ts +1 -1
- package/package.json +27 -12
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as IObservation from
|
|
4
|
-
import { type ICreateFromHeaderRequest } from
|
|
1
|
+
import { DocumentHeader, Payment } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import * as IObservation from "../../integration/observation/interfaces";
|
|
4
|
+
import { type ICreateFromHeaderRequest } from "../documentHeader/interfaces";
|
|
5
5
|
export type Entity = Payment;
|
|
6
6
|
export declare const Route = "current_account";
|
|
7
7
|
type IEntityExtended = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IEntityExtended,
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IEntityExtended,
|
|
8
|
+
export type IFindByIdResponse = Omit<IEntityExtended, "">;
|
|
9
|
+
export type IFindByOwnerIdResponse = Omit<IEntityExtended, "">;
|
|
10
10
|
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IEntityExtended,
|
|
11
|
+
export type IFindResponse = Omit<IEntityExtended, "">;
|
|
12
12
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
13
|
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IEntityExtended,
|
|
14
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IEntityExtended, "">>;
|
|
15
15
|
export interface ICreateForThisDocumentHeaderRequest {
|
|
16
16
|
date: Date;
|
|
17
17
|
debit: number;
|
|
@@ -56,9 +56,9 @@ export interface IUnpaidPurchasesRequest {
|
|
|
56
56
|
export interface IUnpaidByDatePurchasesRequest {
|
|
57
57
|
due_date: Date;
|
|
58
58
|
}
|
|
59
|
-
export type IPaymentOrigin =
|
|
60
|
-
export interface IUnpaidPurchasesResponse extends Pick<Entity,
|
|
61
|
-
document_header: Pick<DocumentHeader,
|
|
59
|
+
export type IPaymentOrigin = "CC Fornecedor" | "CC Cliente" | "CC Fornecedor (Descontinuado)" | "CC Cliente (Descontinuado)";
|
|
60
|
+
export interface IUnpaidPurchasesResponse extends Pick<Entity, "date" | "debit" | "credit"> {
|
|
61
|
+
document_header: Pick<DocumentHeader, "emission_date" | "pdf_link" | "id">;
|
|
62
62
|
origin: IPaymentOrigin;
|
|
63
63
|
document_type_code: string | null;
|
|
64
64
|
document_name: string;
|
|
@@ -90,7 +90,7 @@ export interface IExportPaymentsRequest {
|
|
|
90
90
|
value: number;
|
|
91
91
|
npf_ids?: string[];
|
|
92
92
|
}
|
|
93
|
-
export type IBatchType =
|
|
93
|
+
export type IBatchType = "national" | "international" | "null";
|
|
94
94
|
export interface IPaymentsBatchNpfDh {
|
|
95
95
|
id: string;
|
|
96
96
|
name: string;
|
|
@@ -114,8 +114,8 @@ export interface IPaymentsBatchResponse {
|
|
|
114
114
|
created_at: Date;
|
|
115
115
|
}
|
|
116
116
|
export declare const IExportCurrentAccountOutputEnum: {
|
|
117
|
-
csv:
|
|
118
|
-
pdf:
|
|
117
|
+
csv: "csv";
|
|
118
|
+
pdf: "pdf";
|
|
119
119
|
};
|
|
120
120
|
export type IExportCurrentAccountOutput = (typeof IExportCurrentAccountOutputEnum)[keyof typeof IExportCurrentAccountOutputEnum];
|
|
121
121
|
export declare const IExportCurrentAccountOutputOptions: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IPaymentsNotExportedRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IPaymentsNotExportedRequest } from "./interface";
|
|
3
3
|
export declare const findQuery: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const findSettledMaterialEntranceQuery: joi.ObjectSchema<any>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
1
|
+
import { DocumentHeader, DocumentHeaderVirtuals, DocumentLineNote, DocumentType, StartDocumentHeaderVirtuals, VatTax } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import * as IProjectInfo from "../../integration/projectInfo/interfaces";
|
|
4
|
+
import * as IDocumentType from "../documentType/interfaces";
|
|
5
|
+
import * as IPayment from "../payment/interface";
|
|
6
6
|
export type Entity = DocumentHeader;
|
|
7
7
|
export declare const Route = "document_header";
|
|
8
8
|
export type IDocumentHeaderVirtuals = DocumentHeaderVirtuals;
|
|
9
9
|
export type IStartDocumentHeaderVirtuals = StartDocumentHeaderVirtuals;
|
|
10
|
-
export interface ITaxEntry extends Pick<VatTax,
|
|
10
|
+
export interface ITaxEntry extends Pick<VatTax, "name" | "saft_code"> {
|
|
11
11
|
percentage: number;
|
|
12
12
|
totalTaxableBase: number;
|
|
13
13
|
totalTax: number;
|
|
@@ -190,7 +190,7 @@ export interface IUpdateRequest {
|
|
|
190
190
|
confirmed_date?: Date;
|
|
191
191
|
seller?: string | null;
|
|
192
192
|
}
|
|
193
|
-
export type IGetActionsDocumentType = Pick<DocumentType,
|
|
193
|
+
export type IGetActionsDocumentType = Pick<DocumentType, "user_type" | "allow_create_from_header_without_lines" | "pay" | "credit" | "debit" | "invoice" | "code" | "return" | "id" | "description">;
|
|
194
194
|
export interface IGetActionsResponse {
|
|
195
195
|
document_type: IGetActionsDocumentType;
|
|
196
196
|
transition_name: string;
|
|
@@ -267,9 +267,9 @@ export interface IDocumentListResponse {
|
|
|
267
267
|
adjudicated: boolean;
|
|
268
268
|
}
|
|
269
269
|
export declare const IWarningEnum: {
|
|
270
|
-
AvisoTotal:
|
|
271
|
-
AvisoParcial:
|
|
272
|
-
SemAviso:
|
|
270
|
+
AvisoTotal: "AvisoTotal";
|
|
271
|
+
AvisoParcial: "AvisoParcial";
|
|
272
|
+
SemAviso: "SemAviso";
|
|
273
273
|
};
|
|
274
274
|
export type IWarningType = (typeof IWarningEnum)[keyof typeof IWarningEnum];
|
|
275
275
|
export declare const IWarningType: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import * as IShared from
|
|
3
|
-
import { IDocumentListRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import { IDocumentListRequest } from "./interfaces";
|
|
4
4
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const createFromHeaderBody: joi.ObjectSchema<any>;
|
|
6
6
|
export declare const findQuery: joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentHeaderHistory } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DocumentHeaderHistory;
|
|
4
4
|
export declare const Route = "document_header_history";
|
|
5
|
-
export type IFindByOwnerIdResponse = Omit<DocumentHeaderHistory,
|
|
5
|
+
export type IFindByOwnerIdResponse = Omit<DocumentHeaderHistory, "id" | "document_header_id">;
|
|
6
6
|
export interface IRepository {
|
|
7
7
|
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentHeaderSubscriber } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DocumentHeaderSubscriber;
|
|
4
4
|
export declare const Route = "document_header_subscriber";
|
|
5
5
|
export interface IFindByOwnerRequest {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const createBody: joi.ObjectSchema<any>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Nomalism from
|
|
2
|
-
import { DocumentHeaderSurvey } from
|
|
1
|
+
import Nomalism from "../../..";
|
|
2
|
+
import { DocumentHeaderSurvey } from "../../../shared/entities/stock";
|
|
3
3
|
export type IEntity = DocumentHeaderSurvey;
|
|
4
4
|
export declare const Route = "document_header_survey";
|
|
5
|
-
export type ICreateRequest = Pick<IEntity,
|
|
5
|
+
export type ICreateRequest = Pick<IEntity, "owner_id" | "document_header_id" | "persona_id">;
|
|
6
6
|
export type IResponse = IEntity;
|
|
7
7
|
export interface IFindRequest {
|
|
8
8
|
date_start: Date;
|
|
@@ -22,8 +22,8 @@ export interface IFindResponseItem {
|
|
|
22
22
|
export interface IMtWithoutDateCountResponse {
|
|
23
23
|
count: number;
|
|
24
24
|
}
|
|
25
|
-
export type IUpdateSentRequest = Pick<IEntity,
|
|
26
|
-
export type IUpdateSurveyRequest = Pick<IEntity,
|
|
25
|
+
export type IUpdateSentRequest = Pick<IEntity, "document_header_id" | "persona_id">;
|
|
26
|
+
export type IUpdateSurveyRequest = Pick<IEntity, "document_header_id" | "persona_id" | "data">;
|
|
27
27
|
export interface ISurveyStatsSummary {
|
|
28
28
|
total: number;
|
|
29
29
|
sent: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IFindRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IFindRequest } from "./interfaces";
|
|
3
3
|
export declare const findQuery: joi.ObjectSchema<IFindRequest>;
|
|
4
4
|
export declare const updateSentBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updateSurveyBody: joi.ObjectSchema<any>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type
|
|
8
|
-
import type {
|
|
1
|
+
import type { DocumentLine, DocumentLineBaseVirtuals, DocumentLineMT, DocumentLineNote, DocumentLinePendingConflict, DocumentLineRM, DocumentLineVirtuals, ProductPromotionVirtuals } from "../../../shared/entities/stock";
|
|
2
|
+
import type * as IShared from "../../../shared/interface";
|
|
3
|
+
import type { IMotivosDeEsperaData } from "../../document/order/interfaces";
|
|
4
|
+
import type { IGetProductGroup, IGetProductType } from "../../integration/googleSheets/interfaces";
|
|
5
|
+
import type { IProductState, IProductType } from "../../stock/productGoogleSheets/interface";
|
|
6
|
+
import type { IWarningType } from "../documentHeader/interfaces";
|
|
7
|
+
import type * as IDocumentLineAssoc from "../documentLineAssoc/interfaces";
|
|
8
|
+
import type { IDocumentTypeCodeType, IDocumentTypeUserType } from "../documentType/interfaces";
|
|
9
9
|
export type Entity = DocumentLine;
|
|
10
10
|
export declare const Route = "document_line";
|
|
11
11
|
export type IDocumentLineVirtuals = DocumentLineVirtuals;
|
|
12
12
|
export type IDocumentLineBaseVirtuals = DocumentLineBaseVirtuals;
|
|
13
|
-
export type IPromotions = Pick<ProductPromotionVirtuals,
|
|
14
|
-
export type IDataKeys =
|
|
13
|
+
export type IPromotions = Pick<ProductPromotionVirtuals, "exclusive_to_location_id" | "exclusive_to_client_id" | "discount">;
|
|
14
|
+
export type IDataKeys = "AvisoCliente" | "Quantidade Encomendada Originalmente" | "Linha criada na EM" | "Opcao EM" | "Levantar DF" | "Enviar Email NCF" | "Fechar DF" | "Documento pago" | "Pagamento" | "Recibo do documento";
|
|
15
15
|
export interface IDataPayload {
|
|
16
16
|
value: unknown;
|
|
17
17
|
updated_at: Date;
|
|
@@ -58,7 +58,7 @@ export type IEsperaInfoClienteData = {
|
|
|
58
58
|
value: string;
|
|
59
59
|
data: IMotivosDeEsperaData;
|
|
60
60
|
};
|
|
61
|
-
export interface IEntityExtended extends Omit<DocumentLine,
|
|
61
|
+
export interface IEntityExtended extends Omit<DocumentLine, "data"> {
|
|
62
62
|
group: string;
|
|
63
63
|
document_headers: IDocumentLineDocuments[];
|
|
64
64
|
document_line_rm: DocumentLineRM | null;
|
|
@@ -135,7 +135,7 @@ export interface IGetSmsData {
|
|
|
135
135
|
document_line_id: string;
|
|
136
136
|
document_header_id: string;
|
|
137
137
|
execution_date: string;
|
|
138
|
-
type:
|
|
138
|
+
type: "RM" | "MT";
|
|
139
139
|
}
|
|
140
140
|
export interface IRepository {
|
|
141
141
|
getSmsData(): Promise<IGetSmsData[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import { IUpdateManyByDocumentHeaderRequest } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import { IUpdateManyByDocumentHeaderRequest } from "./interfaces";
|
|
3
3
|
export declare const createBody: joi.ArraySchema<any[]>;
|
|
4
4
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updateManyBody: joi.ObjectSchema<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as IDocumentLine from
|
|
4
|
-
import { IDocumentLineVirtuals } from
|
|
1
|
+
import { DocumentLineAssoc } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import * as IDocumentLine from "../documentLine/interfaces";
|
|
4
|
+
import { IDocumentLineVirtuals } from "../documentLine/interfaces";
|
|
5
5
|
export type Entity = DocumentLineAssoc;
|
|
6
6
|
export declare const Route = "document_line_assoc";
|
|
7
7
|
export interface IEntityExtended extends Entity {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentLineMT } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { DocumentLineMT } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DocumentLineMT;
|
|
4
4
|
export declare const Route = "document_line_mt";
|
|
5
5
|
export interface IUpdateRequest {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentLineNote } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export declare const IDocumentLineNoteTypeEnum: {
|
|
4
|
-
Quebra:
|
|
5
|
-
Entrada:
|
|
6
|
-
Compra:
|
|
7
|
-
Devolucao:
|
|
8
|
-
Transformado:
|
|
9
|
-
Inventario:
|
|
10
|
-
PC:
|
|
11
|
-
PF:
|
|
4
|
+
Quebra: "Quebra";
|
|
5
|
+
Entrada: "Entrada";
|
|
6
|
+
Compra: "Compra";
|
|
7
|
+
Devolucao: "Devolucao";
|
|
8
|
+
Transformado: "Transformado";
|
|
9
|
+
Inventario: "Inventario";
|
|
10
|
+
PC: "PC";
|
|
11
|
+
PF: "PF";
|
|
12
12
|
};
|
|
13
13
|
export type IDocumentLineNoteType = (typeof IDocumentLineNoteTypeEnum)[keyof typeof IDocumentLineNoteTypeEnum];
|
|
14
14
|
export declare const documentLineNoteTypes: string[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const upsertOrDeleteBody: joi.ObjectSchema<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentLineRM } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { DocumentLineRM } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DocumentLineRM;
|
|
4
4
|
export declare const Route = "document_line_rm";
|
|
5
5
|
export interface IUpdateRequest {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import joi from
|
|
1
|
+
import joi from "joi";
|
|
2
2
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentSet } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DocumentSet;
|
|
4
4
|
export declare const Route = "document_set";
|
|
5
5
|
export interface ICreateRequest {
|
|
6
|
-
document_set_id: number | null;
|
|
7
6
|
name: string;
|
|
8
|
-
active_by_default: boolean;
|
|
9
7
|
}
|
|
10
8
|
export interface IUpdateRequest {
|
|
11
|
-
document_set_id?: number | null;
|
|
12
9
|
name?: string;
|
|
13
|
-
active_by_default?: boolean;
|
|
14
10
|
}
|
|
15
11
|
export interface IRepository {
|
|
16
12
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DocumentType, ExternalDocumentType } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = DocumentType;
|
|
4
4
|
export declare const Route = "document_type";
|
|
5
5
|
export declare const DocumentTypeUserTypeEnum: {
|
|
6
|
-
client:
|
|
7
|
-
provider:
|
|
8
|
-
commissioner:
|
|
9
|
-
store_operator:
|
|
10
|
-
self:
|
|
6
|
+
client: "client";
|
|
7
|
+
provider: "provider";
|
|
8
|
+
commissioner: "commissioner";
|
|
9
|
+
store_operator: "store_operator";
|
|
10
|
+
self: "self";
|
|
11
11
|
};
|
|
12
12
|
export type IDocumentTypeUserType = (typeof DocumentTypeUserTypeEnum)[keyof typeof DocumentTypeUserTypeEnum];
|
|
13
13
|
export declare const documentTypeUserTypes: string[];
|
|
14
14
|
export declare const DocumentTypeCodeTypeEnum: {
|
|
15
|
-
PC:
|
|
16
|
-
FTPF:
|
|
17
|
-
PCTL:
|
|
18
|
-
AD:
|
|
19
|
-
NCAD:
|
|
20
|
-
FT:
|
|
21
|
-
FS:
|
|
22
|
-
FR:
|
|
23
|
-
NC:
|
|
24
|
-
GT:
|
|
25
|
-
RE:
|
|
26
|
-
LNC:
|
|
27
|
-
EST:
|
|
28
|
-
NPC:
|
|
29
|
-
QECI:
|
|
30
|
-
OPI:
|
|
31
|
-
OP:
|
|
32
|
-
PF:
|
|
33
|
-
EF:
|
|
34
|
-
EFSN:
|
|
35
|
-
EM:
|
|
36
|
-
GTF:
|
|
37
|
-
DF:
|
|
38
|
-
CF:
|
|
39
|
-
NPF:
|
|
40
|
-
ADF:
|
|
41
|
-
NCF:
|
|
42
|
-
NCRF:
|
|
43
|
-
FTF:
|
|
44
|
-
PI:
|
|
45
|
-
IM:
|
|
46
|
-
IMN:
|
|
47
|
-
QE:
|
|
48
|
-
TR:
|
|
49
|
-
TRS:
|
|
50
|
-
GTI:
|
|
51
|
-
ADSM:
|
|
52
|
-
FTSM:
|
|
53
|
-
FP:
|
|
54
|
-
RDP:
|
|
55
|
-
NRCL:
|
|
56
|
-
FPM:
|
|
57
|
-
FTM:
|
|
58
|
-
FTD:
|
|
59
|
-
FRM:
|
|
60
|
-
FRD:
|
|
61
|
-
FSM:
|
|
62
|
-
FSD:
|
|
63
|
-
NCM:
|
|
64
|
-
NCD:
|
|
65
|
-
ADM:
|
|
66
|
-
ADD:
|
|
67
|
-
NCADM:
|
|
68
|
-
NCADD:
|
|
69
|
-
FTO:
|
|
70
|
-
FRO:
|
|
71
|
-
REO:
|
|
72
|
-
CAT:
|
|
15
|
+
PC: "PC";
|
|
16
|
+
FTPF: "FTPF";
|
|
17
|
+
PCTL: "PCTL";
|
|
18
|
+
AD: "AD";
|
|
19
|
+
NCAD: "NCAD";
|
|
20
|
+
FT: "FT";
|
|
21
|
+
FS: "FS";
|
|
22
|
+
FR: "FR";
|
|
23
|
+
NC: "NC";
|
|
24
|
+
GT: "GT";
|
|
25
|
+
RE: "RE";
|
|
26
|
+
LNC: "LNC";
|
|
27
|
+
EST: "EST";
|
|
28
|
+
NPC: "NPC";
|
|
29
|
+
QECI: "QECI";
|
|
30
|
+
OPI: "OPI";
|
|
31
|
+
OP: "OP";
|
|
32
|
+
PF: "PF";
|
|
33
|
+
EF: "EF";
|
|
34
|
+
EFSN: "EFSN";
|
|
35
|
+
EM: "EM";
|
|
36
|
+
GTF: "GTF";
|
|
37
|
+
DF: "DF";
|
|
38
|
+
CF: "CF";
|
|
39
|
+
NPF: "NPF";
|
|
40
|
+
ADF: "ADF";
|
|
41
|
+
NCF: "NCF";
|
|
42
|
+
NCRF: "NCRF";
|
|
43
|
+
FTF: "FTF";
|
|
44
|
+
PI: "PI";
|
|
45
|
+
IM: "IM";
|
|
46
|
+
IMN: "IMN";
|
|
47
|
+
QE: "QE";
|
|
48
|
+
TR: "TR";
|
|
49
|
+
TRS: "TRS";
|
|
50
|
+
GTI: "GTI";
|
|
51
|
+
ADSM: "ADSM";
|
|
52
|
+
FTSM: "FTSM";
|
|
53
|
+
FP: "FP";
|
|
54
|
+
RDP: "RDP";
|
|
55
|
+
NRCL: "NRCL";
|
|
56
|
+
FPM: "FPM";
|
|
57
|
+
FTM: "FTM";
|
|
58
|
+
FTD: "FTD";
|
|
59
|
+
FRM: "FRM";
|
|
60
|
+
FRD: "FRD";
|
|
61
|
+
FSM: "FSM";
|
|
62
|
+
FSD: "FSD";
|
|
63
|
+
NCM: "NCM";
|
|
64
|
+
NCD: "NCD";
|
|
65
|
+
ADM: "ADM";
|
|
66
|
+
ADD: "ADD";
|
|
67
|
+
NCADM: "NCADM";
|
|
68
|
+
NCADD: "NCADD";
|
|
69
|
+
FTO: "FTO";
|
|
70
|
+
FRO: "FRO";
|
|
71
|
+
REO: "REO";
|
|
72
|
+
CAT: "CAT";
|
|
73
73
|
};
|
|
74
74
|
export type IDocumentTypeCodeType = (typeof DocumentTypeCodeTypeEnum)[keyof typeof DocumentTypeCodeTypeEnum];
|
|
75
75
|
export declare const documentTypeCodeTypes: string[];
|
|
@@ -144,4 +144,4 @@ export interface IRepository {
|
|
|
144
144
|
deleteOne(selector: IShared.IFindByIdNumberRequest): Promise<IEntityExtended | null>;
|
|
145
145
|
}
|
|
146
146
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
147
|
-
export type IApi = Omit<IRepository,
|
|
147
|
+
export type IApi = Omit<IRepository, "findById" | "findByQuery">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ExternalDocumentHeader } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ExternalDocumentHeader;
|
|
4
4
|
export declare const Route = "external_document_header";
|
|
5
5
|
export interface IFindByOwnerIdItem {
|
|
@@ -15,7 +15,7 @@ export interface IFindByOwnerIdItem {
|
|
|
15
15
|
can_retry: boolean;
|
|
16
16
|
}
|
|
17
17
|
export interface IFindByOwnerIdItemWithVersions extends IFindByOwnerIdItem {
|
|
18
|
-
older_versions: Pick<IFindByOwnerIdItem,
|
|
18
|
+
older_versions: Pick<IFindByOwnerIdItem, "label" | "pdf_link">[];
|
|
19
19
|
}
|
|
20
20
|
export interface ICreateRequest {
|
|
21
21
|
document_header_id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExternalDocumentType } from
|
|
2
|
-
import * as IShared from
|
|
1
|
+
import { ExternalDocumentType } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = ExternalDocumentType;
|
|
4
4
|
export declare const Route = "external_document_type";
|
|
5
5
|
export interface IRepository {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IProductState, IProductType } from "../../stock/productGoogleSheets/interface";
|
|
2
2
|
export declare const Route = "order_management";
|
|
3
3
|
export interface IFindProviderProductsRequest {
|
|
4
4
|
provider_id: string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import { DocumentHeader, Payment } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
|
+
import * as IObservation from "../../integration/observation/interfaces";
|
|
4
|
+
import * as IUser from "../../user/users/interface";
|
|
5
5
|
export type Entity = Payment;
|
|
6
6
|
export declare const Route = "payment";
|
|
7
7
|
export type IEntityExtended = Entity;
|
|
8
|
-
export type IFindByIdResponse = Omit<IEntityExtended,
|
|
9
|
-
export type IFindByOwnerIdResponse = Omit<IEntityExtended,
|
|
8
|
+
export type IFindByIdResponse = Omit<IEntityExtended, "">;
|
|
9
|
+
export type IFindByOwnerIdResponse = Omit<IEntityExtended, "">;
|
|
10
10
|
export type IFindRequest = Record<string, unknown>;
|
|
11
|
-
export type IFindResponse = Omit<IEntityExtended,
|
|
11
|
+
export type IFindResponse = Omit<IEntityExtended, "">;
|
|
12
12
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
13
13
|
}
|
|
14
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IEntityExtended,
|
|
14
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IEntityExtended, "">>;
|
|
15
15
|
export interface ICreateForThisDocumentHeaderRequest {
|
|
16
16
|
date: Date;
|
|
17
17
|
debit: number;
|
|
@@ -30,9 +30,9 @@ export interface IUnpaidPurchasesRequest {
|
|
|
30
30
|
export interface IUnpaidByDatePurchasesRequest {
|
|
31
31
|
due_date: Date;
|
|
32
32
|
}
|
|
33
|
-
export type IPaymentOrigin =
|
|
34
|
-
export interface IUnpaidPurchasesResponse extends Pick<Entity,
|
|
35
|
-
document_header: Pick<DocumentHeader,
|
|
33
|
+
export type IPaymentOrigin = "CC Fornecedor" | "CC Cliente" | "CC Fornecedor (Descontinuado)" | "CC Cliente (Descontinuado)";
|
|
34
|
+
export interface IUnpaidPurchasesResponse extends Pick<Entity, "date" | "debit" | "credit"> {
|
|
35
|
+
document_header: Pick<DocumentHeader, "emission_date" | "pdf_link" | "id">;
|
|
36
36
|
origin: IPaymentOrigin;
|
|
37
37
|
document_type_code: string | null;
|
|
38
38
|
document_name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Payment } from "../../../shared/entities/stock";
|
|
2
|
+
import * as IShared from "../../../shared/interface";
|
|
3
3
|
export type Entity = Payment;
|
|
4
4
|
export declare const Route = "payment_batch";
|
|
5
5
|
export interface IPaymentsNotExportedRequest {
|
|
@@ -22,7 +22,7 @@ export interface IExportPaymentsRequest {
|
|
|
22
22
|
value: number;
|
|
23
23
|
npf_ids?: string[];
|
|
24
24
|
}
|
|
25
|
-
export type IBatchType =
|
|
25
|
+
export type IBatchType = "national" | "international" | "null";
|
|
26
26
|
export interface IPaymentsBatchNpfDh {
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|