@nomalism-com/types 0.36.27 → 0.36.29
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/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/dist/modules/supply/documentHeaderHistory/interfaces.d.ts +2 -1
- package/dist/modules/supply/documentLineMT/interface.d.ts +1 -0
- package/dist/shared/entities/stock.d.ts +1 -0
- package/package.json +1 -1
- package/src/modules/supply/documentHeaderHistory/interfaces.ts +3 -3
- package/src/modules/supply/documentLineMT/interface.ts +2 -0
- package/src/modules/supply/documentLineMT/route.schema.ts +2 -0
- package/src/shared/entities/stock.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -5804,7 +5804,8 @@ var updateKeys2 = {
|
|
|
5804
5804
|
mt_order_date: joi110.date().optional().allow(null),
|
|
5805
5805
|
mt_execution_by: joi110.string().uuid().optional().allow(null),
|
|
5806
5806
|
mt_execution_date: joi110.date().optional().allow(null),
|
|
5807
|
-
mt_execution_when: joi110.date().optional().allow(null)
|
|
5807
|
+
mt_execution_when: joi110.date().optional().allow(null),
|
|
5808
|
+
mt_order_with_notification: joi110.boolean().optional().default(false)
|
|
5808
5809
|
};
|
|
5809
5810
|
var updateBody60 = joi110.object().keys(updateKeys2).messages(messages);
|
|
5810
5811
|
|
package/dist/index.js
CHANGED
|
@@ -5804,7 +5804,8 @@ var updateKeys2 = {
|
|
|
5804
5804
|
mt_order_date: joi110.date().optional().allow(null),
|
|
5805
5805
|
mt_execution_by: joi110.string().uuid().optional().allow(null),
|
|
5806
5806
|
mt_execution_date: joi110.date().optional().allow(null),
|
|
5807
|
-
mt_execution_when: joi110.date().optional().allow(null)
|
|
5807
|
+
mt_execution_when: joi110.date().optional().allow(null),
|
|
5808
|
+
mt_order_with_notification: joi110.boolean().optional().default(false)
|
|
5808
5809
|
};
|
|
5809
5810
|
var updateBody60 = joi110.object().keys(updateKeys2).messages(messages);
|
|
5810
5811
|
|
|
@@ -4,7 +4,8 @@ export type Entity = DocumentHeaderHistory;
|
|
|
4
4
|
export declare const Route = "documentHeaderHistory";
|
|
5
5
|
export declare const UpperName = "DocumentHeaderHistory";
|
|
6
6
|
export declare const LowerName: string;
|
|
7
|
+
export type IFindByOwnerIdResponse = Omit<DocumentHeaderHistory, 'id' | 'document_header_id'>;
|
|
7
8
|
export interface IRepository {
|
|
8
|
-
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<
|
|
9
|
+
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
9
10
|
}
|
|
10
11
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -11,6 +11,7 @@ export interface IUpdateRequest {
|
|
|
11
11
|
mt_execution_by?: string | null;
|
|
12
12
|
mt_execution_date?: Date | null;
|
|
13
13
|
mt_execution_when?: Date | null;
|
|
14
|
+
mt_order_with_notification?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export interface IRepository {
|
|
16
17
|
update(data: IUpdateRequest): Promise<void>;
|
|
@@ -1213,6 +1213,7 @@ export type DocumentLineMT = {
|
|
|
1213
1213
|
mt_execution_by: string | null;
|
|
1214
1214
|
mt_execution_date: Date | null;
|
|
1215
1215
|
mt_execution_when: Date | null;
|
|
1216
|
+
mt_order_with_notification: boolean;
|
|
1216
1217
|
created_by: string;
|
|
1217
1218
|
updated_by: string;
|
|
1218
1219
|
created_at: Date;
|
package/package.json
CHANGED
|
@@ -6,10 +6,10 @@ export const Route = 'documentHeaderHistory';
|
|
|
6
6
|
export const UpperName = 'DocumentHeaderHistory';
|
|
7
7
|
export const LowerName = UpperName[0].toLowerCase() + UpperName.substring(1);
|
|
8
8
|
|
|
9
|
+
export type IFindByOwnerIdResponse = Omit<DocumentHeaderHistory, 'id' | 'document_header_id'>;
|
|
10
|
+
|
|
9
11
|
export interface IRepository {
|
|
10
|
-
findByOwnerId(
|
|
11
|
-
selector: IShared.IFindByOwnerIdRequest,
|
|
12
|
-
): Promise<Omit<DocumentHeaderHistory, 'id' | 'document_header_id'>[]>;
|
|
12
|
+
findByOwnerId(selector: IShared.IFindByOwnerIdRequest): Promise<IFindByOwnerIdResponse[]>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -11,6 +11,8 @@ const updateKeys: IShared.IRouteRequest<IUpdateRequest> = {
|
|
|
11
11
|
mt_execution_by: joi.string().uuid().optional().allow(null),
|
|
12
12
|
mt_execution_date: joi.date().optional().allow(null),
|
|
13
13
|
mt_execution_when: joi.date().optional().allow(null),
|
|
14
|
+
|
|
15
|
+
mt_order_with_notification: joi.boolean().optional().default(false),
|
|
14
16
|
};
|
|
15
17
|
|
|
16
18
|
export const updateBody = joi.object().keys(updateKeys).messages(messages);
|