@cargolift-cdi/types 0.1.146 → 0.1.148

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.
@@ -5,5 +5,6 @@ export declare class EventRepositoryService {
5
5
  constructor(repo: Repository<IntegrationEvent>);
6
6
  getFirstActive(event: string): Promise<IntegrationEvent | null>;
7
7
  getAllActive(): Promise<IntegrationEvent[]>;
8
+ getAllActiveByRoutingMode(routingMode: IntegrationEvent["routingMode"]): Promise<IntegrationEvent[]>;
8
9
  }
9
10
  //# sourceMappingURL=integration-event-repository.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration-event-repository.service.d.ts","sourceRoot":"","sources":["../../src/repository/integration-event-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,qBACa,sBAAsB;IAG/B,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAG/C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAK/D,YAAY,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAGlD"}
1
+ {"version":3,"file":"integration-event-repository.service.d.ts","sourceRoot":"","sources":["../../src/repository/integration-event-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3E,qBACa,sBAAsB;IAG/B,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAG/C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAK/D,YAAY,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAK3C,yBAAyB,CAAC,WAAW,EAAE,gBAAgB,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAG3G"}
@@ -22,6 +22,10 @@ let EventRepositoryService = class EventRepositoryService {
22
22
  async getAllActive() {
23
23
  return await this.repo.find({ where: { active: true } });
24
24
  }
25
+ // Busca todos os eventos ativos
26
+ async getAllActiveByRoutingMode(routingMode) {
27
+ return await this.repo.find({ where: { active: true, routingMode } });
28
+ }
25
29
  };
26
30
  EventRepositoryService = __decorate([
27
31
  Injectable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cargolift-cdi/types",
3
- "version": "0.1.146",
3
+ "version": "0.1.148",
4
4
  "description": "TypeScript types e interfaces comuns para projetos Cargolift CDI",
5
5
  "keywords": [
6
6
  "typescript",