@hubspot/local-dev-lib 1.6.0 → 1.7.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 +7 -1
- package/package.json +1 -1
- package/types/Apps.d.ts +24 -0
package/api/appsDev.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { PublicApp, PublicAppDeveloperTestAccountInstallData } from '../types/Apps';
|
|
2
2
|
export declare function fetchPublicAppsForPortal(accountId: number): Promise<Array<PublicApp>>;
|
|
3
3
|
export declare function fetchPublicAppDeveloperTestAccountInstallData(appId: number, accountId: number): Promise<PublicAppDeveloperTestAccountInstallData>;
|
|
4
|
+
export declare function fetchPublicAppMetadata(appId: number, accountId: number): Promise<PublicApp>;
|
package/api/appsDev.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.fetchPublicAppDeveloperTestAccountInstallData = exports.fetchPublicAppsForPortal = void 0;
|
|
6
|
+
exports.fetchPublicAppMetadata = exports.fetchPublicAppDeveloperTestAccountInstallData = exports.fetchPublicAppsForPortal = void 0;
|
|
7
7
|
const http_1 = __importDefault(require("../http"));
|
|
8
8
|
const APPS_DEV_API_PATH = 'apps-dev/external/public/v3';
|
|
9
9
|
async function fetchPublicAppsForPortal(accountId) {
|
|
@@ -19,3 +19,9 @@ function fetchPublicAppDeveloperTestAccountInstallData(appId, accountId) {
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
exports.fetchPublicAppDeveloperTestAccountInstallData = fetchPublicAppDeveloperTestAccountInstallData;
|
|
22
|
+
function fetchPublicAppMetadata(appId, accountId) {
|
|
23
|
+
return http_1.default.get(accountId, {
|
|
24
|
+
url: `${APPS_DEV_API_PATH}/${appId}/full`,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
exports.fetchPublicAppMetadata = fetchPublicAppMetadata;
|
package/package.json
CHANGED
package/types/Apps.d.ts
CHANGED
|
@@ -41,9 +41,33 @@ export type PublicApp = {
|
|
|
41
41
|
};
|
|
42
42
|
redirectUrls: Array<string>;
|
|
43
43
|
scopeGroupIds: Array<number>;
|
|
44
|
+
requiredScopeInfo?: Array<{
|
|
45
|
+
id: number;
|
|
46
|
+
name: string;
|
|
47
|
+
}>;
|
|
44
48
|
additionalScopeGroupIds: Array<number>;
|
|
49
|
+
additionalScopeInfo?: Array<{
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
}>;
|
|
45
53
|
optionalScopeGroupIds: Array<number>;
|
|
54
|
+
optionalScopeInfo?: Array<{
|
|
55
|
+
id: number;
|
|
56
|
+
name: string;
|
|
57
|
+
}>;
|
|
46
58
|
projectId: number | null;
|
|
47
59
|
sourceId: string | null;
|
|
60
|
+
providerInfo?: {
|
|
61
|
+
domain: string;
|
|
62
|
+
isVerified: boolean;
|
|
63
|
+
};
|
|
64
|
+
listingInfo?: {
|
|
65
|
+
listingUrl: string;
|
|
66
|
+
isCertified: boolean;
|
|
67
|
+
isPublished: boolean;
|
|
68
|
+
hasDraft: boolean;
|
|
69
|
+
inReview: boolean;
|
|
70
|
+
};
|
|
48
71
|
allowedExternalUrls: Array<string>;
|
|
72
|
+
preventProjectMigrations?: boolean;
|
|
49
73
|
};
|