@nomalism-com/types 0.16.23 → 0.16.25

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.
@@ -55,3 +55,4 @@ export interface IRepository {
55
55
  findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse>;
56
56
  create(data: ICreateRequest): Promise<void>;
57
57
  }
58
+ export type IApi = Omit<IRepository, 'create'>;
@@ -0,0 +1,3 @@
1
+ import joi from 'joi';
2
+ import { IFindRequest } from './interfaces';
3
+ export declare const sendBody: joi.ObjectSchema<IFindRequest>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.sendBody = void 0;
7
+ var joi_1 = __importDefault(require("joi"));
8
+ var messages_1 = require("../../../shared/messages");
9
+ exports.sendBody = joi_1.default
10
+ .object()
11
+ .keys({
12
+ date_start: joi_1.default.date().required(),
13
+ date_end: joi_1.default.date().required(),
14
+ })
15
+ .messages(messages_1.messages);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.16.23",
12
+ "version": "0.16.25",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [