@nomalism-com/types 0.50.2 → 0.50.3
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/shared/interface.d.ts +3 -0
- package/package.json +1 -1
- package/dist/modules/document/adiantamento/interfaces.d.ts +0 -24
- package/dist/modules/document/faturaCredito/interfaces.d.ts +0 -26
- package/dist/modules/document/faturaRecibo/interfaces.d.ts +0 -25
- package/dist/modules/document/faturaSimplificada/interfaces.d.ts +0 -24
- package/dist/modules/document/notaCredito/interfaces.d.ts +0 -29
- package/dist/modules/document/notaCreditoAdiantamento/interfaces.d.ts +0 -25
- package/dist/modules/document/productionOrder/interfaces.d.ts +0 -10
- package/dist/modules/document/recibo/interfaces.d.ts +0 -21
- package/dist/modules/stock/taskRead/interface.d.ts +0 -11
- package/dist/modules/supply/batch/interface.d.ts +0 -0
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.50.
|
|
4
|
+
"version": "0.50.3",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -1,24 +0,0 @@
|
|
|
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;
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
|
@@ -1,24 +0,0 @@
|
|
|
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;
|
|
@@ -1,29 +0,0 @@
|
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as IShared from "../../../shared/interface";
|
|
2
|
-
export declare const Route = "production_order";
|
|
3
|
-
export interface ICreateProductionOrderRequest {
|
|
4
|
-
provider_id: string;
|
|
5
|
-
group_id: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IRepository {
|
|
8
|
-
createProductionOrder(data: ICreateProductionOrderRequest): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TaskRead } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = TaskRead;
|
|
4
|
-
export declare const Route = "task_read";
|
|
5
|
-
export type ICreateRequest = Pick<Entity, "user_id" | "task_id">;
|
|
6
|
-
export type IDeleteRequest = Pick<Entity, "user_id" | "task_id">;
|
|
7
|
-
export interface IRepository {
|
|
8
|
-
create(data: ICreateRequest): Promise<void>;
|
|
9
|
-
delete(selector: IDeleteRequest): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
File without changes
|