@hubspot/local-dev-lib 5.0.0 → 5.1.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 CHANGED
@@ -6,3 +6,4 @@ export declare function fetchPublicAppProductionInstallCounts(appId: number, acc
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
8
  export declare function fetchAppMetadataByUid(appUid: string, accountId: number): HubSpotPromise<PublicApp>;
9
+ export declare function fetchAppMetadataBySourceId(projectId: number, appUid: string, accountId: number): HubSpotPromise<PublicApp>;
package/api/appsDev.js CHANGED
@@ -39,3 +39,12 @@ export function fetchAppMetadataByUid(appUid, accountId) {
39
39
  },
40
40
  });
41
41
  }
42
+ // Note: This is intentionally Project ID and not name
43
+ export function fetchAppMetadataBySourceId(projectId, appUid, accountId) {
44
+ return http.get(accountId, {
45
+ url: `${APPS_DEV_API_PATH}/project-id/${projectId}/source-id/${appUid}`,
46
+ params: {
47
+ sourceId: appUid,
48
+ },
49
+ });
50
+ }
@@ -4,4 +4,4 @@ export declare function getRoutes(accountId: number): HubSpotPromise<GetRoutesRe
4
4
  export declare function getFunctionLogs(accountId: number, route: string, params?: QueryParams): HubSpotPromise<GetFunctionLogsResponse>;
5
5
  export declare function getLatestFunctionLog(accountId: number, route: string): HubSpotPromise<FunctionLog>;
6
6
  export declare function buildPackage(accountId: number, folderPath: string): HubSpotPromise<string>;
7
- export declare function getBuildStatus(accountId: number, buildId: number): HubSpotPromise<GetBuildStatusResponse>;
7
+ export declare function getBuildStatus(accountId: number, buildId: number | string): HubSpotPromise<GetBuildStatusResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "type": "module",
5
5
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
6
6
  "repository": {