@nomalism-com/types 0.37.6 → 0.37.8
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
|
@@ -1969,15 +1969,13 @@ import joi20 from "joi";
|
|
|
1969
1969
|
var createBodyKeys12 = {
|
|
1970
1970
|
name: joi20.string().required(),
|
|
1971
1971
|
document_set_id: joi20.number().integer().allow(null).optional(),
|
|
1972
|
-
active_by_default: joi20.boolean().default(false).optional()
|
|
1973
|
-
validation_code: joi20.string().required()
|
|
1972
|
+
active_by_default: joi20.boolean().default(false).optional()
|
|
1974
1973
|
};
|
|
1975
1974
|
var createBody13 = joi20.object().keys(createBodyKeys12).messages(messages);
|
|
1976
1975
|
var updateBodyKeys11 = {
|
|
1977
1976
|
name: joi20.string(),
|
|
1978
1977
|
document_set_id: joi20.number().integer().allow(null).optional(),
|
|
1979
|
-
active_by_default: joi20.boolean().optional()
|
|
1980
|
-
validation_code: joi20.string().optional()
|
|
1978
|
+
active_by_default: joi20.boolean().optional()
|
|
1981
1979
|
};
|
|
1982
1980
|
var updateBody11 = joi20.object().keys(updateBodyKeys11).messages(messages);
|
|
1983
1981
|
|
package/dist/index.js
CHANGED
|
@@ -1969,15 +1969,13 @@ import joi20 from "joi";
|
|
|
1969
1969
|
var createBodyKeys12 = {
|
|
1970
1970
|
name: joi20.string().required(),
|
|
1971
1971
|
document_set_id: joi20.number().integer().allow(null).optional(),
|
|
1972
|
-
active_by_default: joi20.boolean().default(false).optional()
|
|
1973
|
-
validation_code: joi20.string().required()
|
|
1972
|
+
active_by_default: joi20.boolean().default(false).optional()
|
|
1974
1973
|
};
|
|
1975
1974
|
var createBody13 = joi20.object().keys(createBodyKeys12).messages(messages);
|
|
1976
1975
|
var updateBodyKeys11 = {
|
|
1977
1976
|
name: joi20.string(),
|
|
1978
1977
|
document_set_id: joi20.number().integer().allow(null).optional(),
|
|
1979
|
-
active_by_default: joi20.boolean().optional()
|
|
1980
|
-
validation_code: joi20.string().optional()
|
|
1978
|
+
active_by_default: joi20.boolean().optional()
|
|
1981
1979
|
};
|
|
1982
1980
|
var updateBody11 = joi20.object().keys(updateBodyKeys11).messages(messages);
|
|
1983
1981
|
|
|
@@ -8,13 +8,11 @@ export interface ICreateRequest {
|
|
|
8
8
|
document_set_id: number | null;
|
|
9
9
|
name: string;
|
|
10
10
|
active_by_default: boolean;
|
|
11
|
-
validation_code: string;
|
|
12
11
|
}
|
|
13
12
|
export interface IUpdateRequest {
|
|
14
13
|
document_set_id?: number | null;
|
|
15
14
|
name?: string;
|
|
16
15
|
active_by_default?: boolean;
|
|
17
|
-
validation_code?: string;
|
|
18
16
|
}
|
|
19
17
|
export interface IRepository {
|
|
20
18
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
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.37.
|
|
4
|
+
"version": "0.37.8",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|