@hubspot/local-dev-lib 0.7.11-experimental.0 → 0.7.12-experimental.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.
|
@@ -5,6 +5,7 @@ const TEST_ACCOUNTS_API_PATH_V3 = 'integrators/test-portals/v3';
|
|
|
5
5
|
export function fetchDeveloperTestAccounts(accountId) {
|
|
6
6
|
return http.get(accountId, {
|
|
7
7
|
url: TEST_ACCOUNTS_API_PATH,
|
|
8
|
+
timeout: SANDBOX_TIMEOUT,
|
|
8
9
|
});
|
|
9
10
|
}
|
|
10
11
|
export function createDeveloperTestAccount(accountId, accountInfo) {
|
package/config/state.js
CHANGED
|
@@ -7,6 +7,7 @@ import { STATE_FLAGS } from '../constants/config.js';
|
|
|
7
7
|
const i18nKey = 'config.state';
|
|
8
8
|
const DEFAULT_STATE = {
|
|
9
9
|
[STATE_FLAGS.MCP_TOTAL_TOOL_CALLS]: 0,
|
|
10
|
+
[STATE_FLAGS.MCP_PROMOTION_LAST_SHOWN_AT]: undefined,
|
|
10
11
|
[STATE_FLAGS.USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION]: undefined,
|
|
11
12
|
};
|
|
12
13
|
function ensureCLIDirectory() {
|
package/constants/config.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare const HUBSPOT_ACCOUNT_TYPE_STRINGS: {
|
|
|
56
56
|
};
|
|
57
57
|
export declare const STATE_FLAGS: {
|
|
58
58
|
readonly MCP_TOTAL_TOOL_CALLS: "mcpTotalToolCalls";
|
|
59
|
+
readonly MCP_PROMOTION_LAST_SHOWN_AT: "mcpPromotionLastShownAt";
|
|
59
60
|
readonly USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION: "usageTrackingMessageLastShowVersion";
|
|
60
61
|
};
|
|
61
62
|
export declare const CONFIG_FLAGS: {
|
package/constants/config.js
CHANGED
|
@@ -59,6 +59,7 @@ export const HUBSPOT_ACCOUNT_TYPE_STRINGS = {
|
|
|
59
59
|
};
|
|
60
60
|
export const STATE_FLAGS = {
|
|
61
61
|
MCP_TOTAL_TOOL_CALLS: 'mcpTotalToolCalls',
|
|
62
|
+
MCP_PROMOTION_LAST_SHOWN_AT: 'mcpPromotionLastShownAt',
|
|
62
63
|
USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION: 'usageTrackingMessageLastShowVersion',
|
|
63
64
|
};
|
|
64
65
|
export const CONFIG_FLAGS = {
|
|
@@ -7,7 +7,6 @@ import { escapeRegExp } from '../escapeRegExp.js';
|
|
|
7
7
|
import { isModuleFolderChild } from '../../utils/cms/modules.js';
|
|
8
8
|
import { logger } from '../logger.js';
|
|
9
9
|
import { i18n } from '../../utils/lang.js';
|
|
10
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
11
10
|
const i18nKey = 'lib.cms.handleFieldsJs';
|
|
12
11
|
export class FieldsJs {
|
|
13
12
|
projectDir;
|
|
@@ -37,6 +36,11 @@ export class FieldsJs {
|
|
|
37
36
|
convertFieldsJs(writeDir) {
|
|
38
37
|
const filePath = this.filePath;
|
|
39
38
|
const dirName = path.dirname(filePath);
|
|
39
|
+
// Keep this inside the function: at module scope, webpack inlines
|
|
40
|
+
// `import.meta.url` as a build-machine string literal, which crashes
|
|
41
|
+
// bundled consumers (e.g. the VS Code extension) on Windows with
|
|
42
|
+
// "File URL path must be absolute".
|
|
43
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
40
44
|
return new Promise((resolve, reject) => {
|
|
41
45
|
const fieldOptionsAsString = Array.isArray(this.fieldOptions)
|
|
42
46
|
? this.fieldOptions.join(',')
|
package/package.json
CHANGED
package/types/Config.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export type GitInclusionResult = {
|
|
|
29
29
|
export type ConfigFlag = ValueOf<typeof CONFIG_FLAGS>;
|
|
30
30
|
export type HubSpotState = {
|
|
31
31
|
[STATE_FLAGS.MCP_TOTAL_TOOL_CALLS]: number;
|
|
32
|
+
[STATE_FLAGS.MCP_PROMOTION_LAST_SHOWN_AT]?: string;
|
|
32
33
|
[STATE_FLAGS.USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION]?: string;
|
|
33
34
|
};
|
|
34
35
|
export type HubSpotConfigErrorType = ValueOf<typeof HUBSPOT_CONFIG_ERROR_TYPES>;
|