@hubspot/local-dev-lib 0.3.3 → 0.3.4
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/projects.js +1 -1
- package/constants/config.d.ts +7 -0
- package/constants/config.js +9 -1
- package/lang/en.json +7 -0
- package/lang/lang/en.json +7 -0
- package/package.json +1 -1
- package/types/Http.d.ts +1 -1
package/api/projects.js
CHANGED
|
@@ -49,7 +49,7 @@ exports.fetchProject = fetchProject;
|
|
|
49
49
|
async function downloadProject(accountId, projectName, buildId) {
|
|
50
50
|
return http_1.default.get(accountId, {
|
|
51
51
|
url: `${PROJECTS_API_PATH}/${encodeURIComponent(projectName)}/builds/${buildId}/archive-full`,
|
|
52
|
-
|
|
52
|
+
responseType: 'arraybuffer',
|
|
53
53
|
headers: { accept: 'application/zip', 'Content-Type': 'application/json' },
|
|
54
54
|
});
|
|
55
55
|
}
|
package/constants/config.d.ts
CHANGED
|
@@ -9,3 +9,10 @@ export declare const HUBSPOT_ACCOUNT_TYPES: {
|
|
|
9
9
|
readonly STANDARD_SANDBOX: "STANDARD_SANDBOX";
|
|
10
10
|
readonly STANDARD: "STANDARD";
|
|
11
11
|
};
|
|
12
|
+
export declare const HUBSPOT_ACCOUNT_TYPE_STRINGS: {
|
|
13
|
+
readonly DEVELOPMENT_SANDBOX: string;
|
|
14
|
+
readonly STANDARD_SANDBOX: string;
|
|
15
|
+
readonly DEVELOPER_TEST: string;
|
|
16
|
+
readonly APP_DEVELOPER: string;
|
|
17
|
+
readonly STANDARD: string;
|
|
18
|
+
};
|
package/constants/config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HUBSPOT_ACCOUNT_TYPES = exports.MIN_HTTP_TIMEOUT = exports.HUBSPOT_CONFIGURATION_FILE = exports.HUBSPOT_CONFIGURATION_FOLDER = exports.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME = void 0;
|
|
3
|
+
exports.HUBSPOT_ACCOUNT_TYPE_STRINGS = exports.HUBSPOT_ACCOUNT_TYPES = exports.MIN_HTTP_TIMEOUT = exports.HUBSPOT_CONFIGURATION_FILE = exports.HUBSPOT_CONFIGURATION_FOLDER = exports.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME = void 0;
|
|
4
|
+
const lang_1 = require("../utils/lang");
|
|
4
5
|
exports.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME = 'hubspot.config.yml';
|
|
5
6
|
exports.HUBSPOT_CONFIGURATION_FOLDER = '.hubspot';
|
|
6
7
|
exports.HUBSPOT_CONFIGURATION_FILE = 'config.yml';
|
|
@@ -12,3 +13,10 @@ exports.HUBSPOT_ACCOUNT_TYPES = {
|
|
|
12
13
|
STANDARD_SANDBOX: 'STANDARD_SANDBOX',
|
|
13
14
|
STANDARD: 'STANDARD',
|
|
14
15
|
};
|
|
16
|
+
exports.HUBSPOT_ACCOUNT_TYPE_STRINGS = {
|
|
17
|
+
DEVELOPMENT_SANDBOX: (0, lang_1.i18n)('lib.accountTypes.developmentSandbox'),
|
|
18
|
+
STANDARD_SANDBOX: (0, lang_1.i18n)('lib.accountTypes.standardSandbox'),
|
|
19
|
+
DEVELOPER_TEST: (0, lang_1.i18n)('lib.accountTypes.developerTest'),
|
|
20
|
+
APP_DEVELOPER: (0, lang_1.i18n)('lib.accountTypes.appDeveloper'),
|
|
21
|
+
STANDARD: (0, lang_1.i18n)('lib.accountTypes.standard'),
|
|
22
|
+
};
|
package/lang/en.json
CHANGED
|
@@ -238,6 +238,13 @@
|
|
|
238
238
|
"invalidFetchFolderRequest": "Invalid request for folder: \"{{ src }}\"",
|
|
239
239
|
"incompleteFetch": "Not all files in folder \"{{ src }}\" were successfully fetched. Re-run the last command to try again"
|
|
240
240
|
}
|
|
241
|
+
},
|
|
242
|
+
"accountTypes": {
|
|
243
|
+
"developmentSandbox": "development sandbox",
|
|
244
|
+
"standardSandbox": "standard sandbox",
|
|
245
|
+
"developerTest": "developer test account",
|
|
246
|
+
"appDeveloper": "app developer account",
|
|
247
|
+
"standard": "production account"
|
|
241
248
|
}
|
|
242
249
|
},
|
|
243
250
|
"config": {
|
package/lang/lang/en.json
CHANGED
|
@@ -238,6 +238,13 @@
|
|
|
238
238
|
"invalidFetchFolderRequest": "Invalid request for folder: \"{{ src }}\"",
|
|
239
239
|
"incompleteFetch": "Not all files in folder \"{{ src }}\" were successfully fetched. Re-run the last command to try again"
|
|
240
240
|
}
|
|
241
|
+
},
|
|
242
|
+
"accountTypes": {
|
|
243
|
+
"developmentSandbox": "development sandbox",
|
|
244
|
+
"standardSandbox": "standard sandbox",
|
|
245
|
+
"developerTest": "developer test account",
|
|
246
|
+
"appDeveloper": "app developer account",
|
|
247
|
+
"standard": "production account"
|
|
241
248
|
}
|
|
242
249
|
},
|
|
243
250
|
"config": {
|
package/package.json
CHANGED
package/types/Http.d.ts
CHANGED