@webuildbots/webuildbots-sdk 9.0.0 → 9.1.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.
@@ -1,3 +1,4 @@
1
1
  import BlockCB from './block-cb';
2
2
  export declare const backToMenu: () => BlockCB;
3
3
  export declare const speakToSomeoneCB: () => BlockCB;
4
+ export declare const tryAgainCB: (value: any, args?: any) => BlockCB;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.speakToSomeoneCB = exports.backToMenu = void 0;
6
+ exports.tryAgainCB = exports.speakToSomeoneCB = exports.backToMenu = void 0;
7
7
  var block_cb_1 = __importDefault(require("./block-cb"));
8
8
  var common_blocks_enums_1 = require("../../const/common-blocks-enums");
9
9
  var languages_enums_1 = require("../../const/languages-enums");
@@ -21,3 +21,10 @@ var speakToSomeoneCB = function () {
21
21
  .addTitle(languages_enums_1.Languages.WELSH, "Siaradwch â'r tîm");
22
22
  };
23
23
  exports.speakToSomeoneCB = speakToSomeoneCB;
24
+ var tryAgainCB = function (value, args) {
25
+ return new block_cb_1.default(value)
26
+ .addTitle(languages_enums_1.Languages.ENGLISH, 'Try again')
27
+ .addTitle(languages_enums_1.Languages.WELSH, 'Ceisio eto')
28
+ .args(args);
29
+ };
30
+ exports.tryAgainCB = tryAgainCB;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webuildbots/webuildbots-sdk",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "description": "webuildbots sdk",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",