@nomalism-com/types
Advanced tools
@@ -28,6 +28,2 @@ import type { DocumentHeader } from "../../../shared/entities/stock"; | ||
| } | ||
| export interface IFindRequest { | ||
| id?: string; | ||
| number?: number[]; | ||
| } | ||
| export type IFindResponse = Omit<IFindDetailedResponse, "">; | ||
@@ -84,3 +80,3 @@ export type IFindPaginatedRequest = IShared.IPaginationRequest; | ||
| findByQuery(params: IFindByQueryRequest): Promise<IFindResponse[]>; | ||
| find(selector: IFindRequest): Promise<IFindResponse[]>; | ||
| find(): Promise<IFindResponse[]>; | ||
| findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>; | ||
@@ -87,0 +83,0 @@ create(data: ICreateRequest): Promise<IFindResponse>; |
| import joi from "joi"; | ||
| export declare const createBody: joi.ObjectSchema<any>; | ||
| export declare const updateBody: joi.ObjectSchema<any>; | ||
| export declare const findQuery: joi.ObjectSchema<any>; | ||
| export declare const findByQueryQuery: joi.ObjectSchema<any>; | ||
| export declare const findByNumberQuery: joi.ObjectSchema<any>; | ||
| export declare const findWithPaginationQuery: joi.ObjectSchema<any>; | ||
| export declare const findByNumberParams: joi.ObjectSchema<any>; |
+1
-1
| { | ||
| "name": "@nomalism-com/types", | ||
| "description": "A nomalism package with all necessary types and validations for developing APIs", | ||
| "version": "0.47.1", | ||
| "version": "0.47.2", | ||
| "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)", | ||
@@ -6,0 +6,0 @@ "license": "UNLICENSED", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
830991
0.06%21224
0.03%