@nomalism-com/types 0.17.13 → 0.17.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.
@@ -1,5 +1,5 @@
1
1
  import * as IShared from '../../../shared/interface';
2
- import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentHeaderClientPaymentVirtuals, DocumentSet, Payment } from '../../../shared/entities';
2
+ import { DocumentHeader, DocumentHeaderVirtuals, DocumentType, StartDocumentHeaderVirtuals, DocumentHeaderClientPaymentVirtuals, DocumentSet, Payment, DocumentLineNote } from '../../../shared/entities';
3
3
  import * as IDocumentType from '../documentType/interfaces';
4
4
  import * as IPayment from '../payment/interface';
5
5
  export type Entity = Omit<DocumentHeader, 'external_data'>;
@@ -320,6 +320,7 @@ export interface IFindByTypeRequest {
320
320
  export interface IFindByTypeLine {
321
321
  document_line_id: string;
322
322
  quantity: number;
323
+ notes: DocumentLineNote[];
323
324
  total_without_tax: number;
324
325
  total: number;
325
326
  product_id: string | null;
@@ -5,6 +5,9 @@ export declare const IDocumentLineNoteTypeEnum: {
5
5
  Quebra: 'Quebra';
6
6
  Entrada: 'Entrada';
7
7
  Compra: 'Compra';
8
+ Devolucao: 'Devolucao';
9
+ Transformado: 'Transformado';
10
+ Inventario: 'Inventario';
8
11
  };
9
12
  export type IDocumentLineNoteType = (typeof IDocumentLineNoteTypeEnum)[keyof typeof IDocumentLineNoteTypeEnum];
10
13
  export declare const documentLineNoteTypes: string[];
@@ -6,6 +6,9 @@ exports.IDocumentLineNoteTypeEnum = {
6
6
  Quebra: 'Quebra',
7
7
  Entrada: 'Entrada',
8
8
  Compra: 'Compra',
9
+ Devolucao: 'Devolucao',
10
+ Transformado: 'Transformado',
11
+ Inventario: 'Inventario',
9
12
  };
10
13
  exports.documentLineNoteTypes = Object.keys(exports.IDocumentLineNoteTypeEnum);
11
14
  exports.Route = 'documentLineNote';
@@ -9,7 +9,7 @@ var joi_1 = __importDefault(require("joi"));
9
9
  var messages_1 = require("../../../shared/messages");
10
10
  var interfaces_1 = require("./interfaces");
11
11
  exports.createBodyKeys = {
12
- document_line_id: joi_1.default.string().uuid().optional(),
12
+ document_line_id: joi_1.default.string().uuid().required(),
13
13
  note: joi_1.default.string().required(),
14
14
  type: (_a = joi_1.default
15
15
  .string())
@@ -1,6 +1,7 @@
1
1
  import * as IShared from '../../../shared/interface';
2
2
  import { Payment, DocumentHeader } from '../../../shared/entities';
3
3
  import * as IUser from '../../user/users/interface';
4
+ import * as IObservation from '../../integration/observation/interfaces';
4
5
  export import IFindProvidersWithClientIdResponse = IUser.IFindProvidersWithClientIdResponse;
5
6
  export type Entity = Payment;
6
7
  export declare const Route = "payment";
@@ -69,6 +70,7 @@ export interface IUnpaidPurchasesResponse extends Pick<Entity, 'date' | 'debit'
69
70
  client_id?: string | null;
70
71
  };
71
72
  maturity_days: number;
73
+ observations: IObservation.IFindByOwnerResponse[];
72
74
  }
73
75
  export interface IProviderPaymentDocument {
74
76
  document_header_id: string;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.17.13",
12
+ "version": "0.17.15",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [