@nomalism-com/types 0.10.60 → 0.10.62
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.
- package/dist/modules/supply/documentLine/interfaces.d.ts +2 -3
- package/dist/modules/supply/propostaSheets/interface.d.ts +2 -6
- package/dist/modules/supply/propostaSheets/route.schema.d.ts +0 -1
- package/dist/modules/supply/propostaSheets/route.schema.js +1 -14
- package/dist/shared/entities/stock.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { DocumentLine, DocumentLineBaseVirtuals, DocumentLineVirtuals, DocumentLineFolder } from '../../../shared/entities';
|
|
2
|
+
import { DocumentLine, DocumentLineBaseVirtuals, DocumentLineVirtuals, DocumentLineFolder, DocumentLinePendingConflict } from '../../../shared/entities';
|
|
3
3
|
import * as IDocumentLineAssoc from '../documentLineAssoc/interfaces';
|
|
4
4
|
import * as IDocumentHeader from '../documentHeader/interfaces';
|
|
5
5
|
import * as IDocumentType from '../documentType/interfaces';
|
|
6
6
|
import * as IPlot from '../../stock/plot/interface';
|
|
7
|
-
import { IDocumentLinePendingConflictWithUpdatedPriceSale } from '../propostaSheets/interface';
|
|
8
7
|
export type Entity = DocumentLine;
|
|
9
8
|
export declare const Route = "documentLine";
|
|
10
9
|
export declare const UpperName = "DocumentLine";
|
|
@@ -140,7 +139,7 @@ export interface IEntityExtended extends DocumentLine {
|
|
|
140
139
|
document_headers: IDocumentLineDocuments[];
|
|
141
140
|
document_line_folder: DocumentLineFolder | null;
|
|
142
141
|
plot: IPlot.IFindDetailedResponseWithoutCurrentDocumentLine | null;
|
|
143
|
-
pending_conflict:
|
|
142
|
+
pending_conflict: DocumentLinePendingConflict | null;
|
|
144
143
|
}
|
|
145
144
|
export interface ICreateRequest extends Omit<IDocumentLineAssoc.ICreateRequest, 'document_line_id'> {
|
|
146
145
|
document_line_id?: string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
2
|
import { DocumentLinePendingConflict, DocumentLine } from '../../../shared/entities';
|
|
3
3
|
export type Entity = DocumentLinePendingConflict;
|
|
4
|
-
export interface IDocumentLinePendingConflictWithUpdatedPriceSale extends Entity {
|
|
5
|
-
updated_price_sale: number;
|
|
6
|
-
}
|
|
7
4
|
export declare const Route = "documentLine_pending_conflict";
|
|
8
5
|
export declare const UpperName = "DocumentLinePendingConflict";
|
|
9
6
|
export declare const LowerName: string;
|
|
@@ -28,12 +25,11 @@ export interface ICreateSheetFromDocumentResponse {
|
|
|
28
25
|
}
|
|
29
26
|
export interface IRepository {
|
|
30
27
|
importFromSheet(params: IShared.IFindByIdRequest): Promise<IFindByGooglesheetIdResponse>;
|
|
31
|
-
conflictCreate(params: IShared.IFindByIdRequest, data: IConflictCreateRequest): Promise<void>;
|
|
32
28
|
conflictAccept(params: IShared.IFindByIdRequest): Promise<void>;
|
|
33
29
|
conflictDelete(params: IShared.IFindByIdRequest): Promise<void>;
|
|
34
|
-
conflictFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<
|
|
30
|
+
conflictFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IConflictFindByOwnerIdResponse[]>;
|
|
35
31
|
}
|
|
36
|
-
export type IApi = Omit<IRepository, '
|
|
32
|
+
export type IApi = Omit<IRepository, 'createSheetFromDocument'> & {
|
|
37
33
|
createSheetFromDocument(params: IShared.IFindByIdRequest): Promise<ICreateSheetFromDocumentResponse>;
|
|
38
34
|
};
|
|
39
35
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -3,10 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.findByGoogleSheetId = void 0;
|
|
7
7
|
var joi_1 = __importDefault(require("joi"));
|
|
8
8
|
var messages_1 = require("../../../shared/messages");
|
|
9
|
-
var interface_1 = require("./interface");
|
|
10
9
|
var findByGoogleSheetIdKeys = {
|
|
11
10
|
id: joi_1.default.string().required(),
|
|
12
11
|
};
|
|
@@ -14,15 +13,3 @@ exports.findByGoogleSheetId = joi_1.default
|
|
|
14
13
|
.object()
|
|
15
14
|
.keys(findByGoogleSheetIdKeys)
|
|
16
15
|
.messages(messages_1.messages);
|
|
17
|
-
var createConflictKeys = {
|
|
18
|
-
document_line_id: joi_1.default.string().uuid().required(),
|
|
19
|
-
designation: joi_1.default.string().optional(),
|
|
20
|
-
quantity: joi_1.default.number().positive().optional(),
|
|
21
|
-
price_sale: joi_1.default.number().positive().optional(),
|
|
22
|
-
discount: joi_1.default.number().positive().allow(0).max(99).optional(),
|
|
23
|
-
conflict: joi_1.default.string().valid(interface_1.IConflictEnum).optional(),
|
|
24
|
-
};
|
|
25
|
-
exports.createConflict = joi_1.default
|
|
26
|
-
.object()
|
|
27
|
-
.keys(createConflictKeys)
|
|
28
|
-
.messages(messages_1.messages);
|