Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hubspot/local-dev-lib

Package Overview
Dependencies
Maintainers
0
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hubspot/local-dev-lib - npm Package Compare versions

Comparing version 3.0.0-beta.0 to 3.0.0-beta.1

10

api/appsDev.d.ts

@@ -1,6 +0,6 @@

import { AxiosPromise } from 'axios';
import { PublicApp, PublicAppInstallCounts, PublicAppDeveloperTestAccountInstallData, FetchPublicAppsForPortalResponse } from '../types/Apps';
export declare function fetchPublicAppsForPortal(accountId: number): AxiosPromise<FetchPublicAppsForPortalResponse>;
export declare function fetchPublicAppDeveloperTestAccountInstallData(appId: number, accountId: number): AxiosPromise<PublicAppDeveloperTestAccountInstallData>;
export declare function fetchPublicAppProductionInstallCounts(appId: number, accountId: number): AxiosPromise<PublicAppInstallCounts>;
export declare function fetchPublicAppMetadata(appId: number, accountId: number): AxiosPromise<PublicApp>;
import { HubSpotPromise } from '../types/Http';
export declare function fetchPublicAppsForPortal(accountId: number): HubSpotPromise<FetchPublicAppsForPortalResponse>;
export declare function fetchPublicAppDeveloperTestAccountInstallData(appId: number, accountId: number): HubSpotPromise<PublicAppDeveloperTestAccountInstallData>;
export declare function fetchPublicAppProductionInstallCounts(appId: number, accountId: number): HubSpotPromise<PublicAppInstallCounts>;
export declare function fetchPublicAppMetadata(appId: number, accountId: number): HubSpotPromise<PublicApp>;

@@ -1,8 +0,8 @@

import { AxiosPromise } from 'axios';
import { FetchSchemasResponse, Schema, CreateObjectsResponse } from '../types/Schemas';
export declare function batchCreateObjects(accountId: number, objectTypeId: string, objects: JSON): AxiosPromise<CreateObjectsResponse>;
export declare function createObjectSchema(accountId: number, schema: JSON): AxiosPromise<Schema>;
export declare function updateObjectSchema(accountId: number, schemaObjectType: string, schema: Schema): AxiosPromise<Schema>;
export declare function fetchObjectSchema(accountId: number, schemaObjectType: string): AxiosPromise<Schema>;
export declare function fetchObjectSchemas(accountId: number): AxiosPromise<FetchSchemasResponse>;
export declare function deleteObjectSchema(accountId: number, schemaObjectType: string): AxiosPromise<void>;
import { HubSpotPromise } from '../types/Http';
export declare function batchCreateObjects(accountId: number, objectTypeId: string, objects: JSON): HubSpotPromise<CreateObjectsResponse>;
export declare function createObjectSchema(accountId: number, schema: JSON): HubSpotPromise<Schema>;
export declare function updateObjectSchema(accountId: number, schemaObjectType: string, schema: Schema): HubSpotPromise<Schema>;
export declare function fetchObjectSchema(accountId: number, schemaObjectType: string): HubSpotPromise<Schema>;
export declare function fetchObjectSchemas(accountId: number): HubSpotPromise<FetchSchemasResponse>;
export declare function deleteObjectSchema(accountId: number, schemaObjectType: string): HubSpotPromise<void>;

@@ -1,5 +0,4 @@

import { AxiosPromise } from 'axios';
import { QueryParams } from '../types/Http';
import { HubSpotPromise, QueryParams } from '../types/Http';
import { FetchThemesResponse, FetchBuiltinMappingResponse } from '../types/DesignManager';
export declare function fetchThemes(accountId: number, params?: QueryParams): AxiosPromise<FetchThemesResponse>;
export declare function fetchBuiltinMapping(accountId: number): AxiosPromise<FetchBuiltinMappingResponse>;
export declare function fetchThemes(accountId: number, params?: QueryParams): HubSpotPromise<FetchThemesResponse>;
export declare function fetchBuiltinMapping(accountId: number): HubSpotPromise<FetchBuiltinMappingResponse>;

