@webuildbots/webuildbots-sdk 11.4.0 → 11.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.
|
@@ -7,6 +7,8 @@ export default abstract class ChoiceBuilder {
|
|
|
7
7
|
action: {
|
|
8
8
|
type: string;
|
|
9
9
|
value?: any;
|
|
10
|
+
view?: string;
|
|
11
|
+
track?: boolean;
|
|
10
12
|
};
|
|
11
13
|
protected session?: any;
|
|
12
14
|
private profile?;
|
|
@@ -15,6 +17,8 @@ export default abstract class ChoiceBuilder {
|
|
|
15
17
|
constructor(action: {
|
|
16
18
|
type: string;
|
|
17
19
|
value?: any;
|
|
20
|
+
view?: string;
|
|
21
|
+
track?: boolean;
|
|
18
22
|
}, session?: any, profile?: any, functionArgs?: any);
|
|
19
23
|
addTitle(lang: Languages, text: string): this;
|
|
20
24
|
setTitle(polylang: Polylang): this;
|
|
@@ -4,5 +4,7 @@ import ChoiceBuilder from './choice-builder';
|
|
|
4
4
|
export default class UrlCB extends ChoiceBuilder {
|
|
5
5
|
constructor(session?: any, profile?: any);
|
|
6
6
|
addUrl(lang: Languages | string, url: string): this;
|
|
7
|
+
useExtension(): this;
|
|
8
|
+
trackClick(track: boolean): this;
|
|
7
9
|
setUrl(polylang: Polylang): this;
|
|
8
10
|
}
|
|
@@ -33,6 +33,14 @@ var UrlCB = /** @class */ (function (_super) {
|
|
|
33
33
|
this.choice.action.value[lang] = url;
|
|
34
34
|
return this;
|
|
35
35
|
};
|
|
36
|
+
UrlCB.prototype.useExtension = function () {
|
|
37
|
+
this.choice.action.view = 'extension';
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
UrlCB.prototype.trackClick = function (track) {
|
|
41
|
+
this.choice.action.track = track;
|
|
42
|
+
return this;
|
|
43
|
+
};
|
|
36
44
|
UrlCB.prototype.setUrl = function (polylang) {
|
|
37
45
|
this.choice.action.value = polylang;
|
|
38
46
|
return this;
|