@nomalism-com/types 0.10.18 → 0.10.19

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.
@@ -2,6 +2,11 @@ import * as IShared from '../../../shared/interface';
2
2
  export declare const Route = "upfrontReturn";
3
3
  export declare const UpperName = "UpfrontReturn";
4
4
  export declare const LowerName: string;
5
+ export interface ICreateRequest {
6
+ current_account: boolean;
7
+ }
5
8
  export interface IRepository {
6
- create(id: IShared.IFindByIdRequest): Promise<void>;
9
+ create(id: IShared.IFindByIdRequest, body: ICreateRequest): Promise<void>;
7
10
  }
11
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
12
+ export type IApi = IRepository;
@@ -0,0 +1,2 @@
1
+ import joi from 'joi';
2
+ export declare const createBody: joi.ObjectSchema<any>;
@@ -0,0 +1,12 @@
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.createBody = void 0;
7
+ var joi_1 = __importDefault(require("joi"));
8
+ var messages_1 = require("../../../shared/messages");
9
+ var createBodyKeys = {
10
+ current_account: joi_1.default.boolean().required(),
11
+ };
12
+ exports.createBody = joi_1.default.object().keys(createBodyKeys).messages(messages_1.messages);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.10.18",
12
+ "version": "0.10.19",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/convert-units": "^2.3.7",
41
- "@types/node": "^18.18.4",
41
+ "@types/node": "^18.18.5",
42
42
  "@typescript-eslint/eslint-plugin": "^6.7.5",
43
43
  "@typescript-eslint/parser": "^6.7.5",
44
44
  "concurrently": "^8.2.1",