@nomalism-com/types 0.49.6 → 0.49.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.
- package/dist/index.cjs +604 -534
- package/dist/index.js +597 -534
- package/dist/main.d.ts +8 -1
- package/dist/modules/document/adiantamento/interfaces.d.ts +24 -0
- package/dist/modules/document/faturaCredito/interfaces.d.ts +26 -0
- package/dist/modules/document/faturaRecibo/interfaces.d.ts +25 -0
- package/dist/modules/document/faturaSimplificada/interfaces.d.ts +24 -0
- package/dist/modules/document/notaCredito/interfaces.d.ts +29 -0
- package/dist/modules/document/notaCreditoAdiantamento/interfaces.d.ts +25 -0
- package/dist/modules/document/recibo/interfaces.d.ts +21 -0
- package/package.json +2 -2
package/dist/main.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import * as Adiantamento from "./modules/document/adiantamento/interfaces";
|
|
1
2
|
import * as BillOfLading from "./modules/document/billOfLading/interfaces";
|
|
2
3
|
import * as Catalogo from "./modules/document/CAT/interfaces";
|
|
4
|
+
import * as FaturaCredito from "./modules/document/faturaCredito/interfaces";
|
|
5
|
+
import * as FaturaRecibo from "./modules/document/faturaRecibo/interfaces";
|
|
6
|
+
import * as FaturaSimplificada from "./modules/document/faturaSimplificada/interfaces";
|
|
3
7
|
import * as Inventario from "./modules/document/inventario/interface";
|
|
4
8
|
import * as MaterialEntrance from "./modules/document/materialEntrance/interfaces";
|
|
9
|
+
import * as NotaCredito from "./modules/document/notaCredito/interfaces";
|
|
10
|
+
import * as NotaCreditoAdiantamento from "./modules/document/notaCreditoAdiantamento/interfaces";
|
|
5
11
|
import * as NPF from "./modules/document/NPF/interface";
|
|
6
12
|
import * as NRCL from "./modules/document/NRCL/interface";
|
|
7
13
|
import * as Order from "./modules/document/order/interfaces";
|
|
@@ -14,6 +20,7 @@ import * as ProviderFinancialCreditNote from "./modules/document/providerFinanci
|
|
|
14
20
|
import * as ProviderServiceInvoice from "./modules/document/providerServiceInvoice/interfaces";
|
|
15
21
|
import * as Purchase from "./modules/document/purchase/interfaces";
|
|
16
22
|
import * as Quebra from "./modules/document/quebra/interfaces";
|
|
23
|
+
import * as Recibo from "./modules/document/recibo/interfaces";
|
|
17
24
|
import * as ReturnToProvider from "./modules/document/returnToProvider/interface";
|
|
18
25
|
import * as Transformado from "./modules/document/transformado/interfaces";
|
|
19
26
|
import * as UpfrontReturn from "./modules/document/upfrontReturn/interfaces";
|
|
@@ -141,4 +148,4 @@ import * as stockErrors from "./shared/errors/stockErrors";
|
|
|
141
148
|
import * as userErrors from "./shared/errors/userErrors";
|
|
142
149
|
import * as viewErrors from "./shared/errors/viewErrors";
|
|
143
150
|
import * as shared from "./shared/interface";
|
|
144
|
-
export { AccountCode, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion, PromotionAssoc, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, Swift, SystemModule, Tag, Task, TaskMessage, TaskRead, Tenant, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
|
|
151
|
+
export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion, PromotionAssoc, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, Recibo, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, Swift, SystemModule, Tag, Task, TaskMessage, TaskRead, Tenant, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import * as IPayment from "../../supply/payment/interface";
|
|
3
|
+
export declare const Route = "adiantamento";
|
|
4
|
+
export interface ICreateRequestBase {
|
|
5
|
+
document_type_id: number;
|
|
6
|
+
document_set_id?: string;
|
|
7
|
+
emission_date?: Date;
|
|
8
|
+
external_document_name?: string;
|
|
9
|
+
store_operator_id?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateRequest extends ICreateRequestBase {
|
|
13
|
+
/** exatamente uma proposta */
|
|
14
|
+
from_header: string[];
|
|
15
|
+
payments: IPayment.ICreateForThisDocumentHeaderRequest[];
|
|
16
|
+
owner_ref_document?: string | null;
|
|
17
|
+
/** só nas recuperações (ADM / ADD) */
|
|
18
|
+
copy_from_document?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface IRepository {
|
|
21
|
+
create(data: ICreateRequest): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
24
|
+
export type IApi = IRepository;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import * as IPayment from "../../supply/payment/interface";
|
|
3
|
+
export declare const Route = "fatura_credito";
|
|
4
|
+
export interface ICreateRequestBase {
|
|
5
|
+
document_type_id: number;
|
|
6
|
+
document_set_id?: string;
|
|
7
|
+
emission_date?: Date;
|
|
8
|
+
external_document_name?: string;
|
|
9
|
+
store_operator_id?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateRequest extends ICreateRequestBase {
|
|
13
|
+
from_header: string[];
|
|
14
|
+
from_lines: string[];
|
|
15
|
+
/** opcional: a fatura a crédito pode ficar total ou parcialmente em dívida */
|
|
16
|
+
payments?: IPayment.ICreateForThisDocumentHeaderRequest[];
|
|
17
|
+
maturity_date_id?: string | null;
|
|
18
|
+
owner_ref_document?: string | null;
|
|
19
|
+
/** só nas recuperações (FTM / FTD) */
|
|
20
|
+
copy_from_document?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface IRepository {
|
|
23
|
+
create(data: ICreateRequest): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
26
|
+
export type IApi = IRepository;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import * as IPayment from "../../supply/payment/interface";
|
|
3
|
+
export declare const Route = "fatura_recibo";
|
|
4
|
+
export interface ICreateRequestBase {
|
|
5
|
+
document_type_id: number;
|
|
6
|
+
document_set_id?: string;
|
|
7
|
+
emission_date?: Date;
|
|
8
|
+
external_document_name?: string;
|
|
9
|
+
store_operator_id?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateRequest extends ICreateRequestBase {
|
|
13
|
+
from_header: string[];
|
|
14
|
+
from_lines: string[];
|
|
15
|
+
/** obrigatório: a fatura-recibo sai liquidada por inteiro */
|
|
16
|
+
payments: IPayment.ICreateForThisDocumentHeaderRequest[];
|
|
17
|
+
owner_ref_document?: string | null;
|
|
18
|
+
/** só nas recuperações (FRM / FRD) */
|
|
19
|
+
copy_from_document?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface IRepository {
|
|
22
|
+
create(data: ICreateRequest): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
25
|
+
export type IApi = IRepository;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import * as IPayment from "../../supply/payment/interface";
|
|
3
|
+
export declare const Route = "fatura_simplificada";
|
|
4
|
+
export interface ICreateRequestBase {
|
|
5
|
+
document_type_id: number;
|
|
6
|
+
document_set_id?: string;
|
|
7
|
+
emission_date?: Date;
|
|
8
|
+
external_document_name?: string;
|
|
9
|
+
store_operator_id?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateRequest extends ICreateRequestBase {
|
|
13
|
+
from_header: string[];
|
|
14
|
+
from_lines: string[];
|
|
15
|
+
/** obrigatório: a FS é liquidada no ato */
|
|
16
|
+
payments: IPayment.ICreateForThisDocumentHeaderRequest[];
|
|
17
|
+
/** só nas recuperações (FSM / FSD) */
|
|
18
|
+
copy_from_document?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface IRepository {
|
|
21
|
+
create(data: ICreateRequest): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
24
|
+
export type IApi = IRepository;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import * as IPayment from "../../supply/payment/interface";
|
|
3
|
+
export declare const Route = "nota_credito";
|
|
4
|
+
export interface ICreateRequestBase {
|
|
5
|
+
document_type_id: number;
|
|
6
|
+
document_set_id?: string;
|
|
7
|
+
emission_date?: Date;
|
|
8
|
+
external_document_name?: string;
|
|
9
|
+
store_operator_id?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateRequest extends ICreateRequestBase {
|
|
13
|
+
/** as FATURAS a creditar */
|
|
14
|
+
from_header: string[];
|
|
15
|
+
from_lines: string[];
|
|
16
|
+
/** obrigatório (Art. 78.º CIVA) */
|
|
17
|
+
return_reason: string;
|
|
18
|
+
/** true = regulariza em conta corrente, sem pagamentos */
|
|
19
|
+
current_account?: boolean;
|
|
20
|
+
payments?: IPayment.ICreateForThisDocumentHeaderRequest[];
|
|
21
|
+
owner_ref_document?: string | null;
|
|
22
|
+
/** só nas recuperações (NCM / NCD) */
|
|
23
|
+
copy_from_document?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface IRepository {
|
|
26
|
+
create(data: ICreateRequest): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
29
|
+
export type IApi = IRepository;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import * as IPayment from "../../supply/payment/interface";
|
|
3
|
+
export declare const Route = "nota_credito_adiantamento";
|
|
4
|
+
export interface ICreateRequestBase {
|
|
5
|
+
document_type_id: number;
|
|
6
|
+
document_set_id?: string;
|
|
7
|
+
emission_date?: Date;
|
|
8
|
+
external_document_name?: string;
|
|
9
|
+
store_operator_id?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateRequest extends ICreateRequestBase {
|
|
13
|
+
/** exatamente uma proposta */
|
|
14
|
+
from_header: string[];
|
|
15
|
+
current_account?: boolean;
|
|
16
|
+
payments?: IPayment.ICreateForThisDocumentHeaderRequest[];
|
|
17
|
+
owner_ref_document?: string | null;
|
|
18
|
+
/** só nas recuperações (NCADM / NCADD) */
|
|
19
|
+
copy_from_document?: string | null;
|
|
20
|
+
}
|
|
21
|
+
export interface IRepository {
|
|
22
|
+
create(data: ICreateRequest): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
25
|
+
export type IApi = IRepository;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import * as IPayment from "../../supply/payment/interface";
|
|
3
|
+
export declare const Route = "recibo";
|
|
4
|
+
export interface ICreateRequestBase {
|
|
5
|
+
document_type_id: number;
|
|
6
|
+
document_set_id?: string;
|
|
7
|
+
emission_date?: Date;
|
|
8
|
+
external_document_name?: string;
|
|
9
|
+
store_operator_id?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ICreateRequest extends ICreateRequestBase {
|
|
13
|
+
/** a FATURA a liquidar */
|
|
14
|
+
from_header: string[];
|
|
15
|
+
payments: IPayment.ICreateForThisDocumentHeaderRequest[];
|
|
16
|
+
}
|
|
17
|
+
export interface IRepository {
|
|
18
|
+
create(data: ICreateRequest): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
21
|
+
export type IApi = IRepository;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.49.
|
|
4
|
+
"version": "0.49.7",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@eslint/js": "^10.0.1",
|
|
30
30
|
"@swc/core": "^1.16.2",
|
|
31
|
-
"@types/node": "^26.5.
|
|
31
|
+
"@types/node": "^26.5.1",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
33
33
|
"@typescript-eslint/parser": "^8.62.0",
|
|
34
34
|
"eslint": "^10.10.0",
|