@pedro.araujo/ml-architecture-shared 0.1.35 → 0.1.37

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,8 @@
1
+ export declare enum AuctionItemOrderType {
2
+ NEXT_TO_HAPPEN = "NEXT_TO_HAPPEN",
3
+ FARTHEST_TO_HAPPEN = "FARTHEST_TO_HAPPEN",
4
+ RECENTLY_ADDED = "RECENTLY_ADDED",
5
+ LOWEST_MINIMUM_BID = "LOWEST_MINIMUM_BID",
6
+ HIGHEST_APPRAISAL_VALUE = "HIGHEST_APPRAISAL_VALUE"
7
+ }
8
+ //# sourceMappingURL=auction-item-order-type.enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auction-item-order-type.enum.d.ts","sourceRoot":"","sources":["../../src/auction-item/auction-item-order-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;CACpD"}
@@ -0,0 +1,8 @@
1
+ export var AuctionItemOrderType;
2
+ (function (AuctionItemOrderType) {
3
+ AuctionItemOrderType["NEXT_TO_HAPPEN"] = "NEXT_TO_HAPPEN";
4
+ AuctionItemOrderType["FARTHEST_TO_HAPPEN"] = "FARTHEST_TO_HAPPEN";
5
+ AuctionItemOrderType["RECENTLY_ADDED"] = "RECENTLY_ADDED";
6
+ AuctionItemOrderType["LOWEST_MINIMUM_BID"] = "LOWEST_MINIMUM_BID";
7
+ AuctionItemOrderType["HIGHEST_APPRAISAL_VALUE"] = "HIGHEST_APPRAISAL_VALUE";
8
+ })(AuctionItemOrderType || (AuctionItemOrderType = {}));
@@ -1,6 +1,4 @@
1
- import { AuctionItemUserRole } from "../auction-item-user/auction-item-user-role.enum.js";
2
1
  import { PaginationRequestDTO } from "../pagination/pagination-request.dto.js";
3
2
  export interface GetAuctionItemsRequestDTO extends PaginationRequestDTO {
4
- roles?: Exclude<AuctionItemUserRole, AuctionItemUserRole.VIEWER>[];
5
3
  }
6
4
  //# sourceMappingURL=get-auction-items-request.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-auction-items-request.dto.d.ts","sourceRoot":"","sources":["../../src/auction-item/get-auction-items-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACnE,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC;CACtE"}
1
+ {"version":3,"file":"get-auction-items-request.dto.d.ts","sourceRoot":"","sources":["../../src/auction-item/get-auction-items-request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-auction-items-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item/get-auction-items-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAK/E,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAc1E,CAAC"}
1
+ {"version":3,"file":"get-auction-items-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item/get-auction-items-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAK/E,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAsB1E,CAAC"}
@@ -1,13 +1,22 @@
1
1
  import z from "zod";
2
2
  import { PaginationRequestSchema } from "../pagination/pagination-request.schema.js";
3
- import { AuctionItemUserRoleSchema } from "../auction-item-user/auction-item-user-role.schema.js";
4
3
  import { AuctionItemUserRole } from "../auction-item-user/auction-item-user-role.enum.js";
4
+ import { AuctionItemOrderType } from "./auction-item-order-type.enum.js";
5
5
  export const GetAuctionItemsRequestSchema = PaginationRequestSchema.extend({
6
- roles: z
7
- .array(AuctionItemUserRoleSchema.refine(role => role !== AuctionItemUserRole.VIEWER, { message: "VIEWER role is not allowed in this endpoint" }))
6
+ roles: z.enum(AuctionItemUserRole)
7
+ .array()
8
8
  .optional()
9
9
  .default([
10
10
  AuctionItemUserRole.OWNER,
11
11
  AuctionItemUserRole.COLLABORATOR,
12
12
  ]),
13
+ order: z.enum(AuctionItemOrderType).optional(),
14
+ auctionPeriod: z
15
+ .array(z.coerce.date())
16
+ .max(2)
17
+ .optional(),
18
+ itemTypeIds: z.array(z.number()).optional(),
19
+ auctionTypeIds: z.array(z.number()).optional(),
20
+ authorityIds: z.array(z.number()).optional(),
21
+ search: z.string().min(1).optional(),
13
22
  });
@@ -1,6 +1,7 @@
1
1
  import { AuctionSessionStatusResponseDTO } from "../auction-session-status/auction-session-status-response.dto.js";
2
2
  export interface AuctionSessionResponseDTO {
3
3
  id: number;
4
+ sequence: number;
4
5
  scheduledAt: string;
5
6
  status: AuctionSessionStatusResponseDTO;
6
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"auction-session-response.dto.d.ts","sourceRoot":"","sources":["../../src/auction-session/auction-session-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kEAAkE,CAAC;AAEnH,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,+BAA+B,CAAC;CACzC"}
1
+ {"version":3,"file":"auction-session-response.dto.d.ts","sourceRoot":"","sources":["../../src/auction-session/auction-session-response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,kEAAkE,CAAC;AAEnH,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,+BAA+B,CAAC;CACzC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./auction-item/auction-item-id.schema.js";
2
+ export * from "./auction-item/auction-item-order-type.enum.js";
2
3
  export * from "./auction-item/create-auction-item.dto.js";
3
4
  export * from "./auction-item/create-auction-item.schema.js";
4
5
  export * from "./auction-item/delete-auction-item-request.dto.js";
@@ -6,8 +7,6 @@ export * from "./auction-item/delete-auction-item-request.schema.js";
6
7
  export * from "./auction-item/get-auction-items-request.dto.js";
7
8
  export * from "./auction-item/get-auction-items-request.schema.js";
8
9
  export * from "./auction-item/get-auction-items-response.dto.js";
9
- export * from "./auction-item/get-auction-items-view-request.dto.js";
10
- export * from "./auction-item/get-auction-items-view-request.schema.js";
11
10
  export * from "./auction-item-status/auction-item-status-response.dto.js";
12
11
  export * from "./auction-item-type/auction-item-type-response.dto.js";
13
12
  export * from "./auction-item-user/add-auction-item-users-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,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC;AACrE,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;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ction-item-order-type.enum.js";
2
3
  export * from "./auction-item/create-auction-item.dto.js";
3
4
  export * from "./auction-item/create-auction-item.schema.js";
4
5
  export * from "./auction-item/delete-auction-item-request.dto.js";
@@ -6,8 +7,6 @@ export * from "./auction-item/delete-auction-item-request.schema.js";
6
7
  export * from "./auction-item/get-auction-items-request.dto.js";
7
8
  export * from "./auction-item/get-auction-items-request.schema.js";
8
9
  export * from "./auction-item/get-auction-items-response.dto.js";
9
- export * from "./auction-item/get-auction-items-view-request.dto.js";
10
- export * from "./auction-item/get-auction-items-view-request.schema.js";
11
10
  export * from "./auction-item-status/auction-item-status-response.dto.js";
12
11
  export * from "./auction-item-type/auction-item-type-response.dto.js";
13
12
  export * from "./auction-item-user/add-auction-item-users-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.35",
3
+ "version": "0.1.37",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",