@nomalism-com/types 0.46.3 → 0.46.5
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
|
@@ -3014,6 +3014,7 @@ var route_schema_exports44 = {};
|
|
|
3014
3014
|
__export(route_schema_exports44, {
|
|
3015
3015
|
createBody: () => createBody32,
|
|
3016
3016
|
findWithPaginationQuery: () => findWithPaginationQuery18,
|
|
3017
|
+
updateOwnPinBody: () => updateOwnPinBody,
|
|
3017
3018
|
updatePasswordBody: () => updatePasswordBody,
|
|
3018
3019
|
updateStoreOperatorQuery: () => updateStoreOperatorQuery
|
|
3019
3020
|
});
|
|
@@ -3030,7 +3031,6 @@ var updateStoreOperatorQueryKeys = {
|
|
|
3030
3031
|
main_persona_name: joi45.string().allow(null, "").optional(),
|
|
3031
3032
|
main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3032
3033
|
password: joi45.string().allow(null, "").optional(),
|
|
3033
|
-
pin: joi45.string().optional(),
|
|
3034
3034
|
inactive: joi45.boolean().optional(),
|
|
3035
3035
|
superuser: joi45.boolean().optional(),
|
|
3036
3036
|
default_theme: joi45.boolean().optional()
|
|
@@ -3047,6 +3047,10 @@ var updatePasswordBodyKeys = {
|
|
|
3047
3047
|
oldPassword: joi45.string().required()
|
|
3048
3048
|
};
|
|
3049
3049
|
var updatePasswordBody = joi45.object().keys(updatePasswordBodyKeys).messages(messages);
|
|
3050
|
+
var updateOwnPinBodyKeys = {
|
|
3051
|
+
pin: joi45.string().required()
|
|
3052
|
+
};
|
|
3053
|
+
var updateOwnPinBody = joi45.object().keys(updateOwnPinBodyKeys).messages(messages);
|
|
3050
3054
|
|
|
3051
3055
|
// src/modules/user/systemModule/interface.ts
|
|
3052
3056
|
var interface_exports27 = {};
|
|
@@ -4519,7 +4523,8 @@ __export(route_schema_exports81, {
|
|
|
4519
4523
|
import joi82 from "joi";
|
|
4520
4524
|
var finalizarEntradaDeMaterialBodyKeys = {
|
|
4521
4525
|
provider_id: joi82.string().uuid().required(),
|
|
4522
|
-
saved_em_picking_ids: joi82.array().items(joi82.string().uuid().required()).optional()
|
|
4526
|
+
saved_em_picking_ids: joi82.array().items(joi82.string().uuid().required()).optional(),
|
|
4527
|
+
store_operator_id: joi82.string().uuid().required()
|
|
4523
4528
|
};
|
|
4524
4529
|
var finalizarEntradaDeMaterialBody = joi82.object().keys(finalizarEntradaDeMaterialBodyKeys).messages(messages);
|
|
4525
4530
|
var undoEntradaDeMaterialBodyKeys = {
|
package/dist/index.js
CHANGED
|
@@ -3014,6 +3014,7 @@ var route_schema_exports44 = {};
|
|
|
3014
3014
|
__export(route_schema_exports44, {
|
|
3015
3015
|
createBody: () => createBody32,
|
|
3016
3016
|
findWithPaginationQuery: () => findWithPaginationQuery18,
|
|
3017
|
+
updateOwnPinBody: () => updateOwnPinBody,
|
|
3017
3018
|
updatePasswordBody: () => updatePasswordBody,
|
|
3018
3019
|
updateStoreOperatorQuery: () => updateStoreOperatorQuery
|
|
3019
3020
|
});
|
|
@@ -3030,7 +3031,6 @@ var updateStoreOperatorQueryKeys = {
|
|
|
3030
3031
|
main_persona_name: joi45.string().allow(null, "").optional(),
|
|
3031
3032
|
main_persona_email: joi45.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3032
3033
|
password: joi45.string().allow(null, "").optional(),
|
|
3033
|
-
pin: joi45.string().optional(),
|
|
3034
3034
|
inactive: joi45.boolean().optional(),
|
|
3035
3035
|
superuser: joi45.boolean().optional(),
|
|
3036
3036
|
default_theme: joi45.boolean().optional()
|
|
@@ -3047,6 +3047,10 @@ var updatePasswordBodyKeys = {
|
|
|
3047
3047
|
oldPassword: joi45.string().required()
|
|
3048
3048
|
};
|
|
3049
3049
|
var updatePasswordBody = joi45.object().keys(updatePasswordBodyKeys).messages(messages);
|
|
3050
|
+
var updateOwnPinBodyKeys = {
|
|
3051
|
+
pin: joi45.string().required()
|
|
3052
|
+
};
|
|
3053
|
+
var updateOwnPinBody = joi45.object().keys(updateOwnPinBodyKeys).messages(messages);
|
|
3050
3054
|
|
|
3051
3055
|
// src/modules/user/systemModule/interface.ts
|
|
3052
3056
|
var interface_exports27 = {};
|
|
@@ -4519,7 +4523,8 @@ __export(route_schema_exports81, {
|
|
|
4519
4523
|
import joi82 from "joi";
|
|
4520
4524
|
var finalizarEntradaDeMaterialBodyKeys = {
|
|
4521
4525
|
provider_id: joi82.string().uuid().required(),
|
|
4522
|
-
saved_em_picking_ids: joi82.array().items(joi82.string().uuid().required()).optional()
|
|
4526
|
+
saved_em_picking_ids: joi82.array().items(joi82.string().uuid().required()).optional(),
|
|
4527
|
+
store_operator_id: joi82.string().uuid().required()
|
|
4523
4528
|
};
|
|
4524
4529
|
var finalizarEntradaDeMaterialBody = joi82.object().keys(finalizarEntradaDeMaterialBodyKeys).messages(messages);
|
|
4525
4530
|
var undoEntradaDeMaterialBodyKeys = {
|
|
@@ -97,6 +97,7 @@ export interface IUndoEntradaDeMaterialRequest {
|
|
|
97
97
|
export interface IFinalizarEntradaDeMaterialRequest {
|
|
98
98
|
provider_id: string;
|
|
99
99
|
saved_em_picking_ids?: string[];
|
|
100
|
+
store_operator_id: string;
|
|
100
101
|
}
|
|
101
102
|
export interface IFinalizarEntradaDeMaterialResponse {
|
|
102
103
|
broker_messages: IShared.IBrokerMessage<IShared.IBrokerTopic>[];
|
|
@@ -19,7 +19,6 @@ export interface IUpdateRequest {
|
|
|
19
19
|
main_persona_name?: string | null;
|
|
20
20
|
main_persona_email?: string | null;
|
|
21
21
|
password?: string | null;
|
|
22
|
-
pin?: string;
|
|
23
22
|
inactive?: boolean;
|
|
24
23
|
superuser?: boolean;
|
|
25
24
|
default_theme?: boolean;
|
|
@@ -28,6 +27,9 @@ export interface IUpdatePasswordRequest {
|
|
|
28
27
|
password: string;
|
|
29
28
|
oldPassword: string;
|
|
30
29
|
}
|
|
30
|
+
export interface IUpdateOwnPinRequest {
|
|
31
|
+
pin: string;
|
|
32
|
+
}
|
|
31
33
|
export interface IRepository {
|
|
32
34
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
35
|
find(): Promise<IFindResponse[]>;
|
|
@@ -36,5 +38,6 @@ export interface IRepository {
|
|
|
36
38
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
37
39
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
38
40
|
updatePassword(selector: IShared.IFindByIdRequest, data: IUpdatePasswordRequest): Promise<void>;
|
|
41
|
+
updateOwnPin(data: IUpdateOwnPinRequest): Promise<void>;
|
|
39
42
|
}
|
|
40
43
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -3,3 +3,4 @@ export declare const createBody: joi.ObjectSchema<any>;
|
|
|
3
3
|
export declare const updateStoreOperatorQuery: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updatePasswordBody: joi.ObjectSchema<any>;
|
|
6
|
+
export declare const updateOwnPinBody: joi.ObjectSchema<any>;
|
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.46.
|
|
4
|
+
"version": "0.46.5",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|