@pedro.araujo/ml-architecture-shared 0.1.64 → 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.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/phone/brazil-whatsapp.regex.d.ts +2 -0
- package/dist/phone/brazil-whatsapp.regex.d.ts.map +1 -0
- package/dist/phone/brazil-whatsapp.regex.js +1 -0
- package/dist/user-notification-channel/create-user-notification-channel-request.dto.d.ts +6 -0
- package/dist/user-notification-channel/create-user-notification-channel-request.dto.d.ts.map +1 -0
- package/dist/user-notification-channel/create-user-notification-channel-request.dto.js +1 -0
- package/dist/user-notification-channel/create-user-notification-channel-request.schema.d.ts +4 -0
- package/dist/user-notification-channel/create-user-notification-channel-request.schema.d.ts.map +1 -0
- package/dist/user-notification-channel/create-user-notification-channel-request.schema.js +9 -0
- package/dist/user-notification-channel/update-user-notification-channel-request.dto.d.ts +6 -0
- package/dist/user-notification-channel/update-user-notification-channel-request.dto.d.ts.map +1 -0
- package/dist/user-notification-channel/update-user-notification-channel-request.dto.js +1 -0
- package/dist/user-notification-channel/update-user-notification-channel-request.schema.d.ts +4 -0
- package/dist/user-notification-channel/update-user-notification-channel-request.schema.d.ts.map +1 -0
- package/dist/user-notification-channel/update-user-notification-channel-request.schema.js +9 -0
- package/dist/user-notification-channel/user-notification-channel-response.dto.d.ts +7 -0
- package/dist/user-notification-channel/user-notification-channel-response.dto.d.ts.map +1 -0
- package/dist/user-notification-channel/user-notification-channel-response.dto.js +1 -0
- package/package.json +1 -1
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,6CAA6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tD,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,kCAAkC,CAAC;AAEjD,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
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
package/dist/user-notification-channel/create-user-notification-channel-request.schema.d.ts.map
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
package/dist/user-notification-channel/update-user-notification-channel-request.schema.d.ts.map
ADDED
|
@@ -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 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|