@nomalism-com/types 0.25.4 → 0.25.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.
|
@@ -8,9 +8,9 @@ interface IFindDetailedResponse extends Entity {
|
|
|
8
8
|
user: Users;
|
|
9
9
|
support_language: Language | null;
|
|
10
10
|
user_position: UserPositions | null;
|
|
11
|
-
main_persona:
|
|
11
|
+
main_persona: Persona & {
|
|
12
12
|
country: Country | null;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
}
|
|
15
15
|
export type IFindByIdResponse = Omit<IFindDetailedResponse, "">;
|
|
16
16
|
export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, "user" | "support_language" | "user_position" | "main_persona">;
|
|
@@ -4,8 +4,11 @@ export type Entity = Users;
|
|
|
4
4
|
export declare const Route = "users";
|
|
5
5
|
export declare const UpperName = "Users";
|
|
6
6
|
export declare const LowerName: string;
|
|
7
|
+
interface IStoreOperator extends Pick<StoreOperator, "id" | "location_id"> {
|
|
8
|
+
main_persona: Pick<Persona, "name">;
|
|
9
|
+
}
|
|
7
10
|
export interface IFindByEmailResponse extends Entity {
|
|
8
|
-
store_operator:
|
|
11
|
+
store_operator: IStoreOperator;
|
|
9
12
|
}
|
|
10
13
|
export interface IFindByIdResponse extends Entity {
|
|
11
14
|
provider: (Providers & {
|
|
@@ -39,9 +42,9 @@ export interface IFindByIdResponse extends Entity {
|
|
|
39
42
|
store_operator: (StoreOperator & {
|
|
40
43
|
user_position: UserPositions | null;
|
|
41
44
|
support_language: Language | null;
|
|
42
|
-
main_persona:
|
|
45
|
+
main_persona: Persona & {
|
|
43
46
|
country: Country | null;
|
|
44
|
-
}
|
|
47
|
+
};
|
|
45
48
|
}) | null;
|
|
46
49
|
commissioner: (Commissioner & {
|
|
47
50
|
country: Country | null;
|
|
@@ -112,3 +115,4 @@ export interface IRepository {
|
|
|
112
115
|
}
|
|
113
116
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
114
117
|
export type IApi = Omit<IRepository, "resetPassword" | "removeAccess">;
|
|
118
|
+
export {};
|
|
@@ -267,7 +267,7 @@ export type StoreOperator = {
|
|
|
267
267
|
number: number;
|
|
268
268
|
internal_email: string | null;
|
|
269
269
|
support_language_id: string | null;
|
|
270
|
-
main_persona_id: string
|
|
270
|
+
main_persona_id: string;
|
|
271
271
|
pin: string;
|
|
272
272
|
location_id: string;
|
|
273
273
|
inactive: boolean;
|