@@ -1,7 +0,7 @@

import { AxiosPromise } from 'axios';
import { DeveloperTestAccount, FetchDeveloperTestAccountsResponse } from '../types/developerTestAccounts';
import { Environment } from '../types/Config';
export declare function fetchDeveloperTestAccounts(accountId: number): AxiosPromise<FetchDeveloperTestAccountsResponse>;
export declare function createDeveloperTestAccount(accountId: number, accountName: string): AxiosPromise<DeveloperTestAccount>;
export declare function deleteDeveloperTestAccount(accountId: number, testAccountId: number): AxiosPromise<void>;
export declare function fetchDeveloperTestAccountData(accessToken: string, accountId: number, env?: Environment): AxiosPromise<DeveloperTestAccount>;
import { HubSpotPromise } from '../types/Http';
export declare function fetchDeveloperTestAccounts(accountId: number): HubSpotPromise<FetchDeveloperTestAccountsResponse>;
export declare function createDeveloperTestAccount(accountId: number, accountName: string): HubSpotPromise<DeveloperTestAccount>;
export declare function deleteDeveloperTestAccount(accountId: number, testAccountId: number): HubSpotPromise<void>;
export declare function fetchDeveloperTestAccountData(accessToken: string, accountId: number, env?: Environment): HubSpotPromise<DeveloperTestAccount>;

@@ -1,6 +0,6 @@

import { AxiosPromise } from 'axios';
import { HubSpotPromise } from '../types/Http';
import { FetchStatResponse, FetchFilesResponse, FetchFolderResponse, UploadResponse } from '../types/FileManager';
export declare function uploadFile(accountId: number, src: string, dest: string): AxiosPromise<UploadResponse>;
export declare function fetchStat(accountId: number, src: string): AxiosPromise<FetchStatResponse>;
export declare function fetchFiles(accountId: number, folderId: number | 'None', offset: number, archived?: boolean): AxiosPromise<FetchFilesResponse>;
export declare function fetchFolders(accountId: number, folderId: number | 'None'): AxiosPromise<FetchFolderResponse>;
export declare function uploadFile(accountId: number, src: string, dest: string): HubSpotPromise<UploadResponse>;
export declare function fetchStat(accountId: number, src: string): HubSpotPromise<FetchStatResponse>;
export declare function fetchFiles(accountId: number, folderId: number | 'None', offset: number, archived?: boolean): HubSpotPromise<FetchFilesResponse>;
export declare function fetchFolders(accountId: number, folderId: number | 'None'): HubSpotPromise<FetchFolderResponse>;

@@ -1,12 +0,13 @@

import { AxiosResponse, AxiosPromise } from 'axios';
import { AxiosResponse } from 'axios';
import { FileMapperNode, FileMapperOptions, FileTree } from '../types/Files';
import { HubSpotPromise } from '../types/Http';
export declare const FILE_MAPPER_API_PATH = "content/filemapper/v1";
export declare function createFileMapperNodeFromStreamResponse(filePath: string, response: Partial<AxiosResponse>): FileMapperNode;
export declare function upload(accountId: number, src: string, dest: string, options?: FileMapperOptions): AxiosPromise<void>;
export declare function fetchModule(accountId: number, moduleId: number, options?: FileMapperOptions): AxiosPromise<FileTree>;
export declare function upload(accountId: number, src: string, dest: string, options?: FileMapperOptions): HubSpotPromise<void>;
export declare function fetchModule(accountId: number, moduleId: number, options?: FileMapperOptions): HubSpotPromise<FileTree>;
export declare function fetchFileStream(accountId: number, filePath: string, destination: string, options?: FileMapperOptions): Promise<FileMapperNode>;
export declare function download(accountId: number, filepath: string, options?: FileMapperOptions): AxiosPromise<FileMapperNode>;
export declare function downloadDefault(accountId: number, filepath: string, options?: FileMapperOptions): AxiosPromise<FileMapperNode>;
export declare function deleteFile(accountId: number, filePath: string): AxiosPromise<void>;
export declare function moveFile(accountId: number, srcPath: string, destPath: string): AxiosPromise<void>;
export declare function getDirectoryContentsByPath(accountId: number, path: string): AxiosPromise<FileMapperNode>;
export declare function download(accountId: number, filepath: string, options?: FileMapperOptions): HubSpotPromise<FileMapperNode>;
export declare function downloadDefault(accountId: number, filepath: string, options?: FileMapperOptions): HubSpotPromise<FileMapperNode>;
export declare function deleteFile(accountId: number, filePath: string): HubSpotPromise<void>;
export declare function moveFile(accountId: number, srcPath: string, destPath: string): HubSpotPromise<void>;
export declare function getDirectoryContentsByPath(accountId: number, path: string): HubSpotPromise<FileMapperNode>;

