@owbase/node 2.2.0 → 2.4.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.
@@ -89,6 +89,7 @@ declare class Functions {
89
89
  * @param {string} params.buildSpecification - Build specification for the function deployments.
90
90
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
91
91
  * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
92
+ * @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.
92
93
  * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
93
94
  * @param {string} params.description - Optional description for the function.
94
95
  * @throws {OwbaseException}
@@ -117,6 +118,7 @@ declare class Functions {
117
118
  buildSpecification?: string;
118
119
  runtimeSpecification?: string;
119
120
  deploymentRetention?: number;
121
+ deploymentRetentionCount?: number;
120
122
  interval?: number;
121
123
  description?: string;
122
124
  }): Promise<Models.Function>;
@@ -145,13 +147,14 @@ declare class Functions {
145
147
  * @param {string} buildSpecification - Build specification for the function deployments.
146
148
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
147
149
  * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
150
+ * @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.
148
151
  * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
149
152
  * @param {string} description - Optional description for the function.
150
153
  * @throws {OwbaseException}
151
154
  * @returns {Promise<Models.Function>}
152
155
  * @deprecated Use the object parameter style method for a better developer experience.
153
156
  */
154
- create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
157
+ create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, interval?: number, description?: string): Promise<Models.Function>;
155
158
  /**
156
159
  * Get a list of all runtimes that are currently active on your instance.
157
160
  *
@@ -236,7 +239,8 @@ declare class Functions {
236
239
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
237
240
  * @param {string} params.buildSpecification - Build specification for the function deployments.
238
241
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
239
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
242
+ * @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.
243
+ * @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.
240
244
  * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
241
245
  * @param {string} params.description - Optional description for the function.
242
246
  * @throws {OwbaseException}
@@ -265,6 +269,7 @@ declare class Functions {
265
269
  buildSpecification?: string;
266
270
  runtimeSpecification?: string;
267
271
  deploymentRetention?: number;
272
+ deploymentRetentionCount?: number;
268
273
  interval?: number;
269
274
  description?: string;
270
275
  }): Promise<Models.Function>;
@@ -292,14 +297,15 @@ declare class Functions {
292
297
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
293
298
  * @param {string} buildSpecification - Build specification for the function deployments.
294
299
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
295
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
300
+ * @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.
301
+ * @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.
296
302
  * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
297
303
  * @param {string} description - Optional description for the function.
298
304
  * @throws {OwbaseException}
299
305
  * @returns {Promise<Models.Function>}
300
306
  * @deprecated Use the object parameter style method for a better developer experience.
301
307
  */
302
- update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
308
+ update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, interval?: number, description?: string): Promise<Models.Function>;
303
309
  /**
304
310
  * Delete a function by its unique ID.
305
311
  *
@@ -381,6 +387,12 @@ declare class Functions {
381
387
  * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
382
388
  * @param {string} params.entrypoint - Entrypoint File.
383
389
  * @param {string} params.commands - Build Commands.
390
+ * @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.
391
+ * @param {string} params.commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
392
+ * @param {string} params.commitAuthor - Author of the commit this deployment was built from.
393
+ * @param {string} params.commitUrl - HTTPS URL of the commit this deployment was built from.
394
+ * @param {string} params.branch - Branch this deployment was built from.
395
+ * @param {string} params.branchUrl - HTTPS URL of the branch this deployment was built from.
384
396
  * @throws {OwbaseException}
385
397
  * @returns {Promise<Models.Deployment>}
386
398
  */
@@ -390,6 +402,12 @@ declare class Functions {
390
402
  activate: boolean;
391
403
  entrypoint?: string;
392
404
  commands?: string;
405
+ commitHash?: string;
406
+ commitMessage?: string;
407
+ commitAuthor?: string;
408
+ commitUrl?: string;
409
+ branch?: string;
410
+ branchUrl?: string;
393
411
  onProgress?: (progress: UploadProgress) => void;
394
412
  }): Promise<Models.Deployment>;
