@floristcloud/api-lib 1.0.37 → 1.0.39
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/build/commands/consignment/export-consignment.command.js +13 -1
- package/build/commands/report/export-client-statement.query.js +3 -2
- package/build/constant/error.js +1 -0
- package/commands/consignment/export-consignment.command.ts +17 -0
- package/commands/report/export-client-statement.query.ts +3 -2
- package/constant/error.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExportConsignmentContractCommand = void 0;
|
|
3
|
+
exports.ExportConsignmentForUpdateContractQuery = exports.ExportConsignmentContractCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const ExportConsignmentRequestSchema = zod_1.z.object({
|
|
6
6
|
withImage: zod_1.z.coerce.boolean(),
|
|
@@ -16,3 +16,15 @@ var ExportConsignmentContractCommand;
|
|
|
16
16
|
ExportConsignmentContractCommand.RequestSchema = ExportConsignmentRequestSchema;
|
|
17
17
|
ExportConsignmentContractCommand.ResponseSchema = ExportConsignmentResponseSchema;
|
|
18
18
|
})(ExportConsignmentContractCommand || (exports.ExportConsignmentContractCommand = ExportConsignmentContractCommand = {}));
|
|
19
|
+
const ExportConsignmentForUpdateRequestSchema = zod_1.z.object({});
|
|
20
|
+
const ExportConsignmentForUpdateResponseSchema = zod_1.z.object({
|
|
21
|
+
message: zod_1.z.string().optional(),
|
|
22
|
+
data: zod_1.z.object({
|
|
23
|
+
fileUrl: zod_1.z.string(),
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
var ExportConsignmentForUpdateContractQuery;
|
|
27
|
+
(function (ExportConsignmentForUpdateContractQuery) {
|
|
28
|
+
ExportConsignmentForUpdateContractQuery.RequestSchema = ExportConsignmentForUpdateRequestSchema;
|
|
29
|
+
ExportConsignmentForUpdateContractQuery.ResponseSchema = ExportConsignmentForUpdateResponseSchema;
|
|
30
|
+
})(ExportConsignmentForUpdateContractQuery || (exports.ExportConsignmentForUpdateContractQuery = ExportConsignmentForUpdateContractQuery = {}));
|
|
@@ -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 },
|
|
@@ -18,3 +18,20 @@ export namespace ExportConsignmentContractCommand {
|
|
|
18
18
|
export const ResponseSchema = ExportConsignmentResponseSchema;
|
|
19
19
|
export type Response = z.infer<typeof ResponseSchema>;
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
const ExportConsignmentForUpdateRequestSchema = z.object({});
|
|
23
|
+
|
|
24
|
+
const ExportConsignmentForUpdateResponseSchema = z.object({
|
|
25
|
+
message: z.string().optional(),
|
|
26
|
+
data: z.object({
|
|
27
|
+
fileUrl: z.string(),
|
|
28
|
+
}),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export namespace ExportConsignmentForUpdateContractQuery {
|
|
32
|
+
export const RequestSchema = ExportConsignmentForUpdateRequestSchema;
|
|
33
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
34
|
+
|
|
35
|
+
export const ResponseSchema = ExportConsignmentForUpdateResponseSchema;
|
|
36
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
37
|
+
}
|
|
@@ -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 },
|