@cargolift-cdi/types 0.1.6 → 0.1.8
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/envelope-context.interface.d.ts +35 -0
- package/dist/envelope-context.interface.d.ts.map +1 -0
- package/dist/index.d.ts +3 -2
- 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
- package/dist/api.interfaces.d.ts +0 -7
- package/dist/api.interfaces.d.ts.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface EnvelopeApplication {
|
|
2
|
+
name: string;
|
|
3
|
+
function?: string;
|
|
4
|
+
action?: string;
|
|
5
|
+
method?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface EnvelopeTrace {
|
|
8
|
+
name?: string;
|
|
9
|
+
application: string;
|
|
10
|
+
function: string;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
}
|
|
13
|
+
export interface EnvelopeSource {
|
|
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 EnvelopeError {
|
|
22
|
+
type: EnvelopeErrorType;
|
|
23
|
+
code: string;
|
|
24
|
+
message: string;
|
|
25
|
+
stack_trace?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface EnvelopeContext {
|
|
28
|
+
correlation_id?: string;
|
|
29
|
+
application?: EnvelopeApplication;
|
|
30
|
+
source: EnvelopeSource;
|
|
31
|
+
trace?: EnvelopeTrace[];
|
|
32
|
+
error?: EnvelopeError;
|
|
33
|
+
}
|
|
34
|
+
export type EnvelopeErrorType = 'business' | 'application' | 'none';
|
|
35
|
+
//# sourceMappingURL=envelope-context.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envelope-context.interface.d.ts","sourceRoot":"","sources":["../src/envelope-context.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,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,aAAa;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,cAAc;IAC3B,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,aAAa;IAC1B,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +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';
|
|
6
|
-
export * from './
|
|
5
|
+
export * from './rabbitmq.interfaces.js';
|
|
6
|
+
export * from './rabbitmq-envelope-message.js';
|
|
7
|
+
export * from './envelope-context.interface.js';
|
|
7
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,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type envelopeContextInterface = require("./envelope-context.interface.js");
|
|
2
|
+
/**
|
|
3
|
+
* Envelope (metadados) da mensagem publicada.
|
|
4
|
+
*/
|
|
5
|
+
export interface EnvelopeMessage {
|
|
6
|
+
correlationId?: string;
|
|
7
|
+
eventType?: string;
|
|
8
|
+
source?: envelopeContextInterface.EnvelopeSource;
|
|
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,iCAAiC,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,wBAAwB,CAAC,cAAc,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB"}
|
package/package.json
CHANGED
package/dist/api.interfaces.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.interfaces.d.ts","sourceRoot":"","sources":["../src/api.interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B,CAAC"}
|