@pedro.araujo/ml-architecture-shared 0.1.24 → 0.1.26

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/README.md CHANGED
@@ -4,7 +4,7 @@ Atualizar um pacote já publicado no npm
4
4
  Faça as mudanças necessárias no projeto.
5
5
 
6
6
  2) Atualizar a versão
7
- npm version patch # feature → 0.1.6
7
+ npm version patch
8
8
 
9
9
  (opções: patch, minor, major)
10
10
 
@@ -12,4 +12,4 @@ npm version patch # feature → 0.1.6
12
12
  git push --follow-tags
13
13
 
14
14
  4) Publicar no npm
15
- npm publish --access public
15
+ npm publish
package/dist/index.d.ts CHANGED
@@ -22,8 +22,10 @@ export * from "./item-note/delete-item-note-request.dto.js";
22
22
  export * from "./item-note/delete-item-note-request.schema.js";
23
23
  export * from "./item-note/get-item-notes-by-auction-item-request.dto.js";
24
24
  export * from "./item-note/get-item-notes-by-auction-item-request.schema.js";
25
+ export * from "./item-note/item-note-response.dto.js";
25
26
  export * from "./item-note/update-item-note-request.dto.js";
26
27
  export * from "./item-note/update-item-note-request.schema.js";
28
+ export * from "./item-note-type/item-note-type-response.dto.js";
27
29
  export * from "./pagination/pagination-request.schema.js";
28
30
  export * from "./pagination/pagination-request.dto.js";
29
31
  export * from "./pagination/pagination-response.dto.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yDAAyD,CAAC;AAExE,cAAc,2DAA2D,CAAC;AAE1E,cAAc,uDAAuD,CAAC;AAEtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,oDAAoD,CAAC;AACnE,cAA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,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"}
package/dist/index.js CHANGED
@@ -22,8 +22,10 @@ export * from "./item-note/delete-item-note-request.dto.js";
22
22
  export * from "./item-note/delete-item-note-request.schema.js";
23
23
  export * from "./item-note/get-item-notes-by-auction-item-request.dto.js";
24
24
  export * from "./item-note/get-item-notes-by-auction-item-request.schema.js";
25
+ export * from "./item-note/item-note-response.dto.js";
25
26
  export * from "./item-note/update-item-note-request.dto.js";
26
27
  export * from "./item-note/update-item-note-request.schema.js";
28
+ export * from "./item-note-type/item-note-type-response.dto.js";
27
29
  export * from "./pagination/pagination-request.schema.js";
28
30
  export * from "./pagination/pagination-request.dto.js";
29
31
  export * from "./pagination/pagination-response.dto.js";
@@ -1,4 +1,5 @@
1
1
  export interface DeleteItemNoteRequestDTO {
2
+ auctionItemId: number;
2
3
  itemNoteId: number;
3
4
  }
4
5
  //# sourceMappingURL=delete-item-note-request.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item-note-request.dto.d.ts","sourceRoot":"","sources":["../../src/item-note/delete-item-note-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"delete-item-note-request.dto.d.ts","sourceRoot":"","sources":["../../src/item-note/delete-item-note-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item-note-request.schema.d.ts","sourceRoot":"","sources":["../../src/item-note/delete-item-note-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAGjE,CAAC"}
1
+ {"version":3,"file":"delete-item-note-request.schema.d.ts","sourceRoot":"","sources":["../../src/item-note/delete-item-note-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAIjE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
2
  export const DeleteItemNoteSchema = z.object({
3
+ auctionItemId: z.coerce.number().int().positive(),
3
4
  itemNoteId: z.coerce.number().int().positive(),
4
5
  });
@@ -0,0 +1,11 @@
1
+ import { ItemNoteTypeResponseDTO } from "../item-note-type/item-note-type-response.dto.js";
2
+ import { UserResponseDTO } from "../user/user-response.dto.js";
3
+ export interface ItemNoteResponseDTO {
4
+ id: number;
5
+ type: ItemNoteTypeResponseDTO;
6
+ content: string;
7
+ createdBy: UserResponseDTO;
8
+ createdAt: string;
9
+ updatedAt?: string;
10
+ }
11
+ //# sourceMappingURL=item-note-response.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-note-response.dto.d.ts","sourceRoot":"","sources":["../../src/item-note/item-note-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  export interface UpdateItemNoteRequestDTO {
2
+ auctionItemId: number;
2
3
  itemNoteId: number;
3
4
  typeId: number;
4
5
  content: string;
@@ -1 +1 @@
1
- {"version":3,"file":"update-item-note-request.dto.d.ts","sourceRoot":"","sources":["../../src/item-note/update-item-note-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"update-item-note-request.dto.d.ts","sourceRoot":"","sources":["../../src/item-note/update-item-note-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-item-note-request.schema.d.ts","sourceRoot":"","sources":["../../src/item-note/update-item-note-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAKjE,CAAC"}
1
+ {"version":3,"file":"update-item-note-request.schema.d.ts","sourceRoot":"","sources":["../../src/item-note/update-item-note-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAMjE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export const UpdateItemNoteSchema = z.object({
3
+ auctionItemId: z.coerce.number().int().positive(),
3
4
  itemNoteId: z.coerce.number().int().positive(),
4
5
  typeId: z.coerce.number().int().positive(),
5
6
  content: z.string().min(1).max(1000),
@@ -0,0 +1,5 @@
1
+ export interface ItemNoteTypeResponseDTO {
2
+ id: number;
3
+ title: string;
4
+ }
5
+ //# sourceMappingURL=item-note-type-response.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-note-type-response.dto.d.ts","sourceRoot":"","sources":["../../src/item-note-type/item-note-type-response.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedro.araujo/ml-architecture-shared",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",