@bgord/bun 1.0.7 → 1.0.9

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 (28) hide show
  1. package/dist/modules/history/ports/history-reader.d.ts +5 -0
  2. package/dist/modules/history/ports/history-reader.d.ts.map +1 -0
  3. package/dist/modules/history/ports/history-reader.js +2 -0
  4. package/dist/modules/history/ports/history-reader.js.map +1 -0
  5. package/dist/modules/history/ports/index.d.ts +1 -0
  6. package/dist/modules/history/ports/index.d.ts.map +1 -1
  7. package/dist/modules/history/ports/index.js +1 -0
  8. package/dist/modules/history/ports/index.js.map +1 -1
  9. package/dist/modules/history/value-objects/history-created-at.d.ts +4 -0
  10. package/dist/modules/history/value-objects/history-created-at.d.ts.map +1 -0
  11. package/dist/modules/history/value-objects/history-created-at.js +3 -0
  12. package/dist/modules/history/value-objects/history-created-at.js.map +1 -0
  13. package/dist/modules/history/value-objects/history.d.ts +2 -0
  14. package/dist/modules/history/value-objects/history.d.ts.map +1 -1
  15. package/dist/modules/history/value-objects/history.js +3 -0
  16. package/dist/modules/history/value-objects/history.js.map +1 -1
  17. package/dist/modules/history/value-objects/index.d.ts +1 -0
  18. package/dist/modules/history/value-objects/index.d.ts.map +1 -1
  19. package/dist/modules/history/value-objects/index.js +1 -0
  20. package/dist/modules/history/value-objects/index.js.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/package.json +7 -7
  23. package/readme.md +2 -0
  24. package/src/modules/history/ports/history-reader.ts +5 -0
  25. package/src/modules/history/ports/index.ts +1 -0
  26. package/src/modules/history/value-objects/history-created-at.ts +6 -0
  27. package/src/modules/history/value-objects/history.ts +3 -0
  28. package/src/modules/history/value-objects/index.ts +1 -0
@@ -0,0 +1,5 @@
1
+ import type * as VO from "../value-objects";
2
+ export interface HistoryReaderPort {
3
+ read(subject: VO.HistoryParsedType["subject"]): Promise<VO.HistoryType>;
4
+ }
5
+ //# sourceMappingURL=history-reader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-reader.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/ports/history-reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;CACzE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=history-reader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-reader.js","sourceRoot":"","sources":["../../../../src/modules/history/ports/history-reader.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
1
  export * from "./history-projection";
2
+ export * from "./history-reader";
2
3
  export * from "./history-writer";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/ports/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/ports/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from "./history-projection";
2
+ export * from "./history-reader";
2
3
  export * from "./history-writer";
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/history/ports/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/history/ports/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { z } from "zod/v4";
2
+ export declare const HistoryCreatedAt: z.core.$ZodBranded<z.ZodNumber, "Timestamp">;
3
+ export type HistoryCreatedAtType = z.infer<typeof HistoryCreatedAt>;
4
+ //# sourceMappingURL=history-created-at.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-created-at.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-created-at.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,gBAAgB,8CAAkB,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as tools from "@bgord/tools";
2
+ export const HistoryCreatedAt = tools.Timestamp;
3
+ //# sourceMappingURL=history-created-at.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-created-at.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history-created-at.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,SAAS,CAAC"}
@@ -4,6 +4,7 @@ declare const History: z.ZodObject<{
4
4
  operation: z.ZodString;
5
5
  payload: z.ZodRecord<z.ZodString, z.ZodAny>;
6
6
  subject: z.ZodString;
7
+ createdAt: z.core.$ZodBranded<z.ZodNumber, "Timestamp">;
7
8
  }, z.core.$strip>;
8
9
  export type HistoryType = z.infer<typeof History>;
9
10
  export declare const HistoryParsed: z.ZodObject<{
@@ -11,6 +12,7 @@ export declare const HistoryParsed: z.ZodObject<{
11
12
  operation: z.ZodString;
12
13
  payload: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<string, Record<string, any>>>;
13
14
  subject: z.ZodString;
15
+ createdAt: z.core.$ZodBranded<z.ZodNumber, "Timestamp">;
14
16
  }, z.core.$strip>;
15
17
  export type HistoryParsedType = z.infer<typeof HistoryParsed>;
16
18
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B,QAAA,MAAM,OAAO;;;;;iBAKX,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAElD,eAAO,MAAM,aAAa;;;;;iBAKxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAO3B,QAAA,MAAM,OAAO;;;;;;iBAMX,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAElD,eAAO,MAAM,aAAa;;;;;;iBAMxB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod/v4";
2
+ import { HistoryCreatedAt } from "./history-created-at";
2
3
  import { HistoryId } from "./history-id";
3
4
  import { HistoryOperation } from "./history-operation";
4
5
  import { HistoryPayload, HistoryPayloadParsed } from "./history-payload";
@@ -8,11 +9,13 @@ const History = z.object({
8
9
  operation: HistoryOperation,
9
10
  payload: HistoryPayload,
10
11
  subject: HistorySubject,
12
+ createdAt: HistoryCreatedAt,
11
13
  });
12
14
  export const HistoryParsed = z.object({
13
15
  id: HistoryId,
14
16
  operation: HistoryOperation,
15
17
  payload: HistoryPayloadParsed,
16
18
  subject: HistorySubject,
19
+ createdAt: HistoryCreatedAt,
17
20
  });
18
21
  //# sourceMappingURL=history.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"history.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IACvB,EAAE,EAAE,SAAS;IACb,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;CACxB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,SAAS;IACb,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,cAAc;CACxB,CAAC,CAAC"}
1
+ {"version":3,"file":"history.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IACvB,EAAE,EAAE,SAAS;IACb,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,gBAAgB;CAC5B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,SAAS;IACb,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,cAAc;IACvB,SAAS,EAAE,gBAAgB;CAC5B,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./history";
2
+ export * from "./history-created-at";
2
3
  export * from "./history-id";
3
4
  export * from "./history-operation";
4
5
  export * from "./history-payload";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./history";
2
+ export * from "./history-created-at";
2
3
  export * from "./history-id";
3
4
  export * from "./history-operation";
4
5
  export * from "./history-payload";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/history/value-objects/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}