@webuildbots/webuildbots-sdk 11.2.6 → 11.2.8
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.
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
var block_enums_1 = require("../../const/block-enums");
|
|
20
|
+
var block_builder_1 = __importDefault(require("./block-builder"));
|
|
21
|
+
var defaultTextKey = 'default';
|
|
22
|
+
var TemporaryBB = /** @class */ (function (_super) {
|
|
23
|
+
__extends(TemporaryBB, _super);
|
|
24
|
+
function TemporaryBB() {
|
|
25
|
+
var _this = _super.call(this) || this;
|
|
26
|
+
_this.block.type = block_enums_1.BlockTypes.TEMPORARY;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
TemporaryBB.prototype.addText = function (lang, text, textKey) {
|
|
30
|
+
if (textKey === void 0) { textKey = defaultTextKey; }
|
|
31
|
+
if (!this.block.content.text[textKey]) {
|
|
32
|
+
this.block.content.text[textKey] = {};
|
|
33
|
+
}
|
|
34
|
+
this.block.content.text[textKey][lang] = text;
|
|
35
|
+
return this;
|
|
36
|
+
};
|
|
37
|
+
return TemporaryBB;
|
|
38
|
+
}(block_builder_1.default));
|
|
39
|
+
exports.default = TemporaryBB;
|
package/lib/const/block-enums.js
CHANGED
|
@@ -21,6 +21,7 @@ var BlockTypes;
|
|
|
21
21
|
BlockTypes["VARIABLE"] = "variable";
|
|
22
22
|
BlockTypes["MEDIA"] = "media";
|
|
23
23
|
BlockTypes["KNOWLEDGE_BASE"] = "kb";
|
|
24
|
+
BlockTypes["TEMPORARY"] = "temporary";
|
|
24
25
|
})(BlockTypes = exports.BlockTypes || (exports.BlockTypes = {}));
|
|
25
26
|
var ChoiceTypes;
|
|
26
27
|
(function (ChoiceTypes) {
|
|
@@ -126,7 +126,9 @@ var ResponseService = /** @class */ (function () {
|
|
|
126
126
|
options = {
|
|
127
127
|
method: 'POST',
|
|
128
128
|
data: payload,
|
|
129
|
-
headers: {
|
|
129
|
+
headers: {
|
|
130
|
+
'content-type': "multipart/form-data; boundary=" + payload.getBoundary()
|
|
131
|
+
}
|
|
130
132
|
};
|
|
131
133
|
_c.label = 5;
|
|
132
134
|
case 5:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webuildbots/webuildbots-sdk",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.8",
|
|
4
4
|
"description": "webuildbots sdk",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@types/json-logic-js": "^1.2.1",
|
|
56
|
-
"axios": "
|
|
56
|
+
"axios": "0.25.0",
|
|
57
57
|
"bson-objectid": "^1.3.1",
|
|
58
58
|
"deep-equal": "^2.0.4",
|
|
59
59
|
"flatted": "^3.1.0",
|