@hg-ts/knex 0.7.13 → 0.7.14
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/outbox/index.d.ts +0 -1
- package/dist/outbox/index.d.ts.map +1 -1
- package/dist/outbox/index.js +0 -1
- package/dist/outbox/index.js.map +1 -1
- package/dist/outbox/outbox.repository.d.ts +2 -2
- package/dist/outbox/outbox.repository.d.ts.map +1 -1
- package/dist/outbox/outbox.repository.js.map +1 -1
- package/package.json +26 -24
- package/src/outbox/index.ts +0 -1
- package/src/outbox/outbox.repository.ts +2 -2
- package/dist/outbox/outbox.event.d.ts +0 -18
- package/dist/outbox/outbox.event.d.ts.map +0 -1
- package/dist/outbox/outbox.event.js +0 -11
- package/dist/outbox/outbox.event.js.map +0 -1
- package/src/outbox/outbox.event.ts +0 -28
package/dist/outbox/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/outbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,gDAAgD,CAAC;AAElF,cAAc,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/outbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,gDAAgD,CAAC;AAElF,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/outbox/index.js
CHANGED
package/dist/outbox/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/outbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,gDAAgD,CAAC;AAElF,cAAc,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/outbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,gDAAgD,CAAC;AAElF,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OutboxEvent } from '@hg-ts/outbox-client';
|
|
2
|
+
import { EventTable } from '../events/index.js';
|
|
2
3
|
import { KnexService } from '../knex.service.js';
|
|
3
|
-
import { OutboxEvent } from './outbox.event.js';
|
|
4
4
|
type OutboxTable = EventTable & {
|
|
5
5
|
routeGroupKey: string;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbox.repository.d.ts","sourceRoot":"","sources":["../../src/outbox/outbox.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"outbox.repository.d.ts","sourceRoot":"","sources":["../../src/outbox/outbox.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,KAAK,WAAW,GAAG,UAAU,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,OAAO,QAAQ,sBAAsB,CAAC;IAErC,UAAU,MAAM;QACf,MAAM,EAAE,WAAW,CAAC;KACpB;CACD;AAED,qBAAa,gBAAgB;IAE5B,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAExB,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAQjC,GAAG,CAAC,aAAa,EAAE,WAAW,GAAG,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAqB3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbox.repository.js","sourceRoot":"","sources":["../../src/outbox/outbox.repository.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"outbox.rep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IAAI;SAChB,CAAC,CAAC,CAAC;QAEJ,MAAM,GAAG,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACD;AA/BmB;IADlB,MAAM,EAAE;8BACgB,WAAW;8CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/knex",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,19 +19,20 @@
|
|
|
19
19
|
"test:dev": "vitest watch"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@hg-ts-config/typescript": "0.7.
|
|
23
|
-
"@hg-ts/async-context": "0.7.
|
|
24
|
-
"@hg-ts/config-loader": "0.7.
|
|
25
|
-
"@hg-ts/domain": "0.7.
|
|
26
|
-
"@hg-ts/events": "0.7.
|
|
27
|
-
"@hg-ts/exception": "0.7.
|
|
28
|
-
"@hg-ts/execution-mode": "0.7.
|
|
29
|
-
"@hg-ts/linter": "0.7.
|
|
30
|
-
"@hg-ts/logger": "0.7.
|
|
31
|
-
"@hg-ts/
|
|
32
|
-
"@hg-ts/
|
|
33
|
-
"@hg-ts/
|
|
34
|
-
"@hg-ts/
|
|
22
|
+
"@hg-ts-config/typescript": "0.7.14",
|
|
23
|
+
"@hg-ts/async-context": "0.7.14",
|
|
24
|
+
"@hg-ts/config-loader": "0.7.14",
|
|
25
|
+
"@hg-ts/domain": "0.7.14",
|
|
26
|
+
"@hg-ts/events": "0.7.14",
|
|
27
|
+
"@hg-ts/exception": "0.7.14",
|
|
28
|
+
"@hg-ts/execution-mode": "0.7.14",
|
|
29
|
+
"@hg-ts/linter": "0.7.14",
|
|
30
|
+
"@hg-ts/logger": "0.7.14",
|
|
31
|
+
"@hg-ts/outbox-client": "0.7.14",
|
|
32
|
+
"@hg-ts/repository": "0.7.14",
|
|
33
|
+
"@hg-ts/tests": "0.7.14",
|
|
34
|
+
"@hg-ts/types": "0.7.14",
|
|
35
|
+
"@hg-ts/validation": "0.7.14",
|
|
35
36
|
"@nestjs/common": "11.1.0",
|
|
36
37
|
"@nestjs/core": "11.1.0",
|
|
37
38
|
"@nestjs/testing": "11.1.0",
|
|
@@ -49,16 +50,17 @@
|
|
|
49
50
|
"vitest": "4.0.14"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|
|
52
|
-
"@hg-ts/async-context": "0.7.
|
|
53
|
-
"@hg-ts/config-loader": "0.7.
|
|
54
|
-
"@hg-ts/domain": "0.7.
|
|
55
|
-
"@hg-ts/events": "0.7.
|
|
56
|
-
"@hg-ts/exception": "0.7.
|
|
57
|
-
"@hg-ts/execution-mode": "0.7.
|
|
58
|
-
"@hg-ts/logger": "0.7.
|
|
59
|
-
"@hg-ts/
|
|
60
|
-
"@hg-ts/
|
|
61
|
-
"@hg-ts/
|
|
53
|
+
"@hg-ts/async-context": "0.7.14",
|
|
54
|
+
"@hg-ts/config-loader": "0.7.14",
|
|
55
|
+
"@hg-ts/domain": "0.7.14",
|
|
56
|
+
"@hg-ts/events": "0.7.14",
|
|
57
|
+
"@hg-ts/exception": "0.7.14",
|
|
58
|
+
"@hg-ts/execution-mode": "0.7.14",
|
|
59
|
+
"@hg-ts/logger": "0.7.14",
|
|
60
|
+
"@hg-ts/outbox-client": "0.7.14",
|
|
61
|
+
"@hg-ts/repository": "0.7.14",
|
|
62
|
+
"@hg-ts/tests": "0.7.14",
|
|
63
|
+
"@hg-ts/validation": "0.7.14",
|
|
62
64
|
"@nestjs/common": "*",
|
|
63
65
|
"@nestjs/core": "*",
|
|
64
66
|
"@nestjs/testing": "*",
|
package/src/outbox/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { OutboxEvent } from '@hg-ts/outbox-client';
|
|
1
2
|
import { Inject } from '@nestjs/common';
|
|
2
3
|
import { v7 as uuid } from 'uuid';
|
|
3
4
|
|
|
4
|
-
import { EventTable } from '../events/
|
|
5
|
+
import { EventTable } from '../events/index.js';
|
|
5
6
|
import { KnexService } from '../knex.service.js';
|
|
6
|
-
import { OutboxEvent } from './outbox.event.js';
|
|
7
7
|
|
|
8
8
|
type OutboxTable = EventTable & { routeGroupKey: string };
|
|
9
9
|
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BaseEvent, EventParams } from '@hg-ts/events';
|
|
2
|
-
export type OutboxEventParams<Body extends JsonType> = EventParams<Body> & {
|
|
3
|
-
entityName: string;
|
|
4
|
-
entityId: string;
|
|
5
|
-
};
|
|
6
|
-
type JsonType = JsonPrimitive | JsonArray | JsonObject;
|
|
7
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
8
|
-
type JsonArray = JsonType[];
|
|
9
|
-
type JsonObject = {
|
|
10
|
-
[key: string]: JsonType;
|
|
11
|
-
};
|
|
12
|
-
export declare class OutboxEvent<Body extends JsonType = JsonType> extends BaseEvent<Body> {
|
|
13
|
-
readonly entityName: string;
|
|
14
|
-
readonly entityId: string;
|
|
15
|
-
constructor(params: OutboxEventParams<Body>);
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=outbox.event.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outbox.event.d.ts","sourceRoot":"","sources":["../../src/outbox/outbox.event.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,EACT,WAAW,EACX,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,iBAAiB,CAAC,IAAI,SAAS,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,QAAQ,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;AACvD,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AACtD,KAAK,SAAS,GAAG,QAAQ,EAAE,CAAC;AAC5B,KAAK,UAAU,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC;CACxB,CAAC;AAEF,qBAAa,WAAW,CAAC,IAAI,SAAS,QAAQ,GAAG,QAAQ,CAAE,SAAQ,SAAS,CAAC,IAAI,CAAC;IACjF,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,QAAQ,EAAE,MAAM,CAAC;gBAEd,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC;CAMlD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseEvent, } from '@hg-ts/events';
|
|
2
|
-
export class OutboxEvent extends BaseEvent {
|
|
3
|
-
entityName;
|
|
4
|
-
entityId;
|
|
5
|
-
constructor(params) {
|
|
6
|
-
super(params);
|
|
7
|
-
this.entityName = params.entityName;
|
|
8
|
-
this.entityId = params.entityId;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=outbox.event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outbox.event.js","sourceRoot":"","sources":["../../src/outbox/outbox.event.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,SAAS,GAET,MAAM,eAAe,CAAC;AAcvB,MAAM,OAAO,WAA8C,SAAQ,SAAe;IACjE,UAAU,CAAS;IACnB,QAAQ,CAAS;IAEjC,YAAmB,MAA+B;QACjD,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACjC,CAAC;CACD"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseEvent,
|
|
3
|
-
EventParams,
|
|
4
|
-
} from '@hg-ts/events';
|
|
5
|
-
|
|
6
|
-
export type OutboxEventParams<Body extends JsonType> = EventParams<Body> & {
|
|
7
|
-
entityName: string;
|
|
8
|
-
entityId: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type JsonType = JsonPrimitive | JsonArray | JsonObject;
|
|
12
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
13
|
-
type JsonArray = JsonType[];
|
|
14
|
-
type JsonObject = {
|
|
15
|
-
[key: string]: JsonType;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export class OutboxEvent<Body extends JsonType = JsonType> extends BaseEvent<Body> {
|
|
19
|
-
public readonly entityName: string;
|
|
20
|
-
public readonly entityId: string;
|
|
21
|
-
|
|
22
|
-
public constructor(params: OutboxEventParams<Body>) {
|
|
23
|
-
super(params);
|
|
24
|
-
|
|
25
|
-
this.entityName = params.entityName;
|
|
26
|
-
this.entityId = params.entityId;
|
|
27
|
-
}
|
|
28
|
-
}
|