@orchesty/connector-hubspot 1.0.1 → 1.0.2

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.
@@ -9,6 +9,7 @@ import RequestDto from '@orchesty/nodejs-sdk/dist/lib/Transport/Curl/RequestDto'
9
9
  import ResponseDto from '@orchesty/nodejs-sdk/dist/lib/Transport/Curl/ResponseDto';
10
10
  import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
11
11
  import AProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/AProcessDto';
12
+ export declare const NAME = "hub-spot";
12
13
  export declare const APP_ID = "app_id";
13
14
  export declare const BASE_URL = "https://api.hubapi.com";
14
15
  export default class HubSpotApplication extends AOAuth2Application implements IWebhookApplication {
@@ -36,8 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.BASE_URL = exports.APP_ID = void 0;
40
- const GitHubApplication_1 = require("@orchesty/connector-git-hub/src/GitHubApplication");
39
+ exports.BASE_URL = exports.APP_ID = exports.NAME = void 0;
41
40
  const ApplicationTypeEnum_1 = __importDefault(require("@orchesty/nodejs-sdk/dist/lib/Application/Base/ApplicationTypeEnum"));
42
41
  const CoreFormsEnum_1 = __importStar(require("@orchesty/nodejs-sdk/dist/lib/Application/Base/CoreFormsEnum"));
43
42
  const Field_1 = __importDefault(require("@orchesty/nodejs-sdk/dist/lib/Application/Model/Form/Field"));
@@ -53,6 +52,7 @@ const HttpMethods_1 = require("@orchesty/nodejs-sdk/dist/lib/Transport/HttpMetho
53
52
  const Headers_1 = require("@orchesty/nodejs-sdk/dist/lib/Utils/Headers");
54
53
  const ProcessDto_1 = __importDefault(require("@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto"));
55
54
  const http_status_codes_1 = require("http-status-codes");
55
+ exports.NAME = 'hub-spot';
56
56
  exports.APP_ID = 'app_id';
57
57
  exports.BASE_URL = 'https://api.hubapi.com';
58
58
  class HubSpotApplication extends AOAuth2Application_1.default {
@@ -60,7 +60,7 @@ class HubSpotApplication extends AOAuth2Application_1.default {
60
60
  return ApplicationTypeEnum_1.default.WEBHOOK;
61
61
  }
62
62
  getName() {
63
- return 'hub-spot';
63
+ return exports.NAME;
64
64
  }
65
65
  getPublicName() {
66
66
  return 'HubSpot';
@@ -117,12 +117,12 @@ class HubSpotApplication extends AOAuth2Application_1.default {
117
117
  },
118
118
  enabled: false,
119
119
  });
120
- return this.getRequestDto(ProcessDto_1.default.createForFormRequest(GitHubApplication_1.NAME, applicationInstall.getUser(), crypto.randomUUID()), applicationInstall, HttpMethods_1.HttpMethods.POST, hubspotUrl, body);
120
+ return this.getRequestDto(ProcessDto_1.default.createForFormRequest(exports.NAME, applicationInstall.getUser(), crypto.randomUUID()), applicationInstall, HttpMethods_1.HttpMethods.POST, hubspotUrl, body);
121
121
  }
122
122
  getWebhookUnsubscribeRequestDto(applicationInstall, webhook) {
123
123
  const url = `${exports.BASE_URL}/webhooks/v1/${applicationInstall
124
124
  .getSettings()[CoreFormsEnum_1.default.AUTHORIZATION_FORM][exports.APP_ID]}/subscriptions/${webhook.getWebhookId()}`;
125
- return this.getRequestDto(ProcessDto_1.default.createForFormRequest(GitHubApplication_1.NAME, applicationInstall.getUser(), crypto.randomUUID()), applicationInstall, HttpMethods_1.HttpMethods.DELETE, url);
125
+ return this.getRequestDto(ProcessDto_1.default.createForFormRequest(exports.NAME, applicationInstall.getUser(), crypto.randomUUID()), applicationInstall, HttpMethods_1.HttpMethods.DELETE, url);
126
126
  }
127
127
  processWebhookSubscribeResponse(dto, applicationInstall) {
128
128
  const jsonBody = dto.getJsonBody();
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchesty/connector-hubspot",
3
3
  "description": "",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "license": "Apache-2.0",
6
6
  "url": "https://github.com/Orchesty/orchesty-nodejs-connectors",
7
7
  "repository": "https://github.com/Orchesty/orchesty-nodejs-connectors",
@@ -17,7 +17,6 @@
17
17
  "keywords": [],
18
18
  "author": "info@hanaboso.com",
19
19
  "dependencies": {
20
- "@orchesty/connector-git-hub": "workspace:*",
21
20
  "@orchesty/nodejs-sdk": "^4.3.6",
22
21
  "http-status-codes": "^2.3.0"
23
22
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchesty/connector-hubspot",
3
3
  "description": "",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "license": "Apache-2.0",
6
6
  "url": "https://github.com/Orchesty/orchesty-nodejs-connectors",
7
7
  "repository": "https://github.com/Orchesty/orchesty-nodejs-connectors",
@@ -12,8 +12,7 @@
12
12
  "author": "info@hanaboso.com",
13
13
  "dependencies": {
14
14
  "@orchesty/nodejs-sdk": "^4.3.6",
15
- "http-status-codes": "^2.3.0",
16
- "@orchesty/connector-git-hub": "1.0.1"
15
+ "http-status-codes": "^2.3.0"
17
16
  },
18
17
  "engines": {
19
18
  "node": ">=24"