@nomalism-com/types 0.39.41 → 0.39.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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/modules/stock/sideMenu/interface.d.ts +16 -15
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5572,12 +5572,12 @@ __export(route_schema_exports103, {
|
|
|
5572
5572
|
});
|
|
5573
5573
|
import joi104 from "joi";
|
|
5574
5574
|
var findByDocumentLineStateQueryKeys = {
|
|
5575
|
-
|
|
5575
|
+
user_type: joi104.string().valid(...documentTypeUserTypes).required(),
|
|
5576
5576
|
document_line_state: joi104.string().required()
|
|
5577
5577
|
};
|
|
5578
5578
|
var findByDocumentLineStateQuery = joi104.object().keys(findByDocumentLineStateQueryKeys).messages(messages);
|
|
5579
5579
|
var findByStateQueryKeys = {
|
|
5580
|
-
|
|
5580
|
+
user_type: joi104.string().valid(...documentTypeUserTypes).required(),
|
|
5581
5581
|
search_value: joi104.string().allow(null).empty("").optional()
|
|
5582
5582
|
};
|
|
5583
5583
|
var findByStateQuery = joi104.object().keys(findByStateQueryKeys).messages(messages);
|
package/dist/index.js
CHANGED
|
@@ -5572,12 +5572,12 @@ __export(route_schema_exports103, {
|
|
|
5572
5572
|
});
|
|
5573
5573
|
import joi104 from "joi";
|
|
5574
5574
|
var findByDocumentLineStateQueryKeys = {
|
|
5575
|
-
|
|
5575
|
+
user_type: joi104.string().valid(...documentTypeUserTypes).required(),
|
|
5576
5576
|
document_line_state: joi104.string().required()
|
|
5577
5577
|
};
|
|
5578
5578
|
var findByDocumentLineStateQuery = joi104.object().keys(findByDocumentLineStateQueryKeys).messages(messages);
|
|
5579
5579
|
var findByStateQueryKeys = {
|
|
5580
|
-
|
|
5580
|
+
user_type: joi104.string().valid(...documentTypeUserTypes).required(),
|
|
5581
5581
|
search_value: joi104.string().allow(null).empty("").optional()
|
|
5582
5582
|
};
|
|
5583
5583
|
var findByStateQuery = joi104.object().keys(findByStateQueryKeys).messages(messages);
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
+
import type { IDocumentTypeUserType } from '../../supply/documentType/interfaces';
|
|
3
|
+
export interface IFindSideMenuCountersResponse {
|
|
4
|
+
counts: Record<string, number>;
|
|
5
|
+
timestamp: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IFindByStateRequest {
|
|
8
|
+
user_type: IDocumentTypeUserType;
|
|
9
|
+
search_value?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface IFindByStateResponse {
|
|
12
|
+
name: string;
|
|
13
|
+
count: number;
|
|
14
|
+
unread: boolean;
|
|
15
|
+
}
|
|
2
16
|
export interface IFindByDocumentLineStateRequest {
|
|
3
|
-
|
|
17
|
+
user_type: IDocumentTypeUserType;
|
|
4
18
|
document_line_state: string;
|
|
5
19
|
}
|
|
6
20
|
export interface IFindByDocumentLineStateResponse {
|
|
@@ -14,24 +28,11 @@ export interface IFindByDocumentLineStateResponse {
|
|
|
14
28
|
adjudicated: boolean;
|
|
15
29
|
unread: boolean;
|
|
16
30
|
}
|
|
17
|
-
export interface IFindByStateRequest {
|
|
18
|
-
document_type_ids: number;
|
|
19
|
-
search_value?: string | null;
|
|
20
|
-
}
|
|
21
|
-
export interface IFindByStateResponse {
|
|
22
|
-
name: string;
|
|
23
|
-
count: number;
|
|
24
|
-
unread: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface IFindSideMenuCountersResponse {
|
|
27
|
-
counts: Record<string, number>;
|
|
28
|
-
timestamp: string;
|
|
29
|
-
}
|
|
30
31
|
interface IRepository {
|
|
32
|
+
findSideMenuCounters(): Promise<IFindSideMenuCountersResponse>;
|
|
31
33
|
findSideMenuStoreOperators(): Promise<string[]>;
|
|
32
34
|
findByState(data: IFindByStateRequest): Promise<IFindByStateResponse[]>;
|
|
33
35
|
findByDocumentLineState(params: IFindByDocumentLineStateRequest): Promise<IFindByDocumentLineStateResponse[]>;
|
|
34
|
-
findSideMenuCounters(): Promise<IFindSideMenuCountersResponse>;
|
|
35
36
|
}
|
|
36
37
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
37
38
|
export {};
|
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.39.
|
|
4
|
+
"version": "0.39.43",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|