@@ -1,4 +0,4 @@

import { AxiosPromise } from 'axios';
export declare function createSchemaFromHubFile(accountId: number, filepath: string): AxiosPromise;
export declare function updateSchemaFromHubFile(accountId: number, filepath: string): AxiosPromise;
export declare function fetchHubFileSchema(accountId: number, objectName: string, path: string): AxiosPromise;
import { HubSpotPromise } from '../types/Http';
export declare function createSchemaFromHubFile(accountId: number, filepath: string): HubSpotPromise;
export declare function updateSchemaFromHubFile(accountId: number, filepath: string): HubSpotPromise;
export declare function fetchHubFileSchema(accountId: number, objectName: string, path: string): HubSpotPromise;

@@ -1,8 +0,7 @@

import { AxiosPromise } from 'axios';
import { QueryParams } from '../types/Http';
import { HubSpotPromise, QueryParams } from '../types/Http';
import { GetBuildStatusResponse, GetRoutesResponse } from '../types/Functions';
export declare function getRoutes(accountId: number): AxiosPromise<GetRoutesResponse>;
export declare function getFunctionLogs(accountId: number, route: string, params?: QueryParams): AxiosPromise;
export declare function getLatestFunctionLog(accountId: number, route: string): AxiosPromise;
export declare function buildPackage(accountId: number, folderPath: string): AxiosPromise<string>;
export declare function getBuildStatus(accountId: number, buildId: number): AxiosPromise<GetBuildStatusResponse>;
export declare function getRoutes(accountId: number): HubSpotPromise<GetRoutesResponse>;
export declare function getFunctionLogs(accountId: number, route: string, params?: QueryParams): HubSpotPromise;
export declare function getLatestFunctionLog(accountId: number, route: string): HubSpotPromise;
export declare function buildPackage(accountId: number, folderPath: string): HubSpotPromise<string>;
export declare function getBuildStatus(accountId: number, buildId: number): HubSpotPromise<GetBuildStatusResponse>;
/// <reference types="node" />
import { AxiosPromise } from 'axios';
import { GithubReleaseData, GithubRepoFile, RepoPath } from '../types/Github';
import { HubSpotPromise } from '../types/Http';
declare global {
var githubToken: string;
}
export declare function fetchRepoReleaseData(repoPath: RepoPath, tag?: string): AxiosPromise<GithubReleaseData>;
export declare function fetchRepoAsZip(zipUrl: string): AxiosPromise<Buffer>;
export declare function fetchRepoFile(repoPath: RepoPath, filePath: string, ref: string): AxiosPromise<Buffer>;
export declare function fetchRepoFileByDownloadUrl(downloadUrl: string): AxiosPromise<Buffer>;
export declare function fetchRepoContents(repoPath: RepoPath, path: string, ref?: string): AxiosPromise<Array<GithubRepoFile>>;
export declare function fetchRepoReleaseData(repoPath: RepoPath, tag?: string): HubSpotPromise<GithubReleaseData>;
export declare function fetchRepoAsZip(zipUrl: string): HubSpotPromise<Buffer>;
export declare function fetchRepoFile(repoPath: RepoPath, filePath: string, ref: string): HubSpotPromise<Buffer>;
export declare function fetchRepoFileByDownloadUrl(downloadUrl: string): HubSpotPromise<Buffer>;
export declare function fetchRepoContents(repoPath: RepoPath, path: string, ref?: string): HubSpotPromise<Array<GithubRepoFile>>;

