@nomalism-com/types 0.11.6 → 0.11.8
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/modules/document/materialEntrance/interfaces.d.ts +1 -1
- package/dist/modules/document/order/interfaces.d.ts +1 -1
- package/dist/modules/supply/documentHeader/interfaces.d.ts +9 -2
- package/dist/modules/supply/payment/interface.d.ts +0 -12
- package/dist/shared/entities/stock.d.ts +1 -0
- package/package.json +6 -6
|
@@ -92,7 +92,7 @@ export interface IPrintLabelParamsRequest {
|
|
|
92
92
|
}
|
|
93
93
|
export interface IFinalizarEntradaDeMaterialResponse {
|
|
94
94
|
broker_messages: IShared.IBrokerMessage<IShared.IBrokerTopic>[];
|
|
95
|
-
document_number:
|
|
95
|
+
document_number: string;
|
|
96
96
|
}
|
|
97
97
|
interface IRepository {
|
|
98
98
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
|
|
@@ -46,7 +46,7 @@ export interface IFindStockToOrderRequest {
|
|
|
46
46
|
export interface IFindStockToOrderResponse {
|
|
47
47
|
document_line_assoc_id: string;
|
|
48
48
|
document_line_id: string;
|
|
49
|
-
document_number:
|
|
49
|
+
document_number: string;
|
|
50
50
|
owner_id: string;
|
|
51
51
|
product: {
|
|
52
52
|
product_id: string;
|
|
@@ -20,7 +20,10 @@ export interface IFindOneResponse extends Entity {
|
|
|
20
20
|
start_virtual: StartDocumentHeaderVirtuals | null;
|
|
21
21
|
virtual: DocumentHeaderVirtuals | null;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
type IFindStartResponseOmitVirtual = Omit<IFindOneResponse, 'virtual'>;
|
|
24
|
+
export interface IFindStartResponse extends IFindStartResponseOmitVirtual {
|
|
25
|
+
client_balance?: number | null;
|
|
26
|
+
}
|
|
24
27
|
export interface IFindByDocumentLineStateRequest {
|
|
25
28
|
document_type_id: number;
|
|
26
29
|
document_line_state: string;
|
|
@@ -202,7 +205,10 @@ export interface IGetActionsResponse {
|
|
|
202
205
|
document_type: DocumentType;
|
|
203
206
|
transition_name: string;
|
|
204
207
|
document_line_ids: string[];
|
|
205
|
-
from_document_headers:
|
|
208
|
+
from_document_headers: {
|
|
209
|
+
id: string;
|
|
210
|
+
document_header: string;
|
|
211
|
+
}[];
|
|
206
212
|
}
|
|
207
213
|
export interface IUnpaidDocumentResponse {
|
|
208
214
|
id: string;
|
|
@@ -350,3 +356,4 @@ export type IApi = Omit<IRepository, 'rollback' | 'updateDocumentLineAssocExtern
|
|
|
350
356
|
createProductionOrder(data: ICreateProductionOrderRequest): Promise<void>;
|
|
351
357
|
};
|
|
352
358
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
359
|
+
export {};
|
|
@@ -81,18 +81,6 @@ export interface IProviderPaymentRequest {
|
|
|
81
81
|
documents: IProviderPaymentDocument[];
|
|
82
82
|
total: number;
|
|
83
83
|
}
|
|
84
|
-
export interface IPaymentDocumentReceipt {
|
|
85
|
-
document_header_id: string;
|
|
86
|
-
origin: IPaymentOrigin;
|
|
87
|
-
value: number;
|
|
88
|
-
discount_value: number;
|
|
89
|
-
name: string;
|
|
90
|
-
}
|
|
91
|
-
export interface IOwnerClientProvider {
|
|
92
|
-
owner_id: string;
|
|
93
|
-
owner_number: number;
|
|
94
|
-
name: string;
|
|
95
|
-
}
|
|
96
84
|
export interface IPaymentsNotExportedResponse {
|
|
97
85
|
iban: string;
|
|
98
86
|
payment_ids: string[];
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.11.
|
|
12
|
+
"version": "0.11.8",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"joi-to-swagger": "^6.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@types/convert-units": "^2.3.
|
|
41
|
-
"@types/node": "^18.18.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
43
|
-
"@typescript-eslint/parser": "^6.
|
|
40
|
+
"@types/convert-units": "^2.3.9",
|
|
41
|
+
"@types/node": "^18.18.9",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
43
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
44
44
|
"concurrently": "^8.2.2",
|
|
45
|
-
"eslint": "^8.
|
|
45
|
+
"eslint": "^8.53.0",
|
|
46
46
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
47
|
"eslint-config-prettier": "^9.0.0",
|
|
48
48
|
"eslint-import-resolver-typescript": "^3.6.1",
|