@cargolift-cdi/types 0.1.43 → 0.1.44

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.
@@ -158,7 +158,7 @@ __decorate([
158
158
  ], IntegrationEndpoint.prototype, "updatedAt", void 0);
159
159
  IntegrationEndpoint = __decorate([
160
160
  Entity({ name: "integration_endpoint" }),
161
- Index(["system", "event", "active"], { unique: true }),
161
+ Index(["system", "event", "action", "active"], { unique: true }),
162
162
  Index(["credentialId"])
163
163
  ], IntegrationEndpoint);
164
164
  export { IntegrationEndpoint };
@@ -13,6 +13,8 @@ export declare class IntegrationInbound {
13
13
  action: string;
14
14
  /** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
15
15
  version: number;
16
+ /**Se a rota está ativa */
17
+ active: boolean;
16
18
  /** Descrição opcional amigável ao usuário */
17
19
  description?: string | null;
18
20
  /** Pré-validação do payload de origem */
@@ -21,8 +23,6 @@ export declare class IntegrationInbound {
21
23
  transformation: string;
22
24
  /** Regra global (BRE RulesConfiguration) */
23
25
  rules: Record<string, any>;
24
- /**Se a rota está ativa */
25
- active: boolean;
26
26
  /** Opções adicionais (reservado para uso futuro) */
27
27
  options?: Record<string, any> | null;
28
28
  createdAt: Date;
@@ -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;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"}
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,0BAA0B;IAE1B,MAAM,EAAG,OAAO,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,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"}
@@ -20,6 +20,8 @@ let IntegrationInbound = class IntegrationInbound {
20
20
  action;
21
21
  /** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
22
22
  version;
23
+ /**Se a rota está ativa */
24
+ active;
23
25
  /** Descrição opcional amigável ao usuário */
24
26
  description;
25
27
  /** Pré-validação do payload de origem */
@@ -28,8 +30,6 @@ let IntegrationInbound = class IntegrationInbound {
28
30
  transformation;
29
31
  /** Regra global (BRE RulesConfiguration) */
30
32
  rules;
31
- /**Se a rota está ativa */
32
- active;
33
33
  /** Opções adicionais (reservado para uso futuro) */
34
34
  options;
35
35
  createdAt;
@@ -50,6 +50,9 @@ __decorate([
50
50
  __decorate([
51
51
  Column({ type: "int", default: 1 })
52
52
  ], IntegrationInbound.prototype, "version", void 0);
53
+ __decorate([
54
+ Column({ type: "boolean", default: true })
55
+ ], IntegrationInbound.prototype, "active", void 0);
53
56
  __decorate([
54
57
  Column({ type: "varchar", length: 500, nullable: true })
55
58
  ], IntegrationInbound.prototype, "description", void 0);
@@ -62,9 +65,6 @@ __decorate([
62
65
  __decorate([
63
66
  Column({ type: 'jsonb', nullable: true })
64
67
  ], IntegrationInbound.prototype, "rules", void 0);
65
- __decorate([
66
- Column({ type: "boolean", default: true })
67
- ], IntegrationInbound.prototype, "active", void 0);
68
68
  __decorate([
69
69
  Column({ type: "jsonb", nullable: true })
70
70
  ], IntegrationInbound.prototype, "options", void 0);
@@ -76,6 +76,6 @@ __decorate([
76
76
  ], IntegrationInbound.prototype, "updatedAt", void 0);
77
77
  IntegrationInbound = __decorate([
78
78
  Entity({ name: "integration_inbound" }),
79
- Index(["system", "event", "version"], { unique: true })
79
+ Index(["system", "event", "action", "version"], { unique: true })
80
80
  ], IntegrationInbound);
81
81
  export { IntegrationInbound };
@@ -6,20 +6,20 @@ export declare class IntegrationOutbound {
6
6
  id: string;
7
7
  /** Sistema de origem (e.g., 'tms') */
8
8
  system: string;
9
- /** Sistema de destino (e.g., 'erp', 'wms') */
10
- targetSystem: string;
11
9
  /** Evento (chave) (e.g., 'driver' or 'driver.created') */
12
10
  event: string;
13
11
  /** Ação (e.g., 'create', 'update', 'delete', etc */
14
12
  action: string;
13
+ /** Sistema de destino (e.g., 'erp', 'wms') */
14
+ targetSystem: string;
15
15
  /** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
16
16
  version: number;
17
+ /** Se a rota está ativa */
18
+ active: boolean;
17
19
  /** Descrição */
18
20
  description?: string | null;
19
21
  /** Regras (BRE RulesConfiguration) */
20
22
  rules: Record<string, any>;
21
- /** Se a rota está ativa */
22
- active: boolean;
23
23
  /** Opções adicionais (reservado para uso futuro) */
24
24
  options?: Record<string, any> | null;
25
25
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"integration-outbound.entity.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-outbound.entity.ts"],"names":[],"mappings":"AAoCA;;;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;IAEb,oDAAoD;IAEtD,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"}
1
+ {"version":3,"file":"integration-outbound.entity.d.ts","sourceRoot":"","sources":["../../../../src/db/entities/integration/integration-outbound.entity.ts"],"names":[],"mappings":"AAoCA;;;GAGG;AACH,qBAEa,mBAAmB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAEZ,sCAAsC;IAEtC,MAAM,EAAG,MAAM,CAAC;IAEhB,0DAA0D;IAE1D,KAAK,EAAG,MAAM,CAAC;IAEb,oDAAoD;IAEtD,MAAM,EAAG,MAAM,CAAC;IAEhB,8CAA8C;IAE9C,YAAY,EAAG,MAAM,CAAC;IAGtB,gHAAgH;IAEhH,OAAO,EAAG,MAAM,CAAC;IAEjB,2BAA2B;IAE3B,MAAM,EAAG,OAAO,CAAC;IAGjB,gBAAgB;IAEhB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,sCAAsC;IAEtC,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE5B,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"}
@@ -39,20 +39,20 @@ let IntegrationOutbound = class IntegrationOutbound {
39
39
  id;
40
40
  /** Sistema de origem (e.g., 'tms') */
41
41
  system;
42
- /** Sistema de destino (e.g., 'erp', 'wms') */
43
- targetSystem;
44
42
  /** Evento (chave) (e.g., 'driver' or 'driver.created') */
45
43
  event;
46
44
  /** Ação (e.g., 'create', 'update', 'delete', etc */
47
45
  action;
46
+ /** Sistema de destino (e.g., 'erp', 'wms') */
47
+ targetSystem;
48
48
  /** Versão da rota. Apenas a última versão pode estar ativa. Versões anteriores não podem sofrer modificações */
49
49
  version;
50
+ /** Se a rota está ativa */
51
+ active;
50
52
  /** Descrição */
51
53
  description;
52
54
  /** Regras (BRE RulesConfiguration) */
53
55
  rules;
54
- /** Se a rota está ativa */
55
- active;
56
56
  /** Opções adicionais (reservado para uso futuro) */
57
57
  options;
58
58
  createdAt;
@@ -64,27 +64,27 @@ __decorate([
64
64
  __decorate([
65
65
  Column({ type: "varchar", length: 80 })
66
66
  ], IntegrationOutbound.prototype, "system", void 0);
67
- __decorate([
68
- Column({ name: "target_system", type: "varchar", length: 80 })
69
- ], IntegrationOutbound.prototype, "targetSystem", void 0);
70
67
  __decorate([
71
68
  Column({ type: "varchar", length: 80 })
72
69
  ], IntegrationOutbound.prototype, "event", void 0);
73
70
  __decorate([
74
71
  Column({ type: "varchar", length: 40 })
75
72
  ], IntegrationOutbound.prototype, "action", void 0);
73
+ __decorate([
74
+ Column({ name: "target_system", type: "varchar", length: 80 })
75
+ ], IntegrationOutbound.prototype, "targetSystem", void 0);
76
76
  __decorate([
77
77
  Column({ type: "int", default: 1 })
78
78
  ], IntegrationOutbound.prototype, "version", void 0);
79
+ __decorate([
80
+ Column({ type: "boolean", default: true })
81
+ ], IntegrationOutbound.prototype, "active", void 0);
79
82
  __decorate([
80
83
  Column({ type: "varchar", length: 500, nullable: true })
81
84
  ], IntegrationOutbound.prototype, "description", void 0);
82
85
  __decorate([
83
86
  Column({ type: "jsonb" })
84
87
  ], IntegrationOutbound.prototype, "rules", void 0);
85
- __decorate([
86
- Column({ type: "boolean", default: true })
87
- ], IntegrationOutbound.prototype, "active", void 0);
88
88
  __decorate([
89
89
  Column({ type: "jsonb", nullable: true })
90
90
  ], IntegrationOutbound.prototype, "options", void 0);
@@ -96,6 +96,6 @@ __decorate([
96
96
  ], IntegrationOutbound.prototype, "updatedAt", void 0);
97
97
  IntegrationOutbound = __decorate([
98
98
  Entity({ name: "integration_outbound" }),
99
- Index(["system", "event", "targetSystem", "version"], { unique: true })
99
+ Index(["system", "event", "action", "targetSystem", "version"], { unique: true })
100
100
  ], IntegrationOutbound);
101
101
  export { IntegrationOutbound };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cargolift-cdi/types",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "description": "TypeScript types e interfaces comuns para projetos Cargolift CDI",
5
5
  "keywords": [
6
6
  "typescript",