@nomalism-com/types 0.37.15 → 0.37.17
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
|
@@ -3160,7 +3160,8 @@ var createBodyKeys34 = {
|
|
|
3160
3160
|
main_persona_email: joi48.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3161
3161
|
user_account: joi48.string().allow(null, "").optional(),
|
|
3162
3162
|
password: joi48.string().required(),
|
|
3163
|
-
superuser: joi48.boolean().required()
|
|
3163
|
+
superuser: joi48.boolean().required(),
|
|
3164
|
+
default_theme: joi48.boolean().required()
|
|
3164
3165
|
};
|
|
3165
3166
|
var createBody35 = joi48.object().keys(createBodyKeys34).messages(messages);
|
|
3166
3167
|
var updateStoreOperatorQueryKeys = {
|
|
@@ -3169,7 +3170,8 @@ var updateStoreOperatorQueryKeys = {
|
|
|
3169
3170
|
user_account: joi48.string().allow(null, "").optional(),
|
|
3170
3171
|
password: joi48.string().allow(null, "").optional(),
|
|
3171
3172
|
inactive: joi48.boolean().optional(),
|
|
3172
|
-
superuser: joi48.boolean().optional()
|
|
3173
|
+
superuser: joi48.boolean().optional(),
|
|
3174
|
+
default_theme: joi48.boolean().optional()
|
|
3173
3175
|
};
|
|
3174
3176
|
var updateStoreOperatorQuery = joi48.object().keys(updateStoreOperatorQueryKeys).messages(messages);
|
|
3175
3177
|
var findWithPaginationQueryKeys19 = {
|
package/dist/index.js
CHANGED
|
@@ -3160,7 +3160,8 @@ var createBodyKeys34 = {
|
|
|
3160
3160
|
main_persona_email: joi48.string().email({ tlds: { allow: false } }).allow(null, "").optional(),
|
|
3161
3161
|
user_account: joi48.string().allow(null, "").optional(),
|
|
3162
3162
|
password: joi48.string().required(),
|
|
3163
|
-
superuser: joi48.boolean().required()
|
|
3163
|
+
superuser: joi48.boolean().required(),
|
|
3164
|
+
default_theme: joi48.boolean().required()
|
|
3164
3165
|
};
|
|
3165
3166
|
var createBody35 = joi48.object().keys(createBodyKeys34).messages(messages);
|
|
3166
3167
|
var updateStoreOperatorQueryKeys = {
|
|
@@ -3169,7 +3170,8 @@ var updateStoreOperatorQueryKeys = {
|
|
|
3169
3170
|
user_account: joi48.string().allow(null, "").optional(),
|
|
3170
3171
|
password: joi48.string().allow(null, "").optional(),
|
|
3171
3172
|
inactive: joi48.boolean().optional(),
|
|
3172
|
-
superuser: joi48.boolean().optional()
|
|
3173
|
+
superuser: joi48.boolean().optional(),
|
|
3174
|
+
default_theme: joi48.boolean().optional()
|
|
3173
3175
|
};
|
|
3174
3176
|
var updateStoreOperatorQuery = joi48.object().keys(updateStoreOperatorQueryKeys).messages(messages);
|
|
3175
3177
|
var findWithPaginationQueryKeys19 = {
|
|
@@ -15,6 +15,7 @@ export interface ICreateRequest {
|
|
|
15
15
|
user_account: string | null;
|
|
16
16
|
password: string;
|
|
17
17
|
superuser: boolean;
|
|
18
|
+
default_theme: boolean;
|
|
18
19
|
}
|
|
19
20
|
export interface IUpdateRequest {
|
|
20
21
|
main_persona_name?: string | null;
|
|
@@ -23,6 +24,7 @@ export interface IUpdateRequest {
|
|
|
23
24
|
password?: string | null;
|
|
24
25
|
inactive?: boolean;
|
|
25
26
|
superuser?: boolean;
|
|
27
|
+
default_theme?: boolean;
|
|
26
28
|
}
|
|
27
29
|
export interface IRepository {
|
|
28
30
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
@@ -39,7 +39,7 @@ export interface IFindByIdResponse extends EntityWithoutPassword {
|
|
|
39
39
|
default_vehicle: Vehicles | null;
|
|
40
40
|
main_persona: IMainPersona;
|
|
41
41
|
}) | null;
|
|
42
|
-
store_operator: (StoreOperator & {
|
|
42
|
+
store_operator: (Omit<StoreOperator, 'pin'> & {
|
|
43
43
|
user_position: UserPositions | null;
|
|
44
44
|
support_language: Language | null;
|
|
45
45
|
main_persona: IMainPersona;
|
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.17",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|