395
413
  /**
@@ -404,11 +422,17 @@ declare class Functions {
404
422
  * @param {boolean} activate - Automatically activate the deployment when it is finished building.
405
423
  * @param {string} entrypoint - Entrypoint File.
406
424
  * @param {string} commands - Build Commands.
425
+ * @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.
426
+ * @param {string} commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
427
+ * @param {string} commitAuthor - Author of the commit this deployment was built from.
428
+ * @param {string} commitUrl - HTTPS URL of the commit this deployment was built from.
429
+ * @param {string} branch - Branch this deployment was built from.
430
+ * @param {string} branchUrl - HTTPS URL of the branch this deployment was built from.
407
431
  * @throws {OwbaseException}
408
432
  * @returns {Promise<Models.Deployment>}
409
433
  * @deprecated Use the object parameter style method for a better developer experience.
410
434
  */
411
- createDeployment(functionId: string, code: File | InputFile, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
435
+ createDeployment(functionId: string, code: File | InputFile, activate: boolean, entrypoint?: string, commands?: string, commitHash?: string, commitMessage?: string, commitAuthor?: string, commitUrl?: string, branch?: string, branchUrl?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
412
436
  /**
413
437
  * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands 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.
414
438
  *
@@ -89,6 +89,7 @@ declare class Functions {
89
89
  * @param {string} params.buildSpecification - Build specification for the function deployments.
90
90
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
91
91
  * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
92
+ * @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.
92
93
  * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
93
94
  * @param {string} params.description - Optional description for the function.
94
95
  * @throws {OwbaseException}
@@ -117,6 +118,7 @@ declare class Functions {
117
118
  buildSpecification?: string;
118
119
  runtimeSpecification?: string;
119
120
  deploymentRetention?: number;
121
+ deploymentRetentionCount?: number;
120
122
  interval?: number;
121
123
  description?: string;
122
124
  }): Promise<Models.Function>;
@@ -145,13 +147,14 @@ declare class Functions {
145
147
  * @param {string} buildSpecification - Build specification for the function deployments.
146
148
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
147
149
  * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
150
+ * @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.
148
151
  * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule.
149
152
  * @param {string} description - Optional description for the function.
150
153
  * @throws {OwbaseException}
151
154
  * @returns {Promise<Models.Function>}
152
155
  * @deprecated Use the object parameter style method for a better developer experience.
153
156
  */
154
- create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
157
+ create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, interval?: number, description?: string): Promise<Models.Function>;
155
158
  /**
156
159
  * Get a list of all runtimes that are currently active on your instance.
157
160
  *
@@ -236,7 +239,8 @@ declare class Functions {
236
239
  * @param {string[]} params.providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
237
240
  * @param {string} params.buildSpecification - Build specification for the function deployments.
238
241
  * @param {string} params.runtimeSpecification - Runtime specification for the function executions.
239
- * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
242
+ * @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.
243
+ * @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.
240
244
  * @param {number} params.interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
241
245
  * @param {string} params.description - Optional description for the function.
242
246
  * @throws {OwbaseException}
@@ -265,6 +269,7 @@ declare class Functions {
265
269
  buildSpecification?: string;
266
270
  runtimeSpecification?: string;
267
271
  deploymentRetention?: number;
272
+ deploymentRetentionCount?: number;
268
273
  interval?: number;
269
274
  description?: string;
270
275
  }): Promise<Models.Function>;
@@ -292,14 +297,15 @@ declare class Functions {
292
297
  * @param {string[]} providerPaths - List of file path patterns to trigger automatic deployments. Supports wildcards. Leave empty to deploy on all file changes.
293
298
  * @param {string} buildSpecification - Build specification for the function deployments.
294
299
  * @param {string} runtimeSpecification - Runtime specification for the function executions.
295
- * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 keeps all deployments unless the server applies a default retention.
300
+ * @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.
301
+ * @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.
296
302
  * @param {number} interval - Minutes between scheduled executions. Owbase picks when within each interval the function runs. Use 0 to disable. Cannot be combined with schedule. When omitted, the current interval is kept unless schedule is set.
297
303
  * @param {string} description - Optional description for the function.
298
304
  * @throws {OwbaseException}
299
305
  * @returns {Promise<Models.Function>}
300
306
  * @deprecated Use the object parameter style method for a better developer experience.
301
307
  */
302
- update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, interval?: number, description?: string): Promise<Models.Function>;
308
+ update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: ProjectKeyScopes[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, providerBranches?: string[], providerPaths?: string[], buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number, deploymentRetentionCount?: number, interval?: number, description?: string): Promise<Models.Function>;
303
309
  /**
304
310
  * Delete a function by its unique ID.
305
311
  *
@@ -381,6 +387,12 @@ declare class Functions {
381
387
  * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
382
388
  * @param {string} params.entrypoint - Entrypoint File.
383
389
  * @param {string} params.commands - Build Commands.
390
+ * @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.
391
+ * @param {string} params.commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
392
+ * @param {string} params.commitAuthor - Author of the commit this deployment was built from.
393
+ * @param {string} params.commitUrl - HTTPS URL of the commit this deployment was built from.
394
+ * @param {string} params.branch - Branch this deployment was built from.
395
+ * @param {string} params.branchUrl - HTTPS URL of the branch this deployment was built from.
384
396
  * @throws {OwbaseException}
385
397
  * @returns {Promise<Models.Deployment>}
386
398
  */
