@nomalism-com/types 0.18.34 → 0.18.36
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import { Providers, Country, Language, ProviderType, ReasonForExemption, Persona, Clients, SegmentsArea, ClientType, StoreOperator, UserPositions, Commissioner, Users, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles } from
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import { Providers, Country, Language, ProviderType, ReasonForExemption, Persona, Clients, SegmentsArea, ClientType, StoreOperator, UserPositions, Commissioner, Users, PaymentMethods, MaturityDates, DeliveryMethods, Vehicles } from "../../../shared/entities";
|
|
3
3
|
export type Entity = Users;
|
|
4
4
|
export declare const Route = "users";
|
|
5
5
|
export declare const UpperName = "Users";
|
|
@@ -55,10 +55,10 @@ export interface IFindByIdResponse extends Entity {
|
|
|
55
55
|
}) | null;
|
|
56
56
|
}
|
|
57
57
|
export type IFindRequest = Record<string, unknown>;
|
|
58
|
-
export type IFindResponse = Omit<Entity,
|
|
58
|
+
export type IFindResponse = Omit<Entity, "">;
|
|
59
59
|
export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest {
|
|
60
60
|
}
|
|
61
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity,
|
|
61
|
+
export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<Entity, "">>;
|
|
62
62
|
export interface IFindProvidersWithClientIdResponse {
|
|
63
63
|
name: string;
|
|
64
64
|
provider_id: string;
|
|
@@ -76,7 +76,7 @@ export interface ICreateRequest {
|
|
|
76
76
|
export interface IUpdateRequest {
|
|
77
77
|
name?: string | null;
|
|
78
78
|
email?: string | null;
|
|
79
|
-
account
|
|
79
|
+
account?: string | null;
|
|
80
80
|
old_password?: string;
|
|
81
81
|
password?: string;
|
|
82
82
|
}
|
|
@@ -105,7 +105,6 @@ export interface IRepository {
|
|
|
105
105
|
findMinified(params?: IShared.IFindMinifiedRequest): Promise<IShared.IFindMinifiedResponse[]>;
|
|
106
106
|
find(selector: IFindRequest): Promise<IFindResponse[]>;
|
|
107
107
|
findPaginated(selector: IFindPaginatedRequest): Promise<IFindWithPaginationResponse>;
|
|
108
|
-
findByEmail(email: string): Promise<IFindByEmailResponse | null>;
|
|
109
108
|
resetPassword(id: string, data: IUpdatePassword): Promise<Users>;
|
|
110
109
|
removeAccess(user_id: string): Promise<boolean>;
|
|
111
110
|
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
@@ -115,4 +114,4 @@ export interface IRepository {
|
|
|
115
114
|
findFromClientOrProviderId(data: IFindFromClientOrProviderRequest): Promise<IFindFromClientOrProviderResponse[]>;
|
|
116
115
|
}
|
|
117
116
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
118
|
-
export type IApi = Omit<IRepository,
|
|
117
|
+
export type IApi = Omit<IRepository, "resetPassword" | "removeAccess">;
|