@floristcloud/api-lib 1.0.37 → 1.0.38
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.
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExportClientStatementContractQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const date_helper_1 = require("../../helpers/date.helper");
|
|
6
|
-
const schemas_1 = require("../../schemas");
|
|
7
6
|
const ExportClientStatementRequestSchema = zod_1.z
|
|
8
7
|
.object({
|
|
9
8
|
startDate: zod_1.z.coerce.date().optional(),
|
|
@@ -21,7 +20,9 @@ const ExportClientStatementRequestSchema = zod_1.z
|
|
|
21
20
|
path: ['endDate', 'startDate'],
|
|
22
21
|
});
|
|
23
22
|
const ExportClientStatementResponseSchema = zod_1.z.object({
|
|
24
|
-
data: zod_1.z.
|
|
23
|
+
data: zod_1.z.object({
|
|
24
|
+
fileUrl: zod_1.z.string(),
|
|
25
|
+
}),
|
|
25
26
|
});
|
|
26
27
|
var ExportClientStatementContractQuery;
|
|
27
28
|
(function (ExportClientStatementContractQuery) {
|
package/build/constant/error.js
CHANGED
|
@@ -752,6 +752,7 @@ exports.ERRORS = {
|
|
|
752
752
|
RECEIPT_SPLIT_FAILED: { code: 'RS001', message: 'Failed to receipt split', httpCode: 500 },
|
|
753
753
|
// REPORT
|
|
754
754
|
REPORT_FETCH_FAILED: { code: 'REP001', message: 'Failed to fetch report', httpCode: 500 },
|
|
755
|
+
REPORT_EXPORT_FAILED: { code: 'REP002', message: 'Failed to export report', httpCode: 500 },
|
|
755
756
|
// AUTH GATEWAY
|
|
756
757
|
AUTH_GATEWAY_VOICE_FAILED: { code: 'AG001', message: 'Failed to send code via voice call', httpCode: 500 },
|
|
757
758
|
AUTH_GATEWAY_TELEGRAM_FAILED: { code: 'AG002', message: 'Failed to send code via Telegram', httpCode: 500 },
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { dateRangeCheck } from '../../helpers/date.helper';
|
|
3
|
-
import { ClientStatementItemSchema } from '../../schemas';
|
|
4
3
|
|
|
5
4
|
const ExportClientStatementRequestSchema = z
|
|
6
5
|
.object({
|
|
@@ -23,7 +22,9 @@ const ExportClientStatementRequestSchema = z
|
|
|
23
22
|
);
|
|
24
23
|
|
|
25
24
|
const ExportClientStatementResponseSchema = z.object({
|
|
26
|
-
data: z.
|
|
25
|
+
data: z.object({
|
|
26
|
+
fileUrl: z.string(),
|
|
27
|
+
}),
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
export namespace ExportClientStatementContractQuery {
|
package/constant/error.ts
CHANGED
|
@@ -792,6 +792,7 @@ export const ERRORS = {
|
|
|
792
792
|
|
|
793
793
|
// REPORT
|
|
794
794
|
REPORT_FETCH_FAILED: { code: 'REP001', message: 'Failed to fetch report', httpCode: 500 },
|
|
795
|
+
REPORT_EXPORT_FAILED: { code: 'REP002', message: 'Failed to export report', httpCode: 500 },
|
|
795
796
|
|
|
796
797
|
// AUTH GATEWAY
|
|
797
798
|
AUTH_GATEWAY_VOICE_FAILED: { code: 'AG001', message: 'Failed to send code via voice call', httpCode: 500 },
|