@@ -390,6 +402,12 @@ declare class Functions {
390
402
  activate: boolean;
391
403
  entrypoint?: string;
392
404
  commands?: string;
405
+ commitHash?: string;
406
+ commitMessage?: string;
407
+ commitAuthor?: string;
408
+ commitUrl?: string;
409
+ branch?: string;
410
+ branchUrl?: string;
393
411
  onProgress?: (progress: UploadProgress) => void;
394
412
  }): Promise<Models.Deployment>;
395
413
  /**
@@ -404,11 +422,17 @@ declare class Functions {
404
422
  * @param {boolean} activate - Automatically activate the deployment when it is finished building.
405
423
  * @param {string} entrypoint - Entrypoint File.
406
424
  * @param {string} commands - Build Commands.
425
+ * @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.
426
+ * @param {string} commitMessage - Message of the commit this deployment was built from. Stored up to 255 characters.
427
+ * @param {string} commitAuthor - Author of the commit this deployment was built from.
428
+ * @param {string} commitUrl - HTTPS URL of the commit this deployment was built from.
429
+ * @param {string} branch - Branch this deployment was built from.
430
+ * @param {string} branchUrl - HTTPS URL of the branch this deployment was built from.
407
431
  * @throws {OwbaseException}
408
432
  * @returns {Promise<Models.Deployment>}
409
433
  * @deprecated Use the object parameter style method for a better developer experience.
410
434
  */