@@ -1,12 +0,11 @@

import { AxiosPromise } from 'axios';
import { QueryParams } from '../types/Http';
import { HubSpotPromise, QueryParams } from '../types/Http';
import { CreateRowsResponse, FetchRowsResponse, Row, Schema, Table, FetchTablesResponse } from '../types/Hubdb';
export declare function fetchTables(accountId: number): AxiosPromise<FetchTablesResponse>;
export declare function fetchTable(accountId: number, tableId: string): AxiosPromise<Table>;
export declare function createTable(accountId: number, schema: Schema): AxiosPromise<Table>;
export declare function updateTable(accountId: number, tableId: string, schema: Schema): AxiosPromise<Table>;
export declare function publishTable(accountId: number, tableId: string): AxiosPromise<Table>;
export declare function deleteTable(accountId: number, tableId: string): AxiosPromise<void>;
export declare function createRows(accountId: number, tableId: string, rows: Array<Row>): AxiosPromise<CreateRowsResponse>;
export declare function fetchRows(accountId: number, tableId: string, params?: QueryParams): AxiosPromise<FetchRowsResponse>;
export declare function deleteRows(accountId: number, tableId: string, rowIds: Array<string>): AxiosPromise<void>;
export declare function fetchTables(accountId: number): HubSpotPromise<FetchTablesResponse>;
export declare function fetchTable(accountId: number, tableId: string): HubSpotPromise<Table>;
export declare function createTable(accountId: number, schema: Schema): HubSpotPromise<Table>;
export declare function updateTable(accountId: number, tableId: string, schema: Schema): HubSpotPromise<Table>;
export declare function publishTable(accountId: number, tableId: string): HubSpotPromise<Table>;
export declare function deleteTable(accountId: number, tableId: string): HubSpotPromise<void>;
export declare function createRows(accountId: number, tableId: string, rows: Array<Row>): HubSpotPromise<CreateRowsResponse>;
export declare function fetchRows(accountId: number, tableId: string, params?: QueryParams): HubSpotPromise<FetchRowsResponse>;
export declare function deleteRows(accountId: number, tableId: string, rowIds: Array<string>): HubSpotPromise<void>;

@@ -1,6 +0,5 @@

import { AxiosPromise } from 'axios';
import { Data, QueryParams } from '../types/Http';
import { Data, HubSpotPromise, QueryParams } from '../types/Http';
import { GetLighthouseScoreResponse, RequestLighthouseScoreResponse } from '../types/Lighthouse';
export declare function requestLighthouseScore(accountId: number, data?: Data): AxiosPromise<RequestLighthouseScoreResponse>;
export declare function getLighthouseScoreStatus(accountId: number, params?: QueryParams): AxiosPromise<string>;
export declare function getLighthouseScore(accountId: number, params?: QueryParams): AxiosPromise<GetLighthouseScoreResponse>;
export declare function requestLighthouseScore(accountId: number, data?: Data): HubSpotPromise<RequestLighthouseScoreResponse>;
export declare function getLighthouseScoreStatus(accountId: number, params?: QueryParams): HubSpotPromise<string>;
export declare function getLighthouseScore(accountId: number, params?: QueryParams): HubSpotPromise<GetLighthouseScoreResponse>;

@@ -1,8 +0,8 @@

