@hubspot/local-dev-lib 3.19.3-beta.0 → 3.20.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.
- package/api/appsDev.d.ts +1 -0
- package/api/appsDev.js +10 -1
- package/api/github.js +1 -1
- package/package.json +1 -1
package/api/appsDev.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare function fetchPublicAppDeveloperTestAccountInstallData(appId: num
|
|
|
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
7
|
export declare function installStaticAuthAppOnTestAccount(appId: number, accountId: number, scopeGroupIds: number[]): HubSpotPromise<void>;
|
|
8
|
+
export declare function fetchAppMetadataByUid(appUid: string, accountId: number): HubSpotPromise<PublicApp>;
|
package/api/appsDev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.installStaticAuthAppOnTestAccount = exports.fetchPublicAppMetadata = exports.fetchPublicAppProductionInstallCounts = exports.fetchPublicAppDeveloperTestAccountInstallData = exports.fetchPublicAppsForPortal = void 0;
|
|
3
|
+
exports.fetchAppMetadataByUid = 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
6
|
const APPS_HUBLETS_API_PATH = 'apps-hublets/external/static-token/v3';
|
|
@@ -39,3 +39,12 @@ function installStaticAuthAppOnTestAccount(appId, accountId, scopeGroupIds) {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
exports.installStaticAuthAppOnTestAccount = installStaticAuthAppOnTestAccount;
|
|
42
|
+
function fetchAppMetadataByUid(appUid, accountId) {
|
|
43
|
+
return http_1.http.get(accountId, {
|
|
44
|
+
url: `${APPS_DEV_API_PATH}/full/portal/sourceId`,
|
|
45
|
+
params: {
|
|
46
|
+
sourceId: appUid,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
exports.fetchAppMetadataByUid = fetchAppMetadataByUid;
|
package/api/github.js
CHANGED
|
@@ -59,7 +59,7 @@ function fetchRepoAsZip(zipUrl) {
|
|
|
59
59
|
exports.fetchRepoAsZip = fetchRepoAsZip;
|
|
60
60
|
// Returns the raw file contents via the raw.githubusercontent endpoint
|
|
61
61
|
function fetchRepoFile(repoPath, filePath, ref) {
|
|
62
|
-
const url = `${GITHUB_RAW_CONTENT_API_PATH}/${repoPath}/${ref}/${filePath}
|
|
62
|
+
const url = `${GITHUB_RAW_CONTENT_API_PATH}/${repoPath}/${ref}/${filePath}`;
|
|
63
63
|
return githubRequestWithFallback(url);
|
|
64
64
|
}
|
|
65
65
|
exports.fetchRepoFile = fetchRepoFile;
|
package/package.json
CHANGED