@levrbet/shared 0.4.17 → 0.4.18

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.
@@ -4,3 +4,4 @@ export * from "./indexers.types";
4
4
  export * from "./misc.types";
5
5
  export * from "./oracle";
6
6
  export * from "./privy.types";
7
+ export * from "./notifications";
@@ -20,4 +20,5 @@ __exportStar(require("./indexers.types"), exports);
20
20
  __exportStar(require("./misc.types"), exports);
21
21
  __exportStar(require("./oracle"), exports);
22
22
  __exportStar(require("./privy.types"), exports);
23
+ __exportStar(require("./notifications"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B;AAC5B,mDAAgC;AAChC,+CAA4B;AAC5B,2CAAwB;AACxB,gDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B;AAC5B,mDAAgC;AAChC,+CAA4B;AAC5B,2CAAwB;AACxB,gDAA6B;AAC7B,kDAA+B"}
@@ -0,0 +1 @@
1
+ export * from "./system.alerts.types";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./system.alerts.types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/types/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC"}
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ export declare const AlertSeveritySchema: z.ZodEnum<{
3
+ LOW: "LOW";
4
+ MEDIUM: "MEDIUM";
5
+ HIGH: "HIGH";
6
+ CRITICAL: "CRITICAL";
7
+ }>;
8
+ export declare const AlertMessageSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ type: z.ZodEnum<{
11
+ error: "error";
12
+ success: "success";
13
+ info: "info";
14
+ warning: "warning";
15
+ }>;
16
+ title: z.ZodString;
17
+ message: z.ZodString;
18
+ timestamp: z.ZodDate;
19
+ severity: z.ZodEnum<{
20
+ LOW: "LOW";
21
+ MEDIUM: "MEDIUM";
22
+ HIGH: "HIGH";
23
+ CRITICAL: "CRITICAL";
24
+ }>;
25
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
+ acknowledged: z.ZodOptional<z.ZodBoolean>;
27
+ description: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ export type AlertSeverity = z.infer<typeof AlertSeveritySchema>;
30
+ export type AlertMessage = z.infer<typeof AlertMessageSchema>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlertMessageSchema = exports.AlertSeveritySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.AlertSeveritySchema = zod_1.z.enum(["LOW", "MEDIUM", "HIGH", "CRITICAL"]);
6
+ exports.AlertMessageSchema = zod_1.z.object({
7
+ id: zod_1.z.string(),
8
+ type: zod_1.z.enum(["info", "warning", "error", "success"]),
9
+ title: zod_1.z.string(),
10
+ message: zod_1.z.string().max(300),
11
+ timestamp: zod_1.z.date(),
12
+ severity: exports.AlertSeveritySchema,
13
+ metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
14
+ acknowledged: zod_1.z.boolean().optional(),
15
+ description: zod_1.z.string().max(200).optional(),
16
+ });
17
+ //# sourceMappingURL=system.alerts.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.alerts.types.js","sourceRoot":"","sources":["../../../../src/core/types/notifications/system.alerts.types.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,mBAAmB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;AAEnE,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IACrD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC5B,SAAS,EAAE,OAAC,CAAC,IAAI,EAAE;IACnB,QAAQ,EAAE,2BAAmB;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,YAAY,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levrbet/shared",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {