@nomalism-com/types 0.16.58 → 0.16.60
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.
|
@@ -102,6 +102,7 @@ export interface IPaymentsBatchResponse {
|
|
|
102
102
|
multimedia_id: string | null;
|
|
103
103
|
times_downloaded: number;
|
|
104
104
|
npf_dh: {
|
|
105
|
+
id: string;
|
|
105
106
|
name: string;
|
|
106
107
|
pdf_link: string | null;
|
|
107
108
|
total: number;
|
|
@@ -111,9 +112,16 @@ export interface IPaymentsBatchResponse {
|
|
|
111
112
|
created_by: string;
|
|
112
113
|
created_at: Date;
|
|
113
114
|
}
|
|
115
|
+
export declare const IExportCurrentAccountOutputEnum: {
|
|
116
|
+
csv: 'csv';
|
|
117
|
+
pdf: 'pdf';
|
|
118
|
+
};
|
|
119
|
+
export type IExportCurrentAccountOutput = (typeof IExportCurrentAccountOutputEnum)[keyof typeof IExportCurrentAccountOutputEnum];
|
|
120
|
+
export declare const IExportCurrentAccountOutputOptions: string[];
|
|
114
121
|
export interface IExportCurrentAccountRequest {
|
|
115
122
|
token: string;
|
|
116
123
|
owner_id: string;
|
|
124
|
+
output: IExportCurrentAccountOutput;
|
|
117
125
|
start_date: Date | null;
|
|
118
126
|
end_date: Date | null;
|
|
119
127
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
3
|
+
exports.IExportCurrentAccountOutputOptions = exports.IExportCurrentAccountOutputEnum = exports.LowerName = exports.UpperName = exports.Route = void 0;
|
|
4
4
|
exports.Route = 'payment';
|
|
5
5
|
exports.UpperName = 'Payment';
|
|
6
6
|
exports.LowerName = exports.UpperName[0].toLowerCase() + exports.UpperName.substring(1);
|
|
7
|
+
exports.IExportCurrentAccountOutputEnum = {
|
|
8
|
+
csv: 'csv',
|
|
9
|
+
pdf: 'pdf',
|
|
10
|
+
};
|
|
11
|
+
exports.IExportCurrentAccountOutputOptions = Object.keys(exports.IExportCurrentAccountOutputEnum);
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
|
+
var _a;
|
|
5
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
exports.findSettledMaterialEntranceBuDateParams = exports.exportCurrentAccountBetweenDatesQuery = exports.exportPaymentsBody = exports.providerPaymentBody = exports.findSettledMaterialEntranceQuery = exports.findWithPaginationQuery = exports.findQuery = void 0;
|
|
7
8
|
var joi_1 = __importDefault(require("joi"));
|
|
8
9
|
var messages_1 = require("../../../shared/messages");
|
|
10
|
+
var interface_1 = require("./interface");
|
|
9
11
|
var findQueryKeys = {};
|
|
10
12
|
exports.findQuery = joi_1.default.object().keys(findQueryKeys).messages(messages_1.messages);
|
|
11
13
|
var findWithPaginationQueryKeys = {
|
|
@@ -59,6 +61,9 @@ exports.exportPaymentsBody = joi_1.default
|
|
|
59
61
|
.messages(messages_1.messages);
|
|
60
62
|
var exportCurrentAccountBetweenDatesQueryKeys = {
|
|
61
63
|
owner_id: joi_1.default.string().required(),
|
|
64
|
+
output: (_a = joi_1.default
|
|
65
|
+
.string())
|
|
66
|
+
.valid.apply(_a, interface_1.IExportCurrentAccountOutputOptions).required(),
|
|
62
67
|
start_date: joi_1.default.string().optional(),
|
|
63
68
|
end_date: joi_1.default.string().optional(),
|
|
64
69
|
token: joi_1.default.string().required(),
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.16.
|
|
12
|
+
"version": "0.16.60",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"convert-units": "^2.3.4",
|
|
36
|
-
"joi": "^17.11.
|
|
36
|
+
"joi": "^17.11.1",
|
|
37
37
|
"joi-to-swagger": "^6.2.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/convert-units": "^2.3.9",
|
|
41
|
-
"@types/node": "^20.11.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
43
|
-
"@typescript-eslint/parser": "^6.
|
|
41
|
+
"@types/node": "^20.11.3",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
43
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
44
44
|
"concurrently": "^8.2.2",
|
|
45
45
|
"eslint": "^8.56.0",
|
|
46
46
|
"eslint-config-airbnb-base": "^15.0.0",
|