@nomalism-com/types 0.9.487 → 0.9.489
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.
|
@@ -21,6 +21,7 @@ var messages_1 = require("../../../shared/messages");
|
|
|
21
21
|
var interface_1 = require("./interface");
|
|
22
22
|
var createBodyKeys = {
|
|
23
23
|
id: joi_1.default.string().uuid().optional(),
|
|
24
|
+
origin_id: joi_1.default.string().empty('').optional(),
|
|
24
25
|
id_provider: joi_1.default.number().integer().positive().allow(0).optional(),
|
|
25
26
|
provider_ref: joi_1.default.string().empty('').optional(),
|
|
26
27
|
product_name: joi_1.default.string().empty('').optional(),
|
|
@@ -49,7 +49,6 @@ export type IFindPaginatedRequest = IShared.IPaginationRequest & IFindRequest &
|
|
|
49
49
|
id_provider?: number;
|
|
50
50
|
code?: string;
|
|
51
51
|
};
|
|
52
|
-
export type IFindWithPaginationResponse = IShared.IPaginationResponse<IFindResponse>;
|
|
53
52
|
export interface IPrintLabelQueryRequest {
|
|
54
53
|
token: string;
|
|
55
54
|
}
|
|
@@ -64,7 +63,7 @@ export interface IBasicSearchResponse extends Pick<Entity, 'id' | 'origin_id' |
|
|
|
64
63
|
export interface IRepository {
|
|
65
64
|
create(data: ICreateRequest): Promise<Entity>;
|
|
66
65
|
find(data: IFindRequest): Promise<IFindResponse[]>;
|
|
67
|
-
findPaginated(selector: IFindPaginatedRequest): Promise<
|
|
66
|
+
findPaginated(selector: IFindPaginatedRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
68
67
|
findByBasicSearch(data: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
69
68
|
findCabideProviders(search_value: IShared.IFindMinifiedRequest): Promise<IFindCabideProvidersResponse[]>;
|
|
70
69
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|