@nomalism-com/types 0.10.49 → 0.10.51

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.
@@ -56,6 +56,7 @@ export interface IUnpaidPurchasesRequest {
56
56
  export interface IUnpaidByDatePurchasesRequest {
57
57
  due_date: Date;
58
58
  }
59
+ export type IPaymentMultiplier = 1 | -1 | 0;
59
60
  export type IPaymentOrigin = 'CC Fornecedor' | 'CC Cliente' | 'CC Fornecedor (Descontinuado)' | 'CC Cliente (Descontinuado)';
60
61
  export interface IUnpaidPurchasesResponse extends Pick<Entity, 'date' | 'debit' | 'credit'> {
61
62
  document_header: Pick<DocumentHeader, 'emission_date' | 'pdf_link' | 'id'>;
@@ -83,7 +84,7 @@ export interface IProviderPaymentRequest {
83
84
  export interface IPaymentDocumentReceipt {
84
85
  document_header_id: string;
85
86
  origin: IPaymentOrigin;
86
- multiplier: number;
87
+ multiplier: IPaymentMultiplier;
87
88
  value: number;
88
89
  discount_value: number;
89
90
  name: string;
@@ -2,7 +2,7 @@ import { IConflict } from '../../modules/supply/propostaSheets/interface';
2
2
  import { IAttributeDatatype } from '../../modules/stock/attribute/interfaces';
3
3
  import { ICabideType } from '../../modules/supply/cabide/interface';
4
4
  import { IDocumentTypeUserType, IDocumentTypeCodeType } from '../../modules/supply/documentType/interfaces';
5
- import { IBatchType } from '../../modules/supply/payment/interface';
5
+ import { IBatchType, IPaymentOrigin } from '../../modules/supply/payment/interface';
6
6
  import { IProductType } from '../../modules/stock/product/interface';
7
7
  import { IImageType } from '../../modules/stock/productImage/interface';
8
8
  import { IQueryParameterDatatype } from '../../modules/stock/queryParameter/interfaces';
@@ -1036,13 +1036,13 @@ export type SettledMaterialEntrance = {
1036
1036
  id: string;
1037
1037
  document_description: string;
1038
1038
  document_name: string;
1039
- multiplier: number;
1039
+ multiplier: 1 | -1 | 0;
1040
1040
  total: number;
1041
1041
  saldo: number;
1042
1042
  data_vencimento: Date;
1043
1043
  emission_date: Date;
1044
1044
  pdf_link: string | null;
1045
- type: string;
1045
+ type: IPaymentOrigin;
1046
1046
  owner_id: string;
1047
1047
  };
1048
1048
  export type NegativePlotView = {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.10.49",
12
+ "version": "0.10.51",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [