@nomalism-com/types 0.40.3 → 0.40.5

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/index.cjs CHANGED
@@ -5821,8 +5821,7 @@ __export(route_schema_exports112, {
5821
5821
  findQuery: () => findQuery34,
5822
5822
  findSettledMaterialEntranceBuDateParams: () => findSettledMaterialEntranceBuDateParams2,
5823
5823
  findSettledMaterialEntranceQuery: () => findSettledMaterialEntranceQuery2,
5824
- findWithPaginationQuery: () => findWithPaginationQuery28,
5825
- providerPaymentBody: () => providerPaymentBody2
5824
+ findWithPaginationQuery: () => findWithPaginationQuery28
5826
5825
  });
5827
5826
  import joi113 from "joi";
5828
5827
  var findQueryKeys32 = {};
@@ -5837,23 +5836,6 @@ var findSettledMaterialEntranceQueryKeys2 = {
5837
5836
  client_id: joi113.string().uuid().allow(null).required()
5838
5837
  };
5839
5838
  var findSettledMaterialEntranceQuery2 = joi113.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
5840
- var providerPaymentDocumentKeys2 = {
5841
- document_header_id: joi113.string().uuid().required(),
5842
- value: joi113.number().required(),
5843
- discount_value: joi113.number().optional().allow(0, "", null).when("value", {
5844
- is: joi113.number().positive(),
5845
- then: joi113.number().max(joi113.ref("value")),
5846
- otherwise: joi113.number().min(joi113.ref("value"))
5847
- })
5848
- };
5849
- var providerPaymentDocument2 = joi113.object().keys(providerPaymentDocumentKeys2).required();
5850
- var providerPaymentBodyKeys2 = {
5851
- provider_id: joi113.string().uuid().required(),
5852
- client_id: joi113.string().uuid().allow(null).optional(),
5853
- documents: joi113.array().items(providerPaymentDocument2).required(),
5854
- total: joi113.number().positive().allow(0).required()
5855
- };
5856
- var providerPaymentBody2 = joi113.array().items(joi113.object().keys(providerPaymentBodyKeys2)).messages(messages);
5857
5839
  var exportPaymentsBodyKeys = {
5858
5840
  value: joi113.number().positive().required(),
5859
5841
  provider: joi113.string().required(),
package/dist/index.js CHANGED
@@ -5821,8 +5821,7 @@ __export(route_schema_exports112, {
5821
5821
  findQuery: () => findQuery34,
5822
5822
  findSettledMaterialEntranceBuDateParams: () => findSettledMaterialEntranceBuDateParams2,
5823
5823
  findSettledMaterialEntranceQuery: () => findSettledMaterialEntranceQuery2,
5824
- findWithPaginationQuery: () => findWithPaginationQuery28,
5825
- providerPaymentBody: () => providerPaymentBody2
5824
+ findWithPaginationQuery: () => findWithPaginationQuery28
5826
5825
  });
5827
5826
  import joi113 from "joi";
5828
5827
  var findQueryKeys32 = {};
@@ -5837,23 +5836,6 @@ var findSettledMaterialEntranceQueryKeys2 = {
5837
5836
  client_id: joi113.string().uuid().allow(null).required()
5838
5837
  };
5839
5838
  var findSettledMaterialEntranceQuery2 = joi113.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
5840
- var providerPaymentDocumentKeys2 = {
5841
- document_header_id: joi113.string().uuid().required(),
5842
- value: joi113.number().required(),
5843
- discount_value: joi113.number().optional().allow(0, "", null).when("value", {
5844
- is: joi113.number().positive(),
5845
- then: joi113.number().max(joi113.ref("value")),
5846
- otherwise: joi113.number().min(joi113.ref("value"))
5847
- })
5848
- };
5849
- var providerPaymentDocument2 = joi113.object().keys(providerPaymentDocumentKeys2).required();
5850
- var providerPaymentBodyKeys2 = {
5851
- provider_id: joi113.string().uuid().required(),
5852
- client_id: joi113.string().uuid().allow(null).optional(),
5853
- documents: joi113.array().items(providerPaymentDocument2).required(),
5854
- total: joi113.number().positive().allow(0).required()
5855
- };
5856
- var providerPaymentBody2 = joi113.array().items(joi113.object().keys(providerPaymentBodyKeys2)).messages(messages);
5857
5839
  var exportPaymentsBodyKeys = {
5858
5840
  value: joi113.number().positive().required(),
5859
5841
  provider: joi113.string().required(),
@@ -21,6 +21,6 @@ export interface IMultipleRegularizations {
21
21
  payments?: IMultipleRegularizationPayments[];
22
22
  }
23
23
  export interface IRepository {
24
- regularizarMultiplosDocumentos(data: IMultipleRegularizations): Promise<void>;
24
+ create(data: IMultipleRegularizations): Promise<void>;
25
25
  }
26
26
  export type IController = IShared.IEntityWithUserToken<IRepository>;
@@ -72,17 +72,6 @@ export interface IUnpaidPurchasesResponse extends Pick<Entity, 'date' | 'debit'
72
72
  maturity_days: number;
73
73
  observations: IObservation.IFindByOwnerResponse[];
74
74
  }
75
- export interface IProviderPaymentDocument {
76
- document_header_id: string;
77
- value: number;
78
- discount_value?: number | null;
79
- }
80
- export interface IProviderPaymentRequest {
81
- provider_id: string;
82
- client_id: string | null;
83
- documents: IProviderPaymentDocument[];
84
- total: number;
85
- }
86
75
  export interface IPaymentsNotExportedRequest {
87
76
  whiteList?: string[];
88
77
  }
@@ -3,7 +3,6 @@ import { IPaymentsNotExportedRequest } from './interface';
3
3
  export declare const findQuery: joi.ObjectSchema<any>;
4
4
  export declare const findWithPaginationQuery: joi.ObjectSchema<any>;
5
5
  export declare const findSettledMaterialEntranceQuery: joi.ObjectSchema<any>;
6
- export declare const providerPaymentBody: joi.ArraySchema<any[]>;
7
6
  export declare const exportPaymentsBody: joi.ArraySchema<any[]>;
8
7
  export declare const exportCurrentAccountBetweenDatesQuery: joi.ObjectSchema<any>;
9
8
  export declare const findSettledMaterialEntranceBuDateParams: joi.ObjectSchema<any>;
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.3",
4
+ "version": "0.40.5",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",