caprover-api 0.0.18 → 0.0.19

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.
@@ -124,7 +124,7 @@ export default class ApiManager {
124
124
  addNewCustomOneClickRepo(repositoryUrl: string): Promise<void>;
125
125
  deleteCustomOneClickRepo(repositoryUrl: string): Promise<void>;
126
126
  addDockerNode(nodeType: string, privateKey: string, remoteNodeIpAddress: string, sshPort: string, sshUser: string, captainIpAddress: string): Promise<void>;
127
- startOneClickAppDeploy(template: any, values?: any): Promise<{
127
+ startOneClickAppDeploy(template: any, values?: any, templateName?: string): Promise<{
128
128
  jobId: string;
129
129
  }>;
130
130
  getOneClickAppDeployProgress(jobId: string): Promise<OneClickAppDeploymentState>;
@@ -507,12 +507,13 @@ class ApiManager {
507
507
  captainIpAddress,
508
508
  }));
509
509
  }
510
- startOneClickAppDeploy(template, values) {
510
+ startOneClickAppDeploy(template, values, templateName) {
511
511
  const http = this.http;
512
512
  return Promise.resolve() //
513
513
  .then(http.fetch(http.POST, '/user/oneclick/deploy', {
514
514
  template,
515
515
  values,
516
+ templateName,
516
517
  }));
517
518
  }
518
519
  getOneClickAppDeployProgress(jobId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caprover-api",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "API client for CapRover",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -865,7 +865,8 @@ export default class ApiManager {
865
865
 
866
866
  startOneClickAppDeploy(
867
867
  template: any,
868
- values?: any
868
+ values?: any,
869
+ templateName?: string
869
870
  ): Promise<{ jobId: string }> {
870
871
  const http = this.http
871
872
 
@@ -874,6 +875,7 @@ export default class ApiManager {
874
875
  http.fetch(http.POST, '/user/oneclick/deploy', {
875
876
  template,
876
877
  values,
878
+ templateName,
877
879
  })
878
880
  )
879
881
  }