@pedro.araujo/ml-architecture-shared 0.1.122 → 0.1.125

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.
@@ -1,6 +1,7 @@
1
+ import { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
1
2
  export interface CreateUserNotificationChannelRequestDTO {
3
+ channelType: NotificationChannelType;
2
4
  value: string;
3
- notifyBeforeMinutes: number;
4
- active: boolean;
5
+ enabled: boolean;
5
6
  }
6
7
  //# sourceMappingURL=create-user-notification-channel-request.dto.d.ts.map
@@ -1 +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"}
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,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AAEzG,MAAM,WAAW,uCAAuC;IACtD,WAAW,EAAE,uBAAuB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -1 +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;AAE5G,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAQ/F,CAAC"}
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,CAK/F,CAAC"}
@@ -1,9 +1,7 @@
1
1
  import { z } from "zod";
2
+ import { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
2
3
  export const CreateUserNotificationChannelSchema = z.object({
3
- value: z
4
- .string()
5
- .length(11, "O valor deve ter exatamente 11 dígitos")
6
- .regex(/^\d+$/, "O valor deve conter apenas números"),
7
- notifyBeforeMinutes: z.coerce.number().int().positive(),
8
- active: z.coerce.boolean(),
4
+ channelType: z.nativeEnum(NotificationChannelType),
5
+ value: z.string(),
6
+ enabled: z.coerce.boolean(),
9
7
  });
@@ -1,6 +1,7 @@
1
+ import { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
1
2
  export interface UpdateUserNotificationChannelRequestDTO {
2
- value: string;
3
- notifyBeforeMinutes: number;
4
- active: boolean;
3
+ channelType: NotificationChannelType;
4
+ value?: string;
5
+ enabled?: boolean;
5
6
  }
6
7
  //# sourceMappingURL=update-user-notification-channel-request.dto.d.ts.map
@@ -1 +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"}
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,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AAEzG,MAAM,WAAW,uCAAuC;IACtD,WAAW,EAAE,uBAAuB,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1 +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;AAE5G,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAQ/F,CAAC"}
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,CAK/F,CAAC"}
@@ -1,9 +1,7 @@
1
1
  import { z } from "zod";
2
+ import { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
2
3
  export const UpdateUserNotificationChannelSchema = z.object({
3
- value: z
4
- .string()
5
- .length(11, "O valor deve ter exatamente 11 dígitos")
6
- .regex(/^\d+$/, "O valor deve conter apenas números"),
7
- notifyBeforeMinutes: z.coerce.number().int().positive(),
8
- active: z.coerce.boolean(),
4
+ channelType: z.nativeEnum(NotificationChannelType),
5
+ value: z.string().optional(),
6
+ enabled: z.coerce.boolean().optional(),
9
7
  });
@@ -1,7 +1,9 @@
1
+ import { NotificationChannelType } from "../notification-channel-type/notification-channel-type.enum.js";
1
2
  export interface UserNotificationChannelResponseDTO {
2
- id: number;
3
- value: string;
4
- notifyBeforeMinutes: number;
5
- active: boolean;
3
+ type: NotificationChannelType;
4
+ value: string | null;
5
+ enabled: boolean;
6
+ verifiedAt: Date | null;
7
+ exists: boolean;
6
8
  }
7
9
  //# sourceMappingURL=user-notification-channel-response.dto.d.ts.map
@@ -1 +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"}
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,OAAO,EAAE,uBAAuB,EAAE,MAAM,gEAAgE,CAAC;AAEzG,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,uBAAuB,CAAC;IAC9B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,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.122",
3
+ "version": "0.1.125",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",