@nomalism-com/types
Advanced tools
@@ -8,7 +8,6 @@ import { AllowedDevice } from '../../../shared/entities/sms'; | ||
| export type ICreateRequest = Pick<Entity, 'key' | 'apk_name'>; | ||
| export interface IUpdateRequest { | ||
| allow_app?: boolean; | ||
| allow_sms?: boolean; | ||
| allow_ticket?: boolean; | ||
| } | ||
| export type apkType = 'sms' | 'ticket' | 'app'; | ||
| export type IUpdateRequest = { | ||
| [K in apkType as `allow_${K}`]?: boolean; | ||
| }; | ||
| export interface IRepository { | ||
@@ -15,0 +14,0 @@ find(): Promise<IEntity[]>; |
+1
-1
| { | ||
| "name": "@nomalism-com/types", | ||
| "description": "A nomalism package with all necessary types and validations for developing APIs", | ||
| "version": "0.46.39", | ||
| "version": "0.46.40", | ||
| "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
829578
-0.02%21168
-0.04%