@nomalism-com/types 0.18.39 → 0.18.40
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.
- package/dist/shared/interface.d.ts +11 -10
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import joi from
|
|
2
|
-
import * as IErrorHandler from
|
|
3
|
-
import * as IGoogleSheets from
|
|
4
|
-
import { messages } from
|
|
5
|
-
import { IDocumentTypeUserType } from
|
|
6
|
-
import { IScheduleType } from
|
|
1
|
+
import joi from "joi";
|
|
2
|
+
import * as IErrorHandler from "../modules/integration/errorHandler/interfaces";
|
|
3
|
+
import * as IGoogleSheets from "../modules/integration/googleSheets/interfaces";
|
|
4
|
+
import { messages } from "./messages";
|
|
5
|
+
import { IDocumentTypeUserType } from "../modules/supply/documentType/interfaces";
|
|
6
|
+
import { IScheduleType } from "../modules/supply/schedule/interface";
|
|
7
7
|
export { messages };
|
|
8
|
-
type CreatedAt =
|
|
9
|
-
type UpdatedAt =
|
|
8
|
+
type CreatedAt = "created_at";
|
|
9
|
+
type UpdatedAt = "updated_at";
|
|
10
10
|
export interface WithCreatedAt {
|
|
11
11
|
created_at: Date;
|
|
12
12
|
}
|
|
@@ -19,8 +19,8 @@ export interface WithOriginId {
|
|
|
19
19
|
export type WithTimestamps = WithCreatedAt & WithUpdatedAt;
|
|
20
20
|
export type WithTimestampsOriginID = (WithCreatedAt & WithUpdatedAt) | WithOriginId;
|
|
21
21
|
export type WithoutTimestamps<T> = Omit<T, CreatedAt | UpdatedAt>;
|
|
22
|
-
type CreatedBy =
|
|
23
|
-
type UpdatedBy =
|
|
22
|
+
type CreatedBy = "created_by";
|
|
23
|
+
type UpdatedBy = "updated_by";
|
|
24
24
|
export interface WithCreatedBy {
|
|
25
25
|
created_by?: string | null;
|
|
26
26
|
}
|
|
@@ -207,6 +207,7 @@ export type IBrokerTopicPayload = {
|
|
|
207
207
|
};
|
|
208
208
|
[IBrokerTopic.perform_task]: {
|
|
209
209
|
task_name: IScheduleType;
|
|
210
|
+
user_token: IUserToken;
|
|
210
211
|
};
|
|
211
212
|
};
|
|
212
213
|
export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|