@owbase/node 2.2.1 → 2.5.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.
@@ -91,6 +91,7 @@ declare class Sites {
91
91
  * @param {string} params.buildSpecification - Build specification for the site deployments.
92
92
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
93
93
  * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. New sites default to 30 days.
94
+ * @param {number} params.deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted.
94
95
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
95
96
  * @param {string} params.description - Optional description for the site.
96
97
  * @throws {OwbaseException}
@@ -120,6 +121,7 @@ declare class Sites {
120
121
  buildSpecification?: string;
121
122
  runtimeSpecification?: string;
122
123
  deploymentRetention?: number;
124
+ deploymentRetentionCount?: number;
123
125
  scopes?: ProjectKeyScopes[];
124
126
  description?: string;
125
127
  }): Promise<Models.Site>;
@@ -149,13 +151,14 @@ declare class Sites {
149
151
  * @param {string} buildSpecification - Build specification for the site deployments.
150
152
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
151
153
  * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. New sites default to 30 days.
154
+ * @param {number} deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted.
152
155
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
153
156
  * @param {string} description - Optional description for the site.
154
157
  * @throws {OwbaseException}
155
158
  * @returns {Promise<Models.Site>}
156
159
  * @deprecated Use the object parameter style method for a better developer experience.
157
160
  */
158
- create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
161
+ create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
159
162
  /**
160
163
  * Get a list of all frameworks that are currently available on the server instance.
161
164
  *
@@ -242,6 +245,7 @@ declare class Sites {
242
245
  * @param {string} params.buildSpecification - Build specification for the site deployments.
243
246
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
244
247
  * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. Leave it out to keep the current value.
248
+ * @param {number} params.deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted. Leave it out to keep the current value.
245
249
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
246
250
  * @param {string} params.description - Optional description for the site.
247
251
  * @throws {OwbaseException}
@@ -271,6 +275,7 @@ declare class Sites {
271
275
  buildSpecification?: string;
272
276
  runtimeSpecification?: string;
273
277
  deploymentRetention?: number;
278
+ deploymentRetentionCount?: number;
274
279
  scopes?: ProjectKeyScopes[];
275
280
  description?: string;
276
281
  }): Promise<Models.Site>;
@@ -300,13 +305,14 @@ declare class Sites {
300
305
  * @param {string} buildSpecification - Build specification for the site deployments.
301
306
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
302
307
  * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. Leave it out to keep the current value.
308
+ * @param {number} deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted. Leave it out to keep the current value.
303
309
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
304
310
  * @param {string} description - Optional description for the site.
305
311
  * @throws {OwbaseException}
306
312
  * @returns {Promise<Models.Site>}
307
313
  * @deprecated Use the object parameter style method for a better developer experience.
308
314
  */
309
- update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
315
+ update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
310
316
  /**
311
317
  * Delete a site by its unique ID.
312
318
  *
@@ -385,6 +391,12 @@ declare class Sites {
385
391
  * @param {string} params.buildCommand - Build Commands.
386
392
  * @param {string} params.outputDirectory - Output Directory.
387
393
  * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
394
+ * @param {string} params.commitHash - Hash of the commit this deployment was built from, for deployments made outside the Git integration (for example from a CI pipeline or the API). Shown in the console with the deployment.
395
+ * @param {string} params.commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
396
+ * @param {string} params.commitAuthor - Author of the commit this deployment was built from.
397
+ * @param {string} params.commitUrl - HTTPS URL of the commit this deployment was built from.
398
+ * @param {string} params.branch - Branch this deployment was built from.
399
+ * @param {string} params.branchUrl - HTTPS URL of the branch this deployment was built from.
388
400
  * @throws {OwbaseException}
389
401
  * @returns {Promise<Models.Deployment>}
390
402
  */
@@ -395,6 +407,12 @@ declare class Sites {
395
407
  buildCommand?: string;
396
408
  outputDirectory?: string;
397
409
  activate?: boolean;
410
+ commitHash?: string;
411
+ commitMessage?: string;
412
+ commitAuthor?: string;
413
+ commitUrl?: string;
414
+ branch?: string;
415
+ branchUrl?: string;
398
416
  onProgress?: (progress: UploadProgress) => void;
399
417
  }): Promise<Models.Deployment>;
