@nomalism-com/types 0.46.42 → 0.46.43

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.
@@ -7,11 +7,15 @@ export interface IEntity extends Entity {
7
7
  export type ICreateRequest = Pick<Entity, 'key' | 'apk_name'>;
8
8
  export type apkType = 'sms' | 'ticket' | 'app';
9
9
  export type IUpdateRequest = Pick<Entity, 'name' | 'allow_app' | 'allow_sms' | 'allow_ticket'>;
10
+ export interface ICreateResponse {
11
+ name: string;
12
+ allowed: boolean;
13
+ }
10
14
  export interface IRepository {
11
15
  find(): Promise<IEntity[]>;
12
16
  findById(id: string): Promise<IEntity>;
13
17
  findByKey(key: string): Promise<IEntity>;
14
- create(data: ICreateRequest): Promise<string>;
18
+ create(data: ICreateRequest): Promise<ICreateResponse>;
15
19
  update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
16
20
  deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
17
21
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.46.42",
4
+ "version": "0.46.43",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",