@cargolift-cdi/types 0.1.11 → 0.1.13

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/index.d.ts CHANGED
@@ -5,4 +5,5 @@
5
5
  export * from './rabbitmq.interfaces.js';
6
6
  export * from './rabbitmq-envelope-message.js';
7
7
  export * from './context-message.interface.js';
8
+ export * from './publish-meta.interface.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Metadados retornados após publicação confirmada no RabbitMQ.
3
+ * Fornece visibilidade operacional (tamanho, tempo de confirmação, correlação).
4
+ */
5
+ export interface PublishMeta {
6
+ /** Correlation ID efetivamente utilizado no envelope */
7
+ correlationId: string;
8
+ /** Exchange onde a mensagem foi publicada */
9
+ exchange: string;
10
+ /** Routing key utilizada */
11
+ routingKey: string;
12
+ /** Pattern (normalmente igual à routingKey, mas pode ser sobrescrito) */
13
+ pattern: string;
14
+ /** Tamanho do payload serializado (em bytes) */
15
+ sizeBytes: number;
16
+ /** Duração (ms) entre início da publicação e confirmação */
17
+ durationMs: number;
18
+ /** Timestamp ISO da confirmação */
19
+ confirmedAt: string;
20
+ }
21
+ //# sourceMappingURL=publish-meta.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-meta.interface.d.ts","sourceRoot":"","sources":["../src/publish-meta.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -5,9 +5,13 @@ import type envelopeContextInterface = require("./context-message.interface.js")
5
5
  export interface EnvelopeMessage {
6
6
  correlation_id?: string;
7
7
  eventType?: string;
8
- source?: envelopeContextInterface.ContextSource;
8
+ event?: string;
9
+ action?: string;
9
10
  method?: string;
11
+ record_id?: string;
12
+ source?: envelopeContextInterface.ContextSource;
10
13
  timestamp?: string;
14
+ error?: envelopeContextInterface.ContextError;
11
15
  [key: string]: any;
12
16
  }
13
17
  //# sourceMappingURL=rabbitmq-envelope-message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rabbitmq-envelope-message.d.ts","sourceRoot":"","sources":["../src/rabbitmq-envelope-message.ts"],"names":[],"mappings":"AAAA,YAAY,wBAAwB,GAAG,QAAQ,gCAAgC,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB"}
1
+ {"version":3,"file":"rabbitmq-envelope-message.d.ts","sourceRoot":"","sources":["../src/rabbitmq-envelope-message.ts"],"names":[],"mappings":"AAAA,YAAY,wBAAwB,GAAG,QAAQ,gCAAgC,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,wBAAwB,CAAC,YAAY,CAAC;IAC9C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cargolift-cdi/types",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "TypeScript types e interfaces comuns para projetos Cargolift CDI",
5
5
  "keywords": [
6
6
  "typescript",