@nomalism-com/types 0.9.509 → 0.9.511
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.
|
@@ -36,7 +36,11 @@ export interface IEntityExtended extends IFindDetailedResponse {
|
|
|
36
36
|
}) | null;
|
|
37
37
|
}
|
|
38
38
|
export type IFindByIdResponse = Omit<IEntityExtended, ''>;
|
|
39
|
-
export
|
|
39
|
+
export interface IFindRequest {
|
|
40
|
+
active?: boolean;
|
|
41
|
+
inactive?: boolean;
|
|
42
|
+
dnt_come_anymore?: boolean;
|
|
43
|
+
}
|
|
40
44
|
export type IFindResponse = Omit<IFindDetailedResponse, ''>;
|
|
41
45
|
export interface IFindByOwnerIdResponse {
|
|
42
46
|
id: string;
|
|
@@ -62,6 +66,7 @@ export type IProductType = (typeof ProductTypeEnum)[keyof typeof ProductTypeEnum
|
|
|
62
66
|
export declare const productTypes: string[];
|
|
63
67
|
export interface IBasicSearchRequest extends IShared.IPaginationRequest {
|
|
64
68
|
search_value: string | null;
|
|
69
|
+
active?: boolean;
|
|
65
70
|
inactive?: boolean;
|
|
66
71
|
dnt_come_anymore?: boolean;
|
|
67
72
|
}
|
|
@@ -86,12 +86,13 @@ exports.bulkUpdateBody = joi_1.default
|
|
|
86
86
|
.object()
|
|
87
87
|
.keys(bulkUpdateBodyKeys)
|
|
88
88
|
.messages(messages_1.messages);
|
|
89
|
-
var findQueryKeys = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
89
|
+
var findQueryKeys = {
|
|
90
|
+
active: joi_1.default.boolean().default(false).optional(),
|
|
91
|
+
inactive: joi_1.default.boolean().default(false).optional(),
|
|
92
|
+
dnt_come_anymore: joi_1.default.boolean().default(false).optional(),
|
|
94
93
|
};
|
|
94
|
+
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
95
|
+
var findWithPaginationQueryKeys = __assign(__assign({}, findQueryKeys), { per_page: joi_1.default.number().integer().positive().default(10).optional(), current_page: joi_1.default.number().integer().positive().default(1).optional() });
|
|
95
96
|
exports.findWithPaginationQuery = joi_1.default
|
|
96
97
|
.object()
|
|
97
98
|
.keys(findWithPaginationQueryKeys)
|
|
@@ -99,6 +100,7 @@ exports.findWithPaginationQuery = joi_1.default
|
|
|
99
100
|
var basicSearchQueryKeys = {
|
|
100
101
|
per_page: joi_1.default.number().integer().positive().default(10).optional(),
|
|
101
102
|
current_page: joi_1.default.number().integer().positive().default(1).optional(),
|
|
103
|
+
active: joi_1.default.boolean().default(false).optional(),
|
|
102
104
|
inactive: joi_1.default.boolean().default(false).optional(),
|
|
103
105
|
search_value: joi_1.default.string().allow('', null).optional(),
|
|
104
106
|
dnt_come_anymore: joi_1.default.boolean().default(false).optional(),
|