@volontariapp/database 3.4.0 → 3.4.1-snap-9d3a27a
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/CHANGELOG.md +6 -0
- package/dist/gather/entities/gather-state.entity.d.ts +9 -2
- package/dist/gather/entities/gather-state.entity.d.ts.map +1 -1
- package/dist/gather/entities/gather-state.entity.js +6 -0
- package/dist/gather/entities/gather-state.entity.js.map +1 -1
- package/dist/gather/models/gather-state.model.d.ts +2 -0
- package/dist/gather/models/gather-state.model.d.ts.map +1 -1
- package/dist/gather/models/gather-state.model.js +6 -0
- package/dist/gather/models/gather-state.model.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { BaseEntity } from '../../core/base.entity.js';
|
|
2
2
|
import { ExpectedEventState } from '../types/expected-event-state.interface.js';
|
|
3
|
-
|
|
3
|
+
import type { EventMessagingType, EventRegistry } from '@volontariapp/messaging';
|
|
4
|
+
export declare class GatherStateMetadata<TKey extends EventMessagingType = EventMessagingType> {
|
|
5
|
+
emitterId?: string;
|
|
6
|
+
traceId?: string;
|
|
7
|
+
payload?: EventRegistry[TKey];
|
|
8
|
+
}
|
|
9
|
+
export declare class GatherStateEntity<TKey extends EventMessagingType = EventMessagingType> extends BaseEntity {
|
|
4
10
|
correlationId: string;
|
|
5
|
-
triggerEvent:
|
|
11
|
+
triggerEvent: TKey;
|
|
6
12
|
eventsState: Record<string, ExpectedEventState>;
|
|
13
|
+
metadata?: GatherStateMetadata<TKey>;
|
|
7
14
|
}
|
|
8
15
|
//# sourceMappingURL=gather-state.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gather-state.entity.d.ts","sourceRoot":"","sources":["../../../src/gather/entities/gather-state.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"gather-state.entity.d.ts","sourceRoot":"","sources":["../../../src/gather/entities/gather-state.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEjF,qBAAa,mBAAmB,CAAC,IAAI,SAAS,kBAAkB,GAAG,kBAAkB;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,qBAAa,iBAAiB,CAC5B,IAAI,SAAS,kBAAkB,GAAG,kBAAkB,CACpD,SAAQ,UAAU;IAClB,aAAa,EAAG,MAAM,CAAC;IACvB,YAAY,EAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAM;IACrD,QAAQ,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;CACtC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { BaseEntity } from '../../core/base.entity.js';
|
|
2
|
+
export class GatherStateMetadata {
|
|
3
|
+
emitterId;
|
|
4
|
+
traceId;
|
|
5
|
+
payload;
|
|
6
|
+
}
|
|
2
7
|
export class GatherStateEntity extends BaseEntity {
|
|
3
8
|
correlationId;
|
|
4
9
|
triggerEvent;
|
|
5
10
|
eventsState = {};
|
|
11
|
+
metadata;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=gather-state.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gather-state.entity.js","sourceRoot":"","sources":["../../../src/gather/entities/gather-state.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"gather-state.entity.js","sourceRoot":"","sources":["../../../src/gather/entities/gather-state.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAIvD,MAAM,OAAO,mBAAmB;IAC9B,SAAS,CAAU;IACnB,OAAO,CAAU;IACjB,OAAO,CAAuB;CAC/B;AAED,MAAM,OAAO,iBAEX,SAAQ,UAAU;IAClB,aAAa,CAAU;IACvB,YAAY,CAAQ;IACpB,WAAW,GAAuC,EAAE,CAAC;IACrD,QAAQ,CAA6B;CACtC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BaseModel } from '../../core/base.model.js';
|
|
2
2
|
import { ExpectedEventState } from '../types/expected-event-state.interface.js';
|
|
3
|
+
import { GatherStateMetadata } from '../entities/gather-state.entity.js';
|
|
3
4
|
export declare class GatherStateModel extends BaseModel {
|
|
4
5
|
correlationId: string;
|
|
5
6
|
triggerEvent: string;
|
|
6
7
|
eventsState: Record<string, ExpectedEventState>;
|
|
8
|
+
metadata?: GatherStateMetadata;
|
|
7
9
|
}
|
|
8
10
|
//# sourceMappingURL=gather-state.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gather-state.model.d.ts","sourceRoot":"","sources":["../../../src/gather/models/gather-state.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"gather-state.model.d.ts","sourceRoot":"","sources":["../../../src/gather/models/gather-state.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,qBACa,gBAAiB,SAAQ,SAAS;IAE7C,aAAa,EAAG,MAAM,CAAC;IAGvB,YAAY,EAAG,MAAM,CAAC;IAGtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAM;IAGrD,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC"}
|
|
@@ -9,10 +9,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
11
11
|
import { BaseModel } from '../../core/base.model.js';
|
|
12
|
+
import { GatherStateMetadata } from '../entities/gather-state.entity.js';
|
|
12
13
|
let GatherStateModel = class GatherStateModel extends BaseModel {
|
|
13
14
|
correlationId;
|
|
14
15
|
triggerEvent;
|
|
15
16
|
eventsState = {};
|
|
17
|
+
metadata;
|
|
16
18
|
};
|
|
17
19
|
__decorate([
|
|
18
20
|
PrimaryColumn({ name: 'correlation_id', type: 'uuid' }),
|
|
@@ -26,6 +28,10 @@ __decorate([
|
|
|
26
28
|
Column({ type: 'jsonb', default: {} }),
|
|
27
29
|
__metadata("design:type", Object)
|
|
28
30
|
], GatherStateModel.prototype, "eventsState", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column({ type: 'jsonb', nullable: true }),
|
|
33
|
+
__metadata("design:type", GatherStateMetadata)
|
|
34
|
+
], GatherStateModel.prototype, "metadata", void 0);
|
|
29
35
|
GatherStateModel = __decorate([
|
|
30
36
|
Entity('gather_state')
|
|
31
37
|
], GatherStateModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gather-state.model.js","sourceRoot":"","sources":["../../../src/gather/models/gather-state.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"gather-state.model.js","sourceRoot":"","sources":["../../../src/gather/models/gather-state.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAGlE,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,SAAS;IAE7C,aAAa,CAAU;IAGvB,YAAY,CAAU;IAGtB,WAAW,GAAuC,EAAE,CAAC;IAGrD,QAAQ,CAAuB;CAChC,CAAA;AAVC;IADC,aAAa,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACjC;AAGvB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAC1B;AAGtB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;qDACc;AAGrD;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,mBAAmB;kDAAC;AAXpB,gBAAgB;IAD5B,MAAM,CAAC,cAAc,CAAC;GACV,gBAAgB,CAY5B"}
|