@nomalism-com/types 0.10.7 → 0.10.9
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.
|
@@ -223,15 +223,14 @@ export interface IRepository {
|
|
|
223
223
|
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<DocumentLine[]>;
|
|
224
224
|
findUnallocatedStock(): Promise<IFindUnallocatedStockResponse[]>;
|
|
225
225
|
findByState(data: IFindByDocumentLineStateRequest): Promise<IFindByDocumentLineStateResponse[]>;
|
|
226
|
-
create(data: ICreateRequest[]): Promise<
|
|
226
|
+
create(data: ICreateRequest[]): Promise<IDocumentLineAssoc.Entity[]>;
|
|
227
227
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
228
228
|
updateData(data: IUpdateDataRequest): Promise<IUpdateLineStatesTriggerResponse>;
|
|
229
229
|
updateMany(data: IUpdateManyRequest): Promise<void>;
|
|
230
230
|
updateIndexes(document_line_ids: string[]): Promise<void>;
|
|
231
231
|
deleteMany(document_line_ids: string[]): Promise<void>;
|
|
232
232
|
}
|
|
233
|
-
export type IApi = Omit<IRepository, '
|
|
234
|
-
create(data: ICreateRequest[]): Promise<IDocumentLineAssoc.Entity[]>;
|
|
233
|
+
export type IApi = Omit<IRepository, 'updateData'> & {
|
|
235
234
|
updateData(data: IUpdateDataRequestWithoutStamps): Promise<IDocumentLineAssoc.Entity[]>;
|
|
236
235
|
};
|
|
237
236
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -27,12 +27,9 @@ export interface IDeleteInventoryLossRequest {
|
|
|
27
27
|
export interface IRepository {
|
|
28
28
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
29
29
|
findByOwnerId(data: IShared.IFindByOwnerIdRequest): Promise<IEntityExtended[]>;
|
|
30
|
-
create(data: ICreateRequest[]): Promise<string>;
|
|
31
|
-
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<string>;
|
|
32
|
-
deleteInventoryLosses(data: IDeleteInventoryLossRequest): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export type IApi = Omit<IRepository, 'create' | 'update'> & {
|
|
35
30
|
create(data: ICreateRequest[]): Promise<Entity[]>;
|
|
36
31
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<Entity>;
|
|
37
|
-
|
|
32
|
+
deleteInventoryLosses(data: IDeleteInventoryLossRequest): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export type IApi = IRepository;
|
|
38
35
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|