@hubspot/local-dev-lib 3.8.0 → 3.9.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.
package/api/appsDev.d.ts CHANGED
@@ -4,3 +4,4 @@ export declare function fetchPublicAppsForPortal(accountId: number): HubSpotProm
4
4
  export declare function fetchPublicAppDeveloperTestAccountInstallData(appId: number, accountId: number): HubSpotPromise<PublicAppDeveloperTestAccountInstallData>;
5
5
  export declare function fetchPublicAppProductionInstallCounts(appId: number, accountId: number): HubSpotPromise<PublicAppInstallCounts>;
6
6
  export declare function fetchPublicAppMetadata(appId: number, accountId: number): HubSpotPromise<PublicApp>;
7
+ export declare function installStaticAuthAppOnTestAccount(appId: number, accountId: number, scopeGroupIds: number[]): HubSpotPromise<void>;
package/api/appsDev.js CHANGED
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchPublicAppMetadata = exports.fetchPublicAppProductionInstallCounts = exports.fetchPublicAppDeveloperTestAccountInstallData = exports.fetchPublicAppsForPortal = void 0;
3
+ exports.installStaticAuthAppOnTestAccount = exports.fetchPublicAppMetadata = exports.fetchPublicAppProductionInstallCounts = exports.fetchPublicAppDeveloperTestAccountInstallData = exports.fetchPublicAppsForPortal = void 0;
4
4
  const http_1 = require("../http");
5
5
  const APPS_DEV_API_PATH = 'apps-dev/external/public/v3';
6
+ const APPS_HUBLETS_API_PATH = 'apps-hublets/external/static-token/v3';
6
7
  function fetchPublicAppsForPortal(accountId) {
7
8
  return http_1.http.get(accountId, {
8
9
  url: `${APPS_DEV_API_PATH}/full/portal`,
@@ -27,3 +28,14 @@ function fetchPublicAppMetadata(appId, accountId) {
27
28
  });
28
29
  }
29
30
  exports.fetchPublicAppMetadata = fetchPublicAppMetadata;
31
+ function installStaticAuthAppOnTestAccount(appId, accountId, scopeGroupIds) {
32
+ return http_1.http.post(accountId, {
33
+ url: APPS_HUBLETS_API_PATH,
34
+ data: {
35
+ appId,
36
+ targetInstallPortalId: accountId,
37
+ scopeGroupIds,
38
+ },
39
+ });
40
+ }
41
+ exports.installStaticAuthAppOnTestAccount = installStaticAuthAppOnTestAccount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
5
5
  "repository": {
6
6
  "type": "git",