@nomalism-com/types 0.44.15 → 0.44.18

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.
@@ -1,7 +1,6 @@
1
- import type { DocumentHeader, DocumentLineNote } from '../../../shared/entities/stock';
1
+ import type { DocumentHeader, DocumentLineNote, SavedEmPicking } 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';
5
4
  export declare const Route = "material_entrance";
6
5
  export declare const UpperName = "MaterialEntrance";
7
6
  export declare const LowerName: string;
@@ -124,12 +123,13 @@ export interface IPrintBulkLabelRequest {
124
123
  export interface IPrintLabelQueryWithTokenRequest extends IPrintLabelQueryRequest {
125
124
  token: string;
126
125
  }
126
+ export type IFindDoneByIdResponse = Pick<SavedEmPicking, 'data' | 'created_at' | 'created_by' | 'updated_at' | 'updated_by'>;
127
127
  interface IRepository {
128
128
  finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
129
129
  undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
130
130
  findUnfinishedPickings(selector: IShared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
131
131
  findMaterialEntranceProviders(): Promise<IShared.IFindMinifiedResponse[]>;
132
- findDoneById(params: IShared.IFindByIdRequest): Promise<ISavedEmPickingData | null>;
132
+ findDoneById(params: IShared.IFindByIdRequest): Promise<IFindDoneByIdResponse[]>;
133
133
  }
134
134
  export type IApi = Omit<IRepository, 'finalizarEntradaMaterial'> & {
135
135
  finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
@@ -23,6 +23,7 @@ export interface IFindByDocumentLineStateResponse {
23
23
  identifier: string | null;
24
24
  created_at: Date;
25
25
  created_by: string;
26
+ seller: string;
26
27
  who_handles: string | null;
27
28
  tags: string | null;
28
29
  adjudicated: boolean;
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.15",
4
+ "version": "0.44.18",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@swc/core": "^1.15.33",
33
- "@types/node": "^24.12.2",
34
- "@typescript-eslint/eslint-plugin": "^8.59.2",
35
- "@typescript-eslint/parser": "^8.59.2",
33
+ "@types/node": "^24.12.4",
34
+ "@typescript-eslint/eslint-plugin": "^8.59.3",
35
+ "@typescript-eslint/parser": "^8.59.3",
36
36
  "eslint": "^9.39.4",
37
37
  "eslint-config-prettier": "^10.1.8",
38
38
  "eslint-import-resolver-typescript": "^4.4.4",