@volontariapp/database 3.6.0 → 3.7.0-snap-1048610

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `traceparent` (required, `''` when there is no trace context) to `GatherStateMetadata` (jsonb `gather_state.metadata`, no migration), so a gather completion event can replay the trace context of the trigger event. Code that builds a `GatherStateMetadata` must now provide it; rows stored before this change lack it at runtime.
8
+
3
9
  ## 3.6.0
4
10
 
5
11
  ### Minor Changes
@@ -1,9 +1,10 @@
1
1
  import { BaseEntity } from '../../core/base.entity.js';
2
- import { GatherEventState } from '../types/gather-event-state.interface.js';
2
+ import type { GatherEventState } from '../types/gather-event-state.interface.js';
3
3
  import type { EventMessagingType, EventRegistry } from '@volontariapp/messaging';
4
4
  export declare class GatherStateMetadata<TKey extends EventMessagingType = EventMessagingType> {
5
5
  emitterId?: string;
6
6
  traceId?: string;
7
+ traceparent: string;
7
8
  payload?: EventRegistry[TKey];
8
9
  }
9
10
  export declare class GatherStateEntity<TKey extends EventMessagingType = EventMessagingType> extends BaseEntity {
@@ -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,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,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,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAM;IACzD,QAAQ,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;CACtC"}
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,KAAK,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACjF,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;IAOjB,WAAW,EAAG,MAAM,CAAC;IACrB,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,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAM;IACzD,QAAQ,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;CACtC"}
@@ -2,6 +2,7 @@ import { BaseEntity } from '../../core/base.entity.js';
2
2
  export class GatherStateMetadata {
3
3
  emitterId;
4
4
  traceId;
5
+ traceparent;
5
6
  payload;
6
7
  }
7
8
  export class GatherStateEntity extends BaseEntity {
@@ -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;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,iBAAiB,GAAqC,EAAE,CAAC;IACzD,QAAQ,CAA6B;CACtC"}
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;IAOjB,WAAW,CAAU;IACrB,OAAO,CAAuB;CAC/B;AAED,MAAM,OAAO,iBAEX,SAAQ,UAAU;IAClB,aAAa,CAAU;IACvB,YAAY,CAAQ;IACpB,iBAAiB,GAAqC,EAAE,CAAC;IACzD,QAAQ,CAA6B;CACtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volontariapp/database",
3
- "version": "3.6.0",
3
+ "version": "3.7.0-snap-1048610",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true