@pedro.araujo/ml-architecture-shared 0.1.63 → 0.1.65

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.
Files changed (25) hide show
  1. package/dist/auction-item/preview-auction-item-request.schema.d.ts +1 -1
  2. package/dist/auction-item/preview-auction-item-request.schema.d.ts.map +1 -1
  3. package/dist/auction-item/preview-auction-item-request.schema.js +2 -2
  4. package/dist/index.d.ts +6 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +6 -0
  7. package/dist/phone/brazil-whatsapp.regex.d.ts +2 -0
  8. package/dist/phone/brazil-whatsapp.regex.d.ts.map +1 -0
  9. package/dist/phone/brazil-whatsapp.regex.js +1 -0
  10. package/dist/user-notification-channel/create-user-notification-channel-request.dto.d.ts +6 -0
  11. package/dist/user-notification-channel/create-user-notification-channel-request.dto.d.ts.map +1 -0
  12. package/dist/user-notification-channel/create-user-notification-channel-request.dto.js +1 -0
  13. package/dist/user-notification-channel/create-user-notification-channel-request.schema.d.ts +4 -0
  14. package/dist/user-notification-channel/create-user-notification-channel-request.schema.d.ts.map +1 -0
  15. package/dist/user-notification-channel/create-user-notification-channel-request.schema.js +9 -0
  16. package/dist/user-notification-channel/update-user-notification-channel-request.dto.d.ts +6 -0
  17. package/dist/user-notification-channel/update-user-notification-channel-request.dto.d.ts.map +1 -0
  18. package/dist/user-notification-channel/update-user-notification-channel-request.dto.js +1 -0
  19. package/dist/user-notification-channel/update-user-notification-channel-request.schema.d.ts +4 -0
  20. package/dist/user-notification-channel/update-user-notification-channel-request.schema.d.ts.map +1 -0
  21. package/dist/user-notification-channel/update-user-notification-channel-request.schema.js +9 -0
  22. package/dist/user-notification-channel/user-notification-channel-response.dto.d.ts +7 -0
  23. package/dist/user-notification-channel/user-notification-channel-response.dto.d.ts.map +1 -0
  24. package/dist/user-notification-channel/user-notification-channel-response.dto.js +1 -0
  25. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import { z } from "zod";
2
2
  import { PreviewAuctionItemRequestDTO } from "./preview-auction-item-request.dto.js";
3
- export declare const PreviewAuctionItemSchema: z.ZodType<PreviewAuctionItemRequestDTO>;
3
+ export declare const PreviewAuctionItemRequestSchema: z.ZodType<PreviewAuctionItemRequestDTO>;
4
4
  //# sourceMappingURL=preview-auction-item-request.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"preview-auction-item-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item/preview-auction-item-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAGzE,CAAC"}
