@floristcloud/api-lib 1.0.2 → 1.0.4
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/file/deleteFile.command.js +1 -1
- package/build/commands/write-off/create-write-off-images.command.js +1 -1
- package/build/enum/file-expire-prefix.enum.js +7 -0
- package/build/schemas/write-off/write-off-image.schema.js +1 -1
- package/commands/file/deleteFile.command.ts +1 -1
- package/commands/write-off/create-write-off-images.command.ts +1 -1
- package/enum/file-expire-prefix.enum.ts +3 -0
- package/package.json +1 -1
- package/schemas/write-off/write-off-image.schema.ts +1 -1
|
@@ -4,7 +4,7 @@ exports.DeleteFileCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
6
|
const DeleteFileRequestSchema = zod_1.z.object({
|
|
7
|
-
url: zod_1.z.string()
|
|
7
|
+
url: zod_1.z.string(),
|
|
8
8
|
});
|
|
9
9
|
const DeleteFileResponseSchema = zod_1.z.object({
|
|
10
10
|
message: zod_1.z.string().optional(),
|
|
@@ -4,7 +4,7 @@ exports.CreateWriteOffImagesContractCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const write_off_image_schema_1 = require("../../schemas/write-off/write-off-image.schema");
|
|
6
6
|
const CreateWriteOffImagesRequestSchema = zod_1.z.object({
|
|
7
|
-
urls: zod_1.z.array(zod_1.z.string()
|
|
7
|
+
urls: zod_1.z.array(zod_1.z.string()).min(1),
|
|
8
8
|
});
|
|
9
9
|
const CreateWriteOffImagesResponseSchema = zod_1.z.object({
|
|
10
10
|
message: zod_1.z.string().optional(),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileExpirePrefixEnum = void 0;
|
|
4
|
+
var FileExpirePrefixEnum;
|
|
5
|
+
(function (FileExpirePrefixEnum) {
|
|
6
|
+
FileExpirePrefixEnum["D3"] = "3d";
|
|
7
|
+
})(FileExpirePrefixEnum || (exports.FileExpirePrefixEnum = FileExpirePrefixEnum = {}));
|
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.WriteOffImageSchema = zod_1.z.object({
|
|
6
6
|
uuid: zod_1.z.string().uuid(),
|
|
7
7
|
writeOffUUID: zod_1.z.string().uuid(),
|
|
8
|
-
url: zod_1.z.string()
|
|
8
|
+
url: zod_1.z.string(),
|
|
9
9
|
createdAt: zod_1.z.date(),
|
|
10
10
|
deletedAt: zod_1.z.date().nullable(),
|
|
11
11
|
});
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { WriteOffImageSchema } from '../../schemas/write-off/write-off-image.schema';
|
|
3
3
|
|
|
4
4
|
const CreateWriteOffImagesRequestSchema = z.object({
|
|
5
|
-
urls: z.array(z.string()
|
|
5
|
+
urls: z.array(z.string()).min(1),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const CreateWriteOffImagesResponseSchema = z.object({
|
package/package.json
CHANGED