@pedro.araujo/ml-architecture-shared 0.1.77 → 0.1.78

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.
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { CreateAuctionItemCommentRequestDTO } from "./create-auction-item-comment-request.dto.js";
3
+ export declare const CreateAuctionItemCommentSchema: z.ZodType<CreateAuctionItemCommentRequestDTO>;
4
+ //# sourceMappingURL=create-auction-item-comment-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-auction-item-comment-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item-comment/create-auction-item-comment-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAElG,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAIrF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export const CreateAuctionItemCommentSchema = z.object({
3
+ auctionItemId: z.coerce.number().int().positive(),
4
+ content: z.string().min(1).max(2000),
5
+ });
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { DeleteAuctionItemCommentRequestDTO } from "./delete-auction-item-comment-request.dto.js";
3
+ export declare const DeleteAuctionItemCommentSchema: z.ZodType<DeleteAuctionItemCommentRequestDTO>;
4
+ //# sourceMappingURL=delete-auction-item-comment-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-auction-item-comment-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item-comment/delete-auction-item-comment-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAElG,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAIrF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export const DeleteAuctionItemCommentSchema = z.object({
3
+ auctionItemId: z.coerce.number().int().positive(),
4
+ commentId: z.coerce.number().int().positive(),
5
+ });
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { GetAuctionItemCommentByIdRequestDTO } from "./get-auction-item-comment-by-id-request.dto.js";
3
+ export declare const GetAuctionItemCommentByIdSchema: z.ZodType<GetAuctionItemCommentByIdRequestDTO>;
4
+ //# sourceMappingURL=get-auction-item-comment-by-id-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-auction-item-comment-by-id-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item-comment/get-auction-item-comment-by-id-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AAEtG,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,mCAAmC,CAIvF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ export const GetAuctionItemCommentByIdSchema = z.object({
3
+ auctionItemId: z.coerce.number().int().positive(),
4
+ commentId: z.coerce.number().int().positive(),
5
+ });
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { GetAuctionItemCommentsRequestDTO } from "./get-auction-item-comments-request.dto.js";
3
+ export declare const GetAuctionItemCommentsSchema: z.ZodType<GetAuctionItemCommentsRequestDTO>;
4
+ //# sourceMappingURL=get-auction-item-comments-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-auction-item-comments-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item-comment/get-auction-item-comments-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,4CAA4C,CAAC;AAG9F,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAGjF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ import { PaginationRequestSchema } from "../pagination/pagination-request.schema.js";
3
+ export const GetAuctionItemCommentsSchema = PaginationRequestSchema.extend({
4
+ auctionItemId: z.coerce.number().int().positive(),
5
+ });
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { UpdateAuctionItemCommentRequestDTO } from "./update-auction-item-comment-request.dto.js";
3
+ export declare const UpdateAuctionItemCommentSchema: z.ZodType<UpdateAuctionItemCommentRequestDTO>;
4
+ //# sourceMappingURL=update-auction-item-comment-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-auction-item-comment-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item-comment/update-auction-item-comment-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAElG,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAKrF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ export const UpdateAuctionItemCommentSchema = z.object({
3
+ auctionItemId: z.coerce.number().int().positive(),
4
+ commentId: z.coerce.number().int().positive(),
5
+ content: z.string().min(1).max(2000),
6
+ });
package/dist/index.d.ts CHANGED
@@ -10,15 +10,15 @@ export * from "./auction-item/update-auction-item.dto.js";
10
10
  export * from "./auction-item/update-auction-item.schema.js";
11
11
  export * from "./auction-item-comment/auction-item-comment-response.dto.js";
12
12
  export * from "./auction-item-comment/create-auction-item-comment-request.dto.js";
13
- export * from "./auction-item-comment/create-auction-item-comment.schema.js";
14
- export * from "./auction-item-comment/delete-auction-item-comment.schema.js";
15
- export * from "./auction-item-comment/delete-auction-item-comment.schema.js";
13
+ export * from "./auction-item-comment/create-auction-item-comment-request.schema.js";
14
+ export * from "./auction-item-comment/delete-auction-item-comment-request.dto.js";
15
+ export * from "./auction-item-comment/delete-auction-item-comment-request.schema.js";
16
16
  export * from "./auction-item-comment/get-auction-item-comment-by-id-request.dto.js";
