@nomalism-com/types 0.46.4 → 0.46.6
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
|
});
|
|
@@ -3047,6 +3048,10 @@ var updatePasswordBodyKeys = {
|
|
|
3047
3048
|
oldPassword: joi45.string().required()
|
|
3048
3049
|
};
|
|
3049
3050
|
var updatePasswordBody = joi45.object().keys(updatePasswordBodyKeys).messages(messages);
|
|
3051
|
+
var updateOwnPinBodyKeys = {
|
|
3052
|
+
pin: joi45.string().required()
|
|
3053
|
+
};
|
|
3054
|
+
var updateOwnPinBody = joi45.object().keys(updateOwnPinBodyKeys).messages(messages);
|
|
3050
3055
|
|
|
3051
3056
|
// src/modules/user/systemModule/interface.ts
|
|
3052
3057
|
var interface_exports27 = {};
|
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
|
});
|
|
@@ -3047,6 +3048,10 @@ var updatePasswordBodyKeys = {
|
|
|
3047
3048
|
oldPassword: joi45.string().required()
|
|
3048
3049
|
};
|
|
3049
3050
|
var updatePasswordBody = joi45.object().keys(updatePasswordBodyKeys).messages(messages);
|
|
3051
|
+
var updateOwnPinBodyKeys = {
|
|
3052
|
+
pin: joi45.string().required()
|
|
3053
|
+
};
|
|
3054
|
+
var updateOwnPinBody = joi45.object().keys(updateOwnPinBodyKeys).messages(messages);
|
|
3050
3055
|
|
|
3051
3056
|
// src/modules/user/systemModule/interface.ts
|
|
3052
3057
|
var interface_exports27 = {};
|
|
@@ -28,6 +28,9 @@ export interface IUpdatePasswordRequest {
|
|
|
28
28
|
password: string;
|
|
29
29
|
oldPassword: string;
|
|
30
30
|
}
|
|
31
|
+
export interface IUpdateOwnPinRequest {
|
|
32
|
+
pin: string;
|
|
33
|
+
}
|
|
31
34
|
export interface IRepository {
|
|
32
35
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
33
36
|
find(): Promise<IFindResponse[]>;
|
|
@@ -36,5 +39,6 @@ export interface IRepository {
|
|
|
36
39
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
37
40
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
38
41
|
updatePassword(selector: IShared.IFindByIdRequest, data: IUpdatePasswordRequest): Promise<void>;
|
|
42
|
+
updateOwnPin(data: IUpdateOwnPinRequest): Promise<void>;
|
|
39
43
|
}
|
|
40
44
|
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.6",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|