@sipgate/integration-bridge 0.14.1 → 0.14.3

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.
@@ -1,4 +1,4 @@
1
- import { IntegrationEntity } from "./integration-entity.model";
1
+ import { IntegrationEntity, IntegrationEntityType } from "./integration-entity.model";
2
2
  export declare enum PhoneNumberLabel {
3
3
  WORK = "WORK",
4
4
  MOBILE = "MOBILE",
@@ -34,6 +34,7 @@ export type ContactResult = {
34
34
  contactUrl: string | null;
35
35
  avatarUrl: string | null;
36
36
  readonly?: boolean;
37
+ type?: IntegrationEntityType;
37
38
  relatesTo?: IntegrationEntity[];
38
39
  };
39
40
  export type ContactTemplate = BaseContact & {
@@ -1 +1 @@
1
- {"version":3,"file":"contact.model.js","sourceRoot":"","sources":["../../src/models/contact.model.ts"],"names":[],"mappings":";;;AAEA,IAAY,gBAcX;AAdD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,6CAAyB,CAAA;IACzB,2CAAuB,CAAA;IACvB,iCAAa,CAAA;IACb,+CAA2B,CAAA;IAC3B,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAdW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAc3B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
1
+ {"version":3,"file":"contact.model.js","sourceRoot":"","sources":["../../src/models/contact.model.ts"],"names":[],"mappings":";;;AAKA,IAAY,gBAcX;AAdD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,6CAAyB,CAAA;IACzB,2CAAuB,CAAA;IACvB,iCAAa,CAAA;IACb,+CAA2B,CAAA;IAC3B,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAdW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAc3B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
@@ -7,6 +7,10 @@ export type LabeledIntegrationEntity = IntegrationEntity & {
7
7
  label: string;
8
8
  };
9
9
  export declare enum IntegrationEntityType {
10
+ CONTACTS = "contacts",
10
11
  DEALS = "deals",
11
- COMPANIES = "companies"
12
+ COMPANIES = "companies",
13
+ LEADS = "leads",
14
+ ACCOUNTS = "accounts",
15
+ OPPORTUNITIES = "opportunities"
12
16
  }
@@ -3,7 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IntegrationEntityType = void 0;
4
4
  var IntegrationEntityType;
5
5
  (function (IntegrationEntityType) {
6
+ IntegrationEntityType["CONTACTS"] = "contacts";
7
+ // hubspot specific
6
8
  IntegrationEntityType["DEALS"] = "deals";
7
9
  IntegrationEntityType["COMPANIES"] = "companies";
10
+ // salesforces specific
11
+ IntegrationEntityType["LEADS"] = "leads";
12
+ IntegrationEntityType["ACCOUNTS"] = "accounts";
13
+ IntegrationEntityType["OPPORTUNITIES"] = "opportunities";
8
14
  })(IntegrationEntityType = exports.IntegrationEntityType || (exports.IntegrationEntityType = {}));
9
15
  //# sourceMappingURL=integration-entity.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration-entity.model.js","sourceRoot":"","sources":["../../src/models/integration-entity.model.ts"],"names":[],"mappings":";;;AAUA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,wCAAe,CAAA;IACf,gDAAuB,CAAA;AACzB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
1
+ {"version":3,"file":"integration-entity.model.js","sourceRoot":"","sources":["../../src/models/integration-entity.model.ts"],"names":[],"mappings":";;;AAUA,IAAY,qBASX;AATD,WAAY,qBAAqB;IAC/B,8CAAqB,CAAA;IACrB,mBAAmB;IACnB,wCAAe,CAAA;IACf,gDAAuB,CAAA;IACvB,uBAAuB;IACvB,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,wDAA+B,CAAA;AACjC,CAAC,EATW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAShC"}
@@ -1,4 +1,5 @@
1
1
  export declare enum IntegrationErrorType {
2
+ INTEGRATION_INVALID_URL = "integration/invalid-url",
2
3
  INTEGRATION_REFRESH_ERROR = "integration/refresh-error",
3
4
  CONTACT_CREATE_ERROR_CONFLICT = "contact/create-error/conflict",
4
5
  CONTACT_CREATE_ERROR_EMAIL_CONFLICT = "contact/create-error/email-conflict"
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DELEGATE_TO_FRONTEND_CODE = exports.IntegrationErrorType = void 0;
4
4
  var IntegrationErrorType;
5
5
  (function (IntegrationErrorType) {
6
+ IntegrationErrorType["INTEGRATION_INVALID_URL"] = "integration/invalid-url";
6
7
  IntegrationErrorType["INTEGRATION_REFRESH_ERROR"] = "integration/refresh-error";
7
8
  IntegrationErrorType["CONTACT_CREATE_ERROR_CONFLICT"] = "contact/create-error/conflict";
8
9
  IntegrationErrorType["CONTACT_CREATE_ERROR_EMAIL_CONFLICT"] = "contact/create-error/email-conflict";
@@ -1 +1 @@
1
- {"version":3,"file":"integration-error.model.js","sourceRoot":"","sources":["../../src/models/integration-error.model.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,+EAAuD,CAAA;IACvD,uFAA+D,CAAA;IAC/D,mGAA2E,CAAA;AAC7E,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAEY,QAAA,yBAAyB,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"integration-error.model.js","sourceRoot":"","sources":["../../src/models/integration-error.model.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,2EAAmD,CAAA;IACnD,+EAAuD,CAAA;IACvD,uFAA+D,CAAA;IAC/D,mGAA2E,CAAA;AAC7E,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AAEY,QAAA,yBAAyB,GAAG,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sipgate/integration-bridge",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "sipgate Integration Bridge Framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,8 +29,7 @@
29
29
  },
30
30
  "lint-staged": {
31
31
  "*.ts": [
32
- "prettier --write",
33
- "git add"
32
+ "prettier --write"
34
33
  ]
35
34
  },
36
35
  "jest": {
@@ -52,13 +51,13 @@
52
51
  "@types/express": "4.17.17",
53
52
  "@types/jest": "^29.4.0",
54
53
  "@types/lru-cache": "7.10.9",
55
- "@types/node": "18.15.11",
54
+ "@types/node": "18.16.0",
56
55
  "@types/redis": "4.0.10",
57
56
  "husky": "8.0.3",
58
57
  "jest": "^29.4.0",
59
58
  "lint-staged": "13.2.1",
60
59
  "node-mocks-http": "1.12.2",
61
- "prettier": "2.8.7",
60
+ "prettier": "2.8.8",
62
61
  "rimraf": "3.0.2",
63
62
  "ts-jest": "^29.0.5",
64
63
  "typescript": "4.9.5"