@hubspot/local-dev-lib 3.12.0-beta.0 → 3.13.0-beta.0

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 { DeveloperTestAccount, CreateDeveloperTestAccountResponse, FetchDeveloperTestAccountsResponse, DeveloperTestAccountConfig, CreateDeveloperTestAccountV3Response, InstallOauthAppIntoDeveloperTestAccountResponse, TestPortalStatusResponse } from '../types/developerTestAccounts';
1
+ import { DeveloperTestAccount, CreateDeveloperTestAccountResponse, FetchDeveloperTestAccountsResponse, DeveloperTestAccountConfig, CreateDeveloperTestAccountV3Response, InstallOauthAppIntoDeveloperTestAccountResponse, TestPortalStatusResponse, GenerateDeveloperTestAccountPersonalAccessKeyResponse } from '../types/developerTestAccounts';
2
2
  import { Environment } from '../types/Config';
3
3
  import { HubSpotPromise } from '../types/Http';
4
4
  export declare function fetchDeveloperTestAccounts(accountId: number): HubSpotPromise<FetchDeveloperTestAccountsResponse>;
@@ -9,3 +9,4 @@ export declare function fetchDeveloperTestAccountData(accessToken: string, accou
9
9
  export declare function installOauthAppIntoDeveloperTestAccount(accountId: number, testAccountId: number, projectName: string, appUId: string): HubSpotPromise<InstallOauthAppIntoDeveloperTestAccountResponse>;
10
10
  export declare function fetchDeveloperTestAccountOauthAppInstallStatus(accountId: number, projectName: string, appUId: string): HubSpotPromise<TestPortalStatusResponse>;
11
11
  export declare function fetchDeveloperTestAccountGateSyncStatus(accountId: number, testAccountId: number): HubSpotPromise<TestPortalStatusResponse>;
12
+ export declare function generateDeveloperTestAccountPersonalAccessKey(accountId: number, testAccountId: number): HubSpotPromise<GenerateDeveloperTestAccountPersonalAccessKeyResponse>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.fetchDeveloperTestAccountGateSyncStatus = exports.fetchDeveloperTestAccountOauthAppInstallStatus = exports.installOauthAppIntoDeveloperTestAccount = exports.fetchDeveloperTestAccountData = exports.deleteDeveloperTestAccount = exports.createDeveloperTestAccount = exports.fetchDeveloperTestAccounts = void 0;
6
+ exports.generateDeveloperTestAccountPersonalAccessKey = exports.fetchDeveloperTestAccountGateSyncStatus = exports.fetchDeveloperTestAccountOauthAppInstallStatus = exports.installOauthAppIntoDeveloperTestAccount = exports.fetchDeveloperTestAccountData = exports.deleteDeveloperTestAccount = exports.createDeveloperTestAccount = exports.fetchDeveloperTestAccounts = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const http_1 = require("../http");
9
9
  const getAxiosConfig_1 = require("../http/getAxiosConfig");
@@ -86,3 +86,9 @@ function fetchDeveloperTestAccountGateSyncStatus(accountId, testAccountId) {
86
86
  });
87
87
  }
88
88
  exports.fetchDeveloperTestAccountGateSyncStatus = fetchDeveloperTestAccountGateSyncStatus;
89
+ function generateDeveloperTestAccountPersonalAccessKey(accountId, testAccountId) {
90
+ return http_1.http.get(accountId, {
91
+ url: `${TEST_ACCOUNTS_API_PATH_V3}/generate-pak/${testAccountId}`,
92
+ });
93
+ }
94
+ exports.generateDeveloperTestAccountPersonalAccessKey = generateDeveloperTestAccountPersonalAccessKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "3.12.0-beta.0",
3
+ "version": "3.13.0-beta.0",
4
4
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,6 @@ export type CreateDeveloperTestAccountResponse = {
20
20
  export type CreateDeveloperTestAccountV3Response = {
21
21
  id: number;
22
22
  accountName: string;
23
- personalAccessKey: string;
24
23
  };
25
24
  export type FetchDeveloperTestAccountsResponse = {
26
25
  results: DeveloperTestAccount[];
@@ -48,3 +47,6 @@ export type InstallOauthAppIntoDeveloperTestAccountResponse = {
48
47
  export type TestPortalStatusResponse = {
49
48
  status: 'IN_PROGRESS' | 'SUCCESS';
50
49
  };
50
+ export type GenerateDeveloperTestAccountPersonalAccessKeyResponse = {
51
+ personalAccessKey: string;
52
+ };