@cargolift-cdi/types 0.1.91 → 0.1.93
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.
|
@@ -12,26 +12,35 @@ export declare class IntegrationInbound {
|
|
|
12
12
|
event: string;
|
|
13
13
|
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
14
14
|
action: string;
|
|
15
|
-
/** Condições de roteamento de
|
|
16
|
-
* Direciona a integração para diferentes
|
|
15
|
+
/** Condições de roteamento de ações (action) baseadas no payload de canônico
|
|
16
|
+
* Direciona a integração para diferentes eventos de outbound (saída). Ex: 'driver' para 'people'
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
routingOutboundEvent?: [
|
|
19
19
|
{
|
|
20
20
|
event: string;
|
|
21
21
|
condition: PayloadConditions;
|
|
22
22
|
}
|
|
23
23
|
];
|
|
24
|
+
/** Condições de definição para ações (action) baseadas no payload canônico
|
|
25
|
+
* Direciona a integração para diferentes ações de outbound (saída). Ex: 'POST' para 'CREATE', 'PUT' para 'UPDATE'
|
|
26
|
+
*/
|
|
27
|
+
routingOutboundAction?: [
|
|
28
|
+
{
|
|
29
|
+
action: string;
|
|
30
|
+
condition: PayloadConditions;
|
|
31
|
+
}
|
|
32
|
+
];
|
|
24
33
|
/** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
|
|
25
34
|
version: number;
|
|
26
35
|
/**Se a rota está ativa */
|
|
27
36
|
active: boolean;
|
|
28
37
|
/** Descrição opcional amigável ao usuário */
|
|
29
38
|
description?: string | null;
|
|
30
|
-
/** Pré-validação do payload de origem
|
|
39
|
+
/** Pré-validação do payload de origem, antes da transformação para o formato canônico */
|
|
31
40
|
validation?: Record<string, any> | null;
|
|
32
|
-
/** Expressão JSONata
|
|
41
|
+
/** Expressão JSONata para transformação do payload de entrada para o formato canônico */
|
|
33
42
|
transformation?: string | null;
|
|
34
|
-
/** Regra global (BRE RulesConfiguration) */
|
|
43
|
+
/** Regra global (BRE RulesConfiguration) aplicada após a transformação do payload canônico */
|
|
35
44
|
rules?: Record<string, any> | null;
|
|
36
45
|
refExtraction?: string | null;
|
|
37
46
|
refType?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-inbound.entity.d.ts","sourceRoot":"","sources":["../../src/entities/integration-inbound.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF;;;;GAIG;AACH,qBAMa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAEZ,sCAAsC;IAEtC,MAAM,EAAG,MAAM,CAAC;IAEhB,8BAA8B;IAE9B,KAAK,EAAG,MAAM,CAAC;IAEf,oDAAoD;IAEpD,MAAM,EAAG,MAAM,CAAC;IAEhB;;MAEE;IAEF,
|
|
1
|
+
{"version":3,"file":"integration-inbound.entity.d.ts","sourceRoot":"","sources":["../../src/entities/integration-inbound.entity.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEjF;;;;GAIG;AACH,qBAMa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAEZ,sCAAsC;IAEtC,MAAM,EAAG,MAAM,CAAC;IAEhB,8BAA8B;IAE9B,KAAK,EAAG,MAAM,CAAC;IAEf,oDAAoD;IAEpD,MAAM,EAAG,MAAM,CAAC;IAEhB;;MAEE;IAEF,oBAAoB,CAAC,EAAE;QACrB;YACE,KAAK,EAAE,MAAM,CAAC;YACd,SAAS,EAAE,iBAAiB,CAAA;SAC7B;KACF,CAAC;IAEH;;OAEG;IAEF,qBAAqB,CAAC,EAAE;QACtB;YACE,MAAM,EAAE,MAAM,CAAC;YACf,SAAS,EAAE,iBAAiB,CAAA;SAC7B;KACF,CAAC;IAEF,gHAAgH;IAEhH,OAAO,EAAG,MAAM,CAAC;IAEjB,0BAA0B;IAE1B,MAAM,EAAG,OAAO,CAAC;IAEjB,6CAA6C;IAE7C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,yFAAyF;IAEzF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAExC,yFAAyF;IAEzF,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,8FAA8F;IAE9F,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAInC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAI9B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAIxB,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,oDAAoD;IAKpD,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -30,21 +30,25 @@ let IntegrationInbound = class IntegrationInbound {
|
|
|
30
30
|
event;
|
|
31
31
|
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
32
32
|
action;
|
|
33
|
-
/** Condições de roteamento de
|
|
34
|
-
* Direciona a integração para diferentes
|
|
33
|
+
/** Condições de roteamento de ações (action) baseadas no payload de canônico
|
|
34
|
+
* Direciona a integração para diferentes eventos de outbound (saída). Ex: 'driver' para 'people'
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
routingOutboundEvent;
|
|
37
|
+
/** Condições de definição para ações (action) baseadas no payload canônico
|
|
38
|
+
* Direciona a integração para diferentes ações de outbound (saída). Ex: 'POST' para 'CREATE', 'PUT' para 'UPDATE'
|
|
39
|
+
*/
|
|
40
|
+
routingOutboundAction;
|
|
37
41
|
/** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
|
|
38
42
|
version;
|
|
39
43
|
/**Se a rota está ativa */
|
|
40
44
|
active;
|
|
41
45
|
/** Descrição opcional amigável ao usuário */
|
|
42
46
|
description;
|
|
43
|
-
/** Pré-validação do payload de origem
|
|
47
|
+
/** Pré-validação do payload de origem, antes da transformação para o formato canônico */
|
|
44
48
|
validation;
|
|
45
|
-
/** Expressão JSONata
|
|
49
|
+
/** Expressão JSONata para transformação do payload de entrada para o formato canônico */
|
|
46
50
|
transformation;
|
|
47
|
-
/** Regra global (BRE RulesConfiguration) */
|
|
51
|
+
/** Regra global (BRE RulesConfiguration) aplicada após a transformação do payload canônico */
|
|
48
52
|
rules;
|
|
49
53
|
// Expressão JSONNata para extração da referência externa (código do cadastro, número do documento, etc) a partir do payload canônico (transformado)
|
|
50
54
|
refExtraction;
|
|
@@ -72,7 +76,10 @@ __decorate([
|
|
|
72
76
|
], IntegrationInbound.prototype, "action", void 0);
|
|
73
77
|
__decorate([
|
|
74
78
|
Column({ type: "jsonb", nullable: true })
|
|
75
|
-
], IntegrationInbound.prototype, "
|
|
79
|
+
], IntegrationInbound.prototype, "routingOutboundEvent", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
Column({ type: "jsonb", nullable: true })
|
|
82
|
+
], IntegrationInbound.prototype, "routingOutboundAction", void 0);
|
|
76
83
|
__decorate([
|
|
77
84
|
Column({ type: "int", default: 1 })
|
|
78
85
|
], IntegrationInbound.prototype, "version", void 0);
|