@hubspot/local-dev-lib 5.1.2-beta.0 → 5.2.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.
@@ -1,5 +1,8 @@
1
1
  import { SandboxPersonalAccessKey, SandboxResponse, SandboxUsageLimitsResponse, V2Sandbox } from '../types/Sandbox.js';
2
2
  import { HubSpotPromise } from '../types/Http.js';
3
+ /**
4
+ * @deprecated Use createV2Sandbox instead
5
+ */
3
6
  export declare function createSandbox(accountId: number, name: string, type: 1 | 2): HubSpotPromise<SandboxResponse>;
4
7
  export declare function deleteSandbox(parentAccountId: number, sandboxAccountId: number): HubSpotPromise<void>;
5
8
  export declare function getSandboxUsageLimits(parentAccountId: number): HubSpotPromise<SandboxUsageLimitsResponse>;
@@ -2,6 +2,10 @@ import { http } from '../http/index.js';
2
2
  import { SANDBOX_TIMEOUT } from '../constants/api.js';
3
3
  const SANDBOX_API_PATH = 'sandbox-hubs/v1';
4
4
  const SANDBOX_API_PATH_V2 = 'sandbox-hubs/v2';
5
+ /* TODO: Delete createSandbox in the next major release (as of 2/20/2026) */
6
+ /**
7
+ * @deprecated Use createV2Sandbox instead
8
+ */
5
9
  export function createSandbox(accountId, name, type) {
6
10
  return http.post(accountId, {
7
11
  data: { name, type, generatePersonalAccessKey: true }, // For CLI, generatePersonalAccessKey will always be true since we'll be saving the entry to the config
@@ -1,4 +1,10 @@
1
1
  import { InitiateSyncResponse, FetchTypesResponse, TaskRequestData } from '../types/Sandbox.js';
2
2
  import { HubSpotPromise } from '../types/Http.js';
3
+ /**
4
+ * @deprecated Sync functionality has been deprecated and will be removed in a future release.
5
+ */
3
6
  export declare function initiateSync(fromHubId: number, toHubId: number, tasks: Array<TaskRequestData>, sandboxHubId: number): HubSpotPromise<InitiateSyncResponse>;
7
+ /**
8
+ * @deprecated
9
+ */
4
10
  export declare function fetchTypes(accountId: number, toHubId: number): HubSpotPromise<FetchTypesResponse>;
@@ -1,6 +1,10 @@
1
1
  import { http } from '../http/index.js';
2
2
  import { SANDBOX_TIMEOUT } from '../constants/api.js';
3
3
  const SANDBOXES_SYNC_API_PATH = 'sandboxes-sync/v1';
4
+ /* TODO: Delete this entire file in the next major release (as of 2/20/2026) */
5
+ /**
6
+ * @deprecated Sync functionality has been deprecated and will be removed in a future release.
7
+ */
4
8
  export async function initiateSync(fromHubId, toHubId, tasks, sandboxHubId) {
5
9
  return http.post(fromHubId, {
6
10
  data: {
@@ -14,6 +18,9 @@ export async function initiateSync(fromHubId, toHubId, tasks, sandboxHubId) {
14
18
  url: `${SANDBOXES_SYNC_API_PATH}/tasks/initiate/async`,
15
19
  });
16
20
  }
21
+ /**
22
+ * @deprecated
23
+ */
17
24
  export async function fetchTypes(accountId, toHubId) {
18
25
  return http.get(accountId, {
19
26
  url: `${SANDBOXES_SYNC_API_PATH}/types${toHubId ? `?toHubId=${toHubId}` : ''}`,
@@ -9,5 +9,6 @@ export declare const PLATFORM_VERSIONS: {
9
9
  v2025_1: string;
10
10
  v2025_2: string;
11
11
  v2026_03_beta: string;
12
+ v2026_03: string;
12
13
  unstable: string;
13
14
  };
@@ -9,5 +9,6 @@ export const PLATFORM_VERSIONS = {
9
9
  v2025_1: '2025.1',
10
10
  v2025_2: '2025.2',
11
11
  v2026_03_beta: '2026.03-beta',
12
+ v2026_03: '2026.03',
12
13
  unstable: 'unstable',
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "5.1.2-beta.0",
3
+ "version": "5.2.0-beta.0",
4
4
  "type": "module",
5
5
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
6
6
  "repository": {
@@ -138,6 +138,9 @@ export type V2Sandbox = {
138
138
  updatedAt?: string;
139
139
  updatedByUser?: User | null;
140
140
  };
141
+ /**
142
+ * @deprecated This type is deprecated and will be removed in the next major release.
143
+ */
141
144
  export type SandboxResponse = {
142
145
  sandbox: Sandbox;
143
146
  personalAccessKey: string;
@@ -176,6 +179,9 @@ export type SandboxType = {
176
179
  groupType: string;
177
180
  syncMandatory: boolean;
178
181
  };
182
+ /**
183
+ * @deprecated This type is deprecated and will be removed in the next major release.
184
+ */
179
185
  export type FetchTypesResponse = {
180
186
  results: Array<SandboxType>;
181
187
  };