@nomalism-com/types 0.37.4 → 0.37.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
|
@@ -3669,8 +3669,7 @@ __export(route_schema_exports60, {
|
|
|
3669
3669
|
basicSearchQuery: () => basicSearchQuery2,
|
|
3670
3670
|
devolverBody: () => devolverBody,
|
|
3671
3671
|
findByOwnerIdBodyKeysBody: () => findByOwnerIdBodyKeysBody,
|
|
3672
|
-
pagarFaturaBody: () => pagarFaturaBody
|
|
3673
|
-
regularizarMultiplosBody: () => regularizarMultiplosBody2
|
|
3672
|
+
pagarFaturaBody: () => pagarFaturaBody
|
|
3674
3673
|
});
|
|
3675
3674
|
import joi61 from "joi";
|
|
3676
3675
|
var findByOwnerIdBodyKeys = {
|
|
@@ -3695,22 +3694,6 @@ var basicSearchQueryKeys2 = {
|
|
|
3695
3694
|
current_page: joi61.number().positive().integer().allow(null).optional()
|
|
3696
3695
|
};
|
|
3697
3696
|
var basicSearchQuery2 = joi61.object().keys(basicSearchQueryKeys2).messages(messages);
|
|
3698
|
-
var multipleDocumentsBodyKeys2 = {
|
|
3699
|
-
owner_id: joi61.string().uuid().required(),
|
|
3700
|
-
document_header_id: joi61.string().uuid().required(),
|
|
3701
|
-
type: joi61.string().valid("credit", "debit").required(),
|
|
3702
|
-
value: joi61.number().positive().required()
|
|
3703
|
-
};
|
|
3704
|
-
var multiplePaymentsBodyKeys2 = {
|
|
3705
|
-
value: joi61.number().positive().required(),
|
|
3706
|
-
payment_method_id: joi61.string().uuid().required(),
|
|
3707
|
-
payment_method: joi61.string().required()
|
|
3708
|
-
};
|
|
3709
|
-
var regularizarMultiplosBodyKeys2 = {
|
|
3710
|
-
documents: joi61.array().items(multipleDocumentsBodyKeys2).required(),
|
|
3711
|
-
payments: joi61.array().items(multiplePaymentsBodyKeys2).optional()
|
|
3712
|
-
};
|
|
3713
|
-
var regularizarMultiplosBody2 = joi61.object().keys(regularizarMultiplosBodyKeys2).messages(messages);
|
|
3714
3697
|
|
|
3715
3698
|
// src/modules/supply/providerCurrentAccount/interfaces.ts
|
|
3716
3699
|
var interfaces_exports28 = {};
|
package/dist/index.js
CHANGED
|
@@ -3669,8 +3669,7 @@ __export(route_schema_exports60, {
|
|
|
3669
3669
|
basicSearchQuery: () => basicSearchQuery2,
|
|
3670
3670
|
devolverBody: () => devolverBody,
|
|
3671
3671
|
findByOwnerIdBodyKeysBody: () => findByOwnerIdBodyKeysBody,
|
|
3672
|
-
pagarFaturaBody: () => pagarFaturaBody
|
|
3673
|
-
regularizarMultiplosBody: () => regularizarMultiplosBody2
|
|
3672
|
+
pagarFaturaBody: () => pagarFaturaBody
|
|
3674
3673
|
});
|
|
3675
3674
|
import joi61 from "joi";
|
|
3676
3675
|
var findByOwnerIdBodyKeys = {
|
|
@@ -3695,22 +3694,6 @@ var basicSearchQueryKeys2 = {
|
|
|
3695
3694
|
current_page: joi61.number().positive().integer().allow(null).optional()
|
|
3696
3695
|
};
|
|
3697
3696
|
var basicSearchQuery2 = joi61.object().keys(basicSearchQueryKeys2).messages(messages);
|
|
3698
|
-
var multipleDocumentsBodyKeys2 = {
|
|
3699
|
-
owner_id: joi61.string().uuid().required(),
|
|
3700
|
-
document_header_id: joi61.string().uuid().required(),
|
|
3701
|
-
type: joi61.string().valid("credit", "debit").required(),
|
|
3702
|
-
value: joi61.number().positive().required()
|
|
3703
|
-
};
|
|
3704
|
-
var multiplePaymentsBodyKeys2 = {
|
|
3705
|
-
value: joi61.number().positive().required(),
|
|
3706
|
-
payment_method_id: joi61.string().uuid().required(),
|
|
3707
|
-
payment_method: joi61.string().required()
|
|
3708
|
-
};
|
|
3709
|
-
var regularizarMultiplosBodyKeys2 = {
|
|
3710
|
-
documents: joi61.array().items(multipleDocumentsBodyKeys2).required(),
|
|
3711
|
-
payments: joi61.array().items(multiplePaymentsBodyKeys2).optional()
|
|
3712
|
-
};
|
|
3713
|
-
var regularizarMultiplosBody2 = joi61.object().keys(regularizarMultiplosBodyKeys2).messages(messages);
|
|
3714
3697
|
|
|
3715
3698
|
// src/modules/supply/providerCurrentAccount/interfaces.ts
|
|
3716
3699
|
var interfaces_exports28 = {};
|
|
@@ -75,22 +75,6 @@ export interface IBasicSearchResponse {
|
|
|
75
75
|
numero_documento: string;
|
|
76
76
|
valor: number;
|
|
77
77
|
}
|
|
78
|
-
export interface IMultipleRegularizationPayments {
|
|
79
|
-
value: number;
|
|
80
|
-
payment_method_id: string;
|
|
81
|
-
payment_method: string;
|
|
82
|
-
}
|
|
83
|
-
export type IMultipleRegularizationPaymentsType = 'credit' | 'debit';
|
|
84
|
-
export interface IMultipleRegularizationDocuments {
|
|
85
|
-
owner_id: string;
|
|
86
|
-
document_header_id: string;
|
|
87
|
-
type: IMultipleRegularizationPaymentsType;
|
|
88
|
-
value: number;
|
|
89
|
-
}
|
|
90
|
-
export interface IMultipleRegularizations {
|
|
91
|
-
documents: IMultipleRegularizationDocuments[];
|
|
92
|
-
payments?: IMultipleRegularizationPayments[];
|
|
93
|
-
}
|
|
94
78
|
export interface IRepository {
|
|
95
79
|
find(params: IShared.IFindByOwnerIdRequest): Promise<Entity[]>;
|
|
96
80
|
findByOwnerId(params: IFindRequest): Promise<IShared.IPaginationResponse<Entity>>;
|
|
@@ -99,7 +83,6 @@ export interface IRepository {
|
|
|
99
83
|
findFaturaParaDevolver(params: IShared.IFindByIdRequest): Promise<IFindFaturasParaDevolucaoResponse>;
|
|
100
84
|
devolver(params: IDevolverRequest): Promise<void>;
|
|
101
85
|
findByBasicSearch(data: IBasicSearchRequest): Promise<IShared.IPaginationResponse<IBasicSearchResponse>>;
|
|
102
|
-
regularizarMultiplosDocumentos(data: IMultipleRegularizations): Promise<void>;
|
|
103
86
|
}
|
|
104
87
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
105
88
|
export type IApi = Omit<IRepository, 'find'>;
|
|
@@ -3,4 +3,3 @@ export declare const findByOwnerIdBodyKeysBody: joi.ObjectSchema<any>;
|
|
|
3
3
|
export declare const pagarFaturaBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const devolverBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const basicSearchQuery: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const regularizarMultiplosBody: 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.37.
|
|
4
|
+
"version": "0.37.5",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|