@sipgate/integration-bridge 1.0.27 → 1.0.29

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,7 +5,7 @@ const models_1 = require("../models");
5
5
  function errorHandlerMiddleware(error, req, res,
6
6
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
7
  next) {
8
- if (error instanceof models_1.ServerError) {
8
+ if (error instanceof models_1.ServerError && error.status >= 400) {
9
9
  res.status(error.status).send(error.message);
10
10
  return;
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"error-handler.middleware.js","sourceRoot":"","sources":["../../src/middlewares/error-handler.middleware.ts"],"names":[],"mappings":";;;AACA,sCAAwC;AAExC,SAAgB,sBAAsB,CACpC,KAA0B,EAC1B,GAAY,EACZ,GAAa;AACb,6DAA6D;AAC7D,IAAkB;IAElB,IAAI,KAAK,YAAY,oBAAW,EAAE;QAChC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7C,OAAO;KACR;IAED,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAbD,wDAaC"}
1
+ {"version":3,"file":"error-handler.middleware.js","sourceRoot":"","sources":["../../src/middlewares/error-handler.middleware.ts"],"names":[],"mappings":";;;AACA,sCAAwC;AAExC,SAAgB,sBAAsB,CACpC,KAA0B,EAC1B,GAAY,EACZ,GAAa;AACb,6DAA6D;AAC7D,IAAkB;IAElB,IAAI,KAAK,YAAY,oBAAW,IAAI,KAAK,CAAC,MAAM,IAAI,GAAG,EAAE;QACvD,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7C,OAAO;KACR;IAED,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAbD,wDAaC"}
@@ -21,6 +21,8 @@ type AdditionalProperties = {
21
21
  [IntegrationEntityType.ACCOUNTS]?: never;
22
22
  [IntegrationEntityType.OPPORTUNITIES]?: never;
23
23
  [IntegrationEntityType.CASES]?: never;
24
+ [IntegrationEntityType.BUILDING_OBJECTS]?: never;
25
+ [IntegrationEntityType.BUILDING_OBJECTS_LEADS]?: never;
24
26
  [IntegrationEntityType.CONTACTS_FOLDER]?: never;
25
27
  [IntegrationEntityType.USERS]?: never;
26
28
  [IntegrationEntityType.TASKS]?: never;
@@ -37,6 +39,8 @@ export declare enum IntegrationEntityType {
37
39
  ACCOUNTS = "accounts",
38
40
  OPPORTUNITIES = "opportunities",
39
41
  CASES = "cases",
42
+ BUILDING_OBJECTS = "building_objects",
43
+ BUILDING_OBJECTS_LEADS = "building_objects_leads",
40
44
  CONTACTS_FOLDER = "contacts_folder",
41
45
  USERS = "users",
42
46
  TASKS = "tasks"
@@ -13,6 +13,9 @@ var IntegrationEntityType;
13
13
  IntegrationEntityType["ACCOUNTS"] = "accounts";
14
14
  IntegrationEntityType["OPPORTUNITIES"] = "opportunities";
15
15
  IntegrationEntityType["CASES"] = "cases";
16
+ // lignotrend-salesforce specific
17
+ IntegrationEntityType["BUILDING_OBJECTS"] = "building_objects";
18
+ IntegrationEntityType["BUILDING_OBJECTS_LEADS"] = "building_objects_leads";
16
19
  // outlook specific
17
20
  IntegrationEntityType["CONTACTS_FOLDER"] = "contacts_folder";
18
21
  // outlook and sipgate
@@ -1 +1 @@
1
- {"version":3,"file":"integration-entity.model.js","sourceRoot":"","sources":["../../src/models/integration-entity.model.ts"],"names":[],"mappings":";;;AAoCA,IAAY,qBAiBX;AAjBD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,mBAAmB;IACnB,wCAAe,CAAA;IACf,gDAAuB,CAAA;IACvB,4CAAmB,CAAA;IACnB,uBAAuB;IACvB,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,wDAA+B,CAAA;IAC/B,wCAAe,CAAA;IACf,mBAAmB;IACnB,4DAAmC,CAAA;IACnC,sBAAsB;IACtB,wCAAe,CAAA;IACf,SAAS;IACT,wCAAe,CAAA;AACjB,CAAC,EAjBW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAiBhC"}
1
+ {"version":3,"file":"integration-entity.model.js","sourceRoot":"","sources":["../../src/models/integration-entity.model.ts"],"names":[],"mappings":";;;AAsCA,IAAY,qBAoBX;AApBD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,mBAAmB;IACnB,wCAAe,CAAA;IACf,gDAAuB,CAAA;IACvB,4CAAmB,CAAA;IACnB,uBAAuB;IACvB,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,wDAA+B,CAAA;IAC/B,wCAAe,CAAA;IACf,iCAAiC;IACjC,8DAAqC,CAAA;IACrC,0EAAiD,CAAA;IACjD,mBAAmB;IACnB,4DAAmC,CAAA;IACnC,sBAAsB;IACtB,wCAAe,CAAA;IACf,SAAS;IACT,wCAAe,CAAA;AACjB,CAAC,EApBW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAoBhC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sipgate/integration-bridge",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "sipgate Integration Bridge Framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",