import { AxiosPromise } from 'axios';
import { Environment } from '../types/Config';
import { ScopeData, AccessTokenResponse, EnabledFeaturesResponse } from '../types/Accounts';
import { PublicAppInstallationData } from '../types/Apps';
export declare function fetchAccessToken(personalAccessKey: string, env?: Environment, portalId?: number): AxiosPromise<AccessTokenResponse>;
export declare function fetchScopeData(accountId: number, scopeGroup: string): AxiosPromise<ScopeData>;
export declare function fetchAppInstallationData(portalId: number, projectId: number, appUid: string, requiredScopeGroups: Array<string>, optionalScopeGroups?: Array<string>): AxiosPromise<PublicAppInstallationData>;
import { HubSpotPromise } from '../types/Http';
export declare function fetchAccessToken(personalAccessKey: string, env?: Environment, portalId?: number): HubSpotPromise<AccessTokenResponse>;
export declare function fetchScopeData(accountId: number, scopeGroup: string): HubSpotPromise<ScopeData>;
export declare function fetchAppInstallationData(portalId: number, projectId: number, appUid: string, requiredScopeGroups: Array<string>, optionalScopeGroups?: Array<string>): HubSpotPromise<PublicAppInstallationData>;
export declare function fetchEnabledFeatures(accountId: number): Promise<import("axios").AxiosResponse<EnabledFeaturesResponse, any>>;

@@ -1,6 +0,5 @@

import { AxiosPromise } from 'axios';
import { Data, QueryParams } from '../types/Http';
import { Data, HubSpotPromise, QueryParams } from '../types/Http';
import { GetValidationResultsResponse } from '../types/MarketplaceValidation';
export declare function requestValidation(accountId: number, data?: Data): AxiosPromise<number>;
export declare function getValidationStatus(accountId: number, params?: QueryParams): AxiosPromise<string>;
export declare function getValidationResults(accountId: number, params?: QueryParams): AxiosPromise<GetValidationResultsResponse>;
export declare function requestValidation(accountId: number, data?: Data): HubSpotPromise<number>;
export declare function getValidationStatus(accountId: number, params?: QueryParams): HubSpotPromise<string>;
export declare function getValidationResults(accountId: number, params?: QueryParams): HubSpotPromise<GetValidationResultsResponse>;
/// <reference types="node" />
import { AxiosPromise } from 'axios';
import { QueryParams } from '../types/Http';
import { HubSpotPromise, QueryParams } from '../types/Http';
import { Project, FetchProjectResponse, UploadProjectResponse, ProjectSettings, FetchPlatformVersionResponse } from '../types/Project';

@@ -10,32 +9,32 @@ import { Build, FetchProjectBuildsResponse } from '../types/Build';

