@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.
@@ -65,8 +65,9 @@ var Functions = class {
65
65
  buildSpecification: rest[18],
66
66
  runtimeSpecification: rest[19],
67
67
  deploymentRetention: rest[20],
68
- interval: rest[21],
69
- description: rest[22]
68
+ deploymentRetentionCount: rest[21],
69
+ interval: rest[22],
70
+ description: rest[23]
70
71
  };
71
72
  }
72
73
  const functionId = params.functionId;
@@ -91,6 +92,7 @@ var Functions = class {
91
92
  const buildSpecification = params.buildSpecification;
92
93
  const runtimeSpecification = params.runtimeSpecification;
93
94
  const deploymentRetention = params.deploymentRetention;
95
+ const deploymentRetentionCount = params.deploymentRetentionCount;
94
96
  const interval = params.interval;
95
97
  const description = params.description;
96
98
  if (typeof functionId === "undefined") {
@@ -172,6 +174,9 @@ var Functions = class {
172
174
  if (typeof deploymentRetention !== "undefined") {
173
175
  apiPayload["deploymentRetention"] = deploymentRetention;
174
176
  }
177
+ if (typeof deploymentRetentionCount !== "undefined") {
178
+ apiPayload["deploymentRetentionCount"] = deploymentRetentionCount;
179
+ }
175
180
  if (typeof interval !== "undefined") {
176
181
  apiPayload["interval"] = interval;
177
182
  }
@@ -290,8 +295,9 @@ var Functions = class {
290
295
  buildSpecification: rest[18],
291
296
  runtimeSpecification: rest[19],
292
297
  deploymentRetention: rest[20],
293
- interval: rest[21],
294
- description: rest[22]
298
+ deploymentRetentionCount: rest[21],
299
+ interval: rest[22],
300
+ description: rest[23]
295
301
  };
296
302
  }
297
303
  const functionId = params.functionId;
@@ -316,6 +322,7 @@ var Functions = class {
316
322
  const buildSpecification = params.buildSpecification;
317
323
  const runtimeSpecification = params.runtimeSpecification;
318
324
  const deploymentRetention = params.deploymentRetention;
325
+ const deploymentRetentionCount = params.deploymentRetentionCount;
319
326
  const interval = params.interval;
320
327
  const description = params.description;
321
328
  if (typeof functionId === "undefined" || functionId === "") {
@@ -394,6 +401,9 @@ var Functions = class {
394
401
  if (typeof deploymentRetention !== "undefined") {
395
402
  apiPayload["deploymentRetention"] = deploymentRetention;
396
403
  }
404
+ if (typeof deploymentRetentionCount !== "undefined") {
405
+ apiPayload["deploymentRetentionCount"] = deploymentRetentionCount;
406
+ }
397
407
  if (typeof interval !== "undefined") {
398
408
  apiPayload["interval"] = interval;
399
409
  }
@@ -528,15 +538,27 @@ var Functions = class {
528
538
  code: rest[0],
529
539
  activate: rest[1],
530
540
  entrypoint: rest[2],
531
- commands: rest[3]
541
+ commands: rest[3],
542
+ commitHash: rest[4],
543
+ commitMessage: rest[5],
544
+ commitAuthor: rest[6],
545
+ commitUrl: rest[7],
546
+ branch: rest[8],
547
+ branchUrl: rest[9]
532
548
  };
533
- onProgress = rest[4];
549
+ onProgress = rest[10];
534
550
  }
535
551
  const functionId = params.functionId;
536
552
  const code = params.code;
537
553
  const activate = params.activate;
538
554
  const entrypoint = params.entrypoint;
539
555
  const commands = params.commands;
556
+ const commitHash = params.commitHash;
557
+ const commitMessage = params.commitMessage;
558
+ const commitAuthor = params.commitAuthor;
559
+ const commitUrl = params.commitUrl;
560
+ const branch = params.branch;
561
+ const branchUrl = params.branchUrl;
540
562
  if (typeof functionId === "undefined" || functionId === "") {
541
563
  throw new OwbaseException(
542
564
  'Missing required parameter: "functionId"'
@@ -565,6 +587,24 @@ var Functions = class {
565
587
  if (typeof activate !== "undefined") {
566
588
  apiPayload["activate"] = activate;
567
589
  }
590
+ if (typeof commitHash !== "undefined") {
591
+ apiPayload["commitHash"] = commitHash;
592
+ }
593
+ if (typeof commitMessage !== "undefined") {
594
+ apiPayload["commitMessage"] = commitMessage;
595
+ }
596
+ if (typeof commitAuthor !== "undefined") {
597
+ apiPayload["commitAuthor"] = commitAuthor;
598
+ }
599
+ if (typeof commitUrl !== "undefined") {
600
+ apiPayload["commitUrl"] = commitUrl;
601
+ }
602
+ if (typeof branch !== "undefined") {
603
+ apiPayload["branch"] = branch;
604
+ }
605
+ if (typeof branchUrl !== "undefined") {
606
+ apiPayload["branchUrl"] = branchUrl;
607
+ }
568
608
  const uri = new URL(this.client.config.endpoint + apiPath);
569
609
  const apiHeaders = {
570
610
  "X-Owbase-Project": this.client.config.project,