@cargolift-cdi/types 0.1.37 → 0.1.39
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.
|
@@ -78,6 +78,21 @@ export declare class IntegrationEndpoint {
|
|
|
78
78
|
intervalMs?: number;
|
|
79
79
|
burst?: number;
|
|
80
80
|
} | null;
|
|
81
|
+
/**
|
|
82
|
+
* Política de circuit breaker opcional por endpoint.
|
|
83
|
+
* { threshold?: number; openMs?: number; halfOpenMaxAttempts?: number }
|
|
84
|
+
*/
|
|
85
|
+
breakerPolicy?: {
|
|
86
|
+
threshold?: number;
|
|
87
|
+
openMs?: number;
|
|
88
|
+
halfOpenMaxAttempts?: number;
|
|
89
|
+
} | null;
|
|
90
|
+
/**
|
|
91
|
+
* Concorrência máxima local por endpoint nesta instância.
|
|
92
|
+
* Controla quantas requisições simultâneas este endpoint pode ter por processo.
|
|
93
|
+
* Default: 1 (serialização local).
|
|
94
|
+
*/
|
|
95
|
+
maxConcurrentPerEndpoint?: number | null;
|
|
81
96
|
/**
|
|
82
97
|
* Idempotência:
|
|
83
98
|
* { strategy: 'header' | 'bodyHash' | 'custom', headerName?: 'Idempotency-Key', ttlMs?: 300000 }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-endpoint.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-endpoint.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGvE;;;GAGG;AACH,qBAGa,mBAAmB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAEZ,8CAA8C;IAE9C,MAAM,EAAG,MAAM,CAAC;IAEhB,0DAA0D;IAE1D,KAAK,EAAG,MAAM,CAAC;IAGf,MAAM,EAAG,OAAO,CAAC;IAGjB,qGAAqG;IAErG;;OAEG;IAEH,iBAAiB,EAAG,iBAAiB,CAAC;IAEtC;;;;;;OAMG;IAEH,QAAQ,EAAG,MAAM,CAAC;IAGlB,UAAU,EAAG,UAAU,CAAC;IAExB;;;;;;;;;;;;OAYG;IAEH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAExC;;;;;;;;;OASG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAGzC;;OAEG;IAEH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;OAGG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAEjC;;;OAGG;IAEH,WAAW,CAAC,EAAE;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;QACnC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,GAAG,IAAI,CAAC;IAET;;;OAGG;IAEH,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,IAAI,CAAC;IAET;;;OAGG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAGzC,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAElB"}
|
|
1
|
+
{"version":3,"file":"integration-endpoint.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-endpoint.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGvE;;;GAGG;AACH,qBAGa,mBAAmB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAEZ,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IAEH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC;;;OAGG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAGzC,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAElB"}
|
|
@@ -78,6 +78,17 @@ let IntegrationEndpoint = class IntegrationEndpoint {
|
|
|
78
78
|
* { limit: 100, intervalMs: 1000, burst?: 50, key?: 'targetSystem' | 'endpoint' | 'custom' }
|
|
79
79
|
*/
|
|
80
80
|
rateLimit;
|
|
81
|
+
/**
|
|
82
|
+
* Política de circuit breaker opcional por endpoint.
|
|
83
|
+
* { threshold?: number; openMs?: number; halfOpenMaxAttempts?: number }
|
|
84
|
+
*/
|
|
85
|
+
breakerPolicy;
|
|
86
|
+
/**
|
|
87
|
+
* Concorrência máxima local por endpoint nesta instância.
|
|
88
|
+
* Controla quantas requisições simultâneas este endpoint pode ter por processo.
|
|
89
|
+
* Default: 1 (serialização local).
|
|
90
|
+
*/
|
|
91
|
+
maxConcurrentPerEndpoint;
|
|
81
92
|
/**
|
|
82
93
|
* Idempotência:
|
|
83
94
|
* { strategy: 'header' | 'bodyHash' | 'custom', headerName?: 'Idempotency-Key', ttlMs?: 300000 }
|
|
@@ -125,6 +136,12 @@ __decorate([
|
|
|
125
136
|
__decorate([
|
|
126
137
|
Column({ name: "rate_limit", type: "jsonb", nullable: true })
|
|
127
138
|
], IntegrationEndpoint.prototype, "rateLimit", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
Column({ name: "breaker_policy", type: "jsonb", nullable: true })
|
|
141
|
+
], IntegrationEndpoint.prototype, "breakerPolicy", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
Column({ name: "max_concurrent_per_endpoint", type: "int", nullable: true })
|
|
144
|
+
], IntegrationEndpoint.prototype, "maxConcurrentPerEndpoint", void 0);
|
|
128
145
|
__decorate([
|
|
129
146
|
Column({ type: "jsonb", nullable: true })
|
|
130
147
|
], IntegrationEndpoint.prototype, "idempotency", void 0);
|