import { MigrateAppResponse, CloneAppResponse, PollAppResponse } from '../types/Migration';
export declare function fetchProjects(accountId: number): AxiosPromise<FetchProjectResponse>;
export declare function createProject(accountId: number, name: string): AxiosPromise<Project>;
export declare function uploadProject(accountId: number, projectName: string, projectFile: string, uploadMessage: string, platformVersion?: string): AxiosPromise<UploadProjectResponse>;
export declare function fetchProject(accountId: number, projectName: string): AxiosPromise<Project>;
export declare function fetchProjectComponentsMetadata(accountId: number, projectId: number): AxiosPromise<ProjectComponentsMetadata>;
export declare function downloadProject(accountId: number, projectName: string, buildId: number): AxiosPromise<Buffer>;
export declare function deleteProject(accountId: number, projectName: string): AxiosPromise<void>;
export declare function fetchPlatformVersions(accountId: number): AxiosPromise<FetchPlatformVersionResponse>;
export declare function fetchProjectBuilds(accountId: number, projectName: string, params?: QueryParams): AxiosPromise<FetchProjectBuildsResponse>;
export declare function getBuildStatus(accountId: number, projectName: string, buildId: number): AxiosPromise<Build>;
export declare function getBuildStructure(accountId: number, projectName: string, buildId: number): AxiosPromise<ComponentStructureResponse>;
export declare function deployProject(accountId: number, projectName: string, buildId: number): AxiosPromise<ProjectDeployResponse>;
export declare function getDeployStatus(accountId: number, projectName: string, deployId: number): AxiosPromise<Deploy>;
export declare function getDeployStructure(accountId: number, projectName: string, deployId: number): AxiosPromise<ComponentStructureResponse>;
export declare function fetchProjectSettings(accountId: number, projectName: string): AxiosPromise<ProjectSettings>;
export declare function provisionBuild(accountId: number, projectName: string, platformVersion?: string): AxiosPromise<Build>;
export declare function queueBuild(accountId: number, projectName: string, platformVersion?: string): AxiosPromise<void>;
export declare function uploadFileToBuild(accountId: number, projectName: string, filePath: string, path: string): AxiosPromise<void>;
export declare function deleteFileFromBuild(accountId: number, projectName: string, path: string): AxiosPromise<void>;
export declare function cancelStagedBuild(accountId: number, projectName: string): AxiosPromise<void>;
export declare function fetchProjects(accountId: number): HubSpotPromise<FetchProjectResponse>;
export declare function createProject(accountId: number, name: string): HubSpotPromise<Project>;
export declare function uploadProject(accountId: number, projectName: string, projectFile: string, uploadMessage: string, platformVersion?: string): HubSpotPromise<UploadProjectResponse>;
export declare function fetchProject(accountId: number, projectName: string): HubSpotPromise<Project>;
export declare function fetchProjectComponentsMetadata(accountId: number, projectId: number): HubSpotPromise<ProjectComponentsMetadata>;
export declare function downloadProject(accountId: number, projectName: string, buildId: number): HubSpotPromise<Buffer>;
export declare function deleteProject(accountId: number, projectName: string): HubSpotPromise<void>;
export declare function fetchPlatformVersions(accountId: number): HubSpotPromise<FetchPlatformVersionResponse>;
export declare function fetchProjectBuilds(accountId: number, projectName: string, params?: QueryParams): HubSpotPromise<FetchProjectBuildsResponse>;
export declare function getBuildStatus(accountId: number, projectName: string, buildId: number): HubSpotPromise<Build>;
export declare function getBuildStructure(accountId: number, projectName: string, buildId: number): HubSpotPromise<ComponentStructureResponse>;
export declare function deployProject(accountId: number, projectName: string, buildId: number): HubSpotPromise<ProjectDeployResponse>;
export declare function getDeployStatus(accountId: number, projectName: string, deployId: number): HubSpotPromise<Deploy>;
export declare function getDeployStructure(accountId: number, projectName: string, deployId: number): HubSpotPromise<ComponentStructureResponse>;
export declare function fetchProjectSettings(accountId: number, projectName: string): HubSpotPromise<ProjectSettings>;
export declare function provisionBuild(accountId: number, projectName: string, platformVersion?: string): HubSpotPromise<Build>;
export declare function queueBuild(accountId: number, projectName: string, platformVersion?: string): HubSpotPromise<void>;
export declare function uploadFileToBuild(accountId: number, projectName: string, filePath: string, path: string): HubSpotPromise<void>;
export declare function deleteFileFromBuild(accountId: number, projectName: string, path: string): HubSpotPromise<void>;
export declare function cancelStagedBuild(accountId: number, projectName: string): HubSpotPromise<void>;
type WarnLogsResponse = {
logs: Array<ProjectLog>;
};
export declare function fetchBuildWarnLogs(accountId: number, projectName: string, buildId: number): AxiosPromise<WarnLogsResponse>;
export declare function fetchDeployWarnLogs(accountId: number, projectName: string, deployId: number): AxiosPromise<WarnLogsResponse>;
export declare function migrateApp(accountId: number, appId: number, projectName: string): AxiosPromise<MigrateAppResponse>;
export declare function checkMigrationStatus(accountId: number, id: number): AxiosPromise<PollAppResponse>;
export declare function cloneApp(accountId: number, appId: number): AxiosPromise<CloneAppResponse>;
export declare function checkCloneStatus(accountId: number, exportId: number): AxiosPromise<CloneAppResponse>;
export declare function downloadClonedProject(accountId: number, exportId: number): AxiosPromise<Buffer>;
export declare function fetchBuildWarnLogs(accountId: number, projectName: string, buildId: number): HubSpotPromise<WarnLogsResponse>;
export declare function fetchDeployWarnLogs(accountId: number, projectName: string, deployId: number): HubSpotPromise<WarnLogsResponse>;
export declare function migrateApp(accountId: number, appId: number, projectName: string): HubSpotPromise<MigrateAppResponse>;
export declare function checkMigrationStatus(accountId: number, id: number): HubSpotPromise<PollAppResponse>;
export declare function cloneApp(accountId: number, appId: number): HubSpotPromise<CloneAppResponse>;
export declare function checkCloneStatus(accountId: number, exportId: number): HubSpotPromise<CloneAppResponse>;
export declare function downloadClonedProject(accountId: number, exportId: number): HubSpotPromise<Buffer>;
export {};
import { AxiosPromise } from 'axios';
import { Environment } from '../types/Config';
import { SandboxHubData, SandboxResponse, SandboxUsageLimitsResponse } from '../types/Sandbox';
export declare function createSandbox(accountId: number, name: string, type: 1 | 2): AxiosPromise<SandboxResponse>;
export declare function deleteSandbox(parentAccountId: number, sandboxAccountId: number): AxiosPromise<void>;
export declare function getSandboxUsageLimits(parentAccountId: number): AxiosPromise<SandboxUsageLimitsResponse>;
import { HubSpotPromise } from '../types/Http';
export declare function createSandbox(accountId: number, name: string, type: 1 | 2): HubSpotPromise<SandboxResponse>;
export declare function deleteSandbox(parentAccountId: number, sandboxAccountId: number): HubSpotPromise<void>;
export declare function getSandboxUsageLimits(parentAccountId: number): HubSpotPromise<SandboxUsageLimitsResponse>;
export declare function fetchSandboxHubData(accessToken: string, accountId: number, env?: Environment): AxiosPromise<SandboxHubData>;

