@nomalism-com/types 0.44.8 → 0.44.10
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 +1 -0
- package/dist/index.js +1 -0
- package/dist/modules/document/materialEntrance/interfaces.d.ts +3 -0
- package/dist/modules/stock/dashboard/interface.d.ts +2 -1
- package/dist/modules/stock/productGoogleSheets/interface.d.ts +4 -0
- package/dist/modules/user/password/interfaces.d.ts +5 -2
- package/dist/modules/user/sessions/interface.d.ts +1 -1
- package/dist/modules/user/users/interface.d.ts +1 -1
- package/dist/shared/entities/stock.d.ts +2 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -4851,6 +4851,7 @@ var entradaDeMaterialStockBodyKeys = {
|
|
|
4851
4851
|
ordered_quantity: joi85.number().positive().allow(0).required(),
|
|
4852
4852
|
document_line_id: joi85.string().uuid().allow(null).required(),
|
|
4853
4853
|
quantity: joi85.number().positive().allow(0).required(),
|
|
4854
|
+
real_quantity: joi85.number().positive().allow(0).required(),
|
|
4854
4855
|
option: joi85.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
4855
4856
|
note: joi85.string().allow(null),
|
|
4856
4857
|
printed: joi85.string().allow(null)
|
package/dist/index.js
CHANGED
|
@@ -4851,6 +4851,7 @@ var entradaDeMaterialStockBodyKeys = {
|
|
|
4851
4851
|
ordered_quantity: joi85.number().positive().allow(0).required(),
|
|
4852
4852
|
document_line_id: joi85.string().uuid().allow(null).required(),
|
|
4853
4853
|
quantity: joi85.number().positive().allow(0).required(),
|
|
4854
|
+
real_quantity: joi85.number().positive().allow(0).required(),
|
|
4854
4855
|
option: joi85.string().valid(...createMaterialEntranceStockOptions, ...createMaterialEntranceStockWithoutOrderOptions).allow(null).required(),
|
|
4855
4856
|
note: joi85.string().allow(null),
|
|
4856
4857
|
printed: joi85.string().allow(null)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DocumentHeader, DocumentLineNote } from '../../../shared/entities/stock';
|
|
2
2
|
import * as IShared from '../../../shared/interface';
|
|
3
3
|
import { type IProductType } from '../../stock/productGoogleSheets/interface';
|
|
4
|
+
import type { ISavedEmPickingData } from '../../stock/savedEmPicking/interfaces';
|
|
4
5
|
export declare const Route = "material_entrance";
|
|
5
6
|
export declare const UpperName = "MaterialEntrance";
|
|
6
7
|
export declare const LowerName: string;
|
|
@@ -51,6 +52,7 @@ export interface IGetMaterialEntranceInfoStock {
|
|
|
51
52
|
export interface IEntradaDeMaterialStock extends IGetMaterialEntranceInfoStock {
|
|
52
53
|
document_line_id: string | null;
|
|
53
54
|
quantity: number;
|
|
55
|
+
real_quantity: number;
|
|
54
56
|
option: ICreateMaterialEntranceStockOption | ICreateMaterialEntranceStockWithoutOrderOption | null;
|
|
55
57
|
note: string | null;
|
|
56
58
|
printed: string | null;
|
|
@@ -127,6 +129,7 @@ interface IRepository {
|
|
|
127
129
|
undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
|
|
128
130
|
findUnfinishedPickings(selector: IShared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
|
|
129
131
|
findMaterialEntranceProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
132
|
+
findDoneById(params: IShared.IFindByIdRequest): Promise<ISavedEmPickingData | null>;
|
|
130
133
|
}
|
|
131
134
|
export type IApi = Omit<IRepository, 'finalizarEntradaMaterial'> & {
|
|
132
135
|
finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
|
|
@@ -4,7 +4,8 @@ export declare const LowerName: string;
|
|
|
4
4
|
export type IDashboardSalesNames = 'dia' | 'mes' | 'ano';
|
|
5
5
|
export interface IDashboardSalesRowValue {
|
|
6
6
|
sheets: number;
|
|
7
|
-
|
|
7
|
+
stock: number;
|
|
8
|
+
encomenda: number;
|
|
8
9
|
}
|
|
9
10
|
export interface IDashboardSalesRow {
|
|
10
11
|
chave: number;
|
|
@@ -217,6 +217,10 @@ export interface IProductByOwner {
|
|
|
217
217
|
id: string;
|
|
218
218
|
reference: string;
|
|
219
219
|
}
|
|
220
|
+
export interface IExpectDeliveryDates {
|
|
221
|
+
quantity: number;
|
|
222
|
+
date: string | null;
|
|
223
|
+
}
|
|
220
224
|
export interface IRepository {
|
|
221
225
|
basicSearch(params: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
222
226
|
findReferenceAndIdForMobile(params: IFindForMobileRequest): Promise<IFindReferenceAndIdForMobileResponse | null>;
|
|
@@ -3,7 +3,7 @@ export declare const Route = "password";
|
|
|
3
3
|
export interface IForgotPassword {
|
|
4
4
|
email: string;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface IForgotPasswordWithoutMailRequest {
|
|
7
7
|
user_id: string;
|
|
8
8
|
}
|
|
9
9
|
export interface IResetPassword {
|
|
@@ -11,9 +11,12 @@ export interface IResetPassword {
|
|
|
11
11
|
password: string;
|
|
12
12
|
password_confirmation: string;
|
|
13
13
|
}
|
|
14
|
+
export interface IForgotPasswordWithoutMailResponse {
|
|
15
|
+
recover_url: string;
|
|
16
|
+
}
|
|
14
17
|
export interface IRepository {
|
|
15
18
|
resetPassword(params: IResetPassword): Promise<void>;
|
|
16
19
|
forgotPassword(params: IForgotPassword): Promise<void>;
|
|
17
|
-
forgotPasswordWhithoutMail(params:
|
|
20
|
+
forgotPasswordWhithoutMail(params: IForgotPasswordWithoutMailRequest): Promise<IForgotPasswordWithoutMailResponse>;
|
|
18
21
|
}
|
|
19
22
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -13,7 +13,7 @@ interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id' | 'sup
|
|
|
13
13
|
main_persona: Pick<Persona, 'name' | 'email'>;
|
|
14
14
|
theme: Pick<Theme, 'colors'> | null;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface IFindByEmailResponse extends Pick<Entity, 'id'> {
|
|
17
17
|
store_operator: IStoreOperator;
|
|
18
18
|
}
|
|
19
19
|
export interface IFindByIdResponse extends EntityWithoutPassword {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IConflict } from '../../modules/document/propostaSheets/interface';
|
|
2
2
|
import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
|
|
3
3
|
import { IBatchType } from '../../modules/supply/paymentBatch/interface';
|
|
4
|
-
import { IProductType } from '../../modules/stock/productGoogleSheets/interface';
|
|
4
|
+
import { IExpectDeliveryDates, IProductType } from '../../modules/stock/productGoogleSheets/interface';
|
|
5
5
|
import { IImageType } from '../../modules/stock/productImage/interface';
|
|
6
6
|
import { ITagType } from '../../modules/stock/tag/interface';
|
|
7
7
|
import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
|
|
@@ -861,6 +861,7 @@ export type ProductVirtuals = {
|
|
|
861
861
|
available: number;
|
|
862
862
|
ordered_quantity: number;
|
|
863
863
|
inativa: boolean;
|
|
864
|
+
expected_delivery_dates: IExpectDeliveryDates[];
|
|
864
865
|
};
|
|
865
866
|
/**
|
|
866
867
|
* Model DocumentLineBaseVirtuals
|
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.44.
|
|
4
|
+
"version": "0.44.10",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"joi": "^18.1.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@swc/core": "^1.15.
|
|
32
|
+
"@swc/core": "^1.15.30",
|
|
33
33
|
"@types/node": "^24.12.2",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
36
36
|
"eslint": "^9.39.4",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
39
39
|
"eslint-plugin-prettier": "^5.5.5",
|
|
40
|
-
"prettier": "^3.8.
|
|
40
|
+
"prettier": "^3.8.3",
|
|
41
41
|
"tsup": "^8.5.1"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|