@nomalism-com/types 0.40.19 → 0.40.21
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
CHANGED
|
@@ -5137,7 +5137,7 @@ import joi96 from "joi";
|
|
|
5137
5137
|
var setBodyKeys = {
|
|
5138
5138
|
provider_id: joi96.string().uuid().required(),
|
|
5139
5139
|
product_id: joi96.string().uuid().required(),
|
|
5140
|
-
quantity: joi96.number().
|
|
5140
|
+
quantity: joi96.number().min(0).required()
|
|
5141
5141
|
};
|
|
5142
5142
|
var setBody = joi96.object().keys(setBodyKeys).messages(messages);
|
|
5143
5143
|
|
package/dist/index.js
CHANGED
|
@@ -5137,7 +5137,7 @@ import joi96 from "joi";
|
|
|
5137
5137
|
var setBodyKeys = {
|
|
5138
5138
|
provider_id: joi96.string().uuid().required(),
|
|
5139
5139
|
product_id: joi96.string().uuid().required(),
|
|
5140
|
-
quantity: joi96.number().
|
|
5140
|
+
quantity: joi96.number().min(0).required()
|
|
5141
5141
|
};
|
|
5142
5142
|
var setBody = joi96.object().keys(setBodyKeys).messages(messages);
|
|
5143
5143
|
|
|
@@ -29,6 +29,9 @@ export interface ICheckLinesInPrisonRequest {
|
|
|
29
29
|
option: ICheckLineInPrisonOptions;
|
|
30
30
|
lines: ICheckLinesInPrisonLinesRequest[];
|
|
31
31
|
}
|
|
32
|
+
export interface ICheckLinesInPrisonResponse {
|
|
33
|
+
df_dh_id?: string;
|
|
34
|
+
}
|
|
32
35
|
export interface ICreateLinesInPrisonProduct {
|
|
33
36
|
id: string;
|
|
34
37
|
quantity: number;
|
|
@@ -43,7 +46,7 @@ export interface IRepository {
|
|
|
43
46
|
findLinesInPrisonProviders(): Promise<IShared.IFindMinifiedResponse[]>;
|
|
44
47
|
putLineInPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
45
48
|
removeLineFromPrison(params: IShared.IFindByIdRequest): Promise<void>;
|
|
46
|
-
checkLinesInPrison(params: ICheckLinesInPrisonRequest): Promise<
|
|
49
|
+
checkLinesInPrison(params: ICheckLinesInPrisonRequest): Promise<ICheckLinesInPrisonResponse>;
|
|
47
50
|
createLinesInPrison(params: ICreateLinesInPrisonRequest): Promise<string[]>;
|
|
48
51
|
}
|
|
49
52
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -3,7 +3,7 @@ export declare const createBody: joi.ArraySchema<any[]>;
|
|
|
3
3
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const updateDataBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updateManyBody: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const updateIndexesBody: joi.ArraySchema<
|
|
7
|
-
export declare const deleteBody: joi.ArraySchema<
|
|
6
|
+
export declare const updateIndexesBody: joi.ArraySchema<string[]>;
|
|
7
|
+
export declare const deleteBody: joi.ArraySchema<string[]>;
|
|
8
8
|
export declare const printLabelParams: joi.ObjectSchema<any>;
|
|
9
9
|
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
@@ -118,7 +118,12 @@ export declare const findByOwnerIdQueryKeys: IRouteRequest<IFindByOwnerIdRequest
|
|
|
118
118
|
export declare const findByOwnerIdQuery: joi.ObjectSchema<any>;
|
|
119
119
|
export declare const idParam: joi.ObjectSchema<any>;
|
|
120
120
|
export declare const idNumberParam: joi.ObjectSchema<any>;
|
|
121
|
-
export declare const findMinifiedReponse: joi.ArraySchema<
|
|
121
|
+
export declare const findMinifiedReponse: joi.ArraySchema<{
|
|
122
|
+
name: unknown;
|
|
123
|
+
id: unknown;
|
|
124
|
+
group: unknown;
|
|
125
|
+
multimedia_id: unknown;
|
|
126
|
+
}[]>;
|
|
122
127
|
export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
|
|
123
128
|
export declare const IUserSendEmailDocumentTemplateEnum: {
|
|
124
129
|
generic: 'generic';
|
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.40.
|
|
4
|
+
"version": "0.40.21",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|