@pedro.araujo/ml-architecture-shared 0.1.135 → 0.1.137
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/dist/auction-item/auction-item-order-type.enum.d.ts +7 -5
- package/dist/auction-item/auction-item-order-type.enum.d.ts.map +1 -1
- package/dist/auction-item/auction-item-order-type.enum.js +15 -5
- package/dist/auction-item-participation/auction-participation-status.enum.d.ts +5 -3
- package/dist/auction-item-participation/auction-participation-status.enum.d.ts.map +1 -1
- package/dist/auction-item-participation/auction-participation-status.enum.js +11 -3
- package/dist/auction-item-participation/auction-participation-type.enum.d.ts +4 -2
- package/dist/auction-item-participation/auction-participation-type.enum.d.ts.map +1 -1
- package/dist/auction-item-participation/auction-participation-type.enum.js +9 -2
- package/dist/auction-item-status/auction-item-status.enum.d.ts +8 -6
- package/dist/auction-item-status/auction-item-status.enum.d.ts.map +1 -1
- package/dist/auction-item-status/auction-item-status.enum.js +17 -6
- package/dist/auction-item-user/auction-item-user-role.enum.d.ts +2 -0
- package/dist/auction-item-user/auction-item-user-role.enum.d.ts.map +1 -1
- package/dist/auction-item-user/auction-item-user-role.enum.js +8 -0
- package/dist/auction-item-user/auction-item-user-status.enum.d.ts +2 -0
- package/dist/auction-item-user/auction-item-user-status.enum.d.ts.map +1 -1
- package/dist/auction-item-user/auction-item-user-status.enum.js +8 -0
- package/dist/auction-source/create-system-auction-sources-request.dto.d.ts +9 -0
- package/dist/auction-source/create-system-auction-sources-request.dto.d.ts.map +1 -0
- package/dist/auction-source/create-system-auction-sources-request.schema.d.ts +4 -0
- package/dist/auction-source/create-system-auction-sources-request.schema.d.ts.map +1 -0
- package/dist/auction-source/create-system-auction-sources-request.schema.js +9 -0
- package/dist/auction-source-type/auction-source-type.enum.d.ts +4 -2
- package/dist/auction-source-type/auction-source-type.enum.d.ts.map +1 -1
- package/dist/auction-source-type/auction-source-type.enum.js +9 -2
- package/dist/counterparty-type/counterparty-type.d.ts +4 -2
- package/dist/counterparty-type/counterparty-type.d.ts.map +1 -1
- package/dist/counterparty-type/counterparty-type.js +9 -2
- package/dist/entity-type/entity-type.enum.d.ts +12 -0
- package/dist/entity-type/entity-type.enum.d.ts.map +1 -0
- package/dist/entity-type/entity-type.enum.js +12 -0
- package/dist/external-auction-item/external-auction-item-order-type.enum.d.ts +7 -5
- package/dist/external-auction-item/external-auction-item-order-type.enum.d.ts.map +1 -1
- package/dist/external-auction-item/external-auction-item-order-type.enum.js +15 -5
- package/dist/external-auction-item/external-auction-item-response.dto.d.ts +0 -1
- package/dist/external-auction-item/external-auction-item-response.dto.d.ts.map +1 -1
- package/dist/external-auction-item-status/external-auction-item-status.enum.d.ts +5 -3
- package/dist/external-auction-item-status/external-auction-item-status.enum.d.ts.map +1 -1
- package/dist/external-auction-item-status/external-auction-item-status.enum.js +11 -3
- package/dist/financial-movement-kind/financial-movement-kind.enum.d.ts +2 -0
- package/dist/financial-movement-kind/financial-movement-kind.enum.d.ts.map +1 -1
- package/dist/financial-movement-kind/financial-movement-kind.enum.js +7 -0
- package/dist/financial-report/financial-report-filters.schema.d.ts +4 -0
- package/dist/financial-report/financial-report-filters.schema.d.ts.map +1 -0
- package/dist/financial-report/financial-report-filters.schema.js +12 -0
- package/dist/financial-report/financial-report-filters.type.d.ts +8 -0
- package/dist/financial-report/financial-report-filters.type.d.ts.map +1 -0
- package/dist/financial-report/financial-report-filters.type.js +1 -0
- package/dist/group/group-order-type.enum.d.ts +8 -6
- package/dist/group/group-order-type.enum.d.ts.map +1 -1
- package/dist/group/group-order-type.enum.js +17 -6
- package/dist/group/group-user-role.enum.d.ts +2 -0
- package/dist/group/group-user-role.enum.d.ts.map +1 -1
- package/dist/group/group-user-role.enum.js +8 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/item-financial-event/item-financial-event-type.enum.d.ts +2 -0
- package/dist/item-financial-event/item-financial-event-type.enum.d.ts.map +1 -1
- package/dist/item-financial-event/item-financial-event-type.enum.js +10 -0
- package/dist/item-financial-event/payment-type.enum.d.ts +2 -0
- package/dist/item-financial-event/payment-type.enum.d.ts.map +1 -1
- package/dist/item-financial-event/payment-type.enum.js +7 -0
- package/dist/item-financial-movement/movement-direction.enum.d.ts +4 -2
- package/dist/item-financial-movement/movement-direction.enum.d.ts.map +1 -1
- package/dist/item-financial-movement/movement-direction.enum.js +9 -2
- package/dist/notification-channel-type/notification-channel-type.enum.d.ts +6 -4
- package/dist/notification-channel-type/notification-channel-type.enum.d.ts.map +1 -1
- package/dist/notification-channel-type/notification-channel-type.enum.js +13 -4
- package/dist/notification-event-type/notification-event-type.enum.d.ts +11 -9
- package/dist/notification-event-type/notification-event-type.enum.d.ts.map +1 -1
- package/dist/notification-event-type/notification-event-type.enum.js +23 -9
- package/dist/report/create-report-request.dto.d.ts +7 -0
- package/dist/report/create-report-request.dto.d.ts.map +1 -0
- package/dist/report/create-report-request.dto.js +1 -0
- package/dist/report/get-reports-request.dto.d.ts +6 -0
- package/dist/report/get-reports-request.dto.d.ts.map +1 -0
- package/dist/report/get-reports-request.dto.js +1 -0
- package/dist/report/get-reports-request.schema.d.ts +4 -0
- package/dist/report/get-reports-request.schema.d.ts.map +1 -0
- package/dist/report/get-reports-request.schema.js +6 -0
- package/dist/report/report-response.dto.d.ts +13 -0
- package/dist/report/report-response.dto.d.ts.map +1 -0
- package/dist/report/report-response.dto.js +1 -0
- package/dist/report-status/report-status.enum.d.ts +8 -0
- package/dist/report-status/report-status.enum.d.ts.map +1 -0
- package/dist/report-status/report-status.enum.js +16 -0
- package/dist/report-type/report-type.enum.d.ts +5 -0
- package/dist/report-type/report-type.enum.d.ts.map +1 -0
- package/dist/report-type/report-type.enum.js +10 -0
- package/dist/report-type/report-type.schema.d.ts +4 -0
- package/dist/report-type/report-type.schema.d.ts.map +1 -0
- package/dist/report-type/report-type.schema.js +3 -0
- package/dist/subscription/billing-cycle.type.d.ts +4 -2
- package/dist/subscription/billing-cycle.type.d.ts.map +1 -1
- package/dist/subscription/billing-cycle.type.js +9 -2
- package/dist/user/update-profile-picture-request.dto.d.ts +4 -0
- package/dist/user/update-profile-picture-request.dto.d.ts.map +1 -0
- package/dist/user/update-profile-picture-request.dto.js +1 -0
- package/dist/user/update-profile-picture-request.schema.d.ts +4 -0
- package/dist/user/update-profile-picture-request.schema.d.ts.map +1 -0
- package/dist/user/update-profile-picture-request.schema.js +5 -0
- package/dist/user/update-username-request.dto.d.ts +4 -0
- package/dist/user/update-username-request.dto.d.ts.map +1 -0
- package/dist/user/update-username-request.dto.js +9 -0
- package/dist/user/update-username-request.schema.d.ts +4 -0
- package/dist/user/update-username-request.schema.d.ts.map +1 -0
- package/dist/user/update-username-request.schema.js +1 -0
- package/dist/user/user-status.enum.d.ts +2 -0
- package/dist/user/user-status.enum.d.ts.map +1 -1
- package/dist/user/user-status.enum.js +8 -0
- package/dist/user-notification-channel/create-user-notification-channel-request.schema.js +1 -1
- package/dist/user-notification-channel/update-user-notification-channel-request.schema.js +1 -1
- package/dist/user-notification-preference/create-user-notification-preference.schema.js +2 -2
- package/package.json +1 -1
- package/dist/auction-item-status/auction-item-status-response.dto.d.ts +0 -9
- package/dist/auction-item-status/auction-item-status-response.dto.d.ts.map +0 -1
- package/dist/auction-item-status/auction-item-status-response.dto.js +0 -9
- package/dist/external-auction-item/create-auction-item.dto.d.ts +0 -19
- package/dist/external-auction-item/create-auction-item.dto.d.ts.map +0 -1
- package/dist/external-auction-item/create-auction-item.schema.d.ts +0 -4
- package/dist/external-auction-item/create-auction-item.schema.d.ts.map +0 -1
- package/dist/external-auction-item/create-auction-item.schema.js +0 -41
- /package/dist/{external-auction-item/create-auction-item.dto.js → auction-source/create-system-auction-sources-request.dto.js} +0 -0
|
@@ -2,8 +2,8 @@ import { z } from "zod";
|
|
|
2
2
|
import { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
|
|
3
3
|
import { NotificationEventType } from "../notification-event-type/notification-event-type.enum.js";
|
|
4
4
|
export const CreateUserNotificationPreferenceSchema = z.object({
|
|
5
|
-
notificationEventType: z.
|
|
6
|
-
notificationChannelType: z.
|
|
5
|
+
notificationEventType: z.enum(NotificationEventType),
|
|
6
|
+
notificationChannelType: z.enum(NotificationChannelType),
|
|
7
7
|
notifyBeforeMinutes: z.coerce.number().int().min(0).nullable(),
|
|
8
8
|
enabled: z.coerce.boolean(),
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auction-item-status-response.dto.d.ts","sourceRoot":"","sources":["../../src/auction-item-status/auction-item-status-response.dto.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export var AuctionItemStatus;
|
|
2
|
-
(function (AuctionItemStatus) {
|
|
3
|
-
AuctionItemStatus["REGISTERED"] = "REGISTERED";
|
|
4
|
-
AuctionItemStatus["DELETED"] = "DELETED";
|
|
5
|
-
AuctionItemStatus["CANCELED"] = "CANCELED";
|
|
6
|
-
AuctionItemStatus["AUCTIONED"] = "AUCTIONED";
|
|
7
|
-
AuctionItemStatus["SOLD"] = "SOLD";
|
|
8
|
-
AuctionItemStatus["ARCHIVED"] = "ARCHIVED";
|
|
9
|
-
})(AuctionItemStatus || (AuctionItemStatus = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CreateAuctionSessionRequestDTO } from "../auction-session/create-auction-session-request.dto.js";
|
|
2
|
-
export interface CreateExternalAuctionItemDTO {
|
|
3
|
-
title: string;
|
|
4
|
-
auctionLink: string;
|
|
5
|
-
itemTypePublicId: string;
|
|
6
|
-
auctionTypePublicId: string;
|
|
7
|
-
auctionSourcePublicId: string;
|
|
8
|
-
externalId: string;
|
|
9
|
-
authorityPublicId?: string | null;
|
|
10
|
-
sessions: CreateAuctionSessionRequestDTO[];
|
|
11
|
-
jurisdiction?: string | null;
|
|
12
|
-
auctioneerAppraisalValue?: number | null;
|
|
13
|
-
marketAppraisalValue?: number | null;
|
|
14
|
-
minimumBidAmount?: number | null;
|
|
15
|
-
highestBidAmount?: number | null;
|
|
16
|
-
notes?: string | null;
|
|
17
|
-
photoUrl?: string | null;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=create-auction-item.dto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-auction-item.dto.d.ts","sourceRoot":"","sources":["../../src/external-auction-item/create-auction-item.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AAE1G,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAEpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IAEnB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,QAAQ,EAAE,8BAA8B,EAAE,CAAC;IAE3C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-auction-item.schema.d.ts","sourceRoot":"","sources":["../../src/external-auction-item/create-auction-item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAE5E,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CA+ChF,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { CreateAuctionSessionRequestSchema } from "../auction-session/create-auction-session-request.schema.js";
|
|
3
|
-
import { NullableMoneySchema } from "../utils/nullable-money-schema.js";
|
|
4
|
-
import { publicIdSchema } from "../public-id/public-id.schema.js";
|
|
5
|
-
export const CreateExternalAuctionItemSchema = z.object({
|
|
6
|
-
title: z.string().min(2).max(255),
|
|
7
|
-
auctionLink: z.url().max(2048),
|
|
8
|
-
itemTypePublicId: publicIdSchema(),
|
|
9
|
-
auctionTypePublicId: publicIdSchema(),
|
|
10
|
-
auctionSourcePublicId: publicIdSchema(),
|
|
11
|
-
externalId: z.string().max(255),
|
|
12
|
-
authorityPublicId: publicIdSchema().nullable().optional(),
|
|
13
|
-
sessions: z
|
|
14
|
-
.array(CreateAuctionSessionRequestSchema)
|
|
15
|
-
.min(1, "Pelo menos uma sessão deve ser informada")
|
|
16
|
-
.max(4, "O máximo permitido é de 4 sessões")
|
|
17
|
-
.superRefine((sessions, ctx) => {
|
|
18
|
-
const sequences = sessions.map((s) => s.sequence);
|
|
19
|
-
const unique = new Set(sequences);
|
|
20
|
-
if (unique.size !== sequences.length) {
|
|
21
|
-
ctx.addIssue({
|
|
22
|
-
code: z.ZodIssueCode.custom,
|
|
23
|
-
message: "As sessões do leilão não podem possuir sequências repetidas",
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
const hasAtLeastOneScheduledAt = sessions.some((session) => !!session.scheduledAt);
|
|
27
|
-
if (!hasAtLeastOneScheduledAt) {
|
|
28
|
-
ctx.addIssue({
|
|
29
|
-
code: z.ZodIssueCode.custom,
|
|
30
|
-
message: "Pelo menos uma sessão deve possuir data de agendamento",
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}),
|
|
34
|
-
jurisdiction: z.string().max(100).nullable().optional(),
|
|
35
|
-
auctioneerAppraisalValue: NullableMoneySchema.optional(),
|
|
36
|
-
marketAppraisalValue: NullableMoneySchema.optional(),
|
|
37
|
-
minimumBidAmount: NullableMoneySchema.optional(),
|
|
38
|
-
highestBidAmount: NullableMoneySchema.optional(),
|
|
39
|
-
notes: z.string().max(2000).nullable().optional(),
|
|
40
|
-
photoUrl: z.url().max(2048).nullable().optional(),
|
|
41
|
-
});
|