@@ -1,4 +0,4 @@

import { AxiosPromise } from 'axios';
import { InitiateSyncResponse, FetchTypesResponse, TaskRequestData } from '../types/Sandbox';
export declare function initiateSync(fromHubId: number, toHubId: number, tasks: Array<TaskRequestData>, sandboxHubId: number): AxiosPromise<InitiateSyncResponse>;
export declare function fetchTypes(accountId: number, toHubId: number): AxiosPromise<FetchTypesResponse>;
import { HubSpotPromise } from '../types/Http';
export declare function initiateSync(fromHubId: number, toHubId: number, tasks: Array<TaskRequestData>, sandboxHubId: number): HubSpotPromise<InitiateSyncResponse>;
export declare function fetchTypes(accountId: number, toHubId: number): HubSpotPromise<FetchTypesResponse>;

@@ -7,3 +7,3 @@ "use strict";

const SANDBOXES_SYNC_API_PATH = 'sandboxes-sync/v1';
function initiateSync(fromHubId, toHubId, tasks, sandboxHubId) {
async function initiateSync(fromHubId, toHubId, tasks, sandboxHubId) {
return http_1.http.post(fromHubId, {

@@ -10,0 +10,0 @@ data: {

@@ -1,6 +0,6 @@

import { AxiosPromise } from 'axios';
import { FetchSecretsResponse } from '../types/Secrets';
export declare function addSecret(accountId: number, key: string, value: string): AxiosPromise<void>;
export declare function updateSecret(accountId: number, key: string, value: string): AxiosPromise<void>;
export declare function deleteSecret(accountId: number, key: string): AxiosPromise<void>;
export declare function fetchSecrets(accountId: number): AxiosPromise<FetchSecretsResponse>;
import { HubSpotPromise } from '../types/Http';
export declare function addSecret(accountId: number, key: string, value: string): HubSpotPromise<void>;
export declare function updateSecret(accountId: number, key: string, value: string): HubSpotPromise<void>;
export declare function deleteSecret(accountId: number, key: string): HubSpotPromise<void>;
export declare function fetchSecrets(accountId: number): HubSpotPromise<FetchSecretsResponse>;

@@ -1,3 +0,3 @@

import { AxiosPromise } from 'axios';
import { Validation, HublValidationOptions } from '../types/HublValidation';
export declare function validateHubl(accountId: number, sourceCode: string, hublValidationOptions?: HublValidationOptions): AxiosPromise<Validation>;
import { HubSpotPromise } from '../types/Http';
export declare function validateHubl(accountId: number, sourceCode: string, hublValidationOptions?: HublValidationOptions): HubSpotPromise<Validation>;
import { AxiosPromise } from 'axios';
import { HttpOptions } from '../types/Http';
import { HttpOptions, HubSpotPromise } from '../types/Http';
export declare function addUserAgentHeader(key: string, value: string): void;
declare function getRequest<T>(accountId: number, options: HttpOptions): AxiosPromise<T>;
declare function postRequest<T>(accountId: number, options: HttpOptions): AxiosPromise<T>;
declare function putRequest<T>(accountId: number, options: HttpOptions): AxiosPromise<T>;
declare function patchRequest<T>(accountId: number, options: HttpOptions): AxiosPromise<T>;
declare function deleteRequest<T>(accountId: number, options: HttpOptions): AxiosPromise<T>;
declare function getRequest<T>(accountId: number, options: HttpOptions): HubSpotPromise<T>;
declare function postRequest<T>(accountId: number, options: HttpOptions): HubSpotPromise<T>;
declare function putRequest<T>(accountId: number, options: HttpOptions): HubSpotPromise<T>;
declare function patchRequest<T>(accountId: number, options: HttpOptions): HubSpotPromise<T>;
declare function deleteRequest<T>(accountId: number, options: HttpOptions): HubSpotPromise<T>;
export declare const http: {

@@ -10,0 +10,0 @@ get: typeof getRequest;

@@ -1,8 +0,7 @@

import { AxiosPromise } from 'axios';
import { HttpOptions } from '../types/Http';
declare function getRequest<T>(options: HttpOptions): AxiosPromise<T>;
declare function postRequest<T>(options: HttpOptions): AxiosPromise<T>;
declare function putRequest<T>(options: HttpOptions): AxiosPromise<T>;
declare function patchRequest<T>(options: HttpOptions): AxiosPromise<T>;
declare function deleteRequest<T>(options: HttpOptions): AxiosPromise<T>;
import { HttpOptions, HubSpotPromise } from '../types/Http';
declare function getRequest<T>(options: HttpOptions): HubSpotPromise<T>;
declare function postRequest<T>(options: HttpOptions): HubSpotPromise<T>;
declare function putRequest<T>(options: HttpOptions): HubSpotPromise<T>;
declare function patchRequest<T>(options: HttpOptions): HubSpotPromise<T>;
declare function deleteRequest<T>(options: HttpOptions): HubSpotPromise<T>;
export declare const http: {

@@ -9,0 +8,0 @@ get: typeof getRequest;

{
"name": "@hubspot/local-dev-lib",
"version": "3.0.0-beta.0",
"version": "3.0.0-beta.1",
"description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import { ResponseType } from 'axios';
import { AxiosPromise, ResponseType } from 'axios';
import { ReadStream } from 'fs';
import { Stream } from 'stream';
export type HubSpotPromise<T = unknown> = AxiosPromise<T>;
export type Data = {

@@ -8,0 +9,0 @@ [key: string]: any;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc