@hubspot/local-dev-lib 5.1.2 → 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.
- package/api/sandboxHubs.d.ts +3 -0
- package/api/sandboxHubs.js +4 -0
- package/api/sandboxSync.d.ts +6 -0
- package/api/sandboxSync.js +7 -0
- package/constants/projects.d.ts +1 -0
- package/constants/projects.js +1 -0
- package/package.json +1 -1
- package/types/Sandbox.d.ts +6 -0
package/api/sandboxHubs.d.ts
CHANGED
|
@@ -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>;
|
package/api/sandboxHubs.js
CHANGED
|
@@ -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
|
package/api/sandboxSync.d.ts
CHANGED
|
@@ -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>;
|
package/api/sandboxSync.js
CHANGED
|
@@ -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}` : ''}`,
|
package/constants/projects.d.ts
CHANGED
package/constants/projects.js
CHANGED
package/package.json
CHANGED
package/types/Sandbox.d.ts
CHANGED
|
@@ -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
|
};
|