400
418
  /**
@@ -406,11 +424,17 @@ declare class Sites {
406
424
  * @param {string} buildCommand - Build Commands.
407
425
  * @param {string} outputDirectory - Output Directory.
408
426
  * @param {boolean} activate - Automatically activate the deployment when it is finished building.
427
+ * @param {string} commitHash - Hash of the commit this deployment was built from, for deployments made outside the Git integration (for example from a CI pipeline or the API). Shown in the console with the deployment.
428
+ * @param {string} commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
429
+ * @param {string} commitAuthor - Author of the commit this deployment was built from.
430
+ * @param {string} commitUrl - HTTPS URL of the commit this deployment was built from.
431
+ * @param {string} branch - Branch this deployment was built from.
432
+ * @param {string} branchUrl - HTTPS URL of the branch this deployment was built from.
409
433
  * @throws {OwbaseException}
410
434
  * @returns {Promise<Models.Deployment>}
411
435
  * @deprecated Use the object parameter style method for a better developer experience.
412
436
  */
413
- createDeployment(siteId: string, code: File | InputFile, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
437
+ createDeployment(siteId: string, code: File | InputFile, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, commitHash?: string, commitMessage?: string, commitAuthor?: string, commitUrl?: string, branch?: string, branchUrl?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
414
438
  /**
415
439
  * Create a new build for an existing site deployment. This endpoint allows you to rebuild a deployment with the updated site configuration, including its commands and output directory if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
416
440
  *
@@ -91,6 +91,7 @@ declare class Sites {
91
91
  * @param {string} params.buildSpecification - Build specification for the site deployments.
92
92
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
93
93
  * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. New sites default to 30 days.
94
+ * @param {number} params.deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted.
94
95
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
95
96
  * @param {string} params.description - Optional description for the site.
96
97
  * @throws {OwbaseException}
@@ -120,6 +121,7 @@ declare class Sites {
120
121
  buildSpecification?: string;
121
122
  runtimeSpecification?: string;
122
123
  deploymentRetention?: number;
124
+ deploymentRetentionCount?: number;
123
125
  scopes?: ProjectKeyScopes[];
124
126
  description?: string;
125
127
  }): Promise<Models.Site>;
@@ -149,13 +151,14 @@ declare class Sites {
149
151
  * @param {string} buildSpecification - Build specification for the site deployments.
150
152
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
151
153
  * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. New sites default to 30 days.
154
+ * @param {number} deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted.
152
155
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
153
156
  * @param {string} description - Optional description for the site.
154
157
  * @throws {OwbaseException}
155
158
  * @returns {Promise<Models.Site>}
156
159
  * @deprecated Use the object parameter style method for a better developer experience.
157
160
  */
158
- create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
161
+ create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
159
162
  /**
160
163
  * Get a list of all frameworks that are currently available on the server instance.
161
164
  *
@@ -242,6 +245,7 @@ declare class Sites {
242
245
  * @param {string} params.buildSpecification - Build specification for the site deployments.
243
246
  * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
244
247
  * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. Leave it out to keep the current value.
248
+ * @param {number} params.deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted. Leave it out to keep the current value.
245
249
  * @param {ProjectKeyScopes[]} params.scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
246
250
  * @param {string} params.description - Optional description for the site.
247
251
  * @throws {OwbaseException}
@@ -271,6 +275,7 @@ declare class Sites {
271
275
  buildSpecification?: string;
272
276
  runtimeSpecification?: string;
273
277
  deploymentRetention?: number;
278
+ deploymentRetentionCount?: number;
274
279
  scopes?: ProjectKeyScopes[];
275
280
  description?: string;
276
281
  }): Promise<Models.Site>;
@@ -300,13 +305,14 @@ declare class Sites {
300
305
  * @param {string} buildSpecification - Build specification for the site deployments.
301
306
  * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
302
307
  * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention. Leave it out to keep the current value.
308
+ * @param {number} deploymentRetentionCount - Number of non-active deployments to keep; older finished deployments are deleted. Use it instead of deploymentRetention (days) when you deploy often. Value 0 turns it off. The active deployment never counts and is never deleted. Leave it out to keep the current value.
303
309
  * @param {ProjectKeyScopes[]} scopes - List of scopes allowed for API key auto-generated for every site build and SSR execution. Maximum of 200 scopes are allowed.
304
310
  * @param {string} description - Optional description for the site.
305
311
  * @throws {OwbaseException}
306
312
  * @returns {Promise<Models.Site>}
307
313
  * @deprecated Use the object parameter style method for a better developer experience.
308
314
  */
309
- update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
315
+ update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, scopes?: ProjectKeyScopes[], description?: string): Promise<Models.Site>;
310
316
  /**
311
317
  * Delete a site by its unique ID.
312
318
  *
@@ -385,6 +391,12 @@ declare class Sites {
385
391
  * @param {string} params.buildCommand - Build Commands.
386
392
  * @param {string} params.outputDirectory - Output Directory.
387
393
  * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
394
+ * @param {string} params.commitHash - Hash of the commit this deployment was built from, for deployments made outside the Git integration (for example from a CI pipeline or the API). Shown in the console with the deployment.
395
+ * @param {string} params.commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
396
+ * @param {string} params.commitAuthor - Author of the commit this deployment was built from.
397
+ * @param {string} params.commitUrl - HTTPS URL of the commit this deployment was built from.
398
+ * @param {string} params.branch - Branch this deployment was built from.
399
+ * @param {string} params.branchUrl - HTTPS URL of the branch this deployment was built from.
388
400
  * @throws {OwbaseException}
389
401
  * @returns {Promise<Models.Deployment>}
390
402
  */
@@ -395,6 +407,12 @@ declare class Sites {
395
407
  buildCommand?: string;
396
408
  outputDirectory?: string;
397
409
  activate?: boolean;
410
+ commitHash?: string;
411
+ commitMessage?: string;
412
+ commitAuthor?: string;
413
+ commitUrl?: string;
414
+ branch?: string;
415
+ branchUrl?: string;
398
416
  onProgress?: (progress: UploadProgress) => void;
399
417
  }): Promise<Models.Deployment>;
