@nomalism-com/types
Advanced tools
@@ -10,2 +10,6 @@ import { AllowedDevice } from '../../../shared/entities/sms'; | ||
| export type IUpdateRequest = Pick<Entity, 'name' | 'allow_app' | 'allow_sms' | 'allow_ticket'>; | ||
| export interface ICreateResponse { | ||
| name: string; | ||
| allowed: boolean; | ||
| } | ||
| export interface IRepository { | ||
@@ -15,3 +19,3 @@ find(): Promise<IEntity[]>; | ||
| findByKey(key: string): Promise<IEntity>; | ||
| create(data: ICreateRequest): Promise<string>; | ||
| create(data: ICreateRequest): Promise<ICreateResponse>; | ||
| update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>; | ||
@@ -18,0 +22,0 @@ deleteOne(selector: IShared.IFindByIdRequest): Promise<void>; |
+1
-1
| { | ||
| "name": "@nomalism-com/types", | ||
| "description": "A nomalism package with all necessary types and validations for developing APIs", | ||
| "version": "0.46.42", | ||
| "version": "0.46.43", | ||
| "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)", | ||
@@ -6,0 +6,0 @@ "license": "UNLICENSED", |
829965
0.01%21181
0.02%