411
- createDeployment(functionId: string, code: File | InputFile, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
435
+ createDeployment(functionId: string, code: File | InputFile, activate: boolean, entrypoint?: string, commands?: string, commitHash?: string, commitMessage?: string, commitAuthor?: string, commitUrl?: string, branch?: string, branchUrl?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
412
436
  /**
413
437
  * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands 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.
414
438
  *
@@ -66,8 +66,9 @@ class Functions {
66
66
  buildSpecification: rest[18],
67
67
  runtimeSpecification: rest[19],
68
68
  deploymentRetention: rest[20],
69
- interval: rest[21],
70
- description: rest[22]
69
+ deploymentRetentionCount: rest[21],
70
+ interval: rest[22],
71
+ description: rest[23]
71
72
  };
72
73
  }
73
74
  const functionId = params.functionId;
@@ -92,6 +93,7 @@ class Functions {
92
93
  const buildSpecification = params.buildSpecification;
93
94
  const runtimeSpecification = params.runtimeSpecification;
94
95
  const deploymentRetention = params.deploymentRetention;
96
+ const deploymentRetentionCount = params.deploymentRetentionCount;
95
97
  const interval = params.interval;
96
98
  const description = params.description;
97
99
  if (typeof functionId === "undefined") {
@@ -173,6 +175,9 @@ class Functions {
173
175
  if (typeof deploymentRetention !== "undefined") {
174
176
  apiPayload["deploymentRetention"] = deploymentRetention;
175
177
  }
178
+ if (typeof deploymentRetentionCount !== "undefined") {
179
+ apiPayload["deploymentRetentionCount"] = deploymentRetentionCount;
180
+ }
176
181
  if (typeof interval !== "undefined") {
177
182
  apiPayload["interval"] = interval;
178
183
  }
@@ -291,8 +296,9 @@ class Functions {
291
296
  buildSpecification: rest[18],
292
297
  runtimeSpecification: rest[19],
293
298
  deploymentRetention: rest[20],
294
- interval: rest[21],
295
- description: rest[22]
299
+ deploymentRetentionCount: rest[21],
300
+ interval: rest[22],
301
+ description: rest[23]
296
302
  };
297
303
  }
298
304
  const functionId = params.functionId;
@@ -317,6 +323,7 @@ class Functions {
317
323
  const buildSpecification = params.buildSpecification;
318
324
  const runtimeSpecification = params.runtimeSpecification;
319
325
  const deploymentRetention = params.deploymentRetention;
326
+ const deploymentRetentionCount = params.deploymentRetentionCount;
320
327
  const interval = params.interval;
321
328
  const description = params.description;
322
329
  if (typeof functionId === "undefined" || functionId === "") {
@@ -395,6 +402,9 @@ class Functions {
395
402
  if (typeof deploymentRetention !== "undefined") {
396
403
  apiPayload["deploymentRetention"] = deploymentRetention;
397
404
  }
405
+ if (typeof deploymentRetentionCount !== "undefined") {
406
+ apiPayload["deploymentRetentionCount"] = deploymentRetentionCount;
407
+ }
398
408
  if (typeof interval !== "undefined") {
399
409
  apiPayload["interval"] = interval;
400
410
  }
@@ -529,15 +539,27 @@ class Functions {
529
539
  code: rest[0],
530
540
  activate: rest[1],
531
541
  entrypoint: rest[2],
532
- commands: rest[3]
542
+ commands: rest[3],
543
+ commitHash: rest[4],
544
+ commitMessage: rest[5],
545
+ commitAuthor: rest[6],
546
+ commitUrl: rest[7],
547
+ branch: rest[8],
548
+ branchUrl: rest[9]
533
549
  };
534
- onProgress = rest[4];
550
+ onProgress = rest[10];
535
551
  }
536
552
  const functionId = params.functionId;
537
553
  const code = params.code;
538
554
  const activate = params.activate;
539
555
  const entrypoint = params.entrypoint;
540
556
  const commands = params.commands;
557
+ const commitHash = params.commitHash;
558
+ const commitMessage = params.commitMessage;
559
+ const commitAuthor = params.commitAuthor;
560
+ const commitUrl = params.commitUrl;
561
+ const branch = params.branch;
562
+ const branchUrl = params.branchUrl;
541
563
  if (typeof functionId === "undefined" || functionId === "") {
542
564
  throw new client.OwbaseException(
543
565
  'Missing required parameter: "functionId"'
@@ -566,6 +588,24 @@ class Functions {
566
588
  if (typeof activate !== "undefined") {
567
589
  apiPayload["activate"] = activate;
568
590
  }
591
+ if (typeof commitHash !== "undefined") {
592
+ apiPayload["commitHash"] = commitHash;
593
+ }
594
+ if (typeof commitMessage !== "undefined") {
595
+ apiPayload["commitMessage"] = commitMessage;
596
+ }
597
+ if (typeof commitAuthor !== "undefined") {
598
+ apiPayload["commitAuthor"] = commitAuthor;
599
+ }
600
+ if (typeof commitUrl !== "undefined") {
601
+ apiPayload["commitUrl"] = commitUrl;
602
+ }
603
+ if (typeof branch !== "undefined") {
604
+ apiPayload["branch"] = branch;
605
+ }
606
+ if (typeof branchUrl !== "undefined") {
607
+ apiPayload["branchUrl"] = branchUrl;
608
+ }
569
609
  const uri = new URL(this.client.config.endpoint + apiPath);
570
610
  const apiHeaders = {
571
611
  "X-Owbase-Project": this.client.config.project,