@nomalism-com/types 0.21.14 → 0.21.15
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.
|
@@ -46,7 +46,6 @@ export interface IHistory {
|
|
|
46
46
|
}
|
|
47
47
|
export interface IEntityExtended extends Omit<DocumentLine, "data"> {
|
|
48
48
|
data: IHistory[];
|
|
49
|
-
virtual: IDocumentLineVirtuals | null;
|
|
50
49
|
document_headers: IDocumentLineDocuments[];
|
|
51
50
|
document_line_folder: DocumentLineFolder | null;
|
|
52
51
|
pending_conflict: DocumentLinePendingConflict | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import * as IShared from
|
|
2
|
-
import { DocumentLineAssoc, DocumentLine } from
|
|
3
|
-
import * as IDocumentLine from
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import { DocumentLineAssoc, DocumentLine } from "../../../shared/entities";
|
|
3
|
+
import * as IDocumentLine from "../documentLine/interfaces";
|
|
4
|
+
import { IDocumentLineVirtuals } from "../documentLine/interfaces";
|
|
4
5
|
export type Entity = DocumentLineAssoc;
|
|
5
6
|
export declare const Route = "documentLineAssoc";
|
|
6
7
|
export declare const UpperName = "DocumentLineAssoc";
|
|
@@ -25,8 +26,9 @@ export interface IUpdateGroupRequest {
|
|
|
25
26
|
export interface IRepository {
|
|
26
27
|
findById(selector: IShared.IFindByIdRequest): Promise<Entity | null>;
|
|
27
28
|
findByOwnerId(data: IShared.IFindByOwnerIdRequest): Promise<IEntityExtended[]>;
|
|
29
|
+
findVirtualsByOwnerId(data: IShared.IFindByOwnerIdRequest): Promise<IDocumentLineVirtuals[]>;
|
|
28
30
|
create(data: ICreateRequest[]): Promise<IEntityWithDocumentLine[]>;
|
|
29
31
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IEntityWithDocumentLine>;
|
|
30
32
|
}
|
|
31
|
-
export type IApi = Omit<IRepository,
|
|
33
|
+
export type IApi = Omit<IRepository, "findById">;
|
|
32
34
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.21.
|
|
12
|
+
"version": "0.21.15",
|
|
13
13
|
"main": "./dist/index.min.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@rollup/plugin-terser": "^0.4.4",
|
|
41
41
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
42
|
-
"@types/node": "^20.14.
|
|
42
|
+
"@types/node": "^20.14.9",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
44
44
|
"@typescript-eslint/parser": "^7.14.1",
|
|
45
45
|
"eslint": "^8.57.0",
|