@nomalism-com/types 0.43.94 → 0.44.0
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
|
@@ -3308,12 +3308,10 @@ __export(route_schema_exports49, {
|
|
|
3308
3308
|
});
|
|
3309
3309
|
import joi50 from "joi";
|
|
3310
3310
|
var createBodyKeys36 = {
|
|
3311
|
-
account: joi50.string().allow(null).required(),
|
|
3312
3311
|
password: joi50.string().required()
|
|
3313
3312
|
};
|
|
3314
3313
|
var createBody37 = joi50.object().keys(createBodyKeys36).messages(messages);
|
|
3315
3314
|
var updateBodyKeys32 = {
|
|
3316
|
-
account: joi50.string().optional(),
|
|
3317
3315
|
old_password: joi50.string().optional(),
|
|
3318
3316
|
password: joi50.string().optional()
|
|
3319
3317
|
};
|
package/dist/index.js
CHANGED
|
@@ -3308,12 +3308,10 @@ __export(route_schema_exports49, {
|
|
|
3308
3308
|
});
|
|
3309
3309
|
import joi50 from "joi";
|
|
3310
3310
|
var createBodyKeys36 = {
|
|
3311
|
-
account: joi50.string().allow(null).required(),
|
|
3312
3311
|
password: joi50.string().required()
|
|
3313
3312
|
};
|
|
3314
3313
|
var createBody37 = joi50.object().keys(createBodyKeys36).messages(messages);
|
|
3315
3314
|
var updateBodyKeys32 = {
|
|
3316
|
-
account: joi50.string().optional(),
|
|
3317
3315
|
old_password: joi50.string().optional(),
|
|
3318
3316
|
password: joi50.string().optional()
|
|
3319
3317
|
};
|
|
@@ -6,7 +6,7 @@ export declare const UpperName = "StoreOperator";
|
|
|
6
6
|
export declare const LowerName: string;
|
|
7
7
|
export type IFindPaginatedRequest = IShared.IPaginationRequest & Pick<Entity, 'inactive'>;
|
|
8
8
|
export interface IFindResponse extends Pick<Entity, 'id' | 'number' | 'pin' | 'inactive' | 'superuser' | 'default_theme'> {
|
|
9
|
-
user: Pick<Users, 'id'
|
|
9
|
+
user: Pick<Users, 'id'>;
|
|
10
10
|
main_persona: Pick<Persona, 'id' | 'name' | 'email'>;
|
|
11
11
|
}
|
|
12
12
|
export interface ICreateRequest {
|
|
@@ -13,7 +13,7 @@ interface IStoreOperator extends Pick<StoreOperator, 'id' | 'location_id' | 'sup
|
|
|
13
13
|
main_persona: Pick<Persona, 'name' | 'email'>;
|
|
14
14
|
theme: Pick<Theme, 'colors'> | null;
|
|
15
15
|
}
|
|
16
|
-
export interface IFindByAccountResponse extends Pick<Entity, 'id'
|
|
16
|
+
export interface IFindByAccountResponse extends Pick<Entity, 'id'> {
|
|
17
17
|
store_operator: IStoreOperator;
|
|
18
18
|
}
|
|
19
19
|
export interface IFindByIdResponse extends EntityWithoutPassword {
|
|
@@ -68,11 +68,9 @@ export interface IFindProvidersWithClientIdRequest {
|
|
|
68
68
|
provider_ids: string[];
|
|
69
69
|
}
|
|
70
70
|
export interface ICreateRequest {
|
|
71
|
-
account: string | null;
|
|
72
71
|
password: string;
|
|
73
72
|
}
|
|
74
73
|
export interface IUpdateRequest {
|
|
75
|
-
account?: string | null;
|
|
76
74
|
old_password?: string;
|
|
77
75
|
password?: string;
|
|
78
76
|
}
|
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.
|
|
4
|
+
"version": "0.44.0",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|