@arrowsphere/api-client 3.399.0-rc-cpe-3 → 3.399.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.
- package/CHANGELOG.md +4 -0
- package/build/campaign/campaignClient.d.ts +5 -3
- package/build/campaign/campaignClient.js +3 -2
- package/build/campaign/entities/v2/campaign/banner/bannerV3.d.ts +35 -0
- package/build/campaign/entities/v2/campaign/banner/bannerV3.js +87 -0
- package/build/campaign/entities/v2/campaign/campaign.d.ts +46 -1
- package/build/campaign/entities/v2/campaign/campaign.js +43 -7
- package/build/campaign/entities/v2/campaign/popup/popup.d.ts +9 -46
- package/build/campaign/entities/v2/campaign/popup/popup.js +1 -27
- package/build/monitoring/index.d.ts +0 -3
- package/build/monitoring/index.js +0 -3
- package/build/monitoring/monitoringClient.d.ts +1 -24
- package/build/monitoring/monitoringClient.js +0 -28
- package/package.json +1 -1
- package/build/monitoring/entities/alert/alert.d.ts +0 -41
- package/build/monitoring/entities/alert/alert.js +0 -92
- package/build/monitoring/entities/alert/createAlert.d.ts +0 -13
- package/build/monitoring/entities/alert/createAlert.js +0 -38
- package/build/monitoring/entities/alert/filters/alertFilters.d.ts +0 -14
- package/build/monitoring/entities/alert/filters/alertFilters.js +0 -42
- package/build/monitoring/entities/alert/filters/renewalFilters.d.ts +0 -40
- package/build/monitoring/entities/alert/filters/renewalFilters.js +0 -87
- package/build/monitoring/entities/alert/listAlert.d.ts +0 -9
- package/build/monitoring/entities/alert/listAlert.js +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.399.0] - 2026.09.07
|
|
7
|
+
### Added
|
|
8
|
+
- [campaigns] Add everything needed to handle banners.
|
|
9
|
+
|
|
6
10
|
## [3.398.0] - 2026.09.07
|
|
7
11
|
### Added
|
|
8
12
|
- [licenses] Add `preferredCurrency` to `LicensePriceGetData`, `PriceFindResultData`
|
|
@@ -7,6 +7,7 @@ import { CampaignList } from './entities/v2/campaignList';
|
|
|
7
7
|
import { CampaignAggragations } from './entities/campaign/campaignAggregation';
|
|
8
8
|
import { CampaignAssetsUpload } from './entities/campaignAssets/campaignAssetsUpload';
|
|
9
9
|
import { CampaignPopupType } from './entities/v2/campaign/popup/popup';
|
|
10
|
+
import { CampaignBannerType } from './entities/v2/campaign/banner/bannerV3';
|
|
10
11
|
export declare enum PostEmailCampaignFields {
|
|
11
12
|
COLUMN_APPLICATION = "application",
|
|
12
13
|
COLUMN_METADATA = "metadata"
|
|
@@ -16,7 +17,7 @@ export declare type PostEmailCampaignType = {
|
|
|
16
17
|
[PostEmailCampaignFields.COLUMN_METADATA]: PostEmailCampaignMetadataType;
|
|
17
18
|
};
|
|
18
19
|
export declare enum CampaignInputFields {
|
|
19
|
-
COLUMN_BANNER = "
|
|
20
|
+
COLUMN_BANNER = "campaignBanner",
|
|
20
21
|
COLUMN_CATEGORY = "category",
|
|
21
22
|
COLUMN_END_DATE = "endDate",
|
|
22
23
|
COLUMN_IS_ACTIVATED = "isActivated",
|
|
@@ -44,6 +45,7 @@ export declare type RulesInputType = {
|
|
|
44
45
|
[RulesInputFields.COLUMN_SUBSCRIPTIONS]?: string[];
|
|
45
46
|
};
|
|
46
47
|
export declare enum BannerInputFields {
|
|
48
|
+
CONFIGURATION = "configuration",
|
|
47
49
|
COLUMN_BUTTON_PLACEMENT = "buttonPlacement",
|
|
48
50
|
COLUMN_BUTTON_TEXT = "buttonText",
|
|
49
51
|
COLUMN_TEXT = "text",
|
|
@@ -169,7 +171,7 @@ export declare type LandingPageInputType = {
|
|
|
169
171
|
};
|
|
170
172
|
export declare enum CampaignCategoryList {
|
|
171
173
|
COMMUNICATION_BAR = "COMMUNICATIONBAR",
|
|
172
|
-
BANNER = "
|
|
174
|
+
BANNER = "CAMPAIGNBANNER",
|
|
173
175
|
BUG = "BUG",
|
|
174
176
|
LANDING_PAGE = "LANDINGPAGE",
|
|
175
177
|
NOTIFICATION = "NOTIFICATION",
|
|
@@ -177,7 +179,7 @@ export declare enum CampaignCategoryList {
|
|
|
177
179
|
RELEASE = "RELEASE"
|
|
178
180
|
}
|
|
179
181
|
export declare type CampaignInputType = {
|
|
180
|
-
[CampaignInputFields.COLUMN_BANNER]?:
|
|
182
|
+
[CampaignInputFields.COLUMN_BANNER]?: CampaignBannerType;
|
|
181
183
|
[CampaignInputFields.COLUMN_CATEGORY]?: CampaignCategoryList;
|
|
182
184
|
[CampaignInputFields.COLUMN_END_DATE]?: string;
|
|
183
185
|
[CampaignInputFields.COLUMN_IS_ACTIVATED]?: boolean;
|
|
@@ -16,7 +16,7 @@ var PostEmailCampaignFields;
|
|
|
16
16
|
})(PostEmailCampaignFields = exports.PostEmailCampaignFields || (exports.PostEmailCampaignFields = {}));
|
|
17
17
|
var CampaignInputFields;
|
|
18
18
|
(function (CampaignInputFields) {
|
|
19
|
-
CampaignInputFields["COLUMN_BANNER"] = "
|
|
19
|
+
CampaignInputFields["COLUMN_BANNER"] = "campaignBanner";
|
|
20
20
|
CampaignInputFields["COLUMN_CATEGORY"] = "category";
|
|
21
21
|
CampaignInputFields["COLUMN_END_DATE"] = "endDate";
|
|
22
22
|
CampaignInputFields["COLUMN_IS_ACTIVATED"] = "isActivated";
|
|
@@ -38,6 +38,7 @@ var RulesInputFields;
|
|
|
38
38
|
})(RulesInputFields = exports.RulesInputFields || (exports.RulesInputFields = {}));
|
|
39
39
|
var BannerInputFields;
|
|
40
40
|
(function (BannerInputFields) {
|
|
41
|
+
BannerInputFields["CONFIGURATION"] = "configuration";
|
|
41
42
|
BannerInputFields["COLUMN_BUTTON_PLACEMENT"] = "buttonPlacement";
|
|
42
43
|
BannerInputFields["COLUMN_BUTTON_TEXT"] = "buttonText";
|
|
43
44
|
BannerInputFields["COLUMN_TEXT"] = "text";
|
|
@@ -110,7 +111,7 @@ var LandingPageInputFields;
|
|
|
110
111
|
var CampaignCategoryList;
|
|
111
112
|
(function (CampaignCategoryList) {
|
|
112
113
|
CampaignCategoryList["COMMUNICATION_BAR"] = "COMMUNICATIONBAR";
|
|
113
|
-
CampaignCategoryList["BANNER"] = "
|
|
114
|
+
CampaignCategoryList["BANNER"] = "CAMPAIGNBANNER";
|
|
114
115
|
CampaignCategoryList["BUG"] = "BUG";
|
|
115
116
|
CampaignCategoryList["LANDING_PAGE"] = "LANDINGPAGE";
|
|
116
117
|
CampaignCategoryList["NOTIFICATION"] = "NOTIFICATION";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
import { CampaignBackground, CampaignButton, CampaignMedia } from '../campaign';
|
|
3
|
+
export declare type CampaignBannerType = {
|
|
4
|
+
background: CampaignBackground;
|
|
5
|
+
button: CampaignButton;
|
|
6
|
+
description?: string;
|
|
7
|
+
displayConfiguration: number;
|
|
8
|
+
media: CampaignMedia;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
textColor: string;
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
13
|
+
export declare enum BannerFields {
|
|
14
|
+
COLUMN_BACKGROUND = "background",
|
|
15
|
+
COLUMN_BUTTON = "button",
|
|
16
|
+
COLUMN_DESCRIPTION = "description",
|
|
17
|
+
COLUMN_DISPLAY_CONFIGURATION = "displayConfiguration",
|
|
18
|
+
COLUMN_MEDIA = "media",
|
|
19
|
+
COLUMN_SUBTITLE = "subtitle",
|
|
20
|
+
COLUMN_TEXT_COLOR = "textColor",
|
|
21
|
+
COLUMN_TITLE = "title"
|
|
22
|
+
}
|
|
23
|
+
export declare class CampaignBanner extends AbstractEntity<CampaignBannerType> {
|
|
24
|
+
#private;
|
|
25
|
+
constructor(bannerInput: CampaignBannerType);
|
|
26
|
+
get background(): CampaignBackground;
|
|
27
|
+
get button(): CampaignButton;
|
|
28
|
+
get description(): string | undefined;
|
|
29
|
+
get displayConfiguration(): number;
|
|
30
|
+
get media(): CampaignMedia;
|
|
31
|
+
get subtitle(): string | undefined;
|
|
32
|
+
get textColor(): string;
|
|
33
|
+
get title(): string;
|
|
34
|
+
toJSON(): CampaignBannerType;
|
|
35
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _CampaignBanner_background, _CampaignBanner_button, _CampaignBanner_description, _CampaignBanner_displayConfiguration, _CampaignBanner_media, _CampaignBanner_subtitle, _CampaignBanner_textColor, _CampaignBanner_title;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CampaignBanner = exports.BannerFields = void 0;
|
|
16
|
+
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
+
var BannerFields;
|
|
18
|
+
(function (BannerFields) {
|
|
19
|
+
BannerFields["COLUMN_BACKGROUND"] = "background";
|
|
20
|
+
BannerFields["COLUMN_BUTTON"] = "button";
|
|
21
|
+
BannerFields["COLUMN_DESCRIPTION"] = "description";
|
|
22
|
+
BannerFields["COLUMN_DISPLAY_CONFIGURATION"] = "displayConfiguration";
|
|
23
|
+
BannerFields["COLUMN_MEDIA"] = "media";
|
|
24
|
+
BannerFields["COLUMN_SUBTITLE"] = "subtitle";
|
|
25
|
+
BannerFields["COLUMN_TEXT_COLOR"] = "textColor";
|
|
26
|
+
BannerFields["COLUMN_TITLE"] = "title";
|
|
27
|
+
})(BannerFields = exports.BannerFields || (exports.BannerFields = {}));
|
|
28
|
+
class CampaignBanner extends abstractEntity_1.AbstractEntity {
|
|
29
|
+
constructor(bannerInput) {
|
|
30
|
+
super(bannerInput);
|
|
31
|
+
_CampaignBanner_background.set(this, void 0);
|
|
32
|
+
_CampaignBanner_button.set(this, void 0);
|
|
33
|
+
_CampaignBanner_description.set(this, void 0);
|
|
34
|
+
_CampaignBanner_displayConfiguration.set(this, void 0);
|
|
35
|
+
_CampaignBanner_media.set(this, void 0);
|
|
36
|
+
_CampaignBanner_subtitle.set(this, void 0);
|
|
37
|
+
_CampaignBanner_textColor.set(this, void 0);
|
|
38
|
+
_CampaignBanner_title.set(this, void 0);
|
|
39
|
+
__classPrivateFieldSet(this, _CampaignBanner_background, bannerInput[BannerFields.COLUMN_BACKGROUND], "f");
|
|
40
|
+
__classPrivateFieldSet(this, _CampaignBanner_button, bannerInput[BannerFields.COLUMN_BUTTON], "f");
|
|
41
|
+
__classPrivateFieldSet(this, _CampaignBanner_description, bannerInput[BannerFields.COLUMN_DESCRIPTION], "f");
|
|
42
|
+
__classPrivateFieldSet(this, _CampaignBanner_displayConfiguration, bannerInput[BannerFields.COLUMN_DISPLAY_CONFIGURATION], "f");
|
|
43
|
+
__classPrivateFieldSet(this, _CampaignBanner_media, bannerInput[BannerFields.COLUMN_MEDIA], "f");
|
|
44
|
+
__classPrivateFieldSet(this, _CampaignBanner_subtitle, bannerInput[BannerFields.COLUMN_SUBTITLE], "f");
|
|
45
|
+
__classPrivateFieldSet(this, _CampaignBanner_textColor, bannerInput[BannerFields.COLUMN_TEXT_COLOR], "f");
|
|
46
|
+
__classPrivateFieldSet(this, _CampaignBanner_title, bannerInput[BannerFields.COLUMN_TITLE], "f");
|
|
47
|
+
}
|
|
48
|
+
get background() {
|
|
49
|
+
return __classPrivateFieldGet(this, _CampaignBanner_background, "f");
|
|
50
|
+
}
|
|
51
|
+
get button() {
|
|
52
|
+
return __classPrivateFieldGet(this, _CampaignBanner_button, "f");
|
|
53
|
+
}
|
|
54
|
+
get description() {
|
|
55
|
+
return __classPrivateFieldGet(this, _CampaignBanner_description, "f");
|
|
56
|
+
}
|
|
57
|
+
get displayConfiguration() {
|
|
58
|
+
return __classPrivateFieldGet(this, _CampaignBanner_displayConfiguration, "f");
|
|
59
|
+
}
|
|
60
|
+
get media() {
|
|
61
|
+
return __classPrivateFieldGet(this, _CampaignBanner_media, "f");
|
|
62
|
+
}
|
|
63
|
+
get subtitle() {
|
|
64
|
+
return __classPrivateFieldGet(this, _CampaignBanner_subtitle, "f");
|
|
65
|
+
}
|
|
66
|
+
get textColor() {
|
|
67
|
+
return __classPrivateFieldGet(this, _CampaignBanner_textColor, "f");
|
|
68
|
+
}
|
|
69
|
+
get title() {
|
|
70
|
+
return __classPrivateFieldGet(this, _CampaignBanner_title, "f");
|
|
71
|
+
}
|
|
72
|
+
toJSON() {
|
|
73
|
+
return {
|
|
74
|
+
[BannerFields.COLUMN_BACKGROUND]: this.background,
|
|
75
|
+
[BannerFields.COLUMN_BUTTON]: this.button,
|
|
76
|
+
[BannerFields.COLUMN_DESCRIPTION]: this.description,
|
|
77
|
+
[BannerFields.COLUMN_DISPLAY_CONFIGURATION]: this.displayConfiguration,
|
|
78
|
+
[BannerFields.COLUMN_MEDIA]: this.media,
|
|
79
|
+
[BannerFields.COLUMN_SUBTITLE]: this.subtitle,
|
|
80
|
+
[BannerFields.COLUMN_TEXT_COLOR]: this.textColor,
|
|
81
|
+
[BannerFields.COLUMN_TITLE]: this.title,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.CampaignBanner = CampaignBanner;
|
|
86
|
+
_CampaignBanner_background = new WeakMap(), _CampaignBanner_button = new WeakMap(), _CampaignBanner_description = new WeakMap(), _CampaignBanner_displayConfiguration = new WeakMap(), _CampaignBanner_media = new WeakMap(), _CampaignBanner_subtitle = new WeakMap(), _CampaignBanner_textColor = new WeakMap(), _CampaignBanner_title = new WeakMap();
|
|
87
|
+
//# sourceMappingURL=bannerV3.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
import { BannerV2, BannerV2Type } from './banner/banner';
|
|
3
2
|
import { LandingPageV2, LandingPageV2Type } from './landingPage/landingPage';
|
|
4
3
|
import { Rules, RulesType } from '../../campaign/rules/rules';
|
|
5
4
|
import { DownloadUrls } from './banner/downloadUrls';
|
|
6
5
|
import { CampaignPopup, CampaignPopupType } from './popup/popup';
|
|
6
|
+
import { CampaignBanner, CampaignBannerType } from './banner/bannerV3';
|
|
7
|
+
import { BannerV2, BannerV2Type } from './banner/banner';
|
|
7
8
|
export declare enum CampaignV2Fields {
|
|
8
9
|
COLUMN_DOWNLOAD_URLS = "downloadUrls",
|
|
9
10
|
COLUMN_REFERENCE = "reference",
|
|
@@ -18,9 +19,51 @@ export declare enum CampaignV2Fields {
|
|
|
18
19
|
COLUMN_START_DATE = "startDate",
|
|
19
20
|
COLUMN_END_DATE = "endDate",
|
|
20
21
|
COLUMN_BANNER = "banner",
|
|
22
|
+
COLUMN_BANNER_NEW = "campaignBanner",
|
|
21
23
|
COLUMN_POPUP = "campaignPopup",
|
|
22
24
|
COLUMN_LANDING_PAGE = "landingPage"
|
|
23
25
|
}
|
|
26
|
+
export declare enum BootstrapVariants {
|
|
27
|
+
PRIMARY = "primary",
|
|
28
|
+
SECONDARY = "secondary",
|
|
29
|
+
SUCCESS = "success",
|
|
30
|
+
DANGER = "danger",
|
|
31
|
+
WARNING = "warning",
|
|
32
|
+
INFO = "info",
|
|
33
|
+
LIGHT = "light",
|
|
34
|
+
DARK = "dark"
|
|
35
|
+
}
|
|
36
|
+
export declare type CampaignBackground = {
|
|
37
|
+
type: CampaignBackgroundType;
|
|
38
|
+
color1?: string;
|
|
39
|
+
color2?: string;
|
|
40
|
+
uuidImage?: string;
|
|
41
|
+
};
|
|
42
|
+
export declare type CampaignButton = {
|
|
43
|
+
buttonClass: BootstrapVariants;
|
|
44
|
+
buttonIcon?: string;
|
|
45
|
+
linkUrl: string;
|
|
46
|
+
text: string;
|
|
47
|
+
};
|
|
48
|
+
export declare type CampaignMedia = {
|
|
49
|
+
height?: number;
|
|
50
|
+
imageUuid?: string;
|
|
51
|
+
linkUrl?: string;
|
|
52
|
+
type: CampaignMediaType;
|
|
53
|
+
width?: number;
|
|
54
|
+
};
|
|
55
|
+
export declare enum CampaignBackgroundType {
|
|
56
|
+
IMAGE = "IMAGE",
|
|
57
|
+
COLOR = "COLOR"
|
|
58
|
+
}
|
|
59
|
+
export declare enum CampaignMediaType {
|
|
60
|
+
IMAGE = "IMAGE",
|
|
61
|
+
VIDEO = "VIDEO"
|
|
62
|
+
}
|
|
63
|
+
export declare enum CampaignTextColor {
|
|
64
|
+
LIGHT = "LIGHT",
|
|
65
|
+
DARK = "DARK"
|
|
66
|
+
}
|
|
24
67
|
export declare type CampaignV2Type = {
|
|
25
68
|
[CampaignV2Fields.COLUMN_DOWNLOAD_URLS]?: DownloadUrls;
|
|
26
69
|
[CampaignV2Fields.COLUMN_REFERENCE]: string;
|
|
@@ -35,6 +78,7 @@ export declare type CampaignV2Type = {
|
|
|
35
78
|
[CampaignV2Fields.COLUMN_START_DATE]?: string;
|
|
36
79
|
[CampaignV2Fields.COLUMN_END_DATE]?: string;
|
|
37
80
|
[CampaignV2Fields.COLUMN_BANNER]?: BannerV2Type;
|
|
81
|
+
[CampaignV2Fields.COLUMN_BANNER_NEW]?: CampaignBannerType;
|
|
38
82
|
[CampaignV2Fields.COLUMN_POPUP]?: CampaignPopupType;
|
|
39
83
|
[CampaignV2Fields.COLUMN_LANDING_PAGE]?: LandingPageV2Type;
|
|
40
84
|
};
|
|
@@ -53,6 +97,7 @@ export declare class CampaignV2 extends AbstractEntity<CampaignV2Type> {
|
|
|
53
97
|
get startDate(): string | undefined;
|
|
54
98
|
get endDate(): string | undefined;
|
|
55
99
|
get banner(): BannerV2 | undefined;
|
|
100
|
+
get campaignBanner(): CampaignBanner | undefined;
|
|
56
101
|
get campaignPopup(): CampaignPopup | undefined;
|
|
57
102
|
get landingPage(): LandingPageV2 | undefined;
|
|
58
103
|
get status(): string | undefined;
|
|
@@ -10,14 +10,15 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _CampaignV2_downloadUrls, _CampaignV2_reference, _CampaignV2_name, _CampaignV2_category, _CampaignV2_status, _CampaignV2_isActivated, _CampaignV2_createdAt, _CampaignV2_updatedAt, _CampaignV2_deletedAt, _CampaignV2_rules, _CampaignV2_startDate, _CampaignV2_endDate, _CampaignV2_banner, _CampaignV2_campaignPopup, _CampaignV2_landingPage;
|
|
13
|
+
var _CampaignV2_downloadUrls, _CampaignV2_reference, _CampaignV2_name, _CampaignV2_category, _CampaignV2_status, _CampaignV2_isActivated, _CampaignV2_createdAt, _CampaignV2_updatedAt, _CampaignV2_deletedAt, _CampaignV2_rules, _CampaignV2_startDate, _CampaignV2_endDate, _CampaignV2_banner, _CampaignV2_campaignBanner, _CampaignV2_campaignPopup, _CampaignV2_landingPage;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CampaignV2 = exports.CampaignV2Fields = void 0;
|
|
15
|
+
exports.CampaignV2 = exports.CampaignTextColor = exports.CampaignMediaType = exports.CampaignBackgroundType = exports.BootstrapVariants = exports.CampaignV2Fields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
-
const banner_1 = require("./banner/banner");
|
|
18
17
|
const landingPage_1 = require("./landingPage/landingPage");
|
|
19
18
|
const rules_1 = require("../../campaign/rules/rules");
|
|
20
19
|
const popup_1 = require("./popup/popup");
|
|
20
|
+
const bannerV3_1 = require("./banner/bannerV3");
|
|
21
|
+
const banner_1 = require("./banner/banner");
|
|
21
22
|
var CampaignV2Fields;
|
|
22
23
|
(function (CampaignV2Fields) {
|
|
23
24
|
CampaignV2Fields["COLUMN_DOWNLOAD_URLS"] = "downloadUrls";
|
|
@@ -33,9 +34,36 @@ var CampaignV2Fields;
|
|
|
33
34
|
CampaignV2Fields["COLUMN_START_DATE"] = "startDate";
|
|
34
35
|
CampaignV2Fields["COLUMN_END_DATE"] = "endDate";
|
|
35
36
|
CampaignV2Fields["COLUMN_BANNER"] = "banner";
|
|
37
|
+
CampaignV2Fields["COLUMN_BANNER_NEW"] = "campaignBanner";
|
|
36
38
|
CampaignV2Fields["COLUMN_POPUP"] = "campaignPopup";
|
|
37
39
|
CampaignV2Fields["COLUMN_LANDING_PAGE"] = "landingPage";
|
|
38
40
|
})(CampaignV2Fields = exports.CampaignV2Fields || (exports.CampaignV2Fields = {}));
|
|
41
|
+
var BootstrapVariants;
|
|
42
|
+
(function (BootstrapVariants) {
|
|
43
|
+
BootstrapVariants["PRIMARY"] = "primary";
|
|
44
|
+
BootstrapVariants["SECONDARY"] = "secondary";
|
|
45
|
+
BootstrapVariants["SUCCESS"] = "success";
|
|
46
|
+
BootstrapVariants["DANGER"] = "danger";
|
|
47
|
+
BootstrapVariants["WARNING"] = "warning";
|
|
48
|
+
BootstrapVariants["INFO"] = "info";
|
|
49
|
+
BootstrapVariants["LIGHT"] = "light";
|
|
50
|
+
BootstrapVariants["DARK"] = "dark";
|
|
51
|
+
})(BootstrapVariants = exports.BootstrapVariants || (exports.BootstrapVariants = {}));
|
|
52
|
+
var CampaignBackgroundType;
|
|
53
|
+
(function (CampaignBackgroundType) {
|
|
54
|
+
CampaignBackgroundType["IMAGE"] = "IMAGE";
|
|
55
|
+
CampaignBackgroundType["COLOR"] = "COLOR";
|
|
56
|
+
})(CampaignBackgroundType = exports.CampaignBackgroundType || (exports.CampaignBackgroundType = {}));
|
|
57
|
+
var CampaignMediaType;
|
|
58
|
+
(function (CampaignMediaType) {
|
|
59
|
+
CampaignMediaType["IMAGE"] = "IMAGE";
|
|
60
|
+
CampaignMediaType["VIDEO"] = "VIDEO";
|
|
61
|
+
})(CampaignMediaType = exports.CampaignMediaType || (exports.CampaignMediaType = {}));
|
|
62
|
+
var CampaignTextColor;
|
|
63
|
+
(function (CampaignTextColor) {
|
|
64
|
+
CampaignTextColor["LIGHT"] = "LIGHT";
|
|
65
|
+
CampaignTextColor["DARK"] = "DARK";
|
|
66
|
+
})(CampaignTextColor = exports.CampaignTextColor || (exports.CampaignTextColor = {}));
|
|
39
67
|
class CampaignV2 extends abstractEntity_1.AbstractEntity {
|
|
40
68
|
constructor(campaignInput) {
|
|
41
69
|
super(campaignInput);
|
|
@@ -52,6 +80,7 @@ class CampaignV2 extends abstractEntity_1.AbstractEntity {
|
|
|
52
80
|
_CampaignV2_startDate.set(this, void 0);
|
|
53
81
|
_CampaignV2_endDate.set(this, void 0);
|
|
54
82
|
_CampaignV2_banner.set(this, void 0);
|
|
83
|
+
_CampaignV2_campaignBanner.set(this, void 0);
|
|
55
84
|
_CampaignV2_campaignPopup.set(this, void 0);
|
|
56
85
|
_CampaignV2_landingPage.set(this, void 0);
|
|
57
86
|
__classPrivateFieldSet(this, _CampaignV2_downloadUrls, campaignInput[CampaignV2Fields.COLUMN_DOWNLOAD_URLS], "f");
|
|
@@ -70,6 +99,9 @@ class CampaignV2 extends abstractEntity_1.AbstractEntity {
|
|
|
70
99
|
__classPrivateFieldSet(this, _CampaignV2_banner, campaignInput[CampaignV2Fields.COLUMN_BANNER]
|
|
71
100
|
? new banner_1.BannerV2(campaignInput[CampaignV2Fields.COLUMN_BANNER])
|
|
72
101
|
: undefined, "f");
|
|
102
|
+
__classPrivateFieldSet(this, _CampaignV2_campaignBanner, campaignInput[CampaignV2Fields.COLUMN_BANNER_NEW]
|
|
103
|
+
? new bannerV3_1.CampaignBanner(campaignInput[CampaignV2Fields.COLUMN_BANNER_NEW])
|
|
104
|
+
: undefined, "f");
|
|
73
105
|
__classPrivateFieldSet(this, _CampaignV2_campaignPopup, campaignInput[CampaignV2Fields.COLUMN_POPUP]
|
|
74
106
|
? new popup_1.CampaignPopup(campaignInput[CampaignV2Fields.COLUMN_POPUP])
|
|
75
107
|
: undefined, "f");
|
|
@@ -114,6 +146,9 @@ class CampaignV2 extends abstractEntity_1.AbstractEntity {
|
|
|
114
146
|
get banner() {
|
|
115
147
|
return __classPrivateFieldGet(this, _CampaignV2_banner, "f");
|
|
116
148
|
}
|
|
149
|
+
get campaignBanner() {
|
|
150
|
+
return __classPrivateFieldGet(this, _CampaignV2_campaignBanner, "f");
|
|
151
|
+
}
|
|
117
152
|
get campaignPopup() {
|
|
118
153
|
return __classPrivateFieldGet(this, _CampaignV2_campaignPopup, "f");
|
|
119
154
|
}
|
|
@@ -124,7 +159,7 @@ class CampaignV2 extends abstractEntity_1.AbstractEntity {
|
|
|
124
159
|
return __classPrivateFieldGet(this, _CampaignV2_status, "f");
|
|
125
160
|
}
|
|
126
161
|
toJSON() {
|
|
127
|
-
var _a, _b, _c, _d;
|
|
162
|
+
var _a, _b, _c, _d, _e;
|
|
128
163
|
return {
|
|
129
164
|
[CampaignV2Fields.COLUMN_DOWNLOAD_URLS]: this.downloadUrls,
|
|
130
165
|
[CampaignV2Fields.COLUMN_REFERENCE]: this.reference,
|
|
@@ -138,12 +173,13 @@ class CampaignV2 extends abstractEntity_1.AbstractEntity {
|
|
|
138
173
|
[CampaignV2Fields.COLUMN_START_DATE]: this.startDate,
|
|
139
174
|
[CampaignV2Fields.COLUMN_END_DATE]: this.endDate,
|
|
140
175
|
[CampaignV2Fields.COLUMN_BANNER]: (_b = this.banner) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
141
|
-
[CampaignV2Fields.
|
|
142
|
-
[CampaignV2Fields.
|
|
176
|
+
[CampaignV2Fields.COLUMN_BANNER_NEW]: (_c = this.campaignBanner) === null || _c === void 0 ? void 0 : _c.toJSON(),
|
|
177
|
+
[CampaignV2Fields.COLUMN_LANDING_PAGE]: (_d = this.landingPage) === null || _d === void 0 ? void 0 : _d.toJSON(),
|
|
178
|
+
[CampaignV2Fields.COLUMN_POPUP]: (_e = this.campaignPopup) === null || _e === void 0 ? void 0 : _e.toJSON(),
|
|
143
179
|
[CampaignV2Fields.COLUMN_STATUS]: this.status,
|
|
144
180
|
};
|
|
145
181
|
}
|
|
146
182
|
}
|
|
147
183
|
exports.CampaignV2 = CampaignV2;
|
|
148
|
-
_CampaignV2_downloadUrls = new WeakMap(), _CampaignV2_reference = new WeakMap(), _CampaignV2_name = new WeakMap(), _CampaignV2_category = new WeakMap(), _CampaignV2_status = new WeakMap(), _CampaignV2_isActivated = new WeakMap(), _CampaignV2_createdAt = new WeakMap(), _CampaignV2_updatedAt = new WeakMap(), _CampaignV2_deletedAt = new WeakMap(), _CampaignV2_rules = new WeakMap(), _CampaignV2_startDate = new WeakMap(), _CampaignV2_endDate = new WeakMap(), _CampaignV2_banner = new WeakMap(), _CampaignV2_campaignPopup = new WeakMap(), _CampaignV2_landingPage = new WeakMap();
|
|
184
|
+
_CampaignV2_downloadUrls = new WeakMap(), _CampaignV2_reference = new WeakMap(), _CampaignV2_name = new WeakMap(), _CampaignV2_category = new WeakMap(), _CampaignV2_status = new WeakMap(), _CampaignV2_isActivated = new WeakMap(), _CampaignV2_createdAt = new WeakMap(), _CampaignV2_updatedAt = new WeakMap(), _CampaignV2_deletedAt = new WeakMap(), _CampaignV2_rules = new WeakMap(), _CampaignV2_startDate = new WeakMap(), _CampaignV2_endDate = new WeakMap(), _CampaignV2_banner = new WeakMap(), _CampaignV2_campaignBanner = new WeakMap(), _CampaignV2_campaignPopup = new WeakMap(), _CampaignV2_landingPage = new WeakMap();
|
|
149
185
|
//# sourceMappingURL=campaign.js.map
|
|
@@ -1,51 +1,14 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../../../abstractEntity';
|
|
2
|
+
import { CampaignBackground, CampaignButton, CampaignMedia, CampaignTextColor } from '../campaign';
|
|
2
3
|
export declare type CampaignPopupType = {
|
|
3
|
-
background:
|
|
4
|
-
button:
|
|
4
|
+
background: CampaignBackground;
|
|
5
|
+
button: CampaignButton;
|
|
5
6
|
description: string;
|
|
6
7
|
displayConfiguration: number;
|
|
7
|
-
media:
|
|
8
|
-
textColor:
|
|
8
|
+
media: CampaignMedia;
|
|
9
|
+
textColor: CampaignTextColor;
|
|
9
10
|
title: string;
|
|
10
11
|
};
|
|
11
|
-
export declare type PopupBackground = {
|
|
12
|
-
type: PopupBackgroundType;
|
|
13
|
-
color1?: string;
|
|
14
|
-
color2?: string;
|
|
15
|
-
uuidImage?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type PopupButton = {
|
|
18
|
-
buttonClass: BootstrapVariants;
|
|
19
|
-
linkUrl: string;
|
|
20
|
-
text: string;
|
|
21
|
-
};
|
|
22
|
-
export declare type PopupMedia = {
|
|
23
|
-
imageUuid?: string;
|
|
24
|
-
linkUrl?: string;
|
|
25
|
-
type: PopupMediaType;
|
|
26
|
-
};
|
|
27
|
-
export declare enum PopupBackgroundType {
|
|
28
|
-
IMAGE = "IMAGE",
|
|
29
|
-
COLOR = "COLOR"
|
|
30
|
-
}
|
|
31
|
-
export declare enum BootstrapVariants {
|
|
32
|
-
PRIMARY = "primary",
|
|
33
|
-
SECONDARY = "secondary",
|
|
34
|
-
SUCCESS = "success",
|
|
35
|
-
DANGER = "danger",
|
|
36
|
-
WARNING = "warning",
|
|
37
|
-
INFO = "info",
|
|
38
|
-
LIGHT = "light",
|
|
39
|
-
DARK = "dark"
|
|
40
|
-
}
|
|
41
|
-
export declare enum PopupMediaType {
|
|
42
|
-
IMAGE = "IMAGE",
|
|
43
|
-
VIDEO = "VIDEO"
|
|
44
|
-
}
|
|
45
|
-
export declare enum PopupTextColor {
|
|
46
|
-
LIGHT = "LIGHT",
|
|
47
|
-
DARK = "DARK"
|
|
48
|
-
}
|
|
49
12
|
export declare enum PopupFields {
|
|
50
13
|
COLUMN_BACKGROUND = "background",
|
|
51
14
|
COLUMN_BUTTON = "button",
|
|
@@ -58,12 +21,12 @@ export declare enum PopupFields {
|
|
|
58
21
|
export declare class CampaignPopup extends AbstractEntity<CampaignPopupType> {
|
|
59
22
|
#private;
|
|
60
23
|
constructor(popupInput: CampaignPopupType);
|
|
61
|
-
get background():
|
|
62
|
-
get button():
|
|
24
|
+
get background(): CampaignBackground;
|
|
25
|
+
get button(): CampaignButton;
|
|
63
26
|
get description(): string;
|
|
64
27
|
get displayConfiguration(): number;
|
|
65
|
-
get media():
|
|
66
|
-
get textColor():
|
|
28
|
+
get media(): CampaignMedia;
|
|
29
|
+
get textColor(): CampaignTextColor;
|
|
67
30
|
get title(): string;
|
|
68
31
|
toJSON(): CampaignPopupType;
|
|
69
32
|
}
|
|
@@ -12,34 +12,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
};
|
|
13
13
|
var _CampaignPopup_background, _CampaignPopup_button, _CampaignPopup_description, _CampaignPopup_displayConfiguration, _CampaignPopup_media, _CampaignPopup_textColor, _CampaignPopup_title;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CampaignPopup = exports.PopupFields =
|
|
15
|
+
exports.CampaignPopup = exports.PopupFields = void 0;
|
|
16
16
|
const abstractEntity_1 = require("../../../../../abstractEntity");
|
|
17
|
-
var PopupBackgroundType;
|
|
18
|
-
(function (PopupBackgroundType) {
|
|
19
|
-
PopupBackgroundType["IMAGE"] = "IMAGE";
|
|
20
|
-
PopupBackgroundType["COLOR"] = "COLOR";
|
|
21
|
-
})(PopupBackgroundType = exports.PopupBackgroundType || (exports.PopupBackgroundType = {}));
|
|
22
|
-
var BootstrapVariants;
|
|
23
|
-
(function (BootstrapVariants) {
|
|
24
|
-
BootstrapVariants["PRIMARY"] = "primary";
|
|
25
|
-
BootstrapVariants["SECONDARY"] = "secondary";
|
|
26
|
-
BootstrapVariants["SUCCESS"] = "success";
|
|
27
|
-
BootstrapVariants["DANGER"] = "danger";
|
|
28
|
-
BootstrapVariants["WARNING"] = "warning";
|
|
29
|
-
BootstrapVariants["INFO"] = "info";
|
|
30
|
-
BootstrapVariants["LIGHT"] = "light";
|
|
31
|
-
BootstrapVariants["DARK"] = "dark";
|
|
32
|
-
})(BootstrapVariants = exports.BootstrapVariants || (exports.BootstrapVariants = {}));
|
|
33
|
-
var PopupMediaType;
|
|
34
|
-
(function (PopupMediaType) {
|
|
35
|
-
PopupMediaType["IMAGE"] = "IMAGE";
|
|
36
|
-
PopupMediaType["VIDEO"] = "VIDEO";
|
|
37
|
-
})(PopupMediaType = exports.PopupMediaType || (exports.PopupMediaType = {}));
|
|
38
|
-
var PopupTextColor;
|
|
39
|
-
(function (PopupTextColor) {
|
|
40
|
-
PopupTextColor["LIGHT"] = "LIGHT";
|
|
41
|
-
PopupTextColor["DARK"] = "DARK";
|
|
42
|
-
})(PopupTextColor = exports.PopupTextColor || (exports.PopupTextColor = {}));
|
|
43
17
|
var PopupFields;
|
|
44
18
|
(function (PopupFields) {
|
|
45
19
|
PopupFields["COLUMN_BACKGROUND"] = "background";
|
|
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./monitoringClient"), exports);
|
|
18
|
-
__exportStar(require("./entities/alert/alert"), exports);
|
|
19
|
-
__exportStar(require("./entities/alert/createAlert"), exports);
|
|
20
|
-
__exportStar(require("./entities/alert/listAlert"), exports);
|
|
21
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { AbstractRestfulClient
|
|
2
|
-
import { Alert, AlertFields, AlertFormatEnum, AlertFrequencyEnum } from './entities/alert/alert';
|
|
3
|
-
import { CreateAlert } from './entities/alert/createAlert';
|
|
4
|
-
import { GetResult } from '../getResult';
|
|
5
|
-
import { AlertList } from './entities/alert/listAlert';
|
|
6
|
-
import { AlertFiltersType } from './entities/alert/filters/alertFilters';
|
|
1
|
+
import { AbstractRestfulClient } from '../abstractRestfulClient';
|
|
7
2
|
export declare type ReportMonitoringType = {
|
|
8
3
|
body: {
|
|
9
4
|
[keys in string]: string | number | null;
|
|
@@ -12,15 +7,6 @@ export declare type ReportMonitoringType = {
|
|
|
12
7
|
userAgent: string;
|
|
13
8
|
type: string;
|
|
14
9
|
};
|
|
15
|
-
export declare type CreateAlertPayload = {
|
|
16
|
-
[AlertFields.COLUMN_CATEGORY_ID]: number;
|
|
17
|
-
[AlertFields.COLUMN_NAME]: string;
|
|
18
|
-
[AlertFields.COLUMN_FREQUENCY]: AlertFrequencyEnum;
|
|
19
|
-
[AlertFields.COLUMN_RECIPIENT]: string;
|
|
20
|
-
[AlertFields.COLUMN_FORMAT]: AlertFormatEnum;
|
|
21
|
-
[AlertFields.COLUMN_FILTERS]: AlertFiltersType;
|
|
22
|
-
};
|
|
23
|
-
export declare type UpdateAlertPayload = Partial<Omit<CreateAlertPayload, AlertFields.COLUMN_CATEGORY_ID>>;
|
|
24
10
|
export declare class MonitoringClient extends AbstractRestfulClient {
|
|
25
11
|
/**
|
|
26
12
|
* The base path of the API
|
|
@@ -30,14 +16,5 @@ export declare class MonitoringClient extends AbstractRestfulClient {
|
|
|
30
16
|
* The path of the report endpoint
|
|
31
17
|
*/
|
|
32
18
|
private REPORT_PATH;
|
|
33
|
-
/**
|
|
34
|
-
* The path of the alert endpoint
|
|
35
|
-
*/
|
|
36
|
-
private ALERT_PATH;
|
|
37
19
|
sendReport(report: ReportMonitoringType): Promise<void>;
|
|
38
|
-
createAlert(payload: CreateAlertPayload): Promise<GetResult<CreateAlert>>;
|
|
39
|
-
listAlerts(parameters?: Parameters): Promise<GetResult<AlertList>>;
|
|
40
|
-
getAlert(alertId: number): Promise<GetResult<Alert>>;
|
|
41
|
-
updateAlert(alertId: number, payload: UpdateAlertPayload): Promise<GetResult<Alert>>;
|
|
42
|
-
deleteAlert(alertId: number): Promise<void>;
|
|
43
20
|
}
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MonitoringClient = void 0;
|
|
4
4
|
const abstractRestfulClient_1 = require("../abstractRestfulClient");
|
|
5
|
-
const alert_1 = require("./entities/alert/alert");
|
|
6
|
-
const createAlert_1 = require("./entities/alert/createAlert");
|
|
7
|
-
const getResult_1 = require("../getResult");
|
|
8
|
-
const listAlert_1 = require("./entities/alert/listAlert");
|
|
9
5
|
class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
10
6
|
constructor() {
|
|
11
7
|
super(...arguments);
|
|
@@ -17,35 +13,11 @@ class MonitoringClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
17
13
|
* The path of the report endpoint
|
|
18
14
|
*/
|
|
19
15
|
this.REPORT_PATH = '/report';
|
|
20
|
-
/**
|
|
21
|
-
* The path of the alert endpoint
|
|
22
|
-
*/
|
|
23
|
-
this.ALERT_PATH = '/alerts';
|
|
24
16
|
}
|
|
25
17
|
sendReport(report) {
|
|
26
18
|
this.path = this.REPORT_PATH;
|
|
27
19
|
return this.post(report);
|
|
28
20
|
}
|
|
29
|
-
async createAlert(payload) {
|
|
30
|
-
this.path = this.ALERT_PATH;
|
|
31
|
-
return new getResult_1.GetResult(createAlert_1.CreateAlert, await this.post(payload));
|
|
32
|
-
}
|
|
33
|
-
async listAlerts(parameters = {}) {
|
|
34
|
-
this.path = this.ALERT_PATH;
|
|
35
|
-
return new getResult_1.GetResult(listAlert_1.AlertList, await this.get(parameters));
|
|
36
|
-
}
|
|
37
|
-
async getAlert(alertId) {
|
|
38
|
-
this.path = this.ALERT_PATH + `/${alertId}`;
|
|
39
|
-
return new getResult_1.GetResult(alert_1.Alert, await this.get());
|
|
40
|
-
}
|
|
41
|
-
async updateAlert(alertId, payload) {
|
|
42
|
-
this.path = this.ALERT_PATH + `/${alertId}`;
|
|
43
|
-
return new getResult_1.GetResult(alert_1.Alert, await this.patch(payload));
|
|
44
|
-
}
|
|
45
|
-
async deleteAlert(alertId) {
|
|
46
|
-
this.path = this.ALERT_PATH + `/${alertId}`;
|
|
47
|
-
return this.delete();
|
|
48
|
-
}
|
|
49
21
|
}
|
|
50
22
|
exports.MonitoringClient = MonitoringClient;
|
|
51
23
|
//# sourceMappingURL=monitoringClient.js.map
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
import { AlertFilters, AlertFiltersType } from './filters/alertFilters';
|
|
3
|
-
export declare enum AlertFrequencyEnum {
|
|
4
|
-
DAILY = "daily",
|
|
5
|
-
MONTHLY = "monthly",
|
|
6
|
-
WEEKLY = "weekly"
|
|
7
|
-
}
|
|
8
|
-
export declare enum AlertFormatEnum {
|
|
9
|
-
CSV = "csv",
|
|
10
|
-
XLSX = "xlsx"
|
|
11
|
-
}
|
|
12
|
-
export declare enum AlertFields {
|
|
13
|
-
COLUMN_ID = "id",
|
|
14
|
-
COLUMN_CATEGORY_ID = "categoryId",
|
|
15
|
-
COLUMN_NAME = "name",
|
|
16
|
-
COLUMN_FREQUENCY = "frequency",
|
|
17
|
-
COLUMN_RECIPIENT = "recipient",
|
|
18
|
-
COLUMN_FORMAT = "format",
|
|
19
|
-
COLUMN_FILTERS = "filters"
|
|
20
|
-
}
|
|
21
|
-
export declare type AlertType = {
|
|
22
|
-
[AlertFields.COLUMN_ID]: number;
|
|
23
|
-
[AlertFields.COLUMN_CATEGORY_ID]: number;
|
|
24
|
-
[AlertFields.COLUMN_NAME]: string;
|
|
25
|
-
[AlertFields.COLUMN_FREQUENCY]: AlertFrequencyEnum;
|
|
26
|
-
[AlertFields.COLUMN_RECIPIENT]: string;
|
|
27
|
-
[AlertFields.COLUMN_FORMAT]: AlertFormatEnum;
|
|
28
|
-
[AlertFields.COLUMN_FILTERS]: AlertFiltersType;
|
|
29
|
-
};
|
|
30
|
-
export declare class Alert extends AbstractEntity<AlertType> {
|
|
31
|
-
#private;
|
|
32
|
-
constructor(data: AlertType);
|
|
33
|
-
get id(): number;
|
|
34
|
-
get categoryId(): number;
|
|
35
|
-
get name(): string;
|
|
36
|
-
get frequency(): AlertFrequencyEnum;
|
|
37
|
-
get recipient(): string;
|
|
38
|
-
get format(): AlertFormatEnum;
|
|
39
|
-
get filters(): AlertFilters;
|
|
40
|
-
toJSON(): AlertType;
|
|
41
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _Alert_id, _Alert_categoryId, _Alert_name, _Alert_frequency, _Alert_recipient, _Alert_format, _Alert_filters;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.Alert = exports.AlertFields = exports.AlertFormatEnum = exports.AlertFrequencyEnum = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
const alertFilters_1 = require("./filters/alertFilters");
|
|
18
|
-
var AlertFrequencyEnum;
|
|
19
|
-
(function (AlertFrequencyEnum) {
|
|
20
|
-
AlertFrequencyEnum["DAILY"] = "daily";
|
|
21
|
-
AlertFrequencyEnum["MONTHLY"] = "monthly";
|
|
22
|
-
AlertFrequencyEnum["WEEKLY"] = "weekly";
|
|
23
|
-
})(AlertFrequencyEnum = exports.AlertFrequencyEnum || (exports.AlertFrequencyEnum = {}));
|
|
24
|
-
var AlertFormatEnum;
|
|
25
|
-
(function (AlertFormatEnum) {
|
|
26
|
-
AlertFormatEnum["CSV"] = "csv";
|
|
27
|
-
AlertFormatEnum["XLSX"] = "xlsx";
|
|
28
|
-
})(AlertFormatEnum = exports.AlertFormatEnum || (exports.AlertFormatEnum = {}));
|
|
29
|
-
var AlertFields;
|
|
30
|
-
(function (AlertFields) {
|
|
31
|
-
AlertFields["COLUMN_ID"] = "id";
|
|
32
|
-
AlertFields["COLUMN_CATEGORY_ID"] = "categoryId";
|
|
33
|
-
AlertFields["COLUMN_NAME"] = "name";
|
|
34
|
-
AlertFields["COLUMN_FREQUENCY"] = "frequency";
|
|
35
|
-
AlertFields["COLUMN_RECIPIENT"] = "recipient";
|
|
36
|
-
AlertFields["COLUMN_FORMAT"] = "format";
|
|
37
|
-
AlertFields["COLUMN_FILTERS"] = "filters";
|
|
38
|
-
})(AlertFields = exports.AlertFields || (exports.AlertFields = {}));
|
|
39
|
-
class Alert extends abstractEntity_1.AbstractEntity {
|
|
40
|
-
constructor(data) {
|
|
41
|
-
super(data);
|
|
42
|
-
_Alert_id.set(this, void 0);
|
|
43
|
-
_Alert_categoryId.set(this, void 0);
|
|
44
|
-
_Alert_name.set(this, void 0);
|
|
45
|
-
_Alert_frequency.set(this, void 0);
|
|
46
|
-
_Alert_recipient.set(this, void 0);
|
|
47
|
-
_Alert_format.set(this, void 0);
|
|
48
|
-
_Alert_filters.set(this, void 0);
|
|
49
|
-
__classPrivateFieldSet(this, _Alert_id, data.id, "f");
|
|
50
|
-
__classPrivateFieldSet(this, _Alert_categoryId, data.categoryId, "f");
|
|
51
|
-
__classPrivateFieldSet(this, _Alert_name, data.name, "f");
|
|
52
|
-
__classPrivateFieldSet(this, _Alert_frequency, data.frequency, "f");
|
|
53
|
-
__classPrivateFieldSet(this, _Alert_recipient, data.recipient, "f");
|
|
54
|
-
__classPrivateFieldSet(this, _Alert_format, data.format, "f");
|
|
55
|
-
__classPrivateFieldSet(this, _Alert_filters, new alertFilters_1.AlertFilters(data[AlertFields.COLUMN_FILTERS]), "f");
|
|
56
|
-
}
|
|
57
|
-
get id() {
|
|
58
|
-
return __classPrivateFieldGet(this, _Alert_id, "f");
|
|
59
|
-
}
|
|
60
|
-
get categoryId() {
|
|
61
|
-
return __classPrivateFieldGet(this, _Alert_categoryId, "f");
|
|
62
|
-
}
|
|
63
|
-
get name() {
|
|
64
|
-
return __classPrivateFieldGet(this, _Alert_name, "f");
|
|
65
|
-
}
|
|
66
|
-
get frequency() {
|
|
67
|
-
return __classPrivateFieldGet(this, _Alert_frequency, "f");
|
|
68
|
-
}
|
|
69
|
-
get recipient() {
|
|
70
|
-
return __classPrivateFieldGet(this, _Alert_recipient, "f");
|
|
71
|
-
}
|
|
72
|
-
get format() {
|
|
73
|
-
return __classPrivateFieldGet(this, _Alert_format, "f");
|
|
74
|
-
}
|
|
75
|
-
get filters() {
|
|
76
|
-
return __classPrivateFieldGet(this, _Alert_filters, "f");
|
|
77
|
-
}
|
|
78
|
-
toJSON() {
|
|
79
|
-
return {
|
|
80
|
-
[AlertFields.COLUMN_ID]: this.id,
|
|
81
|
-
[AlertFields.COLUMN_CATEGORY_ID]: this.categoryId,
|
|
82
|
-
[AlertFields.COLUMN_NAME]: this.name,
|
|
83
|
-
[AlertFields.COLUMN_FREQUENCY]: this.frequency,
|
|
84
|
-
[AlertFields.COLUMN_RECIPIENT]: this.recipient,
|
|
85
|
-
[AlertFields.COLUMN_FORMAT]: this.format,
|
|
86
|
-
[AlertFields.COLUMN_FILTERS]: this.filters.toJSON(),
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.Alert = Alert;
|
|
91
|
-
_Alert_id = new WeakMap(), _Alert_categoryId = new WeakMap(), _Alert_name = new WeakMap(), _Alert_frequency = new WeakMap(), _Alert_recipient = new WeakMap(), _Alert_format = new WeakMap(), _Alert_filters = new WeakMap();
|
|
92
|
-
//# sourceMappingURL=alert.js.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
export declare enum CreateAlertFields {
|
|
3
|
-
COLUMN_ALERT_ID = "alertId"
|
|
4
|
-
}
|
|
5
|
-
export declare type CreateAlertType = {
|
|
6
|
-
[CreateAlertFields.COLUMN_ALERT_ID]: number;
|
|
7
|
-
};
|
|
8
|
-
export declare class CreateAlert extends AbstractEntity<CreateAlertType> {
|
|
9
|
-
#private;
|
|
10
|
-
constructor(data: CreateAlertType);
|
|
11
|
-
get alertId(): number;
|
|
12
|
-
toJSON(): CreateAlertType;
|
|
13
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _CreateAlert_alertId;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CreateAlert = exports.CreateAlertFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
var CreateAlertFields;
|
|
18
|
-
(function (CreateAlertFields) {
|
|
19
|
-
CreateAlertFields["COLUMN_ALERT_ID"] = "alertId";
|
|
20
|
-
})(CreateAlertFields = exports.CreateAlertFields || (exports.CreateAlertFields = {}));
|
|
21
|
-
class CreateAlert extends abstractEntity_1.AbstractEntity {
|
|
22
|
-
constructor(data) {
|
|
23
|
-
super(data);
|
|
24
|
-
_CreateAlert_alertId.set(this, void 0);
|
|
25
|
-
__classPrivateFieldSet(this, _CreateAlert_alertId, data.alertId, "f");
|
|
26
|
-
}
|
|
27
|
-
get alertId() {
|
|
28
|
-
return __classPrivateFieldGet(this, _CreateAlert_alertId, "f");
|
|
29
|
-
}
|
|
30
|
-
toJSON() {
|
|
31
|
-
return {
|
|
32
|
-
[CreateAlertFields.COLUMN_ALERT_ID]: this.alertId,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.CreateAlert = CreateAlert;
|
|
37
|
-
_CreateAlert_alertId = new WeakMap();
|
|
38
|
-
//# sourceMappingURL=createAlert.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
import { RenewalFilters, RenewalFiltersType } from './renewalFilters';
|
|
3
|
-
export declare enum AlertFiltersFields {
|
|
4
|
-
COLUMN_RENEWAL = "renewal"
|
|
5
|
-
}
|
|
6
|
-
export declare type AlertFiltersType = {
|
|
7
|
-
[AlertFiltersFields.COLUMN_RENEWAL]?: RenewalFiltersType;
|
|
8
|
-
};
|
|
9
|
-
export declare class AlertFilters extends AbstractEntity<AlertFiltersType> {
|
|
10
|
-
#private;
|
|
11
|
-
constructor(data: AlertFiltersType);
|
|
12
|
-
get renewal(): RenewalFilters | undefined;
|
|
13
|
-
toJSON(): AlertFiltersType;
|
|
14
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _AlertFilters_renewal;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AlertFilters = exports.AlertFiltersFields = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
-
const renewalFilters_1 = require("./renewalFilters");
|
|
18
|
-
var AlertFiltersFields;
|
|
19
|
-
(function (AlertFiltersFields) {
|
|
20
|
-
AlertFiltersFields["COLUMN_RENEWAL"] = "renewal";
|
|
21
|
-
})(AlertFiltersFields = exports.AlertFiltersFields || (exports.AlertFiltersFields = {}));
|
|
22
|
-
class AlertFilters extends abstractEntity_1.AbstractEntity {
|
|
23
|
-
constructor(data) {
|
|
24
|
-
super(data);
|
|
25
|
-
_AlertFilters_renewal.set(this, void 0);
|
|
26
|
-
__classPrivateFieldSet(this, _AlertFilters_renewal, data[AlertFiltersFields.COLUMN_RENEWAL]
|
|
27
|
-
? new renewalFilters_1.RenewalFilters(data[AlertFiltersFields.COLUMN_RENEWAL])
|
|
28
|
-
: undefined, "f");
|
|
29
|
-
}
|
|
30
|
-
get renewal() {
|
|
31
|
-
return __classPrivateFieldGet(this, _AlertFilters_renewal, "f");
|
|
32
|
-
}
|
|
33
|
-
toJSON() {
|
|
34
|
-
var _a;
|
|
35
|
-
return {
|
|
36
|
-
[AlertFiltersFields.COLUMN_RENEWAL]: (_a = this.renewal) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.AlertFilters = AlertFilters;
|
|
41
|
-
_AlertFilters_renewal = new WeakMap();
|
|
42
|
-
//# sourceMappingURL=alertFilters.js.map
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../../abstractEntity';
|
|
2
|
-
export declare enum RenewalAlertWhenEnum {
|
|
3
|
-
END_OF_MONTH = "end_of_month",
|
|
4
|
-
IN_TWO_MONTH = "two_months",
|
|
5
|
-
IN_A_YEAR = "one_year",
|
|
6
|
-
EXPIRED = "expired"
|
|
7
|
-
}
|
|
8
|
-
export declare enum RenewalAlertClassificationEnum {
|
|
9
|
-
IAAS = "iaas",
|
|
10
|
-
SAAS = "saas",
|
|
11
|
-
PSW = "psw",
|
|
12
|
-
FTSL = "ftsl"
|
|
13
|
-
}
|
|
14
|
-
export declare enum RenewalFiltersFields {
|
|
15
|
-
COLUMN_END_CUSTOMERS = "endCustomers",
|
|
16
|
-
COLUMN_VENDOR = "vendor",
|
|
17
|
-
COLUMN_WHEN = "when",
|
|
18
|
-
COLUMN_CLASSIFICATION = "classification",
|
|
19
|
-
COLUMN_ONLY_AUTO_RENEWAL = "onlyAutoRenewal",
|
|
20
|
-
COLUMN_ONLY_PRICE_CHANGE = "onlyPriceChange"
|
|
21
|
-
}
|
|
22
|
-
export declare type RenewalFiltersType = {
|
|
23
|
-
[RenewalFiltersFields.COLUMN_END_CUSTOMERS]?: string[];
|
|
24
|
-
[RenewalFiltersFields.COLUMN_VENDOR]?: string;
|
|
25
|
-
[RenewalFiltersFields.COLUMN_WHEN]?: RenewalAlertWhenEnum;
|
|
26
|
-
[RenewalFiltersFields.COLUMN_CLASSIFICATION]?: RenewalAlertClassificationEnum;
|
|
27
|
-
[RenewalFiltersFields.COLUMN_ONLY_AUTO_RENEWAL]?: boolean;
|
|
28
|
-
[RenewalFiltersFields.COLUMN_ONLY_PRICE_CHANGE]?: boolean;
|
|
29
|
-
};
|
|
30
|
-
export declare class RenewalFilters extends AbstractEntity<RenewalFiltersType> {
|
|
31
|
-
#private;
|
|
32
|
-
constructor(data: RenewalFiltersType);
|
|
33
|
-
get endCustomers(): string[] | undefined;
|
|
34
|
-
get vendor(): string | undefined;
|
|
35
|
-
get when(): RenewalAlertWhenEnum | undefined;
|
|
36
|
-
get classification(): RenewalAlertClassificationEnum | undefined;
|
|
37
|
-
get onlyAutoRenewal(): boolean | undefined;
|
|
38
|
-
get onlyPriceChange(): boolean | undefined;
|
|
39
|
-
toJSON(): RenewalFiltersType;
|
|
40
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _RenewalFilters_endCustomers, _RenewalFilters_vendor, _RenewalFilters_when, _RenewalFilters_classification, _RenewalFilters_onlyAutoRenewal, _RenewalFilters_onlyPriceChange;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.RenewalFilters = exports.RenewalFiltersFields = exports.RenewalAlertClassificationEnum = exports.RenewalAlertWhenEnum = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../../abstractEntity");
|
|
17
|
-
var RenewalAlertWhenEnum;
|
|
18
|
-
(function (RenewalAlertWhenEnum) {
|
|
19
|
-
RenewalAlertWhenEnum["END_OF_MONTH"] = "end_of_month";
|
|
20
|
-
RenewalAlertWhenEnum["IN_TWO_MONTH"] = "two_months";
|
|
21
|
-
RenewalAlertWhenEnum["IN_A_YEAR"] = "one_year";
|
|
22
|
-
RenewalAlertWhenEnum["EXPIRED"] = "expired";
|
|
23
|
-
})(RenewalAlertWhenEnum = exports.RenewalAlertWhenEnum || (exports.RenewalAlertWhenEnum = {}));
|
|
24
|
-
var RenewalAlertClassificationEnum;
|
|
25
|
-
(function (RenewalAlertClassificationEnum) {
|
|
26
|
-
RenewalAlertClassificationEnum["IAAS"] = "iaas";
|
|
27
|
-
RenewalAlertClassificationEnum["SAAS"] = "saas";
|
|
28
|
-
RenewalAlertClassificationEnum["PSW"] = "psw";
|
|
29
|
-
RenewalAlertClassificationEnum["FTSL"] = "ftsl";
|
|
30
|
-
})(RenewalAlertClassificationEnum = exports.RenewalAlertClassificationEnum || (exports.RenewalAlertClassificationEnum = {}));
|
|
31
|
-
var RenewalFiltersFields;
|
|
32
|
-
(function (RenewalFiltersFields) {
|
|
33
|
-
RenewalFiltersFields["COLUMN_END_CUSTOMERS"] = "endCustomers";
|
|
34
|
-
RenewalFiltersFields["COLUMN_VENDOR"] = "vendor";
|
|
35
|
-
RenewalFiltersFields["COLUMN_WHEN"] = "when";
|
|
36
|
-
RenewalFiltersFields["COLUMN_CLASSIFICATION"] = "classification";
|
|
37
|
-
RenewalFiltersFields["COLUMN_ONLY_AUTO_RENEWAL"] = "onlyAutoRenewal";
|
|
38
|
-
RenewalFiltersFields["COLUMN_ONLY_PRICE_CHANGE"] = "onlyPriceChange";
|
|
39
|
-
})(RenewalFiltersFields = exports.RenewalFiltersFields || (exports.RenewalFiltersFields = {}));
|
|
40
|
-
class RenewalFilters extends abstractEntity_1.AbstractEntity {
|
|
41
|
-
constructor(data) {
|
|
42
|
-
super(data);
|
|
43
|
-
_RenewalFilters_endCustomers.set(this, void 0);
|
|
44
|
-
_RenewalFilters_vendor.set(this, void 0);
|
|
45
|
-
_RenewalFilters_when.set(this, void 0);
|
|
46
|
-
_RenewalFilters_classification.set(this, void 0);
|
|
47
|
-
_RenewalFilters_onlyAutoRenewal.set(this, void 0);
|
|
48
|
-
_RenewalFilters_onlyPriceChange.set(this, void 0);
|
|
49
|
-
__classPrivateFieldSet(this, _RenewalFilters_endCustomers, data[RenewalFiltersFields.COLUMN_END_CUSTOMERS], "f");
|
|
50
|
-
__classPrivateFieldSet(this, _RenewalFilters_vendor, data[RenewalFiltersFields.COLUMN_VENDOR], "f");
|
|
51
|
-
__classPrivateFieldSet(this, _RenewalFilters_when, data[RenewalFiltersFields.COLUMN_WHEN], "f");
|
|
52
|
-
__classPrivateFieldSet(this, _RenewalFilters_classification, data[RenewalFiltersFields.COLUMN_CLASSIFICATION], "f");
|
|
53
|
-
__classPrivateFieldSet(this, _RenewalFilters_onlyAutoRenewal, data[RenewalFiltersFields.COLUMN_ONLY_AUTO_RENEWAL], "f");
|
|
54
|
-
__classPrivateFieldSet(this, _RenewalFilters_onlyPriceChange, data[RenewalFiltersFields.COLUMN_ONLY_PRICE_CHANGE], "f");
|
|
55
|
-
}
|
|
56
|
-
get endCustomers() {
|
|
57
|
-
return __classPrivateFieldGet(this, _RenewalFilters_endCustomers, "f");
|
|
58
|
-
}
|
|
59
|
-
get vendor() {
|
|
60
|
-
return __classPrivateFieldGet(this, _RenewalFilters_vendor, "f");
|
|
61
|
-
}
|
|
62
|
-
get when() {
|
|
63
|
-
return __classPrivateFieldGet(this, _RenewalFilters_when, "f");
|
|
64
|
-
}
|
|
65
|
-
get classification() {
|
|
66
|
-
return __classPrivateFieldGet(this, _RenewalFilters_classification, "f");
|
|
67
|
-
}
|
|
68
|
-
get onlyAutoRenewal() {
|
|
69
|
-
return __classPrivateFieldGet(this, _RenewalFilters_onlyAutoRenewal, "f");
|
|
70
|
-
}
|
|
71
|
-
get onlyPriceChange() {
|
|
72
|
-
return __classPrivateFieldGet(this, _RenewalFilters_onlyPriceChange, "f");
|
|
73
|
-
}
|
|
74
|
-
toJSON() {
|
|
75
|
-
return {
|
|
76
|
-
[RenewalFiltersFields.COLUMN_END_CUSTOMERS]: this.endCustomers,
|
|
77
|
-
[RenewalFiltersFields.COLUMN_VENDOR]: this.vendor,
|
|
78
|
-
[RenewalFiltersFields.COLUMN_WHEN]: this.when,
|
|
79
|
-
[RenewalFiltersFields.COLUMN_CLASSIFICATION]: this.classification,
|
|
80
|
-
[RenewalFiltersFields.COLUMN_ONLY_AUTO_RENEWAL]: this.onlyAutoRenewal,
|
|
81
|
-
[RenewalFiltersFields.COLUMN_ONLY_PRICE_CHANGE]: this.onlyPriceChange,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.RenewalFilters = RenewalFilters;
|
|
86
|
-
_RenewalFilters_endCustomers = new WeakMap(), _RenewalFilters_vendor = new WeakMap(), _RenewalFilters_when = new WeakMap(), _RenewalFilters_classification = new WeakMap(), _RenewalFilters_onlyAutoRenewal = new WeakMap(), _RenewalFilters_onlyPriceChange = new WeakMap();
|
|
87
|
-
//# sourceMappingURL=renewalFilters.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstractEntity';
|
|
2
|
-
import { Alert, AlertType } from './alert';
|
|
3
|
-
export declare type AlertListType = Array<AlertType>;
|
|
4
|
-
export declare class AlertList extends AbstractEntity<AlertListType> {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(data: Array<AlertType>);
|
|
7
|
-
get alertList(): Array<Alert>;
|
|
8
|
-
toJSON(): AlertListType;
|
|
9
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
-
};
|
|
8
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
-
};
|
|
13
|
-
var _AlertList_alertList;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AlertList = void 0;
|
|
16
|
-
const abstractEntity_1 = require("../../../abstractEntity");
|
|
17
|
-
const alert_1 = require("./alert");
|
|
18
|
-
class AlertList extends abstractEntity_1.AbstractEntity {
|
|
19
|
-
constructor(data) {
|
|
20
|
-
super(data);
|
|
21
|
-
_AlertList_alertList.set(this, void 0);
|
|
22
|
-
__classPrivateFieldSet(this, _AlertList_alertList, data.map((alert) => new alert_1.Alert(alert)), "f");
|
|
23
|
-
}
|
|
24
|
-
get alertList() {
|
|
25
|
-
return __classPrivateFieldGet(this, _AlertList_alertList, "f");
|
|
26
|
-
}
|
|
27
|
-
toJSON() {
|
|
28
|
-
return this.alertList.map((alert) => alert.toJSON());
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.AlertList = AlertList;
|
|
32
|
-
_AlertList_alertList = new WeakMap();
|
|
33
|
-
//# sourceMappingURL=listAlert.js.map
|