@cargolift-cdi/types 0.1.7 → 0.1.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.
- package/dist/context-message.interface.d.ts +35 -0
- package/dist/context-message.interface.d.ts.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/rabbitmq-envelope-message.d.ts +13 -0
- package/dist/rabbitmq-envelope-message.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface ContextApplication {
|
|
2
|
+
name: string;
|
|
3
|
+
function?: string;
|
|
4
|
+
action?: string;
|
|
5
|
+
method?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ContextTrace {
|
|
8
|
+
name?: string;
|
|
9
|
+
application: string;
|
|
10
|
+
function: string;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ContextSource {
|
|
14
|
+
ip?: string;
|
|
15
|
+
user_agent?: string;
|
|
16
|
+
application?: string;
|
|
17
|
+
user_name?: string;
|
|
18
|
+
user_id?: string;
|
|
19
|
+
user_email?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ContextError {
|
|
22
|
+
type: ContextErrorType;
|
|
23
|
+
code: string;
|
|
24
|
+
message: string;
|
|
25
|
+
stack_trace?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ContextMessage {
|
|
28
|
+
correlation_id?: string;
|
|
29
|
+
application?: ContextApplication;
|
|
30
|
+
source: ContextSource;
|
|
31
|
+
trace?: ContextTrace[];
|
|
32
|
+
error?: ContextError;
|
|
33
|
+
}
|
|
34
|
+
export type ContextErrorType = 'business' | 'application' | 'none';
|
|
35
|
+
//# sourceMappingURL=context-message.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-message.interface.d.ts","sourceRoot":"","sources":["../src/context-message.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,aAAa;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
* Public export surface for shared types.
|
|
3
3
|
* Keep exports stable to avoid breaking downstream projects.
|
|
4
4
|
*/
|
|
5
|
-
export * from './rabbitmq.interfaces';
|
|
5
|
+
export * from './rabbitmq.interfaces.js';
|
|
6
|
+
export * from './rabbitmq-envelope-message.js';
|
|
7
|
+
export * from './context-message.interface.js';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type envelopeContextInterface = require("./context-message.interface.js");
|
|
2
|
+
/**
|
|
3
|
+
* Envelope (metadados) da mensagem publicada.
|
|
4
|
+
*/
|
|
5
|
+
export interface EnvelopeMessage {
|
|
6
|
+
correlationId?: string;
|
|
7
|
+
eventType?: string;
|
|
8
|
+
source?: envelopeContextInterface.ContextSource;
|
|
9
|
+
method?: string;
|
|
10
|
+
timestamp?: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=rabbitmq-envelope-message.d.ts.map
|
|
@@ -0,0 +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,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,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"}
|