1
+ {"version":3,"file":"preview-auction-item-request.schema.d.ts","sourceRoot":"","sources":["../../src/auction-item/preview-auction-item-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAGhF,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { z } from "zod";
2
- export const PreviewAuctionItemSchema = z.object({
3
- url: z.url(),
2
+ export const PreviewAuctionItemRequestSchema = z.object({
3
+ url: z.url().max(2048),
4
4
  });
package/dist/index.d.ts CHANGED
@@ -57,7 +57,13 @@ export * from "./item-note-type/item-note-type-response.dto.js";
57
57
  export * from "./pagination/pagination-request.schema.js";
58
58
  export * from "./pagination/pagination-request.dto.js";
59
59
  export * from "./pagination/pagination-response.dto.js";
60
+ export * from "./phone/brazil-whatsapp.regex.js";
60
61
  export * from "./responsible-authority/responsible-authority-response.dto.js";
61
62
  export * from "./user/user-response.dto.js";
62
63
  export * from "./user/user-status.enum.js";
64
+ export * from "./user-notification-channel/create-user-notification-channel-request.dto.js";
65
+ export * from "./user-notification-channel/create-user-notification-channel-request.schema.js";
66
+ export * from "./user-notification-channel/update-user-notification-channel-request.dto.js";
67
+ export * from "./user-notification-channel/update-user-notification-channel-request.schema.js";
68
+ export * from "./user-notification-channel/user-notification-channel-response.dto.js";
63
69
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAErE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC;AAEjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AAEtE,cAAc,2DAA2D,CAAC;AAE1E,cAAc,uDAAuD,CAAC;AAEtE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,uDAAuD,CAAC;AACtE,cAAc,oDAAoD,CAAC;AACnE,cAAc,sDAAsD,CAAC;AACrE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,gEAAgE,CAAC;AAE/E,cAAc,mDAAmD,CAAC;AAElE,cAAc,iEAAiE,CAAC;AAEhF,cAAc,6CAA6C,CAAC;AAE5D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,c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AAC;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
@@ -57,6 +57,12 @@ export * from "./item-note-type/item-note-type-response.dto.js";
57
57
  export * from "./pagination/pagination-request.schema.js";
58
58
  export * from "./pagination/pagination-request.dto.js";
59
59
  export * from "./pagination/pagination-response.dto.js";
60
+ export * from "./phone/brazil-whatsapp.regex.js";
60
61
  export * from "./responsible-authority/responsible-authority-response.dto.js";
61
62
  export * from "./user/user-response.dto.js";
62
63
  export * from "./user/user-status.enum.js";
64
+ export * from "./user-notification-channel/create-user-notification-channel-request.dto.js";
65
+ export * from "./user-notification-channel/create-user-notification-channel-request.schema.js";
66
+ export * from "./user-notification-channel/update-user-notification-channel-request.dto.js";
67
+ export * from "./user-notification-channel/update-user-notification-channel-request.schema.js";
68
+ export * from "./user-notification-channel/user-notification-channel-response.dto.js";
@@ -0,0 +1,2 @@
1
+ export declare const BRAZIL_WHATSAPP_REGEX: RegExp;
2
+ //# sourceMappingURL=brazil-whatsapp.regex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brazil-whatsapp.regex.d.ts","sourceRoot":"","sources":["../../src/phone/brazil-whatsapp.regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,QAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export const BRAZIL_WHATSAPP_REGEX = /^55\d{2}9\d{8}$/;
@@ -0,0 +1,6 @@
1
+ export interface CreateUserNotificationChannelRequestDTO {
2
+ value: string;
3
+ notifyBeforeMinutes: number;
4
+ active: boolean;
5
+ }
6
+ //# sourceMappingURL=create-user-notification-channel-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-notification-channel-request.dto.d.ts","sourceRoot":"","sources":["../../src/user-notification-channel/create-user-notification-channel-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { CreateUserNotificationChannelRequestDTO } from "./create-user-notification-channel-request.dto.js";
3
+ export declare const CreateUserNotificationChannelSchema: z.ZodType<CreateUserNotificationChannelRequestDTO>;
4
+ //# sourceMappingURL=create-user-notification-channel-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user-notification-channel-request.schema.d.ts","sourceRoot":"","sources":["../../src/user-notification-channel/create-user-notification-channel-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAC;AAG5G,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAU/F,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ import { BRAZIL_WHATSAPP_REGEX } from "../phone/brazil-whatsapp.regex.js";
3
+ export const CreateUserNotificationChannelSchema = z.object({
4
+ value: z
5
+ .string()
6
+ .regex(BRAZIL_WHATSAPP_REGEX, "Número de WhatsApp inválido. Use o formato 55DDDNÚMERO (ex: 5511998765432)"),
7
+ notifyBeforeMinutes: z.coerce.number().int().positive(),
8
+ active: z.coerce.boolean(),
9
+ });
@@ -0,0 +1,6 @@
1
+ export interface UpdateUserNotificationChannelRequestDTO {
2
+ value: string;
3
+ notifyBeforeMinutes: number;
4
+ active: boolean;
5
+ }
6
+ //# sourceMappingURL=update-user-notification-channel-request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user-notification-channel-request.dto.d.ts","sourceRoot":"","sources":["../../src/user-notification-channel/update-user-notification-channel-request.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+ import { UpdateUserNotificationChannelRequestDTO } from "./update-user-notification-channel-request.dto.js";
3
+ export declare const UpdateUserNotificationChannelSchema: z.ZodType<UpdateUserNotificationChannelRequestDTO>;
4
+ //# sourceMappingURL=update-user-notification-channel-request.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user-notification-channel-request.schema.d.ts","sourceRoot":"","sources":["../../src/user-notification-channel/update-user-notification-channel-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAC;AAG5G,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAU/F,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ import { BRAZIL_WHATSAPP_REGEX } from "../phone/brazil-whatsapp.regex.js";
3
+ export const UpdateUserNotificationChannelSchema = z.object({
4
+ value: z
5
+ .string()
6
+ .regex(BRAZIL_WHATSAPP_REGEX, "Número de WhatsApp inválido. Use o formato 55DDDNÚMERO (ex: 5511998765432)"),
7
+ notifyBeforeMinutes: z.coerce.number().int().positive(),
8
+ active: z.coerce.boolean(),
9
+ });
@@ -0,0 +1,7 @@
1
+ export interface UserNotificationChannelResponseDTO {
2
+ id: number;
3
+ value: string;
4
+ notifyBeforeMinutes: number;
5
+ active: boolean;
6
+ }
7
+ //# sourceMappingURL=user-notification-channel-response.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-notification-channel-response.dto.d.ts","sourceRoot":"","sources":["../../src/user-notification-channel/user-notification-channel-response.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedro.araujo/ml-architecture-shared",
3
- "version": "0.1.63",
3
+ "version": "0.1.65",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",