@nomalism-com/types 0.44.14 → 0.44.17

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 CHANGED
@@ -1634,7 +1634,8 @@ var updateBodyKeys8 = {
1634
1634
  confirmed_date: joi10.date().optional(),
1635
1635
  who_handles: joi10.string().allow(null).optional(),
1636
1636
  warning: joi10.string().optional().valid(...Object.values(IWarningType)),
1637
- created_by: joi10.string().uuid().allow(null).optional()
1637
+ created_by: joi10.string().uuid().allow(null).optional(),
1638
+ seller: joi10.string().uuid().allow(null).optional()
1638
1639
  };
1639
1640
  var updateBody8 = joi10.object().keys(updateBodyKeys8).and("reason_for_exemption_id", "reason_for_exemption").and("persona_id", "contact_name", "email", "phone_number").and(
1640
1641
  "delivery_country_name",
package/dist/index.js CHANGED
@@ -1634,7 +1634,8 @@ var updateBodyKeys8 = {
1634
1634
  confirmed_date: joi10.date().optional(),
1635
1635
  who_handles: joi10.string().allow(null).optional(),
1636
1636
  warning: joi10.string().optional().valid(...Object.values(IWarningType)),
1637
- created_by: joi10.string().uuid().allow(null).optional()
1637
+ created_by: joi10.string().uuid().allow(null).optional(),
1638
+ seller: joi10.string().uuid().allow(null).optional()
1638
1639
  };
1639
1640
  var updateBody8 = joi10.object().keys(updateBodyKeys8).and("reason_for_exemption_id", "reason_for_exemption").and("persona_id", "contact_name", "email", "phone_number").and(
1640
1641
  "delivery_country_name",
@@ -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>;
@@ -189,6 +189,7 @@ export interface IUpdateRequest {
189
189
  created_by?: string;
190
190
  confirmed?: boolean;
191
191
  confirmed_date?: Date;
192
+ seller?: string | null;
192
193
  }
193
194
  export type IGetActionsDocumentType = Pick<DocumentType, 'user_type' | 'allow_create_from_header_without_lines' | 'pay' | 'credit' | 'debit' | 'invoice' | 'code' | 'return' | 'id' | 'description'>;
194
195
  export interface IGetActionsResponse {
@@ -344,6 +344,7 @@ export type DocumentHeader = {
344
344
  document_name: string;
345
345
  external_document_name: string | null;
346
346
  qrcode: string | null;
347
+ seller: string | null;
347
348
  created_at: Date;
348
349
  updated_at: Date;
349
350
  created_by: string;
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.14",
4
+ "version": "0.44.17",
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",