@cargolift-cdi/types 0.1.8 → 0.1.10
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 +36 -0
- package/dist/context-message.interface.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/rabbitmq-envelope-message.d.ts +2 -2
- package/dist/rabbitmq-envelope-message.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/envelope-context.interface.d.ts +0 -35
- package/dist/envelope-context.interface.d.ts.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
eventType?: string;
|
|
30
|
+
application?: ContextApplication;
|
|
31
|
+
source: ContextSource;
|
|
32
|
+
trace?: ContextTrace[];
|
|
33
|
+
error?: ContextError;
|
|
34
|
+
}
|
|
35
|
+
export type ContextErrorType = 'business' | 'application' | 'none';
|
|
36
|
+
//# 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,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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
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,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type envelopeContextInterface = require("./
|
|
1
|
+
import type envelopeContextInterface = require("./context-message.interface.js");
|
|
2
2
|
/**
|
|
3
3
|
* Envelope (metadados) da mensagem publicada.
|
|
4
4
|
*/
|
|
5
5
|
export interface EnvelopeMessage {
|
|
6
6
|
correlationId?: string;
|
|
7
7
|
eventType?: string;
|
|
8
|
-
source?: envelopeContextInterface.
|
|
8
|
+
source?: envelopeContextInterface.ContextSource;
|
|
9
9
|
method?: string;
|
|
10
10
|
timestamp?: string;
|
|
11
11
|
[key: string]: any;
|
|
@@ -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,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|