@hubspot/local-dev-lib 3.7.1 → 3.8.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/projects.d.ts +1 -1
- package/api/projects.js +3 -1
- package/package.json +1 -1
package/api/projects.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function fetchPlatformVersions(accountId: number): HubSpotPromise
|
|
|
17
17
|
export declare function fetchProjectBuilds(accountId: number, projectName: string, params?: QueryParams): HubSpotPromise<FetchProjectBuildsResponse>;
|
|
18
18
|
export declare function getBuildStatus(accountId: number, projectName: string, buildId: number): HubSpotPromise<Build>;
|
|
19
19
|
export declare function getBuildStructure(accountId: number, projectName: string, buildId: number): HubSpotPromise<ComponentStructureResponse>;
|
|
20
|
-
export declare function deployProject(accountId: number, projectName: string, buildId: number, useNewDeployApi?: boolean): HubSpotPromise<ProjectDeployResponse>;
|
|
20
|
+
export declare function deployProject(accountId: number, projectName: string, buildId: number, useNewDeployApi?: boolean, force?: boolean): HubSpotPromise<ProjectDeployResponse>;
|
|
21
21
|
export declare function getDeployStatus(accountId: number, projectName: string, deployId: number): HubSpotPromise<Deploy>;
|
|
22
22
|
export declare function getDeployStructure(accountId: number, projectName: string, deployId: number): HubSpotPromise<ComponentStructureResponse>;
|
|
23
23
|
export declare function fetchProjectSettings(accountId: number, projectName: string): HubSpotPromise<ProjectSettings>;
|
package/api/projects.js
CHANGED
|
@@ -116,13 +116,14 @@ function getBuildStructure(accountId, projectName, buildId) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
exports.getBuildStructure = getBuildStructure;
|
|
119
|
-
function deployProject(accountId, projectName, buildId, useNewDeployApi = false) {
|
|
119
|
+
function deployProject(accountId, projectName, buildId, useNewDeployApi = false, force = false) {
|
|
120
120
|
if (useNewDeployApi) {
|
|
121
121
|
return http_1.http.post(accountId, {
|
|
122
122
|
url: `${PROJECTS_DEPLOY_API_PATH_V3}/deploys/queue/async`,
|
|
123
123
|
data: {
|
|
124
124
|
projectName,
|
|
125
125
|
targetBuildId: buildId,
|
|
126
|
+
ignoreWarnings: force,
|
|
126
127
|
},
|
|
127
128
|
});
|
|
128
129
|
}
|
|
@@ -131,6 +132,7 @@ function deployProject(accountId, projectName, buildId, useNewDeployApi = false)
|
|
|
131
132
|
data: {
|
|
132
133
|
projectName,
|
|
133
134
|
buildId,
|
|
135
|
+
skipRemovalWarning: force,
|
|
134
136
|
},
|
|
135
137
|
});
|
|
136
138
|
}
|
package/package.json
CHANGED