@hubspot/cli 5.2.0 → 5.2.1-beta.1

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/lib/sandboxes.js CHANGED
@@ -10,6 +10,7 @@ const {
10
10
  const { getConfig, getAccountId } = require('@hubspot/local-dev-lib/config');
11
11
  const CliProgressMultibarManager = require('./ui/CliProgressMultibarManager');
12
12
  const { promptUser } = require('./prompts/promptUtils');
13
+ const { isDevelopmentSandbox } = require('./accountTypes');
13
14
  const { getHubSpotWebsiteOrigin } = require('@hubspot/local-dev-lib/urls');
14
15
  const {
15
16
  HUBSPOT_ACCOUNT_TYPES,
@@ -41,19 +42,6 @@ const getSandboxTypeAsString = accountType => {
41
42
  const getSandboxName = config =>
42
43
  `[${getSandboxTypeAsString(config.accountType)} sandbox] `;
43
44
 
44
- const isSandbox = config =>
45
- config.accountType &&
46
- (config.accountType === HUBSPOT_ACCOUNT_TYPES.STANDARD_SANDBOX ||
47
- config.accountType === HUBSPOT_ACCOUNT_TYPES.DEVELOPMENT_SANDBOX);
48
-
49
- const isStandardSandbox = config =>
50
- config.accountType &&
51
- config.accountType === HUBSPOT_ACCOUNT_TYPES.STANDARD_SANDBOX;
52
-
53
- const isDevelopmentSandbox = config =>
54
- config.accountType &&
55
- config.accountType === HUBSPOT_ACCOUNT_TYPES.DEVELOPMENT_SANDBOX;
56
-
57
45
  function getHasSandboxesByType(parentAccountConfig, type) {
58
46
  const config = getConfig();
59
47
  const parentPortalId = getAccountId(parentAccountConfig.portalId);
@@ -356,9 +344,6 @@ module.exports = {
356
344
  sandboxTypeMap,
357
345
  sandboxApiTypeMap,
358
346
  syncTypes,
359
- isSandbox,
360
- isStandardSandbox,
361
- isDevelopmentSandbox,
362
347
  getSandboxName,
363
348
  getSandboxTypeAsString,
364
349
  getHasSandboxesByType,
package/lib/ui/index.js CHANGED
@@ -3,8 +3,12 @@ const { getAccountConfig } = require('@hubspot/local-dev-lib/config');
3
3
  const { logger } = require('@hubspot/local-dev-lib/logger');
4
4
  const supportsHyperlinks = require('./supportHyperlinks');
5
5
  const supportsColor = require('./supportsColor');
6
- const { isSandbox, getSandboxName } = require('../sandboxes');
7
- const { isDeveloperTestAccount } = require('../developerTestAccounts');
6
+ const {
7
+ isSandbox,
8
+ isDeveloperTestAccount,
9
+ isAppDeveloperAccount,
10
+ } = require('../accountTypes');
11
+ const { getSandboxName } = require('../sandboxes');
8
12
  const { i18n } = require('../lang');
9
13
 
10
14
  const {
@@ -87,6 +91,10 @@ const uiAccountDescription = (accountId, bold = true) => {
87
91
  accountTypeString = `[${
88
92
  HUBSPOT_ACCOUNT_TYPE_STRINGS[HUBSPOT_ACCOUNT_TYPES.DEVELOPER_TEST]
89
93
  }] `;
94
+ } else if (isAppDeveloperAccount(account)) {
95
+ accountTypeString = `[${
96
+ HUBSPOT_ACCOUNT_TYPE_STRINGS[HUBSPOT_ACCOUNT_TYPES.APP_DEVELOPER]
97
+ }] `;
90
98
  }
91
99
  const message = `${account.name} ${accountTypeString}(${account.portalId})`;
92
100
  return bold ? chalk.bold(message) : message;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/cli",
3
- "version": "5.2.0",
3
+ "version": "5.2.1-beta.1",
4
4
  "description": "CLI for working with HubSpot",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,10 +8,10 @@
8
8
  "url": "https://github.com/HubSpot/hubspot-cms-tools"
9
9
  },
10
10
  "dependencies": {
11
- "@hubspot/local-dev-lib": "^0.3.10",
12
- "@hubspot/serverless-dev-runtime": "5.1.4-beta.6",
11
+ "@hubspot/local-dev-lib": "^0.3.15",
12
+ "@hubspot/serverless-dev-runtime": "5.2.1-beta.1",
13
13
  "@hubspot/theme-preview-dev-server": "0.0.4",
14
- "@hubspot/ui-extensions-dev-server": "0.8.11",
14
+ "@hubspot/ui-extensions-dev-server": "0.8.12",
15
15
  "archiver": "^5.3.0",
16
16
  "chalk": "^4.1.2",
17
17
  "chokidar": "^3.0.1",
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "b617fec2c05af70815192d7a41127d90f5c6b6d2"
48
+ "gitHead": "201cb501441677860b93c2721f88d2811b5a0276"
49
49
  }