@nomalism-com/types 0.40.2 → 0.40.3
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.
|
@@ -12,6 +12,6 @@ export interface IProviderPaymentRequest {
|
|
|
12
12
|
total: number;
|
|
13
13
|
}
|
|
14
14
|
export interface IRepository {
|
|
15
|
-
|
|
15
|
+
create(params: IProviderPaymentRequest[]): Promise<string[]>;
|
|
16
16
|
}
|
|
17
17
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -58,17 +58,31 @@ export interface IRmGetDataBySheetIdResponse {
|
|
|
58
58
|
export interface IRmUpdateDataBySheetIdRequest {
|
|
59
59
|
data: IData[];
|
|
60
60
|
}
|
|
61
|
+
export interface IFindRmOpenDocuments {
|
|
62
|
+
created_at: string;
|
|
63
|
+
created_by: string;
|
|
64
|
+
document_header_id: string;
|
|
65
|
+
document_number: string;
|
|
66
|
+
identifier: string;
|
|
67
|
+
adjudicated: boolean;
|
|
68
|
+
who_handles: string | null;
|
|
69
|
+
document_lines: {
|
|
70
|
+
document_line_id: string;
|
|
71
|
+
product_id: string;
|
|
72
|
+
product_reference: string;
|
|
73
|
+
designation: string;
|
|
74
|
+
}[];
|
|
75
|
+
}
|
|
61
76
|
export interface IRepository {
|
|
62
77
|
importFromSheet(params: IImportFromSheetRequest): Promise<IFindByGooglesheetIdResponse>;
|
|
63
78
|
isProcessing(params: IShared.IFindByIdRequest): Promise<IIsProcessingResponse>;
|
|
64
79
|
conflictAccept(params: IShared.IFindByIdRequest): Promise<void>;
|
|
65
80
|
conflictDelete(params: IShared.IFindByIdRequest): Promise<void>;
|
|
66
81
|
conflictFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IConflictFindByOwnerIdResponse[]>;
|
|
67
|
-
rmGetDataBySheetId(params: IShared.IFindByIdRequest): Promise<IRmGetDataBySheetIdResponse>;
|
|
68
|
-
rmUpdateDataBySheetId(params: IShared.IFindByIdRequest, body: IRmUpdateDataBySheetIdRequest): Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
export interface IApi extends IRepository {
|
|
71
82
|
createSheetFromDocument(params: IShared.IFindByIdRequest): Promise<ICreateSheetFromDocumentResponse>;
|
|
72
83
|
cloneSheetToNewDocument(params: ICloneSheetToNewDocumentRequest): Promise<ICloneSheetToNewDocumentResponse>;
|
|
84
|
+
rmGetDataBySheetId(params: IShared.IFindByIdRequest): Promise<IRmGetDataBySheetIdResponse>;
|
|
85
|
+
rmUpdateDataBySheetId(params: IShared.IFindByIdRequest, body: IRmUpdateDataBySheetIdRequest): Promise<void>;
|
|
86
|
+
findRmOpenDocuments(): Promise<IFindRmOpenDocuments[]>;
|
|
73
87
|
}
|
|
74
88
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -284,21 +284,6 @@ export interface IFindStartDocumentHeaderSiblingsResponse {
|
|
|
284
284
|
next: string | null;
|
|
285
285
|
previous: string | null;
|
|
286
286
|
}
|
|
287
|
-
export interface IFindRmOpenDocuments {
|
|
288
|
-
created_at: string;
|
|
289
|
-
created_by: string;
|
|
290
|
-
document_header_id: string;
|
|
291
|
-
document_number: string;
|
|
292
|
-
identifier: string;
|
|
293
|
-
adjudicated: boolean;
|
|
294
|
-
who_handles: string | null;
|
|
295
|
-
document_lines: {
|
|
296
|
-
document_line_id: string;
|
|
297
|
-
product_id: string;
|
|
298
|
-
product_reference: string;
|
|
299
|
-
designation: string;
|
|
300
|
-
}[];
|
|
301
|
-
}
|
|
302
287
|
export interface IRepository {
|
|
303
288
|
findOne(selector: IShared.IFindByIdRequest): Promise<IFindOneBase | null>;
|
|
304
289
|
findStartVirtual(selector: IShared.IFindByIdRequest): Promise<IStartDocumentHeaderVirtuals | null>;
|
|
@@ -318,6 +303,5 @@ export interface IRepository {
|
|
|
318
303
|
documentThermalPrint(selector: IShared.IFindByIdRequest): Promise<string>;
|
|
319
304
|
documentList(selector: IShared.IFindByIdRequest, params: IDocumentListRequest): Promise<IDocumentListResponse[]>;
|
|
320
305
|
findStartDocumentHeaderSiblings(params: IShared.IFindByIdRequest): Promise<IFindStartDocumentHeaderSiblingsResponse>;
|
|
321
|
-
findRmOpenDocuments(): Promise<IFindRmOpenDocuments[]>;
|
|
322
306
|
}
|
|
323
307
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.40.
|
|
4
|
+
"version": "0.40.3",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|