17
- export * from "./auction-item-comment/get-auction-item-comment-by-id.schema.js";
17
+ export * from "./auction-item-comment/get-auction-item-comment-by-id-request.schema.js";
18
18
  export * from "./auction-item-comment/get-auction-item-comments-request.dto.js";
19
- export * from "./auction-item-comment/get-auction-item-comments.schema.js";
19
+ export * from "./auction-item-comment/get-auction-item-comments-request.schema.js";
20
20
  export * from "./auction-item-comment/update-auction-item-comment-request.dto.js";
21
- export * from "./auction-item-comment/update-auction-item-comment.schema.js";
21
+ export * from "./auction-item-comment/update-auction-item-comment-request.schema.js";
22
22
  export * from "./auction-item/get-auction-agenda-request.dto.js";
23
23
  export * from "./auction-item/get-auction-agenda-request.schema.js";
24
24
  export * from "./auction-item/get-auction-items-request.dto.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AACrE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAE7D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,mEAAmE,CAAC;AAClF,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,sEAAsE,CAAC;AACrF,cAAc,iEAAiE,CAAC;AAChF,cAAc,iEAAiE,CAAC;AAChF,cAAc,4DAA4D,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,cAAc,sEAAsE,CAAC;AACrF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,0DAA0D,CAAC;AACzE,cAAc,6CAA6C,CAAC;AAE5D,cAAc,oFAAoF,CAAC;AACnG,cAAc,iFAAiF,CAAC;AAChG,cAAc,kFAAkF,CAAC;AACjG,cAAc,mEAAmE,CAAC;AAElF,cAAc,6CAA6C,CAAC;AAC5D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,gDAAgD,CAAC;AAE/D,cAAc,iDAAiD,CAAC;AAEhE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AAExD,cAAc,+DAA+D,CAAC;AAE9E,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,6EAA6E,CAAC;AAC5F,cAAc,gFAAgF,CAAC;AAC/F,cAAc,6EAA6E,CAAC;AAC5F,cAAc,gFAAgF,CAAC;AAC/F,cAAc,uEAAuE,CAAC"}
package/dist/index.js CHANGED
@@ -10,15 +10,15 @@ export * from "./auction-item/update-auction-item.dto.js";
10
10
  export * from "./auction-item/update-auction-item.schema.js";
11
11
  export * from "./auction-item-comment/auction-item-comment-response.dto.js";
12
12
  export * from "./auction-item-comment/create-auction-item-comment-request.dto.js";
13
- export * from "./auction-item-comment/create-auction-item-comment.schema.js";
14
- export * from "./auction-item-comment/delete-auction-item-comment.schema.js";
15
- export * from "./auction-item-comment/delete-auction-item-comment.schema.js";
13
+ export * from "./auction-item-comment/create-auction-item-comment-request.schema.js";
14
+ export * from "./auction-item-comment/delete-auction-item-comment-request.dto.js";
15
+ export * from "./auction-item-comment/delete-auction-item-comment-request.schema.js";
16
16
  export * from "./auction-item-comment/get-auction-item-comment-by-id-request.dto.js";
17
- export * from "./auction-item-comment/get-auction-item-comment-by-id.schema.js";
17
+ export * from "./auction-item-comment/get-auction-item-comment-by-id-request.schema.js";
18
18
  export * from "./auction-item-comment/get-auction-item-comments-request.dto.js";
19
- export * from "./auction-item-comment/get-auction-item-comments.schema.js";
19
+ export * from "./auction-item-comment/get-auction-item-comments-request.schema.js";
20
20
  export * from "./auction-item-comment/update-auction-item-comment-request.dto.js";
21
- export * from "./auction-item-comment/update-auction-item-comment.schema.js";
21
+ export * from "./auction-item-comment/update-auction-item-comment-request.schema.js";
22
22
  export * from "./auction-item/get-auction-agenda-request.dto.js";
23
23
  export * from "./auction-item/get-auction-agenda-request.schema.js";
24
24
  export * from "./auction-item/get-auction-items-request.dto.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedro.araujo/ml-architecture-shared",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",