🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@nomalism-com/types

Package Overview
Dependencies
Maintainers
2
Versions
3536
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nomalism-com/types - npm Package Compare versions

Comparing version
0.46.37
to
0.46.38
+22
dist/modules/sms/allowedDevice/interfaces.d.ts
import { AllowedDevice } from '../../../shared/entities/sms';
import * as IShared from '../../../shared/interface';
export type Entity = AllowedDevice;
export declare const Route = "allowed_device";
export interface IEntity extends Entity {
}
export type ICreateRequest = Pick<Entity, 'key' | 'apk_name'>;
export interface IUpdateRequest {
allow_app?: boolean;
allow_sms?: boolean;
allow_ticket?: boolean;
}
export interface IRepository {
find(): Promise<IEntity[]>;
findById(id: string): Promise<IEntity>;
findByKey(key: string): Promise<IEntity>;
create(data: ICreateRequest): Promise<string>;
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
}
export type IController = IShared.IEntityWithUserToken<IRepository>;
export type IApi = IRepository;
import joi from 'joi';
export declare const createBody: joi.ObjectSchema<any>;
export declare const updateBody: joi.ObjectSchema<any>;
+5
-2
import { SmsSender } from '../../../shared/entities/sms';
import * as IShared from '../../../shared/interface';
export type Entity = SmsSender;

@@ -37,7 +38,9 @@ export declare const Route = "sms_sender";

}
export interface IController {
export interface IRepository {
claim(): Promise<IClaimResponse[]>;
result(id: string, data: IResultRequest): Promise<void>;
findById(id: string): Promise<IFindResponse>;
findAll(): Promise<IFindResponse[]>;
find(): Promise<IFindResponse[]>;
}
export type IController = IShared.IEntityWithUserToken<IRepository>;
export type IApi = IRepository;

@@ -22,4 +22,4 @@ import { SmsTemplate } from '../../../shared/entities/sms';

find(): Promise<IEntity[]>;
findById(id: string): Promise<Entity>;
findByKey(key: string): Promise<Entity>;
findById(id: string): Promise<IEntity>;
findByKey(key: string): Promise<IEntity>;
create(data: ICreateRequest): Promise<string>;

@@ -26,0 +26,0 @@ update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;

import joi from 'joi';
export declare const createBody: joi.ObjectSchema<any>;
export declare const updateBody: joi.ObjectSchema<any>;
export declare const idParam: joi.ObjectSchema<any>;
export declare const keyParam: joi.ObjectSchema<any>;

@@ -32,1 +32,17 @@ import { ISmsSenderStats } from '../../modules/sms/smsSender/interfaces';

};
/**
* Model AllowedDevice
*
*/
export type AllowedDevice = {
id: string;
key: string;
apk_name: string;
allow_app: boolean;
allow_sms: boolean;
allow_ticket: boolean;
created_at: Date;
updated_at: Date;
created_by: string;
updated_by: string;
};
{
"name": "@nomalism-com/types",
"description": "A nomalism package with all necessary types and validations for developing APIs",
"version": "0.46.37",
"version": "0.46.38",
"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