@nomalism-com/types 0.27.7 → 0.27.8

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.
@@ -0,0 +1,25 @@
1
+ import * as IShared from "../../../shared/interface";
2
+ import { RecurringTasks } from "../../../shared/entities";
3
+ export type Entity = RecurringTasks;
4
+ export declare const Route = "recurring_tasks";
5
+ export declare const UpperName = "RecurringTasks";
6
+ export declare const LowerName: string;
7
+ export type ICreateRequest = {
8
+ from: string;
9
+ to?: string;
10
+ task: string;
11
+ frequency: string;
12
+ };
13
+ export type IUpdateRequest = {
14
+ from?: string;
15
+ to?: string;
16
+ task?: string;
17
+ frequency?: string;
18
+ };
19
+ export interface IRepository {
20
+ create(data: ICreateRequest): Promise<Entity>;
21
+ findAll(): Promise<Entity[]>;
22
+ update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
23
+ delete(selector: IShared.IFindByIdRequest): Promise<void>;
24
+ }
25
+ export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -0,0 +1,3 @@
1
+ import joi from "joi";
2
+ export declare const createBody: joi.ObjectSchema<any>;
3
+ export declare const updateBody: joi.ObjectSchema<any>;
@@ -111,3 +111,4 @@ export import ProductSheet = Stock.ProductSheet;
111
111
  export import EmailVerification = Integration.EmailVerification;
112
112
  export import Task = Stock.Task;
113
113
  export import TaskMessage = Stock.TaskMessage;
114
+ export import RecurringTasks = Stock.RecurringTasks;
@@ -1055,3 +1055,14 @@ export interface TaskMessage {
1055
1055
  created_by: string;
1056
1056
  updated_by: string;
1057
1057
  }
1058
+ export interface RecurringTasks {
1059
+ id: string;
1060
+ from: string;
1061
+ to: string;
1062
+ task: string;
1063
+ frequency: string;
1064
+ created_at: Date;
1065
+ updated_at: Date;
1066
+ created_by: string;
1067
+ updated_by: string;
1068
+ }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.27.7",
12
+ "version": "0.27.8",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [