@cargolift-cdi/types 0.1.38 → 0.1.40
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/db/entities/integration/integration-endpoint.d.ts +18 -0
- package/dist/db/entities/integration/integration-endpoint.d.ts.map +1 -1
- package/dist/db/entities/integration/integration-endpoint.js +22 -0
- package/dist/db/entities/integration/integration-inbound.entity.d.ts +2 -0
- package/dist/db/entities/integration/integration-inbound.entity.d.ts.map +1 -1
- package/dist/db/entities/integration/integration-inbound.entity.js +5 -0
- package/dist/db/entities/integration/integration-outbound.entity.d.ts +2 -0
- package/dist/db/entities/integration/integration-outbound.entity.d.ts.map +1 -1
- package/dist/db/entities/integration/integration-outbound.entity.js +5 -0
- package/dist/db/repository/integration-endpoint-repository.service.d.ts +1 -1
- package/dist/db/repository/integration-endpoint-repository.service.d.ts.map +1 -1
- package/dist/db/repository/integration-endpoint-repository.service.js +2 -2
- package/dist/db/repository/integration-inbound-repository.service.d.ts +1 -1
- package/dist/db/repository/integration-inbound-repository.service.d.ts.map +1 -1
- package/dist/db/repository/integration-inbound-repository.service.js +2 -2
- package/dist/db/repository/integration-outbound-repository.service.d.ts +2 -2
- package/dist/db/repository/integration-outbound-repository.service.d.ts.map +1 -1
- package/dist/db/repository/integration-outbound-repository.service.js +4 -4
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ export declare class IntegrationEndpoint {
|
|
|
9
9
|
system: string;
|
|
10
10
|
/** Evento (chave) (e.g., 'driver' or 'driver.created') */
|
|
11
11
|
event: string;
|
|
12
|
+
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
13
|
+
action: string;
|
|
12
14
|
active: boolean;
|
|
13
15
|
/** ===================== Target/Delivery (simplificado no próprio Outbound) ===================== */
|
|
14
16
|
/**
|
|
@@ -74,10 +76,26 @@ export declare class IntegrationEndpoint {
|
|
|
74
76
|
* { limit: 100, intervalMs: 1000, burst?: 50, key?: 'targetSystem' | 'endpoint' | 'custom' }
|
|
75
77
|
*/
|
|
76
78
|
rateLimit?: {
|
|
79
|
+
strategy?: 'fixed-window' | 'token-bucket';
|
|
77
80
|
limit?: number;
|
|
78
81
|
intervalMs?: number;
|
|
79
82
|
burst?: number;
|
|
80
83
|
} | null;
|
|
84
|
+
/**
|
|
85
|
+
* Política de circuit breaker opcional por endpoint.
|
|
86
|
+
* { threshold?: number; openMs?: number; halfOpenMaxAttempts?: number }
|
|
87
|
+
*/
|
|
88
|
+
breakerPolicy?: {
|
|
89
|
+
threshold?: number;
|
|
90
|
+
openMs?: number;
|
|
91
|
+
halfOpenMaxAttempts?: number;
|
|
92
|
+
} | null;
|
|
93
|
+
/**
|
|
94
|
+
* Concorrência máxima local por endpoint nesta instância.
|
|
95
|
+
* Controla quantas requisições simultâneas este endpoint pode ter por processo.
|
|
96
|
+
* Default: 1 (serialização local).
|
|
97
|
+
*/
|
|
98
|
+
maxConcurrentPerEndpoint?: number | null;
|
|
81
99
|
/**
|
|
82
100
|
* Idempotência:
|
|
83
101
|
* { 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;
|
|
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;IAEf,oDAAoD;IAEpD,MAAM,EAAG,MAAM,CAAC;IAGhB,MAAM,EAAG,OAAO,CAAC;IAEjB,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,QAAQ,CAAC,EAAE,cAAc,GAAG,cAAc,CAAC;QAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,IAAI,CAAC;IAET;;;OAGG;IAEH,aAAa,CAAC,EAAE;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,GAAG,IAAI,CAAC;IAET;;;;OAIG;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"}
|
|
@@ -19,6 +19,8 @@ let IntegrationEndpoint = class IntegrationEndpoint {
|
|
|
19
19
|
system;
|
|
20
20
|
/** Evento (chave) (e.g., 'driver' or 'driver.created') */
|
|
21
21
|
event;
|
|
22
|
+
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
23
|
+
action;
|
|
22
24
|
active;
|
|
23
25
|
/** ===================== Target/Delivery (simplificado no próprio Outbound) ===================== */
|
|
24
26
|
/**
|
|
@@ -78,6 +80,17 @@ let IntegrationEndpoint = class IntegrationEndpoint {
|
|
|
78
80
|
* { limit: 100, intervalMs: 1000, burst?: 50, key?: 'targetSystem' | 'endpoint' | 'custom' }
|
|
79
81
|
*/
|
|
80
82
|
rateLimit;
|
|
83
|
+
/**
|
|
84
|
+
* Política de circuit breaker opcional por endpoint.
|
|
85
|
+
* { threshold?: number; openMs?: number; halfOpenMaxAttempts?: number }
|
|
86
|
+
*/
|
|
87
|
+
breakerPolicy;
|
|
88
|
+
/**
|
|
89
|
+
* Concorrência máxima local por endpoint nesta instância.
|
|
90
|
+
* Controla quantas requisições simultâneas este endpoint pode ter por processo.
|
|
91
|
+
* Default: 1 (serialização local).
|
|
92
|
+
*/
|
|
93
|
+
maxConcurrentPerEndpoint;
|
|
81
94
|
/**
|
|
82
95
|
* Idempotência:
|
|
83
96
|
* { strategy: 'header' | 'bodyHash' | 'custom', headerName?: 'Idempotency-Key', ttlMs?: 300000 }
|
|
@@ -95,6 +108,9 @@ __decorate([
|
|
|
95
108
|
__decorate([
|
|
96
109
|
Column({ type: "varchar", length: 80 })
|
|
97
110
|
], IntegrationEndpoint.prototype, "event", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
Column({ type: "varchar", length: 10 })
|
|
113
|
+
], IntegrationEndpoint.prototype, "action", void 0);
|
|
98
114
|
__decorate([
|
|
99
115
|
Column({ type: "boolean", default: true })
|
|
100
116
|
], IntegrationEndpoint.prototype, "active", void 0);
|
|
@@ -125,6 +141,12 @@ __decorate([
|
|
|
125
141
|
__decorate([
|
|
126
142
|
Column({ name: "rate_limit", type: "jsonb", nullable: true })
|
|
127
143
|
], IntegrationEndpoint.prototype, "rateLimit", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
Column({ name: "breaker_policy", type: "jsonb", nullable: true })
|
|
146
|
+
], IntegrationEndpoint.prototype, "breakerPolicy", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
Column({ name: "max_concurrent_per_endpoint", type: "int", nullable: true })
|
|
149
|
+
], IntegrationEndpoint.prototype, "maxConcurrentPerEndpoint", void 0);
|
|
128
150
|
__decorate([
|
|
129
151
|
Column({ type: "jsonb", nullable: true })
|
|
130
152
|
], IntegrationEndpoint.prototype, "idempotency", void 0);
|
|
@@ -9,6 +9,8 @@ export declare class IntegrationInbound {
|
|
|
9
9
|
system: string;
|
|
10
10
|
/** Evento (e.g., 'driver') */
|
|
11
11
|
event: string;
|
|
12
|
+
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
13
|
+
action: string;
|
|
12
14
|
/** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
|
|
13
15
|
version: number;
|
|
14
16
|
/** Descrição opcional amigável ao usuário */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-inbound.entity.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-inbound.entity.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,qBAEa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAEZ,sCAAsC;IAEtC,MAAM,EAAG,MAAM,CAAC;IAEhB,8BAA8B;IAE9B,KAAK,EAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"integration-inbound.entity.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-inbound.entity.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,qBAEa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAEZ,sCAAsC;IAEtC,MAAM,EAAG,MAAM,CAAC;IAEhB,8BAA8B;IAE9B,KAAK,EAAG,MAAM,CAAC;IAEb,oDAAoD;IAEtD,MAAM,EAAG,MAAM,CAAC;IAEhB,gHAAgH;IAEhH,OAAO,EAAG,MAAM,CAAC;IAEjB,6CAA6C;IAE7C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,0CAA0C;IAE1C,UAAU,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEjC,yBAAyB;IAEzB,cAAc,EAAG,MAAM,CAAC;IAExB,4CAA4C;IAE5C,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE5B,0BAA0B;IAE1B,MAAM,EAAG,OAAO,CAAC;IAEjB,oDAAoD;IAEpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAGrC,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAElB"}
|
|
@@ -16,6 +16,8 @@ let IntegrationInbound = class IntegrationInbound {
|
|
|
16
16
|
system;
|
|
17
17
|
/** Evento (e.g., 'driver') */
|
|
18
18
|
event;
|
|
19
|
+
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
20
|
+
action;
|
|
19
21
|
/** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
|
|
20
22
|
version;
|
|
21
23
|
/** Descrição opcional amigável ao usuário */
|
|
@@ -42,6 +44,9 @@ __decorate([
|
|
|
42
44
|
__decorate([
|
|
43
45
|
Column({ type: "varchar", length: 80 })
|
|
44
46
|
], IntegrationInbound.prototype, "event", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: "varchar", length: 10 })
|
|
49
|
+
], IntegrationInbound.prototype, "action", void 0);
|
|
45
50
|
__decorate([
|
|
46
51
|
Column({ type: "int", default: 1 })
|
|
47
52
|
], IntegrationInbound.prototype, "version", void 0);
|
|
@@ -10,6 +10,8 @@ export declare class IntegrationOutbound {
|
|
|
10
10
|
targetSystem: string;
|
|
11
11
|
/** Evento (chave) (e.g., 'driver' or 'driver.created') */
|
|
12
12
|
event: string;
|
|
13
|
+
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
14
|
+
action: string;
|
|
13
15
|
/** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
|
|
14
16
|
version: number;
|
|
15
17
|
/** Descrição */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-outbound.entity.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-outbound.entity.ts"],"names":[],"mappings":"AAmCA;;;GAGG;AACH,qBAEa,mBAAmB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAEZ,sCAAsC;IAEtC,MAAM,EAAG,MAAM,CAAC;IAEhB,8CAA8C;IAE9C,YAAY,EAAG,MAAM,CAAC;IAEtB,0DAA0D;IAE1D,KAAK,EAAG,MAAM,CAAC;IAEf,gHAAgH;IAEhH,OAAO,EAAG,MAAM,CAAC;IAEjB,gBAAgB;IAEhB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,sCAAsC;IAEtC,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE5B,2BAA2B;IAE3B,MAAM,EAAG,OAAO,CAAC;IAEjB,oDAAoD;IAEpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAGrC,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAElB"}
|
|
1
|
+
{"version":3,"file":"integration-outbound.entity.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-outbound.entity.ts"],"names":[],"mappings":"AAmCA;;;GAGG;AACH,qBAEa,mBAAmB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAEZ,sCAAsC;IAEtC,MAAM,EAAG,MAAM,CAAC;IAEhB,8CAA8C;IAE9C,YAAY,EAAG,MAAM,CAAC;IAEtB,0DAA0D;IAE1D,KAAK,EAAG,MAAM,CAAC;IAEf,oDAAoD;IAEpD,MAAM,EAAG,MAAM,CAAC;IAEhB,gHAAgH;IAEhH,OAAO,EAAG,MAAM,CAAC;IAEjB,gBAAgB;IAEhB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,sCAAsC;IAEtC,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE5B,2BAA2B;IAE3B,MAAM,EAAG,OAAO,CAAC;IAEjB,oDAAoD;IAEpD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAGrC,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAElB"}
|
|
@@ -43,6 +43,8 @@ let IntegrationOutbound = class IntegrationOutbound {
|
|
|
43
43
|
targetSystem;
|
|
44
44
|
/** Evento (chave) (e.g., 'driver' or 'driver.created') */
|
|
45
45
|
event;
|
|
46
|
+
/** Ação (e.g., 'create', 'update', 'delete', etc */
|
|
47
|
+
action;
|
|
46
48
|
/** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
|
|
47
49
|
version;
|
|
48
50
|
/** Descrição */
|
|
@@ -68,6 +70,9 @@ __decorate([
|
|
|
68
70
|
__decorate([
|
|
69
71
|
Column({ type: "varchar", length: 80 })
|
|
70
72
|
], IntegrationOutbound.prototype, "event", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
Column({ type: "varchar", length: 10 })
|
|
75
|
+
], IntegrationOutbound.prototype, "action", void 0);
|
|
71
76
|
__decorate([
|
|
72
77
|
Column({ type: "int", default: 1 })
|
|
73
78
|
], IntegrationOutbound.prototype, "version", void 0);
|
|
@@ -5,7 +5,7 @@ export declare class EndpointRepositoryService {
|
|
|
5
5
|
private readonly repo;
|
|
6
6
|
private readonly repoCredential;
|
|
7
7
|
constructor(repo: Repository<IntegrationEndpoint>, repoCredential: Repository<IntegrationCredential>);
|
|
8
|
-
find(system: string, event: string): Promise<IntegrationEndpoint | null>;
|
|
8
|
+
find(system: string, event: string, action: string): Promise<IntegrationEndpoint | null>;
|
|
9
9
|
getCredential(endpoint: IntegrationEndpoint): Promise<IntegrationCredential | null>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=integration-endpoint-repository.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-endpoint-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/integration-endpoint-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAGjG,qBACa,yBAAyB;IAGlC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAErB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAFd,IAAI,EAAE,UAAU,CAAC,mBAAmB,CAAC,EAErC,cAAc,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAG9D,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"integration-endpoint-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/integration-endpoint-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAGjG,qBACa,yBAAyB;IAGlC,OAAO,CAAC,QAAQ,CAAC,IAAI;IAErB,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAFd,IAAI,EAAE,UAAU,CAAC,mBAAmB,CAAC,EAErC,cAAc,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAG9D,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAIxF,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;CAI1F"}
|
|
@@ -18,8 +18,8 @@ let EndpointRepositoryService = class EndpointRepositoryService {
|
|
|
18
18
|
this.repo = repo;
|
|
19
19
|
this.repoCredential = repoCredential;
|
|
20
20
|
}
|
|
21
|
-
async find(system, event) {
|
|
22
|
-
return await this.repo.findOne({ where: { system, event, active: true } });
|
|
21
|
+
async find(system, event, action) {
|
|
22
|
+
return await this.repo.findOne({ where: { system, event, action, active: true } });
|
|
23
23
|
}
|
|
24
24
|
async getCredential(endpoint) {
|
|
25
25
|
if (!endpoint?.credentialId)
|
|
@@ -3,6 +3,6 @@ import { IntegrationInbound } from "../entities/integration/integration-inbound.
|
|
|
3
3
|
export declare class InboundRepositoryService {
|
|
4
4
|
private readonly repo;
|
|
5
5
|
constructor(repo: Repository<IntegrationInbound>);
|
|
6
|
-
getEvent(system: string, event: string): Promise<IntegrationInbound[]>;
|
|
6
|
+
getEvent(system: string, event: string, action: string): Promise<IntegrationInbound[]>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=integration-inbound-repository.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-inbound-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/integration-inbound-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAG3F,qBACa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAGjD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;CA+
|
|
1
|
+
{"version":3,"file":"integration-inbound-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/integration-inbound-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAG3F,qBACa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAGjD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;CA+C7F"}
|
|
@@ -15,9 +15,9 @@ let InboundRepositoryService = class InboundRepositoryService {
|
|
|
15
15
|
constructor(repo) {
|
|
16
16
|
this.repo = repo;
|
|
17
17
|
}
|
|
18
|
-
async getEvent(system, event) {
|
|
18
|
+
async getEvent(system, event, action) {
|
|
19
19
|
return this.repo.find({
|
|
20
|
-
where: { system, event, active: true },
|
|
20
|
+
where: { system, event, action, active: true },
|
|
21
21
|
order: { version: "DESC" },
|
|
22
22
|
})
|
|
23
23
|
.then((events) => {
|
|
@@ -3,7 +3,7 @@ import { IntegrationOutbound } from "../entities/integration/integration-outboun
|
|
|
3
3
|
export declare class OutboundRepositoryService {
|
|
4
4
|
private readonly repo;
|
|
5
5
|
constructor(repo: Repository<IntegrationOutbound>);
|
|
6
|
-
getRoutes(system: string, event: string): Promise<IntegrationOutbound[]>;
|
|
7
|
-
find(system: string, event: string): Promise<IntegrationOutbound | null>;
|
|
6
|
+
getRoutes(system: string, event: string, action: string): Promise<IntegrationOutbound[]>;
|
|
7
|
+
find(system: string, event: string, action: string): Promise<IntegrationOutbound | null>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=integration-outbound-repository.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-outbound-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/integration-outbound-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAE7F,qBACa,yBAAyB;IAGlC,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,mBAAmB,CAAC;IAGlD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"integration-outbound-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/integration-outbound-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAE7F,qBACa,yBAAyB;IAGlC,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,mBAAmB,CAAC;IAGlD,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAIxF,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;CAG/F"}
|
|
@@ -15,11 +15,11 @@ let OutboundRepositoryService = class OutboundRepositoryService {
|
|
|
15
15
|
constructor(repo) {
|
|
16
16
|
this.repo = repo;
|
|
17
17
|
}
|
|
18
|
-
async getRoutes(system, event) {
|
|
19
|
-
return this.repo.find({ where: { system, event, active: true }, order: { version: "DESC" } });
|
|
18
|
+
async getRoutes(system, event, action) {
|
|
19
|
+
return this.repo.find({ where: { system, event, action, active: true }, order: { version: "DESC" } });
|
|
20
20
|
}
|
|
21
|
-
async find(system, event) {
|
|
22
|
-
return this.repo.findOne({ where: { system, event, active: true }, order: { version: "DESC" } });
|
|
21
|
+
async find(system, event, action) {
|
|
22
|
+
return this.repo.findOne({ where: { system, event, action, active: true }, order: { version: "DESC" } });
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
OutboundRepositoryService = __decorate([
|