400
418
  /**
@@ -406,11 +424,17 @@ declare class Sites {
406
424
  * @param {string} buildCommand - Build Commands.
407
425
  * @param {string} outputDirectory - Output Directory.
408
426
  * @param {boolean} activate - Automatically activate the deployment when it is finished building.
427
+ * @param {string} commitHash - Hash of the commit this deployment was built from, for deployments made outside the Git integration (for example from a CI pipeline or the API). Shown in the console with the deployment.
428
+ * @param {string} commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
429
+ * @param {string} commitAuthor - Author of the commit this deployment was built from.
430
+ * @param {string} commitUrl - HTTPS URL of the commit this deployment was built from.
431
+ * @param {string} branch - Branch this deployment was built from.
432
+ * @param {string} branchUrl - HTTPS URL of the branch this deployment was built from.
409
433
  * @throws {OwbaseException}
410
434
  * @returns {Promise<Models.Deployment>}
411
435
  * @deprecated Use the object parameter style method for a better developer experience.
412
436
  */
413
- createDeployment(siteId: string, code: File | InputFile, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
437
+ createDeployment(siteId: string, code: File | InputFile, installCommand?: string, buildCommand?: string, outputDirectory?: string, activate?: boolean, commitHash?: string, commitMessage?: string, commitAuthor?: string, commitUrl?: string, branch?: string, branchUrl?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
414
438
  /**
415
439
  * Create a new build for an existing site deployment. This endpoint allows you to rebuild a deployment with the updated site configuration, including its commands and output directory if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
416
440
  *
@@ -67,8 +67,9 @@ class Sites {
67
67
  buildSpecification: rest[19],
68
68
  runtimeSpecification: rest[20],
69
69
  deploymentRetention: rest[21],
70
- scopes: rest[22],
71
- description: rest[23]
70
+ deploymentRetentionCount: rest[22],
71
+ scopes: rest[23],
72
+ description: rest[24]
72
73
  };
73
74
  }
74
75
  const siteId = params.siteId;
@@ -94,6 +95,7 @@ class Sites {
94
95
  const buildSpecification = params.buildSpecification;
95
96
  const runtimeSpecification = params.runtimeSpecification;
96
97
  const deploymentRetention = params.deploymentRetention;
98
+ const deploymentRetentionCount = params.deploymentRetentionCount;
97
99
  const scopes = params.scopes;
98
100
  const description = params.description;
99
101
  if (typeof siteId === "undefined") {
@@ -183,6 +185,9 @@ class Sites {
183
185
  if (typeof deploymentRetention !== "undefined") {
184
186
  apiPayload["deploymentRetention"] = deploymentRetention;
185
187
  }
188
+ if (typeof deploymentRetentionCount !== "undefined") {
189
+ apiPayload["deploymentRetentionCount"] = deploymentRetentionCount;
190
+ }
186
191
  if (typeof scopes !== "undefined") {
187
192
  apiPayload["scopes"] = scopes;
188
193
  }
@@ -300,8 +305,9 @@ class Sites {
300
305
  buildSpecification: rest[19],
301
306
  runtimeSpecification: rest[20],
302
307
  deploymentRetention: rest[21],
303
- scopes: rest[22],
304
- description: rest[23]
308
+ deploymentRetentionCount: rest[22],
309
+ scopes: rest[23],
310
+ description: rest[24]
305
311
  };
306
312
  }
307
313
  const siteId = params.siteId;
@@ -327,6 +333,7 @@ class Sites {
327
333
  const buildSpecification = params.buildSpecification;
328
334
  const runtimeSpecification = params.runtimeSpecification;
329
335
  const deploymentRetention = params.deploymentRetention;
336
+ const deploymentRetentionCount = params.deploymentRetentionCount;
330
337
  const scopes = params.scopes;
331
338
  const description = params.description;
332
339
  if (typeof siteId === "undefined" || siteId === "") {
@@ -411,6 +418,9 @@ class Sites {
411
418
  if (typeof deploymentRetention !== "undefined") {
412
419
  apiPayload["deploymentRetention"] = deploymentRetention;
413
420
  }
421
+ if (typeof deploymentRetentionCount !== "undefined") {
422
+ apiPayload["deploymentRetentionCount"] = deploymentRetentionCount;
423
+ }
414
424
  if (typeof scopes !== "undefined") {
415
425
  apiPayload["scopes"] = scopes;
416
426
  }
@@ -540,9 +550,15 @@ class Sites {
540
550
  installCommand: rest[1],
541
551
  buildCommand: rest[2],
542
552
  outputDirectory: rest[3],
543
- activate: rest[4]
553
+ activate: rest[4],
554
+ commitHash: rest[5],
555
+ commitMessage: rest[6],
556
+ commitAuthor: rest[7],
557
+ commitUrl: rest[8],
558
+ branch: rest[9],
559
+ branchUrl: rest[10]
544
560
  };
545
- onProgress = rest[5];
561
+ onProgress = rest[11];
546
562
  }
547
563
  const siteId = params.siteId;
548
564
  const code = params.code;
@@ -550,6 +566,12 @@ class Sites {
550
566
  const buildCommand = params.buildCommand;
551
567
  const outputDirectory = params.outputDirectory;
552
568
  const activate = params.activate;
569
+ const commitHash = params.commitHash;
570
+ const commitMessage = params.commitMessage;
571
+ const commitAuthor = params.commitAuthor;
572
+ const commitUrl = params.commitUrl;
573
+ const branch = params.branch;
574
+ const branchUrl = params.branchUrl;
553
575
  if (typeof siteId === "undefined" || siteId === "") {
554
576
  throw new client.OwbaseException('Missing required parameter: "siteId"');
555
577
  }
@@ -576,6 +598,24 @@ class Sites {
576
598
  if (typeof activate !== "undefined") {
577
599
  apiPayload["activate"] = activate;
578
600
  }
601
+ if (typeof commitHash !== "undefined") {
602
+ apiPayload["commitHash"] = commitHash;
603
+ }
604
+ if (typeof commitMessage !== "undefined") {
605
+ apiPayload["commitMessage"] = commitMessage;
606
+ }
607
+ if (typeof commitAuthor !== "undefined") {
608
+ apiPayload["commitAuthor"] = commitAuthor;
609
+ }
610
+ if (typeof commitUrl !== "undefined") {
611
+ apiPayload["commitUrl"] = commitUrl;
612
+ }
613
+ if (typeof branch !== "undefined") {
614
+ apiPayload["branch"] = branch;
615
+ }
616
+ if (typeof branchUrl !== "undefined") {
617
+ apiPayload["branchUrl"] = branchUrl;
618
+ }
579
619
  const uri = new URL(this.client.config.endpoint + apiPath);
580
620
  const apiHeaders = {
581
621
  "X-Owbase